aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-10-10 22:07:36 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-10-10 22:07:36 +0000
commit1e4a95361c71e8073f448012c3eeb6f09cc9a814 (patch)
tree0813309debec083cc2e7699073e9f4f33c6e6f74 /configure
parentd173d12e77c2ba9c46717353891f817333ce4995 (diff)
downloadglibc-1e4a95361c71e8073f448012c3eeb6f09cc9a814.zip
glibc-1e4a95361c71e8073f448012c3eeb6f09cc9a814.tar.gz
glibc-1e4a95361c71e8073f448012c3eeb6f09cc9a814.tar.bz2
Use $CXX not cc1plus to locate C++ headers.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 2 insertions, 3 deletions
diff --git a/configure b/configure
index a5e9316..74ff690 100755
--- a/configure
+++ b/configure
@@ -5342,10 +5342,9 @@ if test -n "$sysheaders"; then
-isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
if test -n "$CXX"; then
CXX_SYSINCLUDES=
- cxxversion=`$CXX -dumpversion 2>&5` &&
cxxmachine=`$CXX -dumpmachine 2>&5` &&
- cxxplus=`$CXX -print-prog-name=cc1plus`
- cxxheaders=`$cxxplus -v /dev/null 2>&1 | sed -n '/ \//{p;q;}' | sed 's/ //'`
+ cxxheaders=`$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \
+ | sed -n -e '1,/#include/d' -e '/^ \//{p;q;}' | sed 's/ //'`
test "x$cxxheaders" != x && test "x$i" != "x$cxxheaders" &&
CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders \
-isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"