2011-02-15 19:52:29 +00:00
|
|
|
|
|
|
|
# as_fn_set_status STATUS
|
|
|
|
# -----------------------
|
|
|
|
# Set $? to STATUS, without forking.
|
|
|
|
as_fn_set_status ()
|
|
|
|
{
|
|
|
|
return $1
|
|
|
|
} # as_fn_set_status
|
|
|
|
|
|
|
|
# as_fn_exit STATUS
|
|
|
|
# -----------------
|
|
|
|
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
|
|
|
|
as_fn_exit ()
|
|
|
|
{
|
|
|
|
set +e
|
|
|
|
as_fn_set_status $1
|
|
|
|
exit $1
|
|
|
|
} # as_fn_exit
|
|
|
|
# as_fn_arith ARG...
|
|
|
|
# ------------------
|
|
|
|
# Perform arithmetic evaluation on the ARGs, and store the result in the
|
|
|
|
# global $as_val. Take advantage of shells that can avoid forks. The arguments
|
|
|
|
# must be portable across $(()) and expr.
|
|
|
|
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
|
|
|
|
eval 'as_fn_arith ()
|
|
|
|
{
|
|
|
|
as_val=$(( $* ))
|
|
|
|
}'
|
|
|
|
else
|
|
|
|
as_fn_arith ()
|
|
|
|
{
|
|
|
|
as_val=`expr "$@" || test $? -eq 1`
|
|
|
|
}
|
|
|
|
fi # as_fn_arith
|
|
|
|
|
|
|
|
if expr a : '\(a\)' >/dev/null 2>&1 &&
|
|
|
|
test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
|
|
|
as_expr=expr
|
|
|
|
else
|
|
|
|
as_expr=false
|
|
|
|
fi
|
|
|
|
|
|
|
|
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
|
|
|
as_basename=basename
|
|
|
|
else
|
|
|
|
as_basename=false
|
|
|
|
fi
|
|
|
|
|
|
|
|
as_me=`$as_basename -- "$0" ||
|
|
|
|
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
|
|
|
X"$0" : 'X\(//\)$' \| \
|
|
|
|
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
|
|
|
$as_echo X/"$0" |
|
|
|
|
sed '/^.*\/\([^/][^/]*\)\/*$/{
|
|
|
|
s//\1/
|
|
|
|
q
|
|
|
|
}
|
|
|
|
/^X\/\(\/\/\)$/{
|
|
|
|
s//\1/
|
|
|
|
q
|
|
|
|
}
|
|
|
|
/^X\/\(\/\).*/{
|
|
|
|
s//\1/
|
|
|
|
q
|
|
|
|
}
|
|
|
|
s/.*/./; q'`
|
|
|
|
|
|
|
|
|
|
|
|
as_lineno_1=$LINENO as_lineno_1a=$LINENO
|
|
|
|
as_lineno_2=$LINENO as_lineno_2a=$LINENO
|
|
|
|
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
|
|
|
|
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
|
|
|
|
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
|
|
|
|
sed -n '
|
|
|
|
p
|
|
|
|
/[$]LINENO/=
|
|
|
|
' <$as_myself |
|
|
|
|
sed '
|
|
|
|
s/[$]LINENO.*/&-/
|
|
|
|
t lineno
|
|
|
|
b
|
|
|
|
:lineno
|
|
|
|
N
|
|
|
|
:loop
|
|
|
|
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
|
|
|
t loop
|
|
|
|
s/-\n.*//
|
|
|
|
' >$as_me.lineno &&
|
|
|
|
chmod +x "$as_me.lineno" ||
|
|
|
|
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
|
|
|
|
|
|
|
|
# Don't try to exec as it changes $[0], causing all sort of problems
|
|
|
|
# (the dirname of $[0] is not the place where we might find the
|
|
|
|
# original and so on. Autoconf is especially sensitive to this).
|
|
|
|
. "./$as_me.lineno"
|
|
|
|
# Exit status is that of the last command.
|
|
|
|
exit
|
|
|
|
}
|
|
|
|
|
2002-10-18 05:05:55 +00:00
|
|
|
# This file is generated from configure.in by Autoconf. DO NOT EDIT!
|
1996-12-08 08:01:13 +00:00
|
|
|
# Local configure fragment for sysdeps/unix/sysv/linux.
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
1998-08-21 22:29:58 +00:00
|
|
|
if test -n "$sysheaders"; then
|
2000-01-27 20:16:37 +00:00
|
|
|
OLD_CPPFLAGS=$CPPFLAGS
|
|
|
|
CPPFLAGS="$CPPFLAGS $SYSINCLUDES"
|
1998-08-21 22:29:58 +00:00
|
|
|
fi
|
2003-01-21 05:45:26 +00:00
|
|
|
|
|
|
|
|
2011-02-15 19:52:29 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
|
2011-07-07 01:29:02 +00:00
|
|
|
if ${ac_cv_path_GREP+:} false; then :
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "(cached) " >&6
|
2008-04-12 00:51:34 +00:00
|
|
|
else
|
2009-09-15 21:14:42 +00:00
|
|
|
if test -z "$GREP"; then
|
2008-04-12 00:51:34 +00:00
|
|
|
ac_path_GREP_found=false
|
2009-09-15 21:14:42 +00:00
|
|
|
# Loop through the user's path and test for each of PROGNAME-LIST
|
|
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2008-04-12 00:51:34 +00:00
|
|
|
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
|
|
|
do
|
|
|
|
IFS=$as_save_IFS
|
|
|
|
test -z "$as_dir" && as_dir=.
|
2011-02-15 19:52:29 +00:00
|
|
|
for ac_prog in grep ggrep; do
|
2009-09-15 21:14:42 +00:00
|
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
|
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
|
|
|
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
|
|
|
# Check for GNU ac_path_GREP and select it if it is found.
|
2008-04-12 00:51:34 +00:00
|
|
|
# Check for GNU $ac_path_GREP
|
|
|
|
case `"$ac_path_GREP" --version 2>&1` in
|
|
|
|
*GNU*)
|
|
|
|
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
|
|
|
*)
|
|
|
|
ac_count=0
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n 0123456789 >"conftest.in"
|
2008-04-12 00:51:34 +00:00
|
|
|
while :
|
|
|
|
do
|
|
|
|
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
|
|
mv "conftest.tmp" "conftest.in"
|
|
|
|
cp "conftest.in" "conftest.nl"
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo 'GREP' >> "conftest.nl"
|
2008-04-12 00:51:34 +00:00
|
|
|
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
|
|
|
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
2011-02-15 19:52:29 +00:00
|
|
|
as_fn_arith $ac_count + 1 && ac_count=$as_val
|
2008-04-12 00:51:34 +00:00
|
|
|
if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
|
|
|
# Best one so far, save it but keep looking for a better one
|
|
|
|
ac_cv_path_GREP="$ac_path_GREP"
|
|
|
|
ac_path_GREP_max=$ac_count
|
2003-01-21 05:45:26 +00:00
|
|
|
fi
|
2008-04-12 00:51:34 +00:00
|
|
|
# 10*(2^10) chars as input seems more than enough
|
|
|
|
test $ac_count -gt 10 && break
|
|
|
|
done
|
|
|
|
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
|
|
esac
|
|
|
|
|
2009-09-15 21:14:42 +00:00
|
|
|
$ac_path_GREP_found && break 3
|
|
|
|
done
|
2008-04-12 00:51:34 +00:00
|
|
|
done
|
2011-02-15 19:52:29 +00:00
|
|
|
done
|
2008-04-12 00:51:34 +00:00
|
|
|
IFS=$as_save_IFS
|
2009-09-15 21:14:42 +00:00
|
|
|
if test -z "$ac_cv_path_GREP"; then
|
2011-02-15 19:52:29 +00:00
|
|
|
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
2009-09-15 21:14:42 +00:00
|
|
|
fi
|
2008-04-12 00:51:34 +00:00
|
|
|
else
|
|
|
|
ac_cv_path_GREP=$GREP
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
2011-02-15 19:52:29 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo "$ac_cv_path_GREP" >&6; }
|
2008-04-12 00:51:34 +00:00
|
|
|
GREP="$ac_cv_path_GREP"
|
2003-01-21 05:45:26 +00:00
|
|
|
|
|
|
|
|
2011-02-15 19:52:29 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "checking for egrep... " >&6; }
|
2011-07-07 01:29:02 +00:00
|
|
|
if ${ac_cv_path_EGREP+:} false; then :
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "(cached) " >&6
|
2008-04-12 00:51:34 +00:00
|
|
|
else
|
|
|
|
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
|
|
|
then ac_cv_path_EGREP="$GREP -E"
|
|
|
|
else
|
2009-09-15 21:14:42 +00:00
|
|
|
if test -z "$EGREP"; then
|
2008-04-12 00:51:34 +00:00
|
|
|
ac_path_EGREP_found=false
|
2009-09-15 21:14:42 +00:00
|
|
|
# Loop through the user's path and test for each of PROGNAME-LIST
|
|
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
2008-04-12 00:51:34 +00:00
|
|
|
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
|
|
|
do
|
|
|
|
IFS=$as_save_IFS
|
|
|
|
test -z "$as_dir" && as_dir=.
|
2011-02-15 19:52:29 +00:00
|
|
|
for ac_prog in egrep; do
|
2009-09-15 21:14:42 +00:00
|
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
|
|
|
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
|
|
|
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
|
|
|
# Check for GNU ac_path_EGREP and select it if it is found.
|
2008-04-12 00:51:34 +00:00
|
|
|
# Check for GNU $ac_path_EGREP
|
|
|
|
case `"$ac_path_EGREP" --version 2>&1` in
|
|
|
|
*GNU*)
|
|
|
|
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
|
|
|
*)
|
|
|
|
ac_count=0
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n 0123456789 >"conftest.in"
|
2008-04-12 00:51:34 +00:00
|
|
|
while :
|
|
|
|
do
|
|
|
|
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
|
|
mv "conftest.tmp" "conftest.in"
|
|
|
|
cp "conftest.in" "conftest.nl"
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo 'EGREP' >> "conftest.nl"
|
2008-04-12 00:51:34 +00:00
|
|
|
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
|
|
|
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
2011-02-15 19:52:29 +00:00
|
|
|
as_fn_arith $ac_count + 1 && ac_count=$as_val
|
2008-04-12 00:51:34 +00:00
|
|
|
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
|
|
|
# Best one so far, save it but keep looking for a better one
|
|
|
|
ac_cv_path_EGREP="$ac_path_EGREP"
|
|
|
|
ac_path_EGREP_max=$ac_count
|
|
|
|
fi
|
|
|
|
# 10*(2^10) chars as input seems more than enough
|
|
|
|
test $ac_count -gt 10 && break
|
|
|
|
done
|
|
|
|
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
|
|
|
esac
|
|
|
|
|
2009-09-15 21:14:42 +00:00
|
|
|
$ac_path_EGREP_found && break 3
|
|
|
|
done
|
2008-04-12 00:51:34 +00:00
|
|
|
done
|
2011-02-15 19:52:29 +00:00
|
|
|
done
|
2008-04-12 00:51:34 +00:00
|
|
|
IFS=$as_save_IFS
|
2009-09-15 21:14:42 +00:00
|
|
|
if test -z "$ac_cv_path_EGREP"; then
|
2011-02-15 19:52:29 +00:00
|
|
|
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
2009-09-15 21:14:42 +00:00
|
|
|
fi
|
2008-04-12 00:51:34 +00:00
|
|
|
else
|
|
|
|
ac_cv_path_EGREP=$EGREP
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
2011-02-15 19:52:29 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo "$ac_cv_path_EGREP" >&6; }
|
2008-04-12 00:51:34 +00:00
|
|
|
EGREP="$ac_cv_path_EGREP"
|
|
|
|
|
|
|
|
|
2011-02-15 19:52:29 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking installed Linux kernel header files" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "checking installed Linux kernel header files... " >&6; }
|
2012-02-27 20:52:30 +00:00
|
|
|
if ${libc_cv_linux2619+:} false; then :
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "(cached) " >&6
|
1996-12-08 08:01:13 +00:00
|
|
|
else
|
2011-02-15 19:52:29 +00:00
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
2003-03-17 15:57:19 +00:00
|
|
|
/* end confdefs.h. */
|
1996-12-08 08:01:13 +00:00
|
|
|
#include <linux/version.h>
|
2012-02-27 20:52:30 +00:00
|
|
|
#if !defined LINUX_VERSION_CODE || LINUX_VERSION_CODE < (2 *65536+ 6 *256+ 19) /* 2.6.19 */
|
1996-12-08 08:01:13 +00:00
|
|
|
eat flaming death
|
|
|
|
#endif
|
2002-10-18 05:05:55 +00:00
|
|
|
_ACEOF
|
1999-05-30 09:07:13 +00:00
|
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
2011-02-15 19:52:29 +00:00
|
|
|
$EGREP "eat flaming death" >/dev/null 2>&1; then :
|
2012-02-27 20:52:30 +00:00
|
|
|
libc_cv_linux2619='TOO OLD!'
|
1996-06-10 09:41:16 +00:00
|
|
|
else
|
2012-02-27 20:52:30 +00:00
|
|
|
libc_cv_linux2619='2.6.19 or later'
|
1996-06-10 09:41:16 +00:00
|
|
|
fi
|
|
|
|
rm -f conftest*
|
1999-05-30 09:07:13 +00:00
|
|
|
|
1996-06-10 09:41:16 +00:00
|
|
|
fi
|
2012-02-27 20:52:30 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_linux2619" >&5
|
|
|
|
$as_echo "$libc_cv_linux2619" >&6; }
|
|
|
|
if test "$libc_cv_linux2619" != '2.6.19 or later'; then
|
2011-02-15 19:52:29 +00:00
|
|
|
as_fn_error $? "GNU libc requires kernel header files from
|
2012-02-27 20:52:30 +00:00
|
|
|
Linux 2.6.19 or later to be installed before configuring.
|
2002-10-18 05:05:55 +00:00
|
|
|
The kernel header files are found usually in /usr/include/asm and
|
|
|
|
/usr/include/linux; make sure these directories use files from
|
2012-02-27 20:52:30 +00:00
|
|
|
Linux 2.6.19 or later. This check uses <linux/version.h>, so
|
2002-10-18 05:05:55 +00:00
|
|
|
make sure that file was built correctly when installing the kernel header
|
|
|
|
files. To use kernel headers not from /usr/include/linux, use the
|
2011-02-15 19:52:29 +00:00
|
|
|
configure option --with-headers." "$LINENO" 5
|
1998-08-21 22:29:58 +00:00
|
|
|
fi
|
1999-05-26 23:37:38 +00:00
|
|
|
|
|
|
|
# If the user gave a minimal version number test whether the available
|
2000-06-13 03:49:12 +00:00
|
|
|
# kernel headers are young enough. Additionally we have minimal
|
2004-07-02 06:45:08 +00:00
|
|
|
# kernel versions for some architectures. If a previous configure fragment
|
|
|
|
# set arch_minimum_kernel already, let that override our defaults here.
|
|
|
|
# Note that we presume such a fragment has set libc_cv_gcc_unwind_find_fde
|
|
|
|
# if appropriate too.
|
|
|
|
test -n "$arch_minimum_kernel" ||
|
2000-06-13 06:22:36 +00:00
|
|
|
case "$machine" in
|
2001-11-16 01:27:24 +00:00
|
|
|
i386*)
|
|
|
|
libc_cv_gcc_unwind_find_fde=yes
|
|
|
|
arch_minimum_kernel=2.0.10
|
2000-06-13 06:22:36 +00:00
|
|
|
;;
|
2002-09-05 15:55:17 +00:00
|
|
|
powerpc/powerpc32)
|
2001-11-16 01:27:24 +00:00
|
|
|
libc_cv_gcc_unwind_find_fde=yes
|
|
|
|
arch_minimum_kernel=2.0.10
|
2001-07-06 09:21:36 +00:00
|
|
|
;;
|
2002-09-05 15:55:17 +00:00
|
|
|
powerpc/powerpc64)
|
2008-04-12 00:51:34 +00:00
|
|
|
arch_minimum_kernel=2.4.21
|
2002-09-05 15:55:17 +00:00
|
|
|
;;
|
2002-01-17 17:22:51 +00:00
|
|
|
s390/s390-32)
|
|
|
|
libc_cv_gcc_unwind_find_fde=yes
|
|
|
|
arch_minimum_kernel=2.2.10
|
|
|
|
;;
|
|
|
|
s390/s390-64)
|
|
|
|
libc_cv_gcc_unwind_find_fde=yes
|
|
|
|
arch_minimum_kernel=2.4.0
|
|
|
|
;;
|
2001-07-06 09:21:36 +00:00
|
|
|
sh*)
|
|
|
|
arch_minimum_kernel=2.3.99
|
2001-11-16 01:27:24 +00:00
|
|
|
libc_cv_gcc_unwind_find_fde=yes
|
|
|
|
;;
|
Add sparc64 TLS and NPTL support.
* elf/tls-macros.h: Add Sparc64 defines.
* sysdeps/sparc/sparc64/dl-machine.h (sparc64_fixup_plt): Mark as
always_inline.
(elf_machine_fixup_plt): Likewise.
(elf_machine_rela): Handle TLS relocations.
(elf_machine_type_cleaa): Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
(SYSCALL_ERROR_HANDLER_ENTRY): Use sethi/or for GOT reloc.
It does not always fit in R_SPARC_GOT13 when building -fPIC.
Also, add TLS handling.
* sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
Increase it to 2.4.21 for sparc64.
* sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: NULL terminate
backtrace by zero'ing out %fp. Store away flags, func_ptr,
and func_arg in global registers not local registers.
* sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Handle PTID, TLS,
and CTID arguments properly. Add RESET_PID handling.
* sysdeps/unix/sysv/linux/sparc/sparc64/pause.c: Rework so that we
do not invoke __sigprocmask(). We can always assume rt signals
are present on sparc64, so just do an inline syscall.
2005-04-13 Jakub Jelinek <jakub@redhat.com>
* sysdeps/sparc/sparc64/dl-machine.h: Add dl_machine_h multiple
inclusion guard for the first half of the header.
(elf_machine_type_class, ELF_MACHINE_JMP_SLOT, ELF_MACHINE_NO_REL,
ELF_MACHINE_PLTREL_OVERLAP, elf_machine_runtime_setup,
elf_machine_relplt, DL_STACK_END, RTLD_START): Move into the
#ifndef dl_machine_h guarded part of the header.
2005-04-14 21:46:37 +00:00
|
|
|
sparc/sparc64*)
|
|
|
|
libc_cv_gcc_unwind_find_fde=yes
|
|
|
|
arch_minimum_kernel=2.4.21
|
|
|
|
;;
|
2001-11-16 01:27:24 +00:00
|
|
|
sparc*)
|
|
|
|
libc_cv_gcc_unwind_find_fde=yes
|
|
|
|
arch_minimum_kernel=2.0.10
|
2001-07-06 09:21:36 +00:00
|
|
|
;;
|
2001-09-20 06:43:34 +00:00
|
|
|
x86_64*)
|
|
|
|
arch_minimum_kernel=2.4.0
|
|
|
|
;;
|
2000-06-13 06:22:36 +00:00
|
|
|
*)
|
|
|
|
arch_minimum_kernel=2.0.10
|
|
|
|
;;
|
|
|
|
esac
|
2000-06-13 03:49:12 +00:00
|
|
|
if test -n "$minimum_kernel"; then
|
2002-10-18 05:05:55 +00:00
|
|
|
|
2000-06-13 06:22:36 +00:00
|
|
|
user_version=$((`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1 \* 65536 + \2 \* 256 + \3/'`))
|
|
|
|
arch_version=$((`echo "$arch_minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1 \* 65536 + \2 \* 256 + \3/'`))
|
2002-10-18 05:05:55 +00:00
|
|
|
|
2000-06-13 06:22:36 +00:00
|
|
|
if test $user_version -lt $arch_version; then
|
2011-02-15 19:52:29 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: minimum kernel version reset to $arch_minimum_kernel" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo "$as_me: WARNING: minimum kernel version reset to $arch_minimum_kernel" >&2;}
|
2000-06-13 03:49:12 +00:00
|
|
|
minimum_kernel=$arch_minimum_kernel
|
|
|
|
fi
|
|
|
|
else
|
2000-06-13 06:22:36 +00:00
|
|
|
if test $arch_minimum_kernel != '2.0.10'; then
|
|
|
|
minimum_kernel=$arch_minimum_kernel
|
|
|
|
fi
|
2000-06-13 03:49:12 +00:00
|
|
|
fi
|
|
|
|
|
1999-05-26 23:37:38 +00:00
|
|
|
if test -n "$minimum_kernel"; then
|
2011-02-15 19:52:29 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel header at least $minimum_kernel" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "checking for kernel header at least $minimum_kernel... " >&6; }
|
1999-05-30 09:07:13 +00:00
|
|
|
decnum=`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/(\1 * 65536 + \2 * 256 + \3)/'`;
|
Update.
2001-03-12 Jakub Jelinek <jakub@redhat.com>
* csu/Makefile (abi-tag.h): Define OS and version separately, allow
version to be overriden from config.h.
* csu/abi-note.S: Use OS and version separately, include config.h.
* elf/dl-load.c (_dl_osversion): New.
(_dl_map_object_from_fd): Kill some warnings.
(open_verify): Check .note.ABI-tag of the library if present.
* elf/Makefile (CPPFLAGS-dl-load.c): Add -I$(csu-objpfx).
* elf/cache.c (struct cache_entry): Add osversion.
(print_entry): Print osversion.
(print_cache): Pass osversion to it.
(compare): Sort according to osversion.
(save_cache): Set osversion.
(add_to_cache): Add osversion argument.
* sysdeps/generic/ldconfig.h (add_to_cache, process_file,
process_elf_file): Add osversion argument.
* elf/readlib.c (process_file): Likewise.
* sysdeps/generic/readelflib.c (process_elf_file): Likewise.
* sysdeps/unix/sysv/linux/ia64/readelflib.c (process_elf_file,
process_elf32_file, process_elf64_file): Likewise.
* sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file,
process_elf32_file, process_elf64_file): Likewise.
* sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file,
process_elf32_file, process_elf64_file): Likewise.
* elf/ldconfig.c (manual_link): Pass it.
(search_dir): Issue diagnostic if two libs with the same soname in
the same directory have different .note.ABI-tag. Record osversion in
dlib_entry and use it from there.
(struct lib_entry): Remove.
(struct dlib_entry): Add osversion.
* sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Check
osversion.
* sysdeps/generic/dl-cache.h (struct file_entry_new): Replace __unused
field with osversion.
* sysdeps/generic/ldsodefs.h (_dl_osversion): Declare.
* sysdeps/unix/sysv/linux/init-first.c: Include ldsodefs.h.
* sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Save kernel
version in _dl_osversion.
* sysdeps/unix/sysv/linux/configure.in: Define __ABI_TAG_VERSION.
* Makerules (build-shlib-helper, build-module-helper): New.
(build-shlib, build-module-helper): Make sure .note.ABI-tag comes
early.
* config.h.in (__ABI_TAG_VERSION): Add.
* elf/dl-minimal.c (__strtoul_internal): Set endptr on return.
* sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS):
Handle LD_ASSUME_KERNEL.
* sysdeps/unix/sysv/linux/dl-librecon.h: New.
2001-03-16 07:40:05 +00:00
|
|
|
abinum=`echo "$minimum_kernel.0.0.0" | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1,\2,\3/'`;
|
2011-02-15 19:52:29 +00:00
|
|
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
2003-03-17 15:57:19 +00:00
|
|
|
/* end confdefs.h. */
|
1999-05-26 23:37:38 +00:00
|
|
|
#include <linux/version.h>
|
|
|
|
#if LINUX_VERSION_CODE < $decnum
|
|
|
|
eat flaming death
|
|
|
|
#endif
|
2002-10-18 05:05:55 +00:00
|
|
|
_ACEOF
|
1999-05-30 09:07:13 +00:00
|
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
2011-02-15 19:52:29 +00:00
|
|
|
$EGREP "eat flaming death" >/dev/null 2>&1; then :
|
1999-05-30 09:07:13 +00:00
|
|
|
libc_minimum_kernel='too old!'
|
|
|
|
else
|
|
|
|
libc_minimum_kernel=ok
|
|
|
|
fi
|
|
|
|
rm -f conftest*
|
|
|
|
|
2011-02-15 19:52:29 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_minimum_kernel" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo "$libc_minimum_kernel" >&6; }
|
1999-05-30 09:07:13 +00:00
|
|
|
if test "$libc_minimum_kernel" = ok; then
|
2002-10-18 05:05:55 +00:00
|
|
|
cat >>confdefs.h <<_ACEOF
|
1999-05-26 23:37:38 +00:00
|
|
|
#define __LINUX_KERNEL_VERSION $decnum
|
2002-10-18 05:05:55 +00:00
|
|
|
_ACEOF
|
Update.
2001-03-12 Jakub Jelinek <jakub@redhat.com>
* csu/Makefile (abi-tag.h): Define OS and version separately, allow
version to be overriden from config.h.
* csu/abi-note.S: Use OS and version separately, include config.h.
* elf/dl-load.c (_dl_osversion): New.
(_dl_map_object_from_fd): Kill some warnings.
(open_verify): Check .note.ABI-tag of the library if present.
* elf/Makefile (CPPFLAGS-dl-load.c): Add -I$(csu-objpfx).
* elf/cache.c (struct cache_entry): Add osversion.
(print_entry): Print osversion.
(print_cache): Pass osversion to it.
(compare): Sort according to osversion.
(save_cache): Set osversion.
(add_to_cache): Add osversion argument.
* sysdeps/generic/ldconfig.h (add_to_cache, process_file,
process_elf_file): Add osversion argument.
* elf/readlib.c (process_file): Likewise.
* sysdeps/generic/readelflib.c (process_elf_file): Likewise.
* sysdeps/unix/sysv/linux/ia64/readelflib.c (process_elf_file,
process_elf32_file, process_elf64_file): Likewise.
* sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file,
process_elf32_file, process_elf64_file): Likewise.
* sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file,
process_elf32_file, process_elf64_file): Likewise.
* elf/ldconfig.c (manual_link): Pass it.
(search_dir): Issue diagnostic if two libs with the same soname in
the same directory have different .note.ABI-tag. Record osversion in
dlib_entry and use it from there.
(struct lib_entry): Remove.
(struct dlib_entry): Add osversion.
* sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Check
osversion.
* sysdeps/generic/dl-cache.h (struct file_entry_new): Replace __unused
field with osversion.
* sysdeps/generic/ldsodefs.h (_dl_osversion): Declare.
* sysdeps/unix/sysv/linux/init-first.c: Include ldsodefs.h.
* sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Save kernel
version in _dl_osversion.
* sysdeps/unix/sysv/linux/configure.in: Define __ABI_TAG_VERSION.
* Makerules (build-shlib-helper, build-module-helper): New.
(build-shlib, build-module-helper): Make sure .note.ABI-tag comes
early.
* config.h.in (__ABI_TAG_VERSION): Add.
* elf/dl-minimal.c (__strtoul_internal): Set endptr on return.
* sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS):
Handle LD_ASSUME_KERNEL.
* sysdeps/unix/sysv/linux/dl-librecon.h: New.
2001-03-16 07:40:05 +00:00
|
|
|
|
2002-10-18 05:05:55 +00:00
|
|
|
cat >>confdefs.h <<_ACEOF
|
Update.
2001-03-12 Jakub Jelinek <jakub@redhat.com>
* csu/Makefile (abi-tag.h): Define OS and version separately, allow
version to be overriden from config.h.
* csu/abi-note.S: Use OS and version separately, include config.h.
* elf/dl-load.c (_dl_osversion): New.
(_dl_map_object_from_fd): Kill some warnings.
(open_verify): Check .note.ABI-tag of the library if present.
* elf/Makefile (CPPFLAGS-dl-load.c): Add -I$(csu-objpfx).
* elf/cache.c (struct cache_entry): Add osversion.
(print_entry): Print osversion.
(print_cache): Pass osversion to it.
(compare): Sort according to osversion.
(save_cache): Set osversion.
(add_to_cache): Add osversion argument.
* sysdeps/generic/ldconfig.h (add_to_cache, process_file,
process_elf_file): Add osversion argument.
* elf/readlib.c (process_file): Likewise.
* sysdeps/generic/readelflib.c (process_elf_file): Likewise.
* sysdeps/unix/sysv/linux/ia64/readelflib.c (process_elf_file,
process_elf32_file, process_elf64_file): Likewise.
* sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file,
process_elf32_file, process_elf64_file): Likewise.
* sysdeps/unix/sysv/linux/sparc/readelflib.c (process_elf_file,
process_elf32_file, process_elf64_file): Likewise.
* elf/ldconfig.c (manual_link): Pass it.
(search_dir): Issue diagnostic if two libs with the same soname in
the same directory have different .note.ABI-tag. Record osversion in
dlib_entry and use it from there.
(struct lib_entry): Remove.
(struct dlib_entry): Add osversion.
* sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Check
osversion.
* sysdeps/generic/dl-cache.h (struct file_entry_new): Replace __unused
field with osversion.
* sysdeps/generic/ldsodefs.h (_dl_osversion): Declare.
* sysdeps/unix/sysv/linux/init-first.c: Include ldsodefs.h.
* sysdeps/unix/sysv/linux/dl-osinfo.h (DL_SYSDEP_OSCHECK): Save kernel
version in _dl_osversion.
* sysdeps/unix/sysv/linux/configure.in: Define __ABI_TAG_VERSION.
* Makerules (build-shlib-helper, build-module-helper): New.
(build-shlib, build-module-helper): Make sure .note.ABI-tag comes
early.
* config.h.in (__ABI_TAG_VERSION): Add.
* elf/dl-minimal.c (__strtoul_internal): Set endptr on return.
* sysdeps/unix/sysv/linux/i386/dl-librecon.h (EXTRA_LD_ENVVARS):
Handle LD_ASSUME_KERNEL.
* sysdeps/unix/sysv/linux/dl-librecon.h: New.
2001-03-16 07:40:05 +00:00
|
|
|
#define __ABI_TAG_VERSION $abinum
|
2002-10-18 05:05:55 +00:00
|
|
|
_ACEOF
|
1999-05-26 23:37:38 +00:00
|
|
|
|
|
|
|
else
|
2011-02-15 19:52:29 +00:00
|
|
|
as_fn_error $? "*** The available kernel headers are older than the requested
|
|
|
|
*** compatible kernel version" "$LINENO" 5
|
1999-05-26 23:37:38 +00:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2001-11-16 01:27:24 +00:00
|
|
|
# The result of the above test for the use of the FDE code is invalid if
|
|
|
|
# the user overrides the decision about the minimum ABI.
|
|
|
|
if test "$oldest_abi" != default && test "2.2.4" \< "$oldest_abi"; then
|
|
|
|
libc_cv_gcc_unwind_find_fde=no
|
|
|
|
fi
|
|
|
|
|
1998-08-21 22:29:58 +00:00
|
|
|
if test -n "$sysheaders"; then
|
2000-01-27 20:16:37 +00:00
|
|
|
CPPFLAGS=$OLD_CPPFLAGS
|
1996-06-10 09:41:16 +00:00
|
|
|
fi
|
1996-11-28 04:16:09 +00:00
|
|
|
|
2006-10-28 06:44:41 +00:00
|
|
|
# Under Linux the NPTL add-on should be available.
|
|
|
|
case $add_ons in
|
|
|
|
# It is available. Good.
|
|
|
|
*nptl*)
|
|
|
|
nptl_missing=
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
nptl_missing=yes
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
if test "$nptl_missing"; then
|
|
|
|
if test $enable_sanity = yes; then
|
|
|
|
echo "\
|
|
|
|
*** On GNU/Linux systems it is normal to compile GNU libc with the
|
|
|
|
*** \`nptl' add-on. Without that, the library will be
|
|
|
|
*** incompatible with normal GNU/Linux systems.
|
|
|
|
*** If you really mean to not use this add-on, run configure again
|
|
|
|
*** using the extra parameter \`--disable-sanity-checks'."
|
|
|
|
exit 1
|
|
|
|
else
|
|
|
|
echo "\
|
|
|
|
*** WARNING: Are you sure you do not want to use the \`nptl'
|
|
|
|
*** add-on?"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
2002-05-19 18:37:30 +00:00
|
|
|
if test "$prefix" = "/usr/local" -o "$prefix" = "/usr/local/" -o "$prefix" = "NONE"; then
|
|
|
|
if test $enable_sanity = yes; then
|
|
|
|
echo "\
|
|
|
|
*** 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.
|
2002-07-28 22:43:25 +00:00
|
|
|
*** If you really mean to do this, run configure again using the extra
|
2002-05-19 18:37:30 +00:00
|
|
|
*** parameter \`--disable-sanity-checks'."
|
|
|
|
exit 1
|
|
|
|
else
|
|
|
|
echo "\
|
|
|
|
*** WARNING: Do you really want to install the GNU C Library into /usr/local?
|
|
|
|
*** This might make your system totally unusable, for details read the FAQ."
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
1999-12-04 18:05:55 +00:00
|
|
|
# One Linux we use ldconfig.
|
|
|
|
use_ldconfig=yes
|
1998-03-29 17:03:23 +00:00
|
|
|
|
|
|
|
# We need some extensions to the `ldd' script.
|
|
|
|
|
|
|
|
case "$machine" in
|
2012-01-08 00:23:45 +00:00
|
|
|
i[3456]86*)
|
2011-09-11 18:33:24 +00:00
|
|
|
ldd_rewrite_script=sysdeps/unix/sysv/linux/ldd-rewrite.sed
|
1998-03-29 17:03:23 +00:00
|
|
|
;;
|
2001-09-19 03:25:37 +00:00
|
|
|
s390*)
|
2011-09-11 18:33:24 +00:00
|
|
|
ldd_rewrite_script=sysdeps/unix/sysv/linux/s390/ldd-rewrite.sed
|
2001-09-19 03:25:37 +00:00
|
|
|
;;
|
1999-07-14 15:21:35 +00:00
|
|
|
sparc*)
|
2011-09-11 18:33:24 +00:00
|
|
|
ldd_rewrite_script=sysdeps/unix/sysv/linux/sparc/ldd-rewrite.sed
|
1999-07-06 20:10:29 +00:00
|
|
|
;;
|
2001-09-20 06:43:34 +00:00
|
|
|
x86_64*)
|
2011-09-11 18:33:24 +00:00
|
|
|
ldd_rewrite_script=sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed
|
2001-09-20 06:43:34 +00:00
|
|
|
;;
|
2002-09-05 15:55:17 +00:00
|
|
|
powerpc*)
|
2011-09-11 18:33:24 +00:00
|
|
|
ldd_rewrite_script=sysdeps/unix/sysv/linux/powerpc/ldd-rewrite.sed
|
2002-09-05 15:55:17 +00:00
|
|
|
;;
|
1998-03-29 17:03:23 +00:00
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
1998-11-28 23:37:49 +00:00
|
|
|
|
1998-12-02 13:44:40 +00:00
|
|
|
if test $host = $build; then
|
|
|
|
# If $prefix/include/{net,scsi} are symlinks, make install will
|
|
|
|
# clobber what they're linked to (probably a kernel tree).
|
|
|
|
# test -L ought to work on all Linux boxes.
|
|
|
|
if test "x$prefix" != xNONE; then
|
|
|
|
ac_prefix=$prefix
|
|
|
|
else
|
|
|
|
ac_prefix=$ac_default_prefix
|
|
|
|
fi
|
2011-02-15 19:52:29 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlinks in ${ac_prefix}/include" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo_n "checking for symlinks in ${ac_prefix}/include... " >&6; }
|
1998-12-04 15:52:50 +00:00
|
|
|
ac_message=
|
1998-12-02 13:44:40 +00:00
|
|
|
if test -L ${ac_prefix}/include/net; then
|
1998-12-04 15:52:50 +00:00
|
|
|
ac_message="$ac_message
|
|
|
|
${ac_prefix}/include/net is a symlink"
|
1998-12-02 13:44:40 +00:00
|
|
|
fi
|
|
|
|
if test -L ${ac_prefix}/include/scsi; then
|
1998-12-04 15:52:50 +00:00
|
|
|
ac_message="$ac_message
|
1998-12-02 13:44:40 +00:00
|
|
|
${ac_prefix}/include/scsi is a symlink"
|
|
|
|
fi
|
1998-12-04 15:52:50 +00:00
|
|
|
if test -n "$ac_message"; then
|
2011-02-15 19:52:29 +00:00
|
|
|
as_fn_error $? "$ac_message
|
2002-10-18 05:05:55 +00:00
|
|
|
\`make install' will destroy the target of the link(s).
|
|
|
|
Delete the links and re-run configure, or better still, move the entire
|
2011-02-15 19:52:29 +00:00
|
|
|
${ac_prefix}/include directory out of the way." "$LINENO" 5
|
1998-12-02 13:44:40 +00:00
|
|
|
else
|
2011-02-15 19:52:29 +00:00
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
|
2009-09-15 21:14:42 +00:00
|
|
|
$as_echo "ok" >&6; }
|
1998-12-02 13:44:40 +00:00
|
|
|
fi
|
1998-11-28 23:37:49 +00:00
|
|
|
fi
|
2004-07-06 04:26:42 +00:00
|
|
|
|
|
|
|
# We have inlined syscalls.
|
2011-02-15 19:52:29 +00:00
|
|
|
$as_echo "#define HAVE_INLINED_SYSCALLS 1" >>confdefs.h
|
2004-07-06 04:26:42 +00:00
|
|
|
|