This commit is contained in:
Ulrich Drepper 2003-01-21 05:45:26 +00:00
parent d5b6c81799
commit 46086bc896
1 changed files with 22 additions and 7 deletions

View File

@ -20,14 +20,29 @@ if test -n "$sysheaders"; then
OLD_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $SYSINCLUDES"
fi
echo "$as_me:$LINENO: checking for egrep" >&5
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
if test "${ac_cv_prog_egrep+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
then ac_cv_prog_egrep='grep -E'
else ac_cv_prog_egrep='egrep'
fi
fi
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
EGREP=$ac_cv_prog_egrep
echo "$as_me:$LINENO: checking installed Linux kernel header files" >&5
echo $ECHO_N "checking installed Linux kernel header files... $ECHO_C" >&6
if test "${libc_cv_linux2010+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
cat >conftest.$ac_ext <<_ACEOF
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"
#include <linux/version.h>
@ -36,7 +51,7 @@ eat flaming death
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "eat flaming death" >/dev/null 2>&1; then
$EGREP "eat flaming death" >/dev/null 2>&1; then
libc_cv_linux2010='TOO OLD!'
else
libc_cv_linux2010='2.0.10 or later'
@ -86,7 +101,7 @@ case "$machine" in
arch_minimum_kernel=2.4.0
;;
hppa*)
libc_cv_gcc_unwind_find_fde=yes
libc_cv_gcc_unwind_find_fde=yes
arch_minimum_kernel=2.4.19
;;
m68k*)
@ -102,7 +117,7 @@ case "$machine" in
arch_minimum_kernel=2.0.10
;;
powerpc/powerpc64)
arch_minimum_kernel=2.4.19
arch_minimum_kernel=2.4.21
;;
s390/s390-32)
libc_cv_gcc_unwind_find_fde=yes
@ -157,7 +172,7 @@ eat flaming death
#endif
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
egrep "eat flaming death" >/dev/null 2>&1; then
$EGREP "eat flaming death" >/dev/null 2>&1; then
libc_minimum_kernel='too old!'
else
libc_minimum_kernel=ok