1 # This file is generated from configure.ac by Autoconf. DO NOT EDIT!
3 printf "%s\n" "#define NO_RTLD_HIDDEN 1" >>confdefs.h
6 if test -n "$sysheaders"; then
8 CPPFLAGS="$CPPFLAGS $SYSINCLUDES"
13 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Hurd header version" >&5
14 printf %s "checking Hurd header version... " >&6; }
15 if test ${libc_cv_hurd_version+y}
17 printf %s "(cached) " >&6
19 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21 #include <hurd/version.h>
26 #define NEED_VERSION 20020609
27 #if HURD_INTERFACE_VERSION < NEED_VERSION
28 # error Hurd version too old: HURD_INTERFACE_VERSION < NEED_VERSION
34 if ac_fn_c_try_cpp "$LINENO"
36 libc_cv_hurd_version=ok
38 libc_cv_hurd_version=bad
40 rm -f conftest.err conftest.i conftest.$ac_ext
42 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hurd_version" >&5
43 printf "%s\n" "$libc_cv_hurd_version" >&6; }
44 if test "x$libc_cv_hurd_version" != xok; then
45 as_fn_error $? "Hurd headers not installed or too old" "$LINENO" 5
51 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
52 printf %s "checking for grep that handles long lines and -e... " >&6; }
53 if test ${ac_cv_path_GREP+y}
55 printf %s "(cached) " >&6
57 if test -z "$GREP"; then
58 ac_path_GREP_found=false
59 # Loop through the user's path and test for each of PROGNAME-LIST
60 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
61 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
69 for ac_prog in grep ggrep
71 for ac_exec_ext in '' $ac_executable_extensions; do
72 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
73 as_fn_executable_p "$ac_path_GREP" || continue
74 # Check for GNU ac_path_GREP and select it if it is found.
75 # Check for GNU $ac_path_GREP
76 case `"$ac_path_GREP" --version 2>&1` in
78 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
81 printf %s 0123456789 >"conftest.in"
84 cat "conftest.in" "conftest.in" >"conftest.tmp"
85 mv "conftest.tmp" "conftest.in"
86 cp "conftest.in" "conftest.nl"
87 printf "%s\n" 'GREP' >> "conftest.nl"
88 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
89 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
90 as_fn_arith $ac_count + 1 && ac_count=$as_val
91 if test $ac_count -gt ${ac_path_GREP_max-0}; then
92 # Best one so far, save it but keep looking for a better one
93 ac_cv_path_GREP="$ac_path_GREP"
94 ac_path_GREP_max=$ac_count
96 # 10*(2^10) chars as input seems more than enough
97 test $ac_count -gt 10 && break
99 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
102 $ac_path_GREP_found && break 3
107 if test -z "$ac_cv_path_GREP"; then
108 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
111 ac_cv_path_GREP=$GREP
115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
116 printf "%s\n" "$ac_cv_path_GREP" >&6; }
117 GREP="$ac_cv_path_GREP"
120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
121 printf %s "checking for egrep... " >&6; }
122 if test ${ac_cv_path_EGREP+y}
124 printf %s "(cached) " >&6
126 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
127 then ac_cv_path_EGREP="$GREP -E"
129 if test -z "$EGREP"; then
130 ac_path_EGREP_found=false
131 # Loop through the user's path and test for each of PROGNAME-LIST
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
139 *) as_dir=$as_dir/ ;;
143 for ac_exec_ext in '' $ac_executable_extensions; do
144 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
145 as_fn_executable_p "$ac_path_EGREP" || continue
146 # Check for GNU ac_path_EGREP and select it if it is found.
147 # Check for GNU $ac_path_EGREP
148 case `"$ac_path_EGREP" --version 2>&1` in
150 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
153 printf %s 0123456789 >"conftest.in"
156 cat "conftest.in" "conftest.in" >"conftest.tmp"
157 mv "conftest.tmp" "conftest.in"
158 cp "conftest.in" "conftest.nl"
159 printf "%s\n" 'EGREP' >> "conftest.nl"
160 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
161 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
162 as_fn_arith $ac_count + 1 && ac_count=$as_val
163 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
164 # Best one so far, save it but keep looking for a better one
165 ac_cv_path_EGREP="$ac_path_EGREP"
166 ac_path_EGREP_max=$ac_count
168 # 10*(2^10) chars as input seems more than enough
169 test $ac_count -gt 10 && break
171 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
174 $ac_path_EGREP_found && break 3
179 if test -z "$ac_cv_path_EGREP"; then
180 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
183 ac_cv_path_EGREP=$EGREP
188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
189 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
190 EGREP="$ac_cv_path_EGREP"
193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for proc_getchildren_rusage in process.defs" >&5
194 printf %s "checking for proc_getchildren_rusage in process.defs... " >&6; }
195 if test ${libc_cv_hurd_rpc_proc_getchildren_rusage+y}
197 printf %s "(cached) " >&6
199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
200 /* end confdefs.h. */
201 #include <hurd/process.defs>
204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
205 $EGREP "proc_getchildren_rusage" >/dev/null 2>&1
207 libc_cv_hurd_rpc_proc_getchildren_rusage=yes
209 libc_cv_hurd_rpc_proc_getchildren_rusage=no
214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hurd_rpc_proc_getchildren_rusage" >&5
215 printf "%s\n" "$libc_cv_hurd_rpc_proc_getchildren_rusage" >&6; }
216 if test $libc_cv_hurd_rpc_proc_getchildren_rusage = yes; then
217 printf "%s\n" "#define HAVE_HURD_PROC_GETCHILDREN_RUSAGE 1" >>confdefs.h
222 if test -n "$sysheaders"; then
223 CPPFLAGS=$OLD_CPPFLAGS
226 # Hurd has libpthread as a separate library.