1 # This file is generated from configure.in by Autoconf. DO NOT EDIT!
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
11 if test -n "$MIG"; then
12 ac_cv_prog_MIG="$MIG" # Let the user override the test.
14 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
32 if test -n "$MIG"; then
33 { $as_echo "$as_me:$LINENO: result: $MIG" >&5
34 $as_echo "$MIG" >&6; }
36 { $as_echo "$as_me:$LINENO: result: no" >&5
42 if test -z "$ac_cv_prog_MIG"; then
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
51 if test -n "$ac_ct_MIG"; then
52 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
54 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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
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; }
76 { $as_echo "$as_me:$LINENO: result: no" >&5
80 if test "x$ac_ct_MIG" = x; then
83 case $cross_compiling:$ac_tool_warned in
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;}
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; }; }
101 ### Sanity checks for Mach header installation
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
109 cat >conftest.$ac_ext <<_ACEOF
112 cat confdefs.h >>conftest.$ac_ext
113 cat >>conftest.$ac_ext <<_ACEOF
114 /* end confdefs.h. */
115 #include <mach/mach_types.h>
117 if { (ac_try="$ac_cpp conftest.$ac_ext"
119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
120 *) ac_try_echo=$ac_try;;
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
126 grep -v '^ *+' conftest.er1 >conftest.err
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
134 ac_cv_header_mach_mach_types_h=yes
136 $as_echo "$as_me: failed program was:" >&5
137 sed 's/^/| /' conftest.$ac_ext >&5
139 ac_cv_header_mach_mach_types_h=no
142 rm -f conftest.err conftest.$ac_ext
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
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; }; }
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
160 cat >conftest.$ac_ext <<_ACEOF
163 cat confdefs.h >>conftest.$ac_ext
164 cat >>conftest.$ac_ext <<_ACEOF
165 /* end confdefs.h. */
166 #include <mach/mach_types.defs>
168 if { (ac_try="$ac_cpp conftest.$ac_ext"
170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
171 *) ac_try_echo=$ac_try;;
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
177 grep -v '^ *+' conftest.er1 >conftest.err
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
185 ac_cv_header_mach_mach_types_defs=yes
187 $as_echo "$as_me: failed program was:" >&5
188 sed 's/^/| /' conftest.$ac_ext >&5
190 ac_cv_header_mach_mach_types_defs=no
193 rm -f conftest.err conftest.$ac_ext
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
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; }; }
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
214 cat >conftest.$ac_ext <<_ACEOF
217 cat confdefs.h >>conftest.$ac_ext
218 cat >>conftest.$ac_ext <<_ACEOF
219 /* end confdefs.h. */
220 #include <mach/mach_types.h>
229 rm -f conftest.$ac_objext
230 if { (ac_try="$ac_compile"
232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
233 *) ac_try_echo=$ac_try;;
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
239 grep -v '^ *+' conftest.er1 >conftest.err
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
249 $as_echo "$as_me: failed program was:" >&5
250 sed 's/^/| /' conftest.$ac_ext >&5
252 libc_cv_mach_task_t=task_port_t
255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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"
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
267 cat >conftest.$ac_ext <<_ACEOF
270 cat confdefs.h >>conftest.$ac_ext
271 cat >>conftest.$ac_ext <<_ACEOF
272 /* end confdefs.h. */
273 #include <mach/mach_types.h>
282 rm -f conftest.$ac_objext
283 if { (ac_try="$ac_compile"
285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
286 *) ac_try_echo=$ac_try;;
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
292 grep -v '^ *+' conftest.er1 >conftest.err
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
302 $as_echo "$as_me: failed program was:" >&5
303 sed 's/^/| /' conftest.$ac_ext >&5
305 libc_cv_mach_thread_t=thread_port_t
308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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"
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
321 cat >conftest.$ac_ext <<_ACEOF
324 cat confdefs.h >>conftest.$ac_ext
325 cat >>conftest.$ac_ext <<_ACEOF
326 /* end confdefs.h. */
327 #include <mach/task_info.h>
332 extern struct task_basic_info *i;
333 long s = i->creation_time.seconds;
339 rm -f conftest.$ac_objext
340 if { (ac_try="$ac_compile"
342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
343 *) ac_try_echo=$ac_try;;
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
349 grep -v '^ *+' conftest.er1 >conftest.err
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
359 $as_echo "$as_me: failed program was:" >&5
360 sed 's/^/| /' conftest.$ac_ext >&5
362 libc_cv_mach_task_creation_time=no
365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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; }; }
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 \
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
388 cat >conftest.$ac_ext <<_ACEOF
391 cat confdefs.h >>conftest.$ac_ext
392 cat >>conftest.$ac_ext <<_ACEOF
393 /* end confdefs.h. */
394 #include <mach/${ifc}.defs>
396 if { (ac_try="$ac_cpp conftest.$ac_ext"
398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
399 *) ac_try_echo=$ac_try;;
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
405 grep -v '^ *+' conftest.er1 >conftest.err
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
413 eval "$as_ac_Header=yes"
415 $as_echo "$as_me: failed program was:" >&5
416 sed 's/^/| /' conftest.$ac_ext >&5
418 eval "$as_ac_Header=no"
421 rm -f conftest.err conftest.$ac_ext
423 ac_res=`eval 'as_val=${'$as_ac_Header'}
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'}
429 if test "x$as_val" = x""yes; then
430 mach_interface_list="$mach_interface_list $ifc"
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; }; }
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
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
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
462 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
465 $as_echo_n 0123456789 >"conftest.in"
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
480 # 10*(2^10) chars as input seems more than enough
481 test $ac_count -gt 10 && break
483 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
486 $ac_path_GREP_found && break 3
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; }; }
497 ac_cv_path_GREP=$GREP
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"
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
511 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
512 then ac_cv_path_EGREP="$GREP -E"
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
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
530 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
533 $as_echo_n 0123456789 >"conftest.in"
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
548 # 10*(2^10) chars as input seems more than enough
549 test $ac_count -gt 10 && break
551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
554 $ac_path_EGREP_found && break 3
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; }; }
565 ac_cv_path_EGREP=$EGREP
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"
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
580 cat >conftest.$ac_ext <<_ACEOF
583 cat confdefs.h >>conftest.$ac_ext
584 cat >>conftest.$ac_ext <<_ACEOF
585 /* end confdefs.h. */
586 #include <mach/mach_host.defs>
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
593 libc_cv_mach_host_page_size=no
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
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
612 cat >conftest.$ac_ext <<_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>
620 if { (ac_try="$ac_cpp conftest.$ac_ext"
622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
623 *) ac_try_echo=$ac_try;;
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
629 grep -v '^ *+' conftest.er1 >conftest.err
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
637 ac_cv_header_mach_machine_ndr_def_h=yes
639 $as_echo "$as_me: failed program was:" >&5
640 sed 's/^/| /' conftest.$ac_ext >&5
642 ac_cv_header_mach_machine_ndr_def_h=no
645 rm -f conftest.err conftest.$ac_ext
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>'"
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
657 cat >conftest.$ac_ext <<_ACEOF
660 cat confdefs.h >>conftest.$ac_ext
661 cat >>conftest.$ac_ext <<_ACEOF
662 /* end confdefs.h. */
663 #include <machine/ndr_def.h>
665 if { (ac_try="$ac_cpp conftest.$ac_ext"
667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
668 *) ac_try_echo=$ac_try;;
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
674 grep -v '^ *+' conftest.er1 >conftest.err
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
682 ac_cv_header_machine_ndr_def_h=yes
684 $as_echo "$as_me: failed program was:" >&5
685 sed 's/^/| /' conftest.$ac_ext >&5
687 ac_cv_header_machine_ndr_def_h=no
690 rm -f conftest.err conftest.$ac_ext
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>'"
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
708 cat >conftest.$ac_ext <<_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>
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
721 libc_cv_mach_i386_ioports=no
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
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
740 cat >conftest.$ac_ext <<_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>
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
753 libc_cv_mach_i386_gdt=no
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
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
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
781 simpleroutine foobar_reply (
782 reply_port: reply_port_t;
783 err: kern_return_t, RetCode);
785 if { ac_try='CC="${CC}" ${MIG-false} -n conftest.defs 1>&5'
786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
790 (exit $ac_status); }; }; then
791 hurd_cv_mig_retcode=yes
793 hurd_cv_mig_retcode=no
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