]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Check sysheaders when looking for Mach and Hurd headers
authorManolis Ragkousis <manolis837@gmail.com>
Wed, 26 Aug 2015 21:48:33 +0000 (23:48 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 6 Sep 2015 18:56:18 +0000 (20:56 +0200)
* sysdeps/mach/configure.ac: Add sysheaders check.
* sysdeps/mach/configure: Regenerate.
* sysdeps/mach/hurd/configure.ac: Add sysheaders check.
* sysdeps/mach/hurd/configure: Regenerate.

ChangeLog
sysdeps/mach/configure
sysdeps/mach/configure.ac
sysdeps/mach/hurd/configure
sysdeps/mach/hurd/configure.ac

index 53b6c2454951e96576ddb841b8470ac589dc34f1..f726795da6e04783a98b477412c06962e7983e36 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2015-09-06  Manolis Ragkousis <manolis837@gmail.com>
+
+       Check sysheaders when looking for Mach and Hurd headers
+
+       * sysdeps/mach/configure.ac: Add sysheaders check.
+       * sysdeps/mach/configure: Regenerate.
+       * sysdeps/mach/hurd/configure.ac: Add sysheaders check.
+       * sysdeps/mach/hurd/configure: Regenerate.
+
 2015-09-04  Roland McGrath  <roland@hack.frob.com>
 
        [BZ #18921]
index 228f99ef9e72f52b0303ee030f1354c81d59a892..4d2a4e3658d821db9572da1e69f5a7d7838289be 100644 (file)
@@ -165,6 +165,11 @@ fi
 config_vars="$config_vars
 MIG = $MIG"
 
+if test -n "$sysheaders"; then
+  OLD_CPPFLAGS=$CPPFLAGS
+  CPPFLAGS="$CPPFLAGS $SYSINCLUDES"
+fi
+
 ### Sanity checks for Mach header installation
 
 
@@ -553,3 +558,7 @@ if test $hurd_cv_mig_retcode = yes; then
   $as_echo "#define HAVE_MIG_RETCODE 1" >>confdefs.h
 
 fi
+
+if test -n "$sysheaders"; then
+  CPPFLAGS=$OLD_CPPFLAGS
+fi
index db85f47eae1f4825dd3516d82559c1f4159de324..00b660c550c3d47348c3be664ae131a041f02de6 100644 (file)
@@ -6,6 +6,11 @@ if test "x$MIG" = xMISSING; then
 fi
 LIBC_CONFIG_VAR([MIG], [$MIG])
 
+if test -n "$sysheaders"; then
+  OLD_CPPFLAGS=$CPPFLAGS
+  CPPFLAGS="$CPPFLAGS $SYSINCLUDES"
+fi
+
 ### Sanity checks for Mach header installation
 AC_CHECK_HEADER(mach/mach_types.h,,
                 [AC_MSG_ERROR([cannot find Mach headers])], -)
@@ -124,3 +129,7 @@ if test $hurd_cv_mig_retcode = yes; then
 fi])
 
 hurd_MIG_RETCODE
+
+if test -n "$sysheaders"; then
+  CPPFLAGS=$OLD_CPPFLAGS
+fi
index 4248758b30f98739a0fd8fa7f99df2e209845481..3d155a450ea525a24fe4261d34a0b672b12634c8 100644 (file)
@@ -3,6 +3,11 @@
 $as_echo "#define NO_HIDDEN 1" >>confdefs.h
 
 
+if test -n "$sysheaders"; then
+  OLD_CPPFLAGS=$CPPFLAGS
+  CPPFLAGS="$CPPFLAGS $SYSINCLUDES"
+fi
+
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Hurd header version" >&5
 $as_echo_n "checking Hurd header version... " >&6; }
@@ -36,3 +41,7 @@ $as_echo "$libc_cv_hurd_version" >&6; }
 if test "x$libc_cv_hurd_version" != xok; then
   as_fn_error $? "Hurd headers not installed or too old" "$LINENO" 5
 fi
+
+if test -n "$sysheaders"; then
+  CPPFLAGS=$OLD_CPPFLAGS
+fi
index b1f16a569e55d5c96ca3ddf83eaa2cfad9737d45..af9a9ea05211c45a3f25e8affc9dc0f3da6842cb 100644 (file)
@@ -3,6 +3,11 @@ GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory.
 dnl We need this setting because of the need for PLT calls in ld.so.
 AC_DEFINE([NO_HIDDEN])
 
+if test -n "$sysheaders"; then
+  OLD_CPPFLAGS=$CPPFLAGS
+  CPPFLAGS="$CPPFLAGS $SYSINCLUDES"
+fi
+
 AC_CACHE_CHECK(Hurd header version, libc_cv_hurd_version, [dnl
 AC_TRY_COMPILE(dnl
 [#include <hurd/version.h>], [
@@ -15,3 +20,7 @@ AC_TRY_COMPILE(dnl
 if test "x$libc_cv_hurd_version" != xok; then
   AC_MSG_ERROR(Hurd headers not installed or too old)
 fi
+
+if test -n "$sysheaders"; then
+  CPPFLAGS=$OLD_CPPFLAGS
+fi