chiark / gitweb /
eglibc (2.11.3-4+deb6u3) squeeze-lts; urgency=medium
[eglibc.git] / sysdeps / mach / configure
1 # This file is generated from configure.in by Autoconf.  DO NOT EDIT!
2
3 if test -n "$ac_tool_prefix"; then
4   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
5 set dummy ${ac_tool_prefix}mig; ac_word=$2
6 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7 $as_echo_n "checking for $ac_word... " >&6; }
8 if test "${ac_cv_prog_MIG+set}" = set; then
9   $as_echo_n "(cached) " >&6
10 else
11   if test -n "$MIG"; then
12   ac_cv_prog_MIG="$MIG" # Let the user override the test.
13 else
14 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15 for as_dir in $PATH
16 do
17   IFS=$as_save_IFS
18   test -z "$as_dir" && as_dir=.
19   for ac_exec_ext in '' $ac_executable_extensions; do
20   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21     ac_cv_prog_MIG="${ac_tool_prefix}mig"
22     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23     break 2
24   fi
25 done
26 done
27 IFS=$as_save_IFS
28
29 fi
30 fi
31 MIG=$ac_cv_prog_MIG
32 if test -n "$MIG"; then
33   { $as_echo "$as_me:$LINENO: result: $MIG" >&5
34 $as_echo "$MIG" >&6; }
35 else
36   { $as_echo "$as_me:$LINENO: result: no" >&5
37 $as_echo "no" >&6; }
38 fi
39
40
41 fi
42 if test -z "$ac_cv_prog_MIG"; then
43   ac_ct_MIG=$MIG
44   # Extract the first word of "mig", so it can be a program name with args.
45 set dummy mig; ac_word=$2
46 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
47 $as_echo_n "checking for $ac_word... " >&6; }
48 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
49   $as_echo_n "(cached) " >&6
50 else
51   if test -n "$ac_ct_MIG"; then
52   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
53 else
54 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55 for as_dir in $PATH
56 do
57   IFS=$as_save_IFS
58   test -z "$as_dir" && as_dir=.
59   for ac_exec_ext in '' $ac_executable_extensions; do
60   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
61     ac_cv_prog_ac_ct_MIG="mig"
62     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
63     break 2
64   fi
65 done
66 done
67 IFS=$as_save_IFS
68
69 fi
70 fi
71 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
72 if test -n "$ac_ct_MIG"; then
73   { $as_echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
74 $as_echo "$ac_ct_MIG" >&6; }
75 else
76   { $as_echo "$as_me:$LINENO: result: no" >&5
77 $as_echo "no" >&6; }
78 fi
79
80   if test "x$ac_ct_MIG" = x; then
81     MIG="MISSING"
82   else
83     case $cross_compiling:$ac_tool_warned in
84 yes:)
85 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
86 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
87 ac_tool_warned=yes ;;
88 esac
89     MIG=$ac_ct_MIG
90   fi
91 else
92   MIG="$ac_cv_prog_MIG"
93 fi
94
95 if test "x$MIG" = xMISSING; then
96   { { $as_echo "$as_me:$LINENO: error: cannot find required build tool mig" >&5
97 $as_echo "$as_me: error: cannot find required build tool mig" >&2;}
98    { (exit 1); exit 1; }; }
99 fi
100
101 ### Sanity checks for Mach header installation
102
103
104 { $as_echo "$as_me:$LINENO: checking for mach/mach_types.h" >&5
105 $as_echo_n "checking for mach/mach_types.h... " >&6; }
106 if test "${ac_cv_header_mach_mach_types_h+set}" = set; then
107   $as_echo_n "(cached) " >&6
108 else
109   cat >conftest.$ac_ext <<_ACEOF
110 /* confdefs.h.  */
111 _ACEOF
112 cat confdefs.h >>conftest.$ac_ext
113 cat >>conftest.$ac_ext <<_ACEOF
114 /* end confdefs.h.  */
115 #include <mach/mach_types.h>
116 _ACEOF
117 if { (ac_try="$ac_cpp conftest.$ac_ext"
118 case "(($ac_try" in
119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
120   *) ac_try_echo=$ac_try;;
121 esac
122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
123 $as_echo "$ac_try_echo") >&5
124   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
125   ac_status=$?
126   grep -v '^ *+' conftest.er1 >conftest.err
127   rm -f conftest.er1
128   cat conftest.err >&5
129   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
130   (exit $ac_status); } >/dev/null && {
131          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
132          test ! -s conftest.err
133        }; then
134   ac_cv_header_mach_mach_types_h=yes
135 else
136   $as_echo "$as_me: failed program was:" >&5
137 sed 's/^/| /' conftest.$ac_ext >&5
138
139   ac_cv_header_mach_mach_types_h=no
140 fi
141
142 rm -f conftest.err conftest.$ac_ext
143 fi
144 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mach_mach_types_h" >&5
145 $as_echo "$ac_cv_header_mach_mach_types_h" >&6; }
146 if test "x$ac_cv_header_mach_mach_types_h" = x""yes; then
147   :
148 else
149   { { $as_echo "$as_me:$LINENO: error: cannot find Mach headers" >&5
150 $as_echo "$as_me: error: cannot find Mach headers" >&2;}
151    { (exit 1); exit 1; }; }
152 fi
153
154
155 { $as_echo "$as_me:$LINENO: checking for mach/mach_types.defs" >&5
156 $as_echo_n "checking for mach/mach_types.defs... " >&6; }
157 if test "${ac_cv_header_mach_mach_types_defs+set}" = set; then
158   $as_echo_n "(cached) " >&6
159 else
160   cat >conftest.$ac_ext <<_ACEOF
161 /* confdefs.h.  */
162 _ACEOF
163 cat confdefs.h >>conftest.$ac_ext
164 cat >>conftest.$ac_ext <<_ACEOF
165 /* end confdefs.h.  */
166 #include <mach/mach_types.defs>
167 _ACEOF
168 if { (ac_try="$ac_cpp conftest.$ac_ext"
169 case "(($ac_try" in
170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
171   *) ac_try_echo=$ac_try;;
172 esac
173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
174 $as_echo "$ac_try_echo") >&5
175   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
176   ac_status=$?
177   grep -v '^ *+' conftest.er1 >conftest.err
178   rm -f conftest.er1
179   cat conftest.err >&5
180   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
181   (exit $ac_status); } >/dev/null && {
182          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
183          test ! -s conftest.err
184        }; then
185   ac_cv_header_mach_mach_types_defs=yes
186 else
187   $as_echo "$as_me: failed program was:" >&5
188 sed 's/^/| /' conftest.$ac_ext >&5
189
190   ac_cv_header_mach_mach_types_defs=no
191 fi
192
193 rm -f conftest.err conftest.$ac_ext
194 fi
195 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mach_mach_types_defs" >&5
196 $as_echo "$ac_cv_header_mach_mach_types_defs" >&6; }
197 if test "x$ac_cv_header_mach_mach_types_defs" = x""yes; then
198   :
199 else
200   { { $as_echo "$as_me:$LINENO: error: cannot find Mach .defs files" >&5
201 $as_echo "$as_me: error: cannot find Mach .defs files" >&2;}
202    { (exit 1); exit 1; }; }
203 fi
204
205
206
207
208
209 { $as_echo "$as_me:$LINENO: checking for task_t in mach/mach_types.h" >&5
210 $as_echo_n "checking for task_t in mach/mach_types.h... " >&6; }
211 if test "${libc_cv_mach_task_t+set}" = set; then
212   $as_echo_n "(cached) " >&6
213 else
214   cat >conftest.$ac_ext <<_ACEOF
215 /* confdefs.h.  */
216 _ACEOF
217 cat confdefs.h >>conftest.$ac_ext
218 cat >>conftest.$ac_ext <<_ACEOF
219 /* end confdefs.h.  */
220 #include <mach/mach_types.h>
221 int
222 main ()
223 {
224 extern task_t foo;
225   ;
226   return 0;
227 }
228 _ACEOF
229 rm -f conftest.$ac_objext
230 if { (ac_try="$ac_compile"
231 case "(($ac_try" in
232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
233   *) ac_try_echo=$ac_try;;
234 esac
235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
236 $as_echo "$ac_try_echo") >&5
237   (eval "$ac_compile") 2>conftest.er1
238   ac_status=$?
239   grep -v '^ *+' conftest.er1 >conftest.err
240   rm -f conftest.er1
241   cat conftest.err >&5
242   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
243   (exit $ac_status); } && {
244          test -z "$ac_c_werror_flag" ||
245          test ! -s conftest.err
246        } && test -s conftest.$ac_objext; then
247   libc_cv_mach_task_t=task_t
248 else
249   $as_echo "$as_me: failed program was:" >&5
250 sed 's/^/| /' conftest.$ac_ext >&5
251
252         libc_cv_mach_task_t=task_port_t
253 fi
254
255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
256 fi
257 { $as_echo "$as_me:$LINENO: result: $libc_cv_mach_task_t" >&5
258 $as_echo "$libc_cv_mach_task_t" >&6; }
259 if test $libc_cv_mach_task_t != task_t; then
260   DEFINES="$DEFINES -Dtask_t=task_port_t"
261 fi
262 { $as_echo "$as_me:$LINENO: checking for thread_t in mach/mach_types.h" >&5
263 $as_echo_n "checking for thread_t in mach/mach_types.h... " >&6; }
264 if test "${libc_cv_mach_thread_t+set}" = set; then
265   $as_echo_n "(cached) " >&6
266 else
267   cat >conftest.$ac_ext <<_ACEOF
268 /* confdefs.h.  */
269 _ACEOF
270 cat confdefs.h >>conftest.$ac_ext
271 cat >>conftest.$ac_ext <<_ACEOF
272 /* end confdefs.h.  */
273 #include <mach/mach_types.h>
274 int
275 main ()
276 {
277 extern thread_t foo;
278   ;
279   return 0;
280 }
281 _ACEOF
282 rm -f conftest.$ac_objext
283 if { (ac_try="$ac_compile"
284 case "(($ac_try" in
285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
286   *) ac_try_echo=$ac_try;;
287 esac
288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
289 $as_echo "$ac_try_echo") >&5
290   (eval "$ac_compile") 2>conftest.er1
291   ac_status=$?
292   grep -v '^ *+' conftest.er1 >conftest.err
293   rm -f conftest.er1
294   cat conftest.err >&5
295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
296   (exit $ac_status); } && {
297          test -z "$ac_c_werror_flag" ||
298          test ! -s conftest.err
299        } && test -s conftest.$ac_objext; then
300   libc_cv_mach_thread_t=thread_t
301 else
302   $as_echo "$as_me: failed program was:" >&5
303 sed 's/^/| /' conftest.$ac_ext >&5
304
305         libc_cv_mach_thread_t=thread_port_t
306 fi
307
308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
309 fi
310 { $as_echo "$as_me:$LINENO: result: $libc_cv_mach_thread_t" >&5
311 $as_echo "$libc_cv_mach_thread_t" >&6; }
312 if test $libc_cv_mach_thread_t != thread_t; then
313   DEFINES="$DEFINES -Dthread_t=thread_port_t"
314 fi
315
316 { $as_echo "$as_me:$LINENO: checking for creation_time in task_basic_info" >&5
317 $as_echo_n "checking for creation_time in task_basic_info... " >&6; }
318 if test "${libc_cv_mach_task_creation_time+set}" = set; then
319   $as_echo_n "(cached) " >&6
320 else
321   cat >conftest.$ac_ext <<_ACEOF
322 /* confdefs.h.  */
323 _ACEOF
324 cat confdefs.h >>conftest.$ac_ext
325 cat >>conftest.$ac_ext <<_ACEOF
326 /* end confdefs.h.  */
327 #include <mach/task_info.h>
328 int
329 main ()
330 {
331
332 extern struct task_basic_info *i;
333 long s = i->creation_time.seconds;
334
335   ;
336   return 0;
337 }
338 _ACEOF
339 rm -f conftest.$ac_objext
340 if { (ac_try="$ac_compile"
341 case "(($ac_try" in
342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
343   *) ac_try_echo=$ac_try;;
344 esac
345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
346 $as_echo "$ac_try_echo") >&5
347   (eval "$ac_compile") 2>conftest.er1
348   ac_status=$?
349   grep -v '^ *+' conftest.er1 >conftest.err
350   rm -f conftest.er1
351   cat conftest.err >&5
352   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
353   (exit $ac_status); } && {
354          test -z "$ac_c_werror_flag" ||
355          test ! -s conftest.err
356        } && test -s conftest.$ac_objext; then
357   libc_cv_mach_task_creation_time=yes
358 else
359   $as_echo "$as_me: failed program was:" >&5
360 sed 's/^/| /' conftest.$ac_ext >&5
361
362         libc_cv_mach_task_creation_time=no
363 fi
364
365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
366 fi
367 { $as_echo "$as_me:$LINENO: result: $libc_cv_mach_task_creation_time" >&5
368 $as_echo "$libc_cv_mach_task_creation_time" >&6; }
369 if test $libc_cv_mach_task_creation_time = no; then
370   { { $as_echo "$as_me:$LINENO: error: you need Mach headers supporting task_info.creation_time" >&5
371 $as_echo "$as_me: error: you need Mach headers supporting task_info.creation_time" >&2;}
372    { (exit 1); exit 1; }; }
373 fi
374
375 mach_interface_list=
376 for ifc in mach mach4 \
377            clock clock_priv host_priv host_security ledger lock_set \
378            processor processor_set task thread_act vm_map \
379            memory_object memory_object_default default_pager \
380            i386/mach_i386 \
381            ; do
382   as_ac_Header=`$as_echo "ac_cv_header_mach/${ifc}.defs" | $as_tr_sh`
383 { $as_echo "$as_me:$LINENO: checking for mach/${ifc}.defs" >&5
384 $as_echo_n "checking for mach/${ifc}.defs... " >&6; }
385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
386   $as_echo_n "(cached) " >&6
387 else
388   cat >conftest.$ac_ext <<_ACEOF
389 /* confdefs.h.  */
390 _ACEOF
391 cat confdefs.h >>conftest.$ac_ext
392 cat >>conftest.$ac_ext <<_ACEOF
393 /* end confdefs.h.  */
394 #include <mach/${ifc}.defs>
395 _ACEOF
396 if { (ac_try="$ac_cpp conftest.$ac_ext"
397 case "(($ac_try" in
398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
399   *) ac_try_echo=$ac_try;;
400 esac
401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
402 $as_echo "$ac_try_echo") >&5
403   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
404   ac_status=$?
405   grep -v '^ *+' conftest.er1 >conftest.err
406   rm -f conftest.er1
407   cat conftest.err >&5
408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
409   (exit $ac_status); } >/dev/null && {
410          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
411          test ! -s conftest.err
412        }; then
413   eval "$as_ac_Header=yes"
414 else
415   $as_echo "$as_me: failed program was:" >&5
416 sed 's/^/| /' conftest.$ac_ext >&5
417
418   eval "$as_ac_Header=no"
419 fi
420
421 rm -f conftest.err conftest.$ac_ext
422 fi
423 ac_res=`eval 'as_val=${'$as_ac_Header'}
424                  $as_echo "$as_val"'`
425                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
426 $as_echo "$ac_res" >&6; }
427 as_val=`eval 'as_val=${'$as_ac_Header'}
428                  $as_echo "$as_val"'`
429    if test "x$as_val" = x""yes; then
430     mach_interface_list="$mach_interface_list $ifc"
431 fi
432
433
434 done
435 if test "x$mach_interface_list" = x; then
436   { { $as_echo "$as_me:$LINENO: error: what manner of Mach is this?" >&5
437 $as_echo "$as_me: error: what manner of Mach is this?" >&2;}
438    { (exit 1); exit 1; }; }
439 fi
440
441 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
442 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
443 if test "${ac_cv_path_GREP+set}" = set; then
444   $as_echo_n "(cached) " >&6
445 else
446   if test -z "$GREP"; then
447   ac_path_GREP_found=false
448   # Loop through the user's path and test for each of PROGNAME-LIST
449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
450 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
451 do
452   IFS=$as_save_IFS
453   test -z "$as_dir" && as_dir=.
454   for ac_prog in grep ggrep; do
455     for ac_exec_ext in '' $ac_executable_extensions; do
456       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
457       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
458 # Check for GNU ac_path_GREP and select it if it is found.
459   # Check for GNU $ac_path_GREP
460 case `"$ac_path_GREP" --version 2>&1` in
461 *GNU*)
462   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
463 *)
464   ac_count=0
465   $as_echo_n 0123456789 >"conftest.in"
466   while :
467   do
468     cat "conftest.in" "conftest.in" >"conftest.tmp"
469     mv "conftest.tmp" "conftest.in"
470     cp "conftest.in" "conftest.nl"
471     $as_echo 'GREP' >> "conftest.nl"
472     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
473     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
474     ac_count=`expr $ac_count + 1`
475     if test $ac_count -gt ${ac_path_GREP_max-0}; then
476       # Best one so far, save it but keep looking for a better one
477       ac_cv_path_GREP="$ac_path_GREP"
478       ac_path_GREP_max=$ac_count
479     fi
480     # 10*(2^10) chars as input seems more than enough
481     test $ac_count -gt 10 && break
482   done
483   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
484 esac
485
486       $ac_path_GREP_found && break 3
487     done
488   done
489 done
490 IFS=$as_save_IFS
491   if test -z "$ac_cv_path_GREP"; then
492     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
493 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
494    { (exit 1); exit 1; }; }
495   fi
496 else
497   ac_cv_path_GREP=$GREP
498 fi
499
500 fi
501 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
502 $as_echo "$ac_cv_path_GREP" >&6; }
503  GREP="$ac_cv_path_GREP"
504
505
506 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
507 $as_echo_n "checking for egrep... " >&6; }
508 if test "${ac_cv_path_EGREP+set}" = set; then
509   $as_echo_n "(cached) " >&6
510 else
511   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
512    then ac_cv_path_EGREP="$GREP -E"
513    else
514      if test -z "$EGREP"; then
515   ac_path_EGREP_found=false
516   # Loop through the user's path and test for each of PROGNAME-LIST
517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
518 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
519 do
520   IFS=$as_save_IFS
521   test -z "$as_dir" && as_dir=.
522   for ac_prog in egrep; do
523     for ac_exec_ext in '' $ac_executable_extensions; do
524       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
525       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
526 # Check for GNU ac_path_EGREP and select it if it is found.
527   # Check for GNU $ac_path_EGREP
528 case `"$ac_path_EGREP" --version 2>&1` in
529 *GNU*)
530   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
531 *)
532   ac_count=0
533   $as_echo_n 0123456789 >"conftest.in"
534   while :
535   do
536     cat "conftest.in" "conftest.in" >"conftest.tmp"
537     mv "conftest.tmp" "conftest.in"
538     cp "conftest.in" "conftest.nl"
539     $as_echo 'EGREP' >> "conftest.nl"
540     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
541     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
542     ac_count=`expr $ac_count + 1`
543     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
544       # Best one so far, save it but keep looking for a better one
545       ac_cv_path_EGREP="$ac_path_EGREP"
546       ac_path_EGREP_max=$ac_count
547     fi
548     # 10*(2^10) chars as input seems more than enough
549     test $ac_count -gt 10 && break
550   done
551   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
552 esac
553
554       $ac_path_EGREP_found && break 3
555     done
556   done
557 done
558 IFS=$as_save_IFS
559   if test -z "$ac_cv_path_EGREP"; then
560     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
561 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
562    { (exit 1); exit 1; }; }
563   fi
564 else
565   ac_cv_path_EGREP=$EGREP
566 fi
567
568    fi
569 fi
570 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
571 $as_echo "$ac_cv_path_EGREP" >&6; }
572  EGREP="$ac_cv_path_EGREP"
573
574
575 { $as_echo "$as_me:$LINENO: checking for host_page_size in mach_host.defs" >&5
576 $as_echo_n "checking for host_page_size in mach_host.defs... " >&6; }
577 if test "${libc_cv_mach_host_page_size+set}" = set; then
578   $as_echo_n "(cached) " >&6
579 else
580   cat >conftest.$ac_ext <<_ACEOF
581 /* confdefs.h.  */
582 _ACEOF
583 cat confdefs.h >>conftest.$ac_ext
584 cat >>conftest.$ac_ext <<_ACEOF
585 /* end confdefs.h.  */
586 #include <mach/mach_host.defs>
587
588 _ACEOF
589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
590   $EGREP "host_page_size" >/dev/null 2>&1; then
591   libc_cv_mach_host_page_size=yes
592 else
593   libc_cv_mach_host_page_size=no
594 fi
595 rm -f conftest*
596
597 fi
598 { $as_echo "$as_me:$LINENO: result: $libc_cv_mach_host_page_size" >&5
599 $as_echo "$libc_cv_mach_host_page_size" >&6; }
600 if test $libc_cv_mach_host_page_size = yes; then
601   cat >>confdefs.h <<\_ACEOF
602 #define HAVE_HOST_PAGE_SIZE 1
603 _ACEOF
604
605 fi
606
607 { $as_echo "$as_me:$LINENO: checking for mach/machine/ndr_def.h" >&5
608 $as_echo_n "checking for mach/machine/ndr_def.h... " >&6; }
609 if test "${ac_cv_header_mach_machine_ndr_def_h+set}" = set; then
610   $as_echo_n "(cached) " >&6
611 else
612   cat >conftest.$ac_ext <<_ACEOF
613 /* confdefs.h.  */
614 _ACEOF
615 cat confdefs.h >>conftest.$ac_ext
616 cat >>conftest.$ac_ext <<_ACEOF
617 /* end confdefs.h.  */
618 #include <mach/machine/ndr_def.h>
619 _ACEOF
620 if { (ac_try="$ac_cpp conftest.$ac_ext"
621 case "(($ac_try" in
622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
623   *) ac_try_echo=$ac_try;;
624 esac
625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
626 $as_echo "$ac_try_echo") >&5
627   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
628   ac_status=$?
629   grep -v '^ *+' conftest.er1 >conftest.err
630   rm -f conftest.er1
631   cat conftest.err >&5
632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
633   (exit $ac_status); } >/dev/null && {
634          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
635          test ! -s conftest.err
636        }; then
637   ac_cv_header_mach_machine_ndr_def_h=yes
638 else
639   $as_echo "$as_me: failed program was:" >&5
640 sed 's/^/| /' conftest.$ac_ext >&5
641
642   ac_cv_header_mach_machine_ndr_def_h=no
643 fi
644
645 rm -f conftest.err conftest.$ac_ext
646 fi
647 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mach_machine_ndr_def_h" >&5
648 $as_echo "$ac_cv_header_mach_machine_ndr_def_h" >&6; }
649 if test "x$ac_cv_header_mach_machine_ndr_def_h" = x""yes; then
650     DEFINES="$DEFINES -DNDR_DEF_HEADER='<mach/machine/ndr_def.h>'"
651 else
652   { $as_echo "$as_me:$LINENO: checking for machine/ndr_def.h" >&5
653 $as_echo_n "checking for machine/ndr_def.h... " >&6; }
654 if test "${ac_cv_header_machine_ndr_def_h+set}" = set; then
655   $as_echo_n "(cached) " >&6
656 else
657   cat >conftest.$ac_ext <<_ACEOF
658 /* confdefs.h.  */
659 _ACEOF
660 cat confdefs.h >>conftest.$ac_ext
661 cat >>conftest.$ac_ext <<_ACEOF
662 /* end confdefs.h.  */
663 #include <machine/ndr_def.h>
664 _ACEOF
665 if { (ac_try="$ac_cpp conftest.$ac_ext"
666 case "(($ac_try" in
667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
668   *) ac_try_echo=$ac_try;;
669 esac
670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
671 $as_echo "$ac_try_echo") >&5
672   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
673   ac_status=$?
674   grep -v '^ *+' conftest.er1 >conftest.err
675   rm -f conftest.er1
676   cat conftest.err >&5
677   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
678   (exit $ac_status); } >/dev/null && {
679          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
680          test ! -s conftest.err
681        }; then
682   ac_cv_header_machine_ndr_def_h=yes
683 else
684   $as_echo "$as_me: failed program was:" >&5
685 sed 's/^/| /' conftest.$ac_ext >&5
686
687   ac_cv_header_machine_ndr_def_h=no
688 fi
689
690 rm -f conftest.err conftest.$ac_ext
691 fi
692 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_machine_ndr_def_h" >&5
693 $as_echo "$ac_cv_header_machine_ndr_def_h" >&6; }
694 if test "x$ac_cv_header_machine_ndr_def_h" = x""yes; then
695     DEFINES="$DEFINES -DNDR_DEF_HEADER='<machine/ndr_def.h>'"
696 fi
697
698
699 fi
700
701
702
703 { $as_echo "$as_me:$LINENO: checking for i386_io_perm_modify in mach_i386.defs" >&5
704 $as_echo_n "checking for i386_io_perm_modify in mach_i386.defs... " >&6; }
705 if test "${libc_cv_mach_i386_ioports+set}" = set; then
706   $as_echo_n "(cached) " >&6
707 else
708   cat >conftest.$ac_ext <<_ACEOF
709 /* confdefs.h.  */
710 _ACEOF
711 cat confdefs.h >>conftest.$ac_ext
712 cat >>conftest.$ac_ext <<_ACEOF
713 /* end confdefs.h.  */
714 #include <mach/i386/mach_i386.defs>
715
716 _ACEOF
717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
718   $EGREP "i386_io_perm_modify" >/dev/null 2>&1; then
719   libc_cv_mach_i386_ioports=yes
720 else
721   libc_cv_mach_i386_ioports=no
722 fi
723 rm -f conftest*
724
725 fi
726 { $as_echo "$as_me:$LINENO: result: $libc_cv_mach_i386_ioports" >&5
727 $as_echo "$libc_cv_mach_i386_ioports" >&6; }
728 if test $libc_cv_mach_i386_ioports = yes; then
729   cat >>confdefs.h <<\_ACEOF
730 #define HAVE_I386_IO_PERM_MODIFY 1
731 _ACEOF
732
733 fi
734
735 { $as_echo "$as_me:$LINENO: checking for i386_set_gdt in mach_i386.defs" >&5
736 $as_echo_n "checking for i386_set_gdt in mach_i386.defs... " >&6; }
737 if test "${libc_cv_mach_i386_gdt+set}" = set; then
738   $as_echo_n "(cached) " >&6
739 else
740   cat >conftest.$ac_ext <<_ACEOF
741 /* confdefs.h.  */
742 _ACEOF
743 cat confdefs.h >>conftest.$ac_ext
744 cat >>conftest.$ac_ext <<_ACEOF
745 /* end confdefs.h.  */
746 #include <mach/i386/mach_i386.defs>
747
748 _ACEOF
749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
750   $EGREP "i386_set_gdt" >/dev/null 2>&1; then
751   libc_cv_mach_i386_gdt=yes
752 else
753   libc_cv_mach_i386_gdt=no
754 fi
755 rm -f conftest*
756
757 fi
758 { $as_echo "$as_me:$LINENO: result: $libc_cv_mach_i386_gdt" >&5
759 $as_echo "$libc_cv_mach_i386_gdt" >&6; }
760 if test $libc_cv_mach_i386_gdt = yes; then
761   cat >>confdefs.h <<\_ACEOF
762 #define HAVE_I386_SET_GDT 1
763 _ACEOF
764
765 fi
766
767
768
769 # See if mig groks `retcode'.
770 { $as_echo "$as_me:$LINENO: checking whether $MIG supports the retcode keyword" >&5
771 $as_echo_n "checking whether $MIG supports the retcode keyword... " >&6; }
772 if test "${hurd_cv_mig_retcode+set}" = set; then
773   $as_echo_n "(cached) " >&6
774 else
775   cat > conftest.defs <<\EOF
776 #include <mach/std_types.defs>
777 #include <mach/mach_types.defs>
778 subsystem foobar 1000;
779 type reply_port_t = polymorphic | MACH_MSG_TYPE_PORT_SEND_ONCE
780         ctype: mach_port_t;
781 simpleroutine foobar_reply (
782         reply_port: reply_port_t;
783         err: kern_return_t, RetCode);
784 EOF
785 if { ac_try='CC="${CC}" ${MIG-false} -n conftest.defs 1>&5'
786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
787   (eval $ac_try) 2>&5
788   ac_status=$?
789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
790   (exit $ac_status); }; }; then
791   hurd_cv_mig_retcode=yes
792 else
793   hurd_cv_mig_retcode=no
794 fi
795 rm -f conftest*
796 fi
797 { $as_echo "$as_me:$LINENO: result: $hurd_cv_mig_retcode" >&5
798 $as_echo "$hurd_cv_mig_retcode" >&6; }
799 if test $hurd_cv_mig_retcode = yes; then
800   cat >>confdefs.h <<\_ACEOF
801 #define HAVE_MIG_RETCODE 1
802 _ACEOF
803
804 fi