diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-07-28 22:43:25 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-07-28 22:43:25 +0000 |
commit | 79c38d7f7a5d3b42bf0f7d0afc4ed10ab0f8b275 (patch) | |
tree | 12a930dc44123e8c67d7c1585f40fc890386ec79 /sysdeps/unix/sysv/linux/configure.in | |
parent | 79996eeed13bbb7429f618899318d21762dd3b31 (diff) | |
download | glibc-79c38d7f7a5d3b42bf0f7d0afc4ed10ab0f8b275.tar.gz glibc-79c38d7f7a5d3b42bf0f7d0afc4ed10ab0f8b275.tar.xz glibc-79c38d7f7a5d3b42bf0f7d0afc4ed10ab0f8b275.zip |
Update.
* sysdeps/unix/sysv/linux/configure.in: Check /lib/modules/`uname -r`/build/include for kernel headers.
Diffstat (limited to 'sysdeps/unix/sysv/linux/configure.in')
-rw-r--r-- | sysdeps/unix/sysv/linux/configure.in | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/configure.in b/sysdeps/unix/sysv/linux/configure.in index c5aa4e81cf..1873e4ecf6 100644 --- a/sysdeps/unix/sysv/linux/configure.in +++ b/sysdeps/unix/sysv/linux/configure.in @@ -2,6 +2,18 @@ sinclude(./aclocal.m4)dnl Autoconf lossage GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. # Local configure fragment for sysdeps/unix/sysv/linux. +# The Linux kernel headers can be found in +# /lib/modules/$(uname -r)/build/include +# Check whether this directory is available. +if test -z "$sysheaders" && + test -d /lib/modules/`uname -r`/build/include; then + sysheaders="/lib/modules/`uname -r`/build/include" + ccheaders=`$CC -print-file-name=include` + dnl We don't have to use -nostdinc. We just want one more directory + dnl to be used. + SYSINCLUDES="-I $sysheaders" +fi + # Don't bother trying to generate any glue code to be compatible with the # existing system library, because we are the only system library. inhibit_glue=yes @@ -191,7 +203,7 @@ if test "$prefix" = "/usr/local" -o "$prefix" = "/usr/local/" -o "$prefix" = "NO *** On GNU/Linux systems the GNU C Library should not be installed into *** /usr/local since this might make your system totally unusable. *** We strongly advise to use a different prefix. For details read the FAQ. -*** If you really mean to do this, run configure again using the extra +*** If you really mean to do this, run configure again using the extra *** parameter \`--disable-sanity-checks'." exit 1 else |