about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPranav Kant <prka@google.com>2023-09-27 18:55:40 +0000
committerPranav Kant <prka@google.com>2023-09-27 19:03:26 +0000
commitbade6276d16523f81a1dedf22e591730592f15d6 (patch)
tree4935401bd30e49525db45a08b6460b704d92c02a
parentaacd7e0eb6429854f6133bea49c1c4938ff30608 (diff)
downloadglibc-bade6276d16523f81a1dedf22e591730592f15d6.tar.gz
glibc-bade6276d16523f81a1dedf22e591730592f15d6.tar.xz
glibc-bade6276d16523f81a1dedf22e591730592f15d6.zip
configure: Use same pattern to find headers for clang
-rwxr-xr-xconfigure7
1 files changed, 0 insertions, 7 deletions
diff --git a/configure b/configure
index 447318e678..4f7b42a319 100755
--- a/configure
+++ b/configure
@@ -5379,17 +5379,10 @@ fi
 if test -n "$CXX"; then
   # In theory the clang and gcc regexes can be merged, but the
   # result is incomprehensible.
-  if test "$with_clang" != no; then
-  find_cxx_header () {
-    echo "#include <$1>" | $CXX -M -MP -x c++ - 2>/dev/null \
-	 | sed -n "\,^[o.-]*[ :] /.*/$1 [\]$,{s,^[o.-]*[ :] /,/,;s/ [\]$//;p}"
-  }
-  else
   find_cxx_header () {
     echo "#include <$1>" | $CXX -M -MP -x c++ - 2>/dev/null \
 	 | sed -n "\,$1:,{s/:\$//;p}"
   }
-  fi
   CXX_CSTDLIB_HEADER="$(find_cxx_header cstdlib)"
   CXX_CMATH_HEADER="$(find_cxx_header cmath)"
   CXX_BITS_STD_ABS_H="$(find_cxx_header bits/std_abs.h)"