configure 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721
  1. # ac_fn_c_check_header_preproc LINENO HEADER VAR
  2. # ----------------------------------------------
  3. # Tests whether HEADER exists and can be preprocessed (in isolation), setting
  4. # the cache variable VAR accordingly.
  5. ac_fn_c_check_header_preproc ()
  6. {
  7. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  8. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  9. printf %s "checking for $2... " >&6; }
  10. if eval test \${$3+y}
  11. then :
  12. printf %s "(cached) " >&6
  13. else case e in #(
  14. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15. /* end confdefs.h. */
  16. #include <$2>
  17. _ACEOF
  18. if ac_fn_c_try_cpp "$LINENO"
  19. then :
  20. eval "$3=yes"
  21. else case e in #(
  22. e) eval "$3=no" ;;
  23. esac
  24. fi
  25. rm -f conftest.err conftest.i conftest.$ac_ext ;;
  26. esac
  27. fi
  28. eval ac_res=\$$3
  29. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  30. printf "%s\n" "$ac_res" >&6; }
  31. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  32. } # ac_fn_c_check_header_preproc
  33. # This file is generated from configure.ac by Autoconf. DO NOT EDIT!
  34. if test -n "$ac_tool_prefix"; then
  35. # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
  36. set dummy ${ac_tool_prefix}mig; ac_word=$2
  37. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  38. printf %s "checking for $ac_word... " >&6; }
  39. if test ${ac_cv_prog_MIG+y}
  40. then :
  41. printf %s "(cached) " >&6
  42. else case e in #(
  43. e) if test -n "$MIG"; then
  44. ac_cv_prog_MIG="$MIG" # Let the user override the test.
  45. else
  46. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  47. for as_dir in $PATH
  48. do
  49. IFS=$as_save_IFS
  50. case $as_dir in #(((
  51. '') as_dir=./ ;;
  52. */) ;;
  53. *) as_dir=$as_dir/ ;;
  54. esac
  55. for ac_exec_ext in '' $ac_executable_extensions; do
  56. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  57. ac_cv_prog_MIG="${ac_tool_prefix}mig"
  58. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  59. break 2
  60. fi
  61. done
  62. done
  63. IFS=$as_save_IFS
  64. fi ;;
  65. esac
  66. fi
  67. MIG=$ac_cv_prog_MIG
  68. if test -n "$MIG"; then
  69. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
  70. printf "%s\n" "$MIG" >&6; }
  71. else
  72. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  73. printf "%s\n" "no" >&6; }
  74. fi
  75. fi
  76. if test -z "$ac_cv_prog_MIG"; then
  77. ac_ct_MIG=$MIG
  78. # Extract the first word of "mig", so it can be a program name with args.
  79. set dummy mig; ac_word=$2
  80. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  81. printf %s "checking for $ac_word... " >&6; }
  82. if test ${ac_cv_prog_ac_ct_MIG+y}
  83. then :
  84. printf %s "(cached) " >&6
  85. else case e in #(
  86. e) if test -n "$ac_ct_MIG"; then
  87. ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
  88. else
  89. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. case $as_dir in #(((
  94. '') as_dir=./ ;;
  95. */) ;;
  96. *) as_dir=$as_dir/ ;;
  97. esac
  98. for ac_exec_ext in '' $ac_executable_extensions; do
  99. if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
  100. ac_cv_prog_ac_ct_MIG="mig"
  101. printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
  102. break 2
  103. fi
  104. done
  105. done
  106. IFS=$as_save_IFS
  107. fi ;;
  108. esac
  109. fi
  110. ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
  111. if test -n "$ac_ct_MIG"; then
  112. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
  113. printf "%s\n" "$ac_ct_MIG" >&6; }
  114. else
  115. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
  116. printf "%s\n" "no" >&6; }
  117. fi
  118. if test "x$ac_ct_MIG" = x; then
  119. MIG="MISSING"
  120. else
  121. case $cross_compiling:$ac_tool_warned in
  122. yes:)
  123. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  124. printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  125. ac_tool_warned=yes ;;
  126. esac
  127. MIG=$ac_ct_MIG
  128. fi
  129. else
  130. MIG="$ac_cv_prog_MIG"
  131. fi
  132. if test "x$MIG" = xMISSING; then
  133. as_fn_error $? "cannot find required build tool mig" "$LINENO" 5
  134. fi
  135. config_vars="$config_vars
  136. MIG = $MIG"
  137. OLD_CPPFLAGS=$CPPFLAGS
  138. if test -n "$sysheaders"; then
  139. CPPFLAGS="$CPPFLAGS $SYSINCLUDES"
  140. fi
  141. ### Sanity checks for Mach header installation
  142. CPPFLAGS="$CPPFLAGS -ffreestanding"
  143. ac_fn_c_check_header_preproc "$LINENO" "mach/mach_types.h" "ac_cv_header_mach_mach_types_h"
  144. if test "x$ac_cv_header_mach_mach_types_h" = xyes
  145. then :
  146. else case e in #(
  147. e) as_fn_error $? "cannot find Mach headers" "$LINENO" 5 ;;
  148. esac
  149. fi
  150. ac_fn_c_check_header_preproc "$LINENO" "mach/mach_types.defs" "ac_cv_header_mach_mach_types_defs"
  151. if test "x$ac_cv_header_mach_mach_types_defs" = xyes
  152. then :
  153. else case e in #(
  154. e) as_fn_error $? "cannot find Mach .defs files" "$LINENO" 5 ;;
  155. esac
  156. fi
  157. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for task_t in mach/mach_types.h" >&5
  158. printf %s "checking for task_t in mach/mach_types.h... " >&6; }
  159. if test ${libc_cv_mach_task_t+y}
  160. then :
  161. printf %s "(cached) " >&6
  162. else case e in #(
  163. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  164. /* end confdefs.h. */
  165. #include <mach/mach_types.h>
  166. int
  167. main (void)
  168. {
  169. extern task_t foo;
  170. ;
  171. return 0;
  172. }
  173. _ACEOF
  174. if ac_fn_c_try_compile "$LINENO"
  175. then :
  176. libc_cv_mach_task_t=task_t
  177. else case e in #(
  178. e) libc_cv_mach_task_t=task_port_t ;;
  179. esac
  180. fi
  181. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  182. esac
  183. fi
  184. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_task_t" >&5
  185. printf "%s\n" "$libc_cv_mach_task_t" >&6; }
  186. if test $libc_cv_mach_task_t != task_t; then
  187. DEFINES="$DEFINES -Dtask_t=task_port_t"
  188. fi
  189. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread_t in mach/mach_types.h" >&5
  190. printf %s "checking for thread_t in mach/mach_types.h... " >&6; }
  191. if test ${libc_cv_mach_thread_t+y}
  192. then :
  193. printf %s "(cached) " >&6
  194. else case e in #(
  195. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  196. /* end confdefs.h. */
  197. #include <mach/mach_types.h>
  198. int
  199. main (void)
  200. {
  201. extern thread_t foo;
  202. ;
  203. return 0;
  204. }
  205. _ACEOF
  206. if ac_fn_c_try_compile "$LINENO"
  207. then :
  208. libc_cv_mach_thread_t=thread_t
  209. else case e in #(
  210. e) libc_cv_mach_thread_t=thread_port_t ;;
  211. esac
  212. fi
  213. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  214. esac
  215. fi
  216. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_thread_t" >&5
  217. printf "%s\n" "$libc_cv_mach_thread_t" >&6; }
  218. if test $libc_cv_mach_thread_t != thread_t; then
  219. DEFINES="$DEFINES -Dthread_t=thread_port_t"
  220. fi
  221. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for creation_time in task_basic_info" >&5
  222. printf %s "checking for creation_time in task_basic_info... " >&6; }
  223. if test ${libc_cv_mach_task_creation_time+y}
  224. then :
  225. printf %s "(cached) " >&6
  226. else case e in #(
  227. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  228. /* end confdefs.h. */
  229. #include <mach/task_info.h>
  230. int
  231. main (void)
  232. {
  233. extern struct task_basic_info *i;
  234. long s = i->creation_time.seconds;
  235. ;
  236. return 0;
  237. }
  238. _ACEOF
  239. if ac_fn_c_try_compile "$LINENO"
  240. then :
  241. libc_cv_mach_task_creation_time=yes
  242. else case e in #(
  243. e) libc_cv_mach_task_creation_time=no ;;
  244. esac
  245. fi
  246. rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
  247. esac
  248. fi
  249. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_task_creation_time" >&5
  250. printf "%s\n" "$libc_cv_mach_task_creation_time" >&6; }
  251. if test $libc_cv_mach_task_creation_time = no; then
  252. as_fn_error $? "you need Mach headers supporting task_info.creation_time" "$LINENO" 5
  253. fi
  254. mach_interface_list=
  255. for ifc in mach mach4 gnumach \
  256. clock clock_priv host_priv host_security ledger lock_set \
  257. processor processor_set task task_notify thread_act vm_map \
  258. memory_object memory_object_default default_pager \
  259. i386/mach_i386 x86_64/mach_i386 \
  260. ; do
  261. as_ac_Header=`printf "%s\n" "ac_cv_header_mach/${ifc}.defs" | sed "$as_sed_sh"`
  262. ac_fn_c_check_header_preproc "$LINENO" "mach/${ifc}.defs" "$as_ac_Header"
  263. if eval test \"x\$"$as_ac_Header"\" = x"yes"
  264. then :
  265. mach_interface_list="$mach_interface_list $ifc"
  266. fi
  267. done
  268. if test "x$mach_interface_list" = x; then
  269. as_fn_error $? "what manner of Mach is this?" "$LINENO" 5
  270. fi
  271. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
  272. printf %s "checking for egrep -e... " >&6; }
  273. if test ${ac_cv_path_EGREP_TRADITIONAL+y}
  274. then :
  275. printf %s "(cached) " >&6
  276. else case e in #(
  277. e) if test -z "$EGREP_TRADITIONAL"; then
  278. ac_path_EGREP_TRADITIONAL_found=false
  279. # Loop through the user's path and test for each of PROGNAME-LIST
  280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  281. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  282. do
  283. IFS=$as_save_IFS
  284. case $as_dir in #(((
  285. '') as_dir=./ ;;
  286. */) ;;
  287. *) as_dir=$as_dir/ ;;
  288. esac
  289. for ac_prog in grep ggrep
  290. do
  291. for ac_exec_ext in '' $ac_executable_extensions; do
  292. ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
  293. as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
  294. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
  295. # Check for GNU $ac_path_EGREP_TRADITIONAL
  296. case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
  297. *GNU*)
  298. ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
  299. #(
  300. *)
  301. ac_count=0
  302. printf %s 0123456789 >"conftest.in"
  303. while :
  304. do
  305. cat "conftest.in" "conftest.in" >"conftest.tmp"
  306. mv "conftest.tmp" "conftest.in"
  307. cp "conftest.in" "conftest.nl"
  308. printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
  309. "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  310. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  311. as_fn_arith $ac_count + 1 && ac_count=$as_val
  312. if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
  313. # Best one so far, save it but keep looking for a better one
  314. ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
  315. ac_path_EGREP_TRADITIONAL_max=$ac_count
  316. fi
  317. # 10*(2^10) chars as input seems more than enough
  318. test $ac_count -gt 10 && break
  319. done
  320. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  321. esac
  322. $ac_path_EGREP_TRADITIONAL_found && break 3
  323. done
  324. done
  325. done
  326. IFS=$as_save_IFS
  327. if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
  328. :
  329. fi
  330. else
  331. ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
  332. fi
  333. if test "$ac_cv_path_EGREP_TRADITIONAL"
  334. then :
  335. ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
  336. else case e in #(
  337. e) if test -z "$EGREP_TRADITIONAL"; then
  338. ac_path_EGREP_TRADITIONAL_found=false
  339. # Loop through the user's path and test for each of PROGNAME-LIST
  340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  341. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  342. do
  343. IFS=$as_save_IFS
  344. case $as_dir in #(((
  345. '') as_dir=./ ;;
  346. */) ;;
  347. *) as_dir=$as_dir/ ;;
  348. esac
  349. for ac_prog in egrep
  350. do
  351. for ac_exec_ext in '' $ac_executable_extensions; do
  352. ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
  353. as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
  354. # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
  355. # Check for GNU $ac_path_EGREP_TRADITIONAL
  356. case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
  357. *GNU*)
  358. ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
  359. #(
  360. *)
  361. ac_count=0
  362. printf %s 0123456789 >"conftest.in"
  363. while :
  364. do
  365. cat "conftest.in" "conftest.in" >"conftest.tmp"
  366. mv "conftest.tmp" "conftest.in"
  367. cp "conftest.in" "conftest.nl"
  368. printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
  369. "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  370. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  371. as_fn_arith $ac_count + 1 && ac_count=$as_val
  372. if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
  373. # Best one so far, save it but keep looking for a better one
  374. ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
  375. ac_path_EGREP_TRADITIONAL_max=$ac_count
  376. fi
  377. # 10*(2^10) chars as input seems more than enough
  378. test $ac_count -gt 10 && break
  379. done
  380. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  381. esac
  382. $ac_path_EGREP_TRADITIONAL_found && break 3
  383. done
  384. done
  385. done
  386. IFS=$as_save_IFS
  387. if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
  388. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  389. fi
  390. else
  391. ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
  392. fi
  393. ;;
  394. esac
  395. fi ;;
  396. esac
  397. fi
  398. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
  399. printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
  400. EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
  401. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for host_page_size in mach_host.defs" >&5
  402. printf %s "checking for host_page_size in mach_host.defs... " >&6; }
  403. if test ${libc_cv_mach_rpc_host_page_size+y}
  404. then :
  405. printf %s "(cached) " >&6
  406. else case e in #(
  407. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  408. /* end confdefs.h. */
  409. #include <mach/mach_host.defs>
  410. _ACEOF
  411. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  412. $EGREP_TRADITIONAL "host_page_size" >/dev/null 2>&1
  413. then :
  414. libc_cv_mach_rpc_host_page_size=yes
  415. else case e in #(
  416. e) libc_cv_mach_rpc_host_page_size=no ;;
  417. esac
  418. fi
  419. rm -rf conftest*
  420. ;;
  421. esac
  422. fi
  423. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_rpc_host_page_size" >&5
  424. printf "%s\n" "$libc_cv_mach_rpc_host_page_size" >&6; }
  425. if test $libc_cv_mach_rpc_host_page_size = yes; then
  426. printf "%s\n" "#define HAVE_HOST_PAGE_SIZE 1" >>confdefs.h
  427. fi
  428. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for host_get_uptime64 in mach_host.defs" >&5
  429. printf %s "checking for host_get_uptime64 in mach_host.defs... " >&6; }
  430. if test ${libc_cv_mach_rpc_host_get_uptime64+y}
  431. then :
  432. printf %s "(cached) " >&6
  433. else case e in #(
  434. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  435. /* end confdefs.h. */
  436. #include <mach/mach_host.defs>
  437. _ACEOF
  438. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  439. $EGREP_TRADITIONAL "host_get_uptime64" >/dev/null 2>&1
  440. then :
  441. libc_cv_mach_rpc_host_get_uptime64=yes
  442. else case e in #(
  443. e) libc_cv_mach_rpc_host_get_uptime64=no ;;
  444. esac
  445. fi
  446. rm -rf conftest*
  447. ;;
  448. esac
  449. fi
  450. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_rpc_host_get_uptime64" >&5
  451. printf "%s\n" "$libc_cv_mach_rpc_host_get_uptime64" >&6; }
  452. if test $libc_cv_mach_rpc_host_get_uptime64 = yes; then
  453. printf "%s\n" "#define HAVE_HOST_GET_UPTIME64 1" >>confdefs.h
  454. fi
  455. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for host_get_time64 in mach_host.defs" >&5
  456. printf %s "checking for host_get_time64 in mach_host.defs... " >&6; }
  457. if test ${libc_cv_mach_rpc_host_get_time64+y}
  458. then :
  459. printf %s "(cached) " >&6
  460. else case e in #(
  461. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  462. /* end confdefs.h. */
  463. #include <mach/mach_host.defs>
  464. _ACEOF
  465. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  466. $EGREP_TRADITIONAL "host_get_time64" >/dev/null 2>&1
  467. then :
  468. libc_cv_mach_rpc_host_get_time64=yes
  469. else case e in #(
  470. e) libc_cv_mach_rpc_host_get_time64=no ;;
  471. esac
  472. fi
  473. rm -rf conftest*
  474. ;;
  475. esac
  476. fi
  477. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_rpc_host_get_time64" >&5
  478. printf "%s\n" "$libc_cv_mach_rpc_host_get_time64" >&6; }
  479. if test $libc_cv_mach_rpc_host_get_time64 = yes; then
  480. printf "%s\n" "#define HAVE_HOST_GET_TIME64 1" >>confdefs.h
  481. fi
  482. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread_set_name in gnumach.defs" >&5
  483. printf %s "checking for thread_set_name in gnumach.defs... " >&6; }
  484. if test ${libc_cv_mach_rpc_thread_set_name+y}
  485. then :
  486. printf %s "(cached) " >&6
  487. else case e in #(
  488. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  489. /* end confdefs.h. */
  490. #include <mach/gnumach.defs>
  491. _ACEOF
  492. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  493. $EGREP_TRADITIONAL "thread_set_name" >/dev/null 2>&1
  494. then :
  495. libc_cv_mach_rpc_thread_set_name=yes
  496. else case e in #(
  497. e) libc_cv_mach_rpc_thread_set_name=no ;;
  498. esac
  499. fi
  500. rm -rf conftest*
  501. ;;
  502. esac
  503. fi
  504. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_rpc_thread_set_name" >&5
  505. printf "%s\n" "$libc_cv_mach_rpc_thread_set_name" >&6; }
  506. if test $libc_cv_mach_rpc_thread_set_name = yes; then
  507. printf "%s\n" "#define HAVE_MACH_THREAD_SET_NAME 1" >>confdefs.h
  508. fi
  509. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread_get_name in gnumach.defs" >&5
  510. printf %s "checking for thread_get_name in gnumach.defs... " >&6; }
  511. if test ${libc_cv_mach_rpc_thread_get_name+y}
  512. then :
  513. printf %s "(cached) " >&6
  514. else case e in #(
  515. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  516. /* end confdefs.h. */
  517. #include <mach/gnumach.defs>
  518. _ACEOF
  519. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  520. $EGREP_TRADITIONAL "thread_get_name" >/dev/null 2>&1
  521. then :
  522. libc_cv_mach_rpc_thread_get_name=yes
  523. else case e in #(
  524. e) libc_cv_mach_rpc_thread_get_name=no ;;
  525. esac
  526. fi
  527. rm -rf conftest*
  528. ;;
  529. esac
  530. fi
  531. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_rpc_thread_get_name" >&5
  532. printf "%s\n" "$libc_cv_mach_rpc_thread_get_name" >&6; }
  533. if test $libc_cv_mach_rpc_thread_get_name = yes; then
  534. printf "%s\n" "#define HAVE_MACH_THREAD_GET_NAME 1" >>confdefs.h
  535. fi
  536. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for vm_set_size_limit in gnumach.defs" >&5
  537. printf %s "checking for vm_set_size_limit in gnumach.defs... " >&6; }
  538. if test ${libc_cv_mach_rpc_vm_set_size_limit+y}
  539. then :
  540. printf %s "(cached) " >&6
  541. else case e in #(
  542. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  543. /* end confdefs.h. */
  544. #include <mach/gnumach.defs>
  545. _ACEOF
  546. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  547. $EGREP_TRADITIONAL "vm_set_size_limit" >/dev/null 2>&1
  548. then :
  549. libc_cv_mach_rpc_vm_set_size_limit=yes
  550. else case e in #(
  551. e) libc_cv_mach_rpc_vm_set_size_limit=no ;;
  552. esac
  553. fi
  554. rm -rf conftest*
  555. ;;
  556. esac
  557. fi
  558. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_rpc_vm_set_size_limit" >&5
  559. printf "%s\n" "$libc_cv_mach_rpc_vm_set_size_limit" >&6; }
  560. if test $libc_cv_mach_rpc_vm_set_size_limit = yes; then
  561. printf "%s\n" "#define HAVE_MACH_VM_SET_SIZE_LIMIT 1" >>confdefs.h
  562. fi
  563. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for vm_get_size_limit in gnumach.defs" >&5
  564. printf %s "checking for vm_get_size_limit in gnumach.defs... " >&6; }
  565. if test ${libc_cv_mach_rpc_vm_get_size_limit+y}
  566. then :
  567. printf %s "(cached) " >&6
  568. else case e in #(
  569. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  570. /* end confdefs.h. */
  571. #include <mach/gnumach.defs>
  572. _ACEOF
  573. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  574. $EGREP_TRADITIONAL "vm_get_size_limit" >/dev/null 2>&1
  575. then :
  576. libc_cv_mach_rpc_vm_get_size_limit=yes
  577. else case e in #(
  578. e) libc_cv_mach_rpc_vm_get_size_limit=no ;;
  579. esac
  580. fi
  581. rm -rf conftest*
  582. ;;
  583. esac
  584. fi
  585. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_rpc_vm_get_size_limit" >&5
  586. printf "%s\n" "$libc_cv_mach_rpc_vm_get_size_limit" >&6; }
  587. if test $libc_cv_mach_rpc_vm_get_size_limit = yes; then
  588. printf "%s\n" "#define HAVE_MACH_VM_GET_SIZE_LIMIT 1" >>confdefs.h
  589. fi
  590. ac_fn_c_check_header_preproc "$LINENO" "mach/machine/ndr_def.h" "ac_cv_header_mach_machine_ndr_def_h"
  591. if test "x$ac_cv_header_mach_machine_ndr_def_h" = xyes
  592. then :
  593. DEFINES="$DEFINES -DNDR_DEF_HEADER='<mach/machine/ndr_def.h>'"
  594. else case e in #(
  595. e) ac_fn_c_check_header_preproc "$LINENO" "machine/ndr_def.h" "ac_cv_header_machine_ndr_def_h"
  596. if test "x$ac_cv_header_machine_ndr_def_h" = xyes
  597. then :
  598. DEFINES="$DEFINES -DNDR_DEF_HEADER='<machine/ndr_def.h>'"
  599. fi
  600. ;;
  601. esac
  602. fi
  603. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for i386_io_perm_modify in mach_i386.defs" >&5
  604. printf %s "checking for i386_io_perm_modify in mach_i386.defs... " >&6; }
  605. if test ${libc_cv_mach_i386_ioports+y}
  606. then :
  607. printf %s "(cached) " >&6
  608. else case e in #(
  609. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  610. /* end confdefs.h. */
  611. #include <mach/machine/mach_i386.defs>
  612. _ACEOF
  613. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  614. $EGREP_TRADITIONAL "i386_io_perm_modify" >/dev/null 2>&1
  615. then :
  616. libc_cv_mach_i386_ioports=yes
  617. else case e in #(
  618. e) libc_cv_mach_i386_ioports=no ;;
  619. esac
  620. fi
  621. rm -rf conftest*
  622. ;;
  623. esac
  624. fi
  625. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_i386_ioports" >&5
  626. printf "%s\n" "$libc_cv_mach_i386_ioports" >&6; }
  627. if test $libc_cv_mach_i386_ioports = yes; then
  628. printf "%s\n" "#define HAVE_I386_IO_PERM_MODIFY 1" >>confdefs.h
  629. fi
  630. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for i386_set_gdt in mach_i386.defs" >&5
  631. printf %s "checking for i386_set_gdt in mach_i386.defs... " >&6; }
  632. if test ${libc_cv_mach_i386_gdt+y}
  633. then :
  634. printf %s "(cached) " >&6
  635. else case e in #(
  636. e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  637. /* end confdefs.h. */
  638. #include <mach/machine/mach_i386.defs>
  639. _ACEOF
  640. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  641. $EGREP_TRADITIONAL "i386_set_gdt" >/dev/null 2>&1
  642. then :
  643. libc_cv_mach_i386_gdt=yes
  644. else case e in #(
  645. e) libc_cv_mach_i386_gdt=no ;;
  646. esac
  647. fi
  648. rm -rf conftest*
  649. ;;
  650. esac
  651. fi
  652. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mach_i386_gdt" >&5
  653. printf "%s\n" "$libc_cv_mach_i386_gdt" >&6; }
  654. if test $libc_cv_mach_i386_gdt = yes; then
  655. printf "%s\n" "#define HAVE_I386_SET_GDT 1" >>confdefs.h
  656. fi
  657. CPPFLAGS=$OLD_CPPFLAGS