2013-10-30 03:20:52 +00:00
|
|
|
# This file is generated from configure.ac by Autoconf. DO NOT EDIT!
|
2002-10-18 08:17:43 +00:00
|
|
|
|
2023-06-29 18:34:16 +00:00
|
|
|
printf "%s\n" "#define NO_RTLD_HIDDEN 1" >>confdefs.h
|
2015-11-25 01:48:22 +00:00
|
|
|
|
|
|
|
|
2015-08-26 21:48:33 +00:00
|
|
|
if test -n "$sysheaders"; then
|
|
|
|
OLD_CPPFLAGS=$CPPFLAGS
|
|
|
|
CPPFLAGS="$CPPFLAGS $SYSINCLUDES"
|
|
|
|
fi
|
|
|
|
|
2003-02-26 00:01:15 +00:00
|
|
|
|
2021-05-22 02:42:48 +00:00
|
|
|
|
2023-06-29 18:34:16 +00:00
|
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Hurd header version" >&5
|
|
|
|
printf %s "checking Hurd header version... " >&6; }
|
|
|
|
if test ${libc_cv_hurd_version+y}
|
|
|
|
then :
|
|
|
|
printf %s "(cached) " >&6
|
2024-06-11 21:34:54 +00:00
|
|
|
else case e in #(
|
|
|
|
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
2004-02-11 01:02:11 +00:00
|
|
|
/* end confdefs.h. */
|
2002-06-11 23:04:51 +00:00
|
|
|
#include <hurd/version.h>
|
2002-10-18 08:17:43 +00:00
|
|
|
int
|
2023-06-29 18:34:16 +00:00
|
|
|
main (void)
|
2002-10-18 08:17:43 +00:00
|
|
|
{
|
2002-06-11 23:04:51 +00:00
|
|
|
|
|
|
|
#define NEED_VERSION 20020609
|
|
|
|
#if HURD_INTERFACE_VERSION < NEED_VERSION
|
|
|
|
# error Hurd version too old: HURD_INTERFACE_VERSION < NEED_VERSION
|
|
|
|
#endif
|
2002-10-18 08:17:43 +00:00
|
|
|
;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
_ACEOF
|
2023-06-29 18:34:16 +00:00
|
|
|
if ac_fn_c_try_cpp "$LINENO"
|
|
|
|
then :
|
2002-06-11 23:04:51 +00:00
|
|
|
libc_cv_hurd_version=ok
|
2024-06-11 21:34:54 +00:00
|
|
|
else case e in #(
|
|
|
|
e) libc_cv_hurd_version=bad ;;
|
|
|
|
esac
|
2002-06-11 23:04:51 +00:00
|
|
|
fi
|
2024-06-11 21:34:54 +00:00
|
|
|
rm -f conftest.err conftest.i conftest.$ac_ext ;;
|
|
|
|
esac
|
2002-06-11 23:04:51 +00:00
|
|
|
fi
|
2023-06-29 18:34:16 +00:00
|
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hurd_version" >&5
|
|
|
|
printf "%s\n" "$libc_cv_hurd_version" >&6; }
|
2002-06-11 23:04:51 +00:00
|
|
|
if test "x$libc_cv_hurd_version" != xok; then
|
2012-05-10 22:46:14 +00:00
|
|
|
as_fn_error $? "Hurd headers not installed or too old" "$LINENO" 5
|
2002-06-11 23:04:51 +00:00
|
|
|
fi
|
2015-08-26 21:48:33 +00:00
|
|
|
|
2024-02-17 16:48:46 +00:00
|
|
|
|
|
|
|
|
2024-06-11 21:34:54 +00:00
|
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
|
|
|
|
printf %s "checking for egrep -e... " >&6; }
|
|
|
|
if test ${ac_cv_path_EGREP_TRADITIONAL+y}
|
2024-02-17 16:48:46 +00:00
|
|
|
then :
|
|
|
|
printf %s "(cached) " >&6
|
2024-06-11 21:34:54 +00:00
|
|
|
else case e in #(
|
|
|
|
e) if test -z "$EGREP_TRADITIONAL"; then
|
|
|
|
ac_path_EGREP_TRADITIONAL_found=false
|
2024-02-17 16:48:46 +00:00
|
|
|
# Loop through the user's path and test for each of PROGNAME-LIST
|
|
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
|
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
|
|
|
do
|
|
|
|
IFS=$as_save_IFS
|
|
|
|
case $as_dir in #(((
|
|
|
|
'') as_dir=./ ;;
|
|
|
|
*/) ;;
|
|
|
|
*) as_dir=$as_dir/ ;;
|
|
|
|
esac
|
|
|
|
for ac_prog in grep ggrep
|
|
|
|
do
|
|
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2024-06-11 21:34:54 +00:00
|
|
|
ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
|
|
|
|
as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
|
|
|
|
# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
|
|
|
|
# Check for GNU $ac_path_EGREP_TRADITIONAL
|
|
|
|
case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
|
2024-02-17 16:48:46 +00:00
|
|
|
*GNU*)
|
2024-06-11 21:34:54 +00:00
|
|
|
ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
|
|
|
|
#(
|
2024-02-17 16:48:46 +00:00
|
|
|
*)
|
|
|
|
ac_count=0
|
|
|
|
printf %s 0123456789 >"conftest.in"
|
|
|
|
while :
|
|
|
|
do
|
|
|
|
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
|
|
mv "conftest.tmp" "conftest.in"
|
|
|
|
cp "conftest.in" "conftest.nl"
|
2024-06-11 21:34:54 +00:00
|
|
|
printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
|
|
|
|
"$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
2024-02-17 16:48:46 +00:00
|
|
|
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
|
|
|
as_fn_arith $ac_count + 1 && ac_count=$as_val
|
2024-06-11 21:34:54 +00:00
|
|
|
if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
|
2024-02-17 16:48:46 +00:00
|
|
|
# Best one so far, save it but keep looking for a better one
|
2024-06-11 21:34:54 +00:00
|
|
|
ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
|
|
|
|
ac_path_EGREP_TRADITIONAL_max=$ac_count
|
2024-02-17 16:48:46 +00:00
|
|
|
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
|
|
|
|
|
2024-06-11 21:34:54 +00:00
|
|
|
$ac_path_EGREP_TRADITIONAL_found && break 3
|
2024-02-17 16:48:46 +00:00
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
IFS=$as_save_IFS
|
2024-06-11 21:34:54 +00:00
|
|
|
if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
|
|
|
|
:
|
2024-02-17 16:48:46 +00:00
|
|
|
fi
|
|
|
|
else
|
2024-06-11 21:34:54 +00:00
|
|
|
ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
|
2024-02-17 16:48:46 +00:00
|
|
|
fi
|
|
|
|
|
2024-06-11 21:34:54 +00:00
|
|
|
if test "$ac_cv_path_EGREP_TRADITIONAL"
|
2024-02-17 16:48:46 +00:00
|
|
|
then :
|
2024-06-11 21:34:54 +00:00
|
|
|
ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
|
|
|
|
else case e in #(
|
|
|
|
e) if test -z "$EGREP_TRADITIONAL"; then
|
|
|
|
ac_path_EGREP_TRADITIONAL_found=false
|
2024-02-17 16:48:46 +00:00
|
|
|
# Loop through the user's path and test for each of PROGNAME-LIST
|
|
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
|
|
|
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
|
|
|
do
|
|
|
|
IFS=$as_save_IFS
|
|
|
|
case $as_dir in #(((
|
|
|
|
'') as_dir=./ ;;
|
|
|
|
*/) ;;
|
|
|
|
*) as_dir=$as_dir/ ;;
|
|
|
|
esac
|
|
|
|
for ac_prog in egrep
|
|
|
|
do
|
|
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
2024-06-11 21:34:54 +00:00
|
|
|
ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
|
|
|
|
as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
|
|
|
|
# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
|
|
|
|
# Check for GNU $ac_path_EGREP_TRADITIONAL
|
|
|
|
case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
|
2024-02-17 16:48:46 +00:00
|
|
|
*GNU*)
|
2024-06-11 21:34:54 +00:00
|
|
|
ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
|
|
|
|
#(
|
2024-02-17 16:48:46 +00:00
|
|
|
*)
|
|
|
|
ac_count=0
|
|
|
|
printf %s 0123456789 >"conftest.in"
|
|
|
|
while :
|
|
|
|
do
|
|
|
|
cat "conftest.in" "conftest.in" >"conftest.tmp"
|
|
|
|
mv "conftest.tmp" "conftest.in"
|
|
|
|
cp "conftest.in" "conftest.nl"
|
2024-06-11 21:34:54 +00:00
|
|
|
printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
|
|
|
|
"$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
2024-02-17 16:48:46 +00:00
|
|
|
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
|
|
|
as_fn_arith $ac_count + 1 && ac_count=$as_val
|
2024-06-11 21:34:54 +00:00
|
|
|
if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
|
2024-02-17 16:48:46 +00:00
|
|
|
# Best one so far, save it but keep looking for a better one
|
2024-06-11 21:34:54 +00:00
|
|
|
ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
|
|
|
|
ac_path_EGREP_TRADITIONAL_max=$ac_count
|
2024-02-17 16:48:46 +00:00
|
|
|
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
|
|
|
|
|
2024-06-11 21:34:54 +00:00
|
|
|
$ac_path_EGREP_TRADITIONAL_found && break 3
|
2024-02-17 16:48:46 +00:00
|
|
|
done
|
|
|
|
done
|
|
|
|
done
|
|
|
|
IFS=$as_save_IFS
|
2024-06-11 21:34:54 +00:00
|
|
|
if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
|
2024-02-17 16:48:46 +00:00
|
|
|
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
|
|
|
|
fi
|
|
|
|
else
|
2024-06-11 21:34:54 +00:00
|
|
|
ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
|
2024-02-17 16:48:46 +00:00
|
|
|
fi
|
2024-06-11 21:34:54 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi ;;
|
|
|
|
esac
|
2024-02-17 16:48:46 +00:00
|
|
|
fi
|
2024-06-11 21:34:54 +00:00
|
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
|
|
|
|
printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
|
|
|
|
EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
|
2024-02-17 16:48:46 +00:00
|
|
|
|
|
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for proc_getchildren_rusage in process.defs" >&5
|
|
|
|
printf %s "checking for proc_getchildren_rusage in process.defs... " >&6; }
|
|
|
|
if test ${libc_cv_hurd_rpc_proc_getchildren_rusage+y}
|
|
|
|
then :
|
|
|
|
printf %s "(cached) " >&6
|
2024-06-11 21:34:54 +00:00
|
|
|
else case e in #(
|
|
|
|
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
2024-02-17 16:48:46 +00:00
|
|
|
/* end confdefs.h. */
|
|
|
|
#include <hurd/process.defs>
|
|
|
|
|
|
|
|
_ACEOF
|
|
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
2024-06-11 21:34:54 +00:00
|
|
|
$EGREP_TRADITIONAL "proc_getchildren_rusage" >/dev/null 2>&1
|
2024-02-17 16:48:46 +00:00
|
|
|
then :
|
|
|
|
libc_cv_hurd_rpc_proc_getchildren_rusage=yes
|
2024-06-11 21:34:54 +00:00
|
|
|
else case e in #(
|
|
|
|
e) libc_cv_hurd_rpc_proc_getchildren_rusage=no ;;
|
|
|
|
esac
|
2024-02-17 16:48:46 +00:00
|
|
|
fi
|
|
|
|
rm -rf conftest*
|
2024-06-11 21:34:54 +00:00
|
|
|
;;
|
|
|
|
esac
|
2024-02-17 16:48:46 +00:00
|
|
|
fi
|
|
|
|
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hurd_rpc_proc_getchildren_rusage" >&5
|
|
|
|
printf "%s\n" "$libc_cv_hurd_rpc_proc_getchildren_rusage" >&6; }
|
|
|
|
if test $libc_cv_hurd_rpc_proc_getchildren_rusage = yes; then
|
|
|
|
printf "%s\n" "#define HAVE_HURD_PROC_GETCHILDREN_RUSAGE 1" >>confdefs.h
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2015-08-26 21:48:33 +00:00
|
|
|
if test -n "$sysheaders"; then
|
|
|
|
CPPFLAGS=$OLD_CPPFLAGS
|
|
|
|
fi
|
2021-05-03 06:12:11 +00:00
|
|
|
|
|
|
|
# Hurd has libpthread as a separate library.
|
|
|
|
pthread_in_libc=no
|
2023-06-29 18:34:16 +00:00
|
|
|
|