/contrib/ntp/configure

https://bitbucket.org/freebsd/freebsd-head/ · Shell · 27398 lines · 22427 code · 2626 blank · 2345 comment · 1966 complexity · 05e1828a59a7c48b290a0618022a31b1 MD5 · raw file

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65 for ntp 4.2.4p8.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  8. # Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  214. $0: including any error possibly output before this
  215. $0: message. Then install a modern shell, or manually run
  216. $0: the script under such a shell if you do have one."
  217. fi
  218. exit 1
  219. fi
  220. fi
  221. fi
  222. SHELL=${CONFIG_SHELL-/bin/sh}
  223. export SHELL
  224. # Unset more variables known to interfere with behavior of common tools.
  225. CLICOLOR_FORCE= GREP_OPTIONS=
  226. unset CLICOLOR_FORCE GREP_OPTIONS
  227. ## --------------------- ##
  228. ## M4sh Shell Functions. ##
  229. ## --------------------- ##
  230. # as_fn_unset VAR
  231. # ---------------
  232. # Portably unset VAR.
  233. as_fn_unset ()
  234. {
  235. { eval $1=; unset $1;}
  236. }
  237. as_unset=as_fn_unset
  238. # as_fn_set_status STATUS
  239. # -----------------------
  240. # Set $? to STATUS, without forking.
  241. as_fn_set_status ()
  242. {
  243. return $1
  244. } # as_fn_set_status
  245. # as_fn_exit STATUS
  246. # -----------------
  247. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  248. as_fn_exit ()
  249. {
  250. set +e
  251. as_fn_set_status $1
  252. exit $1
  253. } # as_fn_exit
  254. # as_fn_mkdir_p
  255. # -------------
  256. # Create "$as_dir" as a directory, including parents if necessary.
  257. as_fn_mkdir_p ()
  258. {
  259. case $as_dir in #(
  260. -*) as_dir=./$as_dir;;
  261. esac
  262. test -d "$as_dir" || eval $as_mkdir_p || {
  263. as_dirs=
  264. while :; do
  265. case $as_dir in #(
  266. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  267. *) as_qdir=$as_dir;;
  268. esac
  269. as_dirs="'$as_qdir' $as_dirs"
  270. as_dir=`$as_dirname -- "$as_dir" ||
  271. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  272. X"$as_dir" : 'X\(//\)[^/]' \| \
  273. X"$as_dir" : 'X\(//\)$' \| \
  274. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  275. $as_echo X"$as_dir" |
  276. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  277. s//\1/
  278. q
  279. }
  280. /^X\(\/\/\)[^/].*/{
  281. s//\1/
  282. q
  283. }
  284. /^X\(\/\/\)$/{
  285. s//\1/
  286. q
  287. }
  288. /^X\(\/\).*/{
  289. s//\1/
  290. q
  291. }
  292. s/.*/./; q'`
  293. test -d "$as_dir" && break
  294. done
  295. test -z "$as_dirs" || eval "mkdir $as_dirs"
  296. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  297. } # as_fn_mkdir_p
  298. # as_fn_append VAR VALUE
  299. # ----------------------
  300. # Append the text in VALUE to the end of the definition contained in VAR. Take
  301. # advantage of any shell optimizations that allow amortized linear growth over
  302. # repeated appends, instead of the typical quadratic growth present in naive
  303. # implementations.
  304. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  305. eval 'as_fn_append ()
  306. {
  307. eval $1+=\$2
  308. }'
  309. else
  310. as_fn_append ()
  311. {
  312. eval $1=\$$1\$2
  313. }
  314. fi # as_fn_append
  315. # as_fn_arith ARG...
  316. # ------------------
  317. # Perform arithmetic evaluation on the ARGs, and store the result in the
  318. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  319. # must be portable across $(()) and expr.
  320. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  321. eval 'as_fn_arith ()
  322. {
  323. as_val=$(( $* ))
  324. }'
  325. else
  326. as_fn_arith ()
  327. {
  328. as_val=`expr "$@" || test $? -eq 1`
  329. }
  330. fi # as_fn_arith
  331. # as_fn_error ERROR [LINENO LOG_FD]
  332. # ---------------------------------
  333. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  334. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  335. # script with status $?, using 1 if that was 0.
  336. as_fn_error ()
  337. {
  338. as_status=$?; test $as_status -eq 0 && as_status=1
  339. if test "$3"; then
  340. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  341. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  342. fi
  343. $as_echo "$as_me: error: $1" >&2
  344. as_fn_exit $as_status
  345. } # as_fn_error
  346. if expr a : '\(a\)' >/dev/null 2>&1 &&
  347. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  348. as_expr=expr
  349. else
  350. as_expr=false
  351. fi
  352. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  353. as_basename=basename
  354. else
  355. as_basename=false
  356. fi
  357. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  358. as_dirname=dirname
  359. else
  360. as_dirname=false
  361. fi
  362. as_me=`$as_basename -- "$0" ||
  363. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  364. X"$0" : 'X\(//\)$' \| \
  365. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  366. $as_echo X/"$0" |
  367. sed '/^.*\/\([^/][^/]*\)\/*$/{
  368. s//\1/
  369. q
  370. }
  371. /^X\/\(\/\/\)$/{
  372. s//\1/
  373. q
  374. }
  375. /^X\/\(\/\).*/{
  376. s//\1/
  377. q
  378. }
  379. s/.*/./; q'`
  380. # Avoid depending upon Character Ranges.
  381. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  382. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  383. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  384. as_cr_digits='0123456789'
  385. as_cr_alnum=$as_cr_Letters$as_cr_digits
  386. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  387. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  388. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  389. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  390. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  408. # Don't try to exec as it changes $[0], causing all sort of problems
  409. # (the dirname of $[0] is not the place where we might find the
  410. # original and so on. Autoconf is especially sensitive to this).
  411. . "./$as_me.lineno"
  412. # Exit status is that of the last command.
  413. exit
  414. }
  415. ECHO_C= ECHO_N= ECHO_T=
  416. case `echo -n x` in #(((((
  417. -n*)
  418. case `echo 'xy\c'` in
  419. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  420. xy) ECHO_C='\c';;
  421. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  422. ECHO_T=' ';;
  423. esac;;
  424. *)
  425. ECHO_N='-n';;
  426. esac
  427. rm -f conf$$ conf$$.exe conf$$.file
  428. if test -d conf$$.dir; then
  429. rm -f conf$$.dir/conf$$.file
  430. else
  431. rm -f conf$$.dir
  432. mkdir conf$$.dir 2>/dev/null
  433. fi
  434. if (echo >conf$$.file) 2>/dev/null; then
  435. if ln -s conf$$.file conf$$ 2>/dev/null; then
  436. as_ln_s='ln -s'
  437. # ... but there are two gotchas:
  438. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  439. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  440. # In both cases, we have to default to `cp -p'.
  441. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  442. as_ln_s='cp -p'
  443. elif ln conf$$.file conf$$ 2>/dev/null; then
  444. as_ln_s=ln
  445. else
  446. as_ln_s='cp -p'
  447. fi
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  452. rmdir conf$$.dir 2>/dev/null
  453. if mkdir -p . 2>/dev/null; then
  454. as_mkdir_p='mkdir -p "$as_dir"'
  455. else
  456. test -d ./-p && rmdir ./-p
  457. as_mkdir_p=false
  458. fi
  459. if test -x / >/dev/null 2>&1; then
  460. as_test_x='test -x'
  461. else
  462. if ls -dL / >/dev/null 2>&1; then
  463. as_ls_L_option=L
  464. else
  465. as_ls_L_option=
  466. fi
  467. as_test_x='
  468. eval sh -c '\''
  469. if test -d "$1"; then
  470. test -d "$1/.";
  471. else
  472. case $1 in #(
  473. -*)set "./$1";;
  474. esac;
  475. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  476. ???[sx]*):;;*)false;;esac;fi
  477. '\'' sh
  478. '
  479. fi
  480. as_executable_p=$as_test_x
  481. # Sed expression to map a string onto a valid CPP name.
  482. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  483. # Sed expression to map a string onto a valid variable name.
  484. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  485. # Check that we are running under the correct shell.
  486. SHELL=${CONFIG_SHELL-/bin/sh}
  487. case X$ECHO in
  488. X*--fallback-echo)
  489. # Remove one level of quotation (which was required for Make).
  490. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  491. ;;
  492. esac
  493. echo=${ECHO-echo}
  494. if test "X$1" = X--no-reexec; then
  495. # Discard the --no-reexec flag, and continue.
  496. shift
  497. elif test "X$1" = X--fallback-echo; then
  498. # Avoid inline document here, it may be left over
  499. :
  500. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  501. # Yippee, $echo works!
  502. :
  503. else
  504. # Restart under the correct shell.
  505. exec $SHELL "$0" --no-reexec ${1+"$@"}
  506. fi
  507. if test "X$1" = X--fallback-echo; then
  508. # used as fallback echo
  509. shift
  510. cat <<EOF
  511. $*
  512. EOF
  513. exit 0
  514. fi
  515. # The HP-UX ksh and POSIX shell print the target directory to stdout
  516. # if CDPATH is set.
  517. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  518. if test -z "$ECHO"; then
  519. if test "X${echo_test_string+set}" != Xset; then
  520. # find a string as large as possible, as long as the shell can cope with it
  521. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  522. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  523. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  524. echo_test_string=`eval $cmd` &&
  525. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  526. then
  527. break
  528. fi
  529. done
  530. fi
  531. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  532. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  533. test "X$echo_testing_string" = "X$echo_test_string"; then
  534. :
  535. else
  536. # The Solaris, AIX, and Digital Unix default echo programs unquote
  537. # backslashes. This makes it impossible to quote backslashes using
  538. # echo "$something" | sed 's/\\/\\\\/g'
  539. #
  540. # So, first we look for a working echo in the user's PATH.
  541. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  542. for dir in $PATH /usr/ucb; do
  543. IFS="$lt_save_ifs"
  544. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  545. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  546. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  547. test "X$echo_testing_string" = "X$echo_test_string"; then
  548. echo="$dir/echo"
  549. break
  550. fi
  551. done
  552. IFS="$lt_save_ifs"
  553. if test "X$echo" = Xecho; then
  554. # We didn't find a better echo, so look for alternatives.
  555. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  556. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  557. test "X$echo_testing_string" = "X$echo_test_string"; then
  558. # This shell has a builtin print -r that does the trick.
  559. echo='print -r'
  560. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  561. test "X$CONFIG_SHELL" != X/bin/ksh; then
  562. # If we have ksh, try running configure again with it.
  563. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  564. export ORIGINAL_CONFIG_SHELL
  565. CONFIG_SHELL=/bin/ksh
  566. export CONFIG_SHELL
  567. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  568. else
  569. # Try using printf.
  570. echo='printf %s\n'
  571. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  572. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  573. test "X$echo_testing_string" = "X$echo_test_string"; then
  574. # Cool, printf works
  575. :
  576. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  577. test "X$echo_testing_string" = 'X\t' &&
  578. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  579. test "X$echo_testing_string" = "X$echo_test_string"; then
  580. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  581. export CONFIG_SHELL
  582. SHELL="$CONFIG_SHELL"
  583. export SHELL
  584. echo="$CONFIG_SHELL $0 --fallback-echo"
  585. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  586. test "X$echo_testing_string" = 'X\t' &&
  587. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  588. test "X$echo_testing_string" = "X$echo_test_string"; then
  589. echo="$CONFIG_SHELL $0 --fallback-echo"
  590. else
  591. # maybe with a smaller string...
  592. prev=:
  593. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  594. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  595. then
  596. break
  597. fi
  598. prev="$cmd"
  599. done
  600. if test "$prev" != 'sed 50q "$0"'; then
  601. echo_test_string=`eval $prev`
  602. export echo_test_string
  603. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  604. else
  605. # Oops. We lost completely, so just stick with echo.
  606. echo=echo
  607. fi
  608. fi
  609. fi
  610. fi
  611. fi
  612. fi
  613. # Copy echo and quote the copy suitably for passing to libtool from
  614. # the Makefile, instead of quoting the original, which is used later.
  615. ECHO=$echo
  616. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  617. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  618. fi
  619. test -n "$DJDIR" || exec 7<&0 </dev/null
  620. exec 6>&1
  621. # Name of the host.
  622. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  623. # so uname gets run too.
  624. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  625. #
  626. # Initializations.
  627. #
  628. ac_default_prefix=/usr/local
  629. ac_clean_files=
  630. ac_config_libobj_dir=.
  631. LIBOBJS=
  632. cross_compiling=no
  633. subdirs=
  634. MFLAGS=
  635. MAKEFLAGS=
  636. # Identity of this package.
  637. PACKAGE_NAME='ntp'
  638. PACKAGE_TARNAME='ntp'
  639. PACKAGE_VERSION='4.2.4p8'
  640. PACKAGE_STRING='ntp 4.2.4p8'
  641. PACKAGE_BUGREPORT=''
  642. PACKAGE_URL=''
  643. # Factoring default headers for most tests.
  644. ac_includes_default="\
  645. #include <stdio.h>
  646. #ifdef HAVE_SYS_TYPES_H
  647. # include <sys/types.h>
  648. #endif
  649. #ifdef HAVE_SYS_STAT_H
  650. # include <sys/stat.h>
  651. #endif
  652. #ifdef STDC_HEADERS
  653. # include <stdlib.h>
  654. # include <stddef.h>
  655. #else
  656. # ifdef HAVE_STDLIB_H
  657. # include <stdlib.h>
  658. # endif
  659. #endif
  660. #ifdef HAVE_STRING_H
  661. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  662. # include <memory.h>
  663. # endif
  664. # include <string.h>
  665. #endif
  666. #ifdef HAVE_STRINGS_H
  667. # include <strings.h>
  668. #endif
  669. #ifdef HAVE_INTTYPES_H
  670. # include <inttypes.h>
  671. #endif
  672. #ifdef HAVE_STDINT_H
  673. # include <stdint.h>
  674. #endif
  675. #ifdef HAVE_UNISTD_H
  676. # include <unistd.h>
  677. #endif"
  678. enable_option_checking=no
  679. ac_subst_vars='am__EXEEXT_FALSE
  680. am__EXEEXT_TRUE
  681. LTLIBOBJS
  682. LIBOBJS
  683. LSCF
  684. MAKE_NTPDSIM
  685. MAKE_LIBNTPSIM
  686. MAKE_TIMETRIM
  687. MAKE_TICKADJ
  688. MAKE_NTPTIME
  689. MAKE_ADJTIMED
  690. CLKTEST
  691. CHUTEST
  692. PROPDELAY
  693. MAKE_PARSEKMODULE
  694. DCFD
  695. TESTDCF
  696. MAKE_CHECK_LAYOUT
  697. EF_LIBS
  698. EF_PROGS
  699. LCRYPTO
  700. OPENSSL_LIB
  701. OPENSSL_INC
  702. OPENSSL
  703. MAKE_CHECK_Y2K
  704. MAKE_LIBPARSE_KERNEL
  705. MAKE_LIBPARSE
  706. LIBPARSE
  707. HAVE_INLINE
  708. ANSI2KNR
  709. U
  710. READLINE_LIBS
  711. PATH_PERL
  712. PATH_SH
  713. LIBTOOL
  714. RANLIB
  715. AR
  716. ECHO
  717. LN_S
  718. ARLIB_DIR
  719. subdirs
  720. BINSUBDIR
  721. LIBOPTS_CFLAGS
  722. LIBOPTS_LDADD
  723. NEED_LIBOPTS_FALSE
  724. NEED_LIBOPTS_TRUE
  725. INSTALL_LIBOPTS_FALSE
  726. INSTALL_LIBOPTS_TRUE
  727. LIBOPTS_DIR
  728. EGREP
  729. GREP
  730. CPP
  731. am__fastdepCC_FALSE
  732. am__fastdepCC_TRUE
  733. CCDEPMODE
  734. AMDEPBACKSLASH
  735. AMDEP_FALSE
  736. AMDEP_TRUE
  737. am__quote
  738. am__include
  739. DEPDIR
  740. OBJEXT
  741. EXEEXT
  742. ac_ct_CC
  743. CPPFLAGS
  744. LDFLAGS
  745. CFLAGS
  746. CC
  747. host_os
  748. host_vendor
  749. host_cpu
  750. host
  751. build_os
  752. build_vendor
  753. build_cpu
  754. build
  755. am__untar
  756. am__tar
  757. AMTAR
  758. am__leading_dot
  759. SET_MAKE
  760. AWK
  761. mkdir_p
  762. MKDIR_P
  763. INSTALL_STRIP_PROGRAM
  764. STRIP
  765. install_sh
  766. MAKEINFO
  767. AUTOHEADER
  768. AUTOMAKE
  769. AUTOCONF
  770. ACLOCAL
  771. VERSION
  772. PACKAGE
  773. CYGPATH_W
  774. am__isrc
  775. INSTALL_DATA
  776. INSTALL_SCRIPT
  777. INSTALL_PROGRAM
  778. target_alias
  779. host_alias
  780. build_alias
  781. LIBS
  782. ECHO_T
  783. ECHO_N
  784. ECHO_C
  785. DEFS
  786. mandir
  787. localedir
  788. libdir
  789. psdir
  790. pdfdir
  791. dvidir
  792. htmldir
  793. infodir
  794. docdir
  795. oldincludedir
  796. includedir
  797. localstatedir
  798. sharedstatedir
  799. sysconfdir
  800. datadir
  801. datarootdir
  802. libexecdir
  803. sbindir
  804. bindir
  805. program_transform_name
  806. prefix
  807. exec_prefix
  808. PACKAGE_URL
  809. PACKAGE_BUGREPORT
  810. PACKAGE_STRING
  811. PACKAGE_VERSION
  812. PACKAGE_TARNAME
  813. PACKAGE_NAME
  814. PATH_SEPARATOR
  815. SHELL'
  816. ac_subst_files=''
  817. ac_user_opts='
  818. enable_option_checking
  819. enable_dependency_tracking
  820. enable_shared
  821. enable_local_libopts
  822. enable_libopts_install
  823. with_autoopts_config
  824. with_regex_header
  825. with_libregex
  826. with_libregex_cflags
  827. with_libregex_libs
  828. enable_optional_args
  829. with_binsubdir
  830. with_arlib
  831. with_rpath
  832. enable_static
  833. enable_fast_install
  834. with_gnu_ld
  835. enable_libtool_lock
  836. with_pic
  837. with_tags
  838. enable_getifaddrs
  839. enable_debugging
  840. enable_debug_timing
  841. enable_dst_minutes
  842. enable_ignore_dns_errors
  843. enable_BANCOMM
  844. enable_GPSVME
  845. enable_all_clocks
  846. enable_ACTS
  847. enable_ARBITER
  848. enable_ARCRON_MSF
  849. enable_AS2201
  850. enable_ATOM
  851. enable_CHRONOLOG
  852. enable_CHU
  853. enable_AUDIO_CHU
  854. enable_DATUM
  855. enable_DUMBCLOCK
  856. enable_FG
  857. enable_HEATH
  858. enable_HOPFSERIAL
  859. enable_HOPFPCI
  860. enable_HPGPS
  861. enable_IRIG
  862. enable_JJY
  863. enable_JUPITER
  864. enable_LEITCH
  865. enable_LOCAL_CLOCK
  866. enable_MX4200
  867. enable_NEOCLOCK4X
  868. enable_NMEA
  869. enable_ONCORE
  870. enable_PALISADE
  871. enable_PCF
  872. enable_PST
  873. enable_RIPENCC
  874. enable_SHM
  875. enable_SPECTRACOM
  876. enable_TPRO
  877. enable_TRUETIME
  878. enable_TT560
  879. enable_ULINK
  880. enable_WWV
  881. enable_ZYFER
  882. enable_parse_clocks
  883. enable_COMPUTIME
  884. enable_DCF7000
  885. enable_HOPF6021
  886. enable_MEINBERG
  887. enable_RAWDCF
  888. enable_RCC8000
  889. enable_SCHMID
  890. enable_TRIMTAIP
  891. enable_TRIMTSIP
  892. enable_WHARTON
  893. enable_VARITEXT
  894. with_openssl_libdir
  895. with_openssl_incdir
  896. with_crypto
  897. with_electricfence
  898. enable_kmem
  899. enable_accurate_adjtime
  900. enable_tick
  901. enable_tickadj
  902. enable_simulator
  903. enable_slew_always
  904. enable_step_slew
  905. enable_ntpdate_step
  906. enable_hourly_todr_sync
  907. enable_kernel_fll_bug
  908. enable_irig_sawtooth
  909. enable_nist
  910. enable_ntp_signd
  911. enable_wintime
  912. enable_clockctl
  913. enable_linuxcaps
  914. enable_ipv6
  915. with_kame
  916. '
  917. ac_precious_vars='build_alias
  918. host_alias
  919. target_alias
  920. CC
  921. CFLAGS
  922. LDFLAGS
  923. LIBS
  924. CPPFLAGS
  925. CPP'
  926. ac_subdirs_all='arlib
  927. sntp'
  928. # Initialize some variables set by options.
  929. ac_init_help=
  930. ac_init_version=false
  931. ac_unrecognized_opts=
  932. ac_unrecognized_sep=
  933. # The variables have the same names as the options, with
  934. # dashes changed to underlines.
  935. cache_file=/dev/null
  936. exec_prefix=NONE
  937. no_create=
  938. no_recursion=
  939. prefix=NONE
  940. program_prefix=NONE
  941. program_suffix=NONE
  942. program_transform_name=s,x,x,
  943. silent=
  944. site=
  945. srcdir=
  946. verbose=
  947. x_includes=NONE
  948. x_libraries=NONE
  949. # Installation directory options.
  950. # These are left unexpanded so users can "make install exec_prefix=/foo"
  951. # and all the variables that are supposed to be based on exec_prefix
  952. # by default will actually change.
  953. # Use braces instead of parens because sh, perl, etc. also accept them.
  954. # (The list follows the same order as the GNU Coding Standards.)
  955. bindir='${exec_prefix}/bin'
  956. sbindir='${exec_prefix}/sbin'
  957. libexecdir='${exec_prefix}/libexec'
  958. datarootdir='${prefix}/share'
  959. datadir='${datarootdir}'
  960. sysconfdir='${prefix}/etc'
  961. sharedstatedir='${prefix}/com'
  962. localstatedir='${prefix}/var'
  963. includedir='${prefix}/include'
  964. oldincludedir='/usr/include'
  965. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  966. infodir='${datarootdir}/info'
  967. htmldir='${docdir}'
  968. dvidir='${docdir}'
  969. pdfdir='${docdir}'
  970. psdir='${docdir}'
  971. libdir='${exec_prefix}/lib'
  972. localedir='${datarootdir}/locale'
  973. mandir='${datarootdir}/man'
  974. ac_prev=
  975. ac_dashdash=
  976. for ac_option
  977. do
  978. # If the previous option needs an argument, assign it.
  979. if test -n "$ac_prev"; then
  980. eval $ac_prev=\$ac_option
  981. ac_prev=
  982. continue
  983. fi
  984. case $ac_option in
  985. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  986. *) ac_optarg=yes ;;
  987. esac
  988. # Accept the important Cygnus configure options, so we can diagnose typos.
  989. case $ac_dashdash$ac_option in
  990. --)
  991. ac_dashdash=yes ;;
  992. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  993. ac_prev=bindir ;;
  994. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  995. bindir=$ac_optarg ;;
  996. -build | --build | --buil | --bui | --bu)
  997. ac_prev=build_alias ;;
  998. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  999. build_alias=$ac_optarg ;;
  1000. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1001. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1002. ac_prev=cache_file ;;
  1003. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1004. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1005. cache_file=$ac_optarg ;;
  1006. --config-cache | -C)
  1007. cache_file=config.cache ;;
  1008. -datadir | --datadir | --datadi | --datad)
  1009. ac_prev=datadir ;;
  1010. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1011. datadir=$ac_optarg ;;
  1012. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1013. | --dataroo | --dataro | --datar)
  1014. ac_prev=datarootdir ;;
  1015. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1016. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1017. datarootdir=$ac_optarg ;;
  1018. -disable-* | --disable-*)
  1019. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1020. # Reject names that are not valid shell variable names.
  1021. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1022. as_fn_error "invalid feature name: $ac_useropt"
  1023. ac_useropt_orig=$ac_useropt
  1024. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1025. case $ac_user_opts in
  1026. *"
  1027. "enable_$ac_useropt"
  1028. "*) ;;
  1029. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1030. ac_unrecognized_sep=', ';;
  1031. esac
  1032. eval enable_$ac_useropt=no ;;
  1033. -docdir | --docdir | --docdi | --doc | --do)
  1034. ac_prev=docdir ;;
  1035. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1036. docdir=$ac_optarg ;;
  1037. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1038. ac_prev=dvidir ;;
  1039. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1040. dvidir=$ac_optarg ;;
  1041. -enable-* | --enable-*)
  1042. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1043. # Reject names that are not valid shell variable names.
  1044. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1045. as_fn_error "invalid feature name: $ac_useropt"
  1046. ac_useropt_orig=$ac_useropt
  1047. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1048. case $ac_user_opts in
  1049. *"
  1050. "enable_$ac_useropt"
  1051. "*) ;;
  1052. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1053. ac_unrecognized_sep=', ';;
  1054. esac
  1055. eval enable_$ac_useropt=\$ac_optarg ;;
  1056. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1057. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1058. | --exec | --exe | --ex)
  1059. ac_prev=exec_prefix ;;
  1060. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1061. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1062. | --exec=* | --exe=* | --ex=*)
  1063. exec_prefix=$ac_optarg ;;
  1064. -gas | --gas | --ga | --g)
  1065. # Obsolete; use --with-gas.
  1066. with_gas=yes ;;
  1067. -help | --help | --hel | --he | -h)
  1068. ac_init_help=long ;;
  1069. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1070. ac_init_help=recursive ;;
  1071. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1072. ac_init_help=short ;;
  1073. -host | --host | --hos | --ho)
  1074. ac_prev=host_alias ;;
  1075. -host=* | --host=* | --hos=* | --ho=*)
  1076. host_alias=$ac_optarg ;;
  1077. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1078. ac_prev=htmldir ;;
  1079. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1080. | --ht=*)
  1081. htmldir=$ac_optarg ;;
  1082. -includedir | --includedir | --includedi | --included | --include \
  1083. | --includ | --inclu | --incl | --inc)
  1084. ac_prev=includedir ;;
  1085. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1086. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1087. includedir=$ac_optarg ;;
  1088. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1089. ac_prev=infodir ;;
  1090. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1091. infodir=$ac_optarg ;;
  1092. -libdir | --libdir | --libdi | --libd)
  1093. ac_prev=libdir ;;
  1094. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1095. libdir=$ac_optarg ;;
  1096. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1097. | --libexe | --libex | --libe)
  1098. ac_prev=libexecdir ;;
  1099. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1100. | --libexe=* | --libex=* | --libe=*)
  1101. libexecdir=$ac_optarg ;;
  1102. -localedir | --localedir | --localedi | --localed | --locale)
  1103. ac_prev=localedir ;;
  1104. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1105. localedir=$ac_optarg ;;
  1106. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1107. | --localstate | --localstat | --localsta | --localst | --locals)
  1108. ac_prev=localstatedir ;;
  1109. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1110. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1111. localstatedir=$ac_optarg ;;
  1112. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1113. ac_prev=mandir ;;
  1114. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1115. mandir=$ac_optarg ;;
  1116. -nfp | --nfp | --nf)
  1117. # Obsolete; use --without-fp.
  1118. with_fp=no ;;
  1119. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1120. | --no-cr | --no-c | -n)
  1121. no_create=yes ;;
  1122. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1123. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1124. no_recursion=yes ;;
  1125. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1126. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1127. | --oldin | --oldi | --old | --ol | --o)
  1128. ac_prev=oldincludedir ;;
  1129. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1130. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1131. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1132. oldincludedir=$ac_optarg ;;
  1133. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1134. ac_prev=prefix ;;
  1135. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1136. prefix=$ac_optarg ;;
  1137. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1138. | --program-pre | --program-pr | --program-p)
  1139. ac_prev=program_prefix ;;
  1140. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1141. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1142. program_prefix=$ac_optarg ;;
  1143. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1144. | --program-suf | --program-su | --program-s)
  1145. ac_prev=program_suffix ;;
  1146. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1147. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1148. program_suffix=$ac_optarg ;;
  1149. -program-transform-name | --program-transform-name \
  1150. | --program-transform-nam | --program-transform-na \
  1151. | --program-transform-n | --program-transform- \
  1152. | --program-transform | --program-transfor \
  1153. | --program-transfo | --program-transf \
  1154. | --program-trans | --program-tran \
  1155. | --progr-tra | --program-tr | --program-t)
  1156. ac_prev=program_transform_name ;;
  1157. -program-transform-name=* | --program-transform-name=* \
  1158. | --program-transform-nam=* | --program-transform-na=* \
  1159. | --program-transform-n=* | --program-transform-=* \
  1160. | --program-transform=* | --program-transfor=* \
  1161. | --program-transfo=* | --program-transf=* \
  1162. | --program-trans=* | --program-tran=* \
  1163. | --progr-tra=* | --program-tr=* | --program-t=*)
  1164. program_transform_name=$ac_optarg ;;
  1165. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1166. ac_prev=pdfdir ;;
  1167. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1168. pdfdir=$ac_optarg ;;
  1169. -psdir | --psdir | --psdi | --psd | --ps)
  1170. ac_prev=psdir ;;
  1171. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1172. psdir=$ac_optarg ;;
  1173. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1174. | -silent | --silent | --silen | --sile | --sil)
  1175. silent=yes ;;
  1176. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1177. ac_prev=sbindir ;;
  1178. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1179. | --sbi=* | --sb=*)
  1180. sbindir=$ac_optarg ;;
  1181. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1182. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1183. | --sharedst | --shareds | --shared | --share | --shar \
  1184. | --sha | --sh)
  1185. ac_prev=sharedstatedir ;;
  1186. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1187. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1188. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1189. | --sha=* | --sh=*)
  1190. sharedstatedir=$ac_optarg ;;
  1191. -site | --site | --sit)
  1192. ac_prev=site ;;
  1193. -site=* | --site=* | --sit=*)
  1194. site=$ac_optarg ;;
  1195. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1196. ac_prev=srcdir ;;
  1197. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1198. srcdir=$ac_optarg ;;
  1199. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1200. | --syscon | --sysco | --sysc | --sys | --sy)
  1201. ac_prev=sysconfdir ;;
  1202. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1203. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1204. sysconfdir=$ac_optarg ;;
  1205. -target | --target | --targe | --targ | --tar | --ta | --t)
  1206. ac_prev=target_alias ;;
  1207. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1208. target_alias=$ac_optarg ;;
  1209. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1210. verbose=yes ;;
  1211. -version | --version | --versio | --versi | --vers | -V)
  1212. ac_init_version=: ;;
  1213. -with-* | --with-*)
  1214. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1215. # Reject names that are not valid shell variable names.
  1216. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1217. as_fn_error "invalid package name: $ac_useropt"
  1218. ac_useropt_orig=$ac_useropt
  1219. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1220. case $ac_user_opts in
  1221. *"
  1222. "with_$ac_useropt"
  1223. "*) ;;
  1224. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1225. ac_unrecognized_sep=', ';;
  1226. esac
  1227. eval with_$ac_useropt=\$ac_optarg ;;
  1228. -without-* | --without-*)
  1229. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1230. # Reject names that are not valid shell variable names.
  1231. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1232. as_fn_error "invalid package name: $ac_useropt"
  1233. ac_useropt_orig=$ac_useropt
  1234. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1235. case $ac_user_opts in
  1236. *"
  1237. "with_$ac_useropt"
  1238. "*) ;;
  1239. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1240. ac_unrecognized_sep=', ';;
  1241. esac
  1242. eval with_$ac_useropt=no ;;
  1243. --x)
  1244. # Obsolete; use --with-x.
  1245. with_x=yes ;;
  1246. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1247. | --x-incl | --x-inc | --x-in | --x-i)
  1248. ac_prev=x_includes ;;
  1249. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1250. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1251. x_includes=$ac_optarg ;;
  1252. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1253. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1254. ac_prev=x_libraries ;;
  1255. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1256. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1257. x_libraries=$ac_optarg ;;
  1258. -*) as_fn_error "unrecognized option: \`$ac_option'
  1259. Try \`$0 --help' for more information."
  1260. ;;
  1261. *=*)
  1262. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1263. # Reject names that are not valid shell variable names.
  1264. case $ac_envvar in #(
  1265. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1266. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1267. esac
  1268. eval $ac_envvar=\$ac_optarg
  1269. export $ac_envvar ;;
  1270. *)
  1271. # FIXME: should be removed in autoconf 3.0.
  1272. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1273. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1274. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1275. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1276. ;;
  1277. esac
  1278. done
  1279. if test -n "$ac_prev"; then
  1280. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1281. as_fn_error "missing argument to $ac_option"
  1282. fi
  1283. if test -n "$ac_unrecognized_opts"; then
  1284. case $enable_option_checking in
  1285. no) ;;
  1286. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1287. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1288. esac
  1289. fi
  1290. # Check all directory arguments for consistency.
  1291. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1292. datadir sysconfdir sharedstatedir localstatedir includedir \
  1293. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1294. libdir localedir mandir
  1295. do
  1296. eval ac_val=\$$ac_var
  1297. # Remove trailing slashes.
  1298. case $ac_val in
  1299. */ )
  1300. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1301. eval $ac_var=\$ac_val;;
  1302. esac
  1303. # Be sure to have absolute directory names.
  1304. case $ac_val in
  1305. [\\/$]* | ?:[\\/]* ) continue;;
  1306. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1307. esac
  1308. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1309. done
  1310. # There might be people who depend on the old broken behavior: `$host'
  1311. # used to hold the argument of --host etc.
  1312. # FIXME: To remove some day.
  1313. build=$build_alias
  1314. host=$host_alias
  1315. target=$target_alias
  1316. # FIXME: To remove some day.
  1317. if test "x$host_alias" != x; then
  1318. if test "x$build_alias" = x; then
  1319. cross_compiling=maybe
  1320. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1321. If a cross compiler is detected then cross compile mode will be used." >&2
  1322. elif test "x$build_alias" != "x$host_alias"; then
  1323. cross_compiling=yes
  1324. fi
  1325. fi
  1326. ac_tool_prefix=
  1327. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1328. test "$silent" = yes && exec 6>/dev/null
  1329. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1330. ac_ls_di=`ls -di .` &&
  1331. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1332. as_fn_error "working directory cannot be determined"
  1333. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1334. as_fn_error "pwd does not report name of working directory"
  1335. # Find the source files, if location was not specified.
  1336. if test -z "$srcdir"; then
  1337. ac_srcdir_defaulted=yes
  1338. # Try the directory containing this script, then the parent directory.
  1339. ac_confdir=`$as_dirname -- "$as_myself" ||
  1340. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1341. X"$as_myself" : 'X\(//\)[^/]' \| \
  1342. X"$as_myself" : 'X\(//\)$' \| \
  1343. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1344. $as_echo X"$as_myself" |
  1345. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1346. s//\1/
  1347. q
  1348. }
  1349. /^X\(\/\/\)[^/].*/{
  1350. s//\1/
  1351. q
  1352. }
  1353. /^X\(\/\/\)$/{
  1354. s//\1/
  1355. q
  1356. }
  1357. /^X\(\/\).*/{
  1358. s//\1/
  1359. q
  1360. }
  1361. s/.*/./; q'`
  1362. srcdir=$ac_confdir
  1363. if test ! -r "$srcdir/$ac_unique_file"; then
  1364. srcdir=..
  1365. fi
  1366. else
  1367. ac_srcdir_defaulted=no
  1368. fi
  1369. if test ! -r "$srcdir/$ac_unique_file"; then
  1370. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1371. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1372. fi
  1373. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1374. ac_abs_confdir=`(
  1375. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1376. pwd)`
  1377. # When building in place, set srcdir=.
  1378. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1379. srcdir=.
  1380. fi
  1381. # Remove unnecessary trailing slashes from srcdir.
  1382. # Double slashes in file names in object file debugging info
  1383. # mess up M-x gdb in Emacs.
  1384. case $srcdir in
  1385. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1386. esac
  1387. for ac_var in $ac_precious_vars; do
  1388. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1389. eval ac_env_${ac_var}_value=\$${ac_var}
  1390. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1391. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1392. done
  1393. #
  1394. # Report the --help message.
  1395. #
  1396. if test "$ac_init_help" = "long"; then
  1397. # Omit some internal or obsolete options to make the list less imposing.
  1398. # This message is too long to be a string in the A/UX 3.1 sh.
  1399. cat <<_ACEOF
  1400. \`configure' configures ntp 4.2.4p8 to adapt to many kinds of systems.
  1401. Usage: $0 [OPTION]... [VAR=VALUE]...
  1402. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1403. VAR=VALUE. See below for descriptions of some of the useful variables.
  1404. Defaults for the options are specified in brackets.
  1405. Configuration:
  1406. -h, --help display this help and exit
  1407. --help=short display options specific to this package
  1408. --help=recursive display the short help of all the included packages
  1409. -V, --version display version information and exit
  1410. -q, --quiet, --silent do not print \`checking...' messages
  1411. --cache-file=FILE cache test results in FILE [disabled]
  1412. -C, --config-cache alias for \`--cache-file=config.cache'
  1413. -n, --no-create do not create output files
  1414. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1415. Installation directories:
  1416. --prefix=PREFIX install architecture-independent files in PREFIX
  1417. [$ac_default_prefix]
  1418. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1419. [PREFIX]
  1420. By default, \`make install' will install all the files in
  1421. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1422. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1423. for instance \`--prefix=\$HOME'.
  1424. For better control, use the options below.
  1425. Fine tuning of the installation directories:
  1426. --bindir=DIR user executables [EPREFIX/bin]
  1427. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1428. --libexecdir=DIR program executables [EPREFIX/libexec]
  1429. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1430. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1431. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1432. --libdir=DIR object code libraries [EPREFIX/lib]
  1433. --includedir=DIR C header files [PREFIX/include]
  1434. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1435. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1436. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1437. --infodir=DIR info documentation [DATAROOTDIR/info]
  1438. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1439. --mandir=DIR man documentation [DATAROOTDIR/man]
  1440. --docdir=DIR documentation root [DATAROOTDIR/doc/ntp]
  1441. --htmldir=DIR html documentation [DOCDIR]
  1442. --dvidir=DIR dvi documentation [DOCDIR]
  1443. --pdfdir=DIR pdf documentation [DOCDIR]
  1444. --psdir=DIR ps documentation [DOCDIR]
  1445. _ACEOF
  1446. cat <<\_ACEOF
  1447. Program names:
  1448. --program-prefix=PREFIX prepend PREFIX to installed program names
  1449. --program-suffix=SUFFIX append SUFFIX to installed program names
  1450. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1451. System types:
  1452. --build=BUILD configure for building on BUILD [guessed]
  1453. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1454. _ACEOF
  1455. fi
  1456. if test -n "$ac_init_help"; then
  1457. case $ac_init_help in
  1458. short | recursive ) echo "Configuration of ntp 4.2.4p8:";;
  1459. esac
  1460. cat <<\_ACEOF
  1461. Optional Features:
  1462. --disable-option-checking ignore unrecognized --enable/--with options
  1463. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1464. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1465. --disable-dependency-tracking speeds up one-time build
  1466. --enable-dependency-tracking do not reject slow dependency extractors
  1467. --enable-shared[=PKGS] build shared libraries [default=no]
  1468. --enable-local-libopts Force using the supplied libopts tearoff code
  1469. --disable-libopts-install
  1470. Do not install libopts with client installation
  1471. --disable-optional-args not wanting optional option args
  1472. --enable-static[=PKGS] build static libraries [default=yes]
  1473. --enable-fast-install[=PKGS]
  1474. optimize for fast installation [default=yes]
  1475. --disable-libtool-lock avoid locking (might break parallel builds)
  1476. --enable-getifaddrs s Enable the use of getifaddrs() [[yes|no|glibc]].
  1477. glibc: Use getifaddrs() in glibc if you know it
  1478. supports IPv6.
  1479. --enable-debugging + include debugging code
  1480. --enable-debug-timing - include processing time debugging code (costs
  1481. performance)
  1482. --enable-dst-minutes n minutes per DST adjustment [60]
  1483. --enable-ignore-dns-errors
  1484. - retry DNS queries on any error
  1485. --enable-BANCOMM - Datum/Bancomm bc635/VME interface
  1486. --enable-GPSVME - TrueTime GPS receiver/VME interface
  1487. --enable-all-clocks + include all suitable non-PARSE clocks:
  1488. --enable-ACTS s ACTS modem service
  1489. --enable-ARBITER + Arbiter 1088A/B GPS receiver
  1490. --enable-ARCRON-MSF + Arcron MSF receiver
  1491. --enable-AS2201 + Austron 2200A/2201A GPS receiver
  1492. --enable-ATOM s ATOM PPS interface
  1493. --enable-CHRONOLOG + Chrono-log K-series WWVB receiver
  1494. --enable-CHU + CHU modem/decoder
  1495. --enable-AUDIO-CHU s CHU audio/decoder
  1496. --enable-DATUM s Datum Programmable Time System
  1497. --enable-DUMBCLOCK + Dumb generic hh:mm:ss local clock
  1498. --enable-FG + Forum Graphic GPS
  1499. --enable-HEATH s Heath GC-1000 WWV/WWVH receiver
  1500. --enable-HOPFSERIAL + hopf serial clock device
  1501. --enable-HOPFPCI + hopf 6039 PCI board
  1502. --enable-HPGPS + HP 58503A GPS receiver
  1503. --enable-IRIG s IRIG audio decoder
  1504. --enable-JJY + JJY receiver
  1505. --enable-JUPITER s Rockwell Jupiter GPS receiver
  1506. --enable-LEITCH + Leitch CSD 5300 Master Clock System Driver
  1507. --enable-LOCAL-CLOCK + local clock reference
  1508. --enable-MX4200 s Magnavox MX4200 GPS receiver
  1509. --enable-NEOCLOCK4X + NeoClock4X DCF77 / TDF receiver
  1510. --enable-NMEA + NMEA GPS receiver
  1511. --enable-ONCORE s Motorola VP/UT Oncore GPS receiver
  1512. --enable-PALISADE s Palisade clock
  1513. --enable-PCF + Conrad parallel port radio clock
  1514. --enable-PST + PST/Traconex 1020 WWV/WWVH receiver
  1515. --enable-RIPENCC - RIPENCC specific Trimble driver
  1516. --enable-SHM s SHM clock attached thru shared memory
  1517. --enable-SPECTRACOM + Spectracom 8170/Netclock/2 WWVB receiver
  1518. --enable-TPRO s KSI/Odetics TPRO/S GPS receiver/IRIG interface
  1519. --enable-TRUETIME s Kinemetrics/TrueTime receivers
  1520. --enable-TT560 - TrueTime 560 IRIG-B decoder
  1521. --enable-ULINK + Ultralink WWVB receiver
  1522. --enable-WWV s WWV Audio receiver
  1523. --enable-ZYFER + Zyfer GPStarplus receiver
  1524. --enable-parse-clocks - include all suitable PARSE clocks:
  1525. --enable-COMPUTIME s Diem Computime Radio Clock
  1526. --enable-DCF7000 s ELV/DCF7000 clock
  1527. --enable-HOPF6021 s HOPF 6021 clock
  1528. --enable-MEINBERG s Meinberg clocks
  1529. --enable-RAWDCF s DCF77 raw time code
  1530. --enable-RCC8000 s RCC 8000 clock
  1531. --enable-SCHMID s Schmid DCF77 clock
  1532. --enable-TRIMTAIP s Trimble GPS receiver/TAIP protocol
  1533. --enable-TRIMTSIP s Trimble GPS receiver/TSIP protocol
  1534. --enable-WHARTON s WHARTON 400A Series clock
  1535. --enable-VARITEXT s VARITEXT clock
  1536. --enable-kmem s read /dev/kmem for tick and/or tickadj
  1537. --enable-accurate-adjtime
  1538. s the adjtime() call is accurate
  1539. --enable-tick=VALUE s force a value for 'tick'
  1540. --enable-tickadj=VALUE s force a value for 'tickadj'
  1541. --enable-simulator - build/install the NTPD simulator?
  1542. --enable-slew-always s always slew the time
  1543. --enable-step-slew s step and slew the time
  1544. --enable-ntpdate-step s if ntpdate should step the time
  1545. --enable-hourly-todr-sync
  1546. s if we should sync TODR hourly
  1547. --enable-kernel-fll-bug s if we should avoid a kernel FLL bug
  1548. --enable-irig-sawtooth s if we should enable the IRIG sawtooth filter
  1549. --enable-nist - if we should enable the NIST lockclock scheme
  1550. --enable-ntp-signd - Provide support for Samba's signing daemon,
  1551. =/var/run/ntp_signd
  1552. --enable-wintime - Provide the windows symmetric client hack
  1553. --enable-clockctl s Use /dev/clockctl for non-root clock control
  1554. --enable-linuxcaps + Use Linux capabilities for non-root clock control
  1555. --enable-ipv6 s use IPv6?
  1556. Optional Packages:
  1557. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1558. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1559. --with-autoopts-config specify the config-info script
  1560. --with-regex-header a reg expr header is specified
  1561. --with-libregex libregex installation prefix
  1562. --with-libregex-cflags libregex compile flags
  1563. --with-libregex-libs libregex link command arguments
  1564. --with-binsubdir bin ={bin,sbin}
  1565. --with-arlib - Compile the async resolver library?
  1566. --without-rpath s Disable auto-added -R linker paths
  1567. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1568. --with-pic try to use only PIC/non-PIC objects [default=use
  1569. both]
  1570. --with-tags[=TAGS] include additional configurations [automatic]
  1571. --with-openssl-libdir + =/something/reasonable
  1572. --with-openssl-incdir + =/something/reasonable
  1573. --with-crypto + =openssl
  1574. --with-electricfence - compile with ElectricFence malloc debugger
  1575. --with-kame - =/usr/local/v6
  1576. Some influential environment variables:
  1577. CC C compiler command
  1578. CFLAGS C compiler flags
  1579. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1580. nonstandard directory <lib dir>
  1581. LIBS libraries to pass to the linker, e.g. -l<library>
  1582. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1583. you have headers in a nonstandard directory <include dir>
  1584. CPP C preprocessor
  1585. Use these variables to override the choices made by `configure' or to help
  1586. it to find libraries and programs with nonstandard names/locations.
  1587. Report bugs to the package provider.
  1588. _ACEOF
  1589. ac_status=$?
  1590. fi
  1591. if test "$ac_init_help" = "recursive"; then
  1592. # If there are subdirs, report their specific --help.
  1593. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1594. test -d "$ac_dir" ||
  1595. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1596. continue
  1597. ac_builddir=.
  1598. case "$ac_dir" in
  1599. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1600. *)
  1601. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1602. # A ".." for each directory in $ac_dir_suffix.
  1603. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1604. case $ac_top_builddir_sub in
  1605. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1606. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1607. esac ;;
  1608. esac
  1609. ac_abs_top_builddir=$ac_pwd
  1610. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1611. # for backward compatibility:
  1612. ac_top_builddir=$ac_top_build_prefix
  1613. case $srcdir in
  1614. .) # We are building in place.
  1615. ac_srcdir=.
  1616. ac_top_srcdir=$ac_top_builddir_sub
  1617. ac_abs_top_srcdir=$ac_pwd ;;
  1618. [\\/]* | ?:[\\/]* ) # Absolute name.
  1619. ac_srcdir=$srcdir$ac_dir_suffix;
  1620. ac_top_srcdir=$srcdir
  1621. ac_abs_top_srcdir=$srcdir ;;
  1622. *) # Relative name.
  1623. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1624. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1625. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1626. esac
  1627. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1628. cd "$ac_dir" || { ac_status=$?; continue; }
  1629. # Check for guested configure.
  1630. if test -f "$ac_srcdir/configure.gnu"; then
  1631. echo &&
  1632. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1633. elif test -f "$ac_srcdir/configure"; then
  1634. echo &&
  1635. $SHELL "$ac_srcdir/configure" --help=recursive
  1636. else
  1637. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1638. fi || ac_status=$?
  1639. cd "$ac_pwd" || { ac_status=$?; break; }
  1640. done
  1641. fi
  1642. test -n "$ac_init_help" && exit $ac_status
  1643. if $ac_init_version; then
  1644. cat <<\_ACEOF
  1645. ntp configure 4.2.4p8
  1646. generated by GNU Autoconf 2.65
  1647. Copyright (C) 2009 Free Software Foundation, Inc.
  1648. This configure script is free software; the Free Software Foundation
  1649. gives unlimited permission to copy, distribute and modify it.
  1650. _ACEOF
  1651. exit
  1652. fi
  1653. ## ------------------------ ##
  1654. ## Autoconf initialization. ##
  1655. ## ------------------------ ##
  1656. # ac_fn_c_try_compile LINENO
  1657. # --------------------------
  1658. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1659. ac_fn_c_try_compile ()
  1660. {
  1661. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1662. rm -f conftest.$ac_objext
  1663. if { { ac_try="$ac_compile"
  1664. case "(($ac_try" in
  1665. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1666. *) ac_try_echo=$ac_try;;
  1667. esac
  1668. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1669. $as_echo "$ac_try_echo"; } >&5
  1670. (eval "$ac_compile") 2>conftest.err
  1671. ac_status=$?
  1672. if test -s conftest.err; then
  1673. grep -v '^ *+' conftest.err >conftest.er1
  1674. cat conftest.er1 >&5
  1675. mv -f conftest.er1 conftest.err
  1676. fi
  1677. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1678. test $ac_status = 0; } && {
  1679. test -z "$ac_c_werror_flag" ||
  1680. test ! -s conftest.err
  1681. } && test -s conftest.$ac_objext; then :
  1682. ac_retval=0
  1683. else
  1684. $as_echo "$as_me: failed program was:" >&5
  1685. sed 's/^/| /' conftest.$ac_ext >&5
  1686. ac_retval=1
  1687. fi
  1688. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1689. as_fn_set_status $ac_retval
  1690. } # ac_fn_c_try_compile
  1691. # ac_fn_c_try_cpp LINENO
  1692. # ----------------------
  1693. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1694. ac_fn_c_try_cpp ()
  1695. {
  1696. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1697. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1698. case "(($ac_try" in
  1699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1700. *) ac_try_echo=$ac_try;;
  1701. esac
  1702. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1703. $as_echo "$ac_try_echo"; } >&5
  1704. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1705. ac_status=$?
  1706. if test -s conftest.err; then
  1707. grep -v '^ *+' conftest.err >conftest.er1
  1708. cat conftest.er1 >&5
  1709. mv -f conftest.er1 conftest.err
  1710. fi
  1711. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1712. test $ac_status = 0; } >/dev/null && {
  1713. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1714. test ! -s conftest.err
  1715. }; then :
  1716. ac_retval=0
  1717. else
  1718. $as_echo "$as_me: failed program was:" >&5
  1719. sed 's/^/| /' conftest.$ac_ext >&5
  1720. ac_retval=1
  1721. fi
  1722. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1723. as_fn_set_status $ac_retval
  1724. } # ac_fn_c_try_cpp
  1725. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1726. # -------------------------------------------------------
  1727. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1728. # the include files in INCLUDES and setting the cache variable VAR
  1729. # accordingly.
  1730. ac_fn_c_check_header_mongrel ()
  1731. {
  1732. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1733. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1735. $as_echo_n "checking for $2... " >&6; }
  1736. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1737. $as_echo_n "(cached) " >&6
  1738. fi
  1739. eval ac_res=\$$3
  1740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1741. $as_echo "$ac_res" >&6; }
  1742. else
  1743. # Is the header compilable?
  1744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1745. $as_echo_n "checking $2 usability... " >&6; }
  1746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1747. /* end confdefs.h. */
  1748. $4
  1749. #include <$2>
  1750. _ACEOF
  1751. if ac_fn_c_try_compile "$LINENO"; then :
  1752. ac_header_compiler=yes
  1753. else
  1754. ac_header_compiler=no
  1755. fi
  1756. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1758. $as_echo "$ac_header_compiler" >&6; }
  1759. # Is the header present?
  1760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1761. $as_echo_n "checking $2 presence... " >&6; }
  1762. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1763. /* end confdefs.h. */
  1764. #include <$2>
  1765. _ACEOF
  1766. if ac_fn_c_try_cpp "$LINENO"; then :
  1767. ac_header_preproc=yes
  1768. else
  1769. ac_header_preproc=no
  1770. fi
  1771. rm -f conftest.err conftest.$ac_ext
  1772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1773. $as_echo "$ac_header_preproc" >&6; }
  1774. # So? What about this header?
  1775. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1776. yes:no: )
  1777. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1778. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1779. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1780. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1781. ;;
  1782. no:yes:* )
  1783. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1784. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1785. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1786. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1787. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1788. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1789. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1790. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1791. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1792. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1793. ;;
  1794. esac
  1795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1796. $as_echo_n "checking for $2... " >&6; }
  1797. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1798. $as_echo_n "(cached) " >&6
  1799. else
  1800. eval "$3=\$ac_header_compiler"
  1801. fi
  1802. eval ac_res=\$$3
  1803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1804. $as_echo "$ac_res" >&6; }
  1805. fi
  1806. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1807. } # ac_fn_c_check_header_mongrel
  1808. # ac_fn_c_try_run LINENO
  1809. # ----------------------
  1810. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1811. # that executables *can* be run.
  1812. ac_fn_c_try_run ()
  1813. {
  1814. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1815. if { { ac_try="$ac_link"
  1816. case "(($ac_try" in
  1817. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1818. *) ac_try_echo=$ac_try;;
  1819. esac
  1820. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1821. $as_echo "$ac_try_echo"; } >&5
  1822. (eval "$ac_link") 2>&5
  1823. ac_status=$?
  1824. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1825. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1826. { { case "(($ac_try" in
  1827. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1828. *) ac_try_echo=$ac_try;;
  1829. esac
  1830. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1831. $as_echo "$ac_try_echo"; } >&5
  1832. (eval "$ac_try") 2>&5
  1833. ac_status=$?
  1834. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1835. test $ac_status = 0; }; }; then :
  1836. ac_retval=0
  1837. else
  1838. $as_echo "$as_me: program exited with status $ac_status" >&5
  1839. $as_echo "$as_me: failed program was:" >&5
  1840. sed 's/^/| /' conftest.$ac_ext >&5
  1841. ac_retval=$ac_status
  1842. fi
  1843. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1844. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1845. as_fn_set_status $ac_retval
  1846. } # ac_fn_c_try_run
  1847. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1848. # -------------------------------------------------------
  1849. # Tests whether HEADER exists and can be compiled using the include files in
  1850. # INCLUDES, setting the cache variable VAR accordingly.
  1851. ac_fn_c_check_header_compile ()
  1852. {
  1853. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1855. $as_echo_n "checking for $2... " >&6; }
  1856. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1857. $as_echo_n "(cached) " >&6
  1858. else
  1859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1860. /* end confdefs.h. */
  1861. $4
  1862. #include <$2>
  1863. _ACEOF
  1864. if ac_fn_c_try_compile "$LINENO"; then :
  1865. eval "$3=yes"
  1866. else
  1867. eval "$3=no"
  1868. fi
  1869. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1870. fi
  1871. eval ac_res=\$$3
  1872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1873. $as_echo "$ac_res" >&6; }
  1874. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1875. } # ac_fn_c_check_header_compile
  1876. # ac_fn_c_try_link LINENO
  1877. # -----------------------
  1878. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1879. ac_fn_c_try_link ()
  1880. {
  1881. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1882. rm -f conftest.$ac_objext conftest$ac_exeext
  1883. if { { ac_try="$ac_link"
  1884. case "(($ac_try" in
  1885. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1886. *) ac_try_echo=$ac_try;;
  1887. esac
  1888. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1889. $as_echo "$ac_try_echo"; } >&5
  1890. (eval "$ac_link") 2>conftest.err
  1891. ac_status=$?
  1892. if test -s conftest.err; then
  1893. grep -v '^ *+' conftest.err >conftest.er1
  1894. cat conftest.er1 >&5
  1895. mv -f conftest.er1 conftest.err
  1896. fi
  1897. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1898. test $ac_status = 0; } && {
  1899. test -z "$ac_c_werror_flag" ||
  1900. test ! -s conftest.err
  1901. } && test -s conftest$ac_exeext && {
  1902. test "$cross_compiling" = yes ||
  1903. $as_test_x conftest$ac_exeext
  1904. }; then :
  1905. ac_retval=0
  1906. else
  1907. $as_echo "$as_me: failed program was:" >&5
  1908. sed 's/^/| /' conftest.$ac_ext >&5
  1909. ac_retval=1
  1910. fi
  1911. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1912. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1913. # interfere with the next link command; also delete a directory that is
  1914. # left behind by Apple's compiler. We do this before executing the actions.
  1915. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1916. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1917. as_fn_set_status $ac_retval
  1918. } # ac_fn_c_try_link
  1919. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1920. # -------------------------------------------
  1921. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1922. # variable VAR accordingly.
  1923. ac_fn_c_check_type ()
  1924. {
  1925. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1927. $as_echo_n "checking for $2... " >&6; }
  1928. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1929. $as_echo_n "(cached) " >&6
  1930. else
  1931. eval "$3=no"
  1932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1933. /* end confdefs.h. */
  1934. $4
  1935. int
  1936. main ()
  1937. {
  1938. if (sizeof ($2))
  1939. return 0;
  1940. ;
  1941. return 0;
  1942. }
  1943. _ACEOF
  1944. if ac_fn_c_try_compile "$LINENO"; then :
  1945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1946. /* end confdefs.h. */
  1947. $4
  1948. int
  1949. main ()
  1950. {
  1951. if (sizeof (($2)))
  1952. return 0;
  1953. ;
  1954. return 0;
  1955. }
  1956. _ACEOF
  1957. if ac_fn_c_try_compile "$LINENO"; then :
  1958. else
  1959. eval "$3=yes"
  1960. fi
  1961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1962. fi
  1963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1964. fi
  1965. eval ac_res=\$$3
  1966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1967. $as_echo "$ac_res" >&6; }
  1968. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1969. } # ac_fn_c_check_type
  1970. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1971. # --------------------------------------------
  1972. # Tries to find the compile-time value of EXPR in a program that includes
  1973. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1974. # computed
  1975. ac_fn_c_compute_int ()
  1976. {
  1977. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1978. if test "$cross_compiling" = yes; then
  1979. # Depending upon the size, compute the lo and hi bounds.
  1980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1981. /* end confdefs.h. */
  1982. $4
  1983. int
  1984. main ()
  1985. {
  1986. static int test_array [1 - 2 * !(($2) >= 0)];
  1987. test_array [0] = 0
  1988. ;
  1989. return 0;
  1990. }
  1991. _ACEOF
  1992. if ac_fn_c_try_compile "$LINENO"; then :
  1993. ac_lo=0 ac_mid=0
  1994. while :; do
  1995. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1996. /* end confdefs.h. */
  1997. $4
  1998. int
  1999. main ()
  2000. {
  2001. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2002. test_array [0] = 0
  2003. ;
  2004. return 0;
  2005. }
  2006. _ACEOF
  2007. if ac_fn_c_try_compile "$LINENO"; then :
  2008. ac_hi=$ac_mid; break
  2009. else
  2010. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2011. if test $ac_lo -le $ac_mid; then
  2012. ac_lo= ac_hi=
  2013. break
  2014. fi
  2015. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2016. fi
  2017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2018. done
  2019. else
  2020. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2021. /* end confdefs.h. */
  2022. $4
  2023. int
  2024. main ()
  2025. {
  2026. static int test_array [1 - 2 * !(($2) < 0)];
  2027. test_array [0] = 0
  2028. ;
  2029. return 0;
  2030. }
  2031. _ACEOF
  2032. if ac_fn_c_try_compile "$LINENO"; then :
  2033. ac_hi=-1 ac_mid=-1
  2034. while :; do
  2035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2036. /* end confdefs.h. */
  2037. $4
  2038. int
  2039. main ()
  2040. {
  2041. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2042. test_array [0] = 0
  2043. ;
  2044. return 0;
  2045. }
  2046. _ACEOF
  2047. if ac_fn_c_try_compile "$LINENO"; then :
  2048. ac_lo=$ac_mid; break
  2049. else
  2050. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2051. if test $ac_mid -le $ac_hi; then
  2052. ac_lo= ac_hi=
  2053. break
  2054. fi
  2055. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2056. fi
  2057. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2058. done
  2059. else
  2060. ac_lo= ac_hi=
  2061. fi
  2062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2063. fi
  2064. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2065. # Binary search between lo and hi bounds.
  2066. while test "x$ac_lo" != "x$ac_hi"; do
  2067. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2068. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2069. /* end confdefs.h. */
  2070. $4
  2071. int
  2072. main ()
  2073. {
  2074. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2075. test_array [0] = 0
  2076. ;
  2077. return 0;
  2078. }
  2079. _ACEOF
  2080. if ac_fn_c_try_compile "$LINENO"; then :
  2081. ac_hi=$ac_mid
  2082. else
  2083. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2084. fi
  2085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2086. done
  2087. case $ac_lo in #((
  2088. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2089. '') ac_retval=1 ;;
  2090. esac
  2091. else
  2092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2093. /* end confdefs.h. */
  2094. $4
  2095. static long int longval () { return $2; }
  2096. static unsigned long int ulongval () { return $2; }
  2097. #include <stdio.h>
  2098. #include <stdlib.h>
  2099. int
  2100. main ()
  2101. {
  2102. FILE *f = fopen ("conftest.val", "w");
  2103. if (! f)
  2104. return 1;
  2105. if (($2) < 0)
  2106. {
  2107. long int i = longval ();
  2108. if (i != ($2))
  2109. return 1;
  2110. fprintf (f, "%ld", i);
  2111. }
  2112. else
  2113. {
  2114. unsigned long int i = ulongval ();
  2115. if (i != ($2))
  2116. return 1;
  2117. fprintf (f, "%lu", i);
  2118. }
  2119. /* Do not output a trailing newline, as this causes \r\n confusion
  2120. on some platforms. */
  2121. return ferror (f) || fclose (f) != 0;
  2122. ;
  2123. return 0;
  2124. }
  2125. _ACEOF
  2126. if ac_fn_c_try_run "$LINENO"; then :
  2127. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2128. else
  2129. ac_retval=1
  2130. fi
  2131. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2132. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2133. rm -f conftest.val
  2134. fi
  2135. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2136. as_fn_set_status $ac_retval
  2137. } # ac_fn_c_compute_int
  2138. # ac_fn_c_check_func LINENO FUNC VAR
  2139. # ----------------------------------
  2140. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2141. ac_fn_c_check_func ()
  2142. {
  2143. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2145. $as_echo_n "checking for $2... " >&6; }
  2146. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2147. $as_echo_n "(cached) " >&6
  2148. else
  2149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2150. /* end confdefs.h. */
  2151. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2152. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2153. #define $2 innocuous_$2
  2154. /* System header to define __stub macros and hopefully few prototypes,
  2155. which can conflict with char $2 (); below.
  2156. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2157. <limits.h> exists even on freestanding compilers. */
  2158. #ifdef __STDC__
  2159. # include <limits.h>
  2160. #else
  2161. # include <assert.h>
  2162. #endif
  2163. #undef $2
  2164. /* Override any GCC internal prototype to avoid an error.
  2165. Use char because int might match the return type of a GCC
  2166. builtin and then its argument prototype would still apply. */
  2167. #ifdef __cplusplus
  2168. extern "C"
  2169. #endif
  2170. char $2 ();
  2171. /* The GNU C library defines this for functions which it implements
  2172. to always fail with ENOSYS. Some functions are actually named
  2173. something starting with __ and the normal name is an alias. */
  2174. #if defined __stub_$2 || defined __stub___$2
  2175. choke me
  2176. #endif
  2177. int
  2178. main ()
  2179. {
  2180. return $2 ();
  2181. ;
  2182. return 0;
  2183. }
  2184. _ACEOF
  2185. if ac_fn_c_try_link "$LINENO"; then :
  2186. eval "$3=yes"
  2187. else
  2188. eval "$3=no"
  2189. fi
  2190. rm -f core conftest.err conftest.$ac_objext \
  2191. conftest$ac_exeext conftest.$ac_ext
  2192. fi
  2193. eval ac_res=\$$3
  2194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2195. $as_echo "$ac_res" >&6; }
  2196. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2197. } # ac_fn_c_check_func
  2198. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2199. # ----------------------------------------------------
  2200. # Tries to find if the field MEMBER exists in type AGGR, after including
  2201. # INCLUDES, setting cache variable VAR accordingly.
  2202. ac_fn_c_check_member ()
  2203. {
  2204. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2206. $as_echo_n "checking for $2.$3... " >&6; }
  2207. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  2208. $as_echo_n "(cached) " >&6
  2209. else
  2210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2211. /* end confdefs.h. */
  2212. $5
  2213. int
  2214. main ()
  2215. {
  2216. static $2 ac_aggr;
  2217. if (ac_aggr.$3)
  2218. return 0;
  2219. ;
  2220. return 0;
  2221. }
  2222. _ACEOF
  2223. if ac_fn_c_try_compile "$LINENO"; then :
  2224. eval "$4=yes"
  2225. else
  2226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2227. /* end confdefs.h. */
  2228. $5
  2229. int
  2230. main ()
  2231. {
  2232. static $2 ac_aggr;
  2233. if (sizeof ac_aggr.$3)
  2234. return 0;
  2235. ;
  2236. return 0;
  2237. }
  2238. _ACEOF
  2239. if ac_fn_c_try_compile "$LINENO"; then :
  2240. eval "$4=yes"
  2241. else
  2242. eval "$4=no"
  2243. fi
  2244. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2245. fi
  2246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2247. fi
  2248. eval ac_res=\$$4
  2249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2250. $as_echo "$ac_res" >&6; }
  2251. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2252. } # ac_fn_c_check_member
  2253. cat >config.log <<_ACEOF
  2254. This file contains any messages produced by compilers while
  2255. running configure, to aid debugging if configure makes a mistake.
  2256. It was created by ntp $as_me 4.2.4p8, which was
  2257. generated by GNU Autoconf 2.65. Invocation command line was
  2258. $ $0 $@
  2259. _ACEOF
  2260. exec 5>>config.log
  2261. {
  2262. cat <<_ASUNAME
  2263. ## --------- ##
  2264. ## Platform. ##
  2265. ## --------- ##
  2266. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2267. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2268. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2269. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2270. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2271. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2272. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2273. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2274. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2275. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2276. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2277. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2278. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2279. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2280. _ASUNAME
  2281. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2282. for as_dir in $PATH
  2283. do
  2284. IFS=$as_save_IFS
  2285. test -z "$as_dir" && as_dir=.
  2286. $as_echo "PATH: $as_dir"
  2287. done
  2288. IFS=$as_save_IFS
  2289. } >&5
  2290. cat >&5 <<_ACEOF
  2291. ## ----------- ##
  2292. ## Core tests. ##
  2293. ## ----------- ##
  2294. _ACEOF
  2295. # Keep a trace of the command line.
  2296. # Strip out --no-create and --no-recursion so they do not pile up.
  2297. # Strip out --silent because we don't want to record it for future runs.
  2298. # Also quote any args containing shell meta-characters.
  2299. # Make two passes to allow for proper duplicate-argument suppression.
  2300. ac_configure_args=
  2301. ac_configure_args0=
  2302. ac_configure_args1=
  2303. ac_must_keep_next=false
  2304. for ac_pass in 1 2
  2305. do
  2306. for ac_arg
  2307. do
  2308. case $ac_arg in
  2309. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2310. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2311. | -silent | --silent | --silen | --sile | --sil)
  2312. continue ;;
  2313. *\'*)
  2314. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2315. esac
  2316. case $ac_pass in
  2317. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2318. 2)
  2319. as_fn_append ac_configure_args1 " '$ac_arg'"
  2320. if test $ac_must_keep_next = true; then
  2321. ac_must_keep_next=false # Got value, back to normal.
  2322. else
  2323. case $ac_arg in
  2324. *=* | --config-cache | -C | -disable-* | --disable-* \
  2325. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2326. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2327. | -with-* | --with-* | -without-* | --without-* | --x)
  2328. case "$ac_configure_args0 " in
  2329. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2330. esac
  2331. ;;
  2332. -* ) ac_must_keep_next=true ;;
  2333. esac
  2334. fi
  2335. as_fn_append ac_configure_args " '$ac_arg'"
  2336. ;;
  2337. esac
  2338. done
  2339. done
  2340. { ac_configure_args0=; unset ac_configure_args0;}
  2341. { ac_configure_args1=; unset ac_configure_args1;}
  2342. # When interrupted or exit'd, cleanup temporary files, and complete
  2343. # config.log. We remove comments because anyway the quotes in there
  2344. # would cause problems or look ugly.
  2345. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2346. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2347. trap 'exit_status=$?
  2348. # Save into config.log some information that might help in debugging.
  2349. {
  2350. echo
  2351. cat <<\_ASBOX
  2352. ## ---------------- ##
  2353. ## Cache variables. ##
  2354. ## ---------------- ##
  2355. _ASBOX
  2356. echo
  2357. # The following way of writing the cache mishandles newlines in values,
  2358. (
  2359. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2360. eval ac_val=\$$ac_var
  2361. case $ac_val in #(
  2362. *${as_nl}*)
  2363. case $ac_var in #(
  2364. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2365. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2366. esac
  2367. case $ac_var in #(
  2368. _ | IFS | as_nl) ;; #(
  2369. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2370. *) { eval $ac_var=; unset $ac_var;} ;;
  2371. esac ;;
  2372. esac
  2373. done
  2374. (set) 2>&1 |
  2375. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2376. *${as_nl}ac_space=\ *)
  2377. sed -n \
  2378. "s/'\''/'\''\\\\'\'''\''/g;
  2379. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2380. ;; #(
  2381. *)
  2382. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2383. ;;
  2384. esac |
  2385. sort
  2386. )
  2387. echo
  2388. cat <<\_ASBOX
  2389. ## ----------------- ##
  2390. ## Output variables. ##
  2391. ## ----------------- ##
  2392. _ASBOX
  2393. echo
  2394. for ac_var in $ac_subst_vars
  2395. do
  2396. eval ac_val=\$$ac_var
  2397. case $ac_val in
  2398. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2399. esac
  2400. $as_echo "$ac_var='\''$ac_val'\''"
  2401. done | sort
  2402. echo
  2403. if test -n "$ac_subst_files"; then
  2404. cat <<\_ASBOX
  2405. ## ------------------- ##
  2406. ## File substitutions. ##
  2407. ## ------------------- ##
  2408. _ASBOX
  2409. echo
  2410. for ac_var in $ac_subst_files
  2411. do
  2412. eval ac_val=\$$ac_var
  2413. case $ac_val in
  2414. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2415. esac
  2416. $as_echo "$ac_var='\''$ac_val'\''"
  2417. done | sort
  2418. echo
  2419. fi
  2420. if test -s confdefs.h; then
  2421. cat <<\_ASBOX
  2422. ## ----------- ##
  2423. ## confdefs.h. ##
  2424. ## ----------- ##
  2425. _ASBOX
  2426. echo
  2427. cat confdefs.h
  2428. echo
  2429. fi
  2430. test "$ac_signal" != 0 &&
  2431. $as_echo "$as_me: caught signal $ac_signal"
  2432. $as_echo "$as_me: exit $exit_status"
  2433. } >&5
  2434. rm -f core *.core core.conftest.* &&
  2435. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2436. exit $exit_status
  2437. ' 0
  2438. for ac_signal in 1 2 13 15; do
  2439. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2440. done
  2441. ac_signal=0
  2442. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2443. rm -f -r conftest* confdefs.h
  2444. $as_echo "/* confdefs.h */" > confdefs.h
  2445. # Predefined preprocessor variables.
  2446. cat >>confdefs.h <<_ACEOF
  2447. #define PACKAGE_NAME "$PACKAGE_NAME"
  2448. _ACEOF
  2449. cat >>confdefs.h <<_ACEOF
  2450. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2451. _ACEOF
  2452. cat >>confdefs.h <<_ACEOF
  2453. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2454. _ACEOF
  2455. cat >>confdefs.h <<_ACEOF
  2456. #define PACKAGE_STRING "$PACKAGE_STRING"
  2457. _ACEOF
  2458. cat >>confdefs.h <<_ACEOF
  2459. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2460. _ACEOF
  2461. cat >>confdefs.h <<_ACEOF
  2462. #define PACKAGE_URL "$PACKAGE_URL"
  2463. _ACEOF
  2464. # Let the site file select an alternate cache file if it wants to.
  2465. # Prefer an explicitly selected file to automatically selected ones.
  2466. ac_site_file1=NONE
  2467. ac_site_file2=NONE
  2468. if test -n "$CONFIG_SITE"; then
  2469. ac_site_file1=$CONFIG_SITE
  2470. elif test "x$prefix" != xNONE; then
  2471. ac_site_file1=$prefix/share/config.site
  2472. ac_site_file2=$prefix/etc/config.site
  2473. else
  2474. ac_site_file1=$ac_default_prefix/share/config.site
  2475. ac_site_file2=$ac_default_prefix/etc/config.site
  2476. fi
  2477. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2478. do
  2479. test "x$ac_site_file" = xNONE && continue
  2480. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2481. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2482. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2483. sed 's/^/| /' "$ac_site_file" >&5
  2484. . "$ac_site_file"
  2485. fi
  2486. done
  2487. if test -r "$cache_file"; then
  2488. # Some versions of bash will fail to source /dev/null (special files
  2489. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2490. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2491. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2492. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2493. case $cache_file in
  2494. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2495. *) . "./$cache_file";;
  2496. esac
  2497. fi
  2498. else
  2499. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2500. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2501. >$cache_file
  2502. fi
  2503. # Check that the precious variables saved in the cache have kept the same
  2504. # value.
  2505. ac_cache_corrupted=false
  2506. for ac_var in $ac_precious_vars; do
  2507. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2508. eval ac_new_set=\$ac_env_${ac_var}_set
  2509. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2510. eval ac_new_val=\$ac_env_${ac_var}_value
  2511. case $ac_old_set,$ac_new_set in
  2512. set,)
  2513. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2514. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2515. ac_cache_corrupted=: ;;
  2516. ,set)
  2517. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2518. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2519. ac_cache_corrupted=: ;;
  2520. ,);;
  2521. *)
  2522. if test "x$ac_old_val" != "x$ac_new_val"; then
  2523. # differences in whitespace do not lead to failure.
  2524. ac_old_val_w=`echo x $ac_old_val`
  2525. ac_new_val_w=`echo x $ac_new_val`
  2526. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2528. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2529. ac_cache_corrupted=:
  2530. else
  2531. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2532. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2533. eval $ac_var=\$ac_old_val
  2534. fi
  2535. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2536. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2537. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2538. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2539. fi;;
  2540. esac
  2541. # Pass precious variables to config.status.
  2542. if test "$ac_new_set" = set; then
  2543. case $ac_new_val in
  2544. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2545. *) ac_arg=$ac_var=$ac_new_val ;;
  2546. esac
  2547. case " $ac_configure_args " in
  2548. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2549. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2550. esac
  2551. fi
  2552. done
  2553. if $ac_cache_corrupted; then
  2554. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2555. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2557. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2558. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2559. fi
  2560. ## -------------------- ##
  2561. ## Main body of script. ##
  2562. ## -------------------- ##
  2563. ac_ext=c
  2564. ac_cpp='$CPP $CPPFLAGS'
  2565. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2566. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2567. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2568. am__api_version='1.11'
  2569. ac_aux_dir=
  2570. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2571. for ac_t in install-sh install.sh shtool; do
  2572. if test -f "$ac_dir/$ac_t"; then
  2573. ac_aux_dir=$ac_dir
  2574. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2575. break 2
  2576. fi
  2577. done
  2578. done
  2579. if test -z "$ac_aux_dir"; then
  2580. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2581. fi
  2582. # These three variables are undocumented and unsupported,
  2583. # and are intended to be withdrawn in a future Autoconf release.
  2584. # They can cause serious problems if a builder's source tree is in a directory
  2585. # whose full name contains unusual characters.
  2586. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2587. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2588. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2589. # Find a good install program. We prefer a C program (faster),
  2590. # so one script is as good as another. But avoid the broken or
  2591. # incompatible versions:
  2592. # SysV /etc/install, /usr/sbin/install
  2593. # SunOS /usr/etc/install
  2594. # IRIX /sbin/install
  2595. # AIX /bin/install
  2596. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2597. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2598. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2599. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2600. # OS/2's system install, which has a completely different semantic
  2601. # ./install, which can be erroneously created by make from ./install.sh.
  2602. # Reject install programs that cannot install multiple files.
  2603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2604. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2605. if test -z "$INSTALL"; then
  2606. if test "${ac_cv_path_install+set}" = set; then :
  2607. $as_echo_n "(cached) " >&6
  2608. else
  2609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2610. for as_dir in $PATH
  2611. do
  2612. IFS=$as_save_IFS
  2613. test -z "$as_dir" && as_dir=.
  2614. # Account for people who put trailing slashes in PATH elements.
  2615. case $as_dir/ in #((
  2616. ./ | .// | /[cC]/* | \
  2617. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2618. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2619. /usr/ucb/* ) ;;
  2620. *)
  2621. # OSF1 and SCO ODT 3.0 have their own names for install.
  2622. # Don't use installbsd from OSF since it installs stuff as root
  2623. # by default.
  2624. for ac_prog in ginstall scoinst install; do
  2625. for ac_exec_ext in '' $ac_executable_extensions; do
  2626. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2627. if test $ac_prog = install &&
  2628. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2629. # AIX install. It has an incompatible calling convention.
  2630. :
  2631. elif test $ac_prog = install &&
  2632. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2633. # program-specific install script used by HP pwplus--don't use.
  2634. :
  2635. else
  2636. rm -rf conftest.one conftest.two conftest.dir
  2637. echo one > conftest.one
  2638. echo two > conftest.two
  2639. mkdir conftest.dir
  2640. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2641. test -s conftest.one && test -s conftest.two &&
  2642. test -s conftest.dir/conftest.one &&
  2643. test -s conftest.dir/conftest.two
  2644. then
  2645. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2646. break 3
  2647. fi
  2648. fi
  2649. fi
  2650. done
  2651. done
  2652. ;;
  2653. esac
  2654. done
  2655. IFS=$as_save_IFS
  2656. rm -rf conftest.one conftest.two conftest.dir
  2657. fi
  2658. if test "${ac_cv_path_install+set}" = set; then
  2659. INSTALL=$ac_cv_path_install
  2660. else
  2661. # As a last resort, use the slow shell script. Don't cache a
  2662. # value for INSTALL within a source directory, because that will
  2663. # break other packages using the cache if that directory is
  2664. # removed, or if the value is a relative name.
  2665. INSTALL=$ac_install_sh
  2666. fi
  2667. fi
  2668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2669. $as_echo "$INSTALL" >&6; }
  2670. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2671. # It thinks the first close brace ends the variable substitution.
  2672. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2673. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2674. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2676. $as_echo_n "checking whether build environment is sane... " >&6; }
  2677. # Just in case
  2678. sleep 1
  2679. echo timestamp > conftest.file
  2680. # Reject unsafe characters in $srcdir or the absolute working directory
  2681. # name. Accept space and tab only in the latter.
  2682. am_lf='
  2683. '
  2684. case `pwd` in
  2685. *[\\\"\#\$\&\'\`$am_lf]*)
  2686. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2687. esac
  2688. case $srcdir in
  2689. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2690. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2691. esac
  2692. # Do `set' in a subshell so we don't clobber the current shell's
  2693. # arguments. Must try -L first in case configure is actually a
  2694. # symlink; some systems play weird games with the mod time of symlinks
  2695. # (eg FreeBSD returns the mod time of the symlink's containing
  2696. # directory).
  2697. if (
  2698. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2699. if test "$*" = "X"; then
  2700. # -L didn't work.
  2701. set X `ls -t "$srcdir/configure" conftest.file`
  2702. fi
  2703. rm -f conftest.file
  2704. if test "$*" != "X $srcdir/configure conftest.file" \
  2705. && test "$*" != "X conftest.file $srcdir/configure"; then
  2706. # If neither matched, then we have a broken ls. This can happen
  2707. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2708. # broken ls alias from the environment. This has actually
  2709. # happened. Such a system could not be considered "sane".
  2710. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2711. alias in your environment" "$LINENO" 5
  2712. fi
  2713. test "$2" = conftest.file
  2714. )
  2715. then
  2716. # Ok.
  2717. :
  2718. else
  2719. as_fn_error "newly created file is older than distributed files!
  2720. Check your system clock" "$LINENO" 5
  2721. fi
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2723. $as_echo "yes" >&6; }
  2724. test "$program_prefix" != NONE &&
  2725. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2726. # Use a double $ so make ignores it.
  2727. test "$program_suffix" != NONE &&
  2728. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2729. # Double any \ or $.
  2730. # By default was `s,x,x', remove it if useless.
  2731. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2732. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2733. # expand $ac_aux_dir to an absolute path
  2734. am_aux_dir=`cd $ac_aux_dir && pwd`
  2735. if test x"${MISSING+set}" != xset; then
  2736. case $am_aux_dir in
  2737. *\ * | *\ *)
  2738. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2739. *)
  2740. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2741. esac
  2742. fi
  2743. # Use eval to expand $SHELL
  2744. if eval "$MISSING --run true"; then
  2745. am_missing_run="$MISSING --run "
  2746. else
  2747. am_missing_run=
  2748. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2749. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2750. fi
  2751. if test x"${install_sh}" != xset; then
  2752. case $am_aux_dir in
  2753. *\ * | *\ *)
  2754. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2755. *)
  2756. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2757. esac
  2758. fi
  2759. # Installed binaries are usually stripped using `strip' when the user
  2760. # run `make install-strip'. However `strip' might not be the right
  2761. # tool to use in cross-compilation environments, therefore Automake
  2762. # will honor the `STRIP' environment variable to overrule this program.
  2763. if test "$cross_compiling" != no; then
  2764. if test -n "$ac_tool_prefix"; then
  2765. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2766. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2768. $as_echo_n "checking for $ac_word... " >&6; }
  2769. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2770. $as_echo_n "(cached) " >&6
  2771. else
  2772. if test -n "$STRIP"; then
  2773. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2774. else
  2775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2776. for as_dir in $PATH
  2777. do
  2778. IFS=$as_save_IFS
  2779. test -z "$as_dir" && as_dir=.
  2780. for ac_exec_ext in '' $ac_executable_extensions; do
  2781. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2782. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2783. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2784. break 2
  2785. fi
  2786. done
  2787. done
  2788. IFS=$as_save_IFS
  2789. fi
  2790. fi
  2791. STRIP=$ac_cv_prog_STRIP
  2792. if test -n "$STRIP"; then
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2794. $as_echo "$STRIP" >&6; }
  2795. else
  2796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2797. $as_echo "no" >&6; }
  2798. fi
  2799. fi
  2800. if test -z "$ac_cv_prog_STRIP"; then
  2801. ac_ct_STRIP=$STRIP
  2802. # Extract the first word of "strip", so it can be a program name with args.
  2803. set dummy strip; ac_word=$2
  2804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2805. $as_echo_n "checking for $ac_word... " >&6; }
  2806. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2807. $as_echo_n "(cached) " >&6
  2808. else
  2809. if test -n "$ac_ct_STRIP"; then
  2810. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2811. else
  2812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2813. for as_dir in $PATH
  2814. do
  2815. IFS=$as_save_IFS
  2816. test -z "$as_dir" && as_dir=.
  2817. for ac_exec_ext in '' $ac_executable_extensions; do
  2818. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2819. ac_cv_prog_ac_ct_STRIP="strip"
  2820. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2821. break 2
  2822. fi
  2823. done
  2824. done
  2825. IFS=$as_save_IFS
  2826. fi
  2827. fi
  2828. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2829. if test -n "$ac_ct_STRIP"; then
  2830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2831. $as_echo "$ac_ct_STRIP" >&6; }
  2832. else
  2833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2834. $as_echo "no" >&6; }
  2835. fi
  2836. if test "x$ac_ct_STRIP" = x; then
  2837. STRIP=":"
  2838. else
  2839. case $cross_compiling:$ac_tool_warned in
  2840. yes:)
  2841. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2842. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2843. ac_tool_warned=yes ;;
  2844. esac
  2845. STRIP=$ac_ct_STRIP
  2846. fi
  2847. else
  2848. STRIP="$ac_cv_prog_STRIP"
  2849. fi
  2850. fi
  2851. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2853. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2854. if test -z "$MKDIR_P"; then
  2855. if test "${ac_cv_path_mkdir+set}" = set; then :
  2856. $as_echo_n "(cached) " >&6
  2857. else
  2858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2859. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2860. do
  2861. IFS=$as_save_IFS
  2862. test -z "$as_dir" && as_dir=.
  2863. for ac_prog in mkdir gmkdir; do
  2864. for ac_exec_ext in '' $ac_executable_extensions; do
  2865. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2866. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2867. 'mkdir (GNU coreutils) '* | \
  2868. 'mkdir (coreutils) '* | \
  2869. 'mkdir (fileutils) '4.1*)
  2870. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2871. break 3;;
  2872. esac
  2873. done
  2874. done
  2875. done
  2876. IFS=$as_save_IFS
  2877. fi
  2878. test -d ./--version && rmdir ./--version
  2879. if test "${ac_cv_path_mkdir+set}" = set; then
  2880. MKDIR_P="$ac_cv_path_mkdir -p"
  2881. else
  2882. # As a last resort, use the slow shell script. Don't cache a
  2883. # value for MKDIR_P within a source directory, because that will
  2884. # break other packages using the cache if that directory is
  2885. # removed, or if the value is a relative name.
  2886. MKDIR_P="$ac_install_sh -d"
  2887. fi
  2888. fi
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2890. $as_echo "$MKDIR_P" >&6; }
  2891. mkdir_p="$MKDIR_P"
  2892. case $mkdir_p in
  2893. [\\/$]* | ?:[\\/]*) ;;
  2894. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2895. esac
  2896. for ac_prog in gawk mawk nawk awk
  2897. do
  2898. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2899. set dummy $ac_prog; ac_word=$2
  2900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2901. $as_echo_n "checking for $ac_word... " >&6; }
  2902. if test "${ac_cv_prog_AWK+set}" = set; then :
  2903. $as_echo_n "(cached) " >&6
  2904. else
  2905. if test -n "$AWK"; then
  2906. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2907. else
  2908. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2909. for as_dir in $PATH
  2910. do
  2911. IFS=$as_save_IFS
  2912. test -z "$as_dir" && as_dir=.
  2913. for ac_exec_ext in '' $ac_executable_extensions; do
  2914. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2915. ac_cv_prog_AWK="$ac_prog"
  2916. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2917. break 2
  2918. fi
  2919. done
  2920. done
  2921. IFS=$as_save_IFS
  2922. fi
  2923. fi
  2924. AWK=$ac_cv_prog_AWK
  2925. if test -n "$AWK"; then
  2926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2927. $as_echo "$AWK" >&6; }
  2928. else
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2930. $as_echo "no" >&6; }
  2931. fi
  2932. test -n "$AWK" && break
  2933. done
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2935. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2936. set x ${MAKE-make}
  2937. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2938. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2939. $as_echo_n "(cached) " >&6
  2940. else
  2941. cat >conftest.make <<\_ACEOF
  2942. SHELL = /bin/sh
  2943. all:
  2944. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2945. _ACEOF
  2946. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2947. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2948. *@@@%%%=?*=@@@%%%*)
  2949. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2950. *)
  2951. eval ac_cv_prog_make_${ac_make}_set=no;;
  2952. esac
  2953. rm -f conftest.make
  2954. fi
  2955. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2957. $as_echo "yes" >&6; }
  2958. SET_MAKE=
  2959. else
  2960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2961. $as_echo "no" >&6; }
  2962. SET_MAKE="MAKE=${MAKE-make}"
  2963. fi
  2964. rm -rf .tst 2>/dev/null
  2965. mkdir .tst 2>/dev/null
  2966. if test -d .tst; then
  2967. am__leading_dot=.
  2968. else
  2969. am__leading_dot=_
  2970. fi
  2971. rmdir .tst 2>/dev/null
  2972. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2973. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2974. # is not polluted with repeated "-I."
  2975. am__isrc=' -I$(srcdir)'
  2976. # test to see if srcdir already configured
  2977. if test -f $srcdir/config.status; then
  2978. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2979. fi
  2980. fi
  2981. # test whether we have cygpath
  2982. if test -z "$CYGPATH_W"; then
  2983. if (cygpath --version) >/dev/null 2>/dev/null; then
  2984. CYGPATH_W='cygpath -w'
  2985. else
  2986. CYGPATH_W=echo
  2987. fi
  2988. fi
  2989. # Define the identity of the package.
  2990. PACKAGE='ntp'
  2991. VERSION='4.2.4p8'
  2992. cat >>confdefs.h <<_ACEOF
  2993. #define PACKAGE "$PACKAGE"
  2994. _ACEOF
  2995. cat >>confdefs.h <<_ACEOF
  2996. #define VERSION "$VERSION"
  2997. _ACEOF
  2998. # Some tools Automake needs.
  2999. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  3000. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  3001. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  3002. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  3003. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  3004. # We need awk for the "check" target. The system "awk" is bad on
  3005. # some platforms.
  3006. # Always define AMTAR for backward compatibility.
  3007. AMTAR=${AMTAR-"${am_missing_run}tar"}
  3008. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  3009. # Make sure we can run config.sub.
  3010. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3011. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3013. $as_echo_n "checking build system type... " >&6; }
  3014. if test "${ac_cv_build+set}" = set; then :
  3015. $as_echo_n "(cached) " >&6
  3016. else
  3017. ac_build_alias=$build_alias
  3018. test "x$ac_build_alias" = x &&
  3019. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3020. test "x$ac_build_alias" = x &&
  3021. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3022. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3023. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3024. fi
  3025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3026. $as_echo "$ac_cv_build" >&6; }
  3027. case $ac_cv_build in
  3028. *-*-*) ;;
  3029. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3030. esac
  3031. build=$ac_cv_build
  3032. ac_save_IFS=$IFS; IFS='-'
  3033. set x $ac_cv_build
  3034. shift
  3035. build_cpu=$1
  3036. build_vendor=$2
  3037. shift; shift
  3038. # Remember, the first character of IFS is used to create $*,
  3039. # except with old shells:
  3040. build_os=$*
  3041. IFS=$ac_save_IFS
  3042. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3044. $as_echo_n "checking host system type... " >&6; }
  3045. if test "${ac_cv_host+set}" = set; then :
  3046. $as_echo_n "(cached) " >&6
  3047. else
  3048. if test "x$host_alias" = x; then
  3049. ac_cv_host=$ac_cv_build
  3050. else
  3051. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3052. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3053. fi
  3054. fi
  3055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3056. $as_echo "$ac_cv_host" >&6; }
  3057. case $ac_cv_host in
  3058. *-*-*) ;;
  3059. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3060. esac
  3061. host=$ac_cv_host
  3062. ac_save_IFS=$IFS; IFS='-'
  3063. set x $ac_cv_host
  3064. shift
  3065. host_cpu=$1
  3066. host_vendor=$2
  3067. shift; shift
  3068. # Remember, the first character of IFS is used to create $*,
  3069. # except with old shells:
  3070. host_os=$*
  3071. IFS=$ac_save_IFS
  3072. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3073. cat >>confdefs.h <<_ACEOF
  3074. #define STR_SYSTEM "$host"
  3075. _ACEOF
  3076. ac_config_headers="$ac_config_headers config.h"
  3077. ac_cv_var_atom_ok=no
  3078. ac_cv_var_oncore_ok=no
  3079. ac_cv_var_parse_ok=no
  3080. ac_cv_var_ripe_ncc_ok=no
  3081. ac_cv_var_jupiter_ok=no
  3082. iCFLAGS="$CFLAGS"
  3083. DEPDIR="${am__leading_dot}deps"
  3084. ac_config_commands="$ac_config_commands depfiles"
  3085. am_make=${MAKE-make}
  3086. cat > confinc << 'END'
  3087. am__doit:
  3088. @echo this is the am__doit target
  3089. .PHONY: am__doit
  3090. END
  3091. # If we don't find an include directive, just comment out the code.
  3092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3093. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3094. am__include="#"
  3095. am__quote=
  3096. _am_result=none
  3097. # First try GNU make style include.
  3098. echo "include confinc" > confmf
  3099. # Ignore all kinds of additional output from `make'.
  3100. case `$am_make -s -f confmf 2> /dev/null` in #(
  3101. *the\ am__doit\ target*)
  3102. am__include=include
  3103. am__quote=
  3104. _am_result=GNU
  3105. ;;
  3106. esac
  3107. # Now try BSD make style include.
  3108. if test "$am__include" = "#"; then
  3109. echo '.include "confinc"' > confmf
  3110. case `$am_make -s -f confmf 2> /dev/null` in #(
  3111. *the\ am__doit\ target*)
  3112. am__include=.include
  3113. am__quote="\""
  3114. _am_result=BSD
  3115. ;;
  3116. esac
  3117. fi
  3118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3119. $as_echo "$_am_result" >&6; }
  3120. rm -f confinc confmf
  3121. # Check whether --enable-dependency-tracking was given.
  3122. if test "${enable_dependency_tracking+set}" = set; then :
  3123. enableval=$enable_dependency_tracking;
  3124. fi
  3125. if test "x$enable_dependency_tracking" != xno; then
  3126. am_depcomp="$ac_aux_dir/depcomp"
  3127. AMDEPBACKSLASH='\'
  3128. fi
  3129. if test "x$enable_dependency_tracking" != xno; then
  3130. AMDEP_TRUE=
  3131. AMDEP_FALSE='#'
  3132. else
  3133. AMDEP_TRUE='#'
  3134. AMDEP_FALSE=
  3135. fi
  3136. ac_ext=c
  3137. ac_cpp='$CPP $CPPFLAGS'
  3138. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3139. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3140. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3141. if test -n "$ac_tool_prefix"; then
  3142. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3143. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3145. $as_echo_n "checking for $ac_word... " >&6; }
  3146. if test "${ac_cv_prog_CC+set}" = set; then :
  3147. $as_echo_n "(cached) " >&6
  3148. else
  3149. if test -n "$CC"; then
  3150. ac_cv_prog_CC="$CC" # Let the user override the test.
  3151. else
  3152. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3153. for as_dir in $PATH
  3154. do
  3155. IFS=$as_save_IFS
  3156. test -z "$as_dir" && as_dir=.
  3157. for ac_exec_ext in '' $ac_executable_extensions; do
  3158. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3159. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3160. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3161. break 2
  3162. fi
  3163. done
  3164. done
  3165. IFS=$as_save_IFS
  3166. fi
  3167. fi
  3168. CC=$ac_cv_prog_CC
  3169. if test -n "$CC"; then
  3170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3171. $as_echo "$CC" >&6; }
  3172. else
  3173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3174. $as_echo "no" >&6; }
  3175. fi
  3176. fi
  3177. if test -z "$ac_cv_prog_CC"; then
  3178. ac_ct_CC=$CC
  3179. # Extract the first word of "gcc", so it can be a program name with args.
  3180. set dummy gcc; ac_word=$2
  3181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3182. $as_echo_n "checking for $ac_word... " >&6; }
  3183. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3184. $as_echo_n "(cached) " >&6
  3185. else
  3186. if test -n "$ac_ct_CC"; then
  3187. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3188. else
  3189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3190. for as_dir in $PATH
  3191. do
  3192. IFS=$as_save_IFS
  3193. test -z "$as_dir" && as_dir=.
  3194. for ac_exec_ext in '' $ac_executable_extensions; do
  3195. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3196. ac_cv_prog_ac_ct_CC="gcc"
  3197. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3198. break 2
  3199. fi
  3200. done
  3201. done
  3202. IFS=$as_save_IFS
  3203. fi
  3204. fi
  3205. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3206. if test -n "$ac_ct_CC"; then
  3207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3208. $as_echo "$ac_ct_CC" >&6; }
  3209. else
  3210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3211. $as_echo "no" >&6; }
  3212. fi
  3213. if test "x$ac_ct_CC" = x; then
  3214. CC=""
  3215. else
  3216. case $cross_compiling:$ac_tool_warned in
  3217. yes:)
  3218. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3219. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3220. ac_tool_warned=yes ;;
  3221. esac
  3222. CC=$ac_ct_CC
  3223. fi
  3224. else
  3225. CC="$ac_cv_prog_CC"
  3226. fi
  3227. if test -z "$CC"; then
  3228. if test -n "$ac_tool_prefix"; then
  3229. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3230. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3232. $as_echo_n "checking for $ac_word... " >&6; }
  3233. if test "${ac_cv_prog_CC+set}" = set; then :
  3234. $as_echo_n "(cached) " >&6
  3235. else
  3236. if test -n "$CC"; then
  3237. ac_cv_prog_CC="$CC" # Let the user override the test.
  3238. else
  3239. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3240. for as_dir in $PATH
  3241. do
  3242. IFS=$as_save_IFS
  3243. test -z "$as_dir" && as_dir=.
  3244. for ac_exec_ext in '' $ac_executable_extensions; do
  3245. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3246. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3247. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3248. break 2
  3249. fi
  3250. done
  3251. done
  3252. IFS=$as_save_IFS
  3253. fi
  3254. fi
  3255. CC=$ac_cv_prog_CC
  3256. if test -n "$CC"; then
  3257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3258. $as_echo "$CC" >&6; }
  3259. else
  3260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3261. $as_echo "no" >&6; }
  3262. fi
  3263. fi
  3264. fi
  3265. if test -z "$CC"; then
  3266. # Extract the first word of "cc", so it can be a program name with args.
  3267. set dummy cc; ac_word=$2
  3268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3269. $as_echo_n "checking for $ac_word... " >&6; }
  3270. if test "${ac_cv_prog_CC+set}" = set; then :
  3271. $as_echo_n "(cached) " >&6
  3272. else
  3273. if test -n "$CC"; then
  3274. ac_cv_prog_CC="$CC" # Let the user override the test.
  3275. else
  3276. ac_prog_rejected=no
  3277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3278. for as_dir in $PATH
  3279. do
  3280. IFS=$as_save_IFS
  3281. test -z "$as_dir" && as_dir=.
  3282. for ac_exec_ext in '' $ac_executable_extensions; do
  3283. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3284. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3285. ac_prog_rejected=yes
  3286. continue
  3287. fi
  3288. ac_cv_prog_CC="cc"
  3289. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3290. break 2
  3291. fi
  3292. done
  3293. done
  3294. IFS=$as_save_IFS
  3295. if test $ac_prog_rejected = yes; then
  3296. # We found a bogon in the path, so make sure we never use it.
  3297. set dummy $ac_cv_prog_CC
  3298. shift
  3299. if test $# != 0; then
  3300. # We chose a different compiler from the bogus one.
  3301. # However, it has the same basename, so the bogon will be chosen
  3302. # first if we set CC to just the basename; use the full file name.
  3303. shift
  3304. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3305. fi
  3306. fi
  3307. fi
  3308. fi
  3309. CC=$ac_cv_prog_CC
  3310. if test -n "$CC"; then
  3311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3312. $as_echo "$CC" >&6; }
  3313. else
  3314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3315. $as_echo "no" >&6; }
  3316. fi
  3317. fi
  3318. if test -z "$CC"; then
  3319. if test -n "$ac_tool_prefix"; then
  3320. for ac_prog in cl.exe
  3321. do
  3322. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3323. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3325. $as_echo_n "checking for $ac_word... " >&6; }
  3326. if test "${ac_cv_prog_CC+set}" = set; then :
  3327. $as_echo_n "(cached) " >&6
  3328. else
  3329. if test -n "$CC"; then
  3330. ac_cv_prog_CC="$CC" # Let the user override the test.
  3331. else
  3332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3333. for as_dir in $PATH
  3334. do
  3335. IFS=$as_save_IFS
  3336. test -z "$as_dir" && as_dir=.
  3337. for ac_exec_ext in '' $ac_executable_extensions; do
  3338. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3339. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3340. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3341. break 2
  3342. fi
  3343. done
  3344. done
  3345. IFS=$as_save_IFS
  3346. fi
  3347. fi
  3348. CC=$ac_cv_prog_CC
  3349. if test -n "$CC"; then
  3350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3351. $as_echo "$CC" >&6; }
  3352. else
  3353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3354. $as_echo "no" >&6; }
  3355. fi
  3356. test -n "$CC" && break
  3357. done
  3358. fi
  3359. if test -z "$CC"; then
  3360. ac_ct_CC=$CC
  3361. for ac_prog in cl.exe
  3362. do
  3363. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3364. set dummy $ac_prog; ac_word=$2
  3365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3366. $as_echo_n "checking for $ac_word... " >&6; }
  3367. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3368. $as_echo_n "(cached) " >&6
  3369. else
  3370. if test -n "$ac_ct_CC"; then
  3371. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3372. else
  3373. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3374. for as_dir in $PATH
  3375. do
  3376. IFS=$as_save_IFS
  3377. test -z "$as_dir" && as_dir=.
  3378. for ac_exec_ext in '' $ac_executable_extensions; do
  3379. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3380. ac_cv_prog_ac_ct_CC="$ac_prog"
  3381. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3382. break 2
  3383. fi
  3384. done
  3385. done
  3386. IFS=$as_save_IFS
  3387. fi
  3388. fi
  3389. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3390. if test -n "$ac_ct_CC"; then
  3391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3392. $as_echo "$ac_ct_CC" >&6; }
  3393. else
  3394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3395. $as_echo "no" >&6; }
  3396. fi
  3397. test -n "$ac_ct_CC" && break
  3398. done
  3399. if test "x$ac_ct_CC" = x; then
  3400. CC=""
  3401. else
  3402. case $cross_compiling:$ac_tool_warned in
  3403. yes:)
  3404. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3405. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3406. ac_tool_warned=yes ;;
  3407. esac
  3408. CC=$ac_ct_CC
  3409. fi
  3410. fi
  3411. fi
  3412. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3413. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3414. as_fn_error "no acceptable C compiler found in \$PATH
  3415. See \`config.log' for more details." "$LINENO" 5; }
  3416. # Provide some information about the compiler.
  3417. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3418. set X $ac_compile
  3419. ac_compiler=$2
  3420. for ac_option in --version -v -V -qversion; do
  3421. { { ac_try="$ac_compiler $ac_option >&5"
  3422. case "(($ac_try" in
  3423. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3424. *) ac_try_echo=$ac_try;;
  3425. esac
  3426. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3427. $as_echo "$ac_try_echo"; } >&5
  3428. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3429. ac_status=$?
  3430. if test -s conftest.err; then
  3431. sed '10a\
  3432. ... rest of stderr output deleted ...
  3433. 10q' conftest.err >conftest.er1
  3434. cat conftest.er1 >&5
  3435. fi
  3436. rm -f conftest.er1 conftest.err
  3437. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3438. test $ac_status = 0; }
  3439. done
  3440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3441. /* end confdefs.h. */
  3442. int
  3443. main ()
  3444. {
  3445. ;
  3446. return 0;
  3447. }
  3448. _ACEOF
  3449. ac_clean_files_save=$ac_clean_files
  3450. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3451. # Try to create an executable without -o first, disregard a.out.
  3452. # It will help us diagnose broken compilers, and finding out an intuition
  3453. # of exeext.
  3454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3455. $as_echo_n "checking whether the C compiler works... " >&6; }
  3456. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3457. # The possible output files:
  3458. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3459. ac_rmfiles=
  3460. for ac_file in $ac_files
  3461. do
  3462. case $ac_file in
  3463. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3464. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3465. esac
  3466. done
  3467. rm -f $ac_rmfiles
  3468. if { { ac_try="$ac_link_default"
  3469. case "(($ac_try" in
  3470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3471. *) ac_try_echo=$ac_try;;
  3472. esac
  3473. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3474. $as_echo "$ac_try_echo"; } >&5
  3475. (eval "$ac_link_default") 2>&5
  3476. ac_status=$?
  3477. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3478. test $ac_status = 0; }; then :
  3479. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3480. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3481. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3482. # so that the user can short-circuit this test for compilers unknown to
  3483. # Autoconf.
  3484. for ac_file in $ac_files ''
  3485. do
  3486. test -f "$ac_file" || continue
  3487. case $ac_file in
  3488. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3489. ;;
  3490. [ab].out )
  3491. # We found the default executable, but exeext='' is most
  3492. # certainly right.
  3493. break;;
  3494. *.* )
  3495. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3496. then :; else
  3497. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3498. fi
  3499. # We set ac_cv_exeext here because the later test for it is not
  3500. # safe: cross compilers may not add the suffix if given an `-o'
  3501. # argument, so we may need to know it at that point already.
  3502. # Even if this section looks crufty: it has the advantage of
  3503. # actually working.
  3504. break;;
  3505. * )
  3506. break;;
  3507. esac
  3508. done
  3509. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3510. else
  3511. ac_file=''
  3512. fi
  3513. if test -z "$ac_file"; then :
  3514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3515. $as_echo "no" >&6; }
  3516. $as_echo "$as_me: failed program was:" >&5
  3517. sed 's/^/| /' conftest.$ac_ext >&5
  3518. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3519. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3520. { as_fn_set_status 77
  3521. as_fn_error "C compiler cannot create executables
  3522. See \`config.log' for more details." "$LINENO" 5; }; }
  3523. else
  3524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3525. $as_echo "yes" >&6; }
  3526. fi
  3527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3528. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3530. $as_echo "$ac_file" >&6; }
  3531. ac_exeext=$ac_cv_exeext
  3532. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3533. ac_clean_files=$ac_clean_files_save
  3534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3535. $as_echo_n "checking for suffix of executables... " >&6; }
  3536. if { { ac_try="$ac_link"
  3537. case "(($ac_try" in
  3538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3539. *) ac_try_echo=$ac_try;;
  3540. esac
  3541. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3542. $as_echo "$ac_try_echo"; } >&5
  3543. (eval "$ac_link") 2>&5
  3544. ac_status=$?
  3545. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3546. test $ac_status = 0; }; then :
  3547. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3548. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3549. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3550. # `rm'.
  3551. for ac_file in conftest.exe conftest conftest.*; do
  3552. test -f "$ac_file" || continue
  3553. case $ac_file in
  3554. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3555. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3556. break;;
  3557. * ) break;;
  3558. esac
  3559. done
  3560. else
  3561. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3562. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3563. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3564. See \`config.log' for more details." "$LINENO" 5; }
  3565. fi
  3566. rm -f conftest conftest$ac_cv_exeext
  3567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3568. $as_echo "$ac_cv_exeext" >&6; }
  3569. rm -f conftest.$ac_ext
  3570. EXEEXT=$ac_cv_exeext
  3571. ac_exeext=$EXEEXT
  3572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3573. /* end confdefs.h. */
  3574. #include <stdio.h>
  3575. int
  3576. main ()
  3577. {
  3578. FILE *f = fopen ("conftest.out", "w");
  3579. return ferror (f) || fclose (f) != 0;
  3580. ;
  3581. return 0;
  3582. }
  3583. _ACEOF
  3584. ac_clean_files="$ac_clean_files conftest.out"
  3585. # Check that the compiler produces executables we can run. If not, either
  3586. # the compiler is broken, or we cross compile.
  3587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3588. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3589. if test "$cross_compiling" != yes; then
  3590. { { ac_try="$ac_link"
  3591. case "(($ac_try" in
  3592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3593. *) ac_try_echo=$ac_try;;
  3594. esac
  3595. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3596. $as_echo "$ac_try_echo"; } >&5
  3597. (eval "$ac_link") 2>&5
  3598. ac_status=$?
  3599. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3600. test $ac_status = 0; }
  3601. if { ac_try='./conftest$ac_cv_exeext'
  3602. { { case "(($ac_try" in
  3603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3604. *) ac_try_echo=$ac_try;;
  3605. esac
  3606. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3607. $as_echo "$ac_try_echo"; } >&5
  3608. (eval "$ac_try") 2>&5
  3609. ac_status=$?
  3610. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3611. test $ac_status = 0; }; }; then
  3612. cross_compiling=no
  3613. else
  3614. if test "$cross_compiling" = maybe; then
  3615. cross_compiling=yes
  3616. else
  3617. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3618. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3619. as_fn_error "cannot run C compiled programs.
  3620. If you meant to cross compile, use \`--host'.
  3621. See \`config.log' for more details." "$LINENO" 5; }
  3622. fi
  3623. fi
  3624. fi
  3625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3626. $as_echo "$cross_compiling" >&6; }
  3627. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3628. ac_clean_files=$ac_clean_files_save
  3629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3630. $as_echo_n "checking for suffix of object files... " >&6; }
  3631. if test "${ac_cv_objext+set}" = set; then :
  3632. $as_echo_n "(cached) " >&6
  3633. else
  3634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3635. /* end confdefs.h. */
  3636. int
  3637. main ()
  3638. {
  3639. ;
  3640. return 0;
  3641. }
  3642. _ACEOF
  3643. rm -f conftest.o conftest.obj
  3644. if { { ac_try="$ac_compile"
  3645. case "(($ac_try" in
  3646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3647. *) ac_try_echo=$ac_try;;
  3648. esac
  3649. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3650. $as_echo "$ac_try_echo"; } >&5
  3651. (eval "$ac_compile") 2>&5
  3652. ac_status=$?
  3653. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3654. test $ac_status = 0; }; then :
  3655. for ac_file in conftest.o conftest.obj conftest.*; do
  3656. test -f "$ac_file" || continue;
  3657. case $ac_file in
  3658. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3659. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3660. break;;
  3661. esac
  3662. done
  3663. else
  3664. $as_echo "$as_me: failed program was:" >&5
  3665. sed 's/^/| /' conftest.$ac_ext >&5
  3666. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3667. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3668. as_fn_error "cannot compute suffix of object files: cannot compile
  3669. See \`config.log' for more details." "$LINENO" 5; }
  3670. fi
  3671. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3672. fi
  3673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3674. $as_echo "$ac_cv_objext" >&6; }
  3675. OBJEXT=$ac_cv_objext
  3676. ac_objext=$OBJEXT
  3677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3678. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3679. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3680. $as_echo_n "(cached) " >&6
  3681. else
  3682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3683. /* end confdefs.h. */
  3684. int
  3685. main ()
  3686. {
  3687. #ifndef __GNUC__
  3688. choke me
  3689. #endif
  3690. ;
  3691. return 0;
  3692. }
  3693. _ACEOF
  3694. if ac_fn_c_try_compile "$LINENO"; then :
  3695. ac_compiler_gnu=yes
  3696. else
  3697. ac_compiler_gnu=no
  3698. fi
  3699. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3700. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3701. fi
  3702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3703. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3704. if test $ac_compiler_gnu = yes; then
  3705. GCC=yes
  3706. else
  3707. GCC=
  3708. fi
  3709. ac_test_CFLAGS=${CFLAGS+set}
  3710. ac_save_CFLAGS=$CFLAGS
  3711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3712. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3713. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3714. $as_echo_n "(cached) " >&6
  3715. else
  3716. ac_save_c_werror_flag=$ac_c_werror_flag
  3717. ac_c_werror_flag=yes
  3718. ac_cv_prog_cc_g=no
  3719. CFLAGS="-g"
  3720. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3721. /* end confdefs.h. */
  3722. int
  3723. main ()
  3724. {
  3725. ;
  3726. return 0;
  3727. }
  3728. _ACEOF
  3729. if ac_fn_c_try_compile "$LINENO"; then :
  3730. ac_cv_prog_cc_g=yes
  3731. else
  3732. CFLAGS=""
  3733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3734. /* end confdefs.h. */
  3735. int
  3736. main ()
  3737. {
  3738. ;
  3739. return 0;
  3740. }
  3741. _ACEOF
  3742. if ac_fn_c_try_compile "$LINENO"; then :
  3743. else
  3744. ac_c_werror_flag=$ac_save_c_werror_flag
  3745. CFLAGS="-g"
  3746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3747. /* end confdefs.h. */
  3748. int
  3749. main ()
  3750. {
  3751. ;
  3752. return 0;
  3753. }
  3754. _ACEOF
  3755. if ac_fn_c_try_compile "$LINENO"; then :
  3756. ac_cv_prog_cc_g=yes
  3757. fi
  3758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3759. fi
  3760. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3761. fi
  3762. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3763. ac_c_werror_flag=$ac_save_c_werror_flag
  3764. fi
  3765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3766. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3767. if test "$ac_test_CFLAGS" = set; then
  3768. CFLAGS=$ac_save_CFLAGS
  3769. elif test $ac_cv_prog_cc_g = yes; then
  3770. if test "$GCC" = yes; then
  3771. CFLAGS="-g -O2"
  3772. else
  3773. CFLAGS="-g"
  3774. fi
  3775. else
  3776. if test "$GCC" = yes; then
  3777. CFLAGS="-O2"
  3778. else
  3779. CFLAGS=
  3780. fi
  3781. fi
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3783. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3784. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3785. $as_echo_n "(cached) " >&6
  3786. else
  3787. ac_cv_prog_cc_c89=no
  3788. ac_save_CC=$CC
  3789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3790. /* end confdefs.h. */
  3791. #include <stdarg.h>
  3792. #include <stdio.h>
  3793. #include <sys/types.h>
  3794. #include <sys/stat.h>
  3795. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3796. struct buf { int x; };
  3797. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3798. static char *e (p, i)
  3799. char **p;
  3800. int i;
  3801. {
  3802. return p[i];
  3803. }
  3804. static char *f (char * (*g) (char **, int), char **p, ...)
  3805. {
  3806. char *s;
  3807. va_list v;
  3808. va_start (v,p);
  3809. s = g (p, va_arg (v,int));
  3810. va_end (v);
  3811. return s;
  3812. }
  3813. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3814. function prototypes and stuff, but not '\xHH' hex character constants.
  3815. These don't provoke an error unfortunately, instead are silently treated
  3816. as 'x'. The following induces an error, until -std is added to get
  3817. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3818. array size at least. It's necessary to write '\x00'==0 to get something
  3819. that's true only with -std. */
  3820. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3821. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3822. inside strings and character constants. */
  3823. #define FOO(x) 'x'
  3824. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3825. int test (int i, double x);
  3826. struct s1 {int (*f) (int a);};
  3827. struct s2 {int (*f) (double a);};
  3828. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3829. int argc;
  3830. char **argv;
  3831. int
  3832. main ()
  3833. {
  3834. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3835. ;
  3836. return 0;
  3837. }
  3838. _ACEOF
  3839. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3840. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3841. do
  3842. CC="$ac_save_CC $ac_arg"
  3843. if ac_fn_c_try_compile "$LINENO"; then :
  3844. ac_cv_prog_cc_c89=$ac_arg
  3845. fi
  3846. rm -f core conftest.err conftest.$ac_objext
  3847. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3848. done
  3849. rm -f conftest.$ac_ext
  3850. CC=$ac_save_CC
  3851. fi
  3852. # AC_CACHE_VAL
  3853. case "x$ac_cv_prog_cc_c89" in
  3854. x)
  3855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3856. $as_echo "none needed" >&6; } ;;
  3857. xno)
  3858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3859. $as_echo "unsupported" >&6; } ;;
  3860. *)
  3861. CC="$CC $ac_cv_prog_cc_c89"
  3862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3863. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3864. esac
  3865. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3866. fi
  3867. ac_ext=c
  3868. ac_cpp='$CPP $CPPFLAGS'
  3869. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3870. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3871. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3872. depcc="$CC" am_compiler_list=
  3873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3874. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3875. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3876. $as_echo_n "(cached) " >&6
  3877. else
  3878. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3879. # We make a subdir and do the tests there. Otherwise we can end up
  3880. # making bogus files that we don't know about and never remove. For
  3881. # instance it was reported that on HP-UX the gcc test will end up
  3882. # making a dummy file named `D' -- because `-MD' means `put the output
  3883. # in D'.
  3884. mkdir conftest.dir
  3885. # Copy depcomp to subdir because otherwise we won't find it if we're
  3886. # using a relative directory.
  3887. cp "$am_depcomp" conftest.dir
  3888. cd conftest.dir
  3889. # We will build objects and dependencies in a subdirectory because
  3890. # it helps to detect inapplicable dependency modes. For instance
  3891. # both Tru64's cc and ICC support -MD to output dependencies as a
  3892. # side effect of compilation, but ICC will put the dependencies in
  3893. # the current directory while Tru64 will put them in the object
  3894. # directory.
  3895. mkdir sub
  3896. am_cv_CC_dependencies_compiler_type=none
  3897. if test "$am_compiler_list" = ""; then
  3898. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3899. fi
  3900. am__universal=false
  3901. case " $depcc " in #(
  3902. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3903. esac
  3904. for depmode in $am_compiler_list; do
  3905. # Setup a source with many dependencies, because some compilers
  3906. # like to wrap large dependency lists on column 80 (with \), and
  3907. # we should not choose a depcomp mode which is confused by this.
  3908. #
  3909. # We need to recreate these files for each test, as the compiler may
  3910. # overwrite some of them when testing with obscure command lines.
  3911. # This happens at least with the AIX C compiler.
  3912. : > sub/conftest.c
  3913. for i in 1 2 3 4 5 6; do
  3914. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3915. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3916. # Solaris 8's {/usr,}/bin/sh.
  3917. touch sub/conftst$i.h
  3918. done
  3919. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3920. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3921. # mode. It turns out that the SunPro C++ compiler does not properly
  3922. # handle `-M -o', and we need to detect this. Also, some Intel
  3923. # versions had trouble with output in subdirs
  3924. am__obj=sub/conftest.${OBJEXT-o}
  3925. am__minus_obj="-o $am__obj"
  3926. case $depmode in
  3927. gcc)
  3928. # This depmode causes a compiler race in universal mode.
  3929. test "$am__universal" = false || continue
  3930. ;;
  3931. nosideeffect)
  3932. # after this tag, mechanisms are not by side-effect, so they'll
  3933. # only be used when explicitly requested
  3934. if test "x$enable_dependency_tracking" = xyes; then
  3935. continue
  3936. else
  3937. break
  3938. fi
  3939. ;;
  3940. msvisualcpp | msvcmsys)
  3941. # This compiler won't grok `-c -o', but also, the minuso test has
  3942. # not run yet. These depmodes are late enough in the game, and
  3943. # so weak that their functioning should not be impacted.
  3944. am__obj=conftest.${OBJEXT-o}
  3945. am__minus_obj=
  3946. ;;
  3947. none) break ;;
  3948. esac
  3949. if depmode=$depmode \
  3950. source=sub/conftest.c object=$am__obj \
  3951. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3952. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3953. >/dev/null 2>conftest.err &&
  3954. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3955. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3956. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3957. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3958. # icc doesn't choke on unknown options, it will just issue warnings
  3959. # or remarks (even with -Werror). So we grep stderr for any message
  3960. # that says an option was ignored or not supported.
  3961. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3962. # icc: Command line warning: ignoring option '-M'; no argument required
  3963. # The diagnosis changed in icc 8.0:
  3964. # icc: Command line remark: option '-MP' not supported
  3965. if (grep 'ignoring option' conftest.err ||
  3966. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3967. am_cv_CC_dependencies_compiler_type=$depmode
  3968. break
  3969. fi
  3970. fi
  3971. done
  3972. cd ..
  3973. rm -rf conftest.dir
  3974. else
  3975. am_cv_CC_dependencies_compiler_type=none
  3976. fi
  3977. fi
  3978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3979. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3980. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3981. if
  3982. test "x$enable_dependency_tracking" != xno \
  3983. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3984. am__fastdepCC_TRUE=
  3985. am__fastdepCC_FALSE='#'
  3986. else
  3987. am__fastdepCC_TRUE='#'
  3988. am__fastdepCC_FALSE=
  3989. fi
  3990. ac_ext=c
  3991. ac_cpp='$CPP $CPPFLAGS'
  3992. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3993. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3994. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3996. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3997. # On Suns, sometimes $CPP names a directory.
  3998. if test -n "$CPP" && test -d "$CPP"; then
  3999. CPP=
  4000. fi
  4001. if test -z "$CPP"; then
  4002. if test "${ac_cv_prog_CPP+set}" = set; then :
  4003. $as_echo_n "(cached) " >&6
  4004. else
  4005. # Double quotes because CPP needs to be expanded
  4006. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4007. do
  4008. ac_preproc_ok=false
  4009. for ac_c_preproc_warn_flag in '' yes
  4010. do
  4011. # Use a header file that comes with gcc, so configuring glibc
  4012. # with a fresh cross-compiler works.
  4013. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4014. # <limits.h> exists even on freestanding compilers.
  4015. # On the NeXT, cc -E runs the code through the compiler's parser,
  4016. # not just through cpp. "Syntax error" is here to catch this case.
  4017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4018. /* end confdefs.h. */
  4019. #ifdef __STDC__
  4020. # include <limits.h>
  4021. #else
  4022. # include <assert.h>
  4023. #endif
  4024. Syntax error
  4025. _ACEOF
  4026. if ac_fn_c_try_cpp "$LINENO"; then :
  4027. else
  4028. # Broken: fails on valid input.
  4029. continue
  4030. fi
  4031. rm -f conftest.err conftest.$ac_ext
  4032. # OK, works on sane cases. Now check whether nonexistent headers
  4033. # can be detected and how.
  4034. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4035. /* end confdefs.h. */
  4036. #include <ac_nonexistent.h>
  4037. _ACEOF
  4038. if ac_fn_c_try_cpp "$LINENO"; then :
  4039. # Broken: success on invalid input.
  4040. continue
  4041. else
  4042. # Passes both tests.
  4043. ac_preproc_ok=:
  4044. break
  4045. fi
  4046. rm -f conftest.err conftest.$ac_ext
  4047. done
  4048. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4049. rm -f conftest.err conftest.$ac_ext
  4050. if $ac_preproc_ok; then :
  4051. break
  4052. fi
  4053. done
  4054. ac_cv_prog_CPP=$CPP
  4055. fi
  4056. CPP=$ac_cv_prog_CPP
  4057. else
  4058. ac_cv_prog_CPP=$CPP
  4059. fi
  4060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4061. $as_echo "$CPP" >&6; }
  4062. ac_preproc_ok=false
  4063. for ac_c_preproc_warn_flag in '' yes
  4064. do
  4065. # Use a header file that comes with gcc, so configuring glibc
  4066. # with a fresh cross-compiler works.
  4067. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4068. # <limits.h> exists even on freestanding compilers.
  4069. # On the NeXT, cc -E runs the code through the compiler's parser,
  4070. # not just through cpp. "Syntax error" is here to catch this case.
  4071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4072. /* end confdefs.h. */
  4073. #ifdef __STDC__
  4074. # include <limits.h>
  4075. #else
  4076. # include <assert.h>
  4077. #endif
  4078. Syntax error
  4079. _ACEOF
  4080. if ac_fn_c_try_cpp "$LINENO"; then :
  4081. else
  4082. # Broken: fails on valid input.
  4083. continue
  4084. fi
  4085. rm -f conftest.err conftest.$ac_ext
  4086. # OK, works on sane cases. Now check whether nonexistent headers
  4087. # can be detected and how.
  4088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4089. /* end confdefs.h. */
  4090. #include <ac_nonexistent.h>
  4091. _ACEOF
  4092. if ac_fn_c_try_cpp "$LINENO"; then :
  4093. # Broken: success on invalid input.
  4094. continue
  4095. else
  4096. # Passes both tests.
  4097. ac_preproc_ok=:
  4098. break
  4099. fi
  4100. rm -f conftest.err conftest.$ac_ext
  4101. done
  4102. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4103. rm -f conftest.err conftest.$ac_ext
  4104. if $ac_preproc_ok; then :
  4105. else
  4106. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4107. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4108. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  4109. See \`config.log' for more details." "$LINENO" 5; }
  4110. fi
  4111. ac_ext=c
  4112. ac_cpp='$CPP $CPPFLAGS'
  4113. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4114. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4115. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4117. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4118. if test "${ac_cv_path_GREP+set}" = set; then :
  4119. $as_echo_n "(cached) " >&6
  4120. else
  4121. if test -z "$GREP"; then
  4122. ac_path_GREP_found=false
  4123. # Loop through the user's path and test for each of PROGNAME-LIST
  4124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4125. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4126. do
  4127. IFS=$as_save_IFS
  4128. test -z "$as_dir" && as_dir=.
  4129. for ac_prog in grep ggrep; do
  4130. for ac_exec_ext in '' $ac_executable_extensions; do
  4131. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4132. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4133. # Check for GNU ac_path_GREP and select it if it is found.
  4134. # Check for GNU $ac_path_GREP
  4135. case `"$ac_path_GREP" --version 2>&1` in
  4136. *GNU*)
  4137. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4138. *)
  4139. ac_count=0
  4140. $as_echo_n 0123456789 >"conftest.in"
  4141. while :
  4142. do
  4143. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4144. mv "conftest.tmp" "conftest.in"
  4145. cp "conftest.in" "conftest.nl"
  4146. $as_echo 'GREP' >> "conftest.nl"
  4147. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4148. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4149. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4150. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4151. # Best one so far, save it but keep looking for a better one
  4152. ac_cv_path_GREP="$ac_path_GREP"
  4153. ac_path_GREP_max=$ac_count
  4154. fi
  4155. # 10*(2^10) chars as input seems more than enough
  4156. test $ac_count -gt 10 && break
  4157. done
  4158. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4159. esac
  4160. $ac_path_GREP_found && break 3
  4161. done
  4162. done
  4163. done
  4164. IFS=$as_save_IFS
  4165. if test -z "$ac_cv_path_GREP"; then
  4166. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4167. fi
  4168. else
  4169. ac_cv_path_GREP=$GREP
  4170. fi
  4171. fi
  4172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4173. $as_echo "$ac_cv_path_GREP" >&6; }
  4174. GREP="$ac_cv_path_GREP"
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4176. $as_echo_n "checking for egrep... " >&6; }
  4177. if test "${ac_cv_path_EGREP+set}" = set; then :
  4178. $as_echo_n "(cached) " >&6
  4179. else
  4180. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4181. then ac_cv_path_EGREP="$GREP -E"
  4182. else
  4183. if test -z "$EGREP"; then
  4184. ac_path_EGREP_found=false
  4185. # Loop through the user's path and test for each of PROGNAME-LIST
  4186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4187. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4188. do
  4189. IFS=$as_save_IFS
  4190. test -z "$as_dir" && as_dir=.
  4191. for ac_prog in egrep; do
  4192. for ac_exec_ext in '' $ac_executable_extensions; do
  4193. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4194. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4195. # Check for GNU ac_path_EGREP and select it if it is found.
  4196. # Check for GNU $ac_path_EGREP
  4197. case `"$ac_path_EGREP" --version 2>&1` in
  4198. *GNU*)
  4199. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4200. *)
  4201. ac_count=0
  4202. $as_echo_n 0123456789 >"conftest.in"
  4203. while :
  4204. do
  4205. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4206. mv "conftest.tmp" "conftest.in"
  4207. cp "conftest.in" "conftest.nl"
  4208. $as_echo 'EGREP' >> "conftest.nl"
  4209. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4210. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4211. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4212. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4213. # Best one so far, save it but keep looking for a better one
  4214. ac_cv_path_EGREP="$ac_path_EGREP"
  4215. ac_path_EGREP_max=$ac_count
  4216. fi
  4217. # 10*(2^10) chars as input seems more than enough
  4218. test $ac_count -gt 10 && break
  4219. done
  4220. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4221. esac
  4222. $ac_path_EGREP_found && break 3
  4223. done
  4224. done
  4225. done
  4226. IFS=$as_save_IFS
  4227. if test -z "$ac_cv_path_EGREP"; then
  4228. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4229. fi
  4230. else
  4231. ac_cv_path_EGREP=$EGREP
  4232. fi
  4233. fi
  4234. fi
  4235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4236. $as_echo "$ac_cv_path_EGREP" >&6; }
  4237. EGREP="$ac_cv_path_EGREP"
  4238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4239. $as_echo_n "checking for ANSI C header files... " >&6; }
  4240. if test "${ac_cv_header_stdc+set}" = set; then :
  4241. $as_echo_n "(cached) " >&6
  4242. else
  4243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4244. /* end confdefs.h. */
  4245. #include <stdlib.h>
  4246. #include <stdarg.h>
  4247. #include <string.h>
  4248. #include <float.h>
  4249. int
  4250. main ()
  4251. {
  4252. ;
  4253. return 0;
  4254. }
  4255. _ACEOF
  4256. if ac_fn_c_try_compile "$LINENO"; then :
  4257. ac_cv_header_stdc=yes
  4258. else
  4259. ac_cv_header_stdc=no
  4260. fi
  4261. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4262. if test $ac_cv_header_stdc = yes; then
  4263. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4265. /* end confdefs.h. */
  4266. #include <string.h>
  4267. _ACEOF
  4268. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4269. $EGREP "memchr" >/dev/null 2>&1; then :
  4270. else
  4271. ac_cv_header_stdc=no
  4272. fi
  4273. rm -f conftest*
  4274. fi
  4275. if test $ac_cv_header_stdc = yes; then
  4276. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4278. /* end confdefs.h. */
  4279. #include <stdlib.h>
  4280. _ACEOF
  4281. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4282. $EGREP "free" >/dev/null 2>&1; then :
  4283. else
  4284. ac_cv_header_stdc=no
  4285. fi
  4286. rm -f conftest*
  4287. fi
  4288. if test $ac_cv_header_stdc = yes; then
  4289. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4290. if test "$cross_compiling" = yes; then :
  4291. :
  4292. else
  4293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4294. /* end confdefs.h. */
  4295. #include <ctype.h>
  4296. #include <stdlib.h>
  4297. #if ((' ' & 0x0FF) == 0x020)
  4298. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4299. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4300. #else
  4301. # define ISLOWER(c) \
  4302. (('a' <= (c) && (c) <= 'i') \
  4303. || ('j' <= (c) && (c) <= 'r') \
  4304. || ('s' <= (c) && (c) <= 'z'))
  4305. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4306. #endif
  4307. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4308. int
  4309. main ()
  4310. {
  4311. int i;
  4312. for (i = 0; i < 256; i++)
  4313. if (XOR (islower (i), ISLOWER (i))
  4314. || toupper (i) != TOUPPER (i))
  4315. return 2;
  4316. return 0;
  4317. }
  4318. _ACEOF
  4319. if ac_fn_c_try_run "$LINENO"; then :
  4320. else
  4321. ac_cv_header_stdc=no
  4322. fi
  4323. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4324. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4325. fi
  4326. fi
  4327. fi
  4328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4329. $as_echo "$ac_cv_header_stdc" >&6; }
  4330. if test $ac_cv_header_stdc = yes; then
  4331. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4332. fi
  4333. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4334. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4335. inttypes.h stdint.h unistd.h
  4336. do :
  4337. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4338. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4339. "
  4340. eval as_val=\$$as_ac_Header
  4341. if test "x$as_val" = x""yes; then :
  4342. cat >>confdefs.h <<_ACEOF
  4343. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4344. _ACEOF
  4345. fi
  4346. done
  4347. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4348. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  4349. MINIX=yes
  4350. else
  4351. MINIX=
  4352. fi
  4353. if test "$MINIX" = yes; then
  4354. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4355. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4356. $as_echo "#define _MINIX 1" >>confdefs.h
  4357. fi
  4358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4359. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4360. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  4361. $as_echo_n "(cached) " >&6
  4362. else
  4363. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4364. /* end confdefs.h. */
  4365. # define __EXTENSIONS__ 1
  4366. $ac_includes_default
  4367. int
  4368. main ()
  4369. {
  4370. ;
  4371. return 0;
  4372. }
  4373. _ACEOF
  4374. if ac_fn_c_try_compile "$LINENO"; then :
  4375. ac_cv_safe_to_define___extensions__=yes
  4376. else
  4377. ac_cv_safe_to_define___extensions__=no
  4378. fi
  4379. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4380. fi
  4381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4382. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4383. test $ac_cv_safe_to_define___extensions__ = yes &&
  4384. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4385. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4386. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4387. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4388. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4389. # So far, the only shared library we might use is libopts.
  4390. # It's a small library - we might as well use a static version of it.
  4391. # Check whether --enable-shared was given.
  4392. if test "${enable_shared+set}" = set; then :
  4393. enableval=$enable_shared; p=${PACKAGE-default}
  4394. case $enableval in
  4395. yes) enable_shared=yes ;;
  4396. no) enable_shared=no ;;
  4397. *)
  4398. enable_shared=no
  4399. # Look at the argument we got. We use all the common list separators.
  4400. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  4401. for pkg in $enableval; do
  4402. IFS="$lt_save_ifs"
  4403. if test "X$pkg" = "X$p"; then
  4404. enable_shared=yes
  4405. fi
  4406. done
  4407. IFS="$lt_save_ifs"
  4408. ;;
  4409. esac
  4410. else
  4411. enable_shared=no
  4412. fi
  4413. ac_ext=c
  4414. ac_cpp='$CPP $CPPFLAGS'
  4415. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4416. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4417. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4418. if test -n "$ac_tool_prefix"; then
  4419. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4420. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4422. $as_echo_n "checking for $ac_word... " >&6; }
  4423. if test "${ac_cv_prog_CC+set}" = set; then :
  4424. $as_echo_n "(cached) " >&6
  4425. else
  4426. if test -n "$CC"; then
  4427. ac_cv_prog_CC="$CC" # Let the user override the test.
  4428. else
  4429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4430. for as_dir in $PATH
  4431. do
  4432. IFS=$as_save_IFS
  4433. test -z "$as_dir" && as_dir=.
  4434. for ac_exec_ext in '' $ac_executable_extensions; do
  4435. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4436. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4437. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4438. break 2
  4439. fi
  4440. done
  4441. done
  4442. IFS=$as_save_IFS
  4443. fi
  4444. fi
  4445. CC=$ac_cv_prog_CC
  4446. if test -n "$CC"; then
  4447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4448. $as_echo "$CC" >&6; }
  4449. else
  4450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4451. $as_echo "no" >&6; }
  4452. fi
  4453. fi
  4454. if test -z "$ac_cv_prog_CC"; then
  4455. ac_ct_CC=$CC
  4456. # Extract the first word of "gcc", so it can be a program name with args.
  4457. set dummy gcc; ac_word=$2
  4458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4459. $as_echo_n "checking for $ac_word... " >&6; }
  4460. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4461. $as_echo_n "(cached) " >&6
  4462. else
  4463. if test -n "$ac_ct_CC"; then
  4464. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4465. else
  4466. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4467. for as_dir in $PATH
  4468. do
  4469. IFS=$as_save_IFS
  4470. test -z "$as_dir" && as_dir=.
  4471. for ac_exec_ext in '' $ac_executable_extensions; do
  4472. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4473. ac_cv_prog_ac_ct_CC="gcc"
  4474. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4475. break 2
  4476. fi
  4477. done
  4478. done
  4479. IFS=$as_save_IFS
  4480. fi
  4481. fi
  4482. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4483. if test -n "$ac_ct_CC"; then
  4484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4485. $as_echo "$ac_ct_CC" >&6; }
  4486. else
  4487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4488. $as_echo "no" >&6; }
  4489. fi
  4490. if test "x$ac_ct_CC" = x; then
  4491. CC=""
  4492. else
  4493. case $cross_compiling:$ac_tool_warned in
  4494. yes:)
  4495. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4496. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4497. ac_tool_warned=yes ;;
  4498. esac
  4499. CC=$ac_ct_CC
  4500. fi
  4501. else
  4502. CC="$ac_cv_prog_CC"
  4503. fi
  4504. if test -z "$CC"; then
  4505. if test -n "$ac_tool_prefix"; then
  4506. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4507. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4509. $as_echo_n "checking for $ac_word... " >&6; }
  4510. if test "${ac_cv_prog_CC+set}" = set; then :
  4511. $as_echo_n "(cached) " >&6
  4512. else
  4513. if test -n "$CC"; then
  4514. ac_cv_prog_CC="$CC" # Let the user override the test.
  4515. else
  4516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4517. for as_dir in $PATH
  4518. do
  4519. IFS=$as_save_IFS
  4520. test -z "$as_dir" && as_dir=.
  4521. for ac_exec_ext in '' $ac_executable_extensions; do
  4522. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4523. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4524. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4525. break 2
  4526. fi
  4527. done
  4528. done
  4529. IFS=$as_save_IFS
  4530. fi
  4531. fi
  4532. CC=$ac_cv_prog_CC
  4533. if test -n "$CC"; then
  4534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4535. $as_echo "$CC" >&6; }
  4536. else
  4537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4538. $as_echo "no" >&6; }
  4539. fi
  4540. fi
  4541. fi
  4542. if test -z "$CC"; then
  4543. # Extract the first word of "cc", so it can be a program name with args.
  4544. set dummy cc; ac_word=$2
  4545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4546. $as_echo_n "checking for $ac_word... " >&6; }
  4547. if test "${ac_cv_prog_CC+set}" = set; then :
  4548. $as_echo_n "(cached) " >&6
  4549. else
  4550. if test -n "$CC"; then
  4551. ac_cv_prog_CC="$CC" # Let the user override the test.
  4552. else
  4553. ac_prog_rejected=no
  4554. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4555. for as_dir in $PATH
  4556. do
  4557. IFS=$as_save_IFS
  4558. test -z "$as_dir" && as_dir=.
  4559. for ac_exec_ext in '' $ac_executable_extensions; do
  4560. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4561. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4562. ac_prog_rejected=yes
  4563. continue
  4564. fi
  4565. ac_cv_prog_CC="cc"
  4566. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4567. break 2
  4568. fi
  4569. done
  4570. done
  4571. IFS=$as_save_IFS
  4572. if test $ac_prog_rejected = yes; then
  4573. # We found a bogon in the path, so make sure we never use it.
  4574. set dummy $ac_cv_prog_CC
  4575. shift
  4576. if test $# != 0; then
  4577. # We chose a different compiler from the bogus one.
  4578. # However, it has the same basename, so the bogon will be chosen
  4579. # first if we set CC to just the basename; use the full file name.
  4580. shift
  4581. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4582. fi
  4583. fi
  4584. fi
  4585. fi
  4586. CC=$ac_cv_prog_CC
  4587. if test -n "$CC"; then
  4588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4589. $as_echo "$CC" >&6; }
  4590. else
  4591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4592. $as_echo "no" >&6; }
  4593. fi
  4594. fi
  4595. if test -z "$CC"; then
  4596. if test -n "$ac_tool_prefix"; then
  4597. for ac_prog in cl.exe
  4598. do
  4599. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4600. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4602. $as_echo_n "checking for $ac_word... " >&6; }
  4603. if test "${ac_cv_prog_CC+set}" = set; then :
  4604. $as_echo_n "(cached) " >&6
  4605. else
  4606. if test -n "$CC"; then
  4607. ac_cv_prog_CC="$CC" # Let the user override the test.
  4608. else
  4609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4610. for as_dir in $PATH
  4611. do
  4612. IFS=$as_save_IFS
  4613. test -z "$as_dir" && as_dir=.
  4614. for ac_exec_ext in '' $ac_executable_extensions; do
  4615. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4616. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4617. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4618. break 2
  4619. fi
  4620. done
  4621. done
  4622. IFS=$as_save_IFS
  4623. fi
  4624. fi
  4625. CC=$ac_cv_prog_CC
  4626. if test -n "$CC"; then
  4627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4628. $as_echo "$CC" >&6; }
  4629. else
  4630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4631. $as_echo "no" >&6; }
  4632. fi
  4633. test -n "$CC" && break
  4634. done
  4635. fi
  4636. if test -z "$CC"; then
  4637. ac_ct_CC=$CC
  4638. for ac_prog in cl.exe
  4639. do
  4640. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4641. set dummy $ac_prog; ac_word=$2
  4642. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4643. $as_echo_n "checking for $ac_word... " >&6; }
  4644. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  4645. $as_echo_n "(cached) " >&6
  4646. else
  4647. if test -n "$ac_ct_CC"; then
  4648. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4649. else
  4650. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4651. for as_dir in $PATH
  4652. do
  4653. IFS=$as_save_IFS
  4654. test -z "$as_dir" && as_dir=.
  4655. for ac_exec_ext in '' $ac_executable_extensions; do
  4656. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4657. ac_cv_prog_ac_ct_CC="$ac_prog"
  4658. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4659. break 2
  4660. fi
  4661. done
  4662. done
  4663. IFS=$as_save_IFS
  4664. fi
  4665. fi
  4666. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4667. if test -n "$ac_ct_CC"; then
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4669. $as_echo "$ac_ct_CC" >&6; }
  4670. else
  4671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4672. $as_echo "no" >&6; }
  4673. fi
  4674. test -n "$ac_ct_CC" && break
  4675. done
  4676. if test "x$ac_ct_CC" = x; then
  4677. CC=""
  4678. else
  4679. case $cross_compiling:$ac_tool_warned in
  4680. yes:)
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4682. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4683. ac_tool_warned=yes ;;
  4684. esac
  4685. CC=$ac_ct_CC
  4686. fi
  4687. fi
  4688. fi
  4689. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4690. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4691. as_fn_error "no acceptable C compiler found in \$PATH
  4692. See \`config.log' for more details." "$LINENO" 5; }
  4693. # Provide some information about the compiler.
  4694. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4695. set X $ac_compile
  4696. ac_compiler=$2
  4697. for ac_option in --version -v -V -qversion; do
  4698. { { ac_try="$ac_compiler $ac_option >&5"
  4699. case "(($ac_try" in
  4700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4701. *) ac_try_echo=$ac_try;;
  4702. esac
  4703. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4704. $as_echo "$ac_try_echo"; } >&5
  4705. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4706. ac_status=$?
  4707. if test -s conftest.err; then
  4708. sed '10a\
  4709. ... rest of stderr output deleted ...
  4710. 10q' conftest.err >conftest.er1
  4711. cat conftest.er1 >&5
  4712. fi
  4713. rm -f conftest.er1 conftest.err
  4714. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4715. test $ac_status = 0; }
  4716. done
  4717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4718. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4719. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  4720. $as_echo_n "(cached) " >&6
  4721. else
  4722. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4723. /* end confdefs.h. */
  4724. int
  4725. main ()
  4726. {
  4727. #ifndef __GNUC__
  4728. choke me
  4729. #endif
  4730. ;
  4731. return 0;
  4732. }
  4733. _ACEOF
  4734. if ac_fn_c_try_compile "$LINENO"; then :
  4735. ac_compiler_gnu=yes
  4736. else
  4737. ac_compiler_gnu=no
  4738. fi
  4739. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4740. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4741. fi
  4742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4743. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4744. if test $ac_compiler_gnu = yes; then
  4745. GCC=yes
  4746. else
  4747. GCC=
  4748. fi
  4749. ac_test_CFLAGS=${CFLAGS+set}
  4750. ac_save_CFLAGS=$CFLAGS
  4751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4752. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4753. if test "${ac_cv_prog_cc_g+set}" = set; then :
  4754. $as_echo_n "(cached) " >&6
  4755. else
  4756. ac_save_c_werror_flag=$ac_c_werror_flag
  4757. ac_c_werror_flag=yes
  4758. ac_cv_prog_cc_g=no
  4759. CFLAGS="-g"
  4760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4761. /* end confdefs.h. */
  4762. int
  4763. main ()
  4764. {
  4765. ;
  4766. return 0;
  4767. }
  4768. _ACEOF
  4769. if ac_fn_c_try_compile "$LINENO"; then :
  4770. ac_cv_prog_cc_g=yes
  4771. else
  4772. CFLAGS=""
  4773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4774. /* end confdefs.h. */
  4775. int
  4776. main ()
  4777. {
  4778. ;
  4779. return 0;
  4780. }
  4781. _ACEOF
  4782. if ac_fn_c_try_compile "$LINENO"; then :
  4783. else
  4784. ac_c_werror_flag=$ac_save_c_werror_flag
  4785. CFLAGS="-g"
  4786. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4787. /* end confdefs.h. */
  4788. int
  4789. main ()
  4790. {
  4791. ;
  4792. return 0;
  4793. }
  4794. _ACEOF
  4795. if ac_fn_c_try_compile "$LINENO"; then :
  4796. ac_cv_prog_cc_g=yes
  4797. fi
  4798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4799. fi
  4800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4801. fi
  4802. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4803. ac_c_werror_flag=$ac_save_c_werror_flag
  4804. fi
  4805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4806. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4807. if test "$ac_test_CFLAGS" = set; then
  4808. CFLAGS=$ac_save_CFLAGS
  4809. elif test $ac_cv_prog_cc_g = yes; then
  4810. if test "$GCC" = yes; then
  4811. CFLAGS="-g -O2"
  4812. else
  4813. CFLAGS="-g"
  4814. fi
  4815. else
  4816. if test "$GCC" = yes; then
  4817. CFLAGS="-O2"
  4818. else
  4819. CFLAGS=
  4820. fi
  4821. fi
  4822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4823. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4824. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  4825. $as_echo_n "(cached) " >&6
  4826. else
  4827. ac_cv_prog_cc_c89=no
  4828. ac_save_CC=$CC
  4829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4830. /* end confdefs.h. */
  4831. #include <stdarg.h>
  4832. #include <stdio.h>
  4833. #include <sys/types.h>
  4834. #include <sys/stat.h>
  4835. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4836. struct buf { int x; };
  4837. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4838. static char *e (p, i)
  4839. char **p;
  4840. int i;
  4841. {
  4842. return p[i];
  4843. }
  4844. static char *f (char * (*g) (char **, int), char **p, ...)
  4845. {
  4846. char *s;
  4847. va_list v;
  4848. va_start (v,p);
  4849. s = g (p, va_arg (v,int));
  4850. va_end (v);
  4851. return s;
  4852. }
  4853. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4854. function prototypes and stuff, but not '\xHH' hex character constants.
  4855. These don't provoke an error unfortunately, instead are silently treated
  4856. as 'x'. The following induces an error, until -std is added to get
  4857. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4858. array size at least. It's necessary to write '\x00'==0 to get something
  4859. that's true only with -std. */
  4860. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4861. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4862. inside strings and character constants. */
  4863. #define FOO(x) 'x'
  4864. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4865. int test (int i, double x);
  4866. struct s1 {int (*f) (int a);};
  4867. struct s2 {int (*f) (double a);};
  4868. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4869. int argc;
  4870. char **argv;
  4871. int
  4872. main ()
  4873. {
  4874. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4875. ;
  4876. return 0;
  4877. }
  4878. _ACEOF
  4879. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4880. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4881. do
  4882. CC="$ac_save_CC $ac_arg"
  4883. if ac_fn_c_try_compile "$LINENO"; then :
  4884. ac_cv_prog_cc_c89=$ac_arg
  4885. fi
  4886. rm -f core conftest.err conftest.$ac_objext
  4887. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4888. done
  4889. rm -f conftest.$ac_ext
  4890. CC=$ac_save_CC
  4891. fi
  4892. # AC_CACHE_VAL
  4893. case "x$ac_cv_prog_cc_c89" in
  4894. x)
  4895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4896. $as_echo "none needed" >&6; } ;;
  4897. xno)
  4898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4899. $as_echo "unsupported" >&6; } ;;
  4900. *)
  4901. CC="$CC $ac_cv_prog_cc_c89"
  4902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4903. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4904. esac
  4905. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4906. fi
  4907. ac_ext=c
  4908. ac_cpp='$CPP $CPPFLAGS'
  4909. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4910. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4911. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4912. depcc="$CC" am_compiler_list=
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4914. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4915. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4916. $as_echo_n "(cached) " >&6
  4917. else
  4918. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4919. # We make a subdir and do the tests there. Otherwise we can end up
  4920. # making bogus files that we don't know about and never remove. For
  4921. # instance it was reported that on HP-UX the gcc test will end up
  4922. # making a dummy file named `D' -- because `-MD' means `put the output
  4923. # in D'.
  4924. mkdir conftest.dir
  4925. # Copy depcomp to subdir because otherwise we won't find it if we're
  4926. # using a relative directory.
  4927. cp "$am_depcomp" conftest.dir
  4928. cd conftest.dir
  4929. # We will build objects and dependencies in a subdirectory because
  4930. # it helps to detect inapplicable dependency modes. For instance
  4931. # both Tru64's cc and ICC support -MD to output dependencies as a
  4932. # side effect of compilation, but ICC will put the dependencies in
  4933. # the current directory while Tru64 will put them in the object
  4934. # directory.
  4935. mkdir sub
  4936. am_cv_CC_dependencies_compiler_type=none
  4937. if test "$am_compiler_list" = ""; then
  4938. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4939. fi
  4940. am__universal=false
  4941. case " $depcc " in #(
  4942. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4943. esac
  4944. for depmode in $am_compiler_list; do
  4945. # Setup a source with many dependencies, because some compilers
  4946. # like to wrap large dependency lists on column 80 (with \), and
  4947. # we should not choose a depcomp mode which is confused by this.
  4948. #
  4949. # We need to recreate these files for each test, as the compiler may
  4950. # overwrite some of them when testing with obscure command lines.
  4951. # This happens at least with the AIX C compiler.
  4952. : > sub/conftest.c
  4953. for i in 1 2 3 4 5 6; do
  4954. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4955. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4956. # Solaris 8's {/usr,}/bin/sh.
  4957. touch sub/conftst$i.h
  4958. done
  4959. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4960. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4961. # mode. It turns out that the SunPro C++ compiler does not properly
  4962. # handle `-M -o', and we need to detect this. Also, some Intel
  4963. # versions had trouble with output in subdirs
  4964. am__obj=sub/conftest.${OBJEXT-o}
  4965. am__minus_obj="-o $am__obj"
  4966. case $depmode in
  4967. gcc)
  4968. # This depmode causes a compiler race in universal mode.
  4969. test "$am__universal" = false || continue
  4970. ;;
  4971. nosideeffect)
  4972. # after this tag, mechanisms are not by side-effect, so they'll
  4973. # only be used when explicitly requested
  4974. if test "x$enable_dependency_tracking" = xyes; then
  4975. continue
  4976. else
  4977. break
  4978. fi
  4979. ;;
  4980. msvisualcpp | msvcmsys)
  4981. # This compiler won't grok `-c -o', but also, the minuso test has
  4982. # not run yet. These depmodes are late enough in the game, and
  4983. # so weak that their functioning should not be impacted.
  4984. am__obj=conftest.${OBJEXT-o}
  4985. am__minus_obj=
  4986. ;;
  4987. none) break ;;
  4988. esac
  4989. if depmode=$depmode \
  4990. source=sub/conftest.c object=$am__obj \
  4991. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4992. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4993. >/dev/null 2>conftest.err &&
  4994. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4995. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4996. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4997. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4998. # icc doesn't choke on unknown options, it will just issue warnings
  4999. # or remarks (even with -Werror). So we grep stderr for any message
  5000. # that says an option was ignored or not supported.
  5001. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5002. # icc: Command line warning: ignoring option '-M'; no argument required
  5003. # The diagnosis changed in icc 8.0:
  5004. # icc: Command line remark: option '-MP' not supported
  5005. if (grep 'ignoring option' conftest.err ||
  5006. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5007. am_cv_CC_dependencies_compiler_type=$depmode
  5008. break
  5009. fi
  5010. fi
  5011. done
  5012. cd ..
  5013. rm -rf conftest.dir
  5014. else
  5015. am_cv_CC_dependencies_compiler_type=none
  5016. fi
  5017. fi
  5018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  5019. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  5020. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  5021. if
  5022. test "x$enable_dependency_tracking" != xno \
  5023. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  5024. am__fastdepCC_TRUE=
  5025. am__fastdepCC_FALSE='#'
  5026. else
  5027. am__fastdepCC_TRUE='#'
  5028. am__fastdepCC_FALSE=
  5029. fi
  5030. # Ralf Wildenhues: With per-target flags we need CC_C_O
  5031. # AM_PROG_CC_C_O supersets AC_PROG_CC_C_O
  5032. if test "x$CC" != xcc; then
  5033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  5034. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  5035. else
  5036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  5037. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  5038. fi
  5039. set dummy $CC; ac_cc=`$as_echo "$2" |
  5040. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  5041. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  5042. $as_echo_n "(cached) " >&6
  5043. else
  5044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5045. /* end confdefs.h. */
  5046. int
  5047. main ()
  5048. {
  5049. ;
  5050. return 0;
  5051. }
  5052. _ACEOF
  5053. # Make sure it works both with $CC and with simple cc.
  5054. # We do the test twice because some compilers refuse to overwrite an
  5055. # existing .o file with -o, though they will create one.
  5056. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  5057. rm -f conftest2.*
  5058. if { { case "(($ac_try" in
  5059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5060. *) ac_try_echo=$ac_try;;
  5061. esac
  5062. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5063. $as_echo "$ac_try_echo"; } >&5
  5064. (eval "$ac_try") 2>&5
  5065. ac_status=$?
  5066. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5067. test $ac_status = 0; } &&
  5068. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  5069. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5070. *) ac_try_echo=$ac_try;;
  5071. esac
  5072. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5073. $as_echo "$ac_try_echo"; } >&5
  5074. (eval "$ac_try") 2>&5
  5075. ac_status=$?
  5076. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5077. test $ac_status = 0; };
  5078. then
  5079. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  5080. if test "x$CC" != xcc; then
  5081. # Test first that cc exists at all.
  5082. if { ac_try='cc -c conftest.$ac_ext >&5'
  5083. { { case "(($ac_try" in
  5084. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5085. *) ac_try_echo=$ac_try;;
  5086. esac
  5087. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5088. $as_echo "$ac_try_echo"; } >&5
  5089. (eval "$ac_try") 2>&5
  5090. ac_status=$?
  5091. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5092. test $ac_status = 0; }; }; then
  5093. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  5094. rm -f conftest2.*
  5095. if { { case "(($ac_try" in
  5096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5097. *) ac_try_echo=$ac_try;;
  5098. esac
  5099. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5100. $as_echo "$ac_try_echo"; } >&5
  5101. (eval "$ac_try") 2>&5
  5102. ac_status=$?
  5103. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5104. test $ac_status = 0; } &&
  5105. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  5106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5107. *) ac_try_echo=$ac_try;;
  5108. esac
  5109. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5110. $as_echo "$ac_try_echo"; } >&5
  5111. (eval "$ac_try") 2>&5
  5112. ac_status=$?
  5113. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5114. test $ac_status = 0; };
  5115. then
  5116. # cc works too.
  5117. :
  5118. else
  5119. # cc exists but doesn't like -o.
  5120. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  5121. fi
  5122. fi
  5123. fi
  5124. else
  5125. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  5126. fi
  5127. rm -f core conftest*
  5128. fi
  5129. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  5130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5131. $as_echo "yes" >&6; }
  5132. else
  5133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5134. $as_echo "no" >&6; }
  5135. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  5136. fi
  5137. # FIXME: we rely on the cache variable name because
  5138. # there is no other way.
  5139. set dummy $CC
  5140. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  5141. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  5142. if test "$am_t" != yes; then
  5143. # Losing compiler, so override with the script.
  5144. # FIXME: It is wrong to rewrite CC.
  5145. # But if we don't then we get into trouble of one sort or another.
  5146. # A longer-term fix would be to have automake use am__CC in this case,
  5147. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  5148. CC="$am_aux_dir/compile $CC"
  5149. fi
  5150. case $ac_cv_prog_cc_stdc in #(
  5151. no) :
  5152. ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
  5153. *) :
  5154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  5155. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  5156. if test "${ac_cv_prog_cc_c99+set}" = set; then :
  5157. $as_echo_n "(cached) " >&6
  5158. else
  5159. ac_cv_prog_cc_c99=no
  5160. ac_save_CC=$CC
  5161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5162. /* end confdefs.h. */
  5163. #include <stdarg.h>
  5164. #include <stdbool.h>
  5165. #include <stdlib.h>
  5166. #include <wchar.h>
  5167. #include <stdio.h>
  5168. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  5169. #define debug(...) fprintf (stderr, __VA_ARGS__)
  5170. #define showlist(...) puts (#__VA_ARGS__)
  5171. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  5172. static void
  5173. test_varargs_macros (void)
  5174. {
  5175. int x = 1234;
  5176. int y = 5678;
  5177. debug ("Flag");
  5178. debug ("X = %d\n", x);
  5179. showlist (The first, second, and third items.);
  5180. report (x>y, "x is %d but y is %d", x, y);
  5181. }
  5182. // Check long long types.
  5183. #define BIG64 18446744073709551615ull
  5184. #define BIG32 4294967295ul
  5185. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  5186. #if !BIG_OK
  5187. your preprocessor is broken;
  5188. #endif
  5189. #if BIG_OK
  5190. #else
  5191. your preprocessor is broken;
  5192. #endif
  5193. static long long int bignum = -9223372036854775807LL;
  5194. static unsigned long long int ubignum = BIG64;
  5195. struct incomplete_array
  5196. {
  5197. int datasize;
  5198. double data[];
  5199. };
  5200. struct named_init {
  5201. int number;
  5202. const wchar_t *name;
  5203. double average;
  5204. };
  5205. typedef const char *ccp;
  5206. static inline int
  5207. test_restrict (ccp restrict text)
  5208. {
  5209. // See if C++-style comments work.
  5210. // Iterate through items via the restricted pointer.
  5211. // Also check for declarations in for loops.
  5212. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  5213. continue;
  5214. return 0;
  5215. }
  5216. // Check varargs and va_copy.
  5217. static void
  5218. test_varargs (const char *format, ...)
  5219. {
  5220. va_list args;
  5221. va_start (args, format);
  5222. va_list args_copy;
  5223. va_copy (args_copy, args);
  5224. const char *str;
  5225. int number;
  5226. float fnumber;
  5227. while (*format)
  5228. {
  5229. switch (*format++)
  5230. {
  5231. case 's': // string
  5232. str = va_arg (args_copy, const char *);
  5233. break;
  5234. case 'd': // int
  5235. number = va_arg (args_copy, int);
  5236. break;
  5237. case 'f': // float
  5238. fnumber = va_arg (args_copy, double);
  5239. break;
  5240. default:
  5241. break;
  5242. }
  5243. }
  5244. va_end (args_copy);
  5245. va_end (args);
  5246. }
  5247. int
  5248. main ()
  5249. {
  5250. // Check bool.
  5251. _Bool success = false;
  5252. // Check restrict.
  5253. if (test_restrict ("String literal") == 0)
  5254. success = true;
  5255. char *restrict newvar = "Another string";
  5256. // Check varargs.
  5257. test_varargs ("s, d' f .", "string", 65, 34.234);
  5258. test_varargs_macros ();
  5259. // Check flexible array members.
  5260. struct incomplete_array *ia =
  5261. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  5262. ia->datasize = 10;
  5263. for (int i = 0; i < ia->datasize; ++i)
  5264. ia->data[i] = i * 1.234;
  5265. // Check named initializers.
  5266. struct named_init ni = {
  5267. .number = 34,
  5268. .name = L"Test wide string",
  5269. .average = 543.34343,
  5270. };
  5271. ni.number = 58;
  5272. int dynamic_array[ni.number];
  5273. dynamic_array[ni.number - 1] = 543;
  5274. // work around unused variable warnings
  5275. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  5276. || dynamic_array[ni.number - 1] != 543);
  5277. ;
  5278. return 0;
  5279. }
  5280. _ACEOF
  5281. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
  5282. do
  5283. CC="$ac_save_CC $ac_arg"
  5284. if ac_fn_c_try_compile "$LINENO"; then :
  5285. ac_cv_prog_cc_c99=$ac_arg
  5286. fi
  5287. rm -f core conftest.err conftest.$ac_objext
  5288. test "x$ac_cv_prog_cc_c99" != "xno" && break
  5289. done
  5290. rm -f conftest.$ac_ext
  5291. CC=$ac_save_CC
  5292. fi
  5293. # AC_CACHE_VAL
  5294. case "x$ac_cv_prog_cc_c99" in
  5295. x)
  5296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5297. $as_echo "none needed" >&6; } ;;
  5298. xno)
  5299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5300. $as_echo "unsupported" >&6; } ;;
  5301. *)
  5302. CC="$CC $ac_cv_prog_cc_c99"
  5303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  5304. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  5305. esac
  5306. if test "x$ac_cv_prog_cc_c99" != xno; then :
  5307. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  5308. else
  5309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  5310. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  5311. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  5312. $as_echo_n "(cached) " >&6
  5313. else
  5314. ac_cv_prog_cc_c89=no
  5315. ac_save_CC=$CC
  5316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5317. /* end confdefs.h. */
  5318. #include <stdarg.h>
  5319. #include <stdio.h>
  5320. #include <sys/types.h>
  5321. #include <sys/stat.h>
  5322. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  5323. struct buf { int x; };
  5324. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5325. static char *e (p, i)
  5326. char **p;
  5327. int i;
  5328. {
  5329. return p[i];
  5330. }
  5331. static char *f (char * (*g) (char **, int), char **p, ...)
  5332. {
  5333. char *s;
  5334. va_list v;
  5335. va_start (v,p);
  5336. s = g (p, va_arg (v,int));
  5337. va_end (v);
  5338. return s;
  5339. }
  5340. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  5341. function prototypes and stuff, but not '\xHH' hex character constants.
  5342. These don't provoke an error unfortunately, instead are silently treated
  5343. as 'x'. The following induces an error, until -std is added to get
  5344. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  5345. array size at least. It's necessary to write '\x00'==0 to get something
  5346. that's true only with -std. */
  5347. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5348. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5349. inside strings and character constants. */
  5350. #define FOO(x) 'x'
  5351. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5352. int test (int i, double x);
  5353. struct s1 {int (*f) (int a);};
  5354. struct s2 {int (*f) (double a);};
  5355. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5356. int argc;
  5357. char **argv;
  5358. int
  5359. main ()
  5360. {
  5361. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  5362. ;
  5363. return 0;
  5364. }
  5365. _ACEOF
  5366. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5367. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5368. do
  5369. CC="$ac_save_CC $ac_arg"
  5370. if ac_fn_c_try_compile "$LINENO"; then :
  5371. ac_cv_prog_cc_c89=$ac_arg
  5372. fi
  5373. rm -f core conftest.err conftest.$ac_objext
  5374. test "x$ac_cv_prog_cc_c89" != "xno" && break
  5375. done
  5376. rm -f conftest.$ac_ext
  5377. CC=$ac_save_CC
  5378. fi
  5379. # AC_CACHE_VAL
  5380. case "x$ac_cv_prog_cc_c89" in
  5381. x)
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5383. $as_echo "none needed" >&6; } ;;
  5384. xno)
  5385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5386. $as_echo "unsupported" >&6; } ;;
  5387. *)
  5388. CC="$CC $ac_cv_prog_cc_c89"
  5389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  5390. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  5391. esac
  5392. if test "x$ac_cv_prog_cc_c89" != xno; then :
  5393. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  5394. else
  5395. ac_cv_prog_cc_stdc=no
  5396. fi
  5397. fi
  5398. ;;
  5399. esac
  5400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
  5401. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  5402. if test "${ac_cv_prog_cc_stdc+set}" = set; then :
  5403. $as_echo_n "(cached) " >&6
  5404. fi
  5405. case $ac_cv_prog_cc_stdc in #(
  5406. no) :
  5407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5408. $as_echo "unsupported" >&6; } ;; #(
  5409. '') :
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5411. $as_echo "none needed" >&6; } ;; #(
  5412. *) :
  5413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
  5414. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  5415. esac
  5416. ac_ext=c
  5417. ac_cpp='$CPP $CPPFLAGS'
  5418. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5419. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5420. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  5422. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  5423. # On Suns, sometimes $CPP names a directory.
  5424. if test -n "$CPP" && test -d "$CPP"; then
  5425. CPP=
  5426. fi
  5427. if test -z "$CPP"; then
  5428. if test "${ac_cv_prog_CPP+set}" = set; then :
  5429. $as_echo_n "(cached) " >&6
  5430. else
  5431. # Double quotes because CPP needs to be expanded
  5432. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5433. do
  5434. ac_preproc_ok=false
  5435. for ac_c_preproc_warn_flag in '' yes
  5436. do
  5437. # Use a header file that comes with gcc, so configuring glibc
  5438. # with a fresh cross-compiler works.
  5439. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5440. # <limits.h> exists even on freestanding compilers.
  5441. # On the NeXT, cc -E runs the code through the compiler's parser,
  5442. # not just through cpp. "Syntax error" is here to catch this case.
  5443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5444. /* end confdefs.h. */
  5445. #ifdef __STDC__
  5446. # include <limits.h>
  5447. #else
  5448. # include <assert.h>
  5449. #endif
  5450. Syntax error
  5451. _ACEOF
  5452. if ac_fn_c_try_cpp "$LINENO"; then :
  5453. else
  5454. # Broken: fails on valid input.
  5455. continue
  5456. fi
  5457. rm -f conftest.err conftest.$ac_ext
  5458. # OK, works on sane cases. Now check whether nonexistent headers
  5459. # can be detected and how.
  5460. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5461. /* end confdefs.h. */
  5462. #include <ac_nonexistent.h>
  5463. _ACEOF
  5464. if ac_fn_c_try_cpp "$LINENO"; then :
  5465. # Broken: success on invalid input.
  5466. continue
  5467. else
  5468. # Passes both tests.
  5469. ac_preproc_ok=:
  5470. break
  5471. fi
  5472. rm -f conftest.err conftest.$ac_ext
  5473. done
  5474. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5475. rm -f conftest.err conftest.$ac_ext
  5476. if $ac_preproc_ok; then :
  5477. break
  5478. fi
  5479. done
  5480. ac_cv_prog_CPP=$CPP
  5481. fi
  5482. CPP=$ac_cv_prog_CPP
  5483. else
  5484. ac_cv_prog_CPP=$CPP
  5485. fi
  5486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  5487. $as_echo "$CPP" >&6; }
  5488. ac_preproc_ok=false
  5489. for ac_c_preproc_warn_flag in '' yes
  5490. do
  5491. # Use a header file that comes with gcc, so configuring glibc
  5492. # with a fresh cross-compiler works.
  5493. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5494. # <limits.h> exists even on freestanding compilers.
  5495. # On the NeXT, cc -E runs the code through the compiler's parser,
  5496. # not just through cpp. "Syntax error" is here to catch this case.
  5497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5498. /* end confdefs.h. */
  5499. #ifdef __STDC__
  5500. # include <limits.h>
  5501. #else
  5502. # include <assert.h>
  5503. #endif
  5504. Syntax error
  5505. _ACEOF
  5506. if ac_fn_c_try_cpp "$LINENO"; then :
  5507. else
  5508. # Broken: fails on valid input.
  5509. continue
  5510. fi
  5511. rm -f conftest.err conftest.$ac_ext
  5512. # OK, works on sane cases. Now check whether nonexistent headers
  5513. # can be detected and how.
  5514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5515. /* end confdefs.h. */
  5516. #include <ac_nonexistent.h>
  5517. _ACEOF
  5518. if ac_fn_c_try_cpp "$LINENO"; then :
  5519. # Broken: success on invalid input.
  5520. continue
  5521. else
  5522. # Passes both tests.
  5523. ac_preproc_ok=:
  5524. break
  5525. fi
  5526. rm -f conftest.err conftest.$ac_ext
  5527. done
  5528. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5529. rm -f conftest.err conftest.$ac_ext
  5530. if $ac_preproc_ok; then :
  5531. else
  5532. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5533. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5534. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  5535. See \`config.log' for more details." "$LINENO" 5; }
  5536. fi
  5537. ac_ext=c
  5538. ac_cpp='$CPP $CPPFLAGS'
  5539. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5540. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5541. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5542. # HMS: These need to be moved to AM_CPPFLAGS and/or AM_CFLAGS
  5543. case "$host" in
  5544. *-*-amigaos)
  5545. CFLAGS="$CFLAGS -Dfork=vfork -DSYS_AMIGA"
  5546. ;;
  5547. *-*-hpux10.*) # at least for hppa2.0-hp-hpux10.20
  5548. case "$GCC" in
  5549. yes)
  5550. ;;
  5551. *) CFLAGS="$CFLAGS -Wp,-H18816"
  5552. ;;
  5553. esac
  5554. ;;
  5555. *-pc-cygwin*)
  5556. CFLAGS="$CFLAGS -DSYS_CYGWIN32"
  5557. ;;
  5558. i386-sequent-sysv4)
  5559. case "$CC" in
  5560. cc)
  5561. CFLAGS="$CFLAGS -Wc,+abi-socket"
  5562. ;;
  5563. esac
  5564. ;;
  5565. *-*-mpeix*)
  5566. CPPFLAGS="$CPPFLAGS -DMPE -D_POSIX_SOURCE -D_SOCKET_SOURCE -I/SYSLOG/PUB"
  5567. LDFLAGS="$LDFLAGS -L/SYSLOG/PUB"
  5568. LIBS="$LIBS -lcurses"
  5569. ;;
  5570. *-*-solaris*)
  5571. # see "man standards".
  5572. # -D_XOPEN_SOURCE=500 is probably OK for c89 and before
  5573. # -D_XOPEN_SOURCE=600 seems OK for c99
  5574. #CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__"
  5575. CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
  5576. libxnet=-lxnet
  5577. ;;
  5578. esac
  5579. { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional compiler flags" >&5
  5580. $as_echo_n "checking additional compiler flags... " >&6; }
  5581. if test "${ac_cv_os_cflags+set}" = set; then :
  5582. $as_echo_n "(cached) " >&6
  5583. else
  5584. case "${host_os}" in
  5585. irix6* )
  5586. case "${CC}" in
  5587. cc )
  5588. # do not use 64-bit compiler
  5589. ac_cv_os_cflags="-n32 -mips3 -Wl,-woff,84"
  5590. ;;
  5591. esac
  5592. ;;
  5593. # HMS: am-utils needed this but we don't (apparently)
  5594. # osf[[1-3]]* )
  5595. # # get the right version of struct sockaddr
  5596. # case "${CC}" in
  5597. # cc )
  5598. # ac_cv_os_cflags="-std -D_SOCKADDR_LEN -D_NO_PROTO"
  5599. # ;;
  5600. # * )
  5601. # ac_cv_os_cflags="-D_SOCKADDR_LEN -D_NO_PROTO"
  5602. # ;;
  5603. # esac
  5604. # ;;
  5605. # osf* )
  5606. # # get the right version of struct sockaddr
  5607. # case "${CC}" in
  5608. # cc )
  5609. # ac_cv_os_cflags="-std -D_SOCKADDR_LEN"
  5610. # ;;
  5611. # * )
  5612. # ac_cv_os_cflags="-D_SOCKADDR_LEN"
  5613. # ;;
  5614. # esac
  5615. # ;;
  5616. aix[1-3]* )
  5617. ac_cv_os_cflags="" ;;
  5618. aix4.[0-2]* )
  5619. # turn on additional headers
  5620. ac_cv_os_cflags="-D_XOPEN_EXTENDED_SOURCE"
  5621. ;;
  5622. aix* )
  5623. # avoid circular dependencies in yp headers
  5624. ac_cv_os_cflags="-DHAVE_BAD_HEADERS -D_XOPEN_EXTENDED_SOURCE"
  5625. ;;
  5626. OFF-sunos4* )
  5627. # make sure passing whole structures is handled in gcc
  5628. case "${CC}" in
  5629. gcc )
  5630. ac_cv_os_cflags="-fpcc-struct-return"
  5631. ;;
  5632. esac
  5633. ;;
  5634. sunos[34]* | solaris1* | solaris2.[0-5]* | sunos5.[0-5]* )
  5635. ac_cv_os_cflags="" ;;
  5636. solaris* | sunos* )
  5637. # turn on 64-bit file offset interface
  5638. case "${CC}" in
  5639. * )
  5640. ac_cv_os_cflags="-D_LARGEFILE64_SOURCE"
  5641. ;;
  5642. esac
  5643. ;;
  5644. hpux* )
  5645. # use Ansi compiler on HPUX
  5646. case "${CC}" in
  5647. cc )
  5648. ac_cv_os_cflags="-Ae"
  5649. ;;
  5650. esac
  5651. ;;
  5652. darwin* | rhapsody* )
  5653. ac_cv_os_cflags="-D_P1003_1B_VISIBLE"
  5654. ;;
  5655. * )
  5656. ac_cv_os_cflags=""
  5657. ;;
  5658. esac
  5659. fi
  5660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cflags" >&5
  5661. $as_echo "$ac_cv_os_cflags" >&6; }
  5662. CFLAGS="$CFLAGS $ac_cv_os_cflags"
  5663. # NTP has (so far) been relying on leading-edge autogen.
  5664. # Therefore, by default:
  5665. # - use the version we ship with
  5666. # - do not install it
  5667. # - build a static copy (AC_DISABLE_SHARED - done earlier)
  5668. case "${enable_local_libopts+set}" in
  5669. set) ;;
  5670. *) enable_local_libopts=yes ;;
  5671. esac
  5672. case "${enable_libopts_install+set}" in
  5673. set) ;;
  5674. *) enable_libopts_install=no ;;
  5675. esac
  5676. NEED_LIBOPTS_DIR=''
  5677. LIBOPTS_DIR=libopts
  5678. # Check whether --enable-local-libopts was given.
  5679. if test "${enable_local_libopts+set}" = set; then :
  5680. enableval=$enable_local_libopts;
  5681. if test x$enableval = xyes ; then
  5682. { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
  5683. $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
  5684. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  5685. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  5686. NEED_LIBOPTS_DIR=true
  5687. fi
  5688. fi
  5689. # Check whether --enable-libopts-install was given.
  5690. if test "${enable_libopts_install+set}" = set; then :
  5691. enableval=$enable_libopts_install;
  5692. fi
  5693. if test "X${enable_libopts_install}" != Xno; then
  5694. INSTALL_LIBOPTS_TRUE=
  5695. INSTALL_LIBOPTS_FALSE='#'
  5696. else
  5697. INSTALL_LIBOPTS_TRUE='#'
  5698. INSTALL_LIBOPTS_FALSE=
  5699. fi
  5700. if test -z "${NEED_LIBOPTS_DIR}" ; then
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
  5702. $as_echo_n "checking whether autoopts-config can be found... " >&6; }
  5703. # Check whether --with-autoopts-config was given.
  5704. if test "${with_autoopts_config+set}" = set; then :
  5705. withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
  5706. else
  5707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
  5708. $as_echo_n "checking whether autoopts-config is specified... " >&6; }
  5709. if test "${lo_cv_with_autoopts_config+set}" = set; then :
  5710. $as_echo_n "(cached) " >&6
  5711. else
  5712. if autoopts-config --help 2>/dev/null 1>&2
  5713. then lo_cv_with_autoopts_config=autoopts-config
  5714. elif libopts-config --help 2>/dev/null 1>&2
  5715. then lo_cv_with_autoopts_config=libopts-config
  5716. else lo_cv_with_autoopts_config=no ; fi
  5717. fi
  5718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
  5719. $as_echo "$lo_cv_with_autoopts_config" >&6; }
  5720. fi
  5721. # end of AC_ARG_WITH
  5722. if test "${lo_cv_test_autoopts+set}" = set; then :
  5723. $as_echo_n "(cached) " >&6
  5724. else
  5725. if test -z "${lo_cv_with_autoopts_config}" \
  5726. -o X"${lo_cv_with_autoopts_config}" = Xno
  5727. then
  5728. if autoopts-config --help 2>/dev/null 1>&2
  5729. then lo_cv_with_autoopts_config=autoopts-config
  5730. elif libopts-config --help 2>/dev/null 1>&2
  5731. then lo_cv_with_autoopts_config=libopts-config
  5732. else lo_cv_with_autoopts_config=false ; fi
  5733. fi
  5734. lo_cv_test_autoopts=`
  5735. ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
  5736. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  5737. then lo_cv_test_autoopts=no ; fi
  5738. fi
  5739. # end of CACHE_VAL
  5740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
  5741. $as_echo "${lo_cv_test_autoopts}" >&6; }
  5742. if test "X${lo_cv_test_autoopts}" != Xno
  5743. then
  5744. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  5745. LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
  5746. else
  5747. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  5748. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  5749. NEED_LIBOPTS_DIR=true
  5750. fi
  5751. fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  5752. if test -n "${NEED_LIBOPTS_DIR}"; then
  5753. NEED_LIBOPTS_TRUE=
  5754. NEED_LIBOPTS_FALSE='#'
  5755. else
  5756. NEED_LIBOPTS_TRUE='#'
  5757. NEED_LIBOPTS_FALSE=
  5758. fi
  5759. LIBOPTS_DIR=libopts
  5760. ac_config_files="$ac_config_files libopts/Makefile"
  5761. if test -n "${NEED_LIBOPTS_DIR}" ; then
  5762. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  5763. # =================
  5764. # AC_HEADER_STDC
  5765. # =================
  5766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  5767. $as_echo_n "checking for ANSI C header files... " >&6; }
  5768. if test "${ac_cv_header_stdc+set}" = set; then :
  5769. $as_echo_n "(cached) " >&6
  5770. else
  5771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5772. /* end confdefs.h. */
  5773. #include <stdlib.h>
  5774. #include <stdarg.h>
  5775. #include <string.h>
  5776. #include <float.h>
  5777. int
  5778. main ()
  5779. {
  5780. ;
  5781. return 0;
  5782. }
  5783. _ACEOF
  5784. if ac_fn_c_try_compile "$LINENO"; then :
  5785. ac_cv_header_stdc=yes
  5786. else
  5787. ac_cv_header_stdc=no
  5788. fi
  5789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5790. if test $ac_cv_header_stdc = yes; then
  5791. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5793. /* end confdefs.h. */
  5794. #include <string.h>
  5795. _ACEOF
  5796. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5797. $EGREP "memchr" >/dev/null 2>&1; then :
  5798. else
  5799. ac_cv_header_stdc=no
  5800. fi
  5801. rm -f conftest*
  5802. fi
  5803. if test $ac_cv_header_stdc = yes; then
  5804. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5806. /* end confdefs.h. */
  5807. #include <stdlib.h>
  5808. _ACEOF
  5809. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5810. $EGREP "free" >/dev/null 2>&1; then :
  5811. else
  5812. ac_cv_header_stdc=no
  5813. fi
  5814. rm -f conftest*
  5815. fi
  5816. if test $ac_cv_header_stdc = yes; then
  5817. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5818. if test "$cross_compiling" = yes; then :
  5819. :
  5820. else
  5821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5822. /* end confdefs.h. */
  5823. #include <ctype.h>
  5824. #include <stdlib.h>
  5825. #if ((' ' & 0x0FF) == 0x020)
  5826. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5827. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5828. #else
  5829. # define ISLOWER(c) \
  5830. (('a' <= (c) && (c) <= 'i') \
  5831. || ('j' <= (c) && (c) <= 'r') \
  5832. || ('s' <= (c) && (c) <= 'z'))
  5833. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5834. #endif
  5835. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5836. int
  5837. main ()
  5838. {
  5839. int i;
  5840. for (i = 0; i < 256; i++)
  5841. if (XOR (islower (i), ISLOWER (i))
  5842. || toupper (i) != TOUPPER (i))
  5843. return 2;
  5844. return 0;
  5845. }
  5846. _ACEOF
  5847. if ac_fn_c_try_run "$LINENO"; then :
  5848. else
  5849. ac_cv_header_stdc=no
  5850. fi
  5851. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5852. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5853. fi
  5854. fi
  5855. fi
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  5857. $as_echo "$ac_cv_header_stdc" >&6; }
  5858. if test $ac_cv_header_stdc = yes; then
  5859. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  5860. fi
  5861. # =================
  5862. # AC_HEADER_DIRENT
  5863. # =================
  5864. ac_header_dirent=no
  5865. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  5866. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  5867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  5868. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  5869. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
  5870. $as_echo_n "(cached) " >&6
  5871. else
  5872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5873. /* end confdefs.h. */
  5874. #include <sys/types.h>
  5875. #include <$ac_hdr>
  5876. int
  5877. main ()
  5878. {
  5879. if ((DIR *) 0)
  5880. return 0;
  5881. ;
  5882. return 0;
  5883. }
  5884. _ACEOF
  5885. if ac_fn_c_try_compile "$LINENO"; then :
  5886. eval "$as_ac_Header=yes"
  5887. else
  5888. eval "$as_ac_Header=no"
  5889. fi
  5890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5891. fi
  5892. eval ac_res=\$$as_ac_Header
  5893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5894. $as_echo "$ac_res" >&6; }
  5895. eval as_val=\$$as_ac_Header
  5896. if test "x$as_val" = x""yes; then :
  5897. cat >>confdefs.h <<_ACEOF
  5898. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  5899. _ACEOF
  5900. ac_header_dirent=$ac_hdr; break
  5901. fi
  5902. done
  5903. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  5904. if test $ac_header_dirent = dirent.h; then
  5905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  5906. $as_echo_n "checking for library containing opendir... " >&6; }
  5907. if test "${ac_cv_search_opendir+set}" = set; then :
  5908. $as_echo_n "(cached) " >&6
  5909. else
  5910. ac_func_search_save_LIBS=$LIBS
  5911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5912. /* end confdefs.h. */
  5913. /* Override any GCC internal prototype to avoid an error.
  5914. Use char because int might match the return type of a GCC
  5915. builtin and then its argument prototype would still apply. */
  5916. #ifdef __cplusplus
  5917. extern "C"
  5918. #endif
  5919. char opendir ();
  5920. int
  5921. main ()
  5922. {
  5923. return opendir ();
  5924. ;
  5925. return 0;
  5926. }
  5927. _ACEOF
  5928. for ac_lib in '' dir; do
  5929. if test -z "$ac_lib"; then
  5930. ac_res="none required"
  5931. else
  5932. ac_res=-l$ac_lib
  5933. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5934. fi
  5935. if ac_fn_c_try_link "$LINENO"; then :
  5936. ac_cv_search_opendir=$ac_res
  5937. fi
  5938. rm -f core conftest.err conftest.$ac_objext \
  5939. conftest$ac_exeext
  5940. if test "${ac_cv_search_opendir+set}" = set; then :
  5941. break
  5942. fi
  5943. done
  5944. if test "${ac_cv_search_opendir+set}" = set; then :
  5945. else
  5946. ac_cv_search_opendir=no
  5947. fi
  5948. rm conftest.$ac_ext
  5949. LIBS=$ac_func_search_save_LIBS
  5950. fi
  5951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  5952. $as_echo "$ac_cv_search_opendir" >&6; }
  5953. ac_res=$ac_cv_search_opendir
  5954. if test "$ac_res" != no; then :
  5955. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  5956. fi
  5957. else
  5958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  5959. $as_echo_n "checking for library containing opendir... " >&6; }
  5960. if test "${ac_cv_search_opendir+set}" = set; then :
  5961. $as_echo_n "(cached) " >&6
  5962. else
  5963. ac_func_search_save_LIBS=$LIBS
  5964. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5965. /* end confdefs.h. */
  5966. /* Override any GCC internal prototype to avoid an error.
  5967. Use char because int might match the return type of a GCC
  5968. builtin and then its argument prototype would still apply. */
  5969. #ifdef __cplusplus
  5970. extern "C"
  5971. #endif
  5972. char opendir ();
  5973. int
  5974. main ()
  5975. {
  5976. return opendir ();
  5977. ;
  5978. return 0;
  5979. }
  5980. _ACEOF
  5981. for ac_lib in '' x; do
  5982. if test -z "$ac_lib"; then
  5983. ac_res="none required"
  5984. else
  5985. ac_res=-l$ac_lib
  5986. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5987. fi
  5988. if ac_fn_c_try_link "$LINENO"; then :
  5989. ac_cv_search_opendir=$ac_res
  5990. fi
  5991. rm -f core conftest.err conftest.$ac_objext \
  5992. conftest$ac_exeext
  5993. if test "${ac_cv_search_opendir+set}" = set; then :
  5994. break
  5995. fi
  5996. done
  5997. if test "${ac_cv_search_opendir+set}" = set; then :
  5998. else
  5999. ac_cv_search_opendir=no
  6000. fi
  6001. rm conftest.$ac_ext
  6002. LIBS=$ac_func_search_save_LIBS
  6003. fi
  6004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  6005. $as_echo "$ac_cv_search_opendir" >&6; }
  6006. ac_res=$ac_cv_search_opendir
  6007. if test "$ac_res" != no; then :
  6008. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6009. fi
  6010. fi
  6011. # =================
  6012. # AC_CHECK_HEADERS
  6013. # =================
  6014. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  6015. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  6016. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
  6017. utime.h sysexits.h
  6018. do :
  6019. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6020. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6021. eval as_val=\$$as_ac_Header
  6022. if test "x$as_val" = x""yes; then :
  6023. cat >>confdefs.h <<_ACEOF
  6024. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6025. _ACEOF
  6026. fi
  6027. done
  6028. # --------------------------------------------
  6029. # Verify certain entries from AC_CHECK_HEADERS
  6030. # --------------------------------------------
  6031. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  6032. string errno stdlib memory setjmp
  6033. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  6034. test "${as_ac_var}" = set || \
  6035. as_fn_error "You must have ${f}.h on your system" "$LINENO" 5
  6036. done
  6037. # ================================================
  6038. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  6039. # if varargs.h is present define HAVE_VARARGS_H.
  6040. # ================================================
  6041. for ac_header in stdarg.h varargs.h
  6042. do :
  6043. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6044. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6045. eval as_val=\$$as_ac_Header
  6046. if test "x$as_val" = x""yes; then :
  6047. cat >>confdefs.h <<_ACEOF
  6048. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6049. _ACEOF
  6050. break
  6051. fi
  6052. done
  6053. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  6054. as_fn_error "You must have stdarg.h or varargs.h on your system" "$LINENO" 5
  6055. fi
  6056. # ================================================
  6057. # Similarly for the string.h and strings.h headers
  6058. # ================================================
  6059. for ac_header in string.h strings.h
  6060. do :
  6061. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6062. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6063. eval as_val=\$$as_ac_Header
  6064. if test "x$as_val" = x""yes; then :
  6065. cat >>confdefs.h <<_ACEOF
  6066. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6067. _ACEOF
  6068. break
  6069. fi
  6070. done
  6071. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  6072. as_fn_error "You must have string.h or strings.h on your system" "$LINENO" 5
  6073. fi
  6074. # =====================
  6075. # ...and limits headers
  6076. # =====================
  6077. for ac_header in limits.h sys/limits.h values.h
  6078. do :
  6079. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6080. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6081. eval as_val=\$$as_ac_Header
  6082. if test "x$as_val" = x""yes; then :
  6083. cat >>confdefs.h <<_ACEOF
  6084. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6085. _ACEOF
  6086. break
  6087. fi
  6088. done
  6089. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  6090. as_fn_error "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
  6091. fi
  6092. # ========================
  6093. # ...and int types headers
  6094. # ========================
  6095. for ac_header in stdint.h inttypes.h
  6096. do :
  6097. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6098. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6099. eval as_val=\$$as_ac_Header
  6100. if test "x$as_val" = x""yes; then :
  6101. cat >>confdefs.h <<_ACEOF
  6102. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6103. _ACEOF
  6104. break
  6105. fi
  6106. done
  6107. ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
  6108. if test "x$ac_cv_type_int8_t" = x""yes; then :
  6109. cat >>confdefs.h <<_ACEOF
  6110. #define HAVE_INT8_T 1
  6111. _ACEOF
  6112. fi
  6113. ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
  6114. if test "x$ac_cv_type_uint8_t" = x""yes; then :
  6115. cat >>confdefs.h <<_ACEOF
  6116. #define HAVE_UINT8_T 1
  6117. _ACEOF
  6118. fi
  6119. ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
  6120. if test "x$ac_cv_type_int16_t" = x""yes; then :
  6121. cat >>confdefs.h <<_ACEOF
  6122. #define HAVE_INT16_T 1
  6123. _ACEOF
  6124. fi
  6125. ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  6126. if test "x$ac_cv_type_uint16_t" = x""yes; then :
  6127. cat >>confdefs.h <<_ACEOF
  6128. #define HAVE_UINT16_T 1
  6129. _ACEOF
  6130. fi
  6131. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  6132. if test "x$ac_cv_type_int32_t" = x""yes; then :
  6133. cat >>confdefs.h <<_ACEOF
  6134. #define HAVE_INT32_T 1
  6135. _ACEOF
  6136. fi
  6137. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  6138. if test "x$ac_cv_type_uint32_t" = x""yes; then :
  6139. cat >>confdefs.h <<_ACEOF
  6140. #define HAVE_UINT32_T 1
  6141. _ACEOF
  6142. fi
  6143. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  6144. if test "x$ac_cv_type_intptr_t" = x""yes; then :
  6145. cat >>confdefs.h <<_ACEOF
  6146. #define HAVE_INTPTR_T 1
  6147. _ACEOF
  6148. fi
  6149. ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
  6150. if test "x$ac_cv_type_uint_t" = x""yes; then :
  6151. cat >>confdefs.h <<_ACEOF
  6152. #define HAVE_UINT_T 1
  6153. _ACEOF
  6154. fi
  6155. # ====================
  6156. # uintptr type & sizes
  6157. # ====================
  6158. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  6159. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  6160. cat >>confdefs.h <<_ACEOF
  6161. #define HAVE_UINTPTR_T 1
  6162. _ACEOF
  6163. else
  6164. $as_echo "#define uintptr_t unsigned long" >>confdefs.h
  6165. fi
  6166. # The cast to long int works around a bug in the HP C Compiler
  6167. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6168. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6169. # This bug is HP SR number 8606223364.
  6170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
  6171. $as_echo_n "checking size of char*... " >&6; }
  6172. if test "${ac_cv_sizeof_charp+set}" = set; then :
  6173. $as_echo_n "(cached) " >&6
  6174. else
  6175. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
  6176. else
  6177. if test "$ac_cv_type_charp" = yes; then
  6178. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6179. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6180. { as_fn_set_status 77
  6181. as_fn_error "cannot compute sizeof (char*)
  6182. See \`config.log' for more details." "$LINENO" 5; }; }
  6183. else
  6184. ac_cv_sizeof_charp=0
  6185. fi
  6186. fi
  6187. fi
  6188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
  6189. $as_echo "$ac_cv_sizeof_charp" >&6; }
  6190. cat >>confdefs.h <<_ACEOF
  6191. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  6192. _ACEOF
  6193. # The cast to long int works around a bug in the HP C Compiler
  6194. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6195. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6196. # This bug is HP SR number 8606223364.
  6197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  6198. $as_echo_n "checking size of int... " >&6; }
  6199. if test "${ac_cv_sizeof_int+set}" = set; then :
  6200. $as_echo_n "(cached) " >&6
  6201. else
  6202. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  6203. else
  6204. if test "$ac_cv_type_int" = yes; then
  6205. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6206. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6207. { as_fn_set_status 77
  6208. as_fn_error "cannot compute sizeof (int)
  6209. See \`config.log' for more details." "$LINENO" 5; }; }
  6210. else
  6211. ac_cv_sizeof_int=0
  6212. fi
  6213. fi
  6214. fi
  6215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  6216. $as_echo "$ac_cv_sizeof_int" >&6; }
  6217. cat >>confdefs.h <<_ACEOF
  6218. #define SIZEOF_INT $ac_cv_sizeof_int
  6219. _ACEOF
  6220. # The cast to long int works around a bug in the HP C Compiler
  6221. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6222. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6223. # This bug is HP SR number 8606223364.
  6224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  6225. $as_echo_n "checking size of long... " >&6; }
  6226. if test "${ac_cv_sizeof_long+set}" = set; then :
  6227. $as_echo_n "(cached) " >&6
  6228. else
  6229. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  6230. else
  6231. if test "$ac_cv_type_long" = yes; then
  6232. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6233. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6234. { as_fn_set_status 77
  6235. as_fn_error "cannot compute sizeof (long)
  6236. See \`config.log' for more details." "$LINENO" 5; }; }
  6237. else
  6238. ac_cv_sizeof_long=0
  6239. fi
  6240. fi
  6241. fi
  6242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  6243. $as_echo "$ac_cv_sizeof_long" >&6; }
  6244. cat >>confdefs.h <<_ACEOF
  6245. #define SIZEOF_LONG $ac_cv_sizeof_long
  6246. _ACEOF
  6247. # The cast to long int works around a bug in the HP C Compiler
  6248. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6249. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6250. # This bug is HP SR number 8606223364.
  6251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  6252. $as_echo_n "checking size of short... " >&6; }
  6253. if test "${ac_cv_sizeof_short+set}" = set; then :
  6254. $as_echo_n "(cached) " >&6
  6255. else
  6256. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  6257. else
  6258. if test "$ac_cv_type_short" = yes; then
  6259. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6260. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6261. { as_fn_set_status 77
  6262. as_fn_error "cannot compute sizeof (short)
  6263. See \`config.log' for more details." "$LINENO" 5; }; }
  6264. else
  6265. ac_cv_sizeof_short=0
  6266. fi
  6267. fi
  6268. fi
  6269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  6270. $as_echo "$ac_cv_sizeof_short" >&6; }
  6271. cat >>confdefs.h <<_ACEOF
  6272. #define SIZEOF_SHORT $ac_cv_sizeof_short
  6273. _ACEOF
  6274. # ----------------------------------------------------------------------
  6275. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  6276. # ----------------------------------------------------------------------
  6277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
  6278. $as_echo_n "checking for pathfind in -lgen... " >&6; }
  6279. if test "${ac_cv_lib_gen_pathfind+set}" = set; then :
  6280. $as_echo_n "(cached) " >&6
  6281. else
  6282. ac_check_lib_save_LIBS=$LIBS
  6283. LIBS="-lgen $LIBS"
  6284. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6285. /* end confdefs.h. */
  6286. /* Override any GCC internal prototype to avoid an error.
  6287. Use char because int might match the return type of a GCC
  6288. builtin and then its argument prototype would still apply. */
  6289. #ifdef __cplusplus
  6290. extern "C"
  6291. #endif
  6292. char pathfind ();
  6293. int
  6294. main ()
  6295. {
  6296. return pathfind ();
  6297. ;
  6298. return 0;
  6299. }
  6300. _ACEOF
  6301. if ac_fn_c_try_link "$LINENO"; then :
  6302. ac_cv_lib_gen_pathfind=yes
  6303. else
  6304. ac_cv_lib_gen_pathfind=no
  6305. fi
  6306. rm -f core conftest.err conftest.$ac_objext \
  6307. conftest$ac_exeext conftest.$ac_ext
  6308. LIBS=$ac_check_lib_save_LIBS
  6309. fi
  6310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
  6311. $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
  6312. if test "x$ac_cv_lib_gen_pathfind" = x""yes; then :
  6313. cat >>confdefs.h <<_ACEOF
  6314. #define HAVE_LIBGEN 1
  6315. _ACEOF
  6316. LIBS="-lgen $LIBS"
  6317. fi
  6318. for ac_func in vprintf
  6319. do :
  6320. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  6321. if test "x$ac_cv_func_vprintf" = x""yes; then :
  6322. cat >>confdefs.h <<_ACEOF
  6323. #define HAVE_VPRINTF 1
  6324. _ACEOF
  6325. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  6326. if test "x$ac_cv_func__doprnt" = x""yes; then :
  6327. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  6328. fi
  6329. fi
  6330. done
  6331. for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
  6332. do :
  6333. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6334. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  6335. eval as_val=\$$as_ac_var
  6336. if test "x$as_val" = x""yes; then :
  6337. cat >>confdefs.h <<_ACEOF
  6338. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6339. _ACEOF
  6340. fi
  6341. done
  6342. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  6343. fi
  6344. # Check to see if a reg expr header is specified.
  6345. # Check whether --with-regex-header was given.
  6346. if test "${with_regex_header+set}" = set; then :
  6347. withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
  6348. else
  6349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
  6350. $as_echo_n "checking whether a reg expr header is specified... " >&6; }
  6351. if test "${libopts_cv_with_regex_header+set}" = set; then :
  6352. $as_echo_n "(cached) " >&6
  6353. else
  6354. libopts_cv_with_regex_header=no
  6355. fi
  6356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
  6357. $as_echo "$libopts_cv_with_regex_header" >&6; }
  6358. fi
  6359. # end of AC_ARG_WITH
  6360. if test "X${libopts_cv_with_regex_header}" != Xno
  6361. then
  6362. cat >>confdefs.h <<_ACEOF
  6363. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  6364. _ACEOF
  6365. else
  6366. $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
  6367. fi
  6368. # Check to see if a working libregex can be found.
  6369. # Check whether --with-libregex was given.
  6370. if test "${with_libregex+set}" = set; then :
  6371. withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
  6372. else
  6373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
  6374. $as_echo_n "checking whether with-libregex was specified... " >&6; }
  6375. if test "${libopts_cv_with_libregex_root+set}" = set; then :
  6376. $as_echo_n "(cached) " >&6
  6377. else
  6378. libopts_cv_with_libregex_root=no
  6379. fi
  6380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
  6381. $as_echo "$libopts_cv_with_libregex_root" >&6; }
  6382. fi
  6383. # end of AC_ARG_WITH libregex
  6384. if test "${with_libguile+set}" = set && \
  6385. test "${withval}" = no
  6386. then ## disabled by request
  6387. libopts_cv_with_libregex_root=no
  6388. libopts_cv_with_libregex_cflags=no
  6389. libopts_cv_with_libregex_libs=no
  6390. else
  6391. # Check whether --with-libregex-cflags was given.
  6392. if test "${with_libregex_cflags+set}" = set; then :
  6393. withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_regex_cflags}
  6394. else
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
  6396. $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
  6397. if test "${libopts_cv_with_libregex_cflags+set}" = set; then :
  6398. $as_echo_n "(cached) " >&6
  6399. else
  6400. libopts_cv_with_libregex_cflags=no
  6401. fi
  6402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
  6403. $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
  6404. fi
  6405. # end of AC_ARG_WITH libregex-cflags
  6406. # Check whether --with-libregex-libs was given.
  6407. if test "${with_libregex_libs+set}" = set; then :
  6408. withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_regex_libs}
  6409. else
  6410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
  6411. $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
  6412. if test "${libopts_cv_with_libregex_libs+set}" = set; then :
  6413. $as_echo_n "(cached) " >&6
  6414. else
  6415. libopts_cv_with_libregex_libs=no
  6416. fi
  6417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
  6418. $as_echo "$libopts_cv_with_libregex_libs" >&6; }
  6419. fi
  6420. # end of AC_ARG_WITH libregex-libs
  6421. case "X${libopts_cv_with_libregex_cflags}" in
  6422. Xyes|Xno|X )
  6423. case "X${libopts_cv_with_libregex_root}" in
  6424. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  6425. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  6426. esac
  6427. esac
  6428. case "X${libopts_cv_with_libregex_libs}" in
  6429. Xyes|Xno|X )
  6430. case "X${libopts_cv_with_libregex_root}" in
  6431. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  6432. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
  6433. esac
  6434. esac
  6435. libopts_save_CPPFLAGS="${CPPFLAGS}"
  6436. libopts_save_LIBS="${LIBS}"
  6437. fi ## disabled by request
  6438. case "X${libopts_cv_with_libregex_cflags}" in
  6439. Xyes|Xno|X )
  6440. libopts_cv_with_libregex_cflags="" ;;
  6441. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  6442. esac
  6443. case "X${libopts_cv_with_libregex_libs}" in
  6444. Xyes|Xno|X )
  6445. libopts_cv_with_libregex_libs="" ;;
  6446. * )
  6447. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  6448. esac
  6449. LIBREGEX_CFLAGS=""
  6450. LIBREGEX_LIBS=""
  6451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
  6452. $as_echo_n "checking whether libregex functions properly... " >&6; }
  6453. if test "${libopts_cv_with_libregex+set}" = set; then :
  6454. $as_echo_n "(cached) " >&6
  6455. else
  6456. if test "$cross_compiling" = yes; then :
  6457. libopts_cv_with_libregex=no
  6458. else
  6459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6460. /* end confdefs.h. */
  6461. #include <stdio.h>
  6462. #include <stdlib.h>
  6463. #include <sys/types.h>
  6464. #include REGEX_HEADER
  6465. static regex_t re;
  6466. void comp_re( char const* pzPat ) {
  6467. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  6468. if (res == 0) return;
  6469. exit( res ); }
  6470. int main() {
  6471. regmatch_t m[2];
  6472. comp_re( "^.*\$" );
  6473. comp_re( "()|no.*" );
  6474. comp_re( "." );
  6475. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  6476. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  6477. fputs( "error: regex -->.<-- did not match\n", stderr );
  6478. return 1;
  6479. }
  6480. return 0; }
  6481. _ACEOF
  6482. if ac_fn_c_try_run "$LINENO"; then :
  6483. libopts_cv_with_libregex=yes
  6484. else
  6485. libopts_cv_with_libregex=no
  6486. fi
  6487. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6488. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6489. fi
  6490. # end of AC_TRY_RUN
  6491. fi
  6492. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  6493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
  6494. $as_echo "${libopts_cv_with_libregex}" >&6; }
  6495. if test "X${libopts_cv_with_libregex}" != Xno
  6496. then
  6497. $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
  6498. else
  6499. CPPFLAGS="${libopts_save_CPPFLAGS}"
  6500. LIBS="${libopts_save_LIBS}"
  6501. fi
  6502. # Check to see if pathfind(3) works.
  6503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
  6504. $as_echo_n "checking whether pathfind(3) works... " >&6; }
  6505. if test "${libopts_cv_run_pathfind+set}" = set; then :
  6506. $as_echo_n "(cached) " >&6
  6507. else
  6508. if test "$cross_compiling" = yes; then :
  6509. libopts_cv_run_pathfind=no
  6510. else
  6511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6512. /* end confdefs.h. */
  6513. #include <string.h>
  6514. #include <stdlib.h>
  6515. int main (int argc, char** argv) {
  6516. char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
  6517. return (pz == 0) ? 1 : 0;
  6518. }
  6519. _ACEOF
  6520. if ac_fn_c_try_run "$LINENO"; then :
  6521. libopts_cv_run_pathfind=yes
  6522. else
  6523. libopts_cv_run_pathfind=no
  6524. fi
  6525. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6526. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6527. fi
  6528. # end of TRY_RUN
  6529. fi
  6530. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  6531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
  6532. $as_echo "${libopts_cv_run_pathfind}" >&6; }
  6533. if test "X${libopts_cv_run_pathfind}" != Xno
  6534. then
  6535. $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
  6536. fi
  6537. # Check to see if /dev/zero is readable device.
  6538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
  6539. $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
  6540. if test "${libopts_cv_test_dev_zero+set}" = set; then :
  6541. $as_echo_n "(cached) " >&6
  6542. else
  6543. libopts_cv_test_dev_zero=`exec 2> /dev/null
  6544. dzero=\`ls -lL /dev/zero | egrep ^c......r\`
  6545. test -z "${dzero}" && exit 1
  6546. echo ${dzero}`
  6547. if test $? -ne 0
  6548. then libopts_cv_test_dev_zero=no
  6549. elif test -z "$libopts_cv_test_dev_zero"
  6550. then libopts_cv_test_dev_zero=no
  6551. fi
  6552. fi
  6553. # end of CACHE_VAL of libopts_cv_test_dev_zero
  6554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
  6555. $as_echo "${libopts_cv_test_dev_zero}" >&6; }
  6556. if test "X${libopts_cv_test_dev_zero}" != Xno
  6557. then
  6558. $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
  6559. fi
  6560. # Check to see if we have a functional realpath(3C).
  6561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
  6562. $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
  6563. if test "${libopts_cv_run_realpath+set}" = set; then :
  6564. $as_echo_n "(cached) " >&6
  6565. else
  6566. if test "$cross_compiling" = yes; then :
  6567. libopts_cv_run_realpath=no
  6568. else
  6569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6570. /* end confdefs.h. */
  6571. #include <limits.h>
  6572. #include <stdlib.h>
  6573. int main (int argc, char** argv) {
  6574. #ifndef PATH_MAX
  6575. choke me!!
  6576. #else
  6577. char zPath[PATH_MAX+1];
  6578. #endif
  6579. char *pz = realpath(argv[0], zPath);
  6580. return (pz == zPath) ? 0 : 1;
  6581. }
  6582. _ACEOF
  6583. if ac_fn_c_try_run "$LINENO"; then :
  6584. libopts_cv_run_realpath=yes
  6585. else
  6586. libopts_cv_run_realpath=no
  6587. fi
  6588. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6589. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6590. fi
  6591. # end of TRY_RUN
  6592. fi
  6593. # end of AC_CACHE_VAL for libopts_cv_run_realpath
  6594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
  6595. $as_echo "${libopts_cv_run_realpath}" >&6; }
  6596. if test "X${libopts_cv_run_realpath}" != Xno
  6597. then
  6598. $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
  6599. fi
  6600. # Check to see if strftime() works.
  6601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
  6602. $as_echo_n "checking whether strftime() works... " >&6; }
  6603. if test "${libopts_cv_run_strftime+set}" = set; then :
  6604. $as_echo_n "(cached) " >&6
  6605. else
  6606. if test "$cross_compiling" = yes; then :
  6607. libopts_cv_run_strftime=no
  6608. else
  6609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6610. /* end confdefs.h. */
  6611. #include <time.h>
  6612. #include <string.h>
  6613. char t_buf[ 64 ];
  6614. int main() {
  6615. static char const z[] = "Thursday Aug 28 240";
  6616. struct tm tm;
  6617. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  6618. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  6619. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  6620. tm.tm_mday = 28; /* day of the month [1, 31] */
  6621. tm.tm_mon = 7; /* months since January [0, 11] */
  6622. tm.tm_year = 86; /* years since 1900 */
  6623. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  6624. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  6625. tm.tm_isdst = 1; /* flag for daylight savings time */
  6626. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  6627. return (strcmp( t_buf, z ) != 0); }
  6628. _ACEOF
  6629. if ac_fn_c_try_run "$LINENO"; then :
  6630. libopts_cv_run_strftime=yes
  6631. else
  6632. libopts_cv_run_strftime=no
  6633. fi
  6634. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6635. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6636. fi
  6637. # end of TRY_RUN
  6638. fi
  6639. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  6640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
  6641. $as_echo "${libopts_cv_run_strftime}" >&6; }
  6642. if test "X${libopts_cv_run_strftime}" != Xno
  6643. then
  6644. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  6645. fi
  6646. # Check to see if fopen accepts "b" mode.
  6647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
  6648. $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
  6649. if test "${libopts_cv_run_fopen_binary+set}" = set; then :
  6650. $as_echo_n "(cached) " >&6
  6651. else
  6652. if test "$cross_compiling" = yes; then :
  6653. libopts_cv_run_fopen_binary=no
  6654. else
  6655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6656. /* end confdefs.h. */
  6657. #include <stdio.h>
  6658. int main (int argc, char** argv) {
  6659. FILE* fp = fopen("conftest.$ac_ext", "rb");
  6660. return (fp == NULL) ? 1 : fclose(fp); }
  6661. _ACEOF
  6662. if ac_fn_c_try_run "$LINENO"; then :
  6663. libopts_cv_run_fopen_binary=yes
  6664. else
  6665. libopts_cv_run_fopen_binary=no
  6666. fi
  6667. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6668. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6669. fi
  6670. # end of TRY_RUN
  6671. fi
  6672. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  6673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
  6674. $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
  6675. if test "X${libopts_cv_run_fopen_binary}" != Xno
  6676. then
  6677. $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
  6678. else
  6679. $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
  6680. fi
  6681. # Check to see if fopen accepts "t" mode.
  6682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
  6683. $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
  6684. if test "${libopts_cv_run_fopen_text+set}" = set; then :
  6685. $as_echo_n "(cached) " >&6
  6686. else
  6687. if test "$cross_compiling" = yes; then :
  6688. libopts_cv_run_fopen_text=no
  6689. else
  6690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6691. /* end confdefs.h. */
  6692. #include <stdio.h>
  6693. int main (int argc, char** argv) {
  6694. FILE* fp = fopen("conftest.$ac_ext", "rt");
  6695. return (fp == NULL) ? 1 : fclose(fp); }
  6696. _ACEOF
  6697. if ac_fn_c_try_run "$LINENO"; then :
  6698. libopts_cv_run_fopen_text=yes
  6699. else
  6700. libopts_cv_run_fopen_text=no
  6701. fi
  6702. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6703. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6704. fi
  6705. # end of TRY_RUN
  6706. fi
  6707. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  6708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
  6709. $as_echo "${libopts_cv_run_fopen_text}" >&6; }
  6710. if test "X${libopts_cv_run_fopen_text}" != Xno
  6711. then
  6712. $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
  6713. else
  6714. $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
  6715. fi
  6716. # Check to see if not wanting optional option args.
  6717. # Check whether --enable-optional-args was given.
  6718. if test "${enable_optional_args+set}" = set; then :
  6719. enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
  6720. else
  6721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
  6722. $as_echo_n "checking whether not wanting optional option args... " >&6; }
  6723. if test "${libopts_cv_enable_optional_args+set}" = set; then :
  6724. $as_echo_n "(cached) " >&6
  6725. else
  6726. libopts_cv_enable_optional_args=yes
  6727. fi
  6728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
  6729. $as_echo "$libopts_cv_enable_optional_args" >&6; }
  6730. fi
  6731. # end of AC_ARG_ENABLE
  6732. if test "X${libopts_cv_enable_optional_args}" = Xno
  6733. then
  6734. $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
  6735. fi
  6736. else
  6737. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  6738. # =================
  6739. # AC_HEADER_STDC
  6740. # =================
  6741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6742. $as_echo_n "checking for ANSI C header files... " >&6; }
  6743. if test "${ac_cv_header_stdc+set}" = set; then :
  6744. $as_echo_n "(cached) " >&6
  6745. else
  6746. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6747. /* end confdefs.h. */
  6748. #include <stdlib.h>
  6749. #include <stdarg.h>
  6750. #include <string.h>
  6751. #include <float.h>
  6752. int
  6753. main ()
  6754. {
  6755. ;
  6756. return 0;
  6757. }
  6758. _ACEOF
  6759. if ac_fn_c_try_compile "$LINENO"; then :
  6760. ac_cv_header_stdc=yes
  6761. else
  6762. ac_cv_header_stdc=no
  6763. fi
  6764. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6765. if test $ac_cv_header_stdc = yes; then
  6766. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6768. /* end confdefs.h. */
  6769. #include <string.h>
  6770. _ACEOF
  6771. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6772. $EGREP "memchr" >/dev/null 2>&1; then :
  6773. else
  6774. ac_cv_header_stdc=no
  6775. fi
  6776. rm -f conftest*
  6777. fi
  6778. if test $ac_cv_header_stdc = yes; then
  6779. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6781. /* end confdefs.h. */
  6782. #include <stdlib.h>
  6783. _ACEOF
  6784. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6785. $EGREP "free" >/dev/null 2>&1; then :
  6786. else
  6787. ac_cv_header_stdc=no
  6788. fi
  6789. rm -f conftest*
  6790. fi
  6791. if test $ac_cv_header_stdc = yes; then
  6792. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6793. if test "$cross_compiling" = yes; then :
  6794. :
  6795. else
  6796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6797. /* end confdefs.h. */
  6798. #include <ctype.h>
  6799. #include <stdlib.h>
  6800. #if ((' ' & 0x0FF) == 0x020)
  6801. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6802. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6803. #else
  6804. # define ISLOWER(c) \
  6805. (('a' <= (c) && (c) <= 'i') \
  6806. || ('j' <= (c) && (c) <= 'r') \
  6807. || ('s' <= (c) && (c) <= 'z'))
  6808. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6809. #endif
  6810. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6811. int
  6812. main ()
  6813. {
  6814. int i;
  6815. for (i = 0; i < 256; i++)
  6816. if (XOR (islower (i), ISLOWER (i))
  6817. || toupper (i) != TOUPPER (i))
  6818. return 2;
  6819. return 0;
  6820. }
  6821. _ACEOF
  6822. if ac_fn_c_try_run "$LINENO"; then :
  6823. else
  6824. ac_cv_header_stdc=no
  6825. fi
  6826. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6827. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6828. fi
  6829. fi
  6830. fi
  6831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6832. $as_echo "$ac_cv_header_stdc" >&6; }
  6833. if test $ac_cv_header_stdc = yes; then
  6834. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6835. fi
  6836. # =================
  6837. # AC_HEADER_DIRENT
  6838. # =================
  6839. ac_header_dirent=no
  6840. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  6841. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  6842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  6843. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  6844. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
  6845. $as_echo_n "(cached) " >&6
  6846. else
  6847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6848. /* end confdefs.h. */
  6849. #include <sys/types.h>
  6850. #include <$ac_hdr>
  6851. int
  6852. main ()
  6853. {
  6854. if ((DIR *) 0)
  6855. return 0;
  6856. ;
  6857. return 0;
  6858. }
  6859. _ACEOF
  6860. if ac_fn_c_try_compile "$LINENO"; then :
  6861. eval "$as_ac_Header=yes"
  6862. else
  6863. eval "$as_ac_Header=no"
  6864. fi
  6865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6866. fi
  6867. eval ac_res=\$$as_ac_Header
  6868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  6869. $as_echo "$ac_res" >&6; }
  6870. eval as_val=\$$as_ac_Header
  6871. if test "x$as_val" = x""yes; then :
  6872. cat >>confdefs.h <<_ACEOF
  6873. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  6874. _ACEOF
  6875. ac_header_dirent=$ac_hdr; break
  6876. fi
  6877. done
  6878. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  6879. if test $ac_header_dirent = dirent.h; then
  6880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  6881. $as_echo_n "checking for library containing opendir... " >&6; }
  6882. if test "${ac_cv_search_opendir+set}" = set; then :
  6883. $as_echo_n "(cached) " >&6
  6884. else
  6885. ac_func_search_save_LIBS=$LIBS
  6886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6887. /* end confdefs.h. */
  6888. /* Override any GCC internal prototype to avoid an error.
  6889. Use char because int might match the return type of a GCC
  6890. builtin and then its argument prototype would still apply. */
  6891. #ifdef __cplusplus
  6892. extern "C"
  6893. #endif
  6894. char opendir ();
  6895. int
  6896. main ()
  6897. {
  6898. return opendir ();
  6899. ;
  6900. return 0;
  6901. }
  6902. _ACEOF
  6903. for ac_lib in '' dir; do
  6904. if test -z "$ac_lib"; then
  6905. ac_res="none required"
  6906. else
  6907. ac_res=-l$ac_lib
  6908. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6909. fi
  6910. if ac_fn_c_try_link "$LINENO"; then :
  6911. ac_cv_search_opendir=$ac_res
  6912. fi
  6913. rm -f core conftest.err conftest.$ac_objext \
  6914. conftest$ac_exeext
  6915. if test "${ac_cv_search_opendir+set}" = set; then :
  6916. break
  6917. fi
  6918. done
  6919. if test "${ac_cv_search_opendir+set}" = set; then :
  6920. else
  6921. ac_cv_search_opendir=no
  6922. fi
  6923. rm conftest.$ac_ext
  6924. LIBS=$ac_func_search_save_LIBS
  6925. fi
  6926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  6927. $as_echo "$ac_cv_search_opendir" >&6; }
  6928. ac_res=$ac_cv_search_opendir
  6929. if test "$ac_res" != no; then :
  6930. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6931. fi
  6932. else
  6933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  6934. $as_echo_n "checking for library containing opendir... " >&6; }
  6935. if test "${ac_cv_search_opendir+set}" = set; then :
  6936. $as_echo_n "(cached) " >&6
  6937. else
  6938. ac_func_search_save_LIBS=$LIBS
  6939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6940. /* end confdefs.h. */
  6941. /* Override any GCC internal prototype to avoid an error.
  6942. Use char because int might match the return type of a GCC
  6943. builtin and then its argument prototype would still apply. */
  6944. #ifdef __cplusplus
  6945. extern "C"
  6946. #endif
  6947. char opendir ();
  6948. int
  6949. main ()
  6950. {
  6951. return opendir ();
  6952. ;
  6953. return 0;
  6954. }
  6955. _ACEOF
  6956. for ac_lib in '' x; do
  6957. if test -z "$ac_lib"; then
  6958. ac_res="none required"
  6959. else
  6960. ac_res=-l$ac_lib
  6961. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  6962. fi
  6963. if ac_fn_c_try_link "$LINENO"; then :
  6964. ac_cv_search_opendir=$ac_res
  6965. fi
  6966. rm -f core conftest.err conftest.$ac_objext \
  6967. conftest$ac_exeext
  6968. if test "${ac_cv_search_opendir+set}" = set; then :
  6969. break
  6970. fi
  6971. done
  6972. if test "${ac_cv_search_opendir+set}" = set; then :
  6973. else
  6974. ac_cv_search_opendir=no
  6975. fi
  6976. rm conftest.$ac_ext
  6977. LIBS=$ac_func_search_save_LIBS
  6978. fi
  6979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  6980. $as_echo "$ac_cv_search_opendir" >&6; }
  6981. ac_res=$ac_cv_search_opendir
  6982. if test "$ac_res" != no; then :
  6983. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6984. fi
  6985. fi
  6986. # =================
  6987. # AC_CHECK_HEADERS
  6988. # =================
  6989. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  6990. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  6991. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
  6992. utime.h sysexits.h
  6993. do :
  6994. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6995. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  6996. eval as_val=\$$as_ac_Header
  6997. if test "x$as_val" = x""yes; then :
  6998. cat >>confdefs.h <<_ACEOF
  6999. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7000. _ACEOF
  7001. fi
  7002. done
  7003. # --------------------------------------------
  7004. # Verify certain entries from AC_CHECK_HEADERS
  7005. # --------------------------------------------
  7006. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  7007. string errno stdlib memory setjmp
  7008. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  7009. test "${as_ac_var}" = set || \
  7010. as_fn_error "You must have ${f}.h on your system" "$LINENO" 5
  7011. done
  7012. # ================================================
  7013. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  7014. # if varargs.h is present define HAVE_VARARGS_H.
  7015. # ================================================
  7016. for ac_header in stdarg.h varargs.h
  7017. do :
  7018. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7019. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7020. eval as_val=\$$as_ac_Header
  7021. if test "x$as_val" = x""yes; then :
  7022. cat >>confdefs.h <<_ACEOF
  7023. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7024. _ACEOF
  7025. break
  7026. fi
  7027. done
  7028. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  7029. as_fn_error "You must have stdarg.h or varargs.h on your system" "$LINENO" 5
  7030. fi
  7031. # ================================================
  7032. # Similarly for the string.h and strings.h headers
  7033. # ================================================
  7034. for ac_header in string.h strings.h
  7035. do :
  7036. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7037. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7038. eval as_val=\$$as_ac_Header
  7039. if test "x$as_val" = x""yes; then :
  7040. cat >>confdefs.h <<_ACEOF
  7041. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7042. _ACEOF
  7043. break
  7044. fi
  7045. done
  7046. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  7047. as_fn_error "You must have string.h or strings.h on your system" "$LINENO" 5
  7048. fi
  7049. # =====================
  7050. # ...and limits headers
  7051. # =====================
  7052. for ac_header in limits.h sys/limits.h values.h
  7053. do :
  7054. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7055. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7056. eval as_val=\$$as_ac_Header
  7057. if test "x$as_val" = x""yes; then :
  7058. cat >>confdefs.h <<_ACEOF
  7059. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7060. _ACEOF
  7061. break
  7062. fi
  7063. done
  7064. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  7065. as_fn_error "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
  7066. fi
  7067. # ========================
  7068. # ...and int types headers
  7069. # ========================
  7070. for ac_header in stdint.h inttypes.h
  7071. do :
  7072. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7073. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  7074. eval as_val=\$$as_ac_Header
  7075. if test "x$as_val" = x""yes; then :
  7076. cat >>confdefs.h <<_ACEOF
  7077. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7078. _ACEOF
  7079. break
  7080. fi
  7081. done
  7082. ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
  7083. if test "x$ac_cv_type_int8_t" = x""yes; then :
  7084. cat >>confdefs.h <<_ACEOF
  7085. #define HAVE_INT8_T 1
  7086. _ACEOF
  7087. fi
  7088. ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
  7089. if test "x$ac_cv_type_uint8_t" = x""yes; then :
  7090. cat >>confdefs.h <<_ACEOF
  7091. #define HAVE_UINT8_T 1
  7092. _ACEOF
  7093. fi
  7094. ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
  7095. if test "x$ac_cv_type_int16_t" = x""yes; then :
  7096. cat >>confdefs.h <<_ACEOF
  7097. #define HAVE_INT16_T 1
  7098. _ACEOF
  7099. fi
  7100. ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  7101. if test "x$ac_cv_type_uint16_t" = x""yes; then :
  7102. cat >>confdefs.h <<_ACEOF
  7103. #define HAVE_UINT16_T 1
  7104. _ACEOF
  7105. fi
  7106. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  7107. if test "x$ac_cv_type_int32_t" = x""yes; then :
  7108. cat >>confdefs.h <<_ACEOF
  7109. #define HAVE_INT32_T 1
  7110. _ACEOF
  7111. fi
  7112. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  7113. if test "x$ac_cv_type_uint32_t" = x""yes; then :
  7114. cat >>confdefs.h <<_ACEOF
  7115. #define HAVE_UINT32_T 1
  7116. _ACEOF
  7117. fi
  7118. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  7119. if test "x$ac_cv_type_intptr_t" = x""yes; then :
  7120. cat >>confdefs.h <<_ACEOF
  7121. #define HAVE_INTPTR_T 1
  7122. _ACEOF
  7123. fi
  7124. ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
  7125. if test "x$ac_cv_type_uint_t" = x""yes; then :
  7126. cat >>confdefs.h <<_ACEOF
  7127. #define HAVE_UINT_T 1
  7128. _ACEOF
  7129. fi
  7130. # ====================
  7131. # uintptr type & sizes
  7132. # ====================
  7133. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  7134. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  7135. cat >>confdefs.h <<_ACEOF
  7136. #define HAVE_UINTPTR_T 1
  7137. _ACEOF
  7138. else
  7139. $as_echo "#define uintptr_t unsigned long" >>confdefs.h
  7140. fi
  7141. # The cast to long int works around a bug in the HP C Compiler
  7142. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7143. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7144. # This bug is HP SR number 8606223364.
  7145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
  7146. $as_echo_n "checking size of char*... " >&6; }
  7147. if test "${ac_cv_sizeof_charp+set}" = set; then :
  7148. $as_echo_n "(cached) " >&6
  7149. else
  7150. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
  7151. else
  7152. if test "$ac_cv_type_charp" = yes; then
  7153. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7154. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7155. { as_fn_set_status 77
  7156. as_fn_error "cannot compute sizeof (char*)
  7157. See \`config.log' for more details." "$LINENO" 5; }; }
  7158. else
  7159. ac_cv_sizeof_charp=0
  7160. fi
  7161. fi
  7162. fi
  7163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
  7164. $as_echo "$ac_cv_sizeof_charp" >&6; }
  7165. cat >>confdefs.h <<_ACEOF
  7166. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  7167. _ACEOF
  7168. # The cast to long int works around a bug in the HP C Compiler
  7169. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7170. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7171. # This bug is HP SR number 8606223364.
  7172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  7173. $as_echo_n "checking size of int... " >&6; }
  7174. if test "${ac_cv_sizeof_int+set}" = set; then :
  7175. $as_echo_n "(cached) " >&6
  7176. else
  7177. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  7178. else
  7179. if test "$ac_cv_type_int" = yes; then
  7180. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7181. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7182. { as_fn_set_status 77
  7183. as_fn_error "cannot compute sizeof (int)
  7184. See \`config.log' for more details." "$LINENO" 5; }; }
  7185. else
  7186. ac_cv_sizeof_int=0
  7187. fi
  7188. fi
  7189. fi
  7190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  7191. $as_echo "$ac_cv_sizeof_int" >&6; }
  7192. cat >>confdefs.h <<_ACEOF
  7193. #define SIZEOF_INT $ac_cv_sizeof_int
  7194. _ACEOF
  7195. # The cast to long int works around a bug in the HP C Compiler
  7196. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7197. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7198. # This bug is HP SR number 8606223364.
  7199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  7200. $as_echo_n "checking size of long... " >&6; }
  7201. if test "${ac_cv_sizeof_long+set}" = set; then :
  7202. $as_echo_n "(cached) " >&6
  7203. else
  7204. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  7205. else
  7206. if test "$ac_cv_type_long" = yes; then
  7207. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7208. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7209. { as_fn_set_status 77
  7210. as_fn_error "cannot compute sizeof (long)
  7211. See \`config.log' for more details." "$LINENO" 5; }; }
  7212. else
  7213. ac_cv_sizeof_long=0
  7214. fi
  7215. fi
  7216. fi
  7217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  7218. $as_echo "$ac_cv_sizeof_long" >&6; }
  7219. cat >>confdefs.h <<_ACEOF
  7220. #define SIZEOF_LONG $ac_cv_sizeof_long
  7221. _ACEOF
  7222. # The cast to long int works around a bug in the HP C Compiler
  7223. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7224. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7225. # This bug is HP SR number 8606223364.
  7226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  7227. $as_echo_n "checking size of short... " >&6; }
  7228. if test "${ac_cv_sizeof_short+set}" = set; then :
  7229. $as_echo_n "(cached) " >&6
  7230. else
  7231. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  7232. else
  7233. if test "$ac_cv_type_short" = yes; then
  7234. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7235. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7236. { as_fn_set_status 77
  7237. as_fn_error "cannot compute sizeof (short)
  7238. See \`config.log' for more details." "$LINENO" 5; }; }
  7239. else
  7240. ac_cv_sizeof_short=0
  7241. fi
  7242. fi
  7243. fi
  7244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  7245. $as_echo "$ac_cv_sizeof_short" >&6; }
  7246. cat >>confdefs.h <<_ACEOF
  7247. #define SIZEOF_SHORT $ac_cv_sizeof_short
  7248. _ACEOF
  7249. # ----------------------------------------------------------------------
  7250. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  7251. # ----------------------------------------------------------------------
  7252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
  7253. $as_echo_n "checking for pathfind in -lgen... " >&6; }
  7254. if test "${ac_cv_lib_gen_pathfind+set}" = set; then :
  7255. $as_echo_n "(cached) " >&6
  7256. else
  7257. ac_check_lib_save_LIBS=$LIBS
  7258. LIBS="-lgen $LIBS"
  7259. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7260. /* end confdefs.h. */
  7261. /* Override any GCC internal prototype to avoid an error.
  7262. Use char because int might match the return type of a GCC
  7263. builtin and then its argument prototype would still apply. */
  7264. #ifdef __cplusplus
  7265. extern "C"
  7266. #endif
  7267. char pathfind ();
  7268. int
  7269. main ()
  7270. {
  7271. return pathfind ();
  7272. ;
  7273. return 0;
  7274. }
  7275. _ACEOF
  7276. if ac_fn_c_try_link "$LINENO"; then :
  7277. ac_cv_lib_gen_pathfind=yes
  7278. else
  7279. ac_cv_lib_gen_pathfind=no
  7280. fi
  7281. rm -f core conftest.err conftest.$ac_objext \
  7282. conftest$ac_exeext conftest.$ac_ext
  7283. LIBS=$ac_check_lib_save_LIBS
  7284. fi
  7285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
  7286. $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
  7287. if test "x$ac_cv_lib_gen_pathfind" = x""yes; then :
  7288. cat >>confdefs.h <<_ACEOF
  7289. #define HAVE_LIBGEN 1
  7290. _ACEOF
  7291. LIBS="-lgen $LIBS"
  7292. fi
  7293. for ac_func in vprintf
  7294. do :
  7295. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  7296. if test "x$ac_cv_func_vprintf" = x""yes; then :
  7297. cat >>confdefs.h <<_ACEOF
  7298. #define HAVE_VPRINTF 1
  7299. _ACEOF
  7300. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  7301. if test "x$ac_cv_func__doprnt" = x""yes; then :
  7302. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  7303. fi
  7304. fi
  7305. done
  7306. for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
  7307. do :
  7308. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7309. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  7310. eval as_val=\$$as_ac_var
  7311. if test "x$as_val" = x""yes; then :
  7312. cat >>confdefs.h <<_ACEOF
  7313. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7314. _ACEOF
  7315. fi
  7316. done
  7317. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  7318. fi
  7319. fi
  7320. # end of AC_DEFUN of LIBOPTS_CHECK
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
  7322. $as_echo_n "checking if $CC can handle #warning... " >&6; }
  7323. if test "${ac_cv_cpp_warning+set}" = set; then :
  7324. $as_echo_n "(cached) " >&6
  7325. else
  7326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7327. /* end confdefs.h. */
  7328. int
  7329. main ()
  7330. {
  7331. #warning foo
  7332. ;
  7333. return 0;
  7334. }
  7335. _ACEOF
  7336. if ac_fn_c_try_compile "$LINENO"; then :
  7337. ac_cv_cpp_warning=yes
  7338. else
  7339. ac_cv_cpp_warning=no
  7340. fi
  7341. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7342. fi
  7343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_warning" >&5
  7344. $as_echo "$ac_cv_cpp_warning" >&6; }
  7345. case "$ac_cv_cpp_warning" in
  7346. no)
  7347. $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
  7348. esac
  7349. case "$GCC" in
  7350. yes)
  7351. SAVED_CFLAGS_AC="$CFLAGS"
  7352. CFLAGS="$CFLAGS -Wstrict-overflow"
  7353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Wstrict-overflow" >&5
  7354. $as_echo_n "checking if $CC can handle -Wstrict-overflow... " >&6; }
  7355. if test "${ac_cv_gcc_Wstrict_overflow+set}" = set; then :
  7356. $as_echo_n "(cached) " >&6
  7357. else
  7358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7359. /* end confdefs.h. */
  7360. int
  7361. main ()
  7362. {
  7363. ;
  7364. return 0;
  7365. }
  7366. _ACEOF
  7367. if ac_fn_c_try_compile "$LINENO"; then :
  7368. ac_cv_gcc_Wstrict_overflow=yes
  7369. else
  7370. ac_cv_gcc_Wstrict_overflow=no
  7371. fi
  7372. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7373. fi
  7374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_Wstrict_overflow" >&5
  7375. $as_echo "$ac_cv_gcc_Wstrict_overflow" >&6; }
  7376. CFLAGS="$SAVED_CFLAGS_AC"
  7377. unset SAVED_CFLAGS_AC
  7378. #
  7379. # $ac_cv_gcc_Wstrict_overflow is tested later to add the
  7380. # flag to CFLAGS.
  7381. #
  7382. esac
  7383. case "$GCC" in
  7384. yes)
  7385. SAVED_CFLAGS_AC="$CFLAGS"
  7386. CFLAGS="$CFLAGS -Winit-self"
  7387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle -Winit-self" >&5
  7388. $as_echo_n "checking if $CC can handle -Winit-self... " >&6; }
  7389. if test "${ac_cv_gcc_Winit_self+set}" = set; then :
  7390. $as_echo_n "(cached) " >&6
  7391. else
  7392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7393. /* end confdefs.h. */
  7394. int
  7395. main ()
  7396. {
  7397. ;
  7398. return 0;
  7399. }
  7400. _ACEOF
  7401. if ac_fn_c_try_compile "$LINENO"; then :
  7402. ac_cv_gcc_Winit_self=yes
  7403. else
  7404. ac_cv_gcc_Winit_self=no
  7405. fi
  7406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7407. fi
  7408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_Winit_self" >&5
  7409. $as_echo "$ac_cv_gcc_Winit_self" >&6; }
  7410. CFLAGS="$SAVED_CFLAGS_AC"
  7411. unset SAVED_CFLAGS_AC
  7412. #
  7413. # $ac_cv_gcc_Winit_self is tested later to add the
  7414. # flag to CFLAGS.
  7415. #
  7416. esac
  7417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bin subdirectory" >&5
  7418. $as_echo_n "checking for bin subdirectory... " >&6; }
  7419. # Check whether --with-binsubdir was given.
  7420. if test "${with_binsubdir+set}" = set; then :
  7421. withval=$with_binsubdir; use_binsubdir="$withval"
  7422. else
  7423. use_binsubdir="bin"
  7424. fi
  7425. case "$use_binsubdir" in
  7426. bin)
  7427. ;;
  7428. sbin)
  7429. ;;
  7430. *)
  7431. as_fn_error "<$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" "$LINENO" 5
  7432. ;;
  7433. esac
  7434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_binsubdir" >&5
  7435. $as_echo "$use_binsubdir" >&6; }
  7436. BINSUBDIR=$use_binsubdir
  7437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use arlib" >&5
  7438. $as_echo_n "checking if we want to use arlib... " >&6; }
  7439. # Check whether --with-arlib was given.
  7440. if test "${with_arlib+set}" = set; then :
  7441. withval=$with_arlib; ans=$withval
  7442. else
  7443. ans=no
  7444. fi
  7445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  7446. $as_echo "$ans" >&6; }
  7447. if test -d $srcdir/arlib
  7448. then
  7449. case "$ans" in
  7450. yes)
  7451. ARLIB_DIR=arlib
  7452. subdirs="$subdirs arlib"
  7453. ;;
  7454. esac
  7455. fi
  7456. # Check whether --with-rpath was given.
  7457. if test "${with_rpath+set}" = set; then :
  7458. withval=$with_rpath; ans=$withval
  7459. else
  7460. ans=x
  7461. fi
  7462. case "$ans" in
  7463. no)
  7464. need_dash_r=
  7465. ;;
  7466. yes)
  7467. need_dash_r=1
  7468. ;;
  7469. esac
  7470. # HMS: Why isn't this $build?
  7471. # Well, that depends on if we need this for the build toolchain or
  7472. # for info in the host executable...
  7473. # I still have no idea which way this should go, but nobody has complained.
  7474. case "$host" in
  7475. *-*-netbsd*)
  7476. case "$need_dash_r" in
  7477. no) ;;
  7478. *) need_dash_r=1
  7479. ;;
  7480. esac
  7481. ;;
  7482. *-*-solaris*)
  7483. case "$need_dash_r" in
  7484. no) ;;
  7485. *) need_dash_r=1
  7486. ;;
  7487. esac
  7488. ;;
  7489. esac
  7490. case "$build" in
  7491. $host)
  7492. ;;
  7493. *) case "$host" in
  7494. *-*-vxworks*)
  7495. # Quick and dirty sanity check
  7496. case "$VX_KERNEL" in
  7497. '') as_fn_error "Please follow the directions in html/build/hints/vxworks.html!" "$LINENO" 5
  7498. ;;
  7499. esac
  7500. CFLAGS="$CFLAGS -DSYS_VXWORKS"
  7501. ;;
  7502. esac
  7503. ;;
  7504. esac
  7505. for ac_prog in gawk mawk nawk awk
  7506. do
  7507. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7508. set dummy $ac_prog; ac_word=$2
  7509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7510. $as_echo_n "checking for $ac_word... " >&6; }
  7511. if test "${ac_cv_prog_AWK+set}" = set; then :
  7512. $as_echo_n "(cached) " >&6
  7513. else
  7514. if test -n "$AWK"; then
  7515. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  7516. else
  7517. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7518. for as_dir in $PATH
  7519. do
  7520. IFS=$as_save_IFS
  7521. test -z "$as_dir" && as_dir=.
  7522. for ac_exec_ext in '' $ac_executable_extensions; do
  7523. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7524. ac_cv_prog_AWK="$ac_prog"
  7525. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7526. break 2
  7527. fi
  7528. done
  7529. done
  7530. IFS=$as_save_IFS
  7531. fi
  7532. fi
  7533. AWK=$ac_cv_prog_AWK
  7534. if test -n "$AWK"; then
  7535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  7536. $as_echo "$AWK" >&6; }
  7537. else
  7538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7539. $as_echo "no" >&6; }
  7540. fi
  7541. test -n "$AWK" && break
  7542. done
  7543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  7544. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  7545. set x ${MAKE-make}
  7546. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  7547. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  7548. $as_echo_n "(cached) " >&6
  7549. else
  7550. cat >conftest.make <<\_ACEOF
  7551. SHELL = /bin/sh
  7552. all:
  7553. @echo '@@@%%%=$(MAKE)=@@@%%%'
  7554. _ACEOF
  7555. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  7556. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  7557. *@@@%%%=?*=@@@%%%*)
  7558. eval ac_cv_prog_make_${ac_make}_set=yes;;
  7559. *)
  7560. eval ac_cv_prog_make_${ac_make}_set=no;;
  7561. esac
  7562. rm -f conftest.make
  7563. fi
  7564. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  7565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7566. $as_echo "yes" >&6; }
  7567. SET_MAKE=
  7568. else
  7569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7570. $as_echo "no" >&6; }
  7571. SET_MAKE="MAKE=${MAKE-make}"
  7572. fi
  7573. rm -f conftest*
  7574. case "$GCC" in
  7575. yes)
  7576. CFLAGS="$CFLAGS -Wall"
  7577. # CFLAGS="$CFLAGS -Wcast-align"
  7578. CFLAGS="$CFLAGS -Wcast-qual"
  7579. # CFLAGS="$CFLAGS -Wconversion"
  7580. # CFLAGS="$CFLAGS -Werror"
  7581. # CFLAGS="$CFLAGS -Wextra"
  7582. # CFLAGS="$CFLAGS -Wfloat-equal"
  7583. CFLAGS="$CFLAGS -Wmissing-prototypes"
  7584. CFLAGS="$CFLAGS -Wpointer-arith"
  7585. CFLAGS="$CFLAGS -Wshadow"
  7586. #
  7587. # OpenSSL has a number of callback prototypes
  7588. # inside other function prototypes which trigger
  7589. # warnings with -Wstrict-prototypes, such as:
  7590. #
  7591. # int i2d_RSA_NET(const RSA *a, unsigned char **pp,
  7592. # int (*cb)(), int sgckey);
  7593. # ^^^^^^^^^^^
  7594. #
  7595. CFLAGS="$CFLAGS -Wno-strict-prototypes"
  7596. # CFLAGS="$CFLAGS -Wtraditional"
  7597. # CFLAGS="$CFLAGS -Wwrite-strings"
  7598. case "$ac_cv_gcc_Winit_self" in
  7599. yes)
  7600. CFLAGS="$CFLAGS -Winit-self"
  7601. esac
  7602. case "$ac_cv_gcc_Wstrict_overflow" in
  7603. yes)
  7604. #not yet: CFLAGS="$CFLAGS -Wstrict-overflow"
  7605. esac
  7606. ;;
  7607. esac
  7608. case "$host" in
  7609. *-next-nextstep3)
  7610. CFLAGS="$CFLAGS -posix"
  7611. ;;
  7612. esac
  7613. ac_busted_vpath_in_make=no
  7614. case "$build" in
  7615. *-*-irix6.1*) # 64 bit only
  7616. # busted vpath?
  7617. ;;
  7618. *-*-irix6*) # 6.2 (and later?)
  7619. ac_busted_vpath_in_make=yes
  7620. ;;
  7621. *-*-solaris2.5.1)
  7622. ac_busted_vpath_in_make=yes
  7623. ;;
  7624. *-*-unicosmp*)
  7625. ac_busted_vpath_in_make=yes
  7626. ;;
  7627. esac
  7628. case "$ac_busted_vpath_in_make$srcdir" in
  7629. no*) ;;
  7630. yes.) ;;
  7631. *) case "`${MAKE-make} -v -f /dev/null 2>/dev/null | sed -e 's/GNU Make version \(1-9.]*\).*/\1/' -e q`" in
  7632. '')
  7633. as_fn_error "building outside of the main directory requires GNU make" "$LINENO" 5
  7634. ;;
  7635. *) ;;
  7636. esac
  7637. ;;
  7638. esac
  7639. # Check whether --enable-static was given.
  7640. if test "${enable_static+set}" = set; then :
  7641. enableval=$enable_static; p=${PACKAGE-default}
  7642. case $enableval in
  7643. yes) enable_static=yes ;;
  7644. no) enable_static=no ;;
  7645. *)
  7646. enable_static=no
  7647. # Look at the argument we got. We use all the common list separators.
  7648. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7649. for pkg in $enableval; do
  7650. IFS="$lt_save_ifs"
  7651. if test "X$pkg" = "X$p"; then
  7652. enable_static=yes
  7653. fi
  7654. done
  7655. IFS="$lt_save_ifs"
  7656. ;;
  7657. esac
  7658. else
  7659. enable_static=yes
  7660. fi
  7661. # Check whether --enable-fast-install was given.
  7662. if test "${enable_fast_install+set}" = set; then :
  7663. enableval=$enable_fast_install; p=${PACKAGE-default}
  7664. case $enableval in
  7665. yes) enable_fast_install=yes ;;
  7666. no) enable_fast_install=no ;;
  7667. *)
  7668. enable_fast_install=no
  7669. # Look at the argument we got. We use all the common list separators.
  7670. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7671. for pkg in $enableval; do
  7672. IFS="$lt_save_ifs"
  7673. if test "X$pkg" = "X$p"; then
  7674. enable_fast_install=yes
  7675. fi
  7676. done
  7677. IFS="$lt_save_ifs"
  7678. ;;
  7679. esac
  7680. else
  7681. enable_fast_install=yes
  7682. fi
  7683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  7684. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  7685. if test "${lt_cv_path_SED+set}" = set; then :
  7686. $as_echo_n "(cached) " >&6
  7687. else
  7688. # Loop through the user's path and test for sed and gsed.
  7689. # Then use that list of sed's as ones to test for truncation.
  7690. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7691. for as_dir in $PATH
  7692. do
  7693. IFS=$as_save_IFS
  7694. test -z "$as_dir" && as_dir=.
  7695. for lt_ac_prog in sed gsed; do
  7696. for ac_exec_ext in '' $ac_executable_extensions; do
  7697. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  7698. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  7699. fi
  7700. done
  7701. done
  7702. done
  7703. lt_ac_max=0
  7704. lt_ac_count=0
  7705. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  7706. # along with /bin/sed that truncates output.
  7707. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  7708. test ! -f $lt_ac_sed && continue
  7709. cat /dev/null > conftest.in
  7710. lt_ac_count=0
  7711. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  7712. # Check for GNU sed and select it if it is found.
  7713. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  7714. lt_cv_path_SED=$lt_ac_sed
  7715. break
  7716. fi
  7717. while true; do
  7718. cat conftest.in conftest.in >conftest.tmp
  7719. mv conftest.tmp conftest.in
  7720. cp conftest.in conftest.nl
  7721. echo >>conftest.nl
  7722. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  7723. cmp -s conftest.out conftest.nl || break
  7724. # 10000 chars as input seems more than enough
  7725. test $lt_ac_count -gt 10 && break
  7726. lt_ac_count=`expr $lt_ac_count + 1`
  7727. if test $lt_ac_count -gt $lt_ac_max; then
  7728. lt_ac_max=$lt_ac_count
  7729. lt_cv_path_SED=$lt_ac_sed
  7730. fi
  7731. done
  7732. done
  7733. fi
  7734. SED=$lt_cv_path_SED
  7735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
  7736. $as_echo "$SED" >&6; }
  7737. # Check whether --with-gnu-ld was given.
  7738. if test "${with_gnu_ld+set}" = set; then :
  7739. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  7740. else
  7741. with_gnu_ld=no
  7742. fi
  7743. ac_prog=ld
  7744. if test "$GCC" = yes; then
  7745. # Check if gcc -print-prog-name=ld gives a path.
  7746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  7747. $as_echo_n "checking for ld used by $CC... " >&6; }
  7748. case $host in
  7749. *-*-mingw*)
  7750. # gcc leaves a trailing carriage return which upsets mingw
  7751. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  7752. *)
  7753. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  7754. esac
  7755. case $ac_prog in
  7756. # Accept absolute paths.
  7757. [\\/]* | ?:[\\/]*)
  7758. re_direlt='/[^/][^/]*/\.\./'
  7759. # Canonicalize the pathname of ld
  7760. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  7761. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  7762. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  7763. done
  7764. test -z "$LD" && LD="$ac_prog"
  7765. ;;
  7766. "")
  7767. # If it fails, then pretend we aren't using GCC.
  7768. ac_prog=ld
  7769. ;;
  7770. *)
  7771. # If it is relative, then search for the first ld in PATH.
  7772. with_gnu_ld=unknown
  7773. ;;
  7774. esac
  7775. elif test "$with_gnu_ld" = yes; then
  7776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  7777. $as_echo_n "checking for GNU ld... " >&6; }
  7778. else
  7779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  7780. $as_echo_n "checking for non-GNU ld... " >&6; }
  7781. fi
  7782. if test "${lt_cv_path_LD+set}" = set; then :
  7783. $as_echo_n "(cached) " >&6
  7784. else
  7785. if test -z "$LD"; then
  7786. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7787. for ac_dir in $PATH; do
  7788. IFS="$lt_save_ifs"
  7789. test -z "$ac_dir" && ac_dir=.
  7790. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  7791. lt_cv_path_LD="$ac_dir/$ac_prog"
  7792. # Check to see if the program is GNU ld. I'd rather use --version,
  7793. # but apparently some variants of GNU ld only accept -v.
  7794. # Break only if it was the GNU/non-GNU ld that we prefer.
  7795. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  7796. *GNU* | *'with BFD'*)
  7797. test "$with_gnu_ld" != no && break
  7798. ;;
  7799. *)
  7800. test "$with_gnu_ld" != yes && break
  7801. ;;
  7802. esac
  7803. fi
  7804. done
  7805. IFS="$lt_save_ifs"
  7806. else
  7807. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  7808. fi
  7809. fi
  7810. LD="$lt_cv_path_LD"
  7811. if test -n "$LD"; then
  7812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  7813. $as_echo "$LD" >&6; }
  7814. else
  7815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7816. $as_echo "no" >&6; }
  7817. fi
  7818. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  7819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  7820. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  7821. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  7822. $as_echo_n "(cached) " >&6
  7823. else
  7824. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  7825. case `$LD -v 2>&1 </dev/null` in
  7826. *GNU* | *'with BFD'*)
  7827. lt_cv_prog_gnu_ld=yes
  7828. ;;
  7829. *)
  7830. lt_cv_prog_gnu_ld=no
  7831. ;;
  7832. esac
  7833. fi
  7834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  7835. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  7836. with_gnu_ld=$lt_cv_prog_gnu_ld
  7837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  7838. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  7839. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  7840. $as_echo_n "(cached) " >&6
  7841. else
  7842. lt_cv_ld_reload_flag='-r'
  7843. fi
  7844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  7845. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  7846. reload_flag=$lt_cv_ld_reload_flag
  7847. case $reload_flag in
  7848. "" | " "*) ;;
  7849. *) reload_flag=" $reload_flag" ;;
  7850. esac
  7851. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7852. case $host_os in
  7853. darwin*)
  7854. if test "$GCC" = yes; then
  7855. reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
  7856. else
  7857. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7858. fi
  7859. ;;
  7860. esac
  7861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
  7862. $as_echo_n "checking for BSD-compatible nm... " >&6; }
  7863. if test "${lt_cv_path_NM+set}" = set; then :
  7864. $as_echo_n "(cached) " >&6
  7865. else
  7866. if test -n "$NM"; then
  7867. # Let the user override the test.
  7868. lt_cv_path_NM="$NM"
  7869. else
  7870. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7871. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  7872. IFS="$lt_save_ifs"
  7873. test -z "$ac_dir" && ac_dir=.
  7874. tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  7875. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  7876. # Check to see if the nm accepts a BSD-compat flag.
  7877. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  7878. # nm: unknown option "B" ignored
  7879. # Tru64's nm complains that /dev/null is an invalid object file
  7880. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  7881. */dev/null* | *'Invalid file or object type'*)
  7882. lt_cv_path_NM="$tmp_nm -B"
  7883. break
  7884. ;;
  7885. *)
  7886. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  7887. */dev/null*)
  7888. lt_cv_path_NM="$tmp_nm -p"
  7889. break
  7890. ;;
  7891. *)
  7892. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  7893. continue # so that we can try to find one that supports BSD flags
  7894. ;;
  7895. esac
  7896. esac
  7897. fi
  7898. done
  7899. IFS="$lt_save_ifs"
  7900. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  7901. fi
  7902. fi
  7903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  7904. $as_echo "$lt_cv_path_NM" >&6; }
  7905. NM="$lt_cv_path_NM"
  7906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  7907. $as_echo_n "checking whether ln -s works... " >&6; }
  7908. LN_S=$as_ln_s
  7909. if test "$LN_S" = "ln -s"; then
  7910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7911. $as_echo "yes" >&6; }
  7912. else
  7913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  7914. $as_echo "no, using $LN_S" >&6; }
  7915. fi
  7916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
  7917. $as_echo_n "checking how to recognise dependent libraries... " >&6; }
  7918. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  7919. $as_echo_n "(cached) " >&6
  7920. else
  7921. lt_cv_file_magic_cmd='$MAGIC_CMD'
  7922. lt_cv_file_magic_test_file=
  7923. lt_cv_deplibs_check_method='unknown'
  7924. # Need to set the preceding variable on all platforms that support
  7925. # interlibrary dependencies.
  7926. # 'none' -- dependencies not supported.
  7927. # `unknown' -- same as none, but documents that we really don't know.
  7928. # 'pass_all' -- all dependencies passed with no checks.
  7929. # 'test_compile' -- check by making test program.
  7930. # 'file_magic [[regex]]' -- check by looking for files in library path
  7931. # which responds to the $file_magic_cmd with a given extended regex.
  7932. # If you have `file' or equivalent on your system and you're not sure
  7933. # whether `pass_all' will *always* work, you probably want this one.
  7934. case $host_os in
  7935. aix4* | aix5*)
  7936. lt_cv_deplibs_check_method=pass_all
  7937. ;;
  7938. beos*)
  7939. lt_cv_deplibs_check_method=pass_all
  7940. ;;
  7941. bsdi[45]*)
  7942. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  7943. lt_cv_file_magic_cmd='/usr/bin/file -L'
  7944. lt_cv_file_magic_test_file=/shlib/libc.so
  7945. ;;
  7946. cygwin*)
  7947. # func_win32_libid is a shell function defined in ltmain.sh
  7948. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  7949. lt_cv_file_magic_cmd='func_win32_libid'
  7950. ;;
  7951. mingw* | pw32*)
  7952. # Base MSYS/MinGW do not provide the 'file' command needed by
  7953. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  7954. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  7955. lt_cv_file_magic_cmd='$OBJDUMP -f'
  7956. ;;
  7957. darwin* | rhapsody*)
  7958. lt_cv_deplibs_check_method=pass_all
  7959. ;;
  7960. freebsd* | kfreebsd*-gnu | dragonfly*)
  7961. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  7962. case $host_cpu in
  7963. i*86 )
  7964. # Not sure whether the presence of OpenBSD here was a mistake.
  7965. # Let's accept both of them until this is cleared up.
  7966. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  7967. lt_cv_file_magic_cmd=/usr/bin/file
  7968. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  7969. ;;
  7970. esac
  7971. else
  7972. lt_cv_deplibs_check_method=pass_all
  7973. fi
  7974. ;;
  7975. gnu*)
  7976. lt_cv_deplibs_check_method=pass_all
  7977. ;;
  7978. hpux10.20* | hpux11*)
  7979. lt_cv_file_magic_cmd=/usr/bin/file
  7980. case $host_cpu in
  7981. ia64*)
  7982. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  7983. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  7984. ;;
  7985. hppa*64*)
  7986. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  7987. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  7988. ;;
  7989. *)
  7990. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  7991. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  7992. ;;
  7993. esac
  7994. ;;
  7995. irix5* | irix6* | nonstopux*)
  7996. case $LD in
  7997. *-32|*"-32 ") libmagic=32-bit;;
  7998. *-n32|*"-n32 ") libmagic=N32;;
  7999. *-64|*"-64 ") libmagic=64-bit;;
  8000. *) libmagic=never-match;;
  8001. esac
  8002. lt_cv_deplibs_check_method=pass_all
  8003. ;;
  8004. # This must be Linux ELF.
  8005. linux*)
  8006. lt_cv_deplibs_check_method=pass_all
  8007. ;;
  8008. netbsd*)
  8009. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  8010. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  8011. else
  8012. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  8013. fi
  8014. ;;
  8015. newos6*)
  8016. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  8017. lt_cv_file_magic_cmd=/usr/bin/file
  8018. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  8019. ;;
  8020. nto-qnx*)
  8021. lt_cv_deplibs_check_method=unknown
  8022. ;;
  8023. openbsd*)
  8024. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8025. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  8026. else
  8027. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  8028. fi
  8029. ;;
  8030. osf3* | osf4* | osf5*)
  8031. lt_cv_deplibs_check_method=pass_all
  8032. ;;
  8033. sco3.2v5*)
  8034. lt_cv_deplibs_check_method=pass_all
  8035. ;;
  8036. solaris*)
  8037. lt_cv_deplibs_check_method=pass_all
  8038. ;;
  8039. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8040. case $host_vendor in
  8041. motorola)
  8042. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  8043. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  8044. ;;
  8045. ncr)
  8046. lt_cv_deplibs_check_method=pass_all
  8047. ;;
  8048. sequent)
  8049. lt_cv_file_magic_cmd='/bin/file'
  8050. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  8051. ;;
  8052. sni)
  8053. lt_cv_file_magic_cmd='/bin/file'
  8054. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  8055. lt_cv_file_magic_test_file=/lib/libc.so
  8056. ;;
  8057. siemens)
  8058. lt_cv_deplibs_check_method=pass_all
  8059. ;;
  8060. esac
  8061. ;;
  8062. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  8063. lt_cv_deplibs_check_method=pass_all
  8064. ;;
  8065. esac
  8066. fi
  8067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  8068. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  8069. file_magic_cmd=$lt_cv_file_magic_cmd
  8070. deplibs_check_method=$lt_cv_deplibs_check_method
  8071. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  8072. # If no C compiler was specified, use CC.
  8073. LTCC=${LTCC-"$CC"}
  8074. # Allow CC to be a program name with arguments.
  8075. compiler=$CC
  8076. # Check whether --enable-libtool-lock was given.
  8077. if test "${enable_libtool_lock+set}" = set; then :
  8078. enableval=$enable_libtool_lock;
  8079. fi
  8080. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  8081. # Some flags need to be propagated to the compiler or linker for good
  8082. # libtool support.
  8083. case $host in
  8084. ia64-*-hpux*)
  8085. # Find out which ABI we are using.
  8086. echo 'int i;' > conftest.$ac_ext
  8087. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8088. (eval $ac_compile) 2>&5
  8089. ac_status=$?
  8090. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8091. test $ac_status = 0; }; then
  8092. case `/usr/bin/file conftest.$ac_objext` in
  8093. *ELF-32*)
  8094. HPUX_IA64_MODE="32"
  8095. ;;
  8096. *ELF-64*)
  8097. HPUX_IA64_MODE="64"
  8098. ;;
  8099. esac
  8100. fi
  8101. rm -rf conftest*
  8102. ;;
  8103. *-*-irix6*)
  8104. # Find out which ABI we are using.
  8105. echo '#line 9126 "configure"' > conftest.$ac_ext
  8106. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8107. (eval $ac_compile) 2>&5
  8108. ac_status=$?
  8109. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8110. test $ac_status = 0; }; then
  8111. if test "$lt_cv_prog_gnu_ld" = yes; then
  8112. case `/usr/bin/file conftest.$ac_objext` in
  8113. *32-bit*)
  8114. LD="${LD-ld} -melf32bsmip"
  8115. ;;
  8116. *N32*)
  8117. LD="${LD-ld} -melf32bmipn32"
  8118. ;;
  8119. *64-bit*)
  8120. LD="${LD-ld} -melf64bmip"
  8121. ;;
  8122. esac
  8123. else
  8124. case `/usr/bin/file conftest.$ac_objext` in
  8125. *32-bit*)
  8126. LD="${LD-ld} -32"
  8127. ;;
  8128. *N32*)
  8129. LD="${LD-ld} -n32"
  8130. ;;
  8131. *64-bit*)
  8132. LD="${LD-ld} -64"
  8133. ;;
  8134. esac
  8135. fi
  8136. fi
  8137. rm -rf conftest*
  8138. ;;
  8139. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  8140. # Find out which ABI we are using.
  8141. echo 'int i;' > conftest.$ac_ext
  8142. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8143. (eval $ac_compile) 2>&5
  8144. ac_status=$?
  8145. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8146. test $ac_status = 0; }; then
  8147. case `/usr/bin/file conftest.o` in
  8148. *32-bit*)
  8149. case $host in
  8150. x86_64-*linux*)
  8151. LD="${LD-ld} -m elf_i386"
  8152. ;;
  8153. ppc64-*linux*|powerpc64-*linux*)
  8154. LD="${LD-ld} -m elf32ppclinux"
  8155. ;;
  8156. s390x-*linux*)
  8157. LD="${LD-ld} -m elf_s390"
  8158. ;;
  8159. sparc64-*linux*)
  8160. LD="${LD-ld} -m elf32_sparc"
  8161. ;;
  8162. esac
  8163. ;;
  8164. *64-bit*)
  8165. case $host in
  8166. x86_64-*linux*)
  8167. LD="${LD-ld} -m elf_x86_64"
  8168. ;;
  8169. ppc*-*linux*|powerpc*-*linux*)
  8170. LD="${LD-ld} -m elf64ppc"
  8171. ;;
  8172. s390*-*linux*)
  8173. LD="${LD-ld} -m elf64_s390"
  8174. ;;
  8175. sparc*-*linux*)
  8176. LD="${LD-ld} -m elf64_sparc"
  8177. ;;
  8178. esac
  8179. ;;
  8180. esac
  8181. fi
  8182. rm -rf conftest*
  8183. ;;
  8184. *-*-sco3.2v5*)
  8185. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  8186. SAVE_CFLAGS="$CFLAGS"
  8187. CFLAGS="$CFLAGS -belf"
  8188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  8189. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  8190. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  8191. $as_echo_n "(cached) " >&6
  8192. else
  8193. ac_ext=c
  8194. ac_cpp='$CPP $CPPFLAGS'
  8195. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8196. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8197. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8199. /* end confdefs.h. */
  8200. int
  8201. main ()
  8202. {
  8203. ;
  8204. return 0;
  8205. }
  8206. _ACEOF
  8207. if ac_fn_c_try_link "$LINENO"; then :
  8208. lt_cv_cc_needs_belf=yes
  8209. else
  8210. lt_cv_cc_needs_belf=no
  8211. fi
  8212. rm -f core conftest.err conftest.$ac_objext \
  8213. conftest$ac_exeext conftest.$ac_ext
  8214. ac_ext=c
  8215. ac_cpp='$CPP $CPPFLAGS'
  8216. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8217. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8218. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8219. fi
  8220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  8221. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  8222. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  8223. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  8224. CFLAGS="$SAVE_CFLAGS"
  8225. fi
  8226. ;;
  8227. esac
  8228. need_locks="$enable_libtool_lock"
  8229. for ac_header in dlfcn.h
  8230. do :
  8231. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  8232. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  8233. cat >>confdefs.h <<_ACEOF
  8234. #define HAVE_DLFCN_H 1
  8235. _ACEOF
  8236. fi
  8237. done
  8238. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  8239. # find the maximum length of command line arguments
  8240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  8241. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  8242. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  8243. $as_echo_n "(cached) " >&6
  8244. else
  8245. i=0
  8246. teststring="ABCD"
  8247. case $build_os in
  8248. msdosdjgpp*)
  8249. # On DJGPP, this test can blow up pretty badly due to problems in libc
  8250. # (any single argument exceeding 2000 bytes causes a buffer overrun
  8251. # during glob expansion). Even if it were fixed, the result of this
  8252. # check would be larger than it should be.
  8253. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  8254. ;;
  8255. gnu*)
  8256. # Under GNU Hurd, this test is not required because there is
  8257. # no limit to the length of command line arguments.
  8258. # Libtool will interpret -1 as no limit whatsoever
  8259. lt_cv_sys_max_cmd_len=-1;
  8260. ;;
  8261. cygwin* | mingw*)
  8262. # On Win9x/ME, this test blows up -- it succeeds, but takes
  8263. # about 5 minutes as the teststring grows exponentially.
  8264. # Worse, since 9x/ME are not pre-emptively multitasking,
  8265. # you end up with a "frozen" computer, even though with patience
  8266. # the test eventually succeeds (with a max line length of 256k).
  8267. # Instead, let's just punt: use the minimum linelength reported by
  8268. # all of the supported platforms: 8192 (on NT/2K/XP).
  8269. lt_cv_sys_max_cmd_len=8192;
  8270. ;;
  8271. amigaos*)
  8272. # On AmigaOS with pdksh, this test takes hours, literally.
  8273. # So we just punt and use a minimum line length of 8192.
  8274. lt_cv_sys_max_cmd_len=8192;
  8275. ;;
  8276. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  8277. # This has been around since 386BSD, at least. Likely further.
  8278. if test -x /sbin/sysctl; then
  8279. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  8280. elif test -x /usr/sbin/sysctl; then
  8281. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  8282. else
  8283. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  8284. fi
  8285. # And add a safety zone
  8286. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  8287. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  8288. ;;
  8289. osf*)
  8290. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  8291. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  8292. # nice to cause kernel panics so lets avoid the loop below.
  8293. # First set a reasonable default.
  8294. lt_cv_sys_max_cmd_len=16384
  8295. #
  8296. if test -x /sbin/sysconfig; then
  8297. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  8298. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  8299. esac
  8300. fi
  8301. ;;
  8302. *)
  8303. # If test is not a shell built-in, we'll probably end up computing a
  8304. # maximum length that is only half of the actual maximum length, but
  8305. # we can't tell.
  8306. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  8307. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  8308. = "XX$teststring") >/dev/null 2>&1 &&
  8309. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  8310. lt_cv_sys_max_cmd_len=$new_result &&
  8311. test $i != 17 # 1/2 MB should be enough
  8312. do
  8313. i=`expr $i + 1`
  8314. teststring=$teststring$teststring
  8315. done
  8316. teststring=
  8317. # Add a significant safety factor because C++ compilers can tack on massive
  8318. # amounts of additional arguments before passing them to the linker.
  8319. # It appears as though 1/2 is a usable value.
  8320. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  8321. ;;
  8322. esac
  8323. fi
  8324. if test -n $lt_cv_sys_max_cmd_len ; then
  8325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  8326. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  8327. else
  8328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  8329. $as_echo "none" >&6; }
  8330. fi
  8331. # Check for command to grab the raw symbol name followed by C symbol from nm.
  8332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  8333. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  8334. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  8335. $as_echo_n "(cached) " >&6
  8336. else
  8337. # These are sane defaults that work on at least a few old systems.
  8338. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  8339. # Character class describing NM global symbol codes.
  8340. symcode='[BCDEGRST]'
  8341. # Regexp to match symbols that can be accessed directly from C.
  8342. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  8343. # Transform an extracted symbol line into a proper C declaration
  8344. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  8345. # Transform an extracted symbol line into symbol name and symbol address
  8346. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  8347. # Define system-specific variables.
  8348. case $host_os in
  8349. aix*)
  8350. symcode='[BCDT]'
  8351. ;;
  8352. cygwin* | mingw* | pw32*)
  8353. symcode='[ABCDGISTW]'
  8354. ;;
  8355. hpux*) # Its linker distinguishes data from code symbols
  8356. if test "$host_cpu" = ia64; then
  8357. symcode='[ABCDEGRST]'
  8358. fi
  8359. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8360. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  8361. ;;
  8362. linux*)
  8363. if test "$host_cpu" = ia64; then
  8364. symcode='[ABCDGIRSTW]'
  8365. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8366. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  8367. fi
  8368. ;;
  8369. irix* | nonstopux*)
  8370. symcode='[BCDEGRST]'
  8371. ;;
  8372. osf*)
  8373. symcode='[BCDEGQRST]'
  8374. ;;
  8375. solaris* | sysv5*)
  8376. symcode='[BDRT]'
  8377. ;;
  8378. sysv4)
  8379. symcode='[DFNSTU]'
  8380. ;;
  8381. esac
  8382. # Handle CRLF in mingw tool chain
  8383. opt_cr=
  8384. case $build_os in
  8385. mingw*)
  8386. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  8387. ;;
  8388. esac
  8389. # If we're using GNU nm, then use its standard symbol codes.
  8390. case `$NM -V 2>&1` in
  8391. *GNU* | *'with BFD'*)
  8392. symcode='[ABCDGIRSTW]' ;;
  8393. esac
  8394. # Try without a prefix undercore, then with it.
  8395. for ac_symprfx in "" "_"; do
  8396. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  8397. symxfrm="\\1 $ac_symprfx\\2 \\2"
  8398. # Write the raw and C identifiers.
  8399. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  8400. # Check to see that the pipe works correctly.
  8401. pipe_works=no
  8402. rm -f conftest*
  8403. cat > conftest.$ac_ext <<EOF
  8404. #ifdef __cplusplus
  8405. extern "C" {
  8406. #endif
  8407. char nm_test_var;
  8408. void nm_test_func(){}
  8409. #ifdef __cplusplus
  8410. }
  8411. #endif
  8412. int main(){nm_test_var='a';nm_test_func();return(0);}
  8413. EOF
  8414. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8415. (eval $ac_compile) 2>&5
  8416. ac_status=$?
  8417. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8418. test $ac_status = 0; }; then
  8419. # Now try to grab the symbols.
  8420. nlist=conftest.nm
  8421. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  8422. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  8423. ac_status=$?
  8424. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8425. test $ac_status = 0; } && test -s "$nlist"; then
  8426. # Try sorting and uniquifying the output.
  8427. if sort "$nlist" | uniq > "$nlist"T; then
  8428. mv -f "$nlist"T "$nlist"
  8429. else
  8430. rm -f "$nlist"T
  8431. fi
  8432. # Make sure that we snagged all the symbols we need.
  8433. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  8434. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  8435. cat <<EOF > conftest.$ac_ext
  8436. #ifdef __cplusplus
  8437. extern "C" {
  8438. #endif
  8439. EOF
  8440. # Now generate the symbol file.
  8441. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  8442. cat <<EOF >> conftest.$ac_ext
  8443. #if defined (__STDC__) && __STDC__
  8444. # define lt_ptr_t void *
  8445. #else
  8446. # define lt_ptr_t char *
  8447. # define const
  8448. #endif
  8449. /* The mapping between symbol names and symbols. */
  8450. const struct {
  8451. const char *name;
  8452. lt_ptr_t address;
  8453. }
  8454. lt_preloaded_symbols[] =
  8455. {
  8456. EOF
  8457. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  8458. cat <<\EOF >> conftest.$ac_ext
  8459. {0, (lt_ptr_t) 0}
  8460. };
  8461. #ifdef __cplusplus
  8462. }
  8463. #endif
  8464. EOF
  8465. # Now try linking the two files.
  8466. mv conftest.$ac_objext conftstm.$ac_objext
  8467. lt_save_LIBS="$LIBS"
  8468. lt_save_CFLAGS="$CFLAGS"
  8469. LIBS="conftstm.$ac_objext"
  8470. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  8471. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  8472. (eval $ac_link) 2>&5
  8473. ac_status=$?
  8474. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8475. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  8476. pipe_works=yes
  8477. fi
  8478. LIBS="$lt_save_LIBS"
  8479. CFLAGS="$lt_save_CFLAGS"
  8480. else
  8481. echo "cannot find nm_test_func in $nlist" >&5
  8482. fi
  8483. else
  8484. echo "cannot find nm_test_var in $nlist" >&5
  8485. fi
  8486. else
  8487. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  8488. fi
  8489. else
  8490. echo "$progname: failed program was:" >&5
  8491. cat conftest.$ac_ext >&5
  8492. fi
  8493. rm -f conftest* conftst*
  8494. # Do not use the global_symbol_pipe unless it works.
  8495. if test "$pipe_works" = yes; then
  8496. break
  8497. else
  8498. lt_cv_sys_global_symbol_pipe=
  8499. fi
  8500. done
  8501. fi
  8502. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  8503. lt_cv_sys_global_symbol_to_cdecl=
  8504. fi
  8505. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  8506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  8507. $as_echo "failed" >&6; }
  8508. else
  8509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  8510. $as_echo "ok" >&6; }
  8511. fi
  8512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  8513. $as_echo_n "checking for objdir... " >&6; }
  8514. if test "${lt_cv_objdir+set}" = set; then :
  8515. $as_echo_n "(cached) " >&6
  8516. else
  8517. rm -f .libs 2>/dev/null
  8518. mkdir .libs 2>/dev/null
  8519. if test -d .libs; then
  8520. lt_cv_objdir=.libs
  8521. else
  8522. # MS-DOS does not allow filenames that begin with a dot.
  8523. lt_cv_objdir=_libs
  8524. fi
  8525. rmdir .libs 2>/dev/null
  8526. fi
  8527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  8528. $as_echo "$lt_cv_objdir" >&6; }
  8529. objdir=$lt_cv_objdir
  8530. case $host_os in
  8531. aix3*)
  8532. # AIX sometimes has problems with the GCC collect2 program. For some
  8533. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8534. # vanish in a puff of smoke.
  8535. if test "X${COLLECT_NAMES+set}" != Xset; then
  8536. COLLECT_NAMES=
  8537. export COLLECT_NAMES
  8538. fi
  8539. ;;
  8540. esac
  8541. # Sed substitution that helps us do robust quoting. It backslashifies
  8542. # metacharacters that are still active within double-quoted strings.
  8543. Xsed='sed -e 1s/^X//'
  8544. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  8545. # Same as above, but do not quote variable references.
  8546. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  8547. # Sed substitution to delay expansion of an escaped shell variable in a
  8548. # double_quote_subst'ed string.
  8549. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  8550. # Sed substitution to avoid accidental globbing in evaled expressions
  8551. no_glob_subst='s/\*/\\\*/g'
  8552. # Constants:
  8553. rm="rm -f"
  8554. # Global variables:
  8555. default_ofile=libtool
  8556. can_build_shared=yes
  8557. # All known linkers require a `.a' archive for static linking (except MSVC,
  8558. # which needs '.lib').
  8559. libext=a
  8560. ltmain="$ac_aux_dir/ltmain.sh"
  8561. ofile="$default_ofile"
  8562. with_gnu_ld="$lt_cv_prog_gnu_ld"
  8563. if test -n "$ac_tool_prefix"; then
  8564. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  8565. set dummy ${ac_tool_prefix}ar; ac_word=$2
  8566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8567. $as_echo_n "checking for $ac_word... " >&6; }
  8568. if test "${ac_cv_prog_AR+set}" = set; then :
  8569. $as_echo_n "(cached) " >&6
  8570. else
  8571. if test -n "$AR"; then
  8572. ac_cv_prog_AR="$AR" # Let the user override the test.
  8573. else
  8574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8575. for as_dir in $PATH
  8576. do
  8577. IFS=$as_save_IFS
  8578. test -z "$as_dir" && as_dir=.
  8579. for ac_exec_ext in '' $ac_executable_extensions; do
  8580. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8581. ac_cv_prog_AR="${ac_tool_prefix}ar"
  8582. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8583. break 2
  8584. fi
  8585. done
  8586. done
  8587. IFS=$as_save_IFS
  8588. fi
  8589. fi
  8590. AR=$ac_cv_prog_AR
  8591. if test -n "$AR"; then
  8592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  8593. $as_echo "$AR" >&6; }
  8594. else
  8595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8596. $as_echo "no" >&6; }
  8597. fi
  8598. fi
  8599. if test -z "$ac_cv_prog_AR"; then
  8600. ac_ct_AR=$AR
  8601. # Extract the first word of "ar", so it can be a program name with args.
  8602. set dummy ar; ac_word=$2
  8603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8604. $as_echo_n "checking for $ac_word... " >&6; }
  8605. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  8606. $as_echo_n "(cached) " >&6
  8607. else
  8608. if test -n "$ac_ct_AR"; then
  8609. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  8610. else
  8611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8612. for as_dir in $PATH
  8613. do
  8614. IFS=$as_save_IFS
  8615. test -z "$as_dir" && as_dir=.
  8616. for ac_exec_ext in '' $ac_executable_extensions; do
  8617. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8618. ac_cv_prog_ac_ct_AR="ar"
  8619. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8620. break 2
  8621. fi
  8622. done
  8623. done
  8624. IFS=$as_save_IFS
  8625. fi
  8626. fi
  8627. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  8628. if test -n "$ac_ct_AR"; then
  8629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  8630. $as_echo "$ac_ct_AR" >&6; }
  8631. else
  8632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8633. $as_echo "no" >&6; }
  8634. fi
  8635. if test "x$ac_ct_AR" = x; then
  8636. AR="false"
  8637. else
  8638. case $cross_compiling:$ac_tool_warned in
  8639. yes:)
  8640. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8641. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8642. ac_tool_warned=yes ;;
  8643. esac
  8644. AR=$ac_ct_AR
  8645. fi
  8646. else
  8647. AR="$ac_cv_prog_AR"
  8648. fi
  8649. if test -n "$ac_tool_prefix"; then
  8650. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  8651. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  8652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8653. $as_echo_n "checking for $ac_word... " >&6; }
  8654. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  8655. $as_echo_n "(cached) " >&6
  8656. else
  8657. if test -n "$RANLIB"; then
  8658. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8659. else
  8660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8661. for as_dir in $PATH
  8662. do
  8663. IFS=$as_save_IFS
  8664. test -z "$as_dir" && as_dir=.
  8665. for ac_exec_ext in '' $ac_executable_extensions; do
  8666. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8667. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  8668. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8669. break 2
  8670. fi
  8671. done
  8672. done
  8673. IFS=$as_save_IFS
  8674. fi
  8675. fi
  8676. RANLIB=$ac_cv_prog_RANLIB
  8677. if test -n "$RANLIB"; then
  8678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  8679. $as_echo "$RANLIB" >&6; }
  8680. else
  8681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8682. $as_echo "no" >&6; }
  8683. fi
  8684. fi
  8685. if test -z "$ac_cv_prog_RANLIB"; then
  8686. ac_ct_RANLIB=$RANLIB
  8687. # Extract the first word of "ranlib", so it can be a program name with args.
  8688. set dummy ranlib; ac_word=$2
  8689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8690. $as_echo_n "checking for $ac_word... " >&6; }
  8691. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  8692. $as_echo_n "(cached) " >&6
  8693. else
  8694. if test -n "$ac_ct_RANLIB"; then
  8695. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  8696. else
  8697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8698. for as_dir in $PATH
  8699. do
  8700. IFS=$as_save_IFS
  8701. test -z "$as_dir" && as_dir=.
  8702. for ac_exec_ext in '' $ac_executable_extensions; do
  8703. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8704. ac_cv_prog_ac_ct_RANLIB="ranlib"
  8705. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8706. break 2
  8707. fi
  8708. done
  8709. done
  8710. IFS=$as_save_IFS
  8711. fi
  8712. fi
  8713. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  8714. if test -n "$ac_ct_RANLIB"; then
  8715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  8716. $as_echo "$ac_ct_RANLIB" >&6; }
  8717. else
  8718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8719. $as_echo "no" >&6; }
  8720. fi
  8721. if test "x$ac_ct_RANLIB" = x; then
  8722. RANLIB=":"
  8723. else
  8724. case $cross_compiling:$ac_tool_warned in
  8725. yes:)
  8726. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8727. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8728. ac_tool_warned=yes ;;
  8729. esac
  8730. RANLIB=$ac_ct_RANLIB
  8731. fi
  8732. else
  8733. RANLIB="$ac_cv_prog_RANLIB"
  8734. fi
  8735. if test -n "$ac_tool_prefix"; then
  8736. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  8737. set dummy ${ac_tool_prefix}strip; ac_word=$2
  8738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8739. $as_echo_n "checking for $ac_word... " >&6; }
  8740. if test "${ac_cv_prog_STRIP+set}" = set; then :
  8741. $as_echo_n "(cached) " >&6
  8742. else
  8743. if test -n "$STRIP"; then
  8744. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8745. else
  8746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8747. for as_dir in $PATH
  8748. do
  8749. IFS=$as_save_IFS
  8750. test -z "$as_dir" && as_dir=.
  8751. for ac_exec_ext in '' $ac_executable_extensions; do
  8752. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8753. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  8754. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8755. break 2
  8756. fi
  8757. done
  8758. done
  8759. IFS=$as_save_IFS
  8760. fi
  8761. fi
  8762. STRIP=$ac_cv_prog_STRIP
  8763. if test -n "$STRIP"; then
  8764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  8765. $as_echo "$STRIP" >&6; }
  8766. else
  8767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8768. $as_echo "no" >&6; }
  8769. fi
  8770. fi
  8771. if test -z "$ac_cv_prog_STRIP"; then
  8772. ac_ct_STRIP=$STRIP
  8773. # Extract the first word of "strip", so it can be a program name with args.
  8774. set dummy strip; ac_word=$2
  8775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8776. $as_echo_n "checking for $ac_word... " >&6; }
  8777. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  8778. $as_echo_n "(cached) " >&6
  8779. else
  8780. if test -n "$ac_ct_STRIP"; then
  8781. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  8782. else
  8783. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8784. for as_dir in $PATH
  8785. do
  8786. IFS=$as_save_IFS
  8787. test -z "$as_dir" && as_dir=.
  8788. for ac_exec_ext in '' $ac_executable_extensions; do
  8789. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8790. ac_cv_prog_ac_ct_STRIP="strip"
  8791. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8792. break 2
  8793. fi
  8794. done
  8795. done
  8796. IFS=$as_save_IFS
  8797. fi
  8798. fi
  8799. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  8800. if test -n "$ac_ct_STRIP"; then
  8801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  8802. $as_echo "$ac_ct_STRIP" >&6; }
  8803. else
  8804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8805. $as_echo "no" >&6; }
  8806. fi
  8807. if test "x$ac_ct_STRIP" = x; then
  8808. STRIP=":"
  8809. else
  8810. case $cross_compiling:$ac_tool_warned in
  8811. yes:)
  8812. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8813. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8814. ac_tool_warned=yes ;;
  8815. esac
  8816. STRIP=$ac_ct_STRIP
  8817. fi
  8818. else
  8819. STRIP="$ac_cv_prog_STRIP"
  8820. fi
  8821. old_CC="$CC"
  8822. old_CFLAGS="$CFLAGS"
  8823. # Set sane defaults for various variables
  8824. test -z "$AR" && AR=ar
  8825. test -z "$AR_FLAGS" && AR_FLAGS=cru
  8826. test -z "$AS" && AS=as
  8827. test -z "$CC" && CC=cc
  8828. test -z "$LTCC" && LTCC=$CC
  8829. test -z "$DLLTOOL" && DLLTOOL=dlltool
  8830. test -z "$LD" && LD=ld
  8831. test -z "$LN_S" && LN_S="ln -s"
  8832. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  8833. test -z "$NM" && NM=nm
  8834. test -z "$SED" && SED=sed
  8835. test -z "$OBJDUMP" && OBJDUMP=objdump
  8836. test -z "$RANLIB" && RANLIB=:
  8837. test -z "$STRIP" && STRIP=:
  8838. test -z "$ac_objext" && ac_objext=o
  8839. # Determine commands to create old-style static archives.
  8840. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  8841. old_postinstall_cmds='chmod 644 $oldlib'
  8842. old_postuninstall_cmds=
  8843. if test -n "$RANLIB"; then
  8844. case $host_os in
  8845. openbsd*)
  8846. old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  8847. ;;
  8848. *)
  8849. old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  8850. ;;
  8851. esac
  8852. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  8853. fi
  8854. for cc_temp in $compiler""; do
  8855. case $cc_temp in
  8856. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8857. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8858. \-*) ;;
  8859. *) break;;
  8860. esac
  8861. done
  8862. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  8863. # Only perform the check for file, if the check method requires it
  8864. case $deplibs_check_method in
  8865. file_magic*)
  8866. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  8868. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  8869. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  8870. $as_echo_n "(cached) " >&6
  8871. else
  8872. case $MAGIC_CMD in
  8873. [\\/*] | ?:[\\/]*)
  8874. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8875. ;;
  8876. *)
  8877. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8878. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8879. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8880. for ac_dir in $ac_dummy; do
  8881. IFS="$lt_save_ifs"
  8882. test -z "$ac_dir" && ac_dir=.
  8883. if test -f $ac_dir/${ac_tool_prefix}file; then
  8884. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  8885. if test -n "$file_magic_test_file"; then
  8886. case $deplibs_check_method in
  8887. "file_magic "*)
  8888. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8889. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8890. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8891. $EGREP "$file_magic_regex" > /dev/null; then
  8892. :
  8893. else
  8894. cat <<EOF 1>&2
  8895. *** Warning: the command libtool uses to detect shared libraries,
  8896. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8897. *** The result is that libtool may fail to recognize shared libraries
  8898. *** as such. This will affect the creation of libtool libraries that
  8899. *** depend on shared libraries, but programs linked with such libtool
  8900. *** libraries will work regardless of this problem. Nevertheless, you
  8901. *** may want to report the problem to your system manager and/or to
  8902. *** bug-libtool@gnu.org
  8903. EOF
  8904. fi ;;
  8905. esac
  8906. fi
  8907. break
  8908. fi
  8909. done
  8910. IFS="$lt_save_ifs"
  8911. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8912. ;;
  8913. esac
  8914. fi
  8915. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8916. if test -n "$MAGIC_CMD"; then
  8917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8918. $as_echo "$MAGIC_CMD" >&6; }
  8919. else
  8920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8921. $as_echo "no" >&6; }
  8922. fi
  8923. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8924. if test -n "$ac_tool_prefix"; then
  8925. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  8926. $as_echo_n "checking for file... " >&6; }
  8927. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  8928. $as_echo_n "(cached) " >&6
  8929. else
  8930. case $MAGIC_CMD in
  8931. [\\/*] | ?:[\\/]*)
  8932. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8933. ;;
  8934. *)
  8935. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8936. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8937. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8938. for ac_dir in $ac_dummy; do
  8939. IFS="$lt_save_ifs"
  8940. test -z "$ac_dir" && ac_dir=.
  8941. if test -f $ac_dir/file; then
  8942. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  8943. if test -n "$file_magic_test_file"; then
  8944. case $deplibs_check_method in
  8945. "file_magic "*)
  8946. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8947. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8948. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8949. $EGREP "$file_magic_regex" > /dev/null; then
  8950. :
  8951. else
  8952. cat <<EOF 1>&2
  8953. *** Warning: the command libtool uses to detect shared libraries,
  8954. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8955. *** The result is that libtool may fail to recognize shared libraries
  8956. *** as such. This will affect the creation of libtool libraries that
  8957. *** depend on shared libraries, but programs linked with such libtool
  8958. *** libraries will work regardless of this problem. Nevertheless, you
  8959. *** may want to report the problem to your system manager and/or to
  8960. *** bug-libtool@gnu.org
  8961. EOF
  8962. fi ;;
  8963. esac
  8964. fi
  8965. break
  8966. fi
  8967. done
  8968. IFS="$lt_save_ifs"
  8969. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8970. ;;
  8971. esac
  8972. fi
  8973. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8974. if test -n "$MAGIC_CMD"; then
  8975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8976. $as_echo "$MAGIC_CMD" >&6; }
  8977. else
  8978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8979. $as_echo "no" >&6; }
  8980. fi
  8981. else
  8982. MAGIC_CMD=:
  8983. fi
  8984. fi
  8985. fi
  8986. ;;
  8987. esac
  8988. enable_dlopen=no
  8989. enable_win32_dll=no
  8990. # Check whether --enable-libtool-lock was given.
  8991. if test "${enable_libtool_lock+set}" = set; then :
  8992. enableval=$enable_libtool_lock;
  8993. fi
  8994. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  8995. # Check whether --with-pic was given.
  8996. if test "${with_pic+set}" = set; then :
  8997. withval=$with_pic; pic_mode="$withval"
  8998. else
  8999. pic_mode=default
  9000. fi
  9001. test -z "$pic_mode" && pic_mode=default
  9002. # Use C for the default configuration in the libtool script
  9003. tagname=
  9004. lt_save_CC="$CC"
  9005. ac_ext=c
  9006. ac_cpp='$CPP $CPPFLAGS'
  9007. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9008. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9009. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9010. # Source file extension for C test sources.
  9011. ac_ext=c
  9012. # Object file extension for compiled C test sources.
  9013. objext=o
  9014. objext=$objext
  9015. # Code to be used in simple compile tests
  9016. lt_simple_compile_test_code="int some_variable = 0;\n"
  9017. # Code to be used in simple link tests
  9018. lt_simple_link_test_code='int main(){return(0);}\n'
  9019. # If no C compiler was specified, use CC.
  9020. LTCC=${LTCC-"$CC"}
  9021. # Allow CC to be a program name with arguments.
  9022. compiler=$CC
  9023. # save warnings/boilerplate of simple test code
  9024. ac_outfile=conftest.$ac_objext
  9025. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  9026. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  9027. _lt_compiler_boilerplate=`cat conftest.err`
  9028. $rm conftest*
  9029. ac_outfile=conftest.$ac_objext
  9030. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  9031. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  9032. _lt_linker_boilerplate=`cat conftest.err`
  9033. $rm conftest*
  9034. #
  9035. # Check for any special shared library compilation flags.
  9036. #
  9037. lt_prog_cc_shlib=
  9038. if test "$GCC" = no; then
  9039. case $host_os in
  9040. sco3.2v5*)
  9041. lt_prog_cc_shlib='-belf'
  9042. ;;
  9043. esac
  9044. fi
  9045. if test -n "$lt_prog_cc_shlib"; then
  9046. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  9047. $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  9048. if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
  9049. else
  9050. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  9051. $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  9052. lt_cv_prog_cc_can_build_shared=no
  9053. fi
  9054. fi
  9055. #
  9056. # Check to make sure the static flag actually works.
  9057. #
  9058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  9059. $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
  9060. if test "${lt_prog_compiler_static_works+set}" = set; then :
  9061. $as_echo_n "(cached) " >&6
  9062. else
  9063. lt_prog_compiler_static_works=no
  9064. save_LDFLAGS="$LDFLAGS"
  9065. LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  9066. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  9067. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9068. # The linker can only warn and ignore the option if not recognized
  9069. # So say no if there are warnings
  9070. if test -s conftest.err; then
  9071. # Append any errors to the config.log.
  9072. cat conftest.err 1>&5
  9073. $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
  9074. $SED '/^$/d' conftest.err >conftest.er2
  9075. if diff conftest.exp conftest.er2 >/dev/null; then
  9076. lt_prog_compiler_static_works=yes
  9077. fi
  9078. else
  9079. lt_prog_compiler_static_works=yes
  9080. fi
  9081. fi
  9082. $rm conftest*
  9083. LDFLAGS="$save_LDFLAGS"
  9084. fi
  9085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
  9086. $as_echo "$lt_prog_compiler_static_works" >&6; }
  9087. if test x"$lt_prog_compiler_static_works" = xyes; then
  9088. :
  9089. else
  9090. lt_prog_compiler_static=
  9091. fi
  9092. lt_prog_compiler_no_builtin_flag=
  9093. if test "$GCC" = yes; then
  9094. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  9095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  9096. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  9097. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  9098. $as_echo_n "(cached) " >&6
  9099. else
  9100. lt_cv_prog_compiler_rtti_exceptions=no
  9101. ac_outfile=conftest.$ac_objext
  9102. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  9103. lt_compiler_flag="-fno-rtti -fno-exceptions"
  9104. # Insert the option either (1) after the last *FLAGS variable, or
  9105. # (2) before a word containing "conftest.", or (3) at the end.
  9106. # Note that $ac_compile itself does not contain backslashes and begins
  9107. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9108. # The option is referenced via a variable to avoid confusing sed.
  9109. lt_compile=`echo "$ac_compile" | $SED \
  9110. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9111. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9112. -e 's:$: $lt_compiler_flag:'`
  9113. (eval echo "\"\$as_me:10261: $lt_compile\"" >&5)
  9114. (eval "$lt_compile" 2>conftest.err)
  9115. ac_status=$?
  9116. cat conftest.err >&5
  9117. echo "$as_me:10265: \$? = $ac_status" >&5
  9118. if (exit $ac_status) && test -s "$ac_outfile"; then
  9119. # The compiler can only warn and ignore the option if not recognized
  9120. # So say no if there are warnings other than the usual output.
  9121. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  9122. $SED '/^$/d' conftest.err >conftest.er2
  9123. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  9124. lt_cv_prog_compiler_rtti_exceptions=yes
  9125. fi
  9126. fi
  9127. $rm conftest*
  9128. fi
  9129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  9130. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  9131. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  9132. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  9133. else
  9134. :
  9135. fi
  9136. fi
  9137. lt_prog_compiler_wl=
  9138. lt_prog_compiler_pic=
  9139. lt_prog_compiler_static=
  9140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  9141. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  9142. if test "$GCC" = yes; then
  9143. lt_prog_compiler_wl='-Wl,'
  9144. lt_prog_compiler_static='-static'
  9145. case $host_os in
  9146. aix*)
  9147. # All AIX code is PIC.
  9148. if test "$host_cpu" = ia64; then
  9149. # AIX 5 now supports IA64 processor
  9150. lt_prog_compiler_static='-Bstatic'
  9151. fi
  9152. ;;
  9153. amigaos*)
  9154. # FIXME: we need at least 68020 code to build shared libraries, but
  9155. # adding the `-m68020' flag to GCC prevents building anything better,
  9156. # like `-m68040'.
  9157. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  9158. ;;
  9159. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9160. # PIC is the default for these OSes.
  9161. ;;
  9162. mingw* | pw32* | os2*)
  9163. # This hack is so that the source file can tell whether it is being
  9164. # built for inclusion in a dll (and should export symbols for example).
  9165. lt_prog_compiler_pic='-DDLL_EXPORT'
  9166. ;;
  9167. darwin* | rhapsody*)
  9168. # PIC is the default on this platform
  9169. # Common symbols not allowed in MH_DYLIB files
  9170. lt_prog_compiler_pic='-fno-common'
  9171. ;;
  9172. msdosdjgpp*)
  9173. # Just because we use GCC doesn't mean we suddenly get shared libraries
  9174. # on systems that don't support them.
  9175. lt_prog_compiler_can_build_shared=no
  9176. enable_shared=no
  9177. ;;
  9178. sysv4*MP*)
  9179. if test -d /usr/nec; then
  9180. lt_prog_compiler_pic=-Kconform_pic
  9181. fi
  9182. ;;
  9183. hpux*)
  9184. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9185. # not for PA HP-UX.
  9186. case $host_cpu in
  9187. hppa*64*|ia64*)
  9188. # +Z the default
  9189. ;;
  9190. *)
  9191. lt_prog_compiler_pic='-fPIC'
  9192. ;;
  9193. esac
  9194. ;;
  9195. *)
  9196. lt_prog_compiler_pic='-fPIC'
  9197. ;;
  9198. esac
  9199. else
  9200. # PORTME Check for flag to pass linker flags through the system compiler.
  9201. case $host_os in
  9202. aix*)
  9203. lt_prog_compiler_wl='-Wl,'
  9204. if test "$host_cpu" = ia64; then
  9205. # AIX 5 now supports IA64 processor
  9206. lt_prog_compiler_static='-Bstatic'
  9207. else
  9208. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  9209. fi
  9210. ;;
  9211. darwin*)
  9212. # PIC is the default on this platform
  9213. # Common symbols not allowed in MH_DYLIB files
  9214. case $cc_basename in
  9215. xlc*)
  9216. lt_prog_compiler_pic='-qnocommon'
  9217. lt_prog_compiler_wl='-Wl,'
  9218. ;;
  9219. esac
  9220. ;;
  9221. mingw* | pw32* | os2*)
  9222. # This hack is so that the source file can tell whether it is being
  9223. # built for inclusion in a dll (and should export symbols for example).
  9224. lt_prog_compiler_pic='-DDLL_EXPORT'
  9225. ;;
  9226. hpux9* | hpux10* | hpux11*)
  9227. lt_prog_compiler_wl='-Wl,'
  9228. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9229. # not for PA HP-UX.
  9230. case $host_cpu in
  9231. hppa*64*|ia64*)
  9232. # +Z the default
  9233. ;;
  9234. *)
  9235. lt_prog_compiler_pic='+Z'
  9236. ;;
  9237. esac
  9238. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  9239. lt_prog_compiler_static='${wl}-a ${wl}archive'
  9240. ;;
  9241. irix5* | irix6* | nonstopux*)
  9242. lt_prog_compiler_wl='-Wl,'
  9243. # PIC (with -KPIC) is the default.
  9244. lt_prog_compiler_static='-non_shared'
  9245. ;;
  9246. newsos6)
  9247. lt_prog_compiler_pic='-KPIC'
  9248. lt_prog_compiler_static='-Bstatic'
  9249. ;;
  9250. linux*)
  9251. case $cc_basename in
  9252. icc* | ecc*)
  9253. lt_prog_compiler_wl='-Wl,'
  9254. lt_prog_compiler_pic='-KPIC'
  9255. lt_prog_compiler_static='-static'
  9256. ;;
  9257. pgcc* | pgf77* | pgf90* | pgf95*)
  9258. # Portland Group compilers (*not* the Pentium gcc compiler,
  9259. # which looks to be a dead project)
  9260. lt_prog_compiler_wl='-Wl,'
  9261. lt_prog_compiler_pic='-fpic'
  9262. lt_prog_compiler_static='-Bstatic'
  9263. ;;
  9264. ccc*)
  9265. lt_prog_compiler_wl='-Wl,'
  9266. # All Alpha code is PIC.
  9267. lt_prog_compiler_static='-non_shared'
  9268. ;;
  9269. esac
  9270. ;;
  9271. osf3* | osf4* | osf5*)
  9272. lt_prog_compiler_wl='-Wl,'
  9273. # All OSF/1 code is PIC.
  9274. lt_prog_compiler_static='-non_shared'
  9275. ;;
  9276. sco3.2v5*)
  9277. lt_prog_compiler_pic='-Kpic'
  9278. lt_prog_compiler_static='-dn'
  9279. ;;
  9280. solaris*)
  9281. lt_prog_compiler_pic='-KPIC'
  9282. lt_prog_compiler_static='-Bstatic'
  9283. case $cc_basename in
  9284. f77* | f90* | f95*)
  9285. lt_prog_compiler_wl='-Qoption ld ';;
  9286. *)
  9287. lt_prog_compiler_wl='-Wl,';;
  9288. esac
  9289. ;;
  9290. sunos4*)
  9291. lt_prog_compiler_wl='-Qoption ld '
  9292. lt_prog_compiler_pic='-PIC'
  9293. lt_prog_compiler_static='-Bstatic'
  9294. ;;
  9295. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9296. lt_prog_compiler_wl='-Wl,'
  9297. lt_prog_compiler_pic='-KPIC'
  9298. lt_prog_compiler_static='-Bstatic'
  9299. ;;
  9300. sysv4*MP*)
  9301. if test -d /usr/nec ;then
  9302. lt_prog_compiler_pic='-Kconform_pic'
  9303. lt_prog_compiler_static='-Bstatic'
  9304. fi
  9305. ;;
  9306. unicos*)
  9307. lt_prog_compiler_wl='-Wl,'
  9308. lt_prog_compiler_can_build_shared=no
  9309. ;;
  9310. uts4*)
  9311. lt_prog_compiler_pic='-pic'
  9312. lt_prog_compiler_static='-Bstatic'
  9313. ;;
  9314. *)
  9315. lt_prog_compiler_can_build_shared=no
  9316. ;;
  9317. esac
  9318. fi
  9319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  9320. $as_echo "$lt_prog_compiler_pic" >&6; }
  9321. #
  9322. # Check to make sure the PIC flag actually works.
  9323. #
  9324. if test -n "$lt_prog_compiler_pic"; then
  9325. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  9326. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  9327. if test "${lt_prog_compiler_pic_works+set}" = set; then :
  9328. $as_echo_n "(cached) " >&6
  9329. else
  9330. lt_prog_compiler_pic_works=no
  9331. ac_outfile=conftest.$ac_objext
  9332. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  9333. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  9334. # Insert the option either (1) after the last *FLAGS variable, or
  9335. # (2) before a word containing "conftest.", or (3) at the end.
  9336. # Note that $ac_compile itself does not contain backslashes and begins
  9337. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9338. # The option is referenced via a variable to avoid confusing sed.
  9339. lt_compile=`echo "$ac_compile" | $SED \
  9340. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9341. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9342. -e 's:$: $lt_compiler_flag:'`
  9343. (eval echo "\"\$as_me:10523: $lt_compile\"" >&5)
  9344. (eval "$lt_compile" 2>conftest.err)
  9345. ac_status=$?
  9346. cat conftest.err >&5
  9347. echo "$as_me:10527: \$? = $ac_status" >&5
  9348. if (exit $ac_status) && test -s "$ac_outfile"; then
  9349. # The compiler can only warn and ignore the option if not recognized
  9350. # So say no if there are warnings other than the usual output.
  9351. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  9352. $SED '/^$/d' conftest.err >conftest.er2
  9353. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  9354. lt_prog_compiler_pic_works=yes
  9355. fi
  9356. fi
  9357. $rm conftest*
  9358. fi
  9359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
  9360. $as_echo "$lt_prog_compiler_pic_works" >&6; }
  9361. if test x"$lt_prog_compiler_pic_works" = xyes; then
  9362. case $lt_prog_compiler_pic in
  9363. "" | " "*) ;;
  9364. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  9365. esac
  9366. else
  9367. lt_prog_compiler_pic=
  9368. lt_prog_compiler_can_build_shared=no
  9369. fi
  9370. fi
  9371. case $host_os in
  9372. # For platforms which do not support PIC, -DPIC is meaningless:
  9373. *djgpp*)
  9374. lt_prog_compiler_pic=
  9375. ;;
  9376. *)
  9377. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  9378. ;;
  9379. esac
  9380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  9381. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  9382. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  9383. $as_echo_n "(cached) " >&6
  9384. else
  9385. lt_cv_prog_compiler_c_o=no
  9386. $rm -r conftest 2>/dev/null
  9387. mkdir conftest
  9388. cd conftest
  9389. mkdir out
  9390. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  9391. lt_compiler_flag="-o out/conftest2.$ac_objext"
  9392. # Insert the option either (1) after the last *FLAGS variable, or
  9393. # (2) before a word containing "conftest.", or (3) at the end.
  9394. # Note that $ac_compile itself does not contain backslashes and begins
  9395. # with a dollar sign (not a hyphen), so the echo should work correctly.
  9396. lt_compile=`echo "$ac_compile" | $SED \
  9397. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  9398. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  9399. -e 's:$: $lt_compiler_flag:'`
  9400. (eval echo "\"\$as_me:10585: $lt_compile\"" >&5)
  9401. (eval "$lt_compile" 2>out/conftest.err)
  9402. ac_status=$?
  9403. cat out/conftest.err >&5
  9404. echo "$as_me:10589: \$? = $ac_status" >&5
  9405. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  9406. then
  9407. # The compiler can only warn and ignore the option if not recognized
  9408. # So say no if there are warnings
  9409. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  9410. $SED '/^$/d' out/conftest.err >out/conftest.er2
  9411. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  9412. lt_cv_prog_compiler_c_o=yes
  9413. fi
  9414. fi
  9415. chmod u+w . 2>&5
  9416. $rm conftest*
  9417. # SGI C++ compiler will create directory out/ii_files/ for
  9418. # template instantiation
  9419. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  9420. $rm out/* && rmdir out
  9421. cd ..
  9422. rmdir conftest
  9423. $rm conftest*
  9424. fi
  9425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  9426. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  9427. hard_links="nottested"
  9428. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  9429. # do not overwrite the value of need_locks provided by the user
  9430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  9431. $as_echo_n "checking if we can lock with hard links... " >&6; }
  9432. hard_links=yes
  9433. $rm conftest*
  9434. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9435. touch conftest.a
  9436. ln conftest.a conftest.b 2>&5 || hard_links=no
  9437. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  9438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  9439. $as_echo "$hard_links" >&6; }
  9440. if test "$hard_links" = no; then
  9441. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  9442. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  9443. need_locks=warn
  9444. fi
  9445. else
  9446. need_locks=no
  9447. fi
  9448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  9449. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  9450. runpath_var=
  9451. allow_undefined_flag=
  9452. enable_shared_with_static_runtimes=no
  9453. archive_cmds=
  9454. archive_expsym_cmds=
  9455. old_archive_From_new_cmds=
  9456. old_archive_from_expsyms_cmds=
  9457. export_dynamic_flag_spec=
  9458. whole_archive_flag_spec=
  9459. thread_safe_flag_spec=
  9460. hardcode_libdir_flag_spec=
  9461. hardcode_libdir_flag_spec_ld=
  9462. hardcode_libdir_separator=
  9463. hardcode_direct=no
  9464. hardcode_minus_L=no
  9465. hardcode_shlibpath_var=unsupported
  9466. link_all_deplibs=unknown
  9467. hardcode_automatic=no
  9468. module_cmds=
  9469. module_expsym_cmds=
  9470. always_export_symbols=no
  9471. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9472. # include_expsyms should be a list of space-separated symbols to be *always*
  9473. # included in the symbol list
  9474. include_expsyms=
  9475. # exclude_expsyms can be an extended regexp of symbols to exclude
  9476. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  9477. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  9478. # as well as any symbol that contains `d'.
  9479. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  9480. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9481. # platforms (ab)use it in PIC code, but their linkers get confused if
  9482. # the symbol is explicitly referenced. Since portable code cannot
  9483. # rely on this symbol name, it's probably fine to never include it in
  9484. # preloaded symbol tables.
  9485. extract_expsyms_cmds=
  9486. # Just being paranoid about ensuring that cc_basename is set.
  9487. for cc_temp in $compiler""; do
  9488. case $cc_temp in
  9489. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9490. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9491. \-*) ;;
  9492. *) break;;
  9493. esac
  9494. done
  9495. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9496. case $host_os in
  9497. cygwin* | mingw* | pw32*)
  9498. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9499. # When not using gcc, we currently assume that we are using
  9500. # Microsoft Visual C++.
  9501. if test "$GCC" != yes; then
  9502. with_gnu_ld=no
  9503. fi
  9504. ;;
  9505. openbsd*)
  9506. with_gnu_ld=no
  9507. ;;
  9508. esac
  9509. ld_shlibs=yes
  9510. if test "$with_gnu_ld" = yes; then
  9511. # If archive_cmds runs LD, not CC, wlarc should be empty
  9512. wlarc='${wl}'
  9513. # Set some defaults for GNU ld with shared library support. These
  9514. # are reset later if shared libraries are not supported. Putting them
  9515. # here allows them to be overridden if necessary.
  9516. runpath_var=LD_RUN_PATH
  9517. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  9518. export_dynamic_flag_spec='${wl}--export-dynamic'
  9519. # ancient GNU ld didn't support --whole-archive et. al.
  9520. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  9521. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9522. else
  9523. whole_archive_flag_spec=
  9524. fi
  9525. supports_anon_versioning=no
  9526. case `$LD -v 2>/dev/null` in
  9527. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  9528. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  9529. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  9530. *\ 2.11.*) ;; # other 2.11 versions
  9531. *) supports_anon_versioning=yes ;;
  9532. esac
  9533. # See if GNU ld supports shared libraries.
  9534. case $host_os in
  9535. aix3* | aix4* | aix5*)
  9536. # On AIX/PPC, the GNU linker is very broken
  9537. if test "$host_cpu" != ia64; then
  9538. ld_shlibs=no
  9539. cat <<EOF 1>&2
  9540. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  9541. *** to be unable to reliably create shared libraries on AIX.
  9542. *** Therefore, libtool is disabling shared libraries support. If you
  9543. *** really care for shared libraries, you may want to modify your PATH
  9544. *** so that a non-GNU linker is found, and then restart.
  9545. EOF
  9546. fi
  9547. ;;
  9548. amigaos*)
  9549. archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  9550. hardcode_libdir_flag_spec='-L$libdir'
  9551. hardcode_minus_L=yes
  9552. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  9553. # that the semantics of dynamic libraries on AmigaOS, at least up
  9554. # to version 4, is to share data among multiple programs linked
  9555. # with the same dynamic library. Since this doesn't match the
  9556. # behavior of shared libraries on other platforms, we can't use
  9557. # them.
  9558. ld_shlibs=no
  9559. ;;
  9560. beos*)
  9561. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9562. allow_undefined_flag=unsupported
  9563. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9564. # support --undefined. This deserves some investigation. FIXME
  9565. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9566. else
  9567. ld_shlibs=no
  9568. fi
  9569. ;;
  9570. cygwin* | mingw* | pw32*)
  9571. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  9572. # as there is no search path for DLLs.
  9573. hardcode_libdir_flag_spec='-L$libdir'
  9574. allow_undefined_flag=unsupported
  9575. always_export_symbols=no
  9576. enable_shared_with_static_runtimes=yes
  9577. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  9578. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9579. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  9580. # If the export-symbols file already is a .def file (1st line
  9581. # is EXPORTS), use it as is; otherwise, prepend...
  9582. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9583. cp $export_symbols $output_objdir/$soname.def;
  9584. else
  9585. echo EXPORTS > $output_objdir/$soname.def;
  9586. cat $export_symbols >> $output_objdir/$soname.def;
  9587. fi~
  9588. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  9589. else
  9590. ld_shlibs=no
  9591. fi
  9592. ;;
  9593. linux*)
  9594. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9595. tmp_addflag=
  9596. case $cc_basename,$host_cpu in
  9597. pgcc*) # Portland Group C compiler
  9598. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  9599. tmp_addflag=' $pic_flag'
  9600. ;;
  9601. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  9602. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  9603. tmp_addflag=' $pic_flag -Mnomain' ;;
  9604. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  9605. tmp_addflag=' -i_dynamic' ;;
  9606. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  9607. tmp_addflag=' -i_dynamic -nofor_main' ;;
  9608. ifc* | ifort*) # Intel Fortran compiler
  9609. tmp_addflag=' -nofor_main' ;;
  9610. esac
  9611. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9612. if test $supports_anon_versioning = yes; then
  9613. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  9614. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9615. $echo "local: *; };" >> $output_objdir/$libname.ver~
  9616. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9617. fi
  9618. else
  9619. ld_shlibs=no
  9620. fi
  9621. ;;
  9622. netbsd*)
  9623. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9624. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9625. wlarc=
  9626. else
  9627. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9628. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9629. fi
  9630. ;;
  9631. solaris* | sysv5*)
  9632. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  9633. ld_shlibs=no
  9634. cat <<EOF 1>&2
  9635. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9636. *** create shared libraries on Solaris systems. Therefore, libtool
  9637. *** is disabling shared libraries support. We urge you to upgrade GNU
  9638. *** binutils to release 2.9.1 or newer. Another option is to modify
  9639. *** your PATH or compiler configuration so that the native linker is
  9640. *** used, and then restart.
  9641. EOF
  9642. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9643. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9644. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9645. else
  9646. ld_shlibs=no
  9647. fi
  9648. ;;
  9649. sunos4*)
  9650. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9651. wlarc=
  9652. hardcode_direct=yes
  9653. hardcode_shlibpath_var=no
  9654. ;;
  9655. *)
  9656. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9657. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9658. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9659. else
  9660. ld_shlibs=no
  9661. fi
  9662. ;;
  9663. esac
  9664. if test "$ld_shlibs" = no; then
  9665. runpath_var=
  9666. hardcode_libdir_flag_spec=
  9667. export_dynamic_flag_spec=
  9668. whole_archive_flag_spec=
  9669. fi
  9670. else
  9671. # PORTME fill in a description of your system's linker (not GNU ld)
  9672. case $host_os in
  9673. aix3*)
  9674. allow_undefined_flag=unsupported
  9675. always_export_symbols=yes
  9676. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  9677. # Note: this linker hardcodes the directories in LIBPATH if there
  9678. # are no directories specified by -L.
  9679. hardcode_minus_L=yes
  9680. if test "$GCC" = yes && test -z "$link_static_flag"; then
  9681. # Neither direct hardcoding nor static linking is supported with a
  9682. # broken collect2.
  9683. hardcode_direct=unsupported
  9684. fi
  9685. ;;
  9686. aix4* | aix5*)
  9687. if test "$host_cpu" = ia64; then
  9688. # On IA64, the linker does run time linking by default, so we don't
  9689. # have to do anything special.
  9690. aix_use_runtimelinking=no
  9691. exp_sym_flag='-Bexport'
  9692. no_entry_flag=""
  9693. else
  9694. # If we're using GNU nm, then we don't want the "-C" option.
  9695. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9696. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  9697. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  9698. else
  9699. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  9700. fi
  9701. aix_use_runtimelinking=no
  9702. # Test if we are trying to use run time linking or normal
  9703. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9704. # need to do runtime linking.
  9705. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  9706. for ld_flag in $LDFLAGS; do
  9707. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  9708. aix_use_runtimelinking=yes
  9709. break
  9710. fi
  9711. done
  9712. esac
  9713. exp_sym_flag='-bexport'
  9714. no_entry_flag='-bnoentry'
  9715. fi
  9716. # When large executables or shared objects are built, AIX ld can
  9717. # have problems creating the table of contents. If linking a library
  9718. # or program results in "error TOC overflow" add -mminimal-toc to
  9719. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9720. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9721. archive_cmds=''
  9722. hardcode_direct=yes
  9723. hardcode_libdir_separator=':'
  9724. link_all_deplibs=yes
  9725. if test "$GCC" = yes; then
  9726. case $host_os in aix4.[012]|aix4.[012].*)
  9727. # We only want to do this on AIX 4.2 and lower, the check
  9728. # below for broken collect2 doesn't work under 4.3+
  9729. collect2name=`${CC} -print-prog-name=collect2`
  9730. if test -f "$collect2name" && \
  9731. strings "$collect2name" | grep resolve_lib_name >/dev/null
  9732. then
  9733. # We have reworked collect2
  9734. hardcode_direct=yes
  9735. else
  9736. # We have old collect2
  9737. hardcode_direct=unsupported
  9738. # It fails to find uninstalled libraries when the uninstalled
  9739. # path is not listed in the libpath. Setting hardcode_minus_L
  9740. # to unsupported forces relinking
  9741. hardcode_minus_L=yes
  9742. hardcode_libdir_flag_spec='-L$libdir'
  9743. hardcode_libdir_separator=
  9744. fi
  9745. esac
  9746. shared_flag='-shared'
  9747. if test "$aix_use_runtimelinking" = yes; then
  9748. shared_flag="$shared_flag "'${wl}-G'
  9749. fi
  9750. else
  9751. # not using gcc
  9752. if test "$host_cpu" = ia64; then
  9753. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9754. # chokes on -Wl,-G. The following line is correct:
  9755. shared_flag='-G'
  9756. else
  9757. if test "$aix_use_runtimelinking" = yes; then
  9758. shared_flag='${wl}-G'
  9759. else
  9760. shared_flag='${wl}-bM:SRE'
  9761. fi
  9762. fi
  9763. fi
  9764. # It seems that -bexpall does not export symbols beginning with
  9765. # underscore (_), so it is better to generate a list of symbols to export.
  9766. always_export_symbols=yes
  9767. if test "$aix_use_runtimelinking" = yes; then
  9768. # Warning - without using the other runtime loading flags (-brtl),
  9769. # -berok will link without error, but may produce a broken library.
  9770. allow_undefined_flag='-berok'
  9771. # Determine the default libpath from the value encoded in an empty executable.
  9772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9773. /* end confdefs.h. */
  9774. int
  9775. main ()
  9776. {
  9777. ;
  9778. return 0;
  9779. }
  9780. _ACEOF
  9781. if ac_fn_c_try_link "$LINENO"; then :
  9782. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9783. }'`
  9784. # Check for a 64-bit object if we didn't find anything.
  9785. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9786. }'`; fi
  9787. fi
  9788. rm -f core conftest.err conftest.$ac_objext \
  9789. conftest$ac_exeext conftest.$ac_ext
  9790. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9791. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9792. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9793. else
  9794. if test "$host_cpu" = ia64; then
  9795. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9796. allow_undefined_flag="-z nodefs"
  9797. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  9798. else
  9799. # Determine the default libpath from the value encoded in an empty executable.
  9800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9801. /* end confdefs.h. */
  9802. int
  9803. main ()
  9804. {
  9805. ;
  9806. return 0;
  9807. }
  9808. _ACEOF
  9809. if ac_fn_c_try_link "$LINENO"; then :
  9810. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9811. }'`
  9812. # Check for a 64-bit object if we didn't find anything.
  9813. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  9814. }'`; fi
  9815. fi
  9816. rm -f core conftest.err conftest.$ac_objext \
  9817. conftest$ac_exeext conftest.$ac_ext
  9818. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  9819. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9820. # Warning - without using the other run time loading flags,
  9821. # -berok will link without error, but may produce a broken library.
  9822. no_undefined_flag=' ${wl}-bernotok'
  9823. allow_undefined_flag=' ${wl}-berok'
  9824. # -bexpall does not export symbols beginning with underscore (_)
  9825. always_export_symbols=yes
  9826. # Exported symbols can be pulled into shared objects from archives
  9827. whole_archive_flag_spec=' '
  9828. archive_cmds_need_lc=yes
  9829. # This is similar to how AIX traditionally builds its shared libraries.
  9830. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  9831. fi
  9832. fi
  9833. ;;
  9834. amigaos*)
  9835. archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  9836. hardcode_libdir_flag_spec='-L$libdir'
  9837. hardcode_minus_L=yes
  9838. # see comment about different semantics on the GNU ld section
  9839. ld_shlibs=no
  9840. ;;
  9841. bsdi[45]*)
  9842. export_dynamic_flag_spec=-rdynamic
  9843. ;;
  9844. cygwin* | mingw* | pw32*)
  9845. # When not using gcc, we currently assume that we are using
  9846. # Microsoft Visual C++.
  9847. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9848. # no search path for DLLs.
  9849. hardcode_libdir_flag_spec=' '
  9850. allow_undefined_flag=unsupported
  9851. # Tell ltmain to make .lib files, not .a files.
  9852. libext=lib
  9853. # Tell ltmain to make .dll files, not .so files.
  9854. shrext_cmds=".dll"
  9855. # FIXME: Setting linknames here is a bad hack.
  9856. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  9857. # The linker will automatically build a .lib file if we build a DLL.
  9858. old_archive_From_new_cmds='true'
  9859. # FIXME: Should let the user specify the lib program.
  9860. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  9861. fix_srcfile_path='`cygpath -w "$srcfile"`'
  9862. enable_shared_with_static_runtimes=yes
  9863. ;;
  9864. darwin* | rhapsody*)
  9865. case $host_os in
  9866. rhapsody* | darwin1.[012])
  9867. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  9868. ;;
  9869. *) # Darwin 1.3 on
  9870. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9871. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9872. else
  9873. case ${MACOSX_DEPLOYMENT_TARGET} in
  9874. 10.[012])
  9875. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9876. ;;
  9877. 10.*)
  9878. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  9879. ;;
  9880. esac
  9881. fi
  9882. ;;
  9883. esac
  9884. archive_cmds_need_lc=no
  9885. hardcode_direct=no
  9886. hardcode_automatic=yes
  9887. hardcode_shlibpath_var=unsupported
  9888. whole_archive_flag_spec=''
  9889. link_all_deplibs=yes
  9890. if test "$GCC" = yes ; then
  9891. output_verbose_link_cmd='echo'
  9892. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9893. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9894. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9895. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9896. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9897. else
  9898. case $cc_basename in
  9899. xlc*)
  9900. output_verbose_link_cmd='echo'
  9901. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  9902. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9903. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9904. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9905. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9906. ;;
  9907. *)
  9908. ld_shlibs=no
  9909. ;;
  9910. esac
  9911. fi
  9912. ;;
  9913. dgux*)
  9914. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9915. hardcode_libdir_flag_spec='-L$libdir'
  9916. hardcode_shlibpath_var=no
  9917. ;;
  9918. freebsd1*)
  9919. ld_shlibs=no
  9920. ;;
  9921. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9922. # support. Future versions do this automatically, but an explicit c++rt0.o
  9923. # does not break anything, and helps significantly (at the cost of a little
  9924. # extra space).
  9925. freebsd2.2*)
  9926. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9927. hardcode_libdir_flag_spec='-R$libdir'
  9928. hardcode_direct=yes
  9929. hardcode_shlibpath_var=no
  9930. ;;
  9931. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9932. freebsd2*)
  9933. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9934. hardcode_direct=yes
  9935. hardcode_minus_L=yes
  9936. hardcode_shlibpath_var=no
  9937. ;;
  9938. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9939. freebsd* | kfreebsd*-gnu | dragonfly*)
  9940. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  9941. hardcode_libdir_flag_spec='-R$libdir'
  9942. hardcode_direct=yes
  9943. hardcode_shlibpath_var=no
  9944. ;;
  9945. hpux9*)
  9946. if test "$GCC" = yes; then
  9947. archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9948. else
  9949. archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9950. fi
  9951. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9952. hardcode_libdir_separator=:
  9953. hardcode_direct=yes
  9954. # hardcode_minus_L: Not really in the search PATH,
  9955. # but as the default location of the library.
  9956. hardcode_minus_L=yes
  9957. export_dynamic_flag_spec='${wl}-E'
  9958. ;;
  9959. hpux10* | hpux11*)
  9960. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  9961. case $host_cpu in
  9962. hppa*64*|ia64*)
  9963. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9964. ;;
  9965. *)
  9966. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9967. ;;
  9968. esac
  9969. else
  9970. case $host_cpu in
  9971. hppa*64*|ia64*)
  9972. archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  9973. ;;
  9974. *)
  9975. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9976. ;;
  9977. esac
  9978. fi
  9979. if test "$with_gnu_ld" = no; then
  9980. case $host_cpu in
  9981. hppa*64*)
  9982. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9983. hardcode_libdir_flag_spec_ld='+b $libdir'
  9984. hardcode_libdir_separator=:
  9985. hardcode_direct=no
  9986. hardcode_shlibpath_var=no
  9987. ;;
  9988. ia64*)
  9989. hardcode_libdir_flag_spec='-L$libdir'
  9990. hardcode_direct=no
  9991. hardcode_shlibpath_var=no
  9992. # hardcode_minus_L: Not really in the search PATH,
  9993. # but as the default location of the library.
  9994. hardcode_minus_L=yes
  9995. ;;
  9996. *)
  9997. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9998. hardcode_libdir_separator=:
  9999. hardcode_direct=yes
  10000. export_dynamic_flag_spec='${wl}-E'
  10001. # hardcode_minus_L: Not really in the search PATH,
  10002. # but as the default location of the library.
  10003. hardcode_minus_L=yes
  10004. ;;
  10005. esac
  10006. fi
  10007. ;;
  10008. irix5* | irix6* | nonstopux*)
  10009. if test "$GCC" = yes; then
  10010. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10011. else
  10012. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10013. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  10014. fi
  10015. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10016. hardcode_libdir_separator=:
  10017. link_all_deplibs=yes
  10018. ;;
  10019. netbsd*)
  10020. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10021. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10022. else
  10023. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10024. fi
  10025. hardcode_libdir_flag_spec='-R$libdir'
  10026. hardcode_direct=yes
  10027. hardcode_shlibpath_var=no
  10028. ;;
  10029. newsos6)
  10030. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10031. hardcode_direct=yes
  10032. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10033. hardcode_libdir_separator=:
  10034. hardcode_shlibpath_var=no
  10035. ;;
  10036. openbsd*)
  10037. hardcode_direct=yes
  10038. hardcode_shlibpath_var=no
  10039. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10040. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10041. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  10042. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  10043. export_dynamic_flag_spec='${wl}-E'
  10044. else
  10045. case $host_os in
  10046. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  10047. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10048. hardcode_libdir_flag_spec='-R$libdir'
  10049. ;;
  10050. *)
  10051. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10052. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  10053. ;;
  10054. esac
  10055. fi
  10056. ;;
  10057. os2*)
  10058. hardcode_libdir_flag_spec='-L$libdir'
  10059. hardcode_minus_L=yes
  10060. allow_undefined_flag=unsupported
  10061. archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  10062. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  10063. ;;
  10064. osf3*)
  10065. if test "$GCC" = yes; then
  10066. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  10067. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10068. else
  10069. allow_undefined_flag=' -expect_unresolved \*'
  10070. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10071. fi
  10072. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10073. hardcode_libdir_separator=:
  10074. ;;
  10075. osf4* | osf5*) # as osf3* with the addition of -msym flag
  10076. if test "$GCC" = yes; then
  10077. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  10078. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10079. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  10080. else
  10081. allow_undefined_flag=' -expect_unresolved \*'
  10082. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10083. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  10084. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  10085. # Both c and cxx compiler support -rpath directly
  10086. hardcode_libdir_flag_spec='-rpath $libdir'
  10087. fi
  10088. hardcode_libdir_separator=:
  10089. ;;
  10090. sco3.2v5*)
  10091. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10092. hardcode_shlibpath_var=no
  10093. export_dynamic_flag_spec='${wl}-Bexport'
  10094. runpath_var=LD_RUN_PATH
  10095. hardcode_runpath_var=yes
  10096. ;;
  10097. solaris*)
  10098. no_undefined_flag=' -z text'
  10099. if test "$GCC" = yes; then
  10100. wlarc='${wl}'
  10101. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10102. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10103. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  10104. else
  10105. wlarc=''
  10106. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10107. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10108. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  10109. fi
  10110. hardcode_libdir_flag_spec='-R$libdir'
  10111. hardcode_shlibpath_var=no
  10112. case $host_os in
  10113. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10114. *)
  10115. # The compiler driver will combine linker options so we
  10116. # cannot just pass the convience library names through
  10117. # without $wl, iff we do not link with $LD.
  10118. # Luckily, gcc supports the same syntax we need for Sun Studio.
  10119. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10120. case $wlarc in
  10121. '')
  10122. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  10123. *)
  10124. whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  10125. esac ;;
  10126. esac
  10127. link_all_deplibs=yes
  10128. ;;
  10129. sunos4*)
  10130. if test "x$host_vendor" = xsequent; then
  10131. # Use $CC to link under sequent, because it throws in some extra .o
  10132. # files that make .init and .fini sections work.
  10133. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10134. else
  10135. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10136. fi
  10137. hardcode_libdir_flag_spec='-L$libdir'
  10138. hardcode_direct=yes
  10139. hardcode_minus_L=yes
  10140. hardcode_shlibpath_var=no
  10141. ;;
  10142. sysv4)
  10143. case $host_vendor in
  10144. sni)
  10145. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10146. hardcode_direct=yes # is this really true???
  10147. ;;
  10148. siemens)
  10149. ## LD is ld it makes a PLAMLIB
  10150. ## CC just makes a GrossModule.
  10151. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10152. reload_cmds='$CC -r -o $output$reload_objs'
  10153. hardcode_direct=no
  10154. ;;
  10155. motorola)
  10156. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10157. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  10158. ;;
  10159. esac
  10160. runpath_var='LD_RUN_PATH'
  10161. hardcode_shlibpath_var=no
  10162. ;;
  10163. sysv4.3*)
  10164. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10165. hardcode_shlibpath_var=no
  10166. export_dynamic_flag_spec='-Bexport'
  10167. ;;
  10168. sysv4*MP*)
  10169. if test -d /usr/nec; then
  10170. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10171. hardcode_shlibpath_var=no
  10172. runpath_var=LD_RUN_PATH
  10173. hardcode_runpath_var=yes
  10174. ld_shlibs=yes
  10175. fi
  10176. ;;
  10177. sysv4.2uw2*)
  10178. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10179. hardcode_direct=yes
  10180. hardcode_minus_L=no
  10181. hardcode_shlibpath_var=no
  10182. hardcode_runpath_var=yes
  10183. runpath_var=LD_RUN_PATH
  10184. ;;
  10185. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  10186. no_undefined_flag='${wl}-z ${wl}text'
  10187. if test "$GCC" = yes; then
  10188. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10189. else
  10190. archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10191. fi
  10192. runpath_var='LD_RUN_PATH'
  10193. hardcode_shlibpath_var=no
  10194. ;;
  10195. sysv5*)
  10196. no_undefined_flag=' -z text'
  10197. # $CC -shared without GNU ld will not create a library from C++
  10198. # object files and a static libstdc++, better avoid it by now
  10199. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10200. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10201. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  10202. hardcode_libdir_flag_spec=
  10203. hardcode_shlibpath_var=no
  10204. runpath_var='LD_RUN_PATH'
  10205. ;;
  10206. uts4*)
  10207. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10208. hardcode_libdir_flag_spec='-L$libdir'
  10209. hardcode_shlibpath_var=no
  10210. ;;
  10211. *)
  10212. ld_shlibs=no
  10213. ;;
  10214. esac
  10215. fi
  10216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  10217. $as_echo "$ld_shlibs" >&6; }
  10218. test "$ld_shlibs" = no && can_build_shared=no
  10219. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10220. if test "$GCC" = yes; then
  10221. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10222. fi
  10223. #
  10224. # Do we need to explicitly link libc?
  10225. #
  10226. case "x$archive_cmds_need_lc" in
  10227. x|xyes)
  10228. # Assume -lc should be added
  10229. archive_cmds_need_lc=yes
  10230. if test "$enable_shared" = yes && test "$GCC" = yes; then
  10231. case $archive_cmds in
  10232. *'~'*)
  10233. # FIXME: we may have to deal with multi-command sequences.
  10234. ;;
  10235. '$CC '*)
  10236. # Test whether the compiler implicitly links with -lc since on some
  10237. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10238. # to ld, don't add -lc before -lgcc.
  10239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  10240. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  10241. $rm conftest*
  10242. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10243. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10244. (eval $ac_compile) 2>&5
  10245. ac_status=$?
  10246. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10247. test $ac_status = 0; } 2>conftest.err; then
  10248. soname=conftest
  10249. lib=conftest
  10250. libobjs=conftest.$ac_objext
  10251. deplibs=
  10252. wl=$lt_prog_compiler_wl
  10253. compiler_flags=-v
  10254. linker_flags=-v
  10255. verstring=
  10256. output_objdir=.
  10257. libname=conftest
  10258. lt_save_allow_undefined_flag=$allow_undefined_flag
  10259. allow_undefined_flag=
  10260. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  10261. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10262. ac_status=$?
  10263. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10264. test $ac_status = 0; }
  10265. then
  10266. archive_cmds_need_lc=no
  10267. else
  10268. archive_cmds_need_lc=yes
  10269. fi
  10270. allow_undefined_flag=$lt_save_allow_undefined_flag
  10271. else
  10272. cat conftest.err 1>&5
  10273. fi
  10274. $rm conftest*
  10275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  10276. $as_echo "$archive_cmds_need_lc" >&6; }
  10277. ;;
  10278. esac
  10279. fi
  10280. ;;
  10281. esac
  10282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  10283. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  10284. library_names_spec=
  10285. libname_spec='lib$name'
  10286. soname_spec=
  10287. shrext_cmds=".so"
  10288. postinstall_cmds=
  10289. postuninstall_cmds=
  10290. finish_cmds=
  10291. finish_eval=
  10292. shlibpath_var=
  10293. shlibpath_overrides_runpath=unknown
  10294. version_type=none
  10295. dynamic_linker="$host_os ld.so"
  10296. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  10297. if test "$GCC" = yes; then
  10298. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10299. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  10300. # if the path contains ";" then we assume it to be the separator
  10301. # otherwise default to the standard path separator (i.e. ":") - it is
  10302. # assumed that no part of a normal pathname contains ";" but that should
  10303. # okay in the real world where ";" in dirpaths is itself problematic.
  10304. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10305. else
  10306. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10307. fi
  10308. else
  10309. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  10310. fi
  10311. need_lib_prefix=unknown
  10312. hardcode_into_libs=no
  10313. # when you set need_version to no, make sure it does not cause -set_version
  10314. # flags to be left without arguments
  10315. need_version=unknown
  10316. case $host_os in
  10317. aix3*)
  10318. version_type=linux
  10319. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  10320. shlibpath_var=LIBPATH
  10321. # AIX 3 has no versioning support, so we append a major version to the name.
  10322. soname_spec='${libname}${release}${shared_ext}$major'
  10323. ;;
  10324. aix4* | aix5*)
  10325. version_type=linux
  10326. need_lib_prefix=no
  10327. need_version=no
  10328. hardcode_into_libs=yes
  10329. if test "$host_cpu" = ia64; then
  10330. # AIX 5 supports IA64
  10331. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  10332. shlibpath_var=LD_LIBRARY_PATH
  10333. else
  10334. # With GCC up to 2.95.x, collect2 would create an import file
  10335. # for dependence libraries. The import file would start with
  10336. # the line `#! .'. This would cause the generated library to
  10337. # depend on `.', always an invalid library. This was fixed in
  10338. # development snapshots of GCC prior to 3.0.
  10339. case $host_os in
  10340. aix4 | aix4.[01] | aix4.[01].*)
  10341. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  10342. echo ' yes '
  10343. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  10344. :
  10345. else
  10346. can_build_shared=no
  10347. fi
  10348. ;;
  10349. esac
  10350. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  10351. # soname into executable. Probably we can add versioning support to
  10352. # collect2, so additional links can be useful in future.
  10353. if test "$aix_use_runtimelinking" = yes; then
  10354. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  10355. # instead of lib<name>.a to let people know that these are not
  10356. # typical AIX shared libraries.
  10357. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10358. else
  10359. # We preserve .a as extension for shared libraries through AIX4.2
  10360. # and later when we are not doing run time linking.
  10361. library_names_spec='${libname}${release}.a $libname.a'
  10362. soname_spec='${libname}${release}${shared_ext}$major'
  10363. fi
  10364. shlibpath_var=LIBPATH
  10365. fi
  10366. ;;
  10367. amigaos*)
  10368. library_names_spec='$libname.ixlibrary $libname.a'
  10369. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  10370. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  10371. ;;
  10372. beos*)
  10373. library_names_spec='${libname}${shared_ext}'
  10374. dynamic_linker="$host_os ld.so"
  10375. shlibpath_var=LIBRARY_PATH
  10376. ;;
  10377. bsdi[45]*)
  10378. version_type=linux
  10379. need_version=no
  10380. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10381. soname_spec='${libname}${release}${shared_ext}$major'
  10382. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  10383. shlibpath_var=LD_LIBRARY_PATH
  10384. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  10385. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  10386. # the default ld.so.conf also contains /usr/contrib/lib and
  10387. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  10388. # libtool to hard-code these into programs
  10389. ;;
  10390. cygwin* | mingw* | pw32*)
  10391. version_type=windows
  10392. shrext_cmds=".dll"
  10393. need_version=no
  10394. need_lib_prefix=no
  10395. case $GCC,$host_os in
  10396. yes,cygwin* | yes,mingw* | yes,pw32*)
  10397. library_names_spec='$libname.dll.a'
  10398. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10399. postinstall_cmds='base_file=`basename \${file}`~
  10400. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  10401. dldir=$destdir/`dirname \$dlpath`~
  10402. test -d \$dldir || mkdir -p \$dldir~
  10403. $install_prog $dir/$dlname \$dldir/$dlname~
  10404. chmod a+x \$dldir/$dlname'
  10405. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10406. dlpath=$dir/\$dldll~
  10407. $rm \$dlpath'
  10408. shlibpath_overrides_runpath=yes
  10409. case $host_os in
  10410. cygwin*)
  10411. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  10412. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10413. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  10414. ;;
  10415. mingw*)
  10416. # MinGW DLLs use traditional 'lib' prefix
  10417. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10418. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  10419. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  10420. # It is most probably a Windows format PATH printed by
  10421. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  10422. # path with ; separators, and with drive letters. We can handle the
  10423. # drive letters (cygwin fileutils understands them), so leave them,
  10424. # especially as we might pass files found there to a mingw objdump,
  10425. # which wouldn't understand a cygwinified path. Ahh.
  10426. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10427. else
  10428. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10429. fi
  10430. ;;
  10431. pw32*)
  10432. # pw32 DLLs use 'pw' prefix rather than 'lib'
  10433. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  10434. ;;
  10435. esac
  10436. ;;
  10437. *)
  10438. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10439. ;;
  10440. esac
  10441. dynamic_linker='Win32 ld.exe'
  10442. # FIXME: first we should search . and the directory the executable is in
  10443. shlibpath_var=PATH
  10444. ;;
  10445. darwin* | rhapsody*)
  10446. dynamic_linker="$host_os dyld"
  10447. version_type=darwin
  10448. need_lib_prefix=no
  10449. need_version=no
  10450. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10451. soname_spec='${libname}${release}${major}$shared_ext'
  10452. shlibpath_overrides_runpath=yes
  10453. shlibpath_var=DYLD_LIBRARY_PATH
  10454. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10455. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  10456. if test "$GCC" = yes; then
  10457. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  10458. else
  10459. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  10460. fi
  10461. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10462. ;;
  10463. dgux*)
  10464. version_type=linux
  10465. need_lib_prefix=no
  10466. need_version=no
  10467. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10468. soname_spec='${libname}${release}${shared_ext}$major'
  10469. shlibpath_var=LD_LIBRARY_PATH
  10470. ;;
  10471. freebsd1*)
  10472. dynamic_linker=no
  10473. ;;
  10474. kfreebsd*-gnu)
  10475. version_type=linux
  10476. need_lib_prefix=no
  10477. need_version=no
  10478. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10479. soname_spec='${libname}${release}${shared_ext}$major'
  10480. shlibpath_var=LD_LIBRARY_PATH
  10481. shlibpath_overrides_runpath=no
  10482. hardcode_into_libs=yes
  10483. dynamic_linker='GNU ld.so'
  10484. ;;
  10485. freebsd* | dragonfly*)
  10486. # DragonFly does not have aout. When/if they implement a new
  10487. # versioning mechanism, adjust this.
  10488. if test -x /usr/bin/objformat; then
  10489. objformat=`/usr/bin/objformat`
  10490. else
  10491. case $host_os in
  10492. freebsd[123]*) objformat=aout ;;
  10493. *) objformat=elf ;;
  10494. esac
  10495. fi
  10496. version_type=freebsd-$objformat
  10497. case $version_type in
  10498. freebsd-elf*)
  10499. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10500. need_version=no
  10501. need_lib_prefix=no
  10502. ;;
  10503. freebsd-*)
  10504. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10505. need_version=yes
  10506. ;;
  10507. esac
  10508. shlibpath_var=LD_LIBRARY_PATH
  10509. case $host_os in
  10510. freebsd2*)
  10511. shlibpath_overrides_runpath=yes
  10512. ;;
  10513. freebsd3.[01]* | freebsdelf3.[01]*)
  10514. shlibpath_overrides_runpath=yes
  10515. hardcode_into_libs=yes
  10516. ;;
  10517. *) # from 3.2 on
  10518. shlibpath_overrides_runpath=no
  10519. hardcode_into_libs=yes
  10520. ;;
  10521. esac
  10522. ;;
  10523. gnu*)
  10524. version_type=linux
  10525. need_lib_prefix=no
  10526. need_version=no
  10527. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10528. soname_spec='${libname}${release}${shared_ext}$major'
  10529. shlibpath_var=LD_LIBRARY_PATH
  10530. hardcode_into_libs=yes
  10531. ;;
  10532. hpux9* | hpux10* | hpux11*)
  10533. # Give a soname corresponding to the major version so that dld.sl refuses to
  10534. # link against other versions.
  10535. version_type=sunos
  10536. need_lib_prefix=no
  10537. need_version=no
  10538. case $host_cpu in
  10539. ia64*)
  10540. shrext_cmds='.so'
  10541. hardcode_into_libs=yes
  10542. dynamic_linker="$host_os dld.so"
  10543. shlibpath_var=LD_LIBRARY_PATH
  10544. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10545. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10546. soname_spec='${libname}${release}${shared_ext}$major'
  10547. if test "X$HPUX_IA64_MODE" = X32; then
  10548. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10549. else
  10550. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10551. fi
  10552. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10553. ;;
  10554. hppa*64*)
  10555. shrext_cmds='.sl'
  10556. hardcode_into_libs=yes
  10557. dynamic_linker="$host_os dld.sl"
  10558. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10559. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10560. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10561. soname_spec='${libname}${release}${shared_ext}$major'
  10562. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10563. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10564. ;;
  10565. *)
  10566. shrext_cmds='.sl'
  10567. dynamic_linker="$host_os dld.sl"
  10568. shlibpath_var=SHLIB_PATH
  10569. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10570. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10571. soname_spec='${libname}${release}${shared_ext}$major'
  10572. ;;
  10573. esac
  10574. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  10575. postinstall_cmds='chmod 555 $lib'
  10576. ;;
  10577. irix5* | irix6* | nonstopux*)
  10578. case $host_os in
  10579. nonstopux*) version_type=nonstopux ;;
  10580. *)
  10581. if test "$lt_cv_prog_gnu_ld" = yes; then
  10582. version_type=linux
  10583. else
  10584. version_type=irix
  10585. fi ;;
  10586. esac
  10587. need_lib_prefix=no
  10588. need_version=no
  10589. soname_spec='${libname}${release}${shared_ext}$major'
  10590. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10591. case $host_os in
  10592. irix5* | nonstopux*)
  10593. libsuff= shlibsuff=
  10594. ;;
  10595. *)
  10596. case $LD in # libtool.m4 will add one of these switches to LD
  10597. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10598. libsuff= shlibsuff= libmagic=32-bit;;
  10599. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10600. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10601. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10602. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10603. *) libsuff= shlibsuff= libmagic=never-match;;
  10604. esac
  10605. ;;
  10606. esac
  10607. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10608. shlibpath_overrides_runpath=no
  10609. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10610. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10611. hardcode_into_libs=yes
  10612. ;;
  10613. # No shared lib support for Linux oldld, aout, or coff.
  10614. linux*oldld* | linux*aout* | linux*coff*)
  10615. dynamic_linker=no
  10616. ;;
  10617. # This must be Linux ELF.
  10618. linux*)
  10619. version_type=linux
  10620. need_lib_prefix=no
  10621. need_version=no
  10622. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10623. soname_spec='${libname}${release}${shared_ext}$major'
  10624. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10625. shlibpath_var=LD_LIBRARY_PATH
  10626. shlibpath_overrides_runpath=no
  10627. # This implies no fast_install, which is unacceptable.
  10628. # Some rework will be needed to allow for fast_install
  10629. # before this can be enabled.
  10630. hardcode_into_libs=yes
  10631. # Append ld.so.conf contents to the search path
  10632. if test -f /etc/ld.so.conf; then
  10633. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  10634. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10635. fi
  10636. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10637. # powerpc, because MkLinux only supported shared libraries with the
  10638. # GNU dynamic linker. Since this was broken with cross compilers,
  10639. # most powerpc-linux boxes support dynamic linking these days and
  10640. # people can always --disable-shared, the test was removed, and we
  10641. # assume the GNU/Linux dynamic linker is in use.
  10642. dynamic_linker='GNU/Linux ld.so'
  10643. ;;
  10644. knetbsd*-gnu)
  10645. version_type=linux
  10646. need_lib_prefix=no
  10647. need_version=no
  10648. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10649. soname_spec='${libname}${release}${shared_ext}$major'
  10650. shlibpath_var=LD_LIBRARY_PATH
  10651. shlibpath_overrides_runpath=no
  10652. hardcode_into_libs=yes
  10653. dynamic_linker='GNU ld.so'
  10654. ;;
  10655. netbsd*)
  10656. version_type=sunos
  10657. need_lib_prefix=no
  10658. need_version=no
  10659. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10660. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10661. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10662. dynamic_linker='NetBSD (a.out) ld.so'
  10663. else
  10664. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10665. soname_spec='${libname}${release}${shared_ext}$major'
  10666. dynamic_linker='NetBSD ld.elf_so'
  10667. fi
  10668. shlibpath_var=LD_LIBRARY_PATH
  10669. shlibpath_overrides_runpath=yes
  10670. hardcode_into_libs=yes
  10671. ;;
  10672. newsos6)
  10673. version_type=linux
  10674. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10675. shlibpath_var=LD_LIBRARY_PATH
  10676. shlibpath_overrides_runpath=yes
  10677. ;;
  10678. nto-qnx*)
  10679. version_type=linux
  10680. need_lib_prefix=no
  10681. need_version=no
  10682. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10683. soname_spec='${libname}${release}${shared_ext}$major'
  10684. shlibpath_var=LD_LIBRARY_PATH
  10685. shlibpath_overrides_runpath=yes
  10686. ;;
  10687. openbsd*)
  10688. version_type=sunos
  10689. need_lib_prefix=no
  10690. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10691. case $host_os in
  10692. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10693. *) need_version=no ;;
  10694. esac
  10695. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10696. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10697. shlibpath_var=LD_LIBRARY_PATH
  10698. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10699. case $host_os in
  10700. openbsd2.[89] | openbsd2.[89].*)
  10701. shlibpath_overrides_runpath=no
  10702. ;;
  10703. *)
  10704. shlibpath_overrides_runpath=yes
  10705. ;;
  10706. esac
  10707. else
  10708. shlibpath_overrides_runpath=yes
  10709. fi
  10710. ;;
  10711. os2*)
  10712. libname_spec='$name'
  10713. shrext_cmds=".dll"
  10714. need_lib_prefix=no
  10715. library_names_spec='$libname${shared_ext} $libname.a'
  10716. dynamic_linker='OS/2 ld.exe'
  10717. shlibpath_var=LIBPATH
  10718. ;;
  10719. osf3* | osf4* | osf5*)
  10720. version_type=osf
  10721. need_lib_prefix=no
  10722. need_version=no
  10723. soname_spec='${libname}${release}${shared_ext}$major'
  10724. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10725. shlibpath_var=LD_LIBRARY_PATH
  10726. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10727. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10728. ;;
  10729. sco3.2v5*)
  10730. version_type=osf
  10731. soname_spec='${libname}${release}${shared_ext}$major'
  10732. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10733. shlibpath_var=LD_LIBRARY_PATH
  10734. ;;
  10735. solaris*)
  10736. version_type=linux
  10737. need_lib_prefix=no
  10738. need_version=no
  10739. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10740. soname_spec='${libname}${release}${shared_ext}$major'
  10741. shlibpath_var=LD_LIBRARY_PATH
  10742. shlibpath_overrides_runpath=yes
  10743. hardcode_into_libs=yes
  10744. # ldd complains unless libraries are executable
  10745. postinstall_cmds='chmod +x $lib'
  10746. ;;
  10747. sunos4*)
  10748. version_type=sunos
  10749. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10750. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10751. shlibpath_var=LD_LIBRARY_PATH
  10752. shlibpath_overrides_runpath=yes
  10753. if test "$with_gnu_ld" = yes; then
  10754. need_lib_prefix=no
  10755. fi
  10756. need_version=yes
  10757. ;;
  10758. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  10759. version_type=linux
  10760. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10761. soname_spec='${libname}${release}${shared_ext}$major'
  10762. shlibpath_var=LD_LIBRARY_PATH
  10763. case $host_vendor in
  10764. sni)
  10765. shlibpath_overrides_runpath=no
  10766. need_lib_prefix=no
  10767. export_dynamic_flag_spec='${wl}-Blargedynsym'
  10768. runpath_var=LD_RUN_PATH
  10769. ;;
  10770. siemens)
  10771. need_lib_prefix=no
  10772. ;;
  10773. motorola)
  10774. need_lib_prefix=no
  10775. need_version=no
  10776. shlibpath_overrides_runpath=no
  10777. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10778. ;;
  10779. esac
  10780. ;;
  10781. sysv4*MP*)
  10782. if test -d /usr/nec ;then
  10783. version_type=linux
  10784. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10785. soname_spec='$libname${shared_ext}.$major'
  10786. shlibpath_var=LD_LIBRARY_PATH
  10787. fi
  10788. ;;
  10789. uts4*)
  10790. version_type=linux
  10791. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10792. soname_spec='${libname}${release}${shared_ext}$major'
  10793. shlibpath_var=LD_LIBRARY_PATH
  10794. ;;
  10795. *)
  10796. dynamic_linker=no
  10797. ;;
  10798. esac
  10799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10800. $as_echo "$dynamic_linker" >&6; }
  10801. test "$dynamic_linker" = no && can_build_shared=no
  10802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10803. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10804. hardcode_action=
  10805. if test -n "$hardcode_libdir_flag_spec" || \
  10806. test -n "$runpath_var" || \
  10807. test "X$hardcode_automatic" = "Xyes" ; then
  10808. # We can hardcode non-existant directories.
  10809. if test "$hardcode_direct" != no &&
  10810. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10811. # have to relink, otherwise we might link with an installed library
  10812. # when we should be linking with a yet-to-be-installed one
  10813. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10814. test "$hardcode_minus_L" != no; then
  10815. # Linking always hardcodes the temporary library directory.
  10816. hardcode_action=relink
  10817. else
  10818. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10819. hardcode_action=immediate
  10820. fi
  10821. else
  10822. # We cannot hardcode anything, or else we can only hardcode existing
  10823. # directories.
  10824. hardcode_action=unsupported
  10825. fi
  10826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10827. $as_echo "$hardcode_action" >&6; }
  10828. if test "$hardcode_action" = relink; then
  10829. # Fast installation is not supported
  10830. enable_fast_install=no
  10831. elif test "$shlibpath_overrides_runpath" = yes ||
  10832. test "$enable_shared" = no; then
  10833. # Fast installation is not necessary
  10834. enable_fast_install=needless
  10835. fi
  10836. striplib=
  10837. old_striplib=
  10838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10839. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10840. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  10841. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10842. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10843. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10844. $as_echo "yes" >&6; }
  10845. else
  10846. # FIXME - insert some real tests, host_os isn't really good enough
  10847. case $host_os in
  10848. darwin*)
  10849. if test -n "$STRIP" ; then
  10850. striplib="$STRIP -x"
  10851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10852. $as_echo "yes" >&6; }
  10853. else
  10854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10855. $as_echo "no" >&6; }
  10856. fi
  10857. ;;
  10858. *)
  10859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10860. $as_echo "no" >&6; }
  10861. ;;
  10862. esac
  10863. fi
  10864. if test "x$enable_dlopen" != xyes; then
  10865. enable_dlopen=unknown
  10866. enable_dlopen_self=unknown
  10867. enable_dlopen_self_static=unknown
  10868. else
  10869. lt_cv_dlopen=no
  10870. lt_cv_dlopen_libs=
  10871. case $host_os in
  10872. beos*)
  10873. lt_cv_dlopen="load_add_on"
  10874. lt_cv_dlopen_libs=
  10875. lt_cv_dlopen_self=yes
  10876. ;;
  10877. mingw* | pw32*)
  10878. lt_cv_dlopen="LoadLibrary"
  10879. lt_cv_dlopen_libs=
  10880. ;;
  10881. cygwin*)
  10882. lt_cv_dlopen="dlopen"
  10883. lt_cv_dlopen_libs=
  10884. ;;
  10885. darwin*)
  10886. # if libdl is installed we need to link against it
  10887. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10888. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10889. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  10890. $as_echo_n "(cached) " >&6
  10891. else
  10892. ac_check_lib_save_LIBS=$LIBS
  10893. LIBS="-ldl $LIBS"
  10894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10895. /* end confdefs.h. */
  10896. /* Override any GCC internal prototype to avoid an error.
  10897. Use char because int might match the return type of a GCC
  10898. builtin and then its argument prototype would still apply. */
  10899. #ifdef __cplusplus
  10900. extern "C"
  10901. #endif
  10902. char dlopen ();
  10903. int
  10904. main ()
  10905. {
  10906. return dlopen ();
  10907. ;
  10908. return 0;
  10909. }
  10910. _ACEOF
  10911. if ac_fn_c_try_link "$LINENO"; then :
  10912. ac_cv_lib_dl_dlopen=yes
  10913. else
  10914. ac_cv_lib_dl_dlopen=no
  10915. fi
  10916. rm -f core conftest.err conftest.$ac_objext \
  10917. conftest$ac_exeext conftest.$ac_ext
  10918. LIBS=$ac_check_lib_save_LIBS
  10919. fi
  10920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10921. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10922. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  10923. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10924. else
  10925. lt_cv_dlopen="dyld"
  10926. lt_cv_dlopen_libs=
  10927. lt_cv_dlopen_self=yes
  10928. fi
  10929. ;;
  10930. *)
  10931. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10932. if test "x$ac_cv_func_shl_load" = x""yes; then :
  10933. lt_cv_dlopen="shl_load"
  10934. else
  10935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10936. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10937. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  10938. $as_echo_n "(cached) " >&6
  10939. else
  10940. ac_check_lib_save_LIBS=$LIBS
  10941. LIBS="-ldld $LIBS"
  10942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10943. /* end confdefs.h. */
  10944. /* Override any GCC internal prototype to avoid an error.
  10945. Use char because int might match the return type of a GCC
  10946. builtin and then its argument prototype would still apply. */
  10947. #ifdef __cplusplus
  10948. extern "C"
  10949. #endif
  10950. char shl_load ();
  10951. int
  10952. main ()
  10953. {
  10954. return shl_load ();
  10955. ;
  10956. return 0;
  10957. }
  10958. _ACEOF
  10959. if ac_fn_c_try_link "$LINENO"; then :
  10960. ac_cv_lib_dld_shl_load=yes
  10961. else
  10962. ac_cv_lib_dld_shl_load=no
  10963. fi
  10964. rm -f core conftest.err conftest.$ac_objext \
  10965. conftest$ac_exeext conftest.$ac_ext
  10966. LIBS=$ac_check_lib_save_LIBS
  10967. fi
  10968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10969. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10970. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  10971. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  10972. else
  10973. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10974. if test "x$ac_cv_func_dlopen" = x""yes; then :
  10975. lt_cv_dlopen="dlopen"
  10976. else
  10977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10978. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10979. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  10980. $as_echo_n "(cached) " >&6
  10981. else
  10982. ac_check_lib_save_LIBS=$LIBS
  10983. LIBS="-ldl $LIBS"
  10984. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10985. /* end confdefs.h. */
  10986. /* Override any GCC internal prototype to avoid an error.
  10987. Use char because int might match the return type of a GCC
  10988. builtin and then its argument prototype would still apply. */
  10989. #ifdef __cplusplus
  10990. extern "C"
  10991. #endif
  10992. char dlopen ();
  10993. int
  10994. main ()
  10995. {
  10996. return dlopen ();
  10997. ;
  10998. return 0;
  10999. }
  11000. _ACEOF
  11001. if ac_fn_c_try_link "$LINENO"; then :
  11002. ac_cv_lib_dl_dlopen=yes
  11003. else
  11004. ac_cv_lib_dl_dlopen=no
  11005. fi
  11006. rm -f core conftest.err conftest.$ac_objext \
  11007. conftest$ac_exeext conftest.$ac_ext
  11008. LIBS=$ac_check_lib_save_LIBS
  11009. fi
  11010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  11011. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  11012. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  11013. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  11014. else
  11015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  11016. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  11017. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  11018. $as_echo_n "(cached) " >&6
  11019. else
  11020. ac_check_lib_save_LIBS=$LIBS
  11021. LIBS="-lsvld $LIBS"
  11022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11023. /* end confdefs.h. */
  11024. /* Override any GCC internal prototype to avoid an error.
  11025. Use char because int might match the return type of a GCC
  11026. builtin and then its argument prototype would still apply. */
  11027. #ifdef __cplusplus
  11028. extern "C"
  11029. #endif
  11030. char dlopen ();
  11031. int
  11032. main ()
  11033. {
  11034. return dlopen ();
  11035. ;
  11036. return 0;
  11037. }
  11038. _ACEOF
  11039. if ac_fn_c_try_link "$LINENO"; then :
  11040. ac_cv_lib_svld_dlopen=yes
  11041. else
  11042. ac_cv_lib_svld_dlopen=no
  11043. fi
  11044. rm -f core conftest.err conftest.$ac_objext \
  11045. conftest$ac_exeext conftest.$ac_ext
  11046. LIBS=$ac_check_lib_save_LIBS
  11047. fi
  11048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  11049. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11050. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  11051. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  11052. else
  11053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  11054. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  11055. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  11056. $as_echo_n "(cached) " >&6
  11057. else
  11058. ac_check_lib_save_LIBS=$LIBS
  11059. LIBS="-ldld $LIBS"
  11060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11061. /* end confdefs.h. */
  11062. /* Override any GCC internal prototype to avoid an error.
  11063. Use char because int might match the return type of a GCC
  11064. builtin and then its argument prototype would still apply. */
  11065. #ifdef __cplusplus
  11066. extern "C"
  11067. #endif
  11068. char dld_link ();
  11069. int
  11070. main ()
  11071. {
  11072. return dld_link ();
  11073. ;
  11074. return 0;
  11075. }
  11076. _ACEOF
  11077. if ac_fn_c_try_link "$LINENO"; then :
  11078. ac_cv_lib_dld_dld_link=yes
  11079. else
  11080. ac_cv_lib_dld_dld_link=no
  11081. fi
  11082. rm -f core conftest.err conftest.$ac_objext \
  11083. conftest$ac_exeext conftest.$ac_ext
  11084. LIBS=$ac_check_lib_save_LIBS
  11085. fi
  11086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  11087. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11088. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  11089. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  11090. fi
  11091. fi
  11092. fi
  11093. fi
  11094. fi
  11095. fi
  11096. ;;
  11097. esac
  11098. if test "x$lt_cv_dlopen" != xno; then
  11099. enable_dlopen=yes
  11100. else
  11101. enable_dlopen=no
  11102. fi
  11103. case $lt_cv_dlopen in
  11104. dlopen)
  11105. save_CPPFLAGS="$CPPFLAGS"
  11106. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11107. save_LDFLAGS="$LDFLAGS"
  11108. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11109. save_LIBS="$LIBS"
  11110. LIBS="$lt_cv_dlopen_libs $LIBS"
  11111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  11112. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11113. if test "${lt_cv_dlopen_self+set}" = set; then :
  11114. $as_echo_n "(cached) " >&6
  11115. else
  11116. if test "$cross_compiling" = yes; then :
  11117. lt_cv_dlopen_self=cross
  11118. else
  11119. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11120. lt_status=$lt_dlunknown
  11121. cat > conftest.$ac_ext <<EOF
  11122. #line 12457 "configure"
  11123. #include "confdefs.h"
  11124. #if HAVE_DLFCN_H
  11125. #include <dlfcn.h>
  11126. #endif
  11127. #include <stdio.h>
  11128. #ifdef RTLD_GLOBAL
  11129. # define LT_DLGLOBAL RTLD_GLOBAL
  11130. #else
  11131. # ifdef DL_GLOBAL
  11132. # define LT_DLGLOBAL DL_GLOBAL
  11133. # else
  11134. # define LT_DLGLOBAL 0
  11135. # endif
  11136. #endif
  11137. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11138. find out it does not work in some platform. */
  11139. #ifndef LT_DLLAZY_OR_NOW
  11140. # ifdef RTLD_LAZY
  11141. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11142. # else
  11143. # ifdef DL_LAZY
  11144. # define LT_DLLAZY_OR_NOW DL_LAZY
  11145. # else
  11146. # ifdef RTLD_NOW
  11147. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11148. # else
  11149. # ifdef DL_NOW
  11150. # define LT_DLLAZY_OR_NOW DL_NOW
  11151. # else
  11152. # define LT_DLLAZY_OR_NOW 0
  11153. # endif
  11154. # endif
  11155. # endif
  11156. # endif
  11157. #endif
  11158. #ifdef __cplusplus
  11159. extern "C" void exit (int);
  11160. #endif
  11161. void fnord() { int i=42;}
  11162. int main ()
  11163. {
  11164. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11165. int status = $lt_dlunknown;
  11166. if (self)
  11167. {
  11168. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11169. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11170. /* dlclose (self); */
  11171. }
  11172. exit (status);
  11173. }
  11174. EOF
  11175. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11176. (eval $ac_link) 2>&5
  11177. ac_status=$?
  11178. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11179. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11180. (./conftest; exit; ) >&5 2>/dev/null
  11181. lt_status=$?
  11182. case x$lt_status in
  11183. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11184. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11185. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  11186. esac
  11187. else :
  11188. # compilation failed
  11189. lt_cv_dlopen_self=no
  11190. fi
  11191. fi
  11192. rm -fr conftest*
  11193. fi
  11194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  11195. $as_echo "$lt_cv_dlopen_self" >&6; }
  11196. if test "x$lt_cv_dlopen_self" = xyes; then
  11197. LDFLAGS="$LDFLAGS $link_static_flag"
  11198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  11199. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11200. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  11201. $as_echo_n "(cached) " >&6
  11202. else
  11203. if test "$cross_compiling" = yes; then :
  11204. lt_cv_dlopen_self_static=cross
  11205. else
  11206. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11207. lt_status=$lt_dlunknown
  11208. cat > conftest.$ac_ext <<EOF
  11209. #line 12555 "configure"
  11210. #include "confdefs.h"
  11211. #if HAVE_DLFCN_H
  11212. #include <dlfcn.h>
  11213. #endif
  11214. #include <stdio.h>
  11215. #ifdef RTLD_GLOBAL
  11216. # define LT_DLGLOBAL RTLD_GLOBAL
  11217. #else
  11218. # ifdef DL_GLOBAL
  11219. # define LT_DLGLOBAL DL_GLOBAL
  11220. # else
  11221. # define LT_DLGLOBAL 0
  11222. # endif
  11223. #endif
  11224. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11225. find out it does not work in some platform. */
  11226. #ifndef LT_DLLAZY_OR_NOW
  11227. # ifdef RTLD_LAZY
  11228. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11229. # else
  11230. # ifdef DL_LAZY
  11231. # define LT_DLLAZY_OR_NOW DL_LAZY
  11232. # else
  11233. # ifdef RTLD_NOW
  11234. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11235. # else
  11236. # ifdef DL_NOW
  11237. # define LT_DLLAZY_OR_NOW DL_NOW
  11238. # else
  11239. # define LT_DLLAZY_OR_NOW 0
  11240. # endif
  11241. # endif
  11242. # endif
  11243. # endif
  11244. #endif
  11245. #ifdef __cplusplus
  11246. extern "C" void exit (int);
  11247. #endif
  11248. void fnord() { int i=42;}
  11249. int main ()
  11250. {
  11251. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11252. int status = $lt_dlunknown;
  11253. if (self)
  11254. {
  11255. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11256. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11257. /* dlclose (self); */
  11258. }
  11259. exit (status);
  11260. }
  11261. EOF
  11262. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11263. (eval $ac_link) 2>&5
  11264. ac_status=$?
  11265. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11266. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  11267. (./conftest; exit; ) >&5 2>/dev/null
  11268. lt_status=$?
  11269. case x$lt_status in
  11270. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11271. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11272. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  11273. esac
  11274. else :
  11275. # compilation failed
  11276. lt_cv_dlopen_self_static=no
  11277. fi
  11278. fi
  11279. rm -fr conftest*
  11280. fi
  11281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  11282. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11283. fi
  11284. CPPFLAGS="$save_CPPFLAGS"
  11285. LDFLAGS="$save_LDFLAGS"
  11286. LIBS="$save_LIBS"
  11287. ;;
  11288. esac
  11289. case $lt_cv_dlopen_self in
  11290. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11291. *) enable_dlopen_self=unknown ;;
  11292. esac
  11293. case $lt_cv_dlopen_self_static in
  11294. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11295. *) enable_dlopen_self_static=unknown ;;
  11296. esac
  11297. fi
  11298. # Report which librarie types wil actually be built
  11299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  11300. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  11302. $as_echo "$can_build_shared" >&6; }
  11303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  11304. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11305. test "$can_build_shared" = "no" && enable_shared=no
  11306. # On AIX, shared libraries and static libraries use the same namespace, and
  11307. # are all built from PIC.
  11308. case $host_os in
  11309. aix3*)
  11310. test "$enable_shared" = yes && enable_static=no
  11311. if test -n "$RANLIB"; then
  11312. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11313. postinstall_cmds='$RANLIB $lib'
  11314. fi
  11315. ;;
  11316. aix4* | aix5*)
  11317. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11318. test "$enable_shared" = yes && enable_static=no
  11319. fi
  11320. ;;
  11321. esac
  11322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11323. $as_echo "$enable_shared" >&6; }
  11324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11325. $as_echo_n "checking whether to build static libraries... " >&6; }
  11326. # Make sure either enable_shared or enable_static is yes.
  11327. test "$enable_shared" = yes || enable_static=yes
  11328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11329. $as_echo "$enable_static" >&6; }
  11330. # The else clause should only fire when bootstrapping the
  11331. # libtool distribution, otherwise you forgot to ship ltmain.sh
  11332. # with your package, and you will get complaints that there are
  11333. # no rules to generate ltmain.sh.
  11334. if test -f "$ltmain"; then
  11335. # See if we are running on zsh, and set the options which allow our commands through
  11336. # without removal of \ escapes.
  11337. if test -n "${ZSH_VERSION+set}" ; then
  11338. setopt NO_GLOB_SUBST
  11339. fi
  11340. # Now quote all the things that may contain metacharacters while being
  11341. # careful not to overquote the AC_SUBSTed values. We take copies of the
  11342. # variables and quote the copies for generation of the libtool script.
  11343. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  11344. SED SHELL STRIP \
  11345. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  11346. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  11347. deplibs_check_method reload_flag reload_cmds need_locks \
  11348. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  11349. lt_cv_sys_global_symbol_to_c_name_address \
  11350. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  11351. old_postinstall_cmds old_postuninstall_cmds \
  11352. compiler \
  11353. CC \
  11354. LD \
  11355. lt_prog_compiler_wl \
  11356. lt_prog_compiler_pic \
  11357. lt_prog_compiler_static \
  11358. lt_prog_compiler_no_builtin_flag \
  11359. export_dynamic_flag_spec \
  11360. thread_safe_flag_spec \
  11361. whole_archive_flag_spec \
  11362. enable_shared_with_static_runtimes \
  11363. old_archive_cmds \
  11364. old_archive_from_new_cmds \
  11365. predep_objects \
  11366. postdep_objects \
  11367. predeps \
  11368. postdeps \
  11369. compiler_lib_search_path \
  11370. archive_cmds \
  11371. archive_expsym_cmds \
  11372. postinstall_cmds \
  11373. postuninstall_cmds \
  11374. old_archive_from_expsyms_cmds \
  11375. allow_undefined_flag \
  11376. no_undefined_flag \
  11377. export_symbols_cmds \
  11378. hardcode_libdir_flag_spec \
  11379. hardcode_libdir_flag_spec_ld \
  11380. hardcode_libdir_separator \
  11381. hardcode_automatic \
  11382. module_cmds \
  11383. module_expsym_cmds \
  11384. lt_cv_prog_compiler_c_o \
  11385. exclude_expsyms \
  11386. include_expsyms; do
  11387. case $var in
  11388. old_archive_cmds | \
  11389. old_archive_from_new_cmds | \
  11390. archive_cmds | \
  11391. archive_expsym_cmds | \
  11392. module_cmds | \
  11393. module_expsym_cmds | \
  11394. old_archive_from_expsyms_cmds | \
  11395. export_symbols_cmds | \
  11396. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  11397. postinstall_cmds | postuninstall_cmds | \
  11398. old_postinstall_cmds | old_postuninstall_cmds | \
  11399. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  11400. # Double-quote double-evaled strings.
  11401. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  11402. ;;
  11403. *)
  11404. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  11405. ;;
  11406. esac
  11407. done
  11408. case $lt_echo in
  11409. *'\$0 --fallback-echo"')
  11410. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  11411. ;;
  11412. esac
  11413. cfgfile="${ofile}T"
  11414. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  11415. $rm -f "$cfgfile"
  11416. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
  11417. $as_echo "$as_me: creating $ofile" >&6;}
  11418. cat <<__EOF__ >> "$cfgfile"
  11419. #! $SHELL
  11420. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11421. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  11422. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11423. #
  11424. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  11425. # Free Software Foundation, Inc.
  11426. #
  11427. # This file is part of GNU Libtool:
  11428. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  11429. #
  11430. # This program is free software; you can redistribute it and/or modify
  11431. # it under the terms of the GNU General Public License as published by
  11432. # the Free Software Foundation; either version 2 of the License, or
  11433. # (at your option) any later version.
  11434. #
  11435. # This program is distributed in the hope that it will be useful, but
  11436. # WITHOUT ANY WARRANTY; without even the implied warranty of
  11437. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11438. # General Public License for more details.
  11439. #
  11440. # You should have received a copy of the GNU General Public License
  11441. # along with this program; if not, write to the Free Software
  11442. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11443. #
  11444. # As a special exception to the GNU General Public License, if you
  11445. # distribute this file as part of a program that contains a
  11446. # configuration script generated by Autoconf, you may include it under
  11447. # the same distribution terms that you use for the rest of that program.
  11448. # A sed program that does not truncate output.
  11449. SED=$lt_SED
  11450. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11451. Xsed="$SED -e 1s/^X//"
  11452. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11453. # if CDPATH is set.
  11454. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11455. # The names of the tagged configurations supported by this script.
  11456. available_tags=
  11457. # ### BEGIN LIBTOOL CONFIG
  11458. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11459. # Shell to use when invoking shell scripts.
  11460. SHELL=$lt_SHELL
  11461. # Whether or not to build shared libraries.
  11462. build_libtool_libs=$enable_shared
  11463. # Whether or not to build static libraries.
  11464. build_old_libs=$enable_static
  11465. # Whether or not to add -lc for building shared libraries.
  11466. build_libtool_need_lc=$archive_cmds_need_lc
  11467. # Whether or not to disallow shared libs when runtime libs are static
  11468. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11469. # Whether or not to optimize for fast installation.
  11470. fast_install=$enable_fast_install
  11471. # The host system.
  11472. host_alias=$host_alias
  11473. host=$host
  11474. host_os=$host_os
  11475. # The build system.
  11476. build_alias=$build_alias
  11477. build=$build
  11478. build_os=$build_os
  11479. # An echo program that does not interpret backslashes.
  11480. echo=$lt_echo
  11481. # The archiver.
  11482. AR=$lt_AR
  11483. AR_FLAGS=$lt_AR_FLAGS
  11484. # A C compiler.
  11485. LTCC=$lt_LTCC
  11486. # A language-specific compiler.
  11487. CC=$lt_compiler
  11488. # Is the compiler the GNU C compiler?
  11489. with_gcc=$GCC
  11490. # An ERE matcher.
  11491. EGREP=$lt_EGREP
  11492. # The linker used to build libraries.
  11493. LD=$lt_LD
  11494. # Whether we need hard or soft links.
  11495. LN_S=$lt_LN_S
  11496. # A BSD-compatible nm program.
  11497. NM=$lt_NM
  11498. # A symbol stripping program
  11499. STRIP=$lt_STRIP
  11500. # Used to examine libraries when file_magic_cmd begins "file"
  11501. MAGIC_CMD=$MAGIC_CMD
  11502. # Used on cygwin: DLL creation program.
  11503. DLLTOOL="$DLLTOOL"
  11504. # Used on cygwin: object dumper.
  11505. OBJDUMP="$OBJDUMP"
  11506. # Used on cygwin: assembler.
  11507. AS="$AS"
  11508. # The name of the directory that contains temporary libtool files.
  11509. objdir=$objdir
  11510. # How to create reloadable object files.
  11511. reload_flag=$lt_reload_flag
  11512. reload_cmds=$lt_reload_cmds
  11513. # How to pass a linker flag through the compiler.
  11514. wl=$lt_lt_prog_compiler_wl
  11515. # Object file suffix (normally "o").
  11516. objext="$ac_objext"
  11517. # Old archive suffix (normally "a").
  11518. libext="$libext"
  11519. # Shared library suffix (normally ".so").
  11520. shrext_cmds='$shrext_cmds'
  11521. # Executable file suffix (normally "").
  11522. exeext="$exeext"
  11523. # Additional compiler flags for building library objects.
  11524. pic_flag=$lt_lt_prog_compiler_pic
  11525. pic_mode=$pic_mode
  11526. # What is the maximum length of a command?
  11527. max_cmd_len=$lt_cv_sys_max_cmd_len
  11528. # Does compiler simultaneously support -c and -o options?
  11529. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11530. # Must we lock files when doing compilation?
  11531. need_locks=$lt_need_locks
  11532. # Do we need the lib prefix for modules?
  11533. need_lib_prefix=$need_lib_prefix
  11534. # Do we need a version for libraries?
  11535. need_version=$need_version
  11536. # Whether dlopen is supported.
  11537. dlopen_support=$enable_dlopen
  11538. # Whether dlopen of programs is supported.
  11539. dlopen_self=$enable_dlopen_self
  11540. # Whether dlopen of statically linked programs is supported.
  11541. dlopen_self_static=$enable_dlopen_self_static
  11542. # Compiler flag to prevent dynamic linking.
  11543. link_static_flag=$lt_lt_prog_compiler_static
  11544. # Compiler flag to turn off builtin functions.
  11545. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11546. # Compiler flag to allow reflexive dlopens.
  11547. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11548. # Compiler flag to generate shared objects directly from archives.
  11549. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11550. # Compiler flag to generate thread-safe objects.
  11551. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  11552. # Library versioning type.
  11553. version_type=$version_type
  11554. # Format of library name prefix.
  11555. libname_spec=$lt_libname_spec
  11556. # List of archive names. First name is the real one, the rest are links.
  11557. # The last name is the one that the linker finds with -lNAME.
  11558. library_names_spec=$lt_library_names_spec
  11559. # The coded name of the library, if different from the real name.
  11560. soname_spec=$lt_soname_spec
  11561. # Commands used to build and install an old-style archive.
  11562. RANLIB=$lt_RANLIB
  11563. old_archive_cmds=$lt_old_archive_cmds
  11564. old_postinstall_cmds=$lt_old_postinstall_cmds
  11565. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11566. # Create an old-style archive from a shared archive.
  11567. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11568. # Create a temporary old-style archive to link instead of a shared archive.
  11569. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11570. # Commands used to build and install a shared archive.
  11571. archive_cmds=$lt_archive_cmds
  11572. archive_expsym_cmds=$lt_archive_expsym_cmds
  11573. postinstall_cmds=$lt_postinstall_cmds
  11574. postuninstall_cmds=$lt_postuninstall_cmds
  11575. # Commands used to build a loadable module (assumed same as above if empty)
  11576. module_cmds=$lt_module_cmds
  11577. module_expsym_cmds=$lt_module_expsym_cmds
  11578. # Commands to strip libraries.
  11579. old_striplib=$lt_old_striplib
  11580. striplib=$lt_striplib
  11581. # Dependencies to place before the objects being linked to create a
  11582. # shared library.
  11583. predep_objects=$lt_predep_objects
  11584. # Dependencies to place after the objects being linked to create a
  11585. # shared library.
  11586. postdep_objects=$lt_postdep_objects
  11587. # Dependencies to place before the objects being linked to create a
  11588. # shared library.
  11589. predeps=$lt_predeps
  11590. # Dependencies to place after the objects being linked to create a
  11591. # shared library.
  11592. postdeps=$lt_postdeps
  11593. # The library search path used internally by the compiler when linking
  11594. # a shared library.
  11595. compiler_lib_search_path=$lt_compiler_lib_search_path
  11596. # Method to check whether dependent libraries are shared objects.
  11597. deplibs_check_method=$lt_deplibs_check_method
  11598. # Command to use when deplibs_check_method == file_magic.
  11599. file_magic_cmd=$lt_file_magic_cmd
  11600. # Flag that allows shared libraries with undefined symbols to be built.
  11601. allow_undefined_flag=$lt_allow_undefined_flag
  11602. # Flag that forces no undefined symbols.
  11603. no_undefined_flag=$lt_no_undefined_flag
  11604. # Commands used to finish a libtool library installation in a directory.
  11605. finish_cmds=$lt_finish_cmds
  11606. # Same as above, but a single script fragment to be evaled but not shown.
  11607. finish_eval=$lt_finish_eval
  11608. # Take the output of nm and produce a listing of raw symbols and C names.
  11609. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11610. # Transform the output of nm in a proper C declaration
  11611. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11612. # Transform the output of nm in a C name address pair
  11613. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11614. # This is the shared library runtime path variable.
  11615. runpath_var=$runpath_var
  11616. # This is the shared library path variable.
  11617. shlibpath_var=$shlibpath_var
  11618. # Is shlibpath searched before the hard-coded library search path?
  11619. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11620. # How to hardcode a shared library path into an executable.
  11621. hardcode_action=$hardcode_action
  11622. # Whether we should hardcode library paths into libraries.
  11623. hardcode_into_libs=$hardcode_into_libs
  11624. # Flag to hardcode \$libdir into a binary during linking.
  11625. # This must work even if \$libdir does not exist.
  11626. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11627. # If ld is used when linking, flag to hardcode \$libdir into
  11628. # a binary during linking. This must work even if \$libdir does
  11629. # not exist.
  11630. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  11631. # Whether we need a single -rpath flag with a separated argument.
  11632. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11633. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  11634. # resulting binary.
  11635. hardcode_direct=$hardcode_direct
  11636. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  11637. # resulting binary.
  11638. hardcode_minus_L=$hardcode_minus_L
  11639. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  11640. # the resulting binary.
  11641. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11642. # Set to yes if building a shared library automatically hardcodes DIR into the library
  11643. # and all subsequent libraries and executables linked against it.
  11644. hardcode_automatic=$hardcode_automatic
  11645. # Variables whose values should be saved in libtool wrapper scripts and
  11646. # restored at relink time.
  11647. variables_saved_for_relink="$variables_saved_for_relink"
  11648. # Whether libtool must link a program against all its dependency libraries.
  11649. link_all_deplibs=$link_all_deplibs
  11650. # Compile-time system search path for libraries
  11651. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11652. # Run-time system search path for libraries
  11653. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11654. # Fix the shell variable \$srcfile for the compiler.
  11655. fix_srcfile_path="$fix_srcfile_path"
  11656. # Set to yes if exported symbols are required.
  11657. always_export_symbols=$always_export_symbols
  11658. # The commands to list exported symbols.
  11659. export_symbols_cmds=$lt_export_symbols_cmds
  11660. # The commands to extract the exported symbol list from a shared archive.
  11661. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11662. # Symbols that should not be listed in the preloaded symbols.
  11663. exclude_expsyms=$lt_exclude_expsyms
  11664. # Symbols that must always be exported.
  11665. include_expsyms=$lt_include_expsyms
  11666. # ### END LIBTOOL CONFIG
  11667. __EOF__
  11668. case $host_os in
  11669. aix3*)
  11670. cat <<\EOF >> "$cfgfile"
  11671. # AIX sometimes has problems with the GCC collect2 program. For some
  11672. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11673. # vanish in a puff of smoke.
  11674. if test "X${COLLECT_NAMES+set}" != Xset; then
  11675. COLLECT_NAMES=
  11676. export COLLECT_NAMES
  11677. fi
  11678. EOF
  11679. ;;
  11680. esac
  11681. # We use sed instead of cat because bash on DJGPP gets confused if
  11682. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11683. # text mode, it properly converts lines to CR/LF. This bash problem
  11684. # is reportedly fixed, but why not run on old versions too?
  11685. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  11686. mv -f "$cfgfile" "$ofile" || \
  11687. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11688. chmod +x "$ofile"
  11689. else
  11690. # If there is no Makefile yet, we rely on a make rule to execute
  11691. # `config.status --recheck' to rerun these tests and create the
  11692. # libtool script then.
  11693. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  11694. if test -f "$ltmain_in"; then
  11695. test -f Makefile && make "$ltmain"
  11696. fi
  11697. fi
  11698. ac_ext=c
  11699. ac_cpp='$CPP $CPPFLAGS'
  11700. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11701. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11702. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11703. CC="$lt_save_CC"
  11704. # Check whether --with-tags was given.
  11705. if test "${with_tags+set}" = set; then :
  11706. withval=$with_tags; tagnames="$withval"
  11707. fi
  11708. if test -f "$ltmain" && test -n "$tagnames"; then
  11709. if test ! -f "${ofile}"; then
  11710. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
  11711. $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  11712. fi
  11713. if test -z "$LTCC"; then
  11714. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  11715. if test -z "$LTCC"; then
  11716. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  11717. $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  11718. else
  11719. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  11720. $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  11721. fi
  11722. fi
  11723. # Extract list of available tagged configurations in $ofile.
  11724. # Note that this assumes the entire list is on one line.
  11725. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  11726. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  11727. for tagname in $tagnames; do
  11728. IFS="$lt_save_ifs"
  11729. # Check whether tagname contains only valid characters
  11730. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  11731. "") ;;
  11732. *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5
  11733. ;;
  11734. esac
  11735. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  11736. then
  11737. as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
  11738. fi
  11739. # Update the list of available tags.
  11740. if test -n "$tagname"; then
  11741. echo appending configuration tag \"$tagname\" to $ofile
  11742. case $tagname in
  11743. CXX)
  11744. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  11745. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  11746. (test "X$CXX" != "Xg++"))) ; then
  11747. :
  11748. else
  11749. tagname=""
  11750. fi
  11751. ;;
  11752. F77)
  11753. if test -n "$F77" && test "X$F77" != "Xno"; then
  11754. :
  11755. else
  11756. tagname=""
  11757. fi
  11758. ;;
  11759. GCJ)
  11760. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  11761. # Source file extension for Java test sources.
  11762. ac_ext=java
  11763. # Object file extension for compiled Java test sources.
  11764. objext=o
  11765. objext_GCJ=$objext
  11766. # Code to be used in simple compile tests
  11767. lt_simple_compile_test_code="class foo {}\n"
  11768. # Code to be used in simple link tests
  11769. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  11770. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11771. # If no C compiler was specified, use CC.
  11772. LTCC=${LTCC-"$CC"}
  11773. # Allow CC to be a program name with arguments.
  11774. compiler=$CC
  11775. # save warnings/boilerplate of simple test code
  11776. ac_outfile=conftest.$ac_objext
  11777. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  11778. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  11779. _lt_compiler_boilerplate=`cat conftest.err`
  11780. $rm conftest*
  11781. ac_outfile=conftest.$ac_objext
  11782. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  11783. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  11784. _lt_linker_boilerplate=`cat conftest.err`
  11785. $rm conftest*
  11786. # Allow CC to be a program name with arguments.
  11787. lt_save_CC="$CC"
  11788. CC=${GCJ-"gcj"}
  11789. compiler=$CC
  11790. compiler_GCJ=$CC
  11791. for cc_temp in $compiler""; do
  11792. case $cc_temp in
  11793. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11794. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11795. \-*) ;;
  11796. *) break;;
  11797. esac
  11798. done
  11799. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11800. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  11801. archive_cmds_need_lc_GCJ=no
  11802. old_archive_cmds_GCJ=$old_archive_cmds
  11803. lt_prog_compiler_no_builtin_flag_GCJ=
  11804. if test "$GCC" = yes; then
  11805. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  11806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  11807. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  11808. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  11809. $as_echo_n "(cached) " >&6
  11810. else
  11811. lt_cv_prog_compiler_rtti_exceptions=no
  11812. ac_outfile=conftest.$ac_objext
  11813. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  11814. lt_compiler_flag="-fno-rtti -fno-exceptions"
  11815. # Insert the option either (1) after the last *FLAGS variable, or
  11816. # (2) before a word containing "conftest.", or (3) at the end.
  11817. # Note that $ac_compile itself does not contain backslashes and begins
  11818. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11819. # The option is referenced via a variable to avoid confusing sed.
  11820. lt_compile=`echo "$ac_compile" | $SED \
  11821. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11822. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11823. -e 's:$: $lt_compiler_flag:'`
  11824. (eval echo "\"\$as_me:13334: $lt_compile\"" >&5)
  11825. (eval "$lt_compile" 2>conftest.err)
  11826. ac_status=$?
  11827. cat conftest.err >&5
  11828. echo "$as_me:13338: \$? = $ac_status" >&5
  11829. if (exit $ac_status) && test -s "$ac_outfile"; then
  11830. # The compiler can only warn and ignore the option if not recognized
  11831. # So say no if there are warnings other than the usual output.
  11832. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  11833. $SED '/^$/d' conftest.err >conftest.er2
  11834. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  11835. lt_cv_prog_compiler_rtti_exceptions=yes
  11836. fi
  11837. fi
  11838. $rm conftest*
  11839. fi
  11840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  11841. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  11842. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  11843. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  11844. else
  11845. :
  11846. fi
  11847. fi
  11848. lt_prog_compiler_wl_GCJ=
  11849. lt_prog_compiler_pic_GCJ=
  11850. lt_prog_compiler_static_GCJ=
  11851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11852. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11853. if test "$GCC" = yes; then
  11854. lt_prog_compiler_wl_GCJ='-Wl,'
  11855. lt_prog_compiler_static_GCJ='-static'
  11856. case $host_os in
  11857. aix*)
  11858. # All AIX code is PIC.
  11859. if test "$host_cpu" = ia64; then
  11860. # AIX 5 now supports IA64 processor
  11861. lt_prog_compiler_static_GCJ='-Bstatic'
  11862. fi
  11863. ;;
  11864. amigaos*)
  11865. # FIXME: we need at least 68020 code to build shared libraries, but
  11866. # adding the `-m68020' flag to GCC prevents building anything better,
  11867. # like `-m68040'.
  11868. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  11869. ;;
  11870. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11871. # PIC is the default for these OSes.
  11872. ;;
  11873. mingw* | pw32* | os2*)
  11874. # This hack is so that the source file can tell whether it is being
  11875. # built for inclusion in a dll (and should export symbols for example).
  11876. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  11877. ;;
  11878. darwin* | rhapsody*)
  11879. # PIC is the default on this platform
  11880. # Common symbols not allowed in MH_DYLIB files
  11881. lt_prog_compiler_pic_GCJ='-fno-common'
  11882. ;;
  11883. msdosdjgpp*)
  11884. # Just because we use GCC doesn't mean we suddenly get shared libraries
  11885. # on systems that don't support them.
  11886. lt_prog_compiler_can_build_shared_GCJ=no
  11887. enable_shared=no
  11888. ;;
  11889. sysv4*MP*)
  11890. if test -d /usr/nec; then
  11891. lt_prog_compiler_pic_GCJ=-Kconform_pic
  11892. fi
  11893. ;;
  11894. hpux*)
  11895. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11896. # not for PA HP-UX.
  11897. case $host_cpu in
  11898. hppa*64*|ia64*)
  11899. # +Z the default
  11900. ;;
  11901. *)
  11902. lt_prog_compiler_pic_GCJ='-fPIC'
  11903. ;;
  11904. esac
  11905. ;;
  11906. *)
  11907. lt_prog_compiler_pic_GCJ='-fPIC'
  11908. ;;
  11909. esac
  11910. else
  11911. # PORTME Check for flag to pass linker flags through the system compiler.
  11912. case $host_os in
  11913. aix*)
  11914. lt_prog_compiler_wl_GCJ='-Wl,'
  11915. if test "$host_cpu" = ia64; then
  11916. # AIX 5 now supports IA64 processor
  11917. lt_prog_compiler_static_GCJ='-Bstatic'
  11918. else
  11919. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  11920. fi
  11921. ;;
  11922. darwin*)
  11923. # PIC is the default on this platform
  11924. # Common symbols not allowed in MH_DYLIB files
  11925. case $cc_basename in
  11926. xlc*)
  11927. lt_prog_compiler_pic_GCJ='-qnocommon'
  11928. lt_prog_compiler_wl_GCJ='-Wl,'
  11929. ;;
  11930. esac
  11931. ;;
  11932. mingw* | pw32* | os2*)
  11933. # This hack is so that the source file can tell whether it is being
  11934. # built for inclusion in a dll (and should export symbols for example).
  11935. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  11936. ;;
  11937. hpux9* | hpux10* | hpux11*)
  11938. lt_prog_compiler_wl_GCJ='-Wl,'
  11939. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11940. # not for PA HP-UX.
  11941. case $host_cpu in
  11942. hppa*64*|ia64*)
  11943. # +Z the default
  11944. ;;
  11945. *)
  11946. lt_prog_compiler_pic_GCJ='+Z'
  11947. ;;
  11948. esac
  11949. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11950. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  11951. ;;
  11952. irix5* | irix6* | nonstopux*)
  11953. lt_prog_compiler_wl_GCJ='-Wl,'
  11954. # PIC (with -KPIC) is the default.
  11955. lt_prog_compiler_static_GCJ='-non_shared'
  11956. ;;
  11957. newsos6)
  11958. lt_prog_compiler_pic_GCJ='-KPIC'
  11959. lt_prog_compiler_static_GCJ='-Bstatic'
  11960. ;;
  11961. linux*)
  11962. case $cc_basename in
  11963. icc* | ecc*)
  11964. lt_prog_compiler_wl_GCJ='-Wl,'
  11965. lt_prog_compiler_pic_GCJ='-KPIC'
  11966. lt_prog_compiler_static_GCJ='-static'
  11967. ;;
  11968. pgcc* | pgf77* | pgf90* | pgf95*)
  11969. # Portland Group compilers (*not* the Pentium gcc compiler,
  11970. # which looks to be a dead project)
  11971. lt_prog_compiler_wl_GCJ='-Wl,'
  11972. lt_prog_compiler_pic_GCJ='-fpic'
  11973. lt_prog_compiler_static_GCJ='-Bstatic'
  11974. ;;
  11975. ccc*)
  11976. lt_prog_compiler_wl_GCJ='-Wl,'
  11977. # All Alpha code is PIC.
  11978. lt_prog_compiler_static_GCJ='-non_shared'
  11979. ;;
  11980. esac
  11981. ;;
  11982. osf3* | osf4* | osf5*)
  11983. lt_prog_compiler_wl_GCJ='-Wl,'
  11984. # All OSF/1 code is PIC.
  11985. lt_prog_compiler_static_GCJ='-non_shared'
  11986. ;;
  11987. sco3.2v5*)
  11988. lt_prog_compiler_pic_GCJ='-Kpic'
  11989. lt_prog_compiler_static_GCJ='-dn'
  11990. ;;
  11991. solaris*)
  11992. lt_prog_compiler_pic_GCJ='-KPIC'
  11993. lt_prog_compiler_static_GCJ='-Bstatic'
  11994. case $cc_basename in
  11995. f77* | f90* | f95*)
  11996. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  11997. *)
  11998. lt_prog_compiler_wl_GCJ='-Wl,';;
  11999. esac
  12000. ;;
  12001. sunos4*)
  12002. lt_prog_compiler_wl_GCJ='-Qoption ld '
  12003. lt_prog_compiler_pic_GCJ='-PIC'
  12004. lt_prog_compiler_static_GCJ='-Bstatic'
  12005. ;;
  12006. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  12007. lt_prog_compiler_wl_GCJ='-Wl,'
  12008. lt_prog_compiler_pic_GCJ='-KPIC'
  12009. lt_prog_compiler_static_GCJ='-Bstatic'
  12010. ;;
  12011. sysv4*MP*)
  12012. if test -d /usr/nec ;then
  12013. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  12014. lt_prog_compiler_static_GCJ='-Bstatic'
  12015. fi
  12016. ;;
  12017. unicos*)
  12018. lt_prog_compiler_wl_GCJ='-Wl,'
  12019. lt_prog_compiler_can_build_shared_GCJ=no
  12020. ;;
  12021. uts4*)
  12022. lt_prog_compiler_pic_GCJ='-pic'
  12023. lt_prog_compiler_static_GCJ='-Bstatic'
  12024. ;;
  12025. *)
  12026. lt_prog_compiler_can_build_shared_GCJ=no
  12027. ;;
  12028. esac
  12029. fi
  12030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
  12031. $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
  12032. #
  12033. # Check to make sure the PIC flag actually works.
  12034. #
  12035. if test -n "$lt_prog_compiler_pic_GCJ"; then
  12036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  12037. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
  12038. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then :
  12039. $as_echo_n "(cached) " >&6
  12040. else
  12041. lt_prog_compiler_pic_works_GCJ=no
  12042. ac_outfile=conftest.$ac_objext
  12043. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12044. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  12045. # Insert the option either (1) after the last *FLAGS variable, or
  12046. # (2) before a word containing "conftest.", or (3) at the end.
  12047. # Note that $ac_compile itself does not contain backslashes and begins
  12048. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12049. # The option is referenced via a variable to avoid confusing sed.
  12050. lt_compile=`echo "$ac_compile" | $SED \
  12051. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12052. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12053. -e 's:$: $lt_compiler_flag:'`
  12054. (eval echo "\"\$as_me:13596: $lt_compile\"" >&5)
  12055. (eval "$lt_compile" 2>conftest.err)
  12056. ac_status=$?
  12057. cat conftest.err >&5
  12058. echo "$as_me:13600: \$? = $ac_status" >&5
  12059. if (exit $ac_status) && test -s "$ac_outfile"; then
  12060. # The compiler can only warn and ignore the option if not recognized
  12061. # So say no if there are warnings other than the usual output.
  12062. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  12063. $SED '/^$/d' conftest.err >conftest.er2
  12064. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  12065. lt_prog_compiler_pic_works_GCJ=yes
  12066. fi
  12067. fi
  12068. $rm conftest*
  12069. fi
  12070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
  12071. $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
  12072. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  12073. case $lt_prog_compiler_pic_GCJ in
  12074. "" | " "*) ;;
  12075. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  12076. esac
  12077. else
  12078. lt_prog_compiler_pic_GCJ=
  12079. lt_prog_compiler_can_build_shared_GCJ=no
  12080. fi
  12081. fi
  12082. case $host_os in
  12083. # For platforms which do not support PIC, -DPIC is meaningless:
  12084. *djgpp*)
  12085. lt_prog_compiler_pic_GCJ=
  12086. ;;
  12087. *)
  12088. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  12089. ;;
  12090. esac
  12091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12092. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12093. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
  12094. $as_echo_n "(cached) " >&6
  12095. else
  12096. lt_cv_prog_compiler_c_o_GCJ=no
  12097. $rm -r conftest 2>/dev/null
  12098. mkdir conftest
  12099. cd conftest
  12100. mkdir out
  12101. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12102. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12103. # Insert the option either (1) after the last *FLAGS variable, or
  12104. # (2) before a word containing "conftest.", or (3) at the end.
  12105. # Note that $ac_compile itself does not contain backslashes and begins
  12106. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12107. lt_compile=`echo "$ac_compile" | $SED \
  12108. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12109. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12110. -e 's:$: $lt_compiler_flag:'`
  12111. (eval echo "\"\$as_me:13658: $lt_compile\"" >&5)
  12112. (eval "$lt_compile" 2>out/conftest.err)
  12113. ac_status=$?
  12114. cat out/conftest.err >&5
  12115. echo "$as_me:13662: \$? = $ac_status" >&5
  12116. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12117. then
  12118. # The compiler can only warn and ignore the option if not recognized
  12119. # So say no if there are warnings
  12120. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  12121. $SED '/^$/d' out/conftest.err >out/conftest.er2
  12122. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12123. lt_cv_prog_compiler_c_o_GCJ=yes
  12124. fi
  12125. fi
  12126. chmod u+w . 2>&5
  12127. $rm conftest*
  12128. # SGI C++ compiler will create directory out/ii_files/ for
  12129. # template instantiation
  12130. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12131. $rm out/* && rmdir out
  12132. cd ..
  12133. rmdir conftest
  12134. $rm conftest*
  12135. fi
  12136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  12137. $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  12138. hard_links="nottested"
  12139. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  12140. # do not overwrite the value of need_locks provided by the user
  12141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12142. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12143. hard_links=yes
  12144. $rm conftest*
  12145. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12146. touch conftest.a
  12147. ln conftest.a conftest.b 2>&5 || hard_links=no
  12148. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12150. $as_echo "$hard_links" >&6; }
  12151. if test "$hard_links" = no; then
  12152. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12153. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12154. need_locks=warn
  12155. fi
  12156. else
  12157. need_locks=no
  12158. fi
  12159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12160. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12161. runpath_var=
  12162. allow_undefined_flag_GCJ=
  12163. enable_shared_with_static_runtimes_GCJ=no
  12164. archive_cmds_GCJ=
  12165. archive_expsym_cmds_GCJ=
  12166. old_archive_From_new_cmds_GCJ=
  12167. old_archive_from_expsyms_cmds_GCJ=
  12168. export_dynamic_flag_spec_GCJ=
  12169. whole_archive_flag_spec_GCJ=
  12170. thread_safe_flag_spec_GCJ=
  12171. hardcode_libdir_flag_spec_GCJ=
  12172. hardcode_libdir_flag_spec_ld_GCJ=
  12173. hardcode_libdir_separator_GCJ=
  12174. hardcode_direct_GCJ=no
  12175. hardcode_minus_L_GCJ=no
  12176. hardcode_shlibpath_var_GCJ=unsupported
  12177. link_all_deplibs_GCJ=unknown
  12178. hardcode_automatic_GCJ=no
  12179. module_cmds_GCJ=
  12180. module_expsym_cmds_GCJ=
  12181. always_export_symbols_GCJ=no
  12182. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12183. # include_expsyms should be a list of space-separated symbols to be *always*
  12184. # included in the symbol list
  12185. include_expsyms_GCJ=
  12186. # exclude_expsyms can be an extended regexp of symbols to exclude
  12187. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  12188. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  12189. # as well as any symbol that contains `d'.
  12190. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  12191. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  12192. # platforms (ab)use it in PIC code, but their linkers get confused if
  12193. # the symbol is explicitly referenced. Since portable code cannot
  12194. # rely on this symbol name, it's probably fine to never include it in
  12195. # preloaded symbol tables.
  12196. extract_expsyms_cmds=
  12197. # Just being paranoid about ensuring that cc_basename is set.
  12198. for cc_temp in $compiler""; do
  12199. case $cc_temp in
  12200. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12201. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12202. \-*) ;;
  12203. *) break;;
  12204. esac
  12205. done
  12206. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12207. case $host_os in
  12208. cygwin* | mingw* | pw32*)
  12209. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  12210. # When not using gcc, we currently assume that we are using
  12211. # Microsoft Visual C++.
  12212. if test "$GCC" != yes; then
  12213. with_gnu_ld=no
  12214. fi
  12215. ;;
  12216. openbsd*)
  12217. with_gnu_ld=no
  12218. ;;
  12219. esac
  12220. ld_shlibs_GCJ=yes
  12221. if test "$with_gnu_ld" = yes; then
  12222. # If archive_cmds runs LD, not CC, wlarc should be empty
  12223. wlarc='${wl}'
  12224. # Set some defaults for GNU ld with shared library support. These
  12225. # are reset later if shared libraries are not supported. Putting them
  12226. # here allows them to be overridden if necessary.
  12227. runpath_var=LD_RUN_PATH
  12228. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  12229. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  12230. # ancient GNU ld didn't support --whole-archive et. al.
  12231. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  12232. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12233. else
  12234. whole_archive_flag_spec_GCJ=
  12235. fi
  12236. supports_anon_versioning=no
  12237. case `$LD -v 2>/dev/null` in
  12238. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  12239. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  12240. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  12241. *\ 2.11.*) ;; # other 2.11 versions
  12242. *) supports_anon_versioning=yes ;;
  12243. esac
  12244. # See if GNU ld supports shared libraries.
  12245. case $host_os in
  12246. aix3* | aix4* | aix5*)
  12247. # On AIX/PPC, the GNU linker is very broken
  12248. if test "$host_cpu" != ia64; then
  12249. ld_shlibs_GCJ=no
  12250. cat <<EOF 1>&2
  12251. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  12252. *** to be unable to reliably create shared libraries on AIX.
  12253. *** Therefore, libtool is disabling shared libraries support. If you
  12254. *** really care for shared libraries, you may want to modify your PATH
  12255. *** so that a non-GNU linker is found, and then restart.
  12256. EOF
  12257. fi
  12258. ;;
  12259. amigaos*)
  12260. archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  12261. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  12262. hardcode_minus_L_GCJ=yes
  12263. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  12264. # that the semantics of dynamic libraries on AmigaOS, at least up
  12265. # to version 4, is to share data among multiple programs linked
  12266. # with the same dynamic library. Since this doesn't match the
  12267. # behavior of shared libraries on other platforms, we can't use
  12268. # them.
  12269. ld_shlibs_GCJ=no
  12270. ;;
  12271. beos*)
  12272. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12273. allow_undefined_flag_GCJ=unsupported
  12274. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  12275. # support --undefined. This deserves some investigation. FIXME
  12276. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12277. else
  12278. ld_shlibs_GCJ=no
  12279. fi
  12280. ;;
  12281. cygwin* | mingw* | pw32*)
  12282. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  12283. # as there is no search path for DLLs.
  12284. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  12285. allow_undefined_flag_GCJ=unsupported
  12286. always_export_symbols_GCJ=no
  12287. enable_shared_with_static_runtimes_GCJ=yes
  12288. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  12289. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  12290. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  12291. # If the export-symbols file already is a .def file (1st line
  12292. # is EXPORTS), use it as is; otherwise, prepend...
  12293. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  12294. cp $export_symbols $output_objdir/$soname.def;
  12295. else
  12296. echo EXPORTS > $output_objdir/$soname.def;
  12297. cat $export_symbols >> $output_objdir/$soname.def;
  12298. fi~
  12299. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  12300. else
  12301. ld_shlibs_GCJ=no
  12302. fi
  12303. ;;
  12304. linux*)
  12305. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12306. tmp_addflag=
  12307. case $cc_basename,$host_cpu in
  12308. pgcc*) # Portland Group C compiler
  12309. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  12310. tmp_addflag=' $pic_flag'
  12311. ;;
  12312. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  12313. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  12314. tmp_addflag=' $pic_flag -Mnomain' ;;
  12315. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  12316. tmp_addflag=' -i_dynamic' ;;
  12317. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  12318. tmp_addflag=' -i_dynamic -nofor_main' ;;
  12319. ifc* | ifort*) # Intel Fortran compiler
  12320. tmp_addflag=' -nofor_main' ;;
  12321. esac
  12322. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12323. if test $supports_anon_versioning = yes; then
  12324. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  12325. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  12326. $echo "local: *; };" >> $output_objdir/$libname.ver~
  12327. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  12328. fi
  12329. else
  12330. ld_shlibs_GCJ=no
  12331. fi
  12332. ;;
  12333. netbsd*)
  12334. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12335. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  12336. wlarc=
  12337. else
  12338. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12339. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12340. fi
  12341. ;;
  12342. solaris* | sysv5*)
  12343. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  12344. ld_shlibs_GCJ=no
  12345. cat <<EOF 1>&2
  12346. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  12347. *** create shared libraries on Solaris systems. Therefore, libtool
  12348. *** is disabling shared libraries support. We urge you to upgrade GNU
  12349. *** binutils to release 2.9.1 or newer. Another option is to modify
  12350. *** your PATH or compiler configuration so that the native linker is
  12351. *** used, and then restart.
  12352. EOF
  12353. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12354. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12355. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12356. else
  12357. ld_shlibs_GCJ=no
  12358. fi
  12359. ;;
  12360. sunos4*)
  12361. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12362. wlarc=
  12363. hardcode_direct_GCJ=yes
  12364. hardcode_shlibpath_var_GCJ=no
  12365. ;;
  12366. *)
  12367. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  12368. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12369. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  12370. else
  12371. ld_shlibs_GCJ=no
  12372. fi
  12373. ;;
  12374. esac
  12375. if test "$ld_shlibs_GCJ" = no; then
  12376. runpath_var=
  12377. hardcode_libdir_flag_spec_GCJ=
  12378. export_dynamic_flag_spec_GCJ=
  12379. whole_archive_flag_spec_GCJ=
  12380. fi
  12381. else
  12382. # PORTME fill in a description of your system's linker (not GNU ld)
  12383. case $host_os in
  12384. aix3*)
  12385. allow_undefined_flag_GCJ=unsupported
  12386. always_export_symbols_GCJ=yes
  12387. archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  12388. # Note: this linker hardcodes the directories in LIBPATH if there
  12389. # are no directories specified by -L.
  12390. hardcode_minus_L_GCJ=yes
  12391. if test "$GCC" = yes && test -z "$link_static_flag"; then
  12392. # Neither direct hardcoding nor static linking is supported with a
  12393. # broken collect2.
  12394. hardcode_direct_GCJ=unsupported
  12395. fi
  12396. ;;
  12397. aix4* | aix5*)
  12398. if test "$host_cpu" = ia64; then
  12399. # On IA64, the linker does run time linking by default, so we don't
  12400. # have to do anything special.
  12401. aix_use_runtimelinking=no
  12402. exp_sym_flag='-Bexport'
  12403. no_entry_flag=""
  12404. else
  12405. # If we're using GNU nm, then we don't want the "-C" option.
  12406. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12407. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12408. export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  12409. else
  12410. export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  12411. fi
  12412. aix_use_runtimelinking=no
  12413. # Test if we are trying to use run time linking or normal
  12414. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  12415. # need to do runtime linking.
  12416. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  12417. for ld_flag in $LDFLAGS; do
  12418. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  12419. aix_use_runtimelinking=yes
  12420. break
  12421. fi
  12422. done
  12423. esac
  12424. exp_sym_flag='-bexport'
  12425. no_entry_flag='-bnoentry'
  12426. fi
  12427. # When large executables or shared objects are built, AIX ld can
  12428. # have problems creating the table of contents. If linking a library
  12429. # or program results in "error TOC overflow" add -mminimal-toc to
  12430. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  12431. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  12432. archive_cmds_GCJ=''
  12433. hardcode_direct_GCJ=yes
  12434. hardcode_libdir_separator_GCJ=':'
  12435. link_all_deplibs_GCJ=yes
  12436. if test "$GCC" = yes; then
  12437. case $host_os in aix4.[012]|aix4.[012].*)
  12438. # We only want to do this on AIX 4.2 and lower, the check
  12439. # below for broken collect2 doesn't work under 4.3+
  12440. collect2name=`${CC} -print-prog-name=collect2`
  12441. if test -f "$collect2name" && \
  12442. strings "$collect2name" | grep resolve_lib_name >/dev/null
  12443. then
  12444. # We have reworked collect2
  12445. hardcode_direct_GCJ=yes
  12446. else
  12447. # We have old collect2
  12448. hardcode_direct_GCJ=unsupported
  12449. # It fails to find uninstalled libraries when the uninstalled
  12450. # path is not listed in the libpath. Setting hardcode_minus_L
  12451. # to unsupported forces relinking
  12452. hardcode_minus_L_GCJ=yes
  12453. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  12454. hardcode_libdir_separator_GCJ=
  12455. fi
  12456. esac
  12457. shared_flag='-shared'
  12458. if test "$aix_use_runtimelinking" = yes; then
  12459. shared_flag="$shared_flag "'${wl}-G'
  12460. fi
  12461. else
  12462. # not using gcc
  12463. if test "$host_cpu" = ia64; then
  12464. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  12465. # chokes on -Wl,-G. The following line is correct:
  12466. shared_flag='-G'
  12467. else
  12468. if test "$aix_use_runtimelinking" = yes; then
  12469. shared_flag='${wl}-G'
  12470. else
  12471. shared_flag='${wl}-bM:SRE'
  12472. fi
  12473. fi
  12474. fi
  12475. # It seems that -bexpall does not export symbols beginning with
  12476. # underscore (_), so it is better to generate a list of symbols to export.
  12477. always_export_symbols_GCJ=yes
  12478. if test "$aix_use_runtimelinking" = yes; then
  12479. # Warning - without using the other runtime loading flags (-brtl),
  12480. # -berok will link without error, but may produce a broken library.
  12481. allow_undefined_flag_GCJ='-berok'
  12482. # Determine the default libpath from the value encoded in an empty executable.
  12483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12484. /* end confdefs.h. */
  12485. int
  12486. main ()
  12487. {
  12488. ;
  12489. return 0;
  12490. }
  12491. _ACEOF
  12492. if ac_fn_c_try_link "$LINENO"; then :
  12493. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12494. }'`
  12495. # Check for a 64-bit object if we didn't find anything.
  12496. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12497. }'`; fi
  12498. fi
  12499. rm -f core conftest.err conftest.$ac_objext \
  12500. conftest$ac_exeext conftest.$ac_ext
  12501. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12502. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  12503. archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  12504. else
  12505. if test "$host_cpu" = ia64; then
  12506. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  12507. allow_undefined_flag_GCJ="-z nodefs"
  12508. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  12509. else
  12510. # Determine the default libpath from the value encoded in an empty executable.
  12511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12512. /* end confdefs.h. */
  12513. int
  12514. main ()
  12515. {
  12516. ;
  12517. return 0;
  12518. }
  12519. _ACEOF
  12520. if ac_fn_c_try_link "$LINENO"; then :
  12521. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12522. }'`
  12523. # Check for a 64-bit object if we didn't find anything.
  12524. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  12525. }'`; fi
  12526. fi
  12527. rm -f core conftest.err conftest.$ac_objext \
  12528. conftest$ac_exeext conftest.$ac_ext
  12529. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  12530. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  12531. # Warning - without using the other run time loading flags,
  12532. # -berok will link without error, but may produce a broken library.
  12533. no_undefined_flag_GCJ=' ${wl}-bernotok'
  12534. allow_undefined_flag_GCJ=' ${wl}-berok'
  12535. # -bexpall does not export symbols beginning with underscore (_)
  12536. always_export_symbols_GCJ=yes
  12537. # Exported symbols can be pulled into shared objects from archives
  12538. whole_archive_flag_spec_GCJ=' '
  12539. archive_cmds_need_lc_GCJ=yes
  12540. # This is similar to how AIX traditionally builds its shared libraries.
  12541. archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  12542. fi
  12543. fi
  12544. ;;
  12545. amigaos*)
  12546. archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  12547. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  12548. hardcode_minus_L_GCJ=yes
  12549. # see comment about different semantics on the GNU ld section
  12550. ld_shlibs_GCJ=no
  12551. ;;
  12552. bsdi[45]*)
  12553. export_dynamic_flag_spec_GCJ=-rdynamic
  12554. ;;
  12555. cygwin* | mingw* | pw32*)
  12556. # When not using gcc, we currently assume that we are using
  12557. # Microsoft Visual C++.
  12558. # hardcode_libdir_flag_spec is actually meaningless, as there is
  12559. # no search path for DLLs.
  12560. hardcode_libdir_flag_spec_GCJ=' '
  12561. allow_undefined_flag_GCJ=unsupported
  12562. # Tell ltmain to make .lib files, not .a files.
  12563. libext=lib
  12564. # Tell ltmain to make .dll files, not .so files.
  12565. shrext_cmds=".dll"
  12566. # FIXME: Setting linknames here is a bad hack.
  12567. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12568. # The linker will automatically build a .lib file if we build a DLL.
  12569. old_archive_From_new_cmds_GCJ='true'
  12570. # FIXME: Should let the user specify the lib program.
  12571. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  12572. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  12573. enable_shared_with_static_runtimes_GCJ=yes
  12574. ;;
  12575. darwin* | rhapsody*)
  12576. case $host_os in
  12577. rhapsody* | darwin1.[012])
  12578. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  12579. ;;
  12580. *) # Darwin 1.3 on
  12581. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  12582. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12583. else
  12584. case ${MACOSX_DEPLOYMENT_TARGET} in
  12585. 10.[012])
  12586. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12587. ;;
  12588. 10.*)
  12589. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  12590. ;;
  12591. esac
  12592. fi
  12593. ;;
  12594. esac
  12595. archive_cmds_need_lc_GCJ=no
  12596. hardcode_direct_GCJ=no
  12597. hardcode_automatic_GCJ=yes
  12598. hardcode_shlibpath_var_GCJ=unsupported
  12599. whole_archive_flag_spec_GCJ=''
  12600. link_all_deplibs_GCJ=yes
  12601. if test "$GCC" = yes ; then
  12602. output_verbose_link_cmd='echo'
  12603. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12604. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12605. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12606. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12607. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12608. else
  12609. case $cc_basename in
  12610. xlc*)
  12611. output_verbose_link_cmd='echo'
  12612. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  12613. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12614. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  12615. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12616. module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  12617. ;;
  12618. *)
  12619. ld_shlibs_GCJ=no
  12620. ;;
  12621. esac
  12622. fi
  12623. ;;
  12624. dgux*)
  12625. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12626. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  12627. hardcode_shlibpath_var_GCJ=no
  12628. ;;
  12629. freebsd1*)
  12630. ld_shlibs_GCJ=no
  12631. ;;
  12632. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12633. # support. Future versions do this automatically, but an explicit c++rt0.o
  12634. # does not break anything, and helps significantly (at the cost of a little
  12635. # extra space).
  12636. freebsd2.2*)
  12637. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12638. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  12639. hardcode_direct_GCJ=yes
  12640. hardcode_shlibpath_var_GCJ=no
  12641. ;;
  12642. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12643. freebsd2*)
  12644. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12645. hardcode_direct_GCJ=yes
  12646. hardcode_minus_L_GCJ=yes
  12647. hardcode_shlibpath_var_GCJ=no
  12648. ;;
  12649. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12650. freebsd* | kfreebsd*-gnu | dragonfly*)
  12651. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12652. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  12653. hardcode_direct_GCJ=yes
  12654. hardcode_shlibpath_var_GCJ=no
  12655. ;;
  12656. hpux9*)
  12657. if test "$GCC" = yes; then
  12658. archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  12659. else
  12660. archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  12661. fi
  12662. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  12663. hardcode_libdir_separator_GCJ=:
  12664. hardcode_direct_GCJ=yes
  12665. # hardcode_minus_L: Not really in the search PATH,
  12666. # but as the default location of the library.
  12667. hardcode_minus_L_GCJ=yes
  12668. export_dynamic_flag_spec_GCJ='${wl}-E'
  12669. ;;
  12670. hpux10* | hpux11*)
  12671. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12672. case $host_cpu in
  12673. hppa*64*|ia64*)
  12674. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12675. ;;
  12676. *)
  12677. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12678. ;;
  12679. esac
  12680. else
  12681. case $host_cpu in
  12682. hppa*64*|ia64*)
  12683. archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  12684. ;;
  12685. *)
  12686. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12687. ;;
  12688. esac
  12689. fi
  12690. if test "$with_gnu_ld" = no; then
  12691. case $host_cpu in
  12692. hppa*64*)
  12693. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  12694. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  12695. hardcode_libdir_separator_GCJ=:
  12696. hardcode_direct_GCJ=no
  12697. hardcode_shlibpath_var_GCJ=no
  12698. ;;
  12699. ia64*)
  12700. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  12701. hardcode_direct_GCJ=no
  12702. hardcode_shlibpath_var_GCJ=no
  12703. # hardcode_minus_L: Not really in the search PATH,
  12704. # but as the default location of the library.
  12705. hardcode_minus_L_GCJ=yes
  12706. ;;
  12707. *)
  12708. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  12709. hardcode_libdir_separator_GCJ=:
  12710. hardcode_direct_GCJ=yes
  12711. export_dynamic_flag_spec_GCJ='${wl}-E'
  12712. # hardcode_minus_L: Not really in the search PATH,
  12713. # but as the default location of the library.
  12714. hardcode_minus_L_GCJ=yes
  12715. ;;
  12716. esac
  12717. fi
  12718. ;;
  12719. irix5* | irix6* | nonstopux*)
  12720. if test "$GCC" = yes; then
  12721. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12722. else
  12723. archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12724. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  12725. fi
  12726. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  12727. hardcode_libdir_separator_GCJ=:
  12728. link_all_deplibs_GCJ=yes
  12729. ;;
  12730. netbsd*)
  12731. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12732. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12733. else
  12734. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12735. fi
  12736. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  12737. hardcode_direct_GCJ=yes
  12738. hardcode_shlibpath_var_GCJ=no
  12739. ;;
  12740. newsos6)
  12741. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12742. hardcode_direct_GCJ=yes
  12743. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  12744. hardcode_libdir_separator_GCJ=:
  12745. hardcode_shlibpath_var_GCJ=no
  12746. ;;
  12747. openbsd*)
  12748. hardcode_direct_GCJ=yes
  12749. hardcode_shlibpath_var_GCJ=no
  12750. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12751. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12752. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12753. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  12754. export_dynamic_flag_spec_GCJ='${wl}-E'
  12755. else
  12756. case $host_os in
  12757. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  12758. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12759. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  12760. ;;
  12761. *)
  12762. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12763. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  12764. ;;
  12765. esac
  12766. fi
  12767. ;;
  12768. os2*)
  12769. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  12770. hardcode_minus_L_GCJ=yes
  12771. allow_undefined_flag_GCJ=unsupported
  12772. archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  12773. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12774. ;;
  12775. osf3*)
  12776. if test "$GCC" = yes; then
  12777. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  12778. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12779. else
  12780. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  12781. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12782. fi
  12783. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  12784. hardcode_libdir_separator_GCJ=:
  12785. ;;
  12786. osf4* | osf5*) # as osf3* with the addition of -msym flag
  12787. if test "$GCC" = yes; then
  12788. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  12789. archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12790. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  12791. else
  12792. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  12793. archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12794. archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  12795. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  12796. # Both c and cxx compiler support -rpath directly
  12797. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  12798. fi
  12799. hardcode_libdir_separator_GCJ=:
  12800. ;;
  12801. sco3.2v5*)
  12802. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12803. hardcode_shlibpath_var_GCJ=no
  12804. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  12805. runpath_var=LD_RUN_PATH
  12806. hardcode_runpath_var=yes
  12807. ;;
  12808. solaris*)
  12809. no_undefined_flag_GCJ=' -z text'
  12810. if test "$GCC" = yes; then
  12811. wlarc='${wl}'
  12812. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12813. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12814. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12815. else
  12816. wlarc=''
  12817. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12818. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12819. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12820. fi
  12821. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  12822. hardcode_shlibpath_var_GCJ=no
  12823. case $host_os in
  12824. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12825. *)
  12826. # The compiler driver will combine linker options so we
  12827. # cannot just pass the convience library names through
  12828. # without $wl, iff we do not link with $LD.
  12829. # Luckily, gcc supports the same syntax we need for Sun Studio.
  12830. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12831. case $wlarc in
  12832. '')
  12833. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  12834. *)
  12835. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  12836. esac ;;
  12837. esac
  12838. link_all_deplibs_GCJ=yes
  12839. ;;
  12840. sunos4*)
  12841. if test "x$host_vendor" = xsequent; then
  12842. # Use $CC to link under sequent, because it throws in some extra .o
  12843. # files that make .init and .fini sections work.
  12844. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12845. else
  12846. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12847. fi
  12848. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  12849. hardcode_direct_GCJ=yes
  12850. hardcode_minus_L_GCJ=yes
  12851. hardcode_shlibpath_var_GCJ=no
  12852. ;;
  12853. sysv4)
  12854. case $host_vendor in
  12855. sni)
  12856. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12857. hardcode_direct_GCJ=yes # is this really true???
  12858. ;;
  12859. siemens)
  12860. ## LD is ld it makes a PLAMLIB
  12861. ## CC just makes a GrossModule.
  12862. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12863. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  12864. hardcode_direct_GCJ=no
  12865. ;;
  12866. motorola)
  12867. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12868. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  12869. ;;
  12870. esac
  12871. runpath_var='LD_RUN_PATH'
  12872. hardcode_shlibpath_var_GCJ=no
  12873. ;;
  12874. sysv4.3*)
  12875. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12876. hardcode_shlibpath_var_GCJ=no
  12877. export_dynamic_flag_spec_GCJ='-Bexport'
  12878. ;;
  12879. sysv4*MP*)
  12880. if test -d /usr/nec; then
  12881. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12882. hardcode_shlibpath_var_GCJ=no
  12883. runpath_var=LD_RUN_PATH
  12884. hardcode_runpath_var=yes
  12885. ld_shlibs_GCJ=yes
  12886. fi
  12887. ;;
  12888. sysv4.2uw2*)
  12889. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12890. hardcode_direct_GCJ=yes
  12891. hardcode_minus_L_GCJ=no
  12892. hardcode_shlibpath_var_GCJ=no
  12893. hardcode_runpath_var=yes
  12894. runpath_var=LD_RUN_PATH
  12895. ;;
  12896. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  12897. no_undefined_flag_GCJ='${wl}-z ${wl}text'
  12898. if test "$GCC" = yes; then
  12899. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12900. else
  12901. archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12902. fi
  12903. runpath_var='LD_RUN_PATH'
  12904. hardcode_shlibpath_var_GCJ=no
  12905. ;;
  12906. sysv5*)
  12907. no_undefined_flag_GCJ=' -z text'
  12908. # $CC -shared without GNU ld will not create a library from C++
  12909. # object files and a static libstdc++, better avoid it by now
  12910. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12911. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12912. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12913. hardcode_libdir_flag_spec_GCJ=
  12914. hardcode_shlibpath_var_GCJ=no
  12915. runpath_var='LD_RUN_PATH'
  12916. ;;
  12917. uts4*)
  12918. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12919. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  12920. hardcode_shlibpath_var_GCJ=no
  12921. ;;
  12922. *)
  12923. ld_shlibs_GCJ=no
  12924. ;;
  12925. esac
  12926. fi
  12927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
  12928. $as_echo "$ld_shlibs_GCJ" >&6; }
  12929. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  12930. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12931. if test "$GCC" = yes; then
  12932. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12933. fi
  12934. #
  12935. # Do we need to explicitly link libc?
  12936. #
  12937. case "x$archive_cmds_need_lc_GCJ" in
  12938. x|xyes)
  12939. # Assume -lc should be added
  12940. archive_cmds_need_lc_GCJ=yes
  12941. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12942. case $archive_cmds_GCJ in
  12943. *'~'*)
  12944. # FIXME: we may have to deal with multi-command sequences.
  12945. ;;
  12946. '$CC '*)
  12947. # Test whether the compiler implicitly links with -lc since on some
  12948. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12949. # to ld, don't add -lc before -lgcc.
  12950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12951. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12952. $rm conftest*
  12953. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12954. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12955. (eval $ac_compile) 2>&5
  12956. ac_status=$?
  12957. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12958. test $ac_status = 0; } 2>conftest.err; then
  12959. soname=conftest
  12960. lib=conftest
  12961. libobjs=conftest.$ac_objext
  12962. deplibs=
  12963. wl=$lt_prog_compiler_wl_GCJ
  12964. compiler_flags=-v
  12965. linker_flags=-v
  12966. verstring=
  12967. output_objdir=.
  12968. libname=conftest
  12969. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  12970. allow_undefined_flag_GCJ=
  12971. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12972. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12973. ac_status=$?
  12974. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12975. test $ac_status = 0; }
  12976. then
  12977. archive_cmds_need_lc_GCJ=no
  12978. else
  12979. archive_cmds_need_lc_GCJ=yes
  12980. fi
  12981. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  12982. else
  12983. cat conftest.err 1>&5
  12984. fi
  12985. $rm conftest*
  12986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
  12987. $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
  12988. ;;
  12989. esac
  12990. fi
  12991. ;;
  12992. esac
  12993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12994. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12995. library_names_spec=
  12996. libname_spec='lib$name'
  12997. soname_spec=
  12998. shrext_cmds=".so"
  12999. postinstall_cmds=
  13000. postuninstall_cmds=
  13001. finish_cmds=
  13002. finish_eval=
  13003. shlibpath_var=
  13004. shlibpath_overrides_runpath=unknown
  13005. version_type=none
  13006. dynamic_linker="$host_os ld.so"
  13007. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13008. if test "$GCC" = yes; then
  13009. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13010. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  13011. # if the path contains ";" then we assume it to be the separator
  13012. # otherwise default to the standard path separator (i.e. ":") - it is
  13013. # assumed that no part of a normal pathname contains ";" but that should
  13014. # okay in the real world where ";" in dirpaths is itself problematic.
  13015. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13016. else
  13017. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13018. fi
  13019. else
  13020. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13021. fi
  13022. need_lib_prefix=unknown
  13023. hardcode_into_libs=no
  13024. # when you set need_version to no, make sure it does not cause -set_version
  13025. # flags to be left without arguments
  13026. need_version=unknown
  13027. case $host_os in
  13028. aix3*)
  13029. version_type=linux
  13030. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13031. shlibpath_var=LIBPATH
  13032. # AIX 3 has no versioning support, so we append a major version to the name.
  13033. soname_spec='${libname}${release}${shared_ext}$major'
  13034. ;;
  13035. aix4* | aix5*)
  13036. version_type=linux
  13037. need_lib_prefix=no
  13038. need_version=no
  13039. hardcode_into_libs=yes
  13040. if test "$host_cpu" = ia64; then
  13041. # AIX 5 supports IA64
  13042. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13043. shlibpath_var=LD_LIBRARY_PATH
  13044. else
  13045. # With GCC up to 2.95.x, collect2 would create an import file
  13046. # for dependence libraries. The import file would start with
  13047. # the line `#! .'. This would cause the generated library to
  13048. # depend on `.', always an invalid library. This was fixed in
  13049. # development snapshots of GCC prior to 3.0.
  13050. case $host_os in
  13051. aix4 | aix4.[01] | aix4.[01].*)
  13052. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13053. echo ' yes '
  13054. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13055. :
  13056. else
  13057. can_build_shared=no
  13058. fi
  13059. ;;
  13060. esac
  13061. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13062. # soname into executable. Probably we can add versioning support to
  13063. # collect2, so additional links can be useful in future.
  13064. if test "$aix_use_runtimelinking" = yes; then
  13065. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13066. # instead of lib<name>.a to let people know that these are not
  13067. # typical AIX shared libraries.
  13068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13069. else
  13070. # We preserve .a as extension for shared libraries through AIX4.2
  13071. # and later when we are not doing run time linking.
  13072. library_names_spec='${libname}${release}.a $libname.a'
  13073. soname_spec='${libname}${release}${shared_ext}$major'
  13074. fi
  13075. shlibpath_var=LIBPATH
  13076. fi
  13077. ;;
  13078. amigaos*)
  13079. library_names_spec='$libname.ixlibrary $libname.a'
  13080. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13081. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  13082. ;;
  13083. beos*)
  13084. library_names_spec='${libname}${shared_ext}'
  13085. dynamic_linker="$host_os ld.so"
  13086. shlibpath_var=LIBRARY_PATH
  13087. ;;
  13088. bsdi[45]*)
  13089. version_type=linux
  13090. need_version=no
  13091. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13092. soname_spec='${libname}${release}${shared_ext}$major'
  13093. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13094. shlibpath_var=LD_LIBRARY_PATH
  13095. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13096. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13097. # the default ld.so.conf also contains /usr/contrib/lib and
  13098. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13099. # libtool to hard-code these into programs
  13100. ;;
  13101. cygwin* | mingw* | pw32*)
  13102. version_type=windows
  13103. shrext_cmds=".dll"
  13104. need_version=no
  13105. need_lib_prefix=no
  13106. case $GCC,$host_os in
  13107. yes,cygwin* | yes,mingw* | yes,pw32*)
  13108. library_names_spec='$libname.dll.a'
  13109. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13110. postinstall_cmds='base_file=`basename \${file}`~
  13111. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  13112. dldir=$destdir/`dirname \$dlpath`~
  13113. test -d \$dldir || mkdir -p \$dldir~
  13114. $install_prog $dir/$dlname \$dldir/$dlname~
  13115. chmod a+x \$dldir/$dlname'
  13116. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13117. dlpath=$dir/\$dldll~
  13118. $rm \$dlpath'
  13119. shlibpath_overrides_runpath=yes
  13120. case $host_os in
  13121. cygwin*)
  13122. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13123. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13124. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13125. ;;
  13126. mingw*)
  13127. # MinGW DLLs use traditional 'lib' prefix
  13128. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13129. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13130. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  13131. # It is most probably a Windows format PATH printed by
  13132. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13133. # path with ; separators, and with drive letters. We can handle the
  13134. # drive letters (cygwin fileutils understands them), so leave them,
  13135. # especially as we might pass files found there to a mingw objdump,
  13136. # which wouldn't understand a cygwinified path. Ahh.
  13137. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13138. else
  13139. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13140. fi
  13141. ;;
  13142. pw32*)
  13143. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13144. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13145. ;;
  13146. esac
  13147. ;;
  13148. *)
  13149. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13150. ;;
  13151. esac
  13152. dynamic_linker='Win32 ld.exe'
  13153. # FIXME: first we should search . and the directory the executable is in
  13154. shlibpath_var=PATH
  13155. ;;
  13156. darwin* | rhapsody*)
  13157. dynamic_linker="$host_os dyld"
  13158. version_type=darwin
  13159. need_lib_prefix=no
  13160. need_version=no
  13161. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13162. soname_spec='${libname}${release}${major}$shared_ext'
  13163. shlibpath_overrides_runpath=yes
  13164. shlibpath_var=DYLD_LIBRARY_PATH
  13165. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13166. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  13167. if test "$GCC" = yes; then
  13168. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  13169. else
  13170. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  13171. fi
  13172. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13173. ;;
  13174. dgux*)
  13175. version_type=linux
  13176. need_lib_prefix=no
  13177. need_version=no
  13178. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13179. soname_spec='${libname}${release}${shared_ext}$major'
  13180. shlibpath_var=LD_LIBRARY_PATH
  13181. ;;
  13182. freebsd1*)
  13183. dynamic_linker=no
  13184. ;;
  13185. kfreebsd*-gnu)
  13186. version_type=linux
  13187. need_lib_prefix=no
  13188. need_version=no
  13189. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13190. soname_spec='${libname}${release}${shared_ext}$major'
  13191. shlibpath_var=LD_LIBRARY_PATH
  13192. shlibpath_overrides_runpath=no
  13193. hardcode_into_libs=yes
  13194. dynamic_linker='GNU ld.so'
  13195. ;;
  13196. freebsd* | dragonfly*)
  13197. # DragonFly does not have aout. When/if they implement a new
  13198. # versioning mechanism, adjust this.
  13199. if test -x /usr/bin/objformat; then
  13200. objformat=`/usr/bin/objformat`
  13201. else
  13202. case $host_os in
  13203. freebsd[123]*) objformat=aout ;;
  13204. *) objformat=elf ;;
  13205. esac
  13206. fi
  13207. version_type=freebsd-$objformat
  13208. case $version_type in
  13209. freebsd-elf*)
  13210. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13211. need_version=no
  13212. need_lib_prefix=no
  13213. ;;
  13214. freebsd-*)
  13215. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13216. need_version=yes
  13217. ;;
  13218. esac
  13219. shlibpath_var=LD_LIBRARY_PATH
  13220. case $host_os in
  13221. freebsd2*)
  13222. shlibpath_overrides_runpath=yes
  13223. ;;
  13224. freebsd3.[01]* | freebsdelf3.[01]*)
  13225. shlibpath_overrides_runpath=yes
  13226. hardcode_into_libs=yes
  13227. ;;
  13228. *) # from 3.2 on
  13229. shlibpath_overrides_runpath=no
  13230. hardcode_into_libs=yes
  13231. ;;
  13232. esac
  13233. ;;
  13234. gnu*)
  13235. version_type=linux
  13236. need_lib_prefix=no
  13237. need_version=no
  13238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13239. soname_spec='${libname}${release}${shared_ext}$major'
  13240. shlibpath_var=LD_LIBRARY_PATH
  13241. hardcode_into_libs=yes
  13242. ;;
  13243. hpux9* | hpux10* | hpux11*)
  13244. # Give a soname corresponding to the major version so that dld.sl refuses to
  13245. # link against other versions.
  13246. version_type=sunos
  13247. need_lib_prefix=no
  13248. need_version=no
  13249. case $host_cpu in
  13250. ia64*)
  13251. shrext_cmds='.so'
  13252. hardcode_into_libs=yes
  13253. dynamic_linker="$host_os dld.so"
  13254. shlibpath_var=LD_LIBRARY_PATH
  13255. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13256. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13257. soname_spec='${libname}${release}${shared_ext}$major'
  13258. if test "X$HPUX_IA64_MODE" = X32; then
  13259. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13260. else
  13261. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13262. fi
  13263. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13264. ;;
  13265. hppa*64*)
  13266. shrext_cmds='.sl'
  13267. hardcode_into_libs=yes
  13268. dynamic_linker="$host_os dld.sl"
  13269. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13270. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13271. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13272. soname_spec='${libname}${release}${shared_ext}$major'
  13273. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13274. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13275. ;;
  13276. *)
  13277. shrext_cmds='.sl'
  13278. dynamic_linker="$host_os dld.sl"
  13279. shlibpath_var=SHLIB_PATH
  13280. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13281. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13282. soname_spec='${libname}${release}${shared_ext}$major'
  13283. ;;
  13284. esac
  13285. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13286. postinstall_cmds='chmod 555 $lib'
  13287. ;;
  13288. irix5* | irix6* | nonstopux*)
  13289. case $host_os in
  13290. nonstopux*) version_type=nonstopux ;;
  13291. *)
  13292. if test "$lt_cv_prog_gnu_ld" = yes; then
  13293. version_type=linux
  13294. else
  13295. version_type=irix
  13296. fi ;;
  13297. esac
  13298. need_lib_prefix=no
  13299. need_version=no
  13300. soname_spec='${libname}${release}${shared_ext}$major'
  13301. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13302. case $host_os in
  13303. irix5* | nonstopux*)
  13304. libsuff= shlibsuff=
  13305. ;;
  13306. *)
  13307. case $LD in # libtool.m4 will add one of these switches to LD
  13308. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13309. libsuff= shlibsuff= libmagic=32-bit;;
  13310. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13311. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13312. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13313. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13314. *) libsuff= shlibsuff= libmagic=never-match;;
  13315. esac
  13316. ;;
  13317. esac
  13318. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13319. shlibpath_overrides_runpath=no
  13320. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13321. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13322. hardcode_into_libs=yes
  13323. ;;
  13324. # No shared lib support for Linux oldld, aout, or coff.
  13325. linux*oldld* | linux*aout* | linux*coff*)
  13326. dynamic_linker=no
  13327. ;;
  13328. # This must be Linux ELF.
  13329. linux*)
  13330. version_type=linux
  13331. need_lib_prefix=no
  13332. need_version=no
  13333. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13334. soname_spec='${libname}${release}${shared_ext}$major'
  13335. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13336. shlibpath_var=LD_LIBRARY_PATH
  13337. shlibpath_overrides_runpath=no
  13338. # This implies no fast_install, which is unacceptable.
  13339. # Some rework will be needed to allow for fast_install
  13340. # before this can be enabled.
  13341. hardcode_into_libs=yes
  13342. # Append ld.so.conf contents to the search path
  13343. if test -f /etc/ld.so.conf; then
  13344. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  13345. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13346. fi
  13347. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13348. # powerpc, because MkLinux only supported shared libraries with the
  13349. # GNU dynamic linker. Since this was broken with cross compilers,
  13350. # most powerpc-linux boxes support dynamic linking these days and
  13351. # people can always --disable-shared, the test was removed, and we
  13352. # assume the GNU/Linux dynamic linker is in use.
  13353. dynamic_linker='GNU/Linux ld.so'
  13354. ;;
  13355. knetbsd*-gnu)
  13356. version_type=linux
  13357. need_lib_prefix=no
  13358. need_version=no
  13359. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13360. soname_spec='${libname}${release}${shared_ext}$major'
  13361. shlibpath_var=LD_LIBRARY_PATH
  13362. shlibpath_overrides_runpath=no
  13363. hardcode_into_libs=yes
  13364. dynamic_linker='GNU ld.so'
  13365. ;;
  13366. netbsd*)
  13367. version_type=sunos
  13368. need_lib_prefix=no
  13369. need_version=no
  13370. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13371. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13372. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13373. dynamic_linker='NetBSD (a.out) ld.so'
  13374. else
  13375. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13376. soname_spec='${libname}${release}${shared_ext}$major'
  13377. dynamic_linker='NetBSD ld.elf_so'
  13378. fi
  13379. shlibpath_var=LD_LIBRARY_PATH
  13380. shlibpath_overrides_runpath=yes
  13381. hardcode_into_libs=yes
  13382. ;;
  13383. newsos6)
  13384. version_type=linux
  13385. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13386. shlibpath_var=LD_LIBRARY_PATH
  13387. shlibpath_overrides_runpath=yes
  13388. ;;
  13389. nto-qnx*)
  13390. version_type=linux
  13391. need_lib_prefix=no
  13392. need_version=no
  13393. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13394. soname_spec='${libname}${release}${shared_ext}$major'
  13395. shlibpath_var=LD_LIBRARY_PATH
  13396. shlibpath_overrides_runpath=yes
  13397. ;;
  13398. openbsd*)
  13399. version_type=sunos
  13400. need_lib_prefix=no
  13401. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13402. case $host_os in
  13403. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13404. *) need_version=no ;;
  13405. esac
  13406. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13407. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13408. shlibpath_var=LD_LIBRARY_PATH
  13409. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13410. case $host_os in
  13411. openbsd2.[89] | openbsd2.[89].*)
  13412. shlibpath_overrides_runpath=no
  13413. ;;
  13414. *)
  13415. shlibpath_overrides_runpath=yes
  13416. ;;
  13417. esac
  13418. else
  13419. shlibpath_overrides_runpath=yes
  13420. fi
  13421. ;;
  13422. os2*)
  13423. libname_spec='$name'
  13424. shrext_cmds=".dll"
  13425. need_lib_prefix=no
  13426. library_names_spec='$libname${shared_ext} $libname.a'
  13427. dynamic_linker='OS/2 ld.exe'
  13428. shlibpath_var=LIBPATH
  13429. ;;
  13430. osf3* | osf4* | osf5*)
  13431. version_type=osf
  13432. need_lib_prefix=no
  13433. need_version=no
  13434. soname_spec='${libname}${release}${shared_ext}$major'
  13435. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13436. shlibpath_var=LD_LIBRARY_PATH
  13437. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13438. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13439. ;;
  13440. sco3.2v5*)
  13441. version_type=osf
  13442. soname_spec='${libname}${release}${shared_ext}$major'
  13443. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13444. shlibpath_var=LD_LIBRARY_PATH
  13445. ;;
  13446. solaris*)
  13447. version_type=linux
  13448. need_lib_prefix=no
  13449. need_version=no
  13450. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13451. soname_spec='${libname}${release}${shared_ext}$major'
  13452. shlibpath_var=LD_LIBRARY_PATH
  13453. shlibpath_overrides_runpath=yes
  13454. hardcode_into_libs=yes
  13455. # ldd complains unless libraries are executable
  13456. postinstall_cmds='chmod +x $lib'
  13457. ;;
  13458. sunos4*)
  13459. version_type=sunos
  13460. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13461. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13462. shlibpath_var=LD_LIBRARY_PATH
  13463. shlibpath_overrides_runpath=yes
  13464. if test "$with_gnu_ld" = yes; then
  13465. need_lib_prefix=no
  13466. fi
  13467. need_version=yes
  13468. ;;
  13469. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  13470. version_type=linux
  13471. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13472. soname_spec='${libname}${release}${shared_ext}$major'
  13473. shlibpath_var=LD_LIBRARY_PATH
  13474. case $host_vendor in
  13475. sni)
  13476. shlibpath_overrides_runpath=no
  13477. need_lib_prefix=no
  13478. export_dynamic_flag_spec='${wl}-Blargedynsym'
  13479. runpath_var=LD_RUN_PATH
  13480. ;;
  13481. siemens)
  13482. need_lib_prefix=no
  13483. ;;
  13484. motorola)
  13485. need_lib_prefix=no
  13486. need_version=no
  13487. shlibpath_overrides_runpath=no
  13488. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13489. ;;
  13490. esac
  13491. ;;
  13492. sysv4*MP*)
  13493. if test -d /usr/nec ;then
  13494. version_type=linux
  13495. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13496. soname_spec='$libname${shared_ext}.$major'
  13497. shlibpath_var=LD_LIBRARY_PATH
  13498. fi
  13499. ;;
  13500. uts4*)
  13501. version_type=linux
  13502. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13503. soname_spec='${libname}${release}${shared_ext}$major'
  13504. shlibpath_var=LD_LIBRARY_PATH
  13505. ;;
  13506. *)
  13507. dynamic_linker=no
  13508. ;;
  13509. esac
  13510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13511. $as_echo "$dynamic_linker" >&6; }
  13512. test "$dynamic_linker" = no && can_build_shared=no
  13513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13514. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13515. hardcode_action_GCJ=
  13516. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  13517. test -n "$runpath_var_GCJ" || \
  13518. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  13519. # We can hardcode non-existant directories.
  13520. if test "$hardcode_direct_GCJ" != no &&
  13521. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13522. # have to relink, otherwise we might link with an installed library
  13523. # when we should be linking with a yet-to-be-installed one
  13524. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  13525. test "$hardcode_minus_L_GCJ" != no; then
  13526. # Linking always hardcodes the temporary library directory.
  13527. hardcode_action_GCJ=relink
  13528. else
  13529. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13530. hardcode_action_GCJ=immediate
  13531. fi
  13532. else
  13533. # We cannot hardcode anything, or else we can only hardcode existing
  13534. # directories.
  13535. hardcode_action_GCJ=unsupported
  13536. fi
  13537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
  13538. $as_echo "$hardcode_action_GCJ" >&6; }
  13539. if test "$hardcode_action_GCJ" = relink; then
  13540. # Fast installation is not supported
  13541. enable_fast_install=no
  13542. elif test "$shlibpath_overrides_runpath" = yes ||
  13543. test "$enable_shared" = no; then
  13544. # Fast installation is not necessary
  13545. enable_fast_install=needless
  13546. fi
  13547. striplib=
  13548. old_striplib=
  13549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  13550. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  13551. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  13552. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  13553. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  13554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13555. $as_echo "yes" >&6; }
  13556. else
  13557. # FIXME - insert some real tests, host_os isn't really good enough
  13558. case $host_os in
  13559. darwin*)
  13560. if test -n "$STRIP" ; then
  13561. striplib="$STRIP -x"
  13562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13563. $as_echo "yes" >&6; }
  13564. else
  13565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13566. $as_echo "no" >&6; }
  13567. fi
  13568. ;;
  13569. *)
  13570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13571. $as_echo "no" >&6; }
  13572. ;;
  13573. esac
  13574. fi
  13575. if test "x$enable_dlopen" != xyes; then
  13576. enable_dlopen=unknown
  13577. enable_dlopen_self=unknown
  13578. enable_dlopen_self_static=unknown
  13579. else
  13580. lt_cv_dlopen=no
  13581. lt_cv_dlopen_libs=
  13582. case $host_os in
  13583. beos*)
  13584. lt_cv_dlopen="load_add_on"
  13585. lt_cv_dlopen_libs=
  13586. lt_cv_dlopen_self=yes
  13587. ;;
  13588. mingw* | pw32*)
  13589. lt_cv_dlopen="LoadLibrary"
  13590. lt_cv_dlopen_libs=
  13591. ;;
  13592. cygwin*)
  13593. lt_cv_dlopen="dlopen"
  13594. lt_cv_dlopen_libs=
  13595. ;;
  13596. darwin*)
  13597. # if libdl is installed we need to link against it
  13598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  13599. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  13600. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  13601. $as_echo_n "(cached) " >&6
  13602. else
  13603. ac_check_lib_save_LIBS=$LIBS
  13604. LIBS="-ldl $LIBS"
  13605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13606. /* end confdefs.h. */
  13607. /* Override any GCC internal prototype to avoid an error.
  13608. Use char because int might match the return type of a GCC
  13609. builtin and then its argument prototype would still apply. */
  13610. #ifdef __cplusplus
  13611. extern "C"
  13612. #endif
  13613. char dlopen ();
  13614. int
  13615. main ()
  13616. {
  13617. return dlopen ();
  13618. ;
  13619. return 0;
  13620. }
  13621. _ACEOF
  13622. if ac_fn_c_try_link "$LINENO"; then :
  13623. ac_cv_lib_dl_dlopen=yes
  13624. else
  13625. ac_cv_lib_dl_dlopen=no
  13626. fi
  13627. rm -f core conftest.err conftest.$ac_objext \
  13628. conftest$ac_exeext conftest.$ac_ext
  13629. LIBS=$ac_check_lib_save_LIBS
  13630. fi
  13631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  13632. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  13633. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  13634. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  13635. else
  13636. lt_cv_dlopen="dyld"
  13637. lt_cv_dlopen_libs=
  13638. lt_cv_dlopen_self=yes
  13639. fi
  13640. ;;
  13641. *)
  13642. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  13643. if test "x$ac_cv_func_shl_load" = x""yes; then :
  13644. lt_cv_dlopen="shl_load"
  13645. else
  13646. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  13647. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  13648. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  13649. $as_echo_n "(cached) " >&6
  13650. else
  13651. ac_check_lib_save_LIBS=$LIBS
  13652. LIBS="-ldld $LIBS"
  13653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13654. /* end confdefs.h. */
  13655. /* Override any GCC internal prototype to avoid an error.
  13656. Use char because int might match the return type of a GCC
  13657. builtin and then its argument prototype would still apply. */
  13658. #ifdef __cplusplus
  13659. extern "C"
  13660. #endif
  13661. char shl_load ();
  13662. int
  13663. main ()
  13664. {
  13665. return shl_load ();
  13666. ;
  13667. return 0;
  13668. }
  13669. _ACEOF
  13670. if ac_fn_c_try_link "$LINENO"; then :
  13671. ac_cv_lib_dld_shl_load=yes
  13672. else
  13673. ac_cv_lib_dld_shl_load=no
  13674. fi
  13675. rm -f core conftest.err conftest.$ac_objext \
  13676. conftest$ac_exeext conftest.$ac_ext
  13677. LIBS=$ac_check_lib_save_LIBS
  13678. fi
  13679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  13680. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  13681. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  13682. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  13683. else
  13684. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  13685. if test "x$ac_cv_func_dlopen" = x""yes; then :
  13686. lt_cv_dlopen="dlopen"
  13687. else
  13688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  13689. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  13690. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  13691. $as_echo_n "(cached) " >&6
  13692. else
  13693. ac_check_lib_save_LIBS=$LIBS
  13694. LIBS="-ldl $LIBS"
  13695. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13696. /* end confdefs.h. */
  13697. /* Override any GCC internal prototype to avoid an error.
  13698. Use char because int might match the return type of a GCC
  13699. builtin and then its argument prototype would still apply. */
  13700. #ifdef __cplusplus
  13701. extern "C"
  13702. #endif
  13703. char dlopen ();
  13704. int
  13705. main ()
  13706. {
  13707. return dlopen ();
  13708. ;
  13709. return 0;
  13710. }
  13711. _ACEOF
  13712. if ac_fn_c_try_link "$LINENO"; then :
  13713. ac_cv_lib_dl_dlopen=yes
  13714. else
  13715. ac_cv_lib_dl_dlopen=no
  13716. fi
  13717. rm -f core conftest.err conftest.$ac_objext \
  13718. conftest$ac_exeext conftest.$ac_ext
  13719. LIBS=$ac_check_lib_save_LIBS
  13720. fi
  13721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  13722. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  13723. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  13724. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  13725. else
  13726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  13727. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  13728. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  13729. $as_echo_n "(cached) " >&6
  13730. else
  13731. ac_check_lib_save_LIBS=$LIBS
  13732. LIBS="-lsvld $LIBS"
  13733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13734. /* end confdefs.h. */
  13735. /* Override any GCC internal prototype to avoid an error.
  13736. Use char because int might match the return type of a GCC
  13737. builtin and then its argument prototype would still apply. */
  13738. #ifdef __cplusplus
  13739. extern "C"
  13740. #endif
  13741. char dlopen ();
  13742. int
  13743. main ()
  13744. {
  13745. return dlopen ();
  13746. ;
  13747. return 0;
  13748. }
  13749. _ACEOF
  13750. if ac_fn_c_try_link "$LINENO"; then :
  13751. ac_cv_lib_svld_dlopen=yes
  13752. else
  13753. ac_cv_lib_svld_dlopen=no
  13754. fi
  13755. rm -f core conftest.err conftest.$ac_objext \
  13756. conftest$ac_exeext conftest.$ac_ext
  13757. LIBS=$ac_check_lib_save_LIBS
  13758. fi
  13759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  13760. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  13761. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  13762. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  13763. else
  13764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  13765. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  13766. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  13767. $as_echo_n "(cached) " >&6
  13768. else
  13769. ac_check_lib_save_LIBS=$LIBS
  13770. LIBS="-ldld $LIBS"
  13771. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13772. /* end confdefs.h. */
  13773. /* Override any GCC internal prototype to avoid an error.
  13774. Use char because int might match the return type of a GCC
  13775. builtin and then its argument prototype would still apply. */
  13776. #ifdef __cplusplus
  13777. extern "C"
  13778. #endif
  13779. char dld_link ();
  13780. int
  13781. main ()
  13782. {
  13783. return dld_link ();
  13784. ;
  13785. return 0;
  13786. }
  13787. _ACEOF
  13788. if ac_fn_c_try_link "$LINENO"; then :
  13789. ac_cv_lib_dld_dld_link=yes
  13790. else
  13791. ac_cv_lib_dld_dld_link=no
  13792. fi
  13793. rm -f core conftest.err conftest.$ac_objext \
  13794. conftest$ac_exeext conftest.$ac_ext
  13795. LIBS=$ac_check_lib_save_LIBS
  13796. fi
  13797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  13798. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  13799. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  13800. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  13801. fi
  13802. fi
  13803. fi
  13804. fi
  13805. fi
  13806. fi
  13807. ;;
  13808. esac
  13809. if test "x$lt_cv_dlopen" != xno; then
  13810. enable_dlopen=yes
  13811. else
  13812. enable_dlopen=no
  13813. fi
  13814. case $lt_cv_dlopen in
  13815. dlopen)
  13816. save_CPPFLAGS="$CPPFLAGS"
  13817. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  13818. save_LDFLAGS="$LDFLAGS"
  13819. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  13820. save_LIBS="$LIBS"
  13821. LIBS="$lt_cv_dlopen_libs $LIBS"
  13822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  13823. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  13824. if test "${lt_cv_dlopen_self+set}" = set; then :
  13825. $as_echo_n "(cached) " >&6
  13826. else
  13827. if test "$cross_compiling" = yes; then :
  13828. lt_cv_dlopen_self=cross
  13829. else
  13830. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  13831. lt_status=$lt_dlunknown
  13832. cat > conftest.$ac_ext <<EOF
  13833. #line 15530 "configure"
  13834. #include "confdefs.h"
  13835. #if HAVE_DLFCN_H
  13836. #include <dlfcn.h>
  13837. #endif
  13838. #include <stdio.h>
  13839. #ifdef RTLD_GLOBAL
  13840. # define LT_DLGLOBAL RTLD_GLOBAL
  13841. #else
  13842. # ifdef DL_GLOBAL
  13843. # define LT_DLGLOBAL DL_GLOBAL
  13844. # else
  13845. # define LT_DLGLOBAL 0
  13846. # endif
  13847. #endif
  13848. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  13849. find out it does not work in some platform. */
  13850. #ifndef LT_DLLAZY_OR_NOW
  13851. # ifdef RTLD_LAZY
  13852. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  13853. # else
  13854. # ifdef DL_LAZY
  13855. # define LT_DLLAZY_OR_NOW DL_LAZY
  13856. # else
  13857. # ifdef RTLD_NOW
  13858. # define LT_DLLAZY_OR_NOW RTLD_NOW
  13859. # else
  13860. # ifdef DL_NOW
  13861. # define LT_DLLAZY_OR_NOW DL_NOW
  13862. # else
  13863. # define LT_DLLAZY_OR_NOW 0
  13864. # endif
  13865. # endif
  13866. # endif
  13867. # endif
  13868. #endif
  13869. #ifdef __cplusplus
  13870. extern "C" void exit (int);
  13871. #endif
  13872. void fnord() { int i=42;}
  13873. int main ()
  13874. {
  13875. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  13876. int status = $lt_dlunknown;
  13877. if (self)
  13878. {
  13879. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  13880. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  13881. /* dlclose (self); */
  13882. }
  13883. exit (status);
  13884. }
  13885. EOF
  13886. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  13887. (eval $ac_link) 2>&5
  13888. ac_status=$?
  13889. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13890. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  13891. (./conftest; exit; ) >&5 2>/dev/null
  13892. lt_status=$?
  13893. case x$lt_status in
  13894. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  13895. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  13896. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  13897. esac
  13898. else :
  13899. # compilation failed
  13900. lt_cv_dlopen_self=no
  13901. fi
  13902. fi
  13903. rm -fr conftest*
  13904. fi
  13905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  13906. $as_echo "$lt_cv_dlopen_self" >&6; }
  13907. if test "x$lt_cv_dlopen_self" = xyes; then
  13908. LDFLAGS="$LDFLAGS $link_static_flag"
  13909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  13910. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  13911. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  13912. $as_echo_n "(cached) " >&6
  13913. else
  13914. if test "$cross_compiling" = yes; then :
  13915. lt_cv_dlopen_self_static=cross
  13916. else
  13917. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  13918. lt_status=$lt_dlunknown
  13919. cat > conftest.$ac_ext <<EOF
  13920. #line 15628 "configure"
  13921. #include "confdefs.h"
  13922. #if HAVE_DLFCN_H
  13923. #include <dlfcn.h>
  13924. #endif
  13925. #include <stdio.h>
  13926. #ifdef RTLD_GLOBAL
  13927. # define LT_DLGLOBAL RTLD_GLOBAL
  13928. #else
  13929. # ifdef DL_GLOBAL
  13930. # define LT_DLGLOBAL DL_GLOBAL
  13931. # else
  13932. # define LT_DLGLOBAL 0
  13933. # endif
  13934. #endif
  13935. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  13936. find out it does not work in some platform. */
  13937. #ifndef LT_DLLAZY_OR_NOW
  13938. # ifdef RTLD_LAZY
  13939. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  13940. # else
  13941. # ifdef DL_LAZY
  13942. # define LT_DLLAZY_OR_NOW DL_LAZY
  13943. # else
  13944. # ifdef RTLD_NOW
  13945. # define LT_DLLAZY_OR_NOW RTLD_NOW
  13946. # else
  13947. # ifdef DL_NOW
  13948. # define LT_DLLAZY_OR_NOW DL_NOW
  13949. # else
  13950. # define LT_DLLAZY_OR_NOW 0
  13951. # endif
  13952. # endif
  13953. # endif
  13954. # endif
  13955. #endif
  13956. #ifdef __cplusplus
  13957. extern "C" void exit (int);
  13958. #endif
  13959. void fnord() { int i=42;}
  13960. int main ()
  13961. {
  13962. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  13963. int status = $lt_dlunknown;
  13964. if (self)
  13965. {
  13966. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  13967. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  13968. /* dlclose (self); */
  13969. }
  13970. exit (status);
  13971. }
  13972. EOF
  13973. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  13974. (eval $ac_link) 2>&5
  13975. ac_status=$?
  13976. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13977. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  13978. (./conftest; exit; ) >&5 2>/dev/null
  13979. lt_status=$?
  13980. case x$lt_status in
  13981. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  13982. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  13983. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  13984. esac
  13985. else :
  13986. # compilation failed
  13987. lt_cv_dlopen_self_static=no
  13988. fi
  13989. fi
  13990. rm -fr conftest*
  13991. fi
  13992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  13993. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  13994. fi
  13995. CPPFLAGS="$save_CPPFLAGS"
  13996. LDFLAGS="$save_LDFLAGS"
  13997. LIBS="$save_LIBS"
  13998. ;;
  13999. esac
  14000. case $lt_cv_dlopen_self in
  14001. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  14002. *) enable_dlopen_self=unknown ;;
  14003. esac
  14004. case $lt_cv_dlopen_self_static in
  14005. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  14006. *) enable_dlopen_self_static=unknown ;;
  14007. esac
  14008. fi
  14009. # The else clause should only fire when bootstrapping the
  14010. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14011. # with your package, and you will get complaints that there are
  14012. # no rules to generate ltmain.sh.
  14013. if test -f "$ltmain"; then
  14014. # See if we are running on zsh, and set the options which allow our commands through
  14015. # without removal of \ escapes.
  14016. if test -n "${ZSH_VERSION+set}" ; then
  14017. setopt NO_GLOB_SUBST
  14018. fi
  14019. # Now quote all the things that may contain metacharacters while being
  14020. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14021. # variables and quote the copies for generation of the libtool script.
  14022. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  14023. SED SHELL STRIP \
  14024. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14025. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14026. deplibs_check_method reload_flag reload_cmds need_locks \
  14027. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14028. lt_cv_sys_global_symbol_to_c_name_address \
  14029. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14030. old_postinstall_cmds old_postuninstall_cmds \
  14031. compiler_GCJ \
  14032. CC_GCJ \
  14033. LD_GCJ \
  14034. lt_prog_compiler_wl_GCJ \
  14035. lt_prog_compiler_pic_GCJ \
  14036. lt_prog_compiler_static_GCJ \
  14037. lt_prog_compiler_no_builtin_flag_GCJ \
  14038. export_dynamic_flag_spec_GCJ \
  14039. thread_safe_flag_spec_GCJ \
  14040. whole_archive_flag_spec_GCJ \
  14041. enable_shared_with_static_runtimes_GCJ \
  14042. old_archive_cmds_GCJ \
  14043. old_archive_from_new_cmds_GCJ \
  14044. predep_objects_GCJ \
  14045. postdep_objects_GCJ \
  14046. predeps_GCJ \
  14047. postdeps_GCJ \
  14048. compiler_lib_search_path_GCJ \
  14049. archive_cmds_GCJ \
  14050. archive_expsym_cmds_GCJ \
  14051. postinstall_cmds_GCJ \
  14052. postuninstall_cmds_GCJ \
  14053. old_archive_from_expsyms_cmds_GCJ \
  14054. allow_undefined_flag_GCJ \
  14055. no_undefined_flag_GCJ \
  14056. export_symbols_cmds_GCJ \
  14057. hardcode_libdir_flag_spec_GCJ \
  14058. hardcode_libdir_flag_spec_ld_GCJ \
  14059. hardcode_libdir_separator_GCJ \
  14060. hardcode_automatic_GCJ \
  14061. module_cmds_GCJ \
  14062. module_expsym_cmds_GCJ \
  14063. lt_cv_prog_compiler_c_o_GCJ \
  14064. exclude_expsyms_GCJ \
  14065. include_expsyms_GCJ; do
  14066. case $var in
  14067. old_archive_cmds_GCJ | \
  14068. old_archive_from_new_cmds_GCJ | \
  14069. archive_cmds_GCJ | \
  14070. archive_expsym_cmds_GCJ | \
  14071. module_cmds_GCJ | \
  14072. module_expsym_cmds_GCJ | \
  14073. old_archive_from_expsyms_cmds_GCJ | \
  14074. export_symbols_cmds_GCJ | \
  14075. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  14076. postinstall_cmds | postuninstall_cmds | \
  14077. old_postinstall_cmds | old_postuninstall_cmds | \
  14078. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  14079. # Double-quote double-evaled strings.
  14080. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  14081. ;;
  14082. *)
  14083. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  14084. ;;
  14085. esac
  14086. done
  14087. case $lt_echo in
  14088. *'\$0 --fallback-echo"')
  14089. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  14090. ;;
  14091. esac
  14092. cfgfile="$ofile"
  14093. cat <<__EOF__ >> "$cfgfile"
  14094. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  14095. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14096. # Shell to use when invoking shell scripts.
  14097. SHELL=$lt_SHELL
  14098. # Whether or not to build shared libraries.
  14099. build_libtool_libs=$enable_shared
  14100. # Whether or not to build static libraries.
  14101. build_old_libs=$enable_static
  14102. # Whether or not to add -lc for building shared libraries.
  14103. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  14104. # Whether or not to disallow shared libs when runtime libs are static
  14105. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  14106. # Whether or not to optimize for fast installation.
  14107. fast_install=$enable_fast_install
  14108. # The host system.
  14109. host_alias=$host_alias
  14110. host=$host
  14111. host_os=$host_os
  14112. # The build system.
  14113. build_alias=$build_alias
  14114. build=$build
  14115. build_os=$build_os
  14116. # An echo program that does not interpret backslashes.
  14117. echo=$lt_echo
  14118. # The archiver.
  14119. AR=$lt_AR
  14120. AR_FLAGS=$lt_AR_FLAGS
  14121. # A C compiler.
  14122. LTCC=$lt_LTCC
  14123. # A language-specific compiler.
  14124. CC=$lt_compiler_GCJ
  14125. # Is the compiler the GNU C compiler?
  14126. with_gcc=$GCC_GCJ
  14127. # An ERE matcher.
  14128. EGREP=$lt_EGREP
  14129. # The linker used to build libraries.
  14130. LD=$lt_LD_GCJ
  14131. # Whether we need hard or soft links.
  14132. LN_S=$lt_LN_S
  14133. # A BSD-compatible nm program.
  14134. NM=$lt_NM
  14135. # A symbol stripping program
  14136. STRIP=$lt_STRIP
  14137. # Used to examine libraries when file_magic_cmd begins "file"
  14138. MAGIC_CMD=$MAGIC_CMD
  14139. # Used on cygwin: DLL creation program.
  14140. DLLTOOL="$DLLTOOL"
  14141. # Used on cygwin: object dumper.
  14142. OBJDUMP="$OBJDUMP"
  14143. # Used on cygwin: assembler.
  14144. AS="$AS"
  14145. # The name of the directory that contains temporary libtool files.
  14146. objdir=$objdir
  14147. # How to create reloadable object files.
  14148. reload_flag=$lt_reload_flag
  14149. reload_cmds=$lt_reload_cmds
  14150. # How to pass a linker flag through the compiler.
  14151. wl=$lt_lt_prog_compiler_wl_GCJ
  14152. # Object file suffix (normally "o").
  14153. objext="$ac_objext"
  14154. # Old archive suffix (normally "a").
  14155. libext="$libext"
  14156. # Shared library suffix (normally ".so").
  14157. shrext_cmds='$shrext_cmds'
  14158. # Executable file suffix (normally "").
  14159. exeext="$exeext"
  14160. # Additional compiler flags for building library objects.
  14161. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  14162. pic_mode=$pic_mode
  14163. # What is the maximum length of a command?
  14164. max_cmd_len=$lt_cv_sys_max_cmd_len
  14165. # Does compiler simultaneously support -c and -o options?
  14166. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  14167. # Must we lock files when doing compilation?
  14168. need_locks=$lt_need_locks
  14169. # Do we need the lib prefix for modules?
  14170. need_lib_prefix=$need_lib_prefix
  14171. # Do we need a version for libraries?
  14172. need_version=$need_version
  14173. # Whether dlopen is supported.
  14174. dlopen_support=$enable_dlopen
  14175. # Whether dlopen of programs is supported.
  14176. dlopen_self=$enable_dlopen_self
  14177. # Whether dlopen of statically linked programs is supported.
  14178. dlopen_self_static=$enable_dlopen_self_static
  14179. # Compiler flag to prevent dynamic linking.
  14180. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  14181. # Compiler flag to turn off builtin functions.
  14182. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  14183. # Compiler flag to allow reflexive dlopens.
  14184. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  14185. # Compiler flag to generate shared objects directly from archives.
  14186. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  14187. # Compiler flag to generate thread-safe objects.
  14188. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  14189. # Library versioning type.
  14190. version_type=$version_type
  14191. # Format of library name prefix.
  14192. libname_spec=$lt_libname_spec
  14193. # List of archive names. First name is the real one, the rest are links.
  14194. # The last name is the one that the linker finds with -lNAME.
  14195. library_names_spec=$lt_library_names_spec
  14196. # The coded name of the library, if different from the real name.
  14197. soname_spec=$lt_soname_spec
  14198. # Commands used to build and install an old-style archive.
  14199. RANLIB=$lt_RANLIB
  14200. old_archive_cmds=$lt_old_archive_cmds_GCJ
  14201. old_postinstall_cmds=$lt_old_postinstall_cmds
  14202. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14203. # Create an old-style archive from a shared archive.
  14204. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  14205. # Create a temporary old-style archive to link instead of a shared archive.
  14206. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  14207. # Commands used to build and install a shared archive.
  14208. archive_cmds=$lt_archive_cmds_GCJ
  14209. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  14210. postinstall_cmds=$lt_postinstall_cmds
  14211. postuninstall_cmds=$lt_postuninstall_cmds
  14212. # Commands used to build a loadable module (assumed same as above if empty)
  14213. module_cmds=$lt_module_cmds_GCJ
  14214. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  14215. # Commands to strip libraries.
  14216. old_striplib=$lt_old_striplib
  14217. striplib=$lt_striplib
  14218. # Dependencies to place before the objects being linked to create a
  14219. # shared library.
  14220. predep_objects=$lt_predep_objects_GCJ
  14221. # Dependencies to place after the objects being linked to create a
  14222. # shared library.
  14223. postdep_objects=$lt_postdep_objects_GCJ
  14224. # Dependencies to place before the objects being linked to create a
  14225. # shared library.
  14226. predeps=$lt_predeps_GCJ
  14227. # Dependencies to place after the objects being linked to create a
  14228. # shared library.
  14229. postdeps=$lt_postdeps_GCJ
  14230. # The library search path used internally by the compiler when linking
  14231. # a shared library.
  14232. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  14233. # Method to check whether dependent libraries are shared objects.
  14234. deplibs_check_method=$lt_deplibs_check_method
  14235. # Command to use when deplibs_check_method == file_magic.
  14236. file_magic_cmd=$lt_file_magic_cmd
  14237. # Flag that allows shared libraries with undefined symbols to be built.
  14238. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  14239. # Flag that forces no undefined symbols.
  14240. no_undefined_flag=$lt_no_undefined_flag_GCJ
  14241. # Commands used to finish a libtool library installation in a directory.
  14242. finish_cmds=$lt_finish_cmds
  14243. # Same as above, but a single script fragment to be evaled but not shown.
  14244. finish_eval=$lt_finish_eval
  14245. # Take the output of nm and produce a listing of raw symbols and C names.
  14246. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14247. # Transform the output of nm in a proper C declaration
  14248. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14249. # Transform the output of nm in a C name address pair
  14250. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14251. # This is the shared library runtime path variable.
  14252. runpath_var=$runpath_var
  14253. # This is the shared library path variable.
  14254. shlibpath_var=$shlibpath_var
  14255. # Is shlibpath searched before the hard-coded library search path?
  14256. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14257. # How to hardcode a shared library path into an executable.
  14258. hardcode_action=$hardcode_action_GCJ
  14259. # Whether we should hardcode library paths into libraries.
  14260. hardcode_into_libs=$hardcode_into_libs
  14261. # Flag to hardcode \$libdir into a binary during linking.
  14262. # This must work even if \$libdir does not exist.
  14263. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  14264. # If ld is used when linking, flag to hardcode \$libdir into
  14265. # a binary during linking. This must work even if \$libdir does
  14266. # not exist.
  14267. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  14268. # Whether we need a single -rpath flag with a separated argument.
  14269. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  14270. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14271. # resulting binary.
  14272. hardcode_direct=$hardcode_direct_GCJ
  14273. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14274. # resulting binary.
  14275. hardcode_minus_L=$hardcode_minus_L_GCJ
  14276. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14277. # the resulting binary.
  14278. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  14279. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14280. # and all subsequent libraries and executables linked against it.
  14281. hardcode_automatic=$hardcode_automatic_GCJ
  14282. # Variables whose values should be saved in libtool wrapper scripts and
  14283. # restored at relink time.
  14284. variables_saved_for_relink="$variables_saved_for_relink"
  14285. # Whether libtool must link a program against all its dependency libraries.
  14286. link_all_deplibs=$link_all_deplibs_GCJ
  14287. # Compile-time system search path for libraries
  14288. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14289. # Run-time system search path for libraries
  14290. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14291. # Fix the shell variable \$srcfile for the compiler.
  14292. fix_srcfile_path="$fix_srcfile_path_GCJ"
  14293. # Set to yes if exported symbols are required.
  14294. always_export_symbols=$always_export_symbols_GCJ
  14295. # The commands to list exported symbols.
  14296. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  14297. # The commands to extract the exported symbol list from a shared archive.
  14298. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14299. # Symbols that should not be listed in the preloaded symbols.
  14300. exclude_expsyms=$lt_exclude_expsyms_GCJ
  14301. # Symbols that must always be exported.
  14302. include_expsyms=$lt_include_expsyms_GCJ
  14303. # ### END LIBTOOL TAG CONFIG: $tagname
  14304. __EOF__
  14305. else
  14306. # If there is no Makefile yet, we rely on a make rule to execute
  14307. # `config.status --recheck' to rerun these tests and create the
  14308. # libtool script then.
  14309. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14310. if test -f "$ltmain_in"; then
  14311. test -f Makefile && make "$ltmain"
  14312. fi
  14313. fi
  14314. ac_ext=c
  14315. ac_cpp='$CPP $CPPFLAGS'
  14316. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14317. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14318. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14319. CC="$lt_save_CC"
  14320. else
  14321. tagname=""
  14322. fi
  14323. ;;
  14324. RC)
  14325. # Source file extension for RC test sources.
  14326. ac_ext=rc
  14327. # Object file extension for compiled RC test sources.
  14328. objext=o
  14329. objext_RC=$objext
  14330. # Code to be used in simple compile tests
  14331. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  14332. # Code to be used in simple link tests
  14333. lt_simple_link_test_code="$lt_simple_compile_test_code"
  14334. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14335. # If no C compiler was specified, use CC.
  14336. LTCC=${LTCC-"$CC"}
  14337. # Allow CC to be a program name with arguments.
  14338. compiler=$CC
  14339. # save warnings/boilerplate of simple test code
  14340. ac_outfile=conftest.$ac_objext
  14341. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  14342. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  14343. _lt_compiler_boilerplate=`cat conftest.err`
  14344. $rm conftest*
  14345. ac_outfile=conftest.$ac_objext
  14346. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  14347. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  14348. _lt_linker_boilerplate=`cat conftest.err`
  14349. $rm conftest*
  14350. # Allow CC to be a program name with arguments.
  14351. lt_save_CC="$CC"
  14352. CC=${RC-"windres"}
  14353. compiler=$CC
  14354. compiler_RC=$CC
  14355. for cc_temp in $compiler""; do
  14356. case $cc_temp in
  14357. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14358. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14359. \-*) ;;
  14360. *) break;;
  14361. esac
  14362. done
  14363. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14364. lt_cv_prog_compiler_c_o_RC=yes
  14365. # The else clause should only fire when bootstrapping the
  14366. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14367. # with your package, and you will get complaints that there are
  14368. # no rules to generate ltmain.sh.
  14369. if test -f "$ltmain"; then
  14370. # See if we are running on zsh, and set the options which allow our commands through
  14371. # without removal of \ escapes.
  14372. if test -n "${ZSH_VERSION+set}" ; then
  14373. setopt NO_GLOB_SUBST
  14374. fi
  14375. # Now quote all the things that may contain metacharacters while being
  14376. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14377. # variables and quote the copies for generation of the libtool script.
  14378. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  14379. SED SHELL STRIP \
  14380. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14381. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14382. deplibs_check_method reload_flag reload_cmds need_locks \
  14383. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14384. lt_cv_sys_global_symbol_to_c_name_address \
  14385. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14386. old_postinstall_cmds old_postuninstall_cmds \
  14387. compiler_RC \
  14388. CC_RC \
  14389. LD_RC \
  14390. lt_prog_compiler_wl_RC \
  14391. lt_prog_compiler_pic_RC \
  14392. lt_prog_compiler_static_RC \
  14393. lt_prog_compiler_no_builtin_flag_RC \
  14394. export_dynamic_flag_spec_RC \
  14395. thread_safe_flag_spec_RC \
  14396. whole_archive_flag_spec_RC \
  14397. enable_shared_with_static_runtimes_RC \
  14398. old_archive_cmds_RC \
  14399. old_archive_from_new_cmds_RC \
  14400. predep_objects_RC \
  14401. postdep_objects_RC \
  14402. predeps_RC \
  14403. postdeps_RC \
  14404. compiler_lib_search_path_RC \
  14405. archive_cmds_RC \
  14406. archive_expsym_cmds_RC \
  14407. postinstall_cmds_RC \
  14408. postuninstall_cmds_RC \
  14409. old_archive_from_expsyms_cmds_RC \
  14410. allow_undefined_flag_RC \
  14411. no_undefined_flag_RC \
  14412. export_symbols_cmds_RC \
  14413. hardcode_libdir_flag_spec_RC \
  14414. hardcode_libdir_flag_spec_ld_RC \
  14415. hardcode_libdir_separator_RC \
  14416. hardcode_automatic_RC \
  14417. module_cmds_RC \
  14418. module_expsym_cmds_RC \
  14419. lt_cv_prog_compiler_c_o_RC \
  14420. exclude_expsyms_RC \
  14421. include_expsyms_RC; do
  14422. case $var in
  14423. old_archive_cmds_RC | \
  14424. old_archive_from_new_cmds_RC | \
  14425. archive_cmds_RC | \
  14426. archive_expsym_cmds_RC | \
  14427. module_cmds_RC | \
  14428. module_expsym_cmds_RC | \
  14429. old_archive_from_expsyms_cmds_RC | \
  14430. export_symbols_cmds_RC | \
  14431. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  14432. postinstall_cmds | postuninstall_cmds | \
  14433. old_postinstall_cmds | old_postuninstall_cmds | \
  14434. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  14435. # Double-quote double-evaled strings.
  14436. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  14437. ;;
  14438. *)
  14439. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  14440. ;;
  14441. esac
  14442. done
  14443. case $lt_echo in
  14444. *'\$0 --fallback-echo"')
  14445. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  14446. ;;
  14447. esac
  14448. cfgfile="$ofile"
  14449. cat <<__EOF__ >> "$cfgfile"
  14450. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  14451. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14452. # Shell to use when invoking shell scripts.
  14453. SHELL=$lt_SHELL
  14454. # Whether or not to build shared libraries.
  14455. build_libtool_libs=$enable_shared
  14456. # Whether or not to build static libraries.
  14457. build_old_libs=$enable_static
  14458. # Whether or not to add -lc for building shared libraries.
  14459. build_libtool_need_lc=$archive_cmds_need_lc_RC
  14460. # Whether or not to disallow shared libs when runtime libs are static
  14461. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  14462. # Whether or not to optimize for fast installation.
  14463. fast_install=$enable_fast_install
  14464. # The host system.
  14465. host_alias=$host_alias
  14466. host=$host
  14467. host_os=$host_os
  14468. # The build system.
  14469. build_alias=$build_alias
  14470. build=$build
  14471. build_os=$build_os
  14472. # An echo program that does not interpret backslashes.
  14473. echo=$lt_echo
  14474. # The archiver.
  14475. AR=$lt_AR
  14476. AR_FLAGS=$lt_AR_FLAGS
  14477. # A C compiler.
  14478. LTCC=$lt_LTCC
  14479. # A language-specific compiler.
  14480. CC=$lt_compiler_RC
  14481. # Is the compiler the GNU C compiler?
  14482. with_gcc=$GCC_RC
  14483. # An ERE matcher.
  14484. EGREP=$lt_EGREP
  14485. # The linker used to build libraries.
  14486. LD=$lt_LD_RC
  14487. # Whether we need hard or soft links.
  14488. LN_S=$lt_LN_S
  14489. # A BSD-compatible nm program.
  14490. NM=$lt_NM
  14491. # A symbol stripping program
  14492. STRIP=$lt_STRIP
  14493. # Used to examine libraries when file_magic_cmd begins "file"
  14494. MAGIC_CMD=$MAGIC_CMD
  14495. # Used on cygwin: DLL creation program.
  14496. DLLTOOL="$DLLTOOL"
  14497. # Used on cygwin: object dumper.
  14498. OBJDUMP="$OBJDUMP"
  14499. # Used on cygwin: assembler.
  14500. AS="$AS"
  14501. # The name of the directory that contains temporary libtool files.
  14502. objdir=$objdir
  14503. # How to create reloadable object files.
  14504. reload_flag=$lt_reload_flag
  14505. reload_cmds=$lt_reload_cmds
  14506. # How to pass a linker flag through the compiler.
  14507. wl=$lt_lt_prog_compiler_wl_RC
  14508. # Object file suffix (normally "o").
  14509. objext="$ac_objext"
  14510. # Old archive suffix (normally "a").
  14511. libext="$libext"
  14512. # Shared library suffix (normally ".so").
  14513. shrext_cmds='$shrext_cmds'
  14514. # Executable file suffix (normally "").
  14515. exeext="$exeext"
  14516. # Additional compiler flags for building library objects.
  14517. pic_flag=$lt_lt_prog_compiler_pic_RC
  14518. pic_mode=$pic_mode
  14519. # What is the maximum length of a command?
  14520. max_cmd_len=$lt_cv_sys_max_cmd_len
  14521. # Does compiler simultaneously support -c and -o options?
  14522. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  14523. # Must we lock files when doing compilation?
  14524. need_locks=$lt_need_locks
  14525. # Do we need the lib prefix for modules?
  14526. need_lib_prefix=$need_lib_prefix
  14527. # Do we need a version for libraries?
  14528. need_version=$need_version
  14529. # Whether dlopen is supported.
  14530. dlopen_support=$enable_dlopen
  14531. # Whether dlopen of programs is supported.
  14532. dlopen_self=$enable_dlopen_self
  14533. # Whether dlopen of statically linked programs is supported.
  14534. dlopen_self_static=$enable_dlopen_self_static
  14535. # Compiler flag to prevent dynamic linking.
  14536. link_static_flag=$lt_lt_prog_compiler_static_RC
  14537. # Compiler flag to turn off builtin functions.
  14538. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  14539. # Compiler flag to allow reflexive dlopens.
  14540. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  14541. # Compiler flag to generate shared objects directly from archives.
  14542. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  14543. # Compiler flag to generate thread-safe objects.
  14544. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  14545. # Library versioning type.
  14546. version_type=$version_type
  14547. # Format of library name prefix.
  14548. libname_spec=$lt_libname_spec
  14549. # List of archive names. First name is the real one, the rest are links.
  14550. # The last name is the one that the linker finds with -lNAME.
  14551. library_names_spec=$lt_library_names_spec
  14552. # The coded name of the library, if different from the real name.
  14553. soname_spec=$lt_soname_spec
  14554. # Commands used to build and install an old-style archive.
  14555. RANLIB=$lt_RANLIB
  14556. old_archive_cmds=$lt_old_archive_cmds_RC
  14557. old_postinstall_cmds=$lt_old_postinstall_cmds
  14558. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14559. # Create an old-style archive from a shared archive.
  14560. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  14561. # Create a temporary old-style archive to link instead of a shared archive.
  14562. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  14563. # Commands used to build and install a shared archive.
  14564. archive_cmds=$lt_archive_cmds_RC
  14565. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  14566. postinstall_cmds=$lt_postinstall_cmds
  14567. postuninstall_cmds=$lt_postuninstall_cmds
  14568. # Commands used to build a loadable module (assumed same as above if empty)
  14569. module_cmds=$lt_module_cmds_RC
  14570. module_expsym_cmds=$lt_module_expsym_cmds_RC
  14571. # Commands to strip libraries.
  14572. old_striplib=$lt_old_striplib
  14573. striplib=$lt_striplib
  14574. # Dependencies to place before the objects being linked to create a
  14575. # shared library.
  14576. predep_objects=$lt_predep_objects_RC
  14577. # Dependencies to place after the objects being linked to create a
  14578. # shared library.
  14579. postdep_objects=$lt_postdep_objects_RC
  14580. # Dependencies to place before the objects being linked to create a
  14581. # shared library.
  14582. predeps=$lt_predeps_RC
  14583. # Dependencies to place after the objects being linked to create a
  14584. # shared library.
  14585. postdeps=$lt_postdeps_RC
  14586. # The library search path used internally by the compiler when linking
  14587. # a shared library.
  14588. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  14589. # Method to check whether dependent libraries are shared objects.
  14590. deplibs_check_method=$lt_deplibs_check_method
  14591. # Command to use when deplibs_check_method == file_magic.
  14592. file_magic_cmd=$lt_file_magic_cmd
  14593. # Flag that allows shared libraries with undefined symbols to be built.
  14594. allow_undefined_flag=$lt_allow_undefined_flag_RC
  14595. # Flag that forces no undefined symbols.
  14596. no_undefined_flag=$lt_no_undefined_flag_RC
  14597. # Commands used to finish a libtool library installation in a directory.
  14598. finish_cmds=$lt_finish_cmds
  14599. # Same as above, but a single script fragment to be evaled but not shown.
  14600. finish_eval=$lt_finish_eval
  14601. # Take the output of nm and produce a listing of raw symbols and C names.
  14602. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14603. # Transform the output of nm in a proper C declaration
  14604. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14605. # Transform the output of nm in a C name address pair
  14606. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14607. # This is the shared library runtime path variable.
  14608. runpath_var=$runpath_var
  14609. # This is the shared library path variable.
  14610. shlibpath_var=$shlibpath_var
  14611. # Is shlibpath searched before the hard-coded library search path?
  14612. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14613. # How to hardcode a shared library path into an executable.
  14614. hardcode_action=$hardcode_action_RC
  14615. # Whether we should hardcode library paths into libraries.
  14616. hardcode_into_libs=$hardcode_into_libs
  14617. # Flag to hardcode \$libdir into a binary during linking.
  14618. # This must work even if \$libdir does not exist.
  14619. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  14620. # If ld is used when linking, flag to hardcode \$libdir into
  14621. # a binary during linking. This must work even if \$libdir does
  14622. # not exist.
  14623. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  14624. # Whether we need a single -rpath flag with a separated argument.
  14625. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  14626. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14627. # resulting binary.
  14628. hardcode_direct=$hardcode_direct_RC
  14629. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14630. # resulting binary.
  14631. hardcode_minus_L=$hardcode_minus_L_RC
  14632. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14633. # the resulting binary.
  14634. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  14635. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14636. # and all subsequent libraries and executables linked against it.
  14637. hardcode_automatic=$hardcode_automatic_RC
  14638. # Variables whose values should be saved in libtool wrapper scripts and
  14639. # restored at relink time.
  14640. variables_saved_for_relink="$variables_saved_for_relink"
  14641. # Whether libtool must link a program against all its dependency libraries.
  14642. link_all_deplibs=$link_all_deplibs_RC
  14643. # Compile-time system search path for libraries
  14644. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14645. # Run-time system search path for libraries
  14646. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14647. # Fix the shell variable \$srcfile for the compiler.
  14648. fix_srcfile_path="$fix_srcfile_path_RC"
  14649. # Set to yes if exported symbols are required.
  14650. always_export_symbols=$always_export_symbols_RC
  14651. # The commands to list exported symbols.
  14652. export_symbols_cmds=$lt_export_symbols_cmds_RC
  14653. # The commands to extract the exported symbol list from a shared archive.
  14654. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14655. # Symbols that should not be listed in the preloaded symbols.
  14656. exclude_expsyms=$lt_exclude_expsyms_RC
  14657. # Symbols that must always be exported.
  14658. include_expsyms=$lt_include_expsyms_RC
  14659. # ### END LIBTOOL TAG CONFIG: $tagname
  14660. __EOF__
  14661. else
  14662. # If there is no Makefile yet, we rely on a make rule to execute
  14663. # `config.status --recheck' to rerun these tests and create the
  14664. # libtool script then.
  14665. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14666. if test -f "$ltmain_in"; then
  14667. test -f Makefile && make "$ltmain"
  14668. fi
  14669. fi
  14670. ac_ext=c
  14671. ac_cpp='$CPP $CPPFLAGS'
  14672. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14673. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14674. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14675. CC="$lt_save_CC"
  14676. ;;
  14677. *)
  14678. as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
  14679. ;;
  14680. esac
  14681. # Append the new tag name to the list of available tags.
  14682. if test -n "$tagname" ; then
  14683. available_tags="$available_tags $tagname"
  14684. fi
  14685. fi
  14686. done
  14687. IFS="$lt_save_ifs"
  14688. # Now substitute the updated list of available tags.
  14689. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  14690. mv "${ofile}T" "$ofile"
  14691. chmod +x "$ofile"
  14692. else
  14693. rm -f "${ofile}T"
  14694. as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
  14695. fi
  14696. fi
  14697. # This can be used to rebuild libtool when needed
  14698. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  14699. # Always use our own libtool.
  14700. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  14701. # Prevent multiple expansion
  14702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  14703. $as_echo_n "checking whether ln -s works... " >&6; }
  14704. LN_S=$as_ln_s
  14705. if test "$LN_S" = "ln -s"; then
  14706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14707. $as_echo "yes" >&6; }
  14708. else
  14709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  14710. $as_echo "no, using $LN_S" >&6; }
  14711. fi
  14712. if test $ac_cv_c_compiler_gnu = yes; then
  14713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  14714. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  14715. if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  14716. $as_echo_n "(cached) " >&6
  14717. else
  14718. ac_pattern="Autoconf.*'x'"
  14719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14720. /* end confdefs.h. */
  14721. #include <sgtty.h>
  14722. Autoconf TIOCGETP
  14723. _ACEOF
  14724. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14725. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  14726. ac_cv_prog_gcc_traditional=yes
  14727. else
  14728. ac_cv_prog_gcc_traditional=no
  14729. fi
  14730. rm -f conftest*
  14731. if test $ac_cv_prog_gcc_traditional = no; then
  14732. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14733. /* end confdefs.h. */
  14734. #include <termio.h>
  14735. Autoconf TCGETA
  14736. _ACEOF
  14737. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14738. $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  14739. ac_cv_prog_gcc_traditional=yes
  14740. fi
  14741. rm -f conftest*
  14742. fi
  14743. fi
  14744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  14745. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  14746. if test $ac_cv_prog_gcc_traditional = yes; then
  14747. CC="$CC -traditional"
  14748. fi
  14749. fi
  14750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
  14751. $as_echo_n "checking for working volatile... " >&6; }
  14752. if test "${ac_cv_c_volatile+set}" = set; then :
  14753. $as_echo_n "(cached) " >&6
  14754. else
  14755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14756. /* end confdefs.h. */
  14757. int
  14758. main ()
  14759. {
  14760. volatile int x;
  14761. int * volatile y = (int *) 0;
  14762. return !x && !y;
  14763. ;
  14764. return 0;
  14765. }
  14766. _ACEOF
  14767. if ac_fn_c_try_compile "$LINENO"; then :
  14768. ac_cv_c_volatile=yes
  14769. else
  14770. ac_cv_c_volatile=no
  14771. fi
  14772. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14773. fi
  14774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  14775. $as_echo "$ac_cv_c_volatile" >&6; }
  14776. if test $ac_cv_c_volatile = no; then
  14777. $as_echo "#define volatile /**/" >>confdefs.h
  14778. fi
  14779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
  14780. $as_echo_n "checking for library containing strerror... " >&6; }
  14781. if test "${ac_cv_search_strerror+set}" = set; then :
  14782. $as_echo_n "(cached) " >&6
  14783. else
  14784. ac_func_search_save_LIBS=$LIBS
  14785. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14786. /* end confdefs.h. */
  14787. /* Override any GCC internal prototype to avoid an error.
  14788. Use char because int might match the return type of a GCC
  14789. builtin and then its argument prototype would still apply. */
  14790. #ifdef __cplusplus
  14791. extern "C"
  14792. #endif
  14793. char strerror ();
  14794. int
  14795. main ()
  14796. {
  14797. return strerror ();
  14798. ;
  14799. return 0;
  14800. }
  14801. _ACEOF
  14802. for ac_lib in '' cposix; do
  14803. if test -z "$ac_lib"; then
  14804. ac_res="none required"
  14805. else
  14806. ac_res=-l$ac_lib
  14807. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14808. fi
  14809. if ac_fn_c_try_link "$LINENO"; then :
  14810. ac_cv_search_strerror=$ac_res
  14811. fi
  14812. rm -f core conftest.err conftest.$ac_objext \
  14813. conftest$ac_exeext
  14814. if test "${ac_cv_search_strerror+set}" = set; then :
  14815. break
  14816. fi
  14817. done
  14818. if test "${ac_cv_search_strerror+set}" = set; then :
  14819. else
  14820. ac_cv_search_strerror=no
  14821. fi
  14822. rm conftest.$ac_ext
  14823. LIBS=$ac_func_search_save_LIBS
  14824. fi
  14825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
  14826. $as_echo "$ac_cv_search_strerror" >&6; }
  14827. ac_res=$ac_cv_search_strerror
  14828. if test "$ac_res" != no; then :
  14829. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14830. fi
  14831. # Extract the first word of "sh", so it can be a program name with args.
  14832. set dummy sh; ac_word=$2
  14833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14834. $as_echo_n "checking for $ac_word... " >&6; }
  14835. if test "${ac_cv_path_PATH_SH+set}" = set; then :
  14836. $as_echo_n "(cached) " >&6
  14837. else
  14838. case $PATH_SH in
  14839. [\\/]* | ?:[\\/]*)
  14840. ac_cv_path_PATH_SH="$PATH_SH" # Let the user override the test with a path.
  14841. ;;
  14842. *)
  14843. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14844. for as_dir in $PATH
  14845. do
  14846. IFS=$as_save_IFS
  14847. test -z "$as_dir" && as_dir=.
  14848. for ac_exec_ext in '' $ac_executable_extensions; do
  14849. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14850. ac_cv_path_PATH_SH="$as_dir/$ac_word$ac_exec_ext"
  14851. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14852. break 2
  14853. fi
  14854. done
  14855. done
  14856. IFS=$as_save_IFS
  14857. ;;
  14858. esac
  14859. fi
  14860. PATH_SH=$ac_cv_path_PATH_SH
  14861. if test -n "$PATH_SH"; then
  14862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SH" >&5
  14863. $as_echo "$PATH_SH" >&6; }
  14864. else
  14865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14866. $as_echo "no" >&6; }
  14867. fi
  14868. # Extract the first word of "perl", so it can be a program name with args.
  14869. set dummy perl; ac_word=$2
  14870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14871. $as_echo_n "checking for $ac_word... " >&6; }
  14872. if test "${ac_cv_path_PATH_PERL+set}" = set; then :
  14873. $as_echo_n "(cached) " >&6
  14874. else
  14875. case $PATH_PERL in
  14876. [\\/]* | ?:[\\/]*)
  14877. ac_cv_path_PATH_PERL="$PATH_PERL" # Let the user override the test with a path.
  14878. ;;
  14879. *)
  14880. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14881. for as_dir in $PATH
  14882. do
  14883. IFS=$as_save_IFS
  14884. test -z "$as_dir" && as_dir=.
  14885. for ac_exec_ext in '' $ac_executable_extensions; do
  14886. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14887. ac_cv_path_PATH_PERL="$as_dir/$ac_word$ac_exec_ext"
  14888. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14889. break 2
  14890. fi
  14891. done
  14892. done
  14893. IFS=$as_save_IFS
  14894. ;;
  14895. esac
  14896. fi
  14897. PATH_PERL=$ac_cv_path_PATH_PERL
  14898. if test -n "$PATH_PERL"; then
  14899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_PERL" >&5
  14900. $as_echo "$PATH_PERL" >&6; }
  14901. else
  14902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14903. $as_echo "no" >&6; }
  14904. fi
  14905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14906. /* end confdefs.h. */
  14907. #define ACAT(a,b)a ## b
  14908. ACAT(Cir,cus)
  14909. _ACEOF
  14910. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14911. $EGREP "Circus" >/dev/null 2>&1; then :
  14912. $as_echo "#define ULONG_CONST(a) a ## UL" >>confdefs.h
  14913. else
  14914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14915. /* end confdefs.h. */
  14916. #define RCAT(a,b)a/**/b
  14917. RCAT(Rei,ser)
  14918. _ACEOF
  14919. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14920. $EGREP "Reiser" >/dev/null 2>&1; then :
  14921. $as_echo "#define ULONG_CONST(a) a/**/L" >>confdefs.h
  14922. else
  14923. as_fn_error "How do we create an unsigned long constant?" "$LINENO" 5
  14924. fi
  14925. rm -f conftest*
  14926. fi
  14927. rm -f conftest*
  14928. # remove for 4.2.5
  14929. case "$host" in
  14930. *-*-vxworks*)
  14931. ac_link="$ac_link $VX_KERNEL"
  14932. ;;
  14933. esac
  14934. case "$host" in
  14935. *-pc-cygwin*)
  14936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ladvapi32" >&5
  14937. $as_echo_n "checking for main in -ladvapi32... " >&6; }
  14938. if test "${ac_cv_lib_advapi32_main+set}" = set; then :
  14939. $as_echo_n "(cached) " >&6
  14940. else
  14941. ac_check_lib_save_LIBS=$LIBS
  14942. LIBS="-ladvapi32 $LIBS"
  14943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14944. /* end confdefs.h. */
  14945. int
  14946. main ()
  14947. {
  14948. return main ();
  14949. ;
  14950. return 0;
  14951. }
  14952. _ACEOF
  14953. if ac_fn_c_try_link "$LINENO"; then :
  14954. ac_cv_lib_advapi32_main=yes
  14955. else
  14956. ac_cv_lib_advapi32_main=no
  14957. fi
  14958. rm -f core conftest.err conftest.$ac_objext \
  14959. conftest$ac_exeext conftest.$ac_ext
  14960. LIBS=$ac_check_lib_save_LIBS
  14961. fi
  14962. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_advapi32_main" >&5
  14963. $as_echo "$ac_cv_lib_advapi32_main" >&6; }
  14964. if test "x$ac_cv_lib_advapi32_main" = x""yes; then :
  14965. cat >>confdefs.h <<_ACEOF
  14966. #define HAVE_LIBADVAPI32 1
  14967. _ACEOF
  14968. LIBS="-ladvapi32 $LIBS"
  14969. fi
  14970. ;;
  14971. esac
  14972. ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent"
  14973. if test "x$ac_cv_func_gethostent" = x""yes; then :
  14974. else
  14975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
  14976. $as_echo_n "checking for library containing gethostent... " >&6; }
  14977. if test "${ac_cv_search_gethostent+set}" = set; then :
  14978. $as_echo_n "(cached) " >&6
  14979. else
  14980. ac_func_search_save_LIBS=$LIBS
  14981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14982. /* end confdefs.h. */
  14983. /* Override any GCC internal prototype to avoid an error.
  14984. Use char because int might match the return type of a GCC
  14985. builtin and then its argument prototype would still apply. */
  14986. #ifdef __cplusplus
  14987. extern "C"
  14988. #endif
  14989. char gethostent ();
  14990. int
  14991. main ()
  14992. {
  14993. return gethostent ();
  14994. ;
  14995. return 0;
  14996. }
  14997. _ACEOF
  14998. for ac_lib in '' nsl; do
  14999. if test -z "$ac_lib"; then
  15000. ac_res="none required"
  15001. else
  15002. ac_res=-l$ac_lib
  15003. LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
  15004. fi
  15005. if ac_fn_c_try_link "$LINENO"; then :
  15006. ac_cv_search_gethostent=$ac_res
  15007. fi
  15008. rm -f core conftest.err conftest.$ac_objext \
  15009. conftest$ac_exeext
  15010. if test "${ac_cv_search_gethostent+set}" = set; then :
  15011. break
  15012. fi
  15013. done
  15014. if test "${ac_cv_search_gethostent+set}" = set; then :
  15015. else
  15016. ac_cv_search_gethostent=no
  15017. fi
  15018. rm conftest.$ac_ext
  15019. LIBS=$ac_func_search_save_LIBS
  15020. fi
  15021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
  15022. $as_echo "$ac_cv_search_gethostent" >&6; }
  15023. ac_res=$ac_cv_search_gethostent
  15024. if test "$ac_res" != no; then :
  15025. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  15026. fi
  15027. fi
  15028. ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
  15029. if test "x$ac_cv_func_openlog" = x""yes; then :
  15030. else
  15031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
  15032. $as_echo_n "checking for library containing openlog... " >&6; }
  15033. if test "${ac_cv_search_openlog+set}" = set; then :
  15034. $as_echo_n "(cached) " >&6
  15035. else
  15036. ac_func_search_save_LIBS=$LIBS
  15037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15038. /* end confdefs.h. */
  15039. /* Override any GCC internal prototype to avoid an error.
  15040. Use char because int might match the return type of a GCC
  15041. builtin and then its argument prototype would still apply. */
  15042. #ifdef __cplusplus
  15043. extern "C"
  15044. #endif
  15045. char openlog ();
  15046. int
  15047. main ()
  15048. {
  15049. return openlog ();
  15050. ;
  15051. return 0;
  15052. }
  15053. _ACEOF
  15054. for ac_lib in '' gen; do
  15055. if test -z "$ac_lib"; then
  15056. ac_res="none required"
  15057. else
  15058. ac_res=-l$ac_lib
  15059. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  15060. fi
  15061. if ac_fn_c_try_link "$LINENO"; then :
  15062. ac_cv_search_openlog=$ac_res
  15063. fi
  15064. rm -f core conftest.err conftest.$ac_objext \
  15065. conftest$ac_exeext
  15066. if test "${ac_cv_search_openlog+set}" = set; then :
  15067. break
  15068. fi
  15069. done
  15070. if test "${ac_cv_search_openlog+set}" = set; then :
  15071. else
  15072. ac_cv_search_openlog=no
  15073. fi
  15074. rm conftest.$ac_ext
  15075. LIBS=$ac_func_search_save_LIBS
  15076. fi
  15077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
  15078. $as_echo "$ac_cv_search_openlog" >&6; }
  15079. ac_res=$ac_cv_search_openlog
  15080. if test "$ac_res" != no; then :
  15081. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  15082. else
  15083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openlog" >&5
  15084. $as_echo_n "checking for library containing openlog... " >&6; }
  15085. if test "${ac_cv_search_openlog+set}" = set; then :
  15086. $as_echo_n "(cached) " >&6
  15087. else
  15088. ac_func_search_save_LIBS=$LIBS
  15089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15090. /* end confdefs.h. */
  15091. /* Override any GCC internal prototype to avoid an error.
  15092. Use char because int might match the return type of a GCC
  15093. builtin and then its argument prototype would still apply. */
  15094. #ifdef __cplusplus
  15095. extern "C"
  15096. #endif
  15097. char openlog ();
  15098. int
  15099. main ()
  15100. {
  15101. return openlog ();
  15102. ;
  15103. return 0;
  15104. }
  15105. _ACEOF
  15106. for ac_lib in '' syslog; do
  15107. if test -z "$ac_lib"; then
  15108. ac_res="none required"
  15109. else
  15110. ac_res=-l$ac_lib
  15111. LIBS="-l$ac_lib $libxnet -lsocket $ac_func_search_save_LIBS"
  15112. fi
  15113. if ac_fn_c_try_link "$LINENO"; then :
  15114. ac_cv_search_openlog=$ac_res
  15115. fi
  15116. rm -f core conftest.err conftest.$ac_objext \
  15117. conftest$ac_exeext
  15118. if test "${ac_cv_search_openlog+set}" = set; then :
  15119. break
  15120. fi
  15121. done
  15122. if test "${ac_cv_search_openlog+set}" = set; then :
  15123. else
  15124. ac_cv_search_openlog=no
  15125. fi
  15126. rm conftest.$ac_ext
  15127. LIBS=$ac_func_search_save_LIBS
  15128. fi
  15129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openlog" >&5
  15130. $as_echo "$ac_cv_search_openlog" >&6; }
  15131. ac_res=$ac_cv_search_openlog
  15132. if test "$ac_res" != no; then :
  15133. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  15134. fi
  15135. fi
  15136. fi
  15137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing MD5Init" >&5
  15138. $as_echo_n "checking for library containing MD5Init... " >&6; }
  15139. if test "${ac_cv_search_MD5Init+set}" = set; then :
  15140. $as_echo_n "(cached) " >&6
  15141. else
  15142. ac_func_search_save_LIBS=$LIBS
  15143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15144. /* end confdefs.h. */
  15145. /* Override any GCC internal prototype to avoid an error.
  15146. Use char because int might match the return type of a GCC
  15147. builtin and then its argument prototype would still apply. */
  15148. #ifdef __cplusplus
  15149. extern "C"
  15150. #endif
  15151. char MD5Init ();
  15152. int
  15153. main ()
  15154. {
  15155. return MD5Init ();
  15156. ;
  15157. return 0;
  15158. }
  15159. _ACEOF
  15160. for ac_lib in '' md5 md; do
  15161. if test -z "$ac_lib"; then
  15162. ac_res="none required"
  15163. else
  15164. ac_res=-l$ac_lib
  15165. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  15166. fi
  15167. if ac_fn_c_try_link "$LINENO"; then :
  15168. ac_cv_search_MD5Init=$ac_res
  15169. fi
  15170. rm -f core conftest.err conftest.$ac_objext \
  15171. conftest$ac_exeext
  15172. if test "${ac_cv_search_MD5Init+set}" = set; then :
  15173. break
  15174. fi
  15175. done
  15176. if test "${ac_cv_search_MD5Init+set}" = set; then :
  15177. else
  15178. ac_cv_search_MD5Init=no
  15179. fi
  15180. rm conftest.$ac_ext
  15181. LIBS=$ac_func_search_save_LIBS
  15182. fi
  15183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_MD5Init" >&5
  15184. $as_echo "$ac_cv_search_MD5Init" >&6; }
  15185. ac_res=$ac_cv_search_MD5Init
  15186. if test "$ac_res" != no; then :
  15187. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  15188. fi
  15189. for ac_func in MD5Init
  15190. do :
  15191. ac_fn_c_check_func "$LINENO" "MD5Init" "ac_cv_func_MD5Init"
  15192. if test "x$ac_cv_func_MD5Init" = x""yes; then :
  15193. cat >>confdefs.h <<_ACEOF
  15194. #define HAVE_MD5INIT 1
  15195. _ACEOF
  15196. fi
  15197. done
  15198. # following block becomes on 4.2.5: NTP_LINEEDITLIBS
  15199. for ac_header in readline/history.h readline/readline.h
  15200. do :
  15201. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15202. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15203. eval as_val=\$$as_ac_Header
  15204. if test "x$as_val" = x""yes; then :
  15205. cat >>confdefs.h <<_ACEOF
  15206. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15207. _ACEOF
  15208. fi
  15209. done
  15210. case "$ac_cv_header_readline_history_h$ac_cv_header_readline_readline_h" in
  15211. *no*) ;;
  15212. *) save_LIBS=$LIBS
  15213. LIBS=
  15214. # Ralf Wildenhues: either unset ... or cache READLINE_LIBS
  15215. unset ac_cv_lib_readline_readline
  15216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
  15217. $as_echo_n "checking for readline in -lreadline... " >&6; }
  15218. if test "${ac_cv_lib_readline_readline+set}" = set; then :
  15219. $as_echo_n "(cached) " >&6
  15220. else
  15221. ac_check_lib_save_LIBS=$LIBS
  15222. LIBS="-lreadline $LIBS"
  15223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15224. /* end confdefs.h. */
  15225. /* Override any GCC internal prototype to avoid an error.
  15226. Use char because int might match the return type of a GCC
  15227. builtin and then its argument prototype would still apply. */
  15228. #ifdef __cplusplus
  15229. extern "C"
  15230. #endif
  15231. char readline ();
  15232. int
  15233. main ()
  15234. {
  15235. return readline ();
  15236. ;
  15237. return 0;
  15238. }
  15239. _ACEOF
  15240. if ac_fn_c_try_link "$LINENO"; then :
  15241. ac_cv_lib_readline_readline=yes
  15242. else
  15243. ac_cv_lib_readline_readline=no
  15244. fi
  15245. rm -f core conftest.err conftest.$ac_objext \
  15246. conftest$ac_exeext conftest.$ac_ext
  15247. LIBS=$ac_check_lib_save_LIBS
  15248. fi
  15249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
  15250. $as_echo "$ac_cv_lib_readline_readline" >&6; }
  15251. if test "x$ac_cv_lib_readline_readline" = x""yes; then :
  15252. cat >>confdefs.h <<_ACEOF
  15253. #define HAVE_LIBREADLINE 1
  15254. _ACEOF
  15255. LIBS="-lreadline $LIBS"
  15256. else
  15257. { $as_echo "$as_me:${as_lineno-$LINENO}: Trying again with -lcurses" >&5
  15258. $as_echo "$as_me: Trying again with -lcurses" >&6;}
  15259. unset ac_cv_lib_readline_readline
  15260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
  15261. $as_echo_n "checking for readline in -lreadline... " >&6; }
  15262. if test "${ac_cv_lib_readline_readline+set}" = set; then :
  15263. $as_echo_n "(cached) " >&6
  15264. else
  15265. ac_check_lib_save_LIBS=$LIBS
  15266. LIBS="-lreadline -lcurses $LIBS"
  15267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15268. /* end confdefs.h. */
  15269. /* Override any GCC internal prototype to avoid an error.
  15270. Use char because int might match the return type of a GCC
  15271. builtin and then its argument prototype would still apply. */
  15272. #ifdef __cplusplus
  15273. extern "C"
  15274. #endif
  15275. char readline ();
  15276. int
  15277. main ()
  15278. {
  15279. return readline ();
  15280. ;
  15281. return 0;
  15282. }
  15283. _ACEOF
  15284. if ac_fn_c_try_link "$LINENO"; then :
  15285. ac_cv_lib_readline_readline=yes
  15286. else
  15287. ac_cv_lib_readline_readline=no
  15288. fi
  15289. rm -f core conftest.err conftest.$ac_objext \
  15290. conftest$ac_exeext conftest.$ac_ext
  15291. LIBS=$ac_check_lib_save_LIBS
  15292. fi
  15293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
  15294. $as_echo "$ac_cv_lib_readline_readline" >&6; }
  15295. if test "x$ac_cv_lib_readline_readline" = x""yes; then :
  15296. LIBS="-lreadline -lcurses $LIBS"
  15297. $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
  15298. $as_echo "#define HAVE_LIBCURSES /**/" >>confdefs.h
  15299. else
  15300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
  15301. $as_echo_n "checking for readline in -ledit... " >&6; }
  15302. if test "${ac_cv_lib_edit_readline+set}" = set; then :
  15303. $as_echo_n "(cached) " >&6
  15304. else
  15305. ac_check_lib_save_LIBS=$LIBS
  15306. LIBS="-ledit -lcurses $LIBS"
  15307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15308. /* end confdefs.h. */
  15309. /* Override any GCC internal prototype to avoid an error.
  15310. Use char because int might match the return type of a GCC
  15311. builtin and then its argument prototype would still apply. */
  15312. #ifdef __cplusplus
  15313. extern "C"
  15314. #endif
  15315. char readline ();
  15316. int
  15317. main ()
  15318. {
  15319. return readline ();
  15320. ;
  15321. return 0;
  15322. }
  15323. _ACEOF
  15324. if ac_fn_c_try_link "$LINENO"; then :
  15325. ac_cv_lib_edit_readline=yes
  15326. else
  15327. ac_cv_lib_edit_readline=no
  15328. fi
  15329. rm -f core conftest.err conftest.$ac_objext \
  15330. conftest$ac_exeext conftest.$ac_ext
  15331. LIBS=$ac_check_lib_save_LIBS
  15332. fi
  15333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
  15334. $as_echo "$ac_cv_lib_edit_readline" >&6; }
  15335. if test "x$ac_cv_lib_edit_readline" = x""yes; then :
  15336. LIBS="-ledit -lcurses"
  15337. $as_echo "#define HAVE_LIBEDIT /**/" >>confdefs.h
  15338. $as_echo "#define HAVE_LIBCURSES /**/" >>confdefs.h
  15339. fi
  15340. fi
  15341. fi
  15342. READLINE_LIBS=$LIBS
  15343. LIBS=$save_LIBS
  15344. ;;
  15345. esac
  15346. case "$host" in
  15347. *-*-*linux*) ;;
  15348. *)
  15349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setscheduler in -lrt" >&5
  15350. $as_echo_n "checking for sched_setscheduler in -lrt... " >&6; }
  15351. if test "${ac_cv_lib_rt_sched_setscheduler+set}" = set; then :
  15352. $as_echo_n "(cached) " >&6
  15353. else
  15354. ac_check_lib_save_LIBS=$LIBS
  15355. LIBS="-lrt $LIBS"
  15356. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15357. /* end confdefs.h. */
  15358. /* Override any GCC internal prototype to avoid an error.
  15359. Use char because int might match the return type of a GCC
  15360. builtin and then its argument prototype would still apply. */
  15361. #ifdef __cplusplus
  15362. extern "C"
  15363. #endif
  15364. char sched_setscheduler ();
  15365. int
  15366. main ()
  15367. {
  15368. return sched_setscheduler ();
  15369. ;
  15370. return 0;
  15371. }
  15372. _ACEOF
  15373. if ac_fn_c_try_link "$LINENO"; then :
  15374. ac_cv_lib_rt_sched_setscheduler=yes
  15375. else
  15376. ac_cv_lib_rt_sched_setscheduler=no
  15377. fi
  15378. rm -f core conftest.err conftest.$ac_objext \
  15379. conftest$ac_exeext conftest.$ac_ext
  15380. LIBS=$ac_check_lib_save_LIBS
  15381. fi
  15382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_setscheduler" >&5
  15383. $as_echo "$ac_cv_lib_rt_sched_setscheduler" >&6; }
  15384. if test "x$ac_cv_lib_rt_sched_setscheduler" = x""yes; then :
  15385. cat >>confdefs.h <<_ACEOF
  15386. #define HAVE_LIBRT 1
  15387. _ACEOF
  15388. LIBS="-lrt $LIBS"
  15389. else
  15390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setscheduler in -lposix4" >&5
  15391. $as_echo_n "checking for sched_setscheduler in -lposix4... " >&6; }
  15392. if test "${ac_cv_lib_posix4_sched_setscheduler+set}" = set; then :
  15393. $as_echo_n "(cached) " >&6
  15394. else
  15395. ac_check_lib_save_LIBS=$LIBS
  15396. LIBS="-lposix4 $LIBS"
  15397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15398. /* end confdefs.h. */
  15399. /* Override any GCC internal prototype to avoid an error.
  15400. Use char because int might match the return type of a GCC
  15401. builtin and then its argument prototype would still apply. */
  15402. #ifdef __cplusplus
  15403. extern "C"
  15404. #endif
  15405. char sched_setscheduler ();
  15406. int
  15407. main ()
  15408. {
  15409. return sched_setscheduler ();
  15410. ;
  15411. return 0;
  15412. }
  15413. _ACEOF
  15414. if ac_fn_c_try_link "$LINENO"; then :
  15415. ac_cv_lib_posix4_sched_setscheduler=yes
  15416. else
  15417. ac_cv_lib_posix4_sched_setscheduler=no
  15418. fi
  15419. rm -f core conftest.err conftest.$ac_objext \
  15420. conftest$ac_exeext conftest.$ac_ext
  15421. LIBS=$ac_check_lib_save_LIBS
  15422. fi
  15423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_setscheduler" >&5
  15424. $as_echo "$ac_cv_lib_posix4_sched_setscheduler" >&6; }
  15425. if test "x$ac_cv_lib_posix4_sched_setscheduler" = x""yes; then :
  15426. cat >>confdefs.h <<_ACEOF
  15427. #define HAVE_LIBPOSIX4 1
  15428. _ACEOF
  15429. LIBS="-lposix4 $LIBS"
  15430. fi
  15431. fi
  15432. ;;
  15433. esac
  15434. ac_fn_c_check_func "$LINENO" "setsockopt" "ac_cv_func_setsockopt"
  15435. if test "x$ac_cv_func_setsockopt" = x""yes; then :
  15436. else
  15437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
  15438. $as_echo_n "checking for library containing setsockopt... " >&6; }
  15439. if test "${ac_cv_search_setsockopt+set}" = set; then :
  15440. $as_echo_n "(cached) " >&6
  15441. else
  15442. ac_func_search_save_LIBS=$LIBS
  15443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15444. /* end confdefs.h. */
  15445. /* Override any GCC internal prototype to avoid an error.
  15446. Use char because int might match the return type of a GCC
  15447. builtin and then its argument prototype would still apply. */
  15448. #ifdef __cplusplus
  15449. extern "C"
  15450. #endif
  15451. char setsockopt ();
  15452. int
  15453. main ()
  15454. {
  15455. return setsockopt ();
  15456. ;
  15457. return 0;
  15458. }
  15459. _ACEOF
  15460. for ac_lib in '' socket xnet; do
  15461. if test -z "$ac_lib"; then
  15462. ac_res="none required"
  15463. else
  15464. ac_res=-l$ac_lib
  15465. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  15466. fi
  15467. if ac_fn_c_try_link "$LINENO"; then :
  15468. ac_cv_search_setsockopt=$ac_res
  15469. fi
  15470. rm -f core conftest.err conftest.$ac_objext \
  15471. conftest$ac_exeext
  15472. if test "${ac_cv_search_setsockopt+set}" = set; then :
  15473. break
  15474. fi
  15475. done
  15476. if test "${ac_cv_search_setsockopt+set}" = set; then :
  15477. else
  15478. ac_cv_search_setsockopt=no
  15479. fi
  15480. rm conftest.$ac_ext
  15481. LIBS=$ac_func_search_save_LIBS
  15482. fi
  15483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
  15484. $as_echo "$ac_cv_search_setsockopt" >&6; }
  15485. ac_res=$ac_cv_search_setsockopt
  15486. if test "$ac_res" != no; then :
  15487. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  15488. fi
  15489. fi
  15490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  15491. $as_echo_n "checking for ANSI C header files... " >&6; }
  15492. if test "${ac_cv_header_stdc+set}" = set; then :
  15493. $as_echo_n "(cached) " >&6
  15494. else
  15495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15496. /* end confdefs.h. */
  15497. #include <stdlib.h>
  15498. #include <stdarg.h>
  15499. #include <string.h>
  15500. #include <float.h>
  15501. int
  15502. main ()
  15503. {
  15504. ;
  15505. return 0;
  15506. }
  15507. _ACEOF
  15508. if ac_fn_c_try_compile "$LINENO"; then :
  15509. ac_cv_header_stdc=yes
  15510. else
  15511. ac_cv_header_stdc=no
  15512. fi
  15513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15514. if test $ac_cv_header_stdc = yes; then
  15515. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  15516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15517. /* end confdefs.h. */
  15518. #include <string.h>
  15519. _ACEOF
  15520. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15521. $EGREP "memchr" >/dev/null 2>&1; then :
  15522. else
  15523. ac_cv_header_stdc=no
  15524. fi
  15525. rm -f conftest*
  15526. fi
  15527. if test $ac_cv_header_stdc = yes; then
  15528. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  15529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15530. /* end confdefs.h. */
  15531. #include <stdlib.h>
  15532. _ACEOF
  15533. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15534. $EGREP "free" >/dev/null 2>&1; then :
  15535. else
  15536. ac_cv_header_stdc=no
  15537. fi
  15538. rm -f conftest*
  15539. fi
  15540. if test $ac_cv_header_stdc = yes; then
  15541. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  15542. if test "$cross_compiling" = yes; then :
  15543. :
  15544. else
  15545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15546. /* end confdefs.h. */
  15547. #include <ctype.h>
  15548. #include <stdlib.h>
  15549. #if ((' ' & 0x0FF) == 0x020)
  15550. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  15551. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  15552. #else
  15553. # define ISLOWER(c) \
  15554. (('a' <= (c) && (c) <= 'i') \
  15555. || ('j' <= (c) && (c) <= 'r') \
  15556. || ('s' <= (c) && (c) <= 'z'))
  15557. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  15558. #endif
  15559. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  15560. int
  15561. main ()
  15562. {
  15563. int i;
  15564. for (i = 0; i < 256; i++)
  15565. if (XOR (islower (i), ISLOWER (i))
  15566. || toupper (i) != TOUPPER (i))
  15567. return 2;
  15568. return 0;
  15569. }
  15570. _ACEOF
  15571. if ac_fn_c_try_run "$LINENO"; then :
  15572. else
  15573. ac_cv_header_stdc=no
  15574. fi
  15575. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15576. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15577. fi
  15578. fi
  15579. fi
  15580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  15581. $as_echo "$ac_cv_header_stdc" >&6; }
  15582. if test $ac_cv_header_stdc = yes; then
  15583. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  15584. fi
  15585. for ac_header in bstring.h
  15586. do :
  15587. ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
  15588. if test "x$ac_cv_header_bstring_h" = x""yes; then :
  15589. cat >>confdefs.h <<_ACEOF
  15590. #define HAVE_BSTRING_H 1
  15591. _ACEOF
  15592. fi
  15593. done
  15594. ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
  15595. if test "x$ac_cv_header_dns_sd_h" = x""yes; then :
  15596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DNSServiceRegister in -ldns_sd" >&5
  15597. $as_echo_n "checking for DNSServiceRegister in -ldns_sd... " >&6; }
  15598. if test "${ac_cv_lib_dns_sd_DNSServiceRegister+set}" = set; then :
  15599. $as_echo_n "(cached) " >&6
  15600. else
  15601. ac_check_lib_save_LIBS=$LIBS
  15602. LIBS="-ldns_sd $LIBS"
  15603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15604. /* end confdefs.h. */
  15605. /* Override any GCC internal prototype to avoid an error.
  15606. Use char because int might match the return type of a GCC
  15607. builtin and then its argument prototype would still apply. */
  15608. #ifdef __cplusplus
  15609. extern "C"
  15610. #endif
  15611. char DNSServiceRegister ();
  15612. int
  15613. main ()
  15614. {
  15615. return DNSServiceRegister ();
  15616. ;
  15617. return 0;
  15618. }
  15619. _ACEOF
  15620. if ac_fn_c_try_link "$LINENO"; then :
  15621. ac_cv_lib_dns_sd_DNSServiceRegister=yes
  15622. else
  15623. ac_cv_lib_dns_sd_DNSServiceRegister=no
  15624. fi
  15625. rm -f core conftest.err conftest.$ac_objext \
  15626. conftest$ac_exeext conftest.$ac_ext
  15627. LIBS=$ac_check_lib_save_LIBS
  15628. fi
  15629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dns_sd_DNSServiceRegister" >&5
  15630. $as_echo "$ac_cv_lib_dns_sd_DNSServiceRegister" >&6; }
  15631. if test "x$ac_cv_lib_dns_sd_DNSServiceRegister" = x""yes; then :
  15632. $as_echo "#define HAVE_DNSREGISTRATION 1" >>confdefs.h
  15633. fi
  15634. fi
  15635. case "$ac_cv_lib_dns_sd_DNSServiceRegister" in
  15636. yes) LIBS="-ldns_sd $LIBS" ;;
  15637. esac
  15638. for ac_header in errno.h fcntl.h ieeefp.h math.h
  15639. do :
  15640. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15641. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15642. eval as_val=\$$as_ac_Header
  15643. if test "x$as_val" = x""yes; then :
  15644. cat >>confdefs.h <<_ACEOF
  15645. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15646. _ACEOF
  15647. fi
  15648. done
  15649. # HMS: Lame, but fast.
  15650. if test -f /etc/redhat-release
  15651. then
  15652. :
  15653. else
  15654. for ac_header in md5.h
  15655. do :
  15656. ac_fn_c_check_header_compile "$LINENO" "md5.h" "ac_cv_header_md5_h" "#if HAVE_SYS_TYPES_H
  15657. #include <sys/types.h>
  15658. #endif
  15659. "
  15660. if test "x$ac_cv_header_md5_h" = x""yes; then :
  15661. cat >>confdefs.h <<_ACEOF
  15662. #define HAVE_MD5_H 1
  15663. _ACEOF
  15664. fi
  15665. done
  15666. fi
  15667. for ac_header in memory.h netdb.h poll.h
  15668. do :
  15669. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15670. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15671. eval as_val=\$$as_ac_Header
  15672. if test "x$as_val" = x""yes; then :
  15673. cat >>confdefs.h <<_ACEOF
  15674. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15675. _ACEOF
  15676. fi
  15677. done
  15678. for ac_header in sched.h sgtty.h stdlib.h string.h termio.h
  15679. do :
  15680. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15681. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15682. eval as_val=\$$as_ac_Header
  15683. if test "x$as_val" = x""yes; then :
  15684. cat >>confdefs.h <<_ACEOF
  15685. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15686. _ACEOF
  15687. fi
  15688. done
  15689. for ac_header in termios.h timepps.h timex.h unistd.h
  15690. do :
  15691. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15692. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15693. eval as_val=\$$as_ac_Header
  15694. if test "x$as_val" = x""yes; then :
  15695. cat >>confdefs.h <<_ACEOF
  15696. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15697. _ACEOF
  15698. fi
  15699. done
  15700. case "$host" in
  15701. *-*-aix*)
  15702. for ac_header in utmpx.h
  15703. do :
  15704. ac_fn_c_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
  15705. if test "x$ac_cv_header_utmpx_h" = x""yes; then :
  15706. cat >>confdefs.h <<_ACEOF
  15707. #define HAVE_UTMPX_H 1
  15708. _ACEOF
  15709. fi
  15710. done
  15711. case "$ac_cv_header_utmpx_h" in
  15712. yes) ;;
  15713. *) for ac_header in utmp.h
  15714. do :
  15715. ac_fn_c_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
  15716. if test "x$ac_cv_header_utmp_h" = x""yes; then :
  15717. cat >>confdefs.h <<_ACEOF
  15718. #define HAVE_UTMP_H 1
  15719. _ACEOF
  15720. fi
  15721. done
  15722. ;;
  15723. esac
  15724. ;;
  15725. *) for ac_header in utmp.h utmpx.h
  15726. do :
  15727. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15728. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15729. eval as_val=\$$as_ac_Header
  15730. if test "x$as_val" = x""yes; then :
  15731. cat >>confdefs.h <<_ACEOF
  15732. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15733. _ACEOF
  15734. fi
  15735. done
  15736. ;;
  15737. esac
  15738. for ac_header in arpa/nameser.h
  15739. do :
  15740. ac_fn_c_check_header_mongrel "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "$ac_includes_default"
  15741. if test "x$ac_cv_header_arpa_nameser_h" = x""yes; then :
  15742. cat >>confdefs.h <<_ACEOF
  15743. #define HAVE_ARPA_NAMESER_H 1
  15744. _ACEOF
  15745. fi
  15746. done
  15747. for ac_header in sys/socket.h
  15748. do :
  15749. ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  15750. if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
  15751. cat >>confdefs.h <<_ACEOF
  15752. #define HAVE_SYS_SOCKET_H 1
  15753. _ACEOF
  15754. fi
  15755. done
  15756. for ac_header in net/if.h
  15757. do :
  15758. ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#if HAVE_SYS_SOCKET_H
  15759. #include <sys/socket.h>
  15760. #endif
  15761. "
  15762. if test "x$ac_cv_header_net_if_h" = x""yes; then :
  15763. cat >>confdefs.h <<_ACEOF
  15764. #define HAVE_NET_IF_H 1
  15765. _ACEOF
  15766. fi
  15767. done
  15768. for ac_header in net/if6.h
  15769. do :
  15770. ac_fn_c_check_header_mongrel "$LINENO" "net/if6.h" "ac_cv_header_net_if6_h" "$ac_includes_default"
  15771. if test "x$ac_cv_header_net_if6_h" = x""yes; then :
  15772. cat >>confdefs.h <<_ACEOF
  15773. #define HAVE_NET_IF6_H 1
  15774. _ACEOF
  15775. fi
  15776. done
  15777. for ac_header in net/route.h
  15778. do :
  15779. ac_fn_c_check_header_compile "$LINENO" "net/route.h" "ac_cv_header_net_route_h" "
  15780. #include <sys/types.h>
  15781. #include <sys/socket.h>
  15782. #include <net/if.h>
  15783. "
  15784. if test "x$ac_cv_header_net_route_h" = x""yes; then :
  15785. cat >>confdefs.h <<_ACEOF
  15786. #define HAVE_NET_ROUTE_H 1
  15787. _ACEOF
  15788. fi
  15789. done
  15790. for ac_header in netinet/in_system.h netinet/in_systm.h
  15791. do :
  15792. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15793. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15794. eval as_val=\$$as_ac_Header
  15795. if test "x$as_val" = x""yes; then :
  15796. cat >>confdefs.h <<_ACEOF
  15797. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15798. _ACEOF
  15799. fi
  15800. done
  15801. for ac_header in netinet/in.h
  15802. do :
  15803. ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
  15804. if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
  15805. cat >>confdefs.h <<_ACEOF
  15806. #define HAVE_NETINET_IN_H 1
  15807. _ACEOF
  15808. fi
  15809. done
  15810. for ac_header in netinet/ip.h
  15811. do :
  15812. ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "#if HAVE_SYS_TYPES_H
  15813. #include <sys/types.h>
  15814. #endif
  15815. #if HAVE_NETINET_IN_H
  15816. #include <netinet/in.h>
  15817. #endif
  15818. #if HAVE_NETINET_IN_SYSTM_H
  15819. #include <netinet/in_systm.h>
  15820. #endif
  15821. "
  15822. if test "x$ac_cv_header_netinet_ip_h" = x""yes; then :
  15823. cat >>confdefs.h <<_ACEOF
  15824. #define HAVE_NETINET_IP_H 1
  15825. _ACEOF
  15826. fi
  15827. done
  15828. # Check for IPTOS_PREC
  15829. { $as_echo "$as_me:${as_lineno-$LINENO}: checking IPPROTO_IP IP_TOS IPTOS_LOWDELAY" >&5
  15830. $as_echo_n "checking IPPROTO_IP IP_TOS IPTOS_LOWDELAY... " >&6; }
  15831. if test "${ac_cv_ip_tos+set}" = set; then :
  15832. $as_echo_n "(cached) " >&6
  15833. else
  15834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15835. /* end confdefs.h. */
  15836. #if HAVE_SYS_TYPES_H
  15837. #include <sys/types.h>
  15838. #endif
  15839. #if HAVE_NETINET_IP_H
  15840. #include <netinet/in.h>
  15841. #include <netinet/ip.h>
  15842. #endif
  15843. #if defined(IPPROTO_IP) && defined(IP_TOS) && defined(IPTOS_LOWDELAY)
  15844. yes
  15845. #endif
  15846. _ACEOF
  15847. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15848. $EGREP "yes" >/dev/null 2>&1; then :
  15849. ac_cv_ip_tos=yes
  15850. else
  15851. ac_cv_ip_tos=no
  15852. fi
  15853. rm -f conftest*
  15854. fi
  15855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ip_tos" >&5
  15856. $as_echo "$ac_cv_ip_tos" >&6; }
  15857. case "$ac_cv_ip_tos" in
  15858. yes)
  15859. $as_echo "#define HAVE_IPTOS_SUPPORT 1" >>confdefs.h
  15860. esac
  15861. for ac_header in netinfo/ni.h
  15862. do :
  15863. ac_fn_c_check_header_mongrel "$LINENO" "netinfo/ni.h" "ac_cv_header_netinfo_ni_h" "$ac_includes_default"
  15864. if test "x$ac_cv_header_netinfo_ni_h" = x""yes; then :
  15865. cat >>confdefs.h <<_ACEOF
  15866. #define HAVE_NETINFO_NI_H 1
  15867. _ACEOF
  15868. $as_echo "#define HAVE_NETINFO 1" >>confdefs.h
  15869. fi
  15870. done
  15871. for ac_header in sun/audioio.h sys/audioio.h
  15872. do :
  15873. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15874. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15875. eval as_val=\$$as_ac_Header
  15876. if test "x$as_val" = x""yes; then :
  15877. cat >>confdefs.h <<_ACEOF
  15878. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15879. _ACEOF
  15880. fi
  15881. done
  15882. for ac_header in sys/clkdefs.h sys/file.h
  15883. do :
  15884. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15885. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15886. eval as_val=\$$as_ac_Header
  15887. if test "x$as_val" = x""yes; then :
  15888. cat >>confdefs.h <<_ACEOF
  15889. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15890. _ACEOF
  15891. fi
  15892. done
  15893. case "$host" in
  15894. *-*-sunos4*) ;;
  15895. *) for ac_header in sys/ioctl.h
  15896. do :
  15897. ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
  15898. if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
  15899. cat >>confdefs.h <<_ACEOF
  15900. #define HAVE_SYS_IOCTL_H 1
  15901. _ACEOF
  15902. fi
  15903. done
  15904. ;;
  15905. esac
  15906. for ac_header in sys/ipc.h
  15907. do :
  15908. ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
  15909. if test "x$ac_cv_header_sys_ipc_h" = x""yes; then :
  15910. cat >>confdefs.h <<_ACEOF
  15911. #define HAVE_SYS_IPC_H 1
  15912. _ACEOF
  15913. fi
  15914. done
  15915. for ac_header in sys/lock.h sys/mman.h sys/modem.h sys/param.h sys/ppsclock.h
  15916. do :
  15917. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15918. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15919. eval as_val=\$$as_ac_Header
  15920. if test "x$as_val" = x""yes; then :
  15921. cat >>confdefs.h <<_ACEOF
  15922. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15923. _ACEOF
  15924. fi
  15925. done
  15926. # HMS: Check sys/proc.h and sys/resource.h after some others
  15927. for ac_header in sys/ppstime.h
  15928. do :
  15929. ac_fn_c_check_header_mongrel "$LINENO" "sys/ppstime.h" "ac_cv_header_sys_ppstime_h" "$ac_includes_default"
  15930. if test "x$ac_cv_header_sys_ppstime_h" = x""yes; then :
  15931. cat >>confdefs.h <<_ACEOF
  15932. #define HAVE_SYS_PPSTIME_H 1
  15933. _ACEOF
  15934. fi
  15935. done
  15936. case "$ac_cv_header_sched_h" in
  15937. yes) ;;
  15938. *) for ac_header in sys/sched.h
  15939. do :
  15940. ac_fn_c_check_header_mongrel "$LINENO" "sys/sched.h" "ac_cv_header_sys_sched_h" "$ac_includes_default"
  15941. if test "x$ac_cv_header_sys_sched_h" = x""yes; then :
  15942. cat >>confdefs.h <<_ACEOF
  15943. #define HAVE_SYS_SCHED_H 1
  15944. _ACEOF
  15945. fi
  15946. done
  15947. ;;
  15948. esac
  15949. case "$host" in
  15950. *-*-sco*)
  15951. for ac_header in sys/sio.h
  15952. do :
  15953. ac_fn_c_check_header_mongrel "$LINENO" "sys/sio.h" "ac_cv_header_sys_sio_h" "$ac_includes_default"
  15954. if test "x$ac_cv_header_sys_sio_h" = x""yes; then :
  15955. cat >>confdefs.h <<_ACEOF
  15956. #define HAVE_SYS_SIO_H 1
  15957. _ACEOF
  15958. fi
  15959. done
  15960. ;;
  15961. esac
  15962. # HMS: Check sys/shm.h after some others
  15963. for ac_header in sys/select.h sys/signal.h sys/sockio.h
  15964. do :
  15965. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15966. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15967. eval as_val=\$$as_ac_Header
  15968. if test "x$as_val" = x""yes; then :
  15969. cat >>confdefs.h <<_ACEOF
  15970. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15971. _ACEOF
  15972. fi
  15973. done
  15974. # HMS: Checked sys/socket.h earlier
  15975. case "$host" in
  15976. *-*-netbsd*) ;;
  15977. *) for ac_header in machine/soundcard.h sys/soundcard.h
  15978. do :
  15979. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15980. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15981. eval as_val=\$$as_ac_Header
  15982. if test "x$as_val" = x""yes; then :
  15983. cat >>confdefs.h <<_ACEOF
  15984. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15985. _ACEOF
  15986. fi
  15987. done
  15988. ;;
  15989. esac
  15990. for ac_header in sys/stat.h sys/stream.h
  15991. do :
  15992. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15993. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15994. eval as_val=\$$as_ac_Header
  15995. if test "x$as_val" = x""yes; then :
  15996. cat >>confdefs.h <<_ACEOF
  15997. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15998. _ACEOF
  15999. fi
  16000. done
  16001. for ac_header in sys/stropts.h sys/sysctl.h sys/syssgi.h sys/systune.h
  16002. do :
  16003. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16004. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16005. eval as_val=\$$as_ac_Header
  16006. if test "x$as_val" = x""yes; then :
  16007. cat >>confdefs.h <<_ACEOF
  16008. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16009. _ACEOF
  16010. fi
  16011. done
  16012. for ac_header in sys/termios.h sys/time.h sys/signal.h
  16013. do :
  16014. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16015. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16016. eval as_val=\$$as_ac_Header
  16017. if test "x$as_val" = x""yes; then :
  16018. cat >>confdefs.h <<_ACEOF
  16019. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16020. _ACEOF
  16021. fi
  16022. done
  16023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16024. /* end confdefs.h. */
  16025. #if HAVE_SYS_TIME_H
  16026. # include <sys/time.h>
  16027. #endif
  16028. #if HAVE_ERRNO_H
  16029. # include <errno.h>
  16030. #endif
  16031. #include <sys/timepps.h>
  16032. #ifdef PPS_API_VERS_1
  16033. yes
  16034. #endif
  16035. _ACEOF
  16036. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16037. $EGREP "yes" >/dev/null 2>&1; then :
  16038. for ac_header in sys/timepps.h
  16039. do :
  16040. ac_fn_c_check_header_compile "$LINENO" "sys/timepps.h" "ac_cv_header_sys_timepps_h" "#if HAVE_SYS_TIME_H
  16041. # include <sys/time.h>
  16042. #endif
  16043. #if HAVE_ERRNO_H
  16044. # include <errno.h>
  16045. #endif
  16046. "
  16047. if test "x$ac_cv_header_sys_timepps_h" = x""yes; then :
  16048. cat >>confdefs.h <<_ACEOF
  16049. #define HAVE_SYS_TIMEPPS_H 1
  16050. _ACEOF
  16051. fi
  16052. done
  16053. fi
  16054. rm -f conftest*
  16055. for ac_header in sys/timers.h sys/tpro.h sys/types.h sys/wait.h
  16056. do :
  16057. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16058. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16059. eval as_val=\$$as_ac_Header
  16060. if test "x$as_val" = x""yes; then :
  16061. cat >>confdefs.h <<_ACEOF
  16062. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16063. _ACEOF
  16064. fi
  16065. done
  16066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  16067. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  16068. if test "${ac_cv_header_time+set}" = set; then :
  16069. $as_echo_n "(cached) " >&6
  16070. else
  16071. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16072. /* end confdefs.h. */
  16073. #include <sys/types.h>
  16074. #include <sys/time.h>
  16075. #include <time.h>
  16076. int
  16077. main ()
  16078. {
  16079. if ((struct tm *) 0)
  16080. return 0;
  16081. ;
  16082. return 0;
  16083. }
  16084. _ACEOF
  16085. if ac_fn_c_try_compile "$LINENO"; then :
  16086. ac_cv_header_time=yes
  16087. else
  16088. ac_cv_header_time=no
  16089. fi
  16090. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16091. fi
  16092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  16093. $as_echo "$ac_cv_header_time" >&6; }
  16094. if test $ac_cv_header_time = yes; then
  16095. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  16096. fi
  16097. case "$host" in
  16098. *-convex-*)
  16099. for ac_header in /sys/sync/queue.h /sys/sync/sema.h
  16100. do :
  16101. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16102. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16103. eval as_val=\$$as_ac_Header
  16104. if test "x$as_val" = x""yes; then :
  16105. cat >>confdefs.h <<_ACEOF
  16106. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16107. _ACEOF
  16108. fi
  16109. done
  16110. ;;
  16111. *-*-bsdi*)
  16112. for ac_header in machine/inline.h sys/pcl720.h sys/i8253.h
  16113. do :
  16114. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16115. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  16116. eval as_val=\$$as_ac_Header
  16117. if test "x$as_val" = x""yes; then :
  16118. cat >>confdefs.h <<_ACEOF
  16119. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16120. _ACEOF
  16121. fi
  16122. done
  16123. ;;
  16124. esac
  16125. case "$host" in
  16126. *-*-*linux*)
  16127. for ac_func in __adjtimex __ntp_gettime
  16128. do :
  16129. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16130. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  16131. eval as_val=\$$as_ac_var
  16132. if test "x$as_val" = x""yes; then :
  16133. cat >>confdefs.h <<_ACEOF
  16134. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16135. _ACEOF
  16136. fi
  16137. done
  16138. ;;
  16139. esac
  16140. case "$ac_cv_func___adjtimex" in
  16141. yes) ;;
  16142. *)
  16143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
  16144. $as_echo_n "checking for nlist in -lelf... " >&6; }
  16145. if test "${ac_cv_lib_elf_nlist+set}" = set; then :
  16146. $as_echo_n "(cached) " >&6
  16147. else
  16148. ac_check_lib_save_LIBS=$LIBS
  16149. LIBS="-lelf $LIBS"
  16150. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16151. /* end confdefs.h. */
  16152. /* Override any GCC internal prototype to avoid an error.
  16153. Use char because int might match the return type of a GCC
  16154. builtin and then its argument prototype would still apply. */
  16155. #ifdef __cplusplus
  16156. extern "C"
  16157. #endif
  16158. char nlist ();
  16159. int
  16160. main ()
  16161. {
  16162. return nlist ();
  16163. ;
  16164. return 0;
  16165. }
  16166. _ACEOF
  16167. if ac_fn_c_try_link "$LINENO"; then :
  16168. ac_cv_lib_elf_nlist=yes
  16169. else
  16170. ac_cv_lib_elf_nlist=no
  16171. fi
  16172. rm -f core conftest.err conftest.$ac_objext \
  16173. conftest$ac_exeext conftest.$ac_ext
  16174. LIBS=$ac_check_lib_save_LIBS
  16175. fi
  16176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
  16177. $as_echo "$ac_cv_lib_elf_nlist" >&6; }
  16178. if test "x$ac_cv_lib_elf_nlist" = x""yes; then :
  16179. cat >>confdefs.h <<_ACEOF
  16180. #define HAVE_LIBELF 1
  16181. _ACEOF
  16182. LIBS="-lelf $LIBS"
  16183. fi
  16184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkvm" >&5
  16185. $as_echo_n "checking for main in -lkvm... " >&6; }
  16186. if test "${ac_cv_lib_kvm_main+set}" = set; then :
  16187. $as_echo_n "(cached) " >&6
  16188. else
  16189. ac_check_lib_save_LIBS=$LIBS
  16190. LIBS="-lkvm $LIBS"
  16191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16192. /* end confdefs.h. */
  16193. int
  16194. main ()
  16195. {
  16196. return main ();
  16197. ;
  16198. return 0;
  16199. }
  16200. _ACEOF
  16201. if ac_fn_c_try_link "$LINENO"; then :
  16202. ac_cv_lib_kvm_main=yes
  16203. else
  16204. ac_cv_lib_kvm_main=no
  16205. fi
  16206. rm -f core conftest.err conftest.$ac_objext \
  16207. conftest$ac_exeext conftest.$ac_ext
  16208. LIBS=$ac_check_lib_save_LIBS
  16209. fi
  16210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_main" >&5
  16211. $as_echo "$ac_cv_lib_kvm_main" >&6; }
  16212. if test "x$ac_cv_lib_kvm_main" = x""yes; then :
  16213. cat >>confdefs.h <<_ACEOF
  16214. #define HAVE_LIBKVM 1
  16215. _ACEOF
  16216. LIBS="-lkvm $LIBS"
  16217. fi
  16218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lld" >&5
  16219. $as_echo_n "checking for nlist in -lld... " >&6; }
  16220. if test "${ac_cv_lib_ld_nlist+set}" = set; then :
  16221. $as_echo_n "(cached) " >&6
  16222. else
  16223. ac_check_lib_save_LIBS=$LIBS
  16224. LIBS="-lld $LIBS"
  16225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16226. /* end confdefs.h. */
  16227. /* Override any GCC internal prototype to avoid an error.
  16228. Use char because int might match the return type of a GCC
  16229. builtin and then its argument prototype would still apply. */
  16230. #ifdef __cplusplus
  16231. extern "C"
  16232. #endif
  16233. char nlist ();
  16234. int
  16235. main ()
  16236. {
  16237. return nlist ();
  16238. ;
  16239. return 0;
  16240. }
  16241. _ACEOF
  16242. if ac_fn_c_try_link "$LINENO"; then :
  16243. ac_cv_lib_ld_nlist=yes
  16244. else
  16245. ac_cv_lib_ld_nlist=no
  16246. fi
  16247. rm -f core conftest.err conftest.$ac_objext \
  16248. conftest$ac_exeext conftest.$ac_ext
  16249. LIBS=$ac_check_lib_save_LIBS
  16250. fi
  16251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ld_nlist" >&5
  16252. $as_echo "$ac_cv_lib_ld_nlist" >&6; }
  16253. if test "x$ac_cv_lib_ld_nlist" = x""yes; then :
  16254. cat >>confdefs.h <<_ACEOF
  16255. #define HAVE_LIBLD 1
  16256. _ACEOF
  16257. LIBS="-lld $LIBS"
  16258. fi
  16259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lmld" >&5
  16260. $as_echo_n "checking for nlist in -lmld... " >&6; }
  16261. if test "${ac_cv_lib_mld_nlist+set}" = set; then :
  16262. $as_echo_n "(cached) " >&6
  16263. else
  16264. ac_check_lib_save_LIBS=$LIBS
  16265. LIBS="-lmld $LIBS"
  16266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16267. /* end confdefs.h. */
  16268. /* Override any GCC internal prototype to avoid an error.
  16269. Use char because int might match the return type of a GCC
  16270. builtin and then its argument prototype would still apply. */
  16271. #ifdef __cplusplus
  16272. extern "C"
  16273. #endif
  16274. char nlist ();
  16275. int
  16276. main ()
  16277. {
  16278. return nlist ();
  16279. ;
  16280. return 0;
  16281. }
  16282. _ACEOF
  16283. if ac_fn_c_try_link "$LINENO"; then :
  16284. ac_cv_lib_mld_nlist=yes
  16285. else
  16286. ac_cv_lib_mld_nlist=no
  16287. fi
  16288. rm -f core conftest.err conftest.$ac_objext \
  16289. conftest$ac_exeext conftest.$ac_ext
  16290. LIBS=$ac_check_lib_save_LIBS
  16291. fi
  16292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mld_nlist" >&5
  16293. $as_echo "$ac_cv_lib_mld_nlist" >&6; }
  16294. if test "x$ac_cv_lib_mld_nlist" = x""yes; then :
  16295. cat >>confdefs.h <<_ACEOF
  16296. #define HAVE_LIBMLD 1
  16297. _ACEOF
  16298. LIBS="-lmld $LIBS"
  16299. fi
  16300. ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
  16301. if test "x$ac_cv_header_nlist_h" = x""yes; then :
  16302. $as_echo "#define NLIST_STRUCT 1" >>confdefs.h
  16303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for n_un in struct nlist" >&5
  16304. $as_echo_n "checking for n_un in struct nlist... " >&6; }
  16305. if test "${ac_cv_struct_nlist_n_un+set}" = set; then :
  16306. $as_echo_n "(cached) " >&6
  16307. else
  16308. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16309. /* end confdefs.h. */
  16310. #include <nlist.h>
  16311. int
  16312. main ()
  16313. {
  16314. struct nlist n; n.n_un.n_name = 0;
  16315. ;
  16316. return 0;
  16317. }
  16318. _ACEOF
  16319. if ac_fn_c_try_compile "$LINENO"; then :
  16320. ac_cv_struct_nlist_n_un=yes
  16321. else
  16322. ac_cv_struct_nlist_n_un=no
  16323. fi
  16324. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16325. fi
  16326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_nlist_n_un" >&5
  16327. $as_echo "$ac_cv_struct_nlist_n_un" >&6; }
  16328. if test $ac_cv_struct_nlist_n_un = yes; then
  16329. $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
  16330. fi
  16331. fi
  16332. ;;
  16333. esac
  16334. for ac_header in sys/proc.h
  16335. do :
  16336. ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_TYPES_H
  16337. # include <sys/types.h>
  16338. #endif
  16339. #if HAVE_SYS_TIME_H
  16340. # include <sys/time.h>
  16341. #endif
  16342. "
  16343. if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
  16344. cat >>confdefs.h <<_ACEOF
  16345. #define HAVE_SYS_PROC_H 1
  16346. _ACEOF
  16347. fi
  16348. done
  16349. for ac_header in sys/resource.h
  16350. do :
  16351. ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "#if HAVE_SYS_TIME_H
  16352. # include <sys/time.h>
  16353. #endif
  16354. "
  16355. if test "x$ac_cv_header_sys_resource_h" = x""yes; then :
  16356. cat >>confdefs.h <<_ACEOF
  16357. #define HAVE_SYS_RESOURCE_H 1
  16358. _ACEOF
  16359. fi
  16360. done
  16361. for ac_header in sys/shm.h
  16362. do :
  16363. ac_fn_c_check_header_compile "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "#if HAVE_SYS_TYPES_H
  16364. # include <sys/types.h>
  16365. #endif
  16366. #if HAVE_SYS_IPC_H
  16367. # include <sys/ipc.h>
  16368. #endif
  16369. "
  16370. if test "x$ac_cv_header_sys_shm_h" = x""yes; then :
  16371. cat >>confdefs.h <<_ACEOF
  16372. #define HAVE_SYS_SHM_H 1
  16373. _ACEOF
  16374. fi
  16375. done
  16376. for ac_header in sys/timex.h
  16377. do :
  16378. ac_fn_c_check_header_compile "$LINENO" "sys/timex.h" "ac_cv_header_sys_timex_h" "#if HAVE_SYS_TIME_H
  16379. # include <sys/time.h>
  16380. #endif
  16381. "
  16382. if test "x$ac_cv_header_sys_timex_h" = x""yes; then :
  16383. cat >>confdefs.h <<_ACEOF
  16384. #define HAVE_SYS_TIMEX_H 1
  16385. _ACEOF
  16386. fi
  16387. done
  16388. for ac_header in resolv.h
  16389. do :
  16390. ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#if HAVE_SYS_TYPES_H
  16391. #include <sys/types.h>
  16392. #endif
  16393. #if HAVE_NETINET_IN_H
  16394. #include <netinet/in.h>
  16395. #endif
  16396. #if HAVE_ARPA_NAMESER_H
  16397. #include <arpa/nameser.h>
  16398. #endif
  16399. "
  16400. if test "x$ac_cv_header_resolv_h" = x""yes; then :
  16401. cat >>confdefs.h <<_ACEOF
  16402. #define HAVE_RESOLV_H 1
  16403. _ACEOF
  16404. fi
  16405. done
  16406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basic volatile support" >&5
  16407. $as_echo_n "checking for basic volatile support... " >&6; }
  16408. if test "${ac_cv_c_volatile+set}" = set; then :
  16409. $as_echo_n "(cached) " >&6
  16410. else
  16411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16412. /* end confdefs.h. */
  16413. int
  16414. main ()
  16415. {
  16416. volatile int x;
  16417. ;
  16418. return 0;
  16419. }
  16420. _ACEOF
  16421. if ac_fn_c_try_compile "$LINENO"; then :
  16422. ac_cv_c_volatile=yes
  16423. else
  16424. ac_cv_c_volatile=no
  16425. fi
  16426. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16427. fi
  16428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
  16429. $as_echo "$ac_cv_c_volatile" >&6; }
  16430. case "$ac_cv_c_volatile" in
  16431. yes)
  16432. ;;
  16433. *)
  16434. $as_echo "#define volatile /**/" >>confdefs.h
  16435. ;;
  16436. esac
  16437. #
  16438. # following block goes away in 4.2.5
  16439. #
  16440. # AM_C_PROTOTYPES gives us ansi2knr
  16441. case "$build" in
  16442. *-*-solaris2*)
  16443. # Assume that solaris2 is Ansi C...
  16444. ;;
  16445. *)
  16446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
  16447. $as_echo_n "checking for function prototypes... " >&6; }
  16448. if test "$ac_cv_prog_cc_c89" != no; then
  16449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16450. $as_echo "yes" >&6; }
  16451. $as_echo "#define PROTOTYPES 1" >>confdefs.h
  16452. $as_echo "#define __PROTOTYPES 1" >>confdefs.h
  16453. else
  16454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16455. $as_echo "no" >&6; }
  16456. fi
  16457. if test "$ac_cv_prog_cc_stdc" != no; then
  16458. U= ANSI2KNR=
  16459. else
  16460. U=_ ANSI2KNR=./ansi2knr
  16461. fi
  16462. # Ensure some checks needed by ansi2knr itself.
  16463. for ac_header in string.h
  16464. do :
  16465. ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
  16466. if test "x$ac_cv_header_string_h" = x""yes; then :
  16467. cat >>confdefs.h <<_ACEOF
  16468. #define HAVE_STRING_H 1
  16469. _ACEOF
  16470. fi
  16471. done
  16472. ;;
  16473. esac
  16474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler permits function prototypes" >&5
  16475. $as_echo_n "checking if C compiler permits function prototypes... " >&6; }
  16476. if test "${ac_cv_have_prototypes+set}" = set; then :
  16477. $as_echo_n "(cached) " >&6
  16478. else
  16479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16480. /* end confdefs.h. */
  16481. extern int foo (short);
  16482. int foo(short i) { return i; }
  16483. int
  16484. main ()
  16485. {
  16486. int i;
  16487. ;
  16488. return 0;
  16489. }
  16490. _ACEOF
  16491. if ac_fn_c_try_compile "$LINENO"; then :
  16492. ac_cv_have_prototypes=yes
  16493. else
  16494. ac_cv_have_prototypes=no
  16495. fi
  16496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16497. fi
  16498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_prototypes" >&5
  16499. $as_echo "$ac_cv_have_prototypes" >&6; }
  16500. if test "$ac_cv_have_prototypes" = yes; then
  16501. $as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h
  16502. fi
  16503. #
  16504. # end block
  16505. #
  16506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  16507. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  16508. if test "${ac_cv_c_const+set}" = set; then :
  16509. $as_echo_n "(cached) " >&6
  16510. else
  16511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16512. /* end confdefs.h. */
  16513. int
  16514. main ()
  16515. {
  16516. /* FIXME: Include the comments suggested by Paul. */
  16517. #ifndef __cplusplus
  16518. /* Ultrix mips cc rejects this. */
  16519. typedef int charset[2];
  16520. const charset cs;
  16521. /* SunOS 4.1.1 cc rejects this. */
  16522. char const *const *pcpcc;
  16523. char **ppc;
  16524. /* NEC SVR4.0.2 mips cc rejects this. */
  16525. struct point {int x, y;};
  16526. static struct point const zero = {0,0};
  16527. /* AIX XL C 1.02.0.0 rejects this.
  16528. It does not let you subtract one const X* pointer from another in
  16529. an arm of an if-expression whose if-part is not a constant
  16530. expression */
  16531. const char *g = "string";
  16532. pcpcc = &g + (g ? g-g : 0);
  16533. /* HPUX 7.0 cc rejects these. */
  16534. ++pcpcc;
  16535. ppc = (char**) pcpcc;
  16536. pcpcc = (char const *const *) ppc;
  16537. { /* SCO 3.2v4 cc rejects this. */
  16538. char *t;
  16539. char const *s = 0 ? (char *) 0 : (char const *) 0;
  16540. *t++ = 0;
  16541. if (s) return 0;
  16542. }
  16543. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  16544. int x[] = {25, 17};
  16545. const int *foo = &x[0];
  16546. ++foo;
  16547. }
  16548. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  16549. typedef const int *iptr;
  16550. iptr p = 0;
  16551. ++p;
  16552. }
  16553. { /* AIX XL C 1.02.0.0 rejects this saying
  16554. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  16555. struct s { int j; const int *ap[3]; };
  16556. struct s *b; b->j = 5;
  16557. }
  16558. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  16559. const int foo = 10;
  16560. if (!foo) return 0;
  16561. }
  16562. return !cs[0] && !zero.x;
  16563. #endif
  16564. ;
  16565. return 0;
  16566. }
  16567. _ACEOF
  16568. if ac_fn_c_try_compile "$LINENO"; then :
  16569. ac_cv_c_const=yes
  16570. else
  16571. ac_cv_c_const=no
  16572. fi
  16573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16574. fi
  16575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  16576. $as_echo "$ac_cv_c_const" >&6; }
  16577. if test $ac_cv_c_const = no; then
  16578. $as_echo "#define const /**/" >>confdefs.h
  16579. fi
  16580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  16581. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  16582. if test "${ac_cv_c_bigendian+set}" = set; then :
  16583. $as_echo_n "(cached) " >&6
  16584. else
  16585. ac_cv_c_bigendian=unknown
  16586. # See if we're dealing with a universal compiler.
  16587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16588. /* end confdefs.h. */
  16589. #ifndef __APPLE_CC__
  16590. not a universal capable compiler
  16591. #endif
  16592. typedef int dummy;
  16593. _ACEOF
  16594. if ac_fn_c_try_compile "$LINENO"; then :
  16595. # Check for potential -arch flags. It is not universal unless
  16596. # there are at least two -arch flags with different values.
  16597. ac_arch=
  16598. ac_prev=
  16599. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  16600. if test -n "$ac_prev"; then
  16601. case $ac_word in
  16602. i?86 | x86_64 | ppc | ppc64)
  16603. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  16604. ac_arch=$ac_word
  16605. else
  16606. ac_cv_c_bigendian=universal
  16607. break
  16608. fi
  16609. ;;
  16610. esac
  16611. ac_prev=
  16612. elif test "x$ac_word" = "x-arch"; then
  16613. ac_prev=arch
  16614. fi
  16615. done
  16616. fi
  16617. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16618. if test $ac_cv_c_bigendian = unknown; then
  16619. # See if sys/param.h defines the BYTE_ORDER macro.
  16620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16621. /* end confdefs.h. */
  16622. #include <sys/types.h>
  16623. #include <sys/param.h>
  16624. int
  16625. main ()
  16626. {
  16627. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  16628. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  16629. && LITTLE_ENDIAN)
  16630. bogus endian macros
  16631. #endif
  16632. ;
  16633. return 0;
  16634. }
  16635. _ACEOF
  16636. if ac_fn_c_try_compile "$LINENO"; then :
  16637. # It does; now see whether it defined to BIG_ENDIAN or not.
  16638. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16639. /* end confdefs.h. */
  16640. #include <sys/types.h>
  16641. #include <sys/param.h>
  16642. int
  16643. main ()
  16644. {
  16645. #if BYTE_ORDER != BIG_ENDIAN
  16646. not big endian
  16647. #endif
  16648. ;
  16649. return 0;
  16650. }
  16651. _ACEOF
  16652. if ac_fn_c_try_compile "$LINENO"; then :
  16653. ac_cv_c_bigendian=yes
  16654. else
  16655. ac_cv_c_bigendian=no
  16656. fi
  16657. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16658. fi
  16659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16660. fi
  16661. if test $ac_cv_c_bigendian = unknown; then
  16662. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  16663. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16664. /* end confdefs.h. */
  16665. #include <limits.h>
  16666. int
  16667. main ()
  16668. {
  16669. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  16670. bogus endian macros
  16671. #endif
  16672. ;
  16673. return 0;
  16674. }
  16675. _ACEOF
  16676. if ac_fn_c_try_compile "$LINENO"; then :
  16677. # It does; now see whether it defined to _BIG_ENDIAN or not.
  16678. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16679. /* end confdefs.h. */
  16680. #include <limits.h>
  16681. int
  16682. main ()
  16683. {
  16684. #ifndef _BIG_ENDIAN
  16685. not big endian
  16686. #endif
  16687. ;
  16688. return 0;
  16689. }
  16690. _ACEOF
  16691. if ac_fn_c_try_compile "$LINENO"; then :
  16692. ac_cv_c_bigendian=yes
  16693. else
  16694. ac_cv_c_bigendian=no
  16695. fi
  16696. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16697. fi
  16698. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16699. fi
  16700. if test $ac_cv_c_bigendian = unknown; then
  16701. # Compile a test program.
  16702. if test "$cross_compiling" = yes; then :
  16703. # Try to guess by grepping values from an object file.
  16704. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16705. /* end confdefs.h. */
  16706. short int ascii_mm[] =
  16707. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  16708. short int ascii_ii[] =
  16709. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  16710. int use_ascii (int i) {
  16711. return ascii_mm[i] + ascii_ii[i];
  16712. }
  16713. short int ebcdic_ii[] =
  16714. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  16715. short int ebcdic_mm[] =
  16716. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  16717. int use_ebcdic (int i) {
  16718. return ebcdic_mm[i] + ebcdic_ii[i];
  16719. }
  16720. extern int foo;
  16721. int
  16722. main ()
  16723. {
  16724. return use_ascii (foo) == use_ebcdic (foo);
  16725. ;
  16726. return 0;
  16727. }
  16728. _ACEOF
  16729. if ac_fn_c_try_compile "$LINENO"; then :
  16730. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  16731. ac_cv_c_bigendian=yes
  16732. fi
  16733. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  16734. if test "$ac_cv_c_bigendian" = unknown; then
  16735. ac_cv_c_bigendian=no
  16736. else
  16737. # finding both strings is unlikely to happen, but who knows?
  16738. ac_cv_c_bigendian=unknown
  16739. fi
  16740. fi
  16741. fi
  16742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16743. else
  16744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16745. /* end confdefs.h. */
  16746. $ac_includes_default
  16747. int
  16748. main ()
  16749. {
  16750. /* Are we little or big endian? From Harbison&Steele. */
  16751. union
  16752. {
  16753. long int l;
  16754. char c[sizeof (long int)];
  16755. } u;
  16756. u.l = 1;
  16757. return u.c[sizeof (long int) - 1] == 1;
  16758. ;
  16759. return 0;
  16760. }
  16761. _ACEOF
  16762. if ac_fn_c_try_run "$LINENO"; then :
  16763. ac_cv_c_bigendian=no
  16764. else
  16765. ac_cv_c_bigendian=yes
  16766. fi
  16767. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16768. conftest.$ac_objext conftest.beam conftest.$ac_ext
  16769. fi
  16770. fi
  16771. fi
  16772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  16773. $as_echo "$ac_cv_c_bigendian" >&6; }
  16774. case $ac_cv_c_bigendian in #(
  16775. yes)
  16776. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  16777. ;; #(
  16778. no)
  16779. ;; #(
  16780. universal)
  16781. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  16782. ;; #(
  16783. *)
  16784. as_fn_error "unknown endianness
  16785. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  16786. esac
  16787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  16788. $as_echo_n "checking return type of signal handlers... " >&6; }
  16789. if test "${ac_cv_type_signal+set}" = set; then :
  16790. $as_echo_n "(cached) " >&6
  16791. else
  16792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16793. /* end confdefs.h. */
  16794. #include <sys/types.h>
  16795. #include <signal.h>
  16796. int
  16797. main ()
  16798. {
  16799. return *(signal (0, 0)) (0) == 1;
  16800. ;
  16801. return 0;
  16802. }
  16803. _ACEOF
  16804. if ac_fn_c_try_compile "$LINENO"; then :
  16805. ac_cv_type_signal=int
  16806. else
  16807. ac_cv_type_signal=void
  16808. fi
  16809. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16810. fi
  16811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  16812. $as_echo "$ac_cv_type_signal" >&6; }
  16813. cat >>confdefs.h <<_ACEOF
  16814. #define RETSIGTYPE $ac_cv_type_signal
  16815. _ACEOF
  16816. ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
  16817. if test "x$ac_cv_type_off_t" = x""yes; then :
  16818. else
  16819. cat >>confdefs.h <<_ACEOF
  16820. #define off_t long int
  16821. _ACEOF
  16822. fi
  16823. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  16824. if test "x$ac_cv_type_size_t" = x""yes; then :
  16825. else
  16826. cat >>confdefs.h <<_ACEOF
  16827. #define size_t unsigned int
  16828. _ACEOF
  16829. fi
  16830. ac_fn_c_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "$ac_includes_default"
  16831. if test "x$ac_cv_type_time_t" = x""yes; then :
  16832. else
  16833. cat >>confdefs.h <<_ACEOF
  16834. #define time_t long
  16835. _ACEOF
  16836. fi
  16837. # The cast to long int works around a bug in the HP C Compiler
  16838. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  16839. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  16840. # This bug is HP SR number 8606223364.
  16841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
  16842. $as_echo_n "checking size of time_t... " >&6; }
  16843. if test "${ac_cv_sizeof_time_t+set}" = set; then :
  16844. $as_echo_n "(cached) " >&6
  16845. else
  16846. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
  16847. else
  16848. if test "$ac_cv_type_time_t" = yes; then
  16849. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16850. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16851. { as_fn_set_status 77
  16852. as_fn_error "cannot compute sizeof (time_t)
  16853. See \`config.log' for more details." "$LINENO" 5; }; }
  16854. else
  16855. ac_cv_sizeof_time_t=0
  16856. fi
  16857. fi
  16858. fi
  16859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
  16860. $as_echo "$ac_cv_sizeof_time_t" >&6; }
  16861. cat >>confdefs.h <<_ACEOF
  16862. #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
  16863. _ACEOF
  16864. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  16865. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  16866. cat >>confdefs.h <<_ACEOF
  16867. #define HAVE_UINTPTR_T 1
  16868. _ACEOF
  16869. fi
  16870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  16871. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  16872. if test "${ac_cv_struct_tm+set}" = set; then :
  16873. $as_echo_n "(cached) " >&6
  16874. else
  16875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16876. /* end confdefs.h. */
  16877. #include <sys/types.h>
  16878. #include <time.h>
  16879. int
  16880. main ()
  16881. {
  16882. struct tm tm;
  16883. int *p = &tm.tm_sec;
  16884. return !p;
  16885. ;
  16886. return 0;
  16887. }
  16888. _ACEOF
  16889. if ac_fn_c_try_compile "$LINENO"; then :
  16890. ac_cv_struct_tm=time.h
  16891. else
  16892. ac_cv_struct_tm=sys/time.h
  16893. fi
  16894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16895. fi
  16896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  16897. $as_echo "$ac_cv_struct_tm" >&6; }
  16898. if test $ac_cv_struct_tm = sys/time.h; then
  16899. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  16900. fi
  16901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int8_t" >&5
  16902. $as_echo_n "checking for u_int8_t... " >&6; }
  16903. if test "${ac_cv_type_u_int8_t+set}" = set; then :
  16904. $as_echo_n "(cached) " >&6
  16905. else
  16906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16907. /* end confdefs.h. */
  16908. #include <sys/types.h>
  16909. int
  16910. main ()
  16911. {
  16912. u_int8_t len = 42; return 0;
  16913. ;
  16914. return 0;
  16915. }
  16916. _ACEOF
  16917. if ac_fn_c_try_compile "$LINENO"; then :
  16918. ac_cv_type_u_int8_t=yes
  16919. else
  16920. ac_cv_type_u_int8_t=no
  16921. fi
  16922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16923. fi
  16924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int8_t" >&5
  16925. $as_echo "$ac_cv_type_u_int8_t" >&6; }
  16926. if test $ac_cv_type_u_int8_t = yes; then
  16927. $as_echo "#define HAVE_TYPE_U_INT8_T 1" >>confdefs.h
  16928. fi
  16929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t" >&5
  16930. $as_echo_n "checking for u_int64_t... " >&6; }
  16931. if test "${ac_cv_type_u_int64_t+set}" = set; then :
  16932. $as_echo_n "(cached) " >&6
  16933. else
  16934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16935. /* end confdefs.h. */
  16936. #include <sys/types.h>
  16937. int
  16938. main ()
  16939. {
  16940. u_int64_t len = 42; return 0;
  16941. ;
  16942. return 0;
  16943. }
  16944. _ACEOF
  16945. if ac_fn_c_try_compile "$LINENO"; then :
  16946. ac_cv_type_u_int64_t=yes
  16947. else
  16948. ac_cv_type_u_int64_t=no
  16949. fi
  16950. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16951. fi
  16952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_u_int64_t" >&5
  16953. $as_echo "$ac_cv_type_u_int64_t" >&6; }
  16954. if test $ac_cv_type_u_int64_t = yes; then
  16955. $as_echo "#define HAVE_TYPE_U_INT64_T 1" >>confdefs.h
  16956. fi
  16957. #
  16958. # Look for in_port_t.
  16959. #
  16960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_port_t" >&5
  16961. $as_echo_n "checking for in_port_t... " >&6; }
  16962. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16963. /* end confdefs.h. */
  16964. #include <sys/types.h>
  16965. #include <netinet/in.h>
  16966. int
  16967. main ()
  16968. {
  16969. in_port_t port = 25; return (0);
  16970. ;
  16971. return 0;
  16972. }
  16973. _ACEOF
  16974. if ac_fn_c_try_compile "$LINENO"; then :
  16975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16976. $as_echo "yes" >&6; }
  16977. else
  16978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16979. $as_echo "no" >&6; }
  16980. $as_echo "#define ISC_PLATFORM_NEEDPORTT 1" >>confdefs.h
  16981. fi
  16982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback value for HZ" >&5
  16984. $as_echo_n "checking for a fallback value for HZ... " >&6; }
  16985. if test "${ac_cv_var_default_hz+set}" = set; then :
  16986. $as_echo_n "(cached) " >&6
  16987. else
  16988. ac_cv_var_default_hz=100
  16989. case "$host" in
  16990. alpha*-dec-osf4*|alpha*-dec-osf5*)
  16991. ac_cv_var_default_hz=1024
  16992. ;;
  16993. mips-dec-ultrix4*)
  16994. ac_cv_var_default_hz=256
  16995. ;;
  16996. esac
  16997. fi
  16998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_default_hz" >&5
  16999. $as_echo "$ac_cv_var_default_hz" >&6; }
  17000. cat >>confdefs.h <<_ACEOF
  17001. #define DEFAULT_HZ $ac_cv_var_default_hz
  17002. _ACEOF
  17003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to override the system's value for HZ" >&5
  17004. $as_echo_n "checking if we need to override the system's value for HZ... " >&6; }
  17005. if test "${ac_cv_var_override_hz+set}" = set; then :
  17006. $as_echo_n "(cached) " >&6
  17007. else
  17008. ac_cv_var_override_hz=no
  17009. case "$host" in
  17010. alpha*-dec-osf4*|alpha*-dec-osf5*)
  17011. ac_cv_var_override_hz=yes
  17012. ;;
  17013. mips-dec-ultrix4*)
  17014. ac_cv_var_override_hz=yes
  17015. ;;
  17016. *-*-freebsd*)
  17017. ac_cv_var_override_hz=yes
  17018. ;;
  17019. *-*-sunos4*)
  17020. ac_cv_var_override_hz=yes
  17021. ;;
  17022. esac
  17023. fi
  17024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_override_hz" >&5
  17025. $as_echo "$ac_cv_var_override_hz" >&6; }
  17026. case "$ac_cv_var_override_hz" in
  17027. yes)
  17028. $as_echo "#define OVERRIDE_HZ 1" >>confdefs.h
  17029. ;;
  17030. esac
  17031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct rt_msghdr" >&5
  17032. $as_echo_n "checking for struct rt_msghdr... " >&6; }
  17033. if test "${ac_cv_struct_rt_msghdr+set}" = set; then :
  17034. $as_echo_n "(cached) " >&6
  17035. else
  17036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17037. /* end confdefs.h. */
  17038. #include <sys/types.h>
  17039. #include <sys/socket.h>
  17040. #include <net/if.h>
  17041. #include <net/route.h>
  17042. int
  17043. main ()
  17044. {
  17045. struct rt_msghdr p;
  17046. ;
  17047. return 0;
  17048. }
  17049. _ACEOF
  17050. if ac_fn_c_try_compile "$LINENO"; then :
  17051. ac_cv_struct_rt_msghdr=yes
  17052. else
  17053. ac_cv_struct_rt_msghdr=no
  17054. fi
  17055. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17056. fi
  17057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_rt_msghdr" >&5
  17058. $as_echo "$ac_cv_struct_rt_msghdr" >&6; }
  17059. if test $ac_cv_struct_rt_msghdr = yes; then
  17060. $as_echo "#define HAS_ROUTING_SOCKET 1" >>confdefs.h
  17061. fi
  17062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigaction for sa_sigaction" >&5
  17063. $as_echo_n "checking struct sigaction for sa_sigaction... " >&6; }
  17064. if test "${ac_cv_struct_sigaction_has_sa_sigaction+set}" = set; then :
  17065. $as_echo_n "(cached) " >&6
  17066. else
  17067. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17068. /* end confdefs.h. */
  17069. #include <signal.h>
  17070. int
  17071. main ()
  17072. {
  17073. struct sigaction act; act.sa_sigaction = 0;
  17074. ;
  17075. return 0;
  17076. }
  17077. _ACEOF
  17078. if ac_fn_c_try_compile "$LINENO"; then :
  17079. ac_cv_struct_sigaction_has_sa_sigaction=yes
  17080. else
  17081. ac_cv_struct_sigaction_has_sa_sigaction=no
  17082. fi
  17083. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17084. fi
  17085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sigaction_has_sa_sigaction" >&5
  17086. $as_echo "$ac_cv_struct_sigaction_has_sa_sigaction" >&6; }
  17087. if test $ac_cv_struct_sigaction_has_sa_sigaction = yes; then
  17088. $as_echo "#define HAVE_SA_SIGACTION_IN_STRUCT_SIGACTION 1" >>confdefs.h
  17089. fi
  17090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ppsclockev" >&5
  17091. $as_echo_n "checking for struct ppsclockev... " >&6; }
  17092. if test "${ac_cv_struct_ppsclockev+set}" = set; then :
  17093. $as_echo_n "(cached) " >&6
  17094. else
  17095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17096. /* end confdefs.h. */
  17097. #include <sys/types.h>
  17098. #ifdef HAVE_SYS_TERMIOS_H
  17099. # include <sys/termios.h>
  17100. #endif
  17101. #ifdef HAVE_SYS_TIME_H
  17102. # include <sys/time.h>
  17103. #endif
  17104. #ifdef HAVE_SYS_PPSCLOCK_H
  17105. # include <sys/ppsclock.h>
  17106. #endif
  17107. int
  17108. main ()
  17109. {
  17110. extern struct ppsclockev *pce;
  17111. return pce->serial;
  17112. ;
  17113. return 0;
  17114. }
  17115. _ACEOF
  17116. if ac_fn_c_try_compile "$LINENO"; then :
  17117. ac_cv_struct_ppsclockev=yes
  17118. else
  17119. ac_cv_struct_ppsclockev=no
  17120. fi
  17121. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17122. fi
  17123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_ppsclockev" >&5
  17124. $as_echo "$ac_cv_struct_ppsclockev" >&6; }
  17125. if test $ac_cv_struct_ppsclockev = yes; then
  17126. $as_echo "#define HAVE_STRUCT_PPSCLOCKEV 1" >>confdefs.h
  17127. fi
  17128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr for sa_len" >&5
  17129. $as_echo_n "checking struct sockaddr for sa_len... " >&6; }
  17130. if test "${ac_cv_struct_sockaddr_has_sa_len+set}" = set; then :
  17131. $as_echo_n "(cached) " >&6
  17132. else
  17133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17134. /* end confdefs.h. */
  17135. #include <sys/types.h>
  17136. #include <sys/socket.h>
  17137. int
  17138. main ()
  17139. {
  17140. extern struct sockaddr *ps;
  17141. return ps->sa_len;
  17142. ;
  17143. return 0;
  17144. }
  17145. _ACEOF
  17146. if ac_fn_c_try_compile "$LINENO"; then :
  17147. ac_cv_struct_sockaddr_has_sa_len=yes
  17148. else
  17149. ac_cv_struct_sockaddr_has_sa_len=no
  17150. fi
  17151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17152. fi
  17153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_has_sa_len" >&5
  17154. $as_echo "$ac_cv_struct_sockaddr_has_sa_len" >&6; }
  17155. if test $ac_cv_struct_sockaddr_has_sa_len = yes; then
  17156. $as_echo "#define HAVE_SA_LEN_IN_STRUCT_SOCKADDR 1" >>confdefs.h
  17157. fi
  17158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
  17159. $as_echo_n "checking for struct sockaddr_storage... " >&6; }
  17160. if test "${ac_cv_struct_sockaddr_storage+set}" = set; then :
  17161. $as_echo_n "(cached) " >&6
  17162. else
  17163. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17164. /* end confdefs.h. */
  17165. #include <sys/types.h>
  17166. #include <sys/socket.h>
  17167. #include <netinet/in.h>
  17168. int
  17169. main ()
  17170. {
  17171. struct sockaddr_storage n;
  17172. ;
  17173. return 0;
  17174. }
  17175. _ACEOF
  17176. if ac_fn_c_try_compile "$LINENO"; then :
  17177. ac_cv_struct_sockaddr_storage=yes
  17178. else
  17179. ac_cv_struct_sockaddr_storage=no
  17180. fi
  17181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17182. fi
  17183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
  17184. $as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
  17185. if test $ac_cv_struct_sockaddr_storage = yes; then
  17186. $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
  17187. fi
  17188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5
  17189. $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; }
  17190. if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then :
  17191. $as_echo_n "(cached) " >&6
  17192. else
  17193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17194. /* end confdefs.h. */
  17195. #include <sys/types.h>
  17196. #include <sys/socket.h>
  17197. int
  17198. main ()
  17199. {
  17200. struct sockaddr_storage s; s.ss_family = 1;
  17201. ;
  17202. return 0;
  17203. }
  17204. _ACEOF
  17205. if ac_fn_c_try_compile "$LINENO"; then :
  17206. ac_cv_have_ss_family_in_struct_ss="yes"
  17207. else
  17208. ac_cv_have_ss_family_in_struct_ss="no"
  17209. fi
  17210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17211. fi
  17212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5
  17213. $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; }
  17214. if test "x$ac_cv_have_ss_family_in_struct_ss" = "xyes" ; then
  17215. $as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h
  17216. else
  17217. # Hack around a problem...
  17218. # HMS: This is $host because we need the -D if we are building *for* it.
  17219. # HMS: 061029: Now that we separate the ss_* checks this is causing
  17220. # a problem - disable it until we get to the bottom of it.
  17221. case "$host" in
  17222. XXX*-*-hpux11.11) CPPFLAGS="$CPPFLAGS -D_NETINET_IN6_H"
  17223. ;;
  17224. esac
  17225. fi
  17226. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5
  17227. $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; }
  17228. if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then :
  17229. $as_echo_n "(cached) " >&6
  17230. else
  17231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17232. /* end confdefs.h. */
  17233. #include <sys/types.h>
  17234. #include <sys/socket.h>
  17235. int
  17236. main ()
  17237. {
  17238. struct sockaddr_storage s; s.__ss_family = 1;
  17239. ;
  17240. return 0;
  17241. }
  17242. _ACEOF
  17243. if ac_fn_c_try_compile "$LINENO"; then :
  17244. ac_cv_have___ss_family_in_struct_ss="yes"
  17245. else
  17246. ac_cv_have___ss_family_in_struct_ss="no"
  17247. fi
  17248. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17249. fi
  17250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5
  17251. $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; }
  17252. if test "x$ac_cv_have___ss_family_in_struct_ss" = "xyes" ; then
  17253. $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
  17254. fi
  17255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_len field in struct sockaddr_storage" >&5
  17256. $as_echo_n "checking for ss_len field in struct sockaddr_storage... " >&6; }
  17257. if test "${ac_cv_have_ss_len_in_struct_ss+set}" = set; then :
  17258. $as_echo_n "(cached) " >&6
  17259. else
  17260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17261. /* end confdefs.h. */
  17262. #include <sys/types.h>
  17263. #include <sys/socket.h>
  17264. int
  17265. main ()
  17266. {
  17267. struct sockaddr_storage s; s.ss_len = 1;
  17268. ;
  17269. return 0;
  17270. }
  17271. _ACEOF
  17272. if ac_fn_c_try_compile "$LINENO"; then :
  17273. ac_cv_have_ss_len_in_struct_ss="yes"
  17274. else
  17275. ac_cv_have_ss_len_in_struct_ss="no"
  17276. fi
  17277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17278. fi
  17279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_len_in_struct_ss" >&5
  17280. $as_echo "$ac_cv_have_ss_len_in_struct_ss" >&6; }
  17281. if test "x$ac_cv_have_ss_len_in_struct_ss" = "xyes" ; then
  17282. $as_echo "#define HAVE_SS_LEN_IN_SS 1" >>confdefs.h
  17283. fi
  17284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_len field in struct sockaddr_storage" >&5
  17285. $as_echo_n "checking for __ss_len field in struct sockaddr_storage... " >&6; }
  17286. if test "${ac_cv_have___ss_len_in_struct_ss+set}" = set; then :
  17287. $as_echo_n "(cached) " >&6
  17288. else
  17289. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17290. /* end confdefs.h. */
  17291. #include <sys/types.h>
  17292. #include <sys/socket.h>
  17293. int
  17294. main ()
  17295. {
  17296. struct sockaddr_storage s; s.__ss_len = 1;
  17297. ;
  17298. return 0;
  17299. }
  17300. _ACEOF
  17301. if ac_fn_c_try_compile "$LINENO"; then :
  17302. ac_cv_have___ss_len_in_struct_ss="yes"
  17303. else
  17304. ac_cv_have___ss_len_in_struct_ss="no"
  17305. fi
  17306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17307. fi
  17308. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_len_in_struct_ss" >&5
  17309. $as_echo "$ac_cv_have___ss_len_in_struct_ss" >&6; }
  17310. if test "x$ac_cv_have___ss_len_in_struct_ss" = "xyes" ; then
  17311. $as_echo "#define HAVE___SS_LEN_IN_SS 1" >>confdefs.h
  17312. fi
  17313. case "$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
  17314. *yes*)
  17315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct snd_size" >&5
  17316. $as_echo_n "checking for struct snd_size... " >&6; }
  17317. if test "${ac_cv_struct_snd_size+set}" = set; then :
  17318. $as_echo_n "(cached) " >&6
  17319. else
  17320. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17321. /* end confdefs.h. */
  17322. #ifdef HAVE_MACHINE_SOUNDCARD_H
  17323. # include <machine/soundcard.h>
  17324. #endif
  17325. #ifdef HAVE_SYS_SOUNDCARD_H
  17326. # include <sys/soundcard.h>
  17327. #endif
  17328. int
  17329. main ()
  17330. {
  17331. extern struct snd_size *ss;
  17332. return ss->rec_size;
  17333. ;
  17334. return 0;
  17335. }
  17336. _ACEOF
  17337. if ac_fn_c_try_compile "$LINENO"; then :
  17338. ac_cv_struct_snd_size=yes
  17339. else
  17340. ac_cv_struct_snd_size=no
  17341. fi
  17342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17343. fi
  17344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_snd_size" >&5
  17345. $as_echo "$ac_cv_struct_snd_size" >&6; }
  17346. case "$ac_cv_struct_snd_size" in
  17347. yes)
  17348. $as_echo "#define HAVE_STRUCT_SND_SIZE 1" >>confdefs.h
  17349. ;;
  17350. esac
  17351. ;;
  17352. esac
  17353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for hz" >&5
  17354. $as_echo_n "checking struct clockinfo for hz... " >&6; }
  17355. if test "${ac_cv_struct_clockinfo_has_hz+set}" = set; then :
  17356. $as_echo_n "(cached) " >&6
  17357. else
  17358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17359. /* end confdefs.h. */
  17360. #include <sys/time.h>
  17361. int
  17362. main ()
  17363. {
  17364. extern struct clockinfo *pc;
  17365. return pc->hz;
  17366. ;
  17367. return 0;
  17368. }
  17369. _ACEOF
  17370. if ac_fn_c_try_compile "$LINENO"; then :
  17371. ac_cv_struct_clockinfo_has_hz=yes
  17372. else
  17373. ac_cv_struct_clockinfo_has_hz=no
  17374. fi
  17375. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17376. fi
  17377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_clockinfo_has_hz" >&5
  17378. $as_echo "$ac_cv_struct_clockinfo_has_hz" >&6; }
  17379. if test $ac_cv_struct_clockinfo_has_hz = yes; then
  17380. $as_echo "#define HAVE_HZ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
  17381. fi
  17382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct clockinfo for tickadj" >&5
  17383. $as_echo_n "checking struct clockinfo for tickadj... " >&6; }
  17384. if test "${ac_cv_struct_clockinfo_has_tickadj+set}" = set; then :
  17385. $as_echo_n "(cached) " >&6
  17386. else
  17387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17388. /* end confdefs.h. */
  17389. #include <sys/time.h>
  17390. int
  17391. main ()
  17392. {
  17393. extern struct clockinfo *pc;
  17394. return pc->tickadj;
  17395. ;
  17396. return 0;
  17397. }
  17398. _ACEOF
  17399. if ac_fn_c_try_compile "$LINENO"; then :
  17400. ac_cv_struct_clockinfo_has_tickadj=yes
  17401. else
  17402. ac_cv_struct_clockinfo_has_tickadj=no
  17403. fi
  17404. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17405. fi
  17406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_clockinfo_has_tickadj" >&5
  17407. $as_echo "$ac_cv_struct_clockinfo_has_tickadj" >&6; }
  17408. if test $ac_cv_struct_clockinfo_has_tickadj = yes; then
  17409. $as_echo "#define HAVE_TICKADJ_IN_STRUCT_CLOCKINFO 1" >>confdefs.h
  17410. fi
  17411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec" >&5
  17412. $as_echo_n "checking for struct timespec... " >&6; }
  17413. if test "${ac_cv_struct_timespec+set}" = set; then :
  17414. $as_echo_n "(cached) " >&6
  17415. else
  17416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17417. /* end confdefs.h. */
  17418. #include <sys/time.h>
  17419. /* Under SunOS, timespec is in sys/timepps.h, which needs errno.h and FRAC */
  17420. #ifdef HAVE_ERRNO_H
  17421. # include <errno.h>
  17422. #endif
  17423. #ifdef HAVE_SYS_TIMEPPS_H
  17424. # define FRAC 4294967296
  17425. # include <sys/timepps.h>
  17426. #endif
  17427. int
  17428. main ()
  17429. {
  17430. struct timespec n;
  17431. ;
  17432. return 0;
  17433. }
  17434. _ACEOF
  17435. if ac_fn_c_try_compile "$LINENO"; then :
  17436. ac_cv_struct_timespec=yes
  17437. else
  17438. ac_cv_struct_timespec=no
  17439. fi
  17440. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17441. fi
  17442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timespec" >&5
  17443. $as_echo "$ac_cv_struct_timespec" >&6; }
  17444. if test $ac_cv_struct_timespec = yes; then
  17445. $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
  17446. fi
  17447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ntptimeval" >&5
  17448. $as_echo_n "checking for struct ntptimeval... " >&6; }
  17449. if test "${ac_cv_struct_ntptimeval+set}" = set; then :
  17450. $as_echo_n "(cached) " >&6
  17451. else
  17452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17453. /* end confdefs.h. */
  17454. #include <sys/time.h>
  17455. #include <sys/timex.h>
  17456. int
  17457. main ()
  17458. {
  17459. struct ntptimeval n;
  17460. ;
  17461. return 0;
  17462. }
  17463. _ACEOF
  17464. if ac_fn_c_try_compile "$LINENO"; then :
  17465. ac_cv_struct_ntptimeval=yes
  17466. else
  17467. ac_cv_struct_ntptimeval=no
  17468. fi
  17469. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17470. fi
  17471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_ntptimeval" >&5
  17472. $as_echo "$ac_cv_struct_ntptimeval" >&6; }
  17473. if test $ac_cv_struct_ntptimeval = yes; then
  17474. $as_echo "#define HAVE_STRUCT_NTPTIMEVAL 1" >>confdefs.h
  17475. fi
  17476. ac_fn_c_check_member "$LINENO" "struct ntptimeval" "time.tv_nsec" "ac_cv_member_struct_ntptimeval_time_tv_nsec" "#ifdef HAVE_SYS_TIME_H
  17477. #include <sys/time.h>
  17478. #else
  17479. # ifdef HAVE_TIME_H
  17480. # include <time.h>
  17481. # endif
  17482. #endif
  17483. #ifdef HAVE_SYS_TIMEX_H
  17484. #include <sys/timex.h>
  17485. #else
  17486. # ifdef HAVE_TIMEX_H
  17487. # include <timex.h>
  17488. # endif
  17489. #endif
  17490. "
  17491. if test "x$ac_cv_member_struct_ntptimeval_time_tv_nsec" = x""yes; then :
  17492. cat >>confdefs.h <<_ACEOF
  17493. #define HAVE_STRUCT_NTPTIMEVAL_TIME_TV_NSEC 1
  17494. _ACEOF
  17495. fi
  17496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  17497. $as_echo_n "checking for inline... " >&6; }
  17498. if test "${ac_cv_c_inline+set}" = set; then :
  17499. $as_echo_n "(cached) " >&6
  17500. else
  17501. ac_cv_c_inline=no
  17502. for ac_kw in inline __inline__ __inline; do
  17503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17504. /* end confdefs.h. */
  17505. #ifndef __cplusplus
  17506. typedef int foo_t;
  17507. static $ac_kw foo_t static_foo () {return 0; }
  17508. $ac_kw foo_t foo () {return 0; }
  17509. #endif
  17510. _ACEOF
  17511. if ac_fn_c_try_compile "$LINENO"; then :
  17512. ac_cv_c_inline=$ac_kw
  17513. fi
  17514. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17515. test "$ac_cv_c_inline" != no && break
  17516. done
  17517. fi
  17518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  17519. $as_echo "$ac_cv_c_inline" >&6; }
  17520. case $ac_cv_c_inline in
  17521. inline | yes) ;;
  17522. *)
  17523. case $ac_cv_c_inline in
  17524. no) ac_val=;;
  17525. *) ac_val=$ac_cv_c_inline;;
  17526. esac
  17527. cat >>confdefs.h <<_ACEOF
  17528. #ifndef __cplusplus
  17529. #define inline $ac_val
  17530. #endif
  17531. _ACEOF
  17532. ;;
  17533. esac
  17534. case "$ac_cv_c_inline" in
  17535. '')
  17536. ;;
  17537. *)
  17538. $as_echo "#define HAVE_INLINE 1" >>confdefs.h
  17539. esac
  17540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
  17541. $as_echo_n "checking whether char is unsigned... " >&6; }
  17542. if test "${ac_cv_c_char_unsigned+set}" = set; then :
  17543. $as_echo_n "(cached) " >&6
  17544. else
  17545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17546. /* end confdefs.h. */
  17547. $ac_includes_default
  17548. int
  17549. main ()
  17550. {
  17551. static int test_array [1 - 2 * !(((char) -1) < 0)];
  17552. test_array [0] = 0
  17553. ;
  17554. return 0;
  17555. }
  17556. _ACEOF
  17557. if ac_fn_c_try_compile "$LINENO"; then :
  17558. ac_cv_c_char_unsigned=no
  17559. else
  17560. ac_cv_c_char_unsigned=yes
  17561. fi
  17562. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17563. fi
  17564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
  17565. $as_echo "$ac_cv_c_char_unsigned" >&6; }
  17566. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  17567. $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
  17568. fi
  17569. # The cast to long int works around a bug in the HP C Compiler
  17570. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  17571. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  17572. # This bug is HP SR number 8606223364.
  17573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed char" >&5
  17574. $as_echo_n "checking size of signed char... " >&6; }
  17575. if test "${ac_cv_sizeof_signed_char+set}" = set; then :
  17576. $as_echo_n "(cached) " >&6
  17577. else
  17578. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed char))" "ac_cv_sizeof_signed_char" "$ac_includes_default"; then :
  17579. else
  17580. if test "$ac_cv_type_signed_char" = yes; then
  17581. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17582. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17583. { as_fn_set_status 77
  17584. as_fn_error "cannot compute sizeof (signed char)
  17585. See \`config.log' for more details." "$LINENO" 5; }; }
  17586. else
  17587. ac_cv_sizeof_signed_char=0
  17588. fi
  17589. fi
  17590. fi
  17591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_char" >&5
  17592. $as_echo "$ac_cv_sizeof_signed_char" >&6; }
  17593. cat >>confdefs.h <<_ACEOF
  17594. #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
  17595. _ACEOF
  17596. # The cast to long int works around a bug in the HP C Compiler
  17597. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  17598. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  17599. # This bug is HP SR number 8606223364.
  17600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  17601. $as_echo_n "checking size of int... " >&6; }
  17602. if test "${ac_cv_sizeof_int+set}" = set; then :
  17603. $as_echo_n "(cached) " >&6
  17604. else
  17605. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  17606. else
  17607. if test "$ac_cv_type_int" = yes; then
  17608. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17609. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17610. { as_fn_set_status 77
  17611. as_fn_error "cannot compute sizeof (int)
  17612. See \`config.log' for more details." "$LINENO" 5; }; }
  17613. else
  17614. ac_cv_sizeof_int=0
  17615. fi
  17616. fi
  17617. fi
  17618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  17619. $as_echo "$ac_cv_sizeof_int" >&6; }
  17620. cat >>confdefs.h <<_ACEOF
  17621. #define SIZEOF_INT $ac_cv_sizeof_int
  17622. _ACEOF
  17623. # The cast to long int works around a bug in the HP C Compiler
  17624. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  17625. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  17626. # This bug is HP SR number 8606223364.
  17627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  17628. $as_echo_n "checking size of long... " >&6; }
  17629. if test "${ac_cv_sizeof_long+set}" = set; then :
  17630. $as_echo_n "(cached) " >&6
  17631. else
  17632. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  17633. else
  17634. if test "$ac_cv_type_long" = yes; then
  17635. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17636. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17637. { as_fn_set_status 77
  17638. as_fn_error "cannot compute sizeof (long)
  17639. See \`config.log' for more details." "$LINENO" 5; }; }
  17640. else
  17641. ac_cv_sizeof_long=0
  17642. fi
  17643. fi
  17644. fi
  17645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  17646. $as_echo "$ac_cv_sizeof_long" >&6; }
  17647. cat >>confdefs.h <<_ACEOF
  17648. #define SIZEOF_LONG $ac_cv_sizeof_long
  17649. _ACEOF
  17650. ac_fn_c_check_type "$LINENO" "s_char" "ac_cv_type_s_char" "$ac_includes_default"
  17651. if test "x$ac_cv_type_s_char" = x""yes; then :
  17652. cat >>confdefs.h <<_ACEOF
  17653. #define HAVE_S_CHAR 1
  17654. _ACEOF
  17655. fi
  17656. case "$ac_cv_c_char_unsigned$ac_cv_sizeof_signed_char$ac_cv_type_s_char" in
  17657. *yes)
  17658. # We have a typedef for s_char. Might as well believe it...
  17659. ;;
  17660. no0no)
  17661. # We have signed chars, can't say 'signed char', no s_char typedef.
  17662. $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
  17663. ;;
  17664. no1no)
  17665. # We have signed chars, can say 'signed char', no s_char typedef.
  17666. $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
  17667. ;;
  17668. yes0no)
  17669. # We have unsigned chars, can't say 'signed char', no s_char typedef.
  17670. as_fn_error "No way to specify a signed character!" "$LINENO" 5
  17671. ;;
  17672. yes1no)
  17673. # We have unsigned chars, can say 'signed char', no s_char typedef.
  17674. $as_echo "#define NEED_S_CHAR_TYPEDEF 1" >>confdefs.h
  17675. ;;
  17676. esac
  17677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
  17678. $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
  17679. if test "${ac_cv_type_uid_t+set}" = set; then :
  17680. $as_echo_n "(cached) " >&6
  17681. else
  17682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17683. /* end confdefs.h. */
  17684. #include <sys/types.h>
  17685. _ACEOF
  17686. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17687. $EGREP "uid_t" >/dev/null 2>&1; then :
  17688. ac_cv_type_uid_t=yes
  17689. else
  17690. ac_cv_type_uid_t=no
  17691. fi
  17692. rm -f conftest*
  17693. fi
  17694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
  17695. $as_echo "$ac_cv_type_uid_t" >&6; }
  17696. if test $ac_cv_type_uid_t = no; then
  17697. $as_echo "#define uid_t int" >>confdefs.h
  17698. $as_echo "#define gid_t int" >>confdefs.h
  17699. fi
  17700. case "$host" in
  17701. *-*-aix[456]*)
  17702. # (prr) aix 4.1 doesn't have clock_settime, but in aix 4.3 it's a stub
  17703. # (returning ENOSYS). I didn't check 4.2. If, in the future,
  17704. # IBM pulls its thumbs out long enough to implement clock_settime,
  17705. # this conditional will need to change. Maybe use AC_TRY_RUN
  17706. # instead to try to set the time to itself and check errno.
  17707. ;;
  17708. *) for ac_func in clock_gettime clock_settime
  17709. do :
  17710. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17711. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17712. eval as_val=\$$as_ac_var
  17713. if test "x$as_val" = x""yes; then :
  17714. cat >>confdefs.h <<_ACEOF
  17715. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17716. _ACEOF
  17717. fi
  17718. done
  17719. ;;
  17720. esac
  17721. for ac_func in daemon
  17722. do :
  17723. ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
  17724. if test "x$ac_cv_func_daemon" = x""yes; then :
  17725. cat >>confdefs.h <<_ACEOF
  17726. #define HAVE_DAEMON 1
  17727. _ACEOF
  17728. fi
  17729. done
  17730. for ac_func in finite
  17731. do :
  17732. ac_fn_c_check_func "$LINENO" "finite" "ac_cv_func_finite"
  17733. if test "x$ac_cv_func_finite" = x""yes; then :
  17734. cat >>confdefs.h <<_ACEOF
  17735. #define HAVE_FINITE 1
  17736. _ACEOF
  17737. else
  17738. for ac_func in isfinite
  17739. do :
  17740. ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite"
  17741. if test "x$ac_cv_func_isfinite" = x""yes; then :
  17742. cat >>confdefs.h <<_ACEOF
  17743. #define HAVE_ISFINITE 1
  17744. _ACEOF
  17745. else
  17746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isfinite with <math.h>" >&5
  17747. $as_echo_n "checking for isfinite with <math.h>... " >&6; }
  17748. _libs=$LIBS
  17749. LIBS="$LIBS -lm"
  17750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17751. /* end confdefs.h. */
  17752. #include <math.h>
  17753. int
  17754. main ()
  17755. {
  17756. float f = 0.0; isfinite(f)
  17757. ;
  17758. return 0;
  17759. }
  17760. _ACEOF
  17761. if ac_fn_c_try_link "$LINENO"; then :
  17762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17763. $as_echo "yes" >&6; }
  17764. $as_echo "#define HAVE_ISFINITE 1" >>confdefs.h
  17765. else
  17766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17767. $as_echo "no" >&6; }
  17768. fi
  17769. rm -f core conftest.err conftest.$ac_objext \
  17770. conftest$ac_exeext conftest.$ac_ext
  17771. LIBS=$_libs
  17772. fi
  17773. done
  17774. fi
  17775. done
  17776. for ac_func in getbootfile getclock getdtablesize
  17777. do :
  17778. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17779. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  17780. eval as_val=\$$as_ac_var
  17781. if test "x$as_val" = x""yes; then :
  17782. cat >>confdefs.h <<_ACEOF
  17783. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17784. _ACEOF
  17785. fi
  17786. done
  17787. # Check whether --enable-getifaddrs was given.
  17788. if test "${enable_getifaddrs+set}" = set; then :
  17789. enableval=$enable_getifaddrs; want_getifaddrs="$enableval"
  17790. else
  17791. want_getifaddrs="yes"
  17792. fi
  17793. case $want_getifaddrs in
  17794. yes|glibc)
  17795. #
  17796. # Do we have getifaddrs() ?
  17797. #
  17798. case $host in
  17799. *-*linux*)
  17800. # Some recent versions of glibc support getifaddrs() which does not
  17801. # provide AF_INET6 addresses while the function provided by the USAGI
  17802. # project handles the AF_INET6 case correctly. We need to avoid
  17803. # using the former but prefer the latter unless overridden by
  17804. # --enable-getifaddrs=glibc.
  17805. if test $want_getifaddrs = glibc
  17806. then
  17807. for ac_func in getifaddrs
  17808. do :
  17809. ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
  17810. if test "x$ac_cv_func_getifaddrs" = x""yes; then :
  17811. cat >>confdefs.h <<_ACEOF
  17812. #define HAVE_GETIFADDRS 1
  17813. _ACEOF
  17814. fi
  17815. done
  17816. else
  17817. save_LIBS="$LIBS"
  17818. LIBS="-L/usr/local/v6/lib $LIBS"
  17819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getifaddrs in -linet6" >&5
  17820. $as_echo_n "checking for getifaddrs in -linet6... " >&6; }
  17821. if test "${ac_cv_lib_inet6_getifaddrs+set}" = set; then :
  17822. $as_echo_n "(cached) " >&6
  17823. else
  17824. ac_check_lib_save_LIBS=$LIBS
  17825. LIBS="-linet6 $LIBS"
  17826. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17827. /* end confdefs.h. */
  17828. /* Override any GCC internal prototype to avoid an error.
  17829. Use char because int might match the return type of a GCC
  17830. builtin and then its argument prototype would still apply. */
  17831. #ifdef __cplusplus
  17832. extern "C"
  17833. #endif
  17834. char getifaddrs ();
  17835. int
  17836. main ()
  17837. {
  17838. return getifaddrs ();
  17839. ;
  17840. return 0;
  17841. }
  17842. _ACEOF
  17843. if ac_fn_c_try_link "$LINENO"; then :
  17844. ac_cv_lib_inet6_getifaddrs=yes
  17845. else
  17846. ac_cv_lib_inet6_getifaddrs=no
  17847. fi
  17848. rm -f core conftest.err conftest.$ac_objext \
  17849. conftest$ac_exeext conftest.$ac_ext
  17850. LIBS=$ac_check_lib_save_LIBS
  17851. fi
  17852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet6_getifaddrs" >&5
  17853. $as_echo "$ac_cv_lib_inet6_getifaddrs" >&6; }
  17854. if test "x$ac_cv_lib_inet6_getifaddrs" = x""yes; then :
  17855. LIBS="$LIBS -linet6"
  17856. $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
  17857. else
  17858. LIBS=${save_LIBS}
  17859. fi
  17860. fi
  17861. ;;
  17862. *)
  17863. for ac_func in getifaddrs
  17864. do :
  17865. ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
  17866. if test "x$ac_cv_func_getifaddrs" = x""yes; then :
  17867. cat >>confdefs.h <<_ACEOF
  17868. #define HAVE_GETIFADDRS 1
  17869. _ACEOF
  17870. fi
  17871. done
  17872. ;;
  17873. esac
  17874. ;;
  17875. no)
  17876. ;;
  17877. esac
  17878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of socklen arg for getsockname()" >&5
  17879. $as_echo_n "checking type of socklen arg for getsockname()... " >&6; }
  17880. if test "${ac_cv_func_getsockname_arg2+set}" = set; then :
  17881. $as_echo_n "(cached) " >&6
  17882. else
  17883. if test "${ac_cv_func_getsockname_socklen_type+set}" = set; then :
  17884. $as_echo_n "(cached) " >&6
  17885. else
  17886. for ac_cv_func_getsockname_arg2 in 'struct sockaddr *' 'void *'; do
  17887. for ac_cv_func_getsockname_socklen_type in 'socklen_t' 'size_t' 'unsigned int' 'int'; do
  17888. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17889. /* end confdefs.h. */
  17890. #ifdef HAVE_SYS_TYPES_H
  17891. #include <sys/types.h>
  17892. #endif
  17893. #ifdef HAVE_SYS_SOCKET_H
  17894. #include <sys/socket.h>
  17895. #endif
  17896. extern getsockname (int, $ac_cv_func_getsockname_arg2, $ac_cv_func_getsockname_socklen_type *);
  17897. int
  17898. main ()
  17899. {
  17900. ;
  17901. return 0;
  17902. }
  17903. _ACEOF
  17904. if ac_fn_c_try_compile "$LINENO"; then :
  17905. ac_not_found=no ; break 2
  17906. else
  17907. ac_not_found=yes
  17908. fi
  17909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17910. done
  17911. done
  17912. fi
  17913. fi
  17914. if test "$ac_not_found" = yes; then
  17915. ac_cv_func_getsockname_socklen_type='socklen_t'
  17916. fi
  17917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getsockname_socklen_type" >&5
  17918. $as_echo "$ac_cv_func_getsockname_socklen_type" >&6; }
  17919. cat >>confdefs.h <<_ACEOF
  17920. #define GETSOCKNAME_SOCKLEN_TYPE $ac_cv_func_getsockname_socklen_type
  17921. _ACEOF
  17922. for ac_func in getrusage
  17923. do :
  17924. ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
  17925. if test "x$ac_cv_func_getrusage" = x""yes; then :
  17926. cat >>confdefs.h <<_ACEOF
  17927. #define HAVE_GETRUSAGE 1
  17928. _ACEOF
  17929. fi
  17930. done
  17931. ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  17932. if test "x$ac_cv_func_gettimeofday" = x""yes; then :
  17933. else
  17934. case "$host" in
  17935. *-*-mpeix*) ac_cv_func_gettimeofday=yes
  17936. ;;
  17937. esac
  17938. fi
  17939. case "$host" in
  17940. *-pc-cygwin*)
  17941. ;;
  17942. *) for ac_func in getuid
  17943. do :
  17944. ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid"
  17945. if test "x$ac_cv_func_getuid" = x""yes; then :
  17946. cat >>confdefs.h <<_ACEOF
  17947. #define HAVE_GETUID 1
  17948. _ACEOF
  17949. fi
  17950. done
  17951. ;;
  17952. esac
  17953. for ac_func in hstrerror
  17954. do :
  17955. ac_fn_c_check_func "$LINENO" "hstrerror" "ac_cv_func_hstrerror"
  17956. if test "x$ac_cv_func_hstrerror" = x""yes; then :
  17957. cat >>confdefs.h <<_ACEOF
  17958. #define HAVE_HSTRERROR 1
  17959. _ACEOF
  17960. fi
  17961. done
  17962. #
  17963. # Check for if_nametoindex() for IPv6 scoped addresses support
  17964. #
  17965. ac_fn_c_check_func "$LINENO" "if_nametoindex" "ac_cv_func_if_nametoindex"
  17966. if test "x$ac_cv_func_if_nametoindex" = x""yes; then :
  17967. ac_cv_have_if_nametoindex=yes
  17968. else
  17969. ac_cv_have_if_nametoindex=no
  17970. fi
  17971. case $ac_cv_have_if_nametoindex in
  17972. no)
  17973. case "$host" in
  17974. *-hp-hpux*)
  17975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for if_nametoindex in -lipv6" >&5
  17976. $as_echo_n "checking for if_nametoindex in -lipv6... " >&6; }
  17977. if test "${ac_cv_lib_ipv6_if_nametoindex+set}" = set; then :
  17978. $as_echo_n "(cached) " >&6
  17979. else
  17980. ac_check_lib_save_LIBS=$LIBS
  17981. LIBS="-lipv6 $LIBS"
  17982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17983. /* end confdefs.h. */
  17984. /* Override any GCC internal prototype to avoid an error.
  17985. Use char because int might match the return type of a GCC
  17986. builtin and then its argument prototype would still apply. */
  17987. #ifdef __cplusplus
  17988. extern "C"
  17989. #endif
  17990. char if_nametoindex ();
  17991. int
  17992. main ()
  17993. {
  17994. return if_nametoindex ();
  17995. ;
  17996. return 0;
  17997. }
  17998. _ACEOF
  17999. if ac_fn_c_try_link "$LINENO"; then :
  18000. ac_cv_lib_ipv6_if_nametoindex=yes
  18001. else
  18002. ac_cv_lib_ipv6_if_nametoindex=no
  18003. fi
  18004. rm -f core conftest.err conftest.$ac_objext \
  18005. conftest$ac_exeext conftest.$ac_ext
  18006. LIBS=$ac_check_lib_save_LIBS
  18007. fi
  18008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipv6_if_nametoindex" >&5
  18009. $as_echo "$ac_cv_lib_ipv6_if_nametoindex" >&6; }
  18010. if test "x$ac_cv_lib_ipv6_if_nametoindex" = x""yes; then :
  18011. ac_cv_have_if_nametoindex=yes
  18012. LIBS="-lipv6 $LIBS"
  18013. fi
  18014. ;;
  18015. esac
  18016. esac
  18017. case $ac_cv_have_if_nametoindex in
  18018. yes)
  18019. $as_echo "#define ISC_PLATFORM_HAVEIFNAMETOINDEX 1" >>confdefs.h
  18020. ;;
  18021. esac
  18022. ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
  18023. if test "x$ac_cv_func_inet_ntop" = x""yes; then :
  18024. else
  18025. $as_echo "#define ISC_PLATFORM_NEEDNTOP 1" >>confdefs.h
  18026. fi
  18027. ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
  18028. if test "x$ac_cv_func_inet_pton" = x""yes; then :
  18029. else
  18030. $as_echo "#define ISC_PLATFORM_NEEDPTON 1" >>confdefs.h
  18031. fi
  18032. ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
  18033. if test "x$ac_cv_func_inet_aton" = x""yes; then :
  18034. else
  18035. $as_echo "#define ISC_PLATFORM_NEEDATON 1" >>confdefs.h
  18036. fi
  18037. for ac_func in K_open kvm_open memcpy memmove memset
  18038. do :
  18039. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18040. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18041. eval as_val=\$$as_ac_var
  18042. if test "x$as_val" = x""yes; then :
  18043. cat >>confdefs.h <<_ACEOF
  18044. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18045. _ACEOF
  18046. fi
  18047. done
  18048. case "$host" in
  18049. *-*-sco3.2v5.0.*)
  18050. # Just stubs. Idiots.
  18051. ;;
  18052. *) for ac_func in mkstemp
  18053. do :
  18054. ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
  18055. if test "x$ac_cv_func_mkstemp" = x""yes; then :
  18056. cat >>confdefs.h <<_ACEOF
  18057. #define HAVE_MKSTEMP 1
  18058. _ACEOF
  18059. fi
  18060. done
  18061. ;;
  18062. esac
  18063. for ac_func in mktime
  18064. do :
  18065. ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime"
  18066. if test "x$ac_cv_func_mktime" = x""yes; then :
  18067. cat >>confdefs.h <<_ACEOF
  18068. #define HAVE_MKTIME 1
  18069. _ACEOF
  18070. fi
  18071. done
  18072. case "$host" in
  18073. *-*-aix[456]*)
  18074. # Just a stub. Idiots.
  18075. ;;
  18076. *-*-irix[45]*)
  18077. # Just a stub in "old" Irix. Idiots.
  18078. ;;
  18079. *-*-*linux*)
  18080. # there, but more trouble than it is worth for now (resolver problems)
  18081. ;;
  18082. *-*-qnx*)
  18083. # Apparently there but not working in QNX. Idiots?
  18084. ;;
  18085. *-*-sco3.2v5.0.*)
  18086. # Just a stub. Idiots.
  18087. ;;
  18088. alpha*-dec-osf4*|alpha*-dec-osf5*)
  18089. # mlockall is there, as a #define calling memlk via <sys/mman.h>
  18090. # Not easy to test for - cheat.
  18091. for ac_func in memlk
  18092. do :
  18093. ac_fn_c_check_func "$LINENO" "memlk" "ac_cv_func_memlk"
  18094. if test "x$ac_cv_func_memlk" = x""yes; then :
  18095. cat >>confdefs.h <<_ACEOF
  18096. #define HAVE_MEMLK 1
  18097. _ACEOF
  18098. ac_cv_func_mlockall='yes'
  18099. fi
  18100. done
  18101. for ac_func in mlockall
  18102. do :
  18103. ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
  18104. if test "x$ac_cv_func_mlockall" = x""yes; then :
  18105. cat >>confdefs.h <<_ACEOF
  18106. #define HAVE_MLOCKALL 1
  18107. _ACEOF
  18108. fi
  18109. done
  18110. ;;
  18111. *) for ac_func in mlockall
  18112. do :
  18113. ac_fn_c_check_func "$LINENO" "mlockall" "ac_cv_func_mlockall"
  18114. if test "x$ac_cv_func_mlockall" = x""yes; then :
  18115. cat >>confdefs.h <<_ACEOF
  18116. #define HAVE_MLOCKALL 1
  18117. _ACEOF
  18118. fi
  18119. done
  18120. ;;
  18121. esac
  18122. for ac_func in nice nlist
  18123. do :
  18124. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18125. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18126. eval as_val=\$$as_ac_var
  18127. if test "x$as_val" = x""yes; then :
  18128. cat >>confdefs.h <<_ACEOF
  18129. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18130. _ACEOF
  18131. fi
  18132. done
  18133. case "$host" in
  18134. *-*-solaris2.6)
  18135. # Broken...
  18136. ;;
  18137. *) for ac_func in ntp_adjtime ntp_gettime
  18138. do :
  18139. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18140. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18141. eval as_val=\$$as_ac_var
  18142. if test "x$as_val" = x""yes; then :
  18143. cat >>confdefs.h <<_ACEOF
  18144. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18145. _ACEOF
  18146. fi
  18147. done
  18148. ;;
  18149. esac
  18150. for ac_func in plock pututline pututxline readlink recvmsg rtprio
  18151. do :
  18152. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18153. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18154. eval as_val=\$$as_ac_var
  18155. if test "x$as_val" = x""yes; then :
  18156. cat >>confdefs.h <<_ACEOF
  18157. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18158. _ACEOF
  18159. fi
  18160. done
  18161. case "$host" in
  18162. *-*-aix[456]*)
  18163. # Just a stub in AIX 4. Idiots.
  18164. ;;
  18165. *-*-solaris2.5*)
  18166. # Just stubs in solaris2.5. Idiots.
  18167. ;;
  18168. *) for ac_func in sched_setscheduler
  18169. do :
  18170. ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
  18171. if test "x$ac_cv_func_sched_setscheduler" = x""yes; then :
  18172. cat >>confdefs.h <<_ACEOF
  18173. #define HAVE_SCHED_SETSCHEDULER 1
  18174. _ACEOF
  18175. fi
  18176. done
  18177. ;;
  18178. esac
  18179. for ac_func in setlinebuf setpgid setpriority setsid
  18180. do :
  18181. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18182. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18183. eval as_val=\$$as_ac_var
  18184. if test "x$as_val" = x""yes; then :
  18185. cat >>confdefs.h <<_ACEOF
  18186. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18187. _ACEOF
  18188. fi
  18189. done
  18190. for ac_func in setrlimit
  18191. do :
  18192. ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
  18193. if test "x$ac_cv_func_setrlimit" = x""yes; then :
  18194. cat >>confdefs.h <<_ACEOF
  18195. #define HAVE_SETRLIMIT 1
  18196. _ACEOF
  18197. fi
  18198. done
  18199. for ac_func in settimeofday
  18200. do :
  18201. ac_fn_c_check_func "$LINENO" "settimeofday" "ac_cv_func_settimeofday"
  18202. if test "x$ac_cv_func_settimeofday" = x""yes; then :
  18203. cat >>confdefs.h <<_ACEOF
  18204. #define HAVE_SETTIMEOFDAY 1
  18205. _ACEOF
  18206. else
  18207. case "$host" in
  18208. *-*-mpeix*) ac_cv_func_settimeofday=yes
  18209. ;;
  18210. esac
  18211. fi
  18212. done
  18213. for ac_func in setvbuf sigaction
  18214. do :
  18215. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18216. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18217. eval as_val=\$$as_ac_var
  18218. if test "x$as_val" = x""yes; then :
  18219. cat >>confdefs.h <<_ACEOF
  18220. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18221. _ACEOF
  18222. fi
  18223. done
  18224. for ac_func in sigvec sigset sigsuspend stime strchr sysconf sysctl
  18225. do :
  18226. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18227. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18228. eval as_val=\$$as_ac_var
  18229. if test "x$as_val" = x""yes; then :
  18230. cat >>confdefs.h <<_ACEOF
  18231. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18232. _ACEOF
  18233. fi
  18234. done
  18235. for ac_func in snprintf strdup strerror strstr
  18236. do :
  18237. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18238. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18239. eval as_val=\$$as_ac_var
  18240. if test "x$as_val" = x""yes; then :
  18241. cat >>confdefs.h <<_ACEOF
  18242. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18243. _ACEOF
  18244. fi
  18245. done
  18246. for ac_func in timegm
  18247. do :
  18248. ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
  18249. if test "x$ac_cv_func_timegm" = x""yes; then :
  18250. cat >>confdefs.h <<_ACEOF
  18251. #define HAVE_TIMEGM 1
  18252. _ACEOF
  18253. fi
  18254. done
  18255. case "$host" in
  18256. *-*-aix[456]*)
  18257. # Just stubs. Idiots.
  18258. ;;
  18259. *-*-netbsd1*)
  18260. # Just stubs. Idiots.
  18261. ;;
  18262. *-*-netbsdelf1*)
  18263. # Just stubs. Idiots.
  18264. ;;
  18265. *-*-openbsd*)
  18266. # Just stubs. Idiots.
  18267. ;;
  18268. *) for ac_func in timer_create timer_settime
  18269. do :
  18270. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18271. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18272. eval as_val=\$$as_ac_var
  18273. if test "x$as_val" = x""yes; then :
  18274. cat >>confdefs.h <<_ACEOF
  18275. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18276. _ACEOF
  18277. fi
  18278. done
  18279. ;;
  18280. esac
  18281. case "$host" in
  18282. *-pc-cygwin*)
  18283. # I have no idea...
  18284. ;;
  18285. *) for ac_func in umask
  18286. do :
  18287. ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
  18288. if test "x$ac_cv_func_umask" = x""yes; then :
  18289. cat >>confdefs.h <<_ACEOF
  18290. #define HAVE_UMASK 1
  18291. _ACEOF
  18292. fi
  18293. done
  18294. ;;
  18295. esac
  18296. for ac_func in uname updwtmp updwtmpx vsnprintf vsprintf
  18297. do :
  18298. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18299. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  18300. eval as_val=\$$as_ac_var
  18301. if test "x$as_val" = x""yes; then :
  18302. cat >>confdefs.h <<_ACEOF
  18303. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18304. _ACEOF
  18305. fi
  18306. done
  18307. ###
  18308. # http://bugs.ntp.org/737
  18309. case "$ac_cv_func_recvmsg" in
  18310. yes)
  18311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra help to define struct iovec" >&5
  18312. $as_echo_n "checking if we need extra help to define struct iovec... " >&6; }
  18313. if test "${ac_cv_struct_iovec_help+set}" = set; then :
  18314. $as_echo_n "(cached) " >&6
  18315. else
  18316. for ac_cv_struct_iovec_help in '0' '1'; do
  18317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18318. /* end confdefs.h. */
  18319. #ifdef HAVE_SYS_TYPES_H
  18320. #include <sys/types.h>
  18321. #endif
  18322. #ifdef HAVE_SYS_SOCKET_H
  18323. #include <sys/socket.h>
  18324. #endif
  18325. #if $ac_cv_struct_iovec_help
  18326. #include <sys/uio.h>
  18327. #endif
  18328. void foo();
  18329. void foo() {
  18330. ssize_t x;
  18331. int s = 0;
  18332. struct iovec iov;
  18333. struct msghdr mh;
  18334. int flags = 0;
  18335. mh.msg_iov = &iov;
  18336. x = recvmsg(s, &mh, flags);
  18337. }
  18338. int
  18339. main ()
  18340. {
  18341. ;
  18342. return 0;
  18343. }
  18344. _ACEOF
  18345. if ac_fn_c_try_compile "$LINENO"; then :
  18346. ac_worked=yes ; break 1
  18347. else
  18348. ac_worked=no
  18349. fi
  18350. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18351. done
  18352. fi
  18353. case "$ac_worked$ac_cv_struct_iovec_help" in
  18354. yes1)
  18355. $as_echo "#define HAVE_SYS_UIO_H 1" >>confdefs.h
  18356. ans=yes
  18357. ;;
  18358. *) ans=no
  18359. esac
  18360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  18361. $as_echo "$ans" >&6; }
  18362. ;;
  18363. esac
  18364. case "$host" in
  18365. *-*-sunos4*)
  18366. $as_echo "#define SPRINTF_CHAR 1" >>confdefs.h
  18367. ;;
  18368. esac
  18369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to gettimeofday()" >&5
  18370. $as_echo_n "checking number of arguments to gettimeofday()... " >&6; }
  18371. if test "${ac_cv_func_Xettimeofday_nargs+set}" = set; then :
  18372. $as_echo_n "(cached) " >&6
  18373. else
  18374. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18375. /* end confdefs.h. */
  18376. #include <sys/time.h>
  18377. int
  18378. main ()
  18379. {
  18380. gettimeofday((struct timeval*)0,(struct timezone*)0);
  18381. settimeofday((struct timeval*)0,(struct timezone*)0);
  18382. ;
  18383. return 0;
  18384. }
  18385. _ACEOF
  18386. if ac_fn_c_try_compile "$LINENO"; then :
  18387. ac_cv_func_Xettimeofday_nargs=2
  18388. else
  18389. ac_cv_func_Xettimeofday_nargs=1
  18390. fi
  18391. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18392. fi
  18393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_Xettimeofday_nargs" >&5
  18394. $as_echo "$ac_cv_func_Xettimeofday_nargs" >&6; }
  18395. if test $ac_cv_func_Xettimeofday_nargs = 1; then
  18396. $as_echo "#define SYSV_TIMEOFDAY 1" >>confdefs.h
  18397. fi
  18398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments taken by setpgrp()" >&5
  18399. $as_echo_n "checking number of arguments taken by setpgrp()... " >&6; }
  18400. if test "${ac_cv_func_setpgrp_nargs+set}" = set; then :
  18401. $as_echo_n "(cached) " >&6
  18402. else
  18403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18404. /* end confdefs.h. */
  18405. #ifdef HAVE_SYS_TYPES_H
  18406. # include <sys/types.h>
  18407. #endif
  18408. #ifdef HAVE_UNISTD_H
  18409. # include <unistd.h>
  18410. #endif
  18411. int
  18412. main ()
  18413. {
  18414. setpgrp(0,0);
  18415. ;
  18416. return 0;
  18417. }
  18418. _ACEOF
  18419. if ac_fn_c_try_compile "$LINENO"; then :
  18420. ac_cv_func_setpgrp_nargs=2
  18421. else
  18422. ac_cv_func_setpgrp_nargs=0
  18423. fi
  18424. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18425. fi
  18426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_nargs" >&5
  18427. $as_echo "$ac_cv_func_setpgrp_nargs" >&6; }
  18428. if test $ac_cv_func_setpgrp_nargs = 0; then
  18429. $as_echo "#define HAVE_SETPGRP_0 1" >>confdefs.h
  18430. fi
  18431. save_CFLAGS=$CFLAGS
  18432. CFLAGS="$CFLAGS -I$srcdir/include"
  18433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument pointer type of qsort()'s compare function and base" >&5
  18434. $as_echo_n "checking argument pointer type of qsort()'s compare function and base... " >&6; }
  18435. if test "${ac_cv_func_qsort_argtype+set}" = set; then :
  18436. $as_echo_n "(cached) " >&6
  18437. else
  18438. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18439. /* end confdefs.h. */
  18440. #include "l_stdlib.h"
  18441. #ifdef HAVE_PROTOTYPES
  18442. #define P(x) x
  18443. #else
  18444. #define P(x) ()
  18445. #endif
  18446. extern void *base;
  18447. extern sortfunc P((const void *, const void *));
  18448. int sortfunc(a, b)
  18449. const void *a;
  18450. const void *b; { return 0; }
  18451. int
  18452. main ()
  18453. {
  18454. qsort(base, 2, sizeof(char *), sortfunc);
  18455. ;
  18456. return 0;
  18457. }
  18458. _ACEOF
  18459. if ac_fn_c_try_compile "$LINENO"; then :
  18460. ac_cv_func_qsort_argtype=void
  18461. else
  18462. ac_cv_func_qsort_argtype=char
  18463. fi
  18464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18465. fi
  18466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_qsort_argtype" >&5
  18467. $as_echo "$ac_cv_func_qsort_argtype" >&6; }
  18468. case "$ac_cv_func_qsort_argtype" in
  18469. void)
  18470. $as_echo "#define QSORT_USES_VOID_P 1" >>confdefs.h
  18471. ;;
  18472. esac
  18473. CFLAGS=$save_CFLAGS
  18474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to declare 'errno'" >&5
  18475. $as_echo_n "checking if we need to declare 'errno'... " >&6; }
  18476. if test "${ac_cv_decl_errno+set}" = set; then :
  18477. $as_echo_n "(cached) " >&6
  18478. else
  18479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18480. /* end confdefs.h. */
  18481. #ifdef HAVE_ERRNO_H
  18482. #include <errno.h>
  18483. #endif
  18484. int
  18485. main ()
  18486. {
  18487. errno = 0;
  18488. ;
  18489. return 0;
  18490. }
  18491. _ACEOF
  18492. if ac_fn_c_try_compile "$LINENO"; then :
  18493. ac_cv_decl_errno=no
  18494. else
  18495. ac_cv_decl_errno=yes
  18496. fi
  18497. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18498. fi
  18499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_errno" >&5
  18500. $as_echo "$ac_cv_decl_errno" >&6; }
  18501. case "$ac_cv_decl_errno" in
  18502. yes)
  18503. $as_echo "#define DECL_ERRNO 1" >>confdefs.h
  18504. ;;
  18505. esac
  18506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we may declare 'h_errno'" >&5
  18507. $as_echo_n "checking if we may declare 'h_errno'... " >&6; }
  18508. if test "${ac_cv_decl_h_errno+set}" = set; then :
  18509. $as_echo_n "(cached) " >&6
  18510. else
  18511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18512. /* end confdefs.h. */
  18513. #include <sys/types.h>
  18514. #ifdef HAVE_NETINET_IN_H
  18515. #include <netinet/in.h>
  18516. #endif
  18517. #ifdef HAVE_ARPA_NAMESER_H
  18518. #include <arpa/nameser.h>
  18519. #endif
  18520. #ifdef HAVE_NETDB_H
  18521. #include <netdb.h>
  18522. #endif
  18523. #ifdef HAVE_RESOLV_H
  18524. #include <resolv.h>
  18525. #endif
  18526. int
  18527. main ()
  18528. {
  18529. extern int h_errno;
  18530. ;
  18531. return 0;
  18532. }
  18533. _ACEOF
  18534. if ac_fn_c_try_compile "$LINENO"; then :
  18535. ac_cv_decl_h_errno=yes
  18536. else
  18537. ac_cv_decl_h_errno=no
  18538. fi
  18539. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18540. fi
  18541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_h_errno" >&5
  18542. $as_echo "$ac_cv_decl_h_errno" >&6; }
  18543. case "$ac_cv_decl_h_errno" in
  18544. yes)
  18545. $as_echo "#define DECL_H_ERRNO 1" >>confdefs.h
  18546. ;;
  18547. esac
  18548. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'char *sys_errlist[]' is ok" >&5
  18549. $as_echo_n "checking if declaring 'char *sys_errlist[]' is ok... " >&6; }
  18550. if test "${ac_cv_decl_sys_errlist+set}" = set; then :
  18551. $as_echo_n "(cached) " >&6
  18552. else
  18553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18554. /* end confdefs.h. */
  18555. #include <stdio.h>
  18556. #ifdef HAVE_ERRNO_H
  18557. #include <errno.h>
  18558. #endif
  18559. int
  18560. main ()
  18561. {
  18562. extern char *sys_errlist[];
  18563. ;
  18564. return 0;
  18565. }
  18566. _ACEOF
  18567. if ac_fn_c_try_compile "$LINENO"; then :
  18568. ac_cv_decl_sys_errlist=yes
  18569. else
  18570. ac_cv_decl_sys_errlist=no
  18571. fi
  18572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18573. fi
  18574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_sys_errlist" >&5
  18575. $as_echo "$ac_cv_decl_sys_errlist" >&6; }
  18576. case "$ac_cv_decl_sys_errlist" in
  18577. yes)
  18578. $as_echo "#define CHAR_SYS_ERRLIST 1" >>confdefs.h
  18579. ;;
  18580. esac
  18581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if declaring 'syscall()' is ok" >&5
  18582. $as_echo_n "checking if declaring 'syscall()' is ok... " >&6; }
  18583. if test "${ac_cv_decl_syscall+set}" = set; then :
  18584. $as_echo_n "(cached) " >&6
  18585. else
  18586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18587. /* end confdefs.h. */
  18588. #ifdef HAVE_SYS_TYPES_H
  18589. # include <sys/types.h>
  18590. #endif
  18591. #ifdef HAVE_UNISTD_H
  18592. # include <unistd.h>
  18593. #endif
  18594. #ifdef HAVE_PROTOTYPES
  18595. #define P(x) x
  18596. #else
  18597. #define P(x) ()
  18598. #endif
  18599. int
  18600. main ()
  18601. {
  18602. extern int syscall P((int, ...));
  18603. ;
  18604. return 0;
  18605. }
  18606. _ACEOF
  18607. if ac_fn_c_try_compile "$LINENO"; then :
  18608. ac_cv_decl_syscall=yes
  18609. else
  18610. ac_cv_decl_syscall=no
  18611. fi
  18612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18613. fi
  18614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_syscall" >&5
  18615. $as_echo "$ac_cv_decl_syscall" >&6; }
  18616. case "$ac_cv_decl_syscall" in
  18617. yes)
  18618. $as_echo "#define DECL_SYSCALL 1" >>confdefs.h
  18619. ;;
  18620. esac
  18621. case "$host" in
  18622. *-*-aix4.3.*)
  18623. $as_echo "#define DECL_HSTRERROR_0 1" >>confdefs.h
  18624. # Needed for XLC under AIX 4.3.2
  18625. ;;
  18626. *-*-mpeix*)
  18627. $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
  18628. $as_echo "#define DECL_INET_NTOA_0 1" >>confdefs.h
  18629. $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
  18630. $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
  18631. $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
  18632. $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
  18633. $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
  18634. ;;
  18635. *-*-osf[45]*)
  18636. $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
  18637. $as_echo "#define DECL_STIME_1 1" >>confdefs.h
  18638. ;;
  18639. *-*-qnx*)
  18640. $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
  18641. ;;
  18642. *-*-riscos4*)
  18643. $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
  18644. $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
  18645. $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
  18646. $as_echo "#define DECL_IPC_0 1" >>confdefs.h
  18647. $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
  18648. $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
  18649. $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
  18650. $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
  18651. $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
  18652. $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
  18653. $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
  18654. $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
  18655. $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
  18656. $as_echo "#define DECL_TIME_0 1" >>confdefs.h
  18657. $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
  18658. $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
  18659. ;;
  18660. *-*-solaris2*)
  18661. $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
  18662. $as_echo "#define DECL_SETPRIORITY_1 1" >>confdefs.h
  18663. case "$host" in
  18664. *-*-solaris2.4)
  18665. $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
  18666. ;;
  18667. esac
  18668. ;;
  18669. *-*-sunos4*)
  18670. $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
  18671. $as_echo "#define DECL_BCOPY_0 1" >>confdefs.h
  18672. $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
  18673. $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
  18674. $as_echo "#define DECL_IPC_0 1" >>confdefs.h
  18675. $as_echo "#define DECL_MEMMOVE_0 1" >>confdefs.h
  18676. $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
  18677. $as_echo "#define DECL_MKSTEMP_0 1" >>confdefs.h
  18678. $as_echo "#define DECL_RENAME_0 1" >>confdefs.h
  18679. $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
  18680. $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
  18681. $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
  18682. $as_echo "#define DECL_SIGVEC_0 1" >>confdefs.h
  18683. case "`basename $ac_cv_prog_CC`" in
  18684. acc*) ;;
  18685. *)
  18686. $as_echo "#define DECL_STDIO_0 1" >>confdefs.h
  18687. ;;
  18688. esac
  18689. $as_echo "#define DECL_STRTOL_0 1" >>confdefs.h
  18690. $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
  18691. $as_echo "#define DECL_TIME_0 1" >>confdefs.h
  18692. $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
  18693. $as_echo "#define DECL_TOLOWER_0 1" >>confdefs.h
  18694. $as_echo "#define DECL_TOUPPER_0 1" >>confdefs.h
  18695. $as_echo "#define DECL_STRERROR_0 1" >>confdefs.h
  18696. ;;
  18697. *-*-ultrix4*)
  18698. $as_echo "#define DECL_ADJTIME_0 1" >>confdefs.h
  18699. $as_echo "#define DECL_BZERO_0 1" >>confdefs.h
  18700. $as_echo "#define DECL_CFSETISPEED_0 1" >>confdefs.h
  18701. $as_echo "#define DECL_IOCTL_0 1" >>confdefs.h
  18702. $as_echo "#define DECL_IPC_0 1" >>confdefs.h
  18703. $as_echo "#define DECL_MKTEMP_0 1" >>confdefs.h
  18704. $as_echo "#define DECL_NLIST_0 1" >>confdefs.h
  18705. $as_echo "#define DECL_PLOCK_0 1" >>confdefs.h
  18706. $as_echo "#define DECL_SELECT_0 1" >>confdefs.h
  18707. $as_echo "#define DECL_SETITIMER_0 1" >>confdefs.h
  18708. $as_echo "#define DECL_SETPRIORITY_0 1" >>confdefs.h
  18709. $as_echo "#define DECL_STIME_0 1" >>confdefs.h
  18710. $as_echo "#define DECL_SYSLOG_0 1" >>confdefs.h
  18711. $as_echo "#define DECL_TIMEOFDAY_0 1" >>confdefs.h
  18712. ;;
  18713. esac
  18714. case "$host" in
  18715. *-*-sco3.2*)
  18716. $as_echo "#define TERMIOS_NEEDS__SVID3 1" >>confdefs.h
  18717. ;;
  18718. esac
  18719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need extra room for SO_RCVBUF" >&5
  18720. $as_echo_n "checking if we need extra room for SO_RCVBUF... " >&6; }
  18721. if test "${ac_cv_var_rcvbuf_slop+set}" = set; then :
  18722. $as_echo_n "(cached) " >&6
  18723. else
  18724. ans=no
  18725. case "$host" in
  18726. *-*-hpux[567]*)
  18727. ans=yes
  18728. ;;
  18729. esac
  18730. ac_cv_var_rcvbuf_slop=$ans
  18731. fi
  18732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_rcvbuf_slop" >&5
  18733. $as_echo "$ac_cv_var_rcvbuf_slop" >&6; }
  18734. case "$ac_cv_var_rcvbuf_slop" in
  18735. yes)
  18736. $as_echo "#define NEED_RCVBUF_SLOP 1" >>confdefs.h
  18737. ;;
  18738. esac
  18739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we will open the broadcast socket" >&5
  18740. $as_echo_n "checking if we will open the broadcast socket... " >&6; }
  18741. if test "${ac_cv_var_open_bcast_socket+set}" = set; then :
  18742. $as_echo_n "(cached) " >&6
  18743. else
  18744. ans=yes
  18745. case "$host" in
  18746. *-*-domainos)
  18747. ans=no
  18748. ;;
  18749. esac
  18750. ac_cv_var_open_bcast_socket=$ans
  18751. fi
  18752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_open_bcast_socket" >&5
  18753. $as_echo "$ac_cv_var_open_bcast_socket" >&6; }
  18754. case "$ac_cv_var_open_bcast_socket" in
  18755. yes)
  18756. $as_echo "#define OPEN_BCAST_SOCKET 1" >>confdefs.h
  18757. ;;
  18758. esac
  18759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the HPUX version of FindConfig()" >&5
  18760. $as_echo_n "checking if we want the HPUX version of FindConfig()... " >&6; }
  18761. if test "${ac_cv_var_hpux_findconfig+set}" = set; then :
  18762. $as_echo_n "(cached) " >&6
  18763. else
  18764. ans=no
  18765. case "$host" in
  18766. *-*-hpux*)
  18767. ans=yes
  18768. ;;
  18769. esac
  18770. ac_cv_var_hpux_findconfig=$ans
  18771. fi
  18772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_hpux_findconfig" >&5
  18773. $as_echo "$ac_cv_var_hpux_findconfig" >&6; }
  18774. case "$ac_cv_var_hpux_findconfig" in
  18775. yes)
  18776. $as_echo "#define NEED_HPUX_FINDCONFIG 1" >>confdefs.h
  18777. ;;
  18778. esac
  18779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if process groups are set with -pid" >&5
  18780. $as_echo_n "checking if process groups are set with -pid... " >&6; }
  18781. if test "${ac_cv_arg_setpgrp_negpid+set}" = set; then :
  18782. $as_echo_n "(cached) " >&6
  18783. else
  18784. case "$host" in
  18785. *-*-hpux[567]*)
  18786. ans=no
  18787. ;;
  18788. *-*-hpux*)
  18789. ans=yes
  18790. ;;
  18791. *-*-*linux*)
  18792. ans=yes
  18793. ;;
  18794. *-*-sunos3*)
  18795. ans=yes
  18796. ;;
  18797. *-*-ultrix2*)
  18798. ans=yes
  18799. ;;
  18800. *)
  18801. ans=no
  18802. ;;
  18803. esac
  18804. ac_cv_arg_setpgrp_negpid=$ans
  18805. fi
  18806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_arg_setpgrp_negpid" >&5
  18807. $as_echo "$ac_cv_arg_setpgrp_negpid" >&6; }
  18808. case "$ac_cv_arg_setpgrp_negpid" in
  18809. yes)
  18810. $as_echo "#define UDP_BACKWARDS_SETOWN 1" >>confdefs.h
  18811. ;;
  18812. esac
  18813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need a ctty for F_SETOWN" >&5
  18814. $as_echo_n "checking if we need a ctty for F_SETOWN... " >&6; }
  18815. if test "${ac_cv_func_ctty_for_f_setown+set}" = set; then :
  18816. $as_echo_n "(cached) " >&6
  18817. else
  18818. case "$host" in
  18819. *-*-bsdi[23]*)
  18820. ans=yes
  18821. ;;
  18822. *-*-freebsd*)
  18823. ans=yes
  18824. ;;
  18825. *-*-netbsd*3.[0-8]*|*-*-netbsd*[0-2].*|*-*-netbsd*3.99.[0-7])
  18826. ans=yes
  18827. ;;
  18828. *-*-openbsd*)
  18829. ans=yes
  18830. ;;
  18831. *-*-osf*)
  18832. ans=yes
  18833. ;;
  18834. *-*-darwin*)
  18835. ans=yes
  18836. ;;
  18837. *) ans=no
  18838. ;;
  18839. esac
  18840. ac_cv_func_ctty_for_f_setown=$ans
  18841. fi
  18842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ctty_for_f_setown" >&5
  18843. $as_echo "$ac_cv_func_ctty_for_f_setown" >&6; }
  18844. case "$ac_cv_func_ctty_for_f_setown" in
  18845. yes)
  18846. $as_echo "#define USE_FSETOWNCTTY 1" >>confdefs.h
  18847. ;;
  18848. esac
  18849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS fails to clear cached routes when more specific routes become available" >&5
  18850. $as_echo_n "checking if the OS fails to clear cached routes when more specific routes become available... " >&6; }
  18851. if test "${ac_cv_os_routeupdates+set}" = set; then :
  18852. $as_echo_n "(cached) " >&6
  18853. else
  18854. case "$host" in
  18855. *-*-netbsd*)
  18856. ans=yes
  18857. ;;
  18858. *) ans=no
  18859. ;;
  18860. esac
  18861. ac_cv_os_routeupdates=$ans
  18862. fi
  18863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_routeupdates" >&5
  18864. $as_echo "$ac_cv_os_routeupdates" >&6; }
  18865. case "$ac_cv_os_routeupdates" in
  18866. yes)
  18867. $as_echo "#define OS_MISSES_SPECIFIC_ROUTE_UPDATES 1" >>confdefs.h
  18868. ;;
  18869. esac
  18870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the OS needs the wildcard socket set to REUSEADDR for binding interface addresses" >&5
  18871. $as_echo_n "checking if the OS needs the wildcard socket set to REUSEADDR for binding interface addresses... " >&6; }
  18872. if test "${ac_cv_os_wildcardreuse+set}" = set; then :
  18873. $as_echo_n "(cached) " >&6
  18874. else
  18875. case "$host" in
  18876. *-*-*linux*)
  18877. ans=yes
  18878. ;;
  18879. *) ans=no
  18880. ;;
  18881. esac
  18882. ac_cv_os_wildcardreuse=$ans
  18883. fi
  18884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_wildcardreuse" >&5
  18885. $as_echo "$ac_cv_os_wildcardreuse" >&6; }
  18886. case "$ac_cv_os_wildcardreuse" in
  18887. yes)
  18888. $as_echo "#define OS_NEEDS_REUSEADDR_FOR_IFADDRBIND 1" >>confdefs.h
  18889. ;;
  18890. esac
  18891. ntp_warning='GRONK'
  18892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we'll use clock_settime or settimeofday or stime" >&5
  18893. $as_echo_n "checking if we'll use clock_settime or settimeofday or stime... " >&6; }
  18894. case "$ac_cv_func_clock_settime$ac_cv_func_settimeofday$ac_cv_func_stime" in
  18895. yes*)
  18896. ntp_warning=''
  18897. ans='clock_settime()'
  18898. ;;
  18899. noyes*)
  18900. ntp_warning='But clock_settime() would be better (if we had it)'
  18901. ans='settimeofday()'
  18902. ;;
  18903. nonoyes)
  18904. ntp_warning='Which is the worst of the three'
  18905. ans='stime()'
  18906. ;;
  18907. *)
  18908. case "$build" in
  18909. $host) ntp_warning='Which leaves us with nothing to use!'
  18910. ans=none
  18911. ;;
  18912. esac
  18913. esac
  18914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  18915. $as_echo "$ans" >&6; }
  18916. case "$ntp_warning" in
  18917. '') ;;
  18918. *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** $ntp_warning ***" >&5
  18919. $as_echo "$as_me: WARNING: *** $ntp_warning ***" >&2;}
  18920. ;;
  18921. esac
  18922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a losing syscall()" >&5
  18923. $as_echo_n "checking if we have a losing syscall()... " >&6; }
  18924. if test "${ac_cv_var_syscall_bug+set}" = set; then :
  18925. $as_echo_n "(cached) " >&6
  18926. else
  18927. case "$host" in
  18928. *-*-solaris2.4*)
  18929. ans=yes
  18930. ;;
  18931. *) ans=no
  18932. ;;
  18933. esac
  18934. ac_cv_var_syscall_bug=$ans
  18935. fi
  18936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_syscall_bug" >&5
  18937. $as_echo "$ac_cv_var_syscall_bug" >&6; }
  18938. case "$ac_cv_var_syscall_bug" in
  18939. yes)
  18940. $as_echo "#define SYSCALL_BUG 1" >>confdefs.h
  18941. ;;
  18942. esac
  18943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGIO" >&5
  18944. $as_echo_n "checking for SIGIO... " >&6; }
  18945. if test "${ac_cv_hdr_def_sigio+set}" = set; then :
  18946. $as_echo_n "(cached) " >&6
  18947. else
  18948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18949. /* end confdefs.h. */
  18950. #include <signal.h>
  18951. #ifdef SIGIO
  18952. yes
  18953. #endif
  18954. _ACEOF
  18955. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18956. $EGREP "yes" >/dev/null 2>&1; then :
  18957. ac_cv_hdr_def_sigio=yes
  18958. else
  18959. ac_cv_hdr_def_sigio=no
  18960. fi
  18961. rm -f conftest*
  18962. fi
  18963. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_sigio" >&5
  18964. $as_echo "$ac_cv_hdr_def_sigio" >&6; }
  18965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to use signalled IO" >&5
  18966. $as_echo_n "checking if we want to use signalled IO... " >&6; }
  18967. if test "${ac_cv_var_signalled_io+set}" = set; then :
  18968. $as_echo_n "(cached) " >&6
  18969. else
  18970. ans=no
  18971. case "$ac_cv_hdr_def_sigio" in
  18972. yes)
  18973. ans=yes
  18974. case "$host" in
  18975. alpha*-dec-osf4*|alpha*-dec-osf5*)
  18976. ans=no
  18977. ;;
  18978. *-convex-*)
  18979. ans=no
  18980. ;;
  18981. *-dec-*)
  18982. ans=no
  18983. ;;
  18984. *-pc-cygwin*)
  18985. ans=no
  18986. ;;
  18987. *-sni-sysv*)
  18988. ans=no
  18989. ;;
  18990. *-univel-sysv*)
  18991. ans=no
  18992. ;;
  18993. *-*-irix6*)
  18994. ans=no
  18995. ;;
  18996. *-*-freebsd*)
  18997. ans=no
  18998. ;;
  18999. *-*-*linux*)
  19000. ans=no
  19001. ;;
  19002. *-*-unicosmp*)
  19003. ans=no
  19004. ;;
  19005. esac
  19006. ;;
  19007. esac
  19008. ac_cv_var_signalled_io=$ans
  19009. fi
  19010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_signalled_io" >&5
  19011. $as_echo "$ac_cv_var_signalled_io" >&6; }
  19012. case "$ac_cv_var_signalled_io" in
  19013. yes)
  19014. $as_echo "#define HAVE_SIGNALED_IO 1" >>confdefs.h
  19015. ;;
  19016. esac
  19017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGPOLL" >&5
  19018. $as_echo_n "checking for SIGPOLL... " >&6; }
  19019. if test "${ac_cv_hdr_def_sigpoll+set}" = set; then :
  19020. $as_echo_n "(cached) " >&6
  19021. else
  19022. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19023. /* end confdefs.h. */
  19024. #include <signal.h>
  19025. #ifdef SIGPOLL
  19026. yes
  19027. #endif
  19028. _ACEOF
  19029. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19030. $EGREP "yes" >/dev/null 2>&1; then :
  19031. ac_cv_hdr_def_sigpoll=yes
  19032. else
  19033. ac_cv_hdr_def_sigpoll=no
  19034. fi
  19035. rm -f conftest*
  19036. fi
  19037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_sigpoll" >&5
  19038. $as_echo "$ac_cv_hdr_def_sigpoll" >&6; }
  19039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIGSYS" >&5
  19040. $as_echo_n "checking for SIGSYS... " >&6; }
  19041. if test "${ac_cv_hdr_def_sigsys+set}" = set; then :
  19042. $as_echo_n "(cached) " >&6
  19043. else
  19044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19045. /* end confdefs.h. */
  19046. #include <signal.h>
  19047. #ifdef SIGSYS
  19048. yes
  19049. #endif
  19050. _ACEOF
  19051. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19052. $EGREP "yes" >/dev/null 2>&1; then :
  19053. ac_cv_hdr_def_sigsys=yes
  19054. else
  19055. ac_cv_hdr_def_sigsys=no
  19056. fi
  19057. rm -f conftest*
  19058. fi
  19059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_sigsys" >&5
  19060. $as_echo "$ac_cv_hdr_def_sigsys" >&6; }
  19061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for UDP I/O" >&5
  19062. $as_echo_n "checking if we can use SIGPOLL for UDP I/O... " >&6; }
  19063. if test "${ac_cv_var_use_udp_sigpoll+set}" = set; then :
  19064. $as_echo_n "(cached) " >&6
  19065. else
  19066. ans=no
  19067. case "$ac_cv_hdr_def_sigpoll" in
  19068. yes)
  19069. case "$host" in
  19070. mips-sgi-irix*)
  19071. ans=no
  19072. ;;
  19073. vax-dec-bsd)
  19074. ans=no
  19075. ;;
  19076. *-pc-cygwin*)
  19077. ans=no
  19078. ;;
  19079. *-sni-sysv*)
  19080. ans=no
  19081. ;;
  19082. *-*-aix[456]*)
  19083. ans=no
  19084. ;;
  19085. *-*-hpux*)
  19086. ans=no
  19087. ;;
  19088. *-*-*linux*)
  19089. ans=no
  19090. ;;
  19091. *-*-osf*)
  19092. ans=no
  19093. ;;
  19094. *-*-qnx*)
  19095. ans=no
  19096. ;;
  19097. *-*-sunos*)
  19098. ans=no
  19099. ;;
  19100. *-*-solaris*)
  19101. ans=no
  19102. ;;
  19103. *-*-ultrix*)
  19104. ans=no
  19105. ;;
  19106. *-*-unicosmp*)
  19107. ans=no
  19108. ;;
  19109. *) ans=yes
  19110. ;;
  19111. esac
  19112. ;;
  19113. esac
  19114. ac_cv_var_use_udp_sigpoll=$ans
  19115. fi
  19116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_use_udp_sigpoll" >&5
  19117. $as_echo "$ac_cv_var_use_udp_sigpoll" >&6; }
  19118. case "$ac_cv_var_use_udp_sigpoll" in
  19119. yes)
  19120. $as_echo "#define USE_UDP_SIGPOLL 1" >>confdefs.h
  19121. ;;
  19122. esac
  19123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use SIGPOLL for TTY I/O" >&5
  19124. $as_echo_n "checking if we can use SIGPOLL for TTY I/O... " >&6; }
  19125. if test "${ac_cv_var_use_tty_sigpoll+set}" = set; then :
  19126. $as_echo_n "(cached) " >&6
  19127. else
  19128. ans=no
  19129. case "$ac_cv_hdr_def_sigpoll" in
  19130. yes)
  19131. case "$host" in
  19132. mips-sgi-irix*)
  19133. ans=no
  19134. ;;
  19135. vax-dec-bsd)
  19136. ans=no
  19137. ;;
  19138. *-pc-cygwin*)
  19139. ans=no
  19140. ;;
  19141. *-sni-sysv*)
  19142. ans=no
  19143. ;;
  19144. *-*-aix[456]*)
  19145. ans=no
  19146. ;;
  19147. *-*-hpux*)
  19148. ans=no
  19149. ;;
  19150. *-*-*linux*)
  19151. ans=no
  19152. ;;
  19153. *-*-osf*)
  19154. ans=no
  19155. ;;
  19156. *-*-sunos*)
  19157. ans=no
  19158. ;;
  19159. *-*-ultrix*)
  19160. ans=no
  19161. ;;
  19162. *-*-qnx*)
  19163. ans=no
  19164. ;;
  19165. *-*-unicosmp*)
  19166. ans=no
  19167. ;;
  19168. *) ans=yes
  19169. ;;
  19170. esac
  19171. ;;
  19172. esac
  19173. ac_cv_var_use_tty_sigpoll=$ans
  19174. fi
  19175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_use_tty_sigpoll" >&5
  19176. $as_echo "$ac_cv_var_use_tty_sigpoll" >&6; }
  19177. case "$ac_cv_var_use_tty_sigpoll" in
  19178. yes)
  19179. $as_echo "#define USE_TTY_SIGPOLL 1" >>confdefs.h
  19180. ;;
  19181. esac
  19182. case "$ac_cv_header_sys_sio_h" in
  19183. yes)
  19184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sio.h for TIOCDCDTIMESTAMP" >&5
  19185. $as_echo_n "checking sys/sio.h for TIOCDCDTIMESTAMP... " >&6; }
  19186. if test "${ac_cv_hdr_def_tiocdcdtimestamp+set}" = set; then :
  19187. $as_echo_n "(cached) " >&6
  19188. else
  19189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19190. /* end confdefs.h. */
  19191. #include <sys/sio.h>
  19192. #ifdef TIOCDCDTIMESTAMP
  19193. yes
  19194. #endif
  19195. _ACEOF
  19196. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19197. $EGREP "yes" >/dev/null 2>&1; then :
  19198. ac_cv_hdr_def_tiocdcdtimestamp=yes
  19199. else
  19200. ac_cv_hdr_def_tiocdcdtimestamp=no
  19201. fi
  19202. rm -f conftest*
  19203. fi
  19204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hdr_def_tiocdcdtimestamp" >&5
  19205. $as_echo "$ac_cv_hdr_def_tiocdcdtimestamp" >&6; }
  19206. ;;
  19207. esac
  19208. case "$ac_cv_hdr_def_tiocdcdtimestamp" in
  19209. yes)
  19210. ac_cv_var_oncore_ok=yes
  19211. ;;
  19212. esac
  19213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nlist() values might require extra indirection" >&5
  19214. $as_echo_n "checking if nlist() values might require extra indirection... " >&6; }
  19215. if test "${ac_cv_var_nlist_extra_indirection+set}" = set; then :
  19216. $as_echo_n "(cached) " >&6
  19217. else
  19218. ans=no
  19219. case "$host" in
  19220. *-*-aix*)
  19221. ans=yes
  19222. ;;
  19223. esac
  19224. ac_cv_var_nlist_extra_indirection=$ans
  19225. fi
  19226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_extra_indirection" >&5
  19227. $as_echo "$ac_cv_var_nlist_extra_indirection" >&6; }
  19228. case "$ac_cv_var_nlist_extra_indirection" in
  19229. yes)
  19230. $as_echo "#define NLIST_EXTRA_INDIRECTION 1" >>confdefs.h
  19231. ;;
  19232. esac
  19233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a minimum recommended value of tickadj" >&5
  19234. $as_echo_n "checking for a minimum recommended value of tickadj... " >&6; }
  19235. if test "${ac_cv_var_min_rec_tickadj+set}" = set; then :
  19236. $as_echo_n "(cached) " >&6
  19237. else
  19238. ans=no
  19239. case "$host" in
  19240. *-*-aix*)
  19241. ans=40
  19242. ;;
  19243. esac
  19244. ac_cv_var_min_rec_tickadj=$ans
  19245. fi
  19246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_min_rec_tickadj" >&5
  19247. $as_echo "$ac_cv_var_min_rec_tickadj" >&6; }
  19248. case "$ac_cv_var_min_rec_tickadj" in
  19249. ''|no) ;;
  19250. *)
  19251. cat >>confdefs.h <<_ACEOF
  19252. #define MIN_REC_TICKADJ $ac_cv_var_min_rec_tickadj
  19253. _ACEOF
  19254. ;;
  19255. esac
  19256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the TTY code permits PARENB and IGNPAR" >&5
  19257. $as_echo_n "checking if the TTY code permits PARENB and IGNPAR... " >&6; }
  19258. if test "${ac_cv_var_no_parenb_ignpar+set}" = set; then :
  19259. $as_echo_n "(cached) " >&6
  19260. else
  19261. ans=no
  19262. case "$host" in
  19263. i?86-*-*linux*)
  19264. ans=yes
  19265. ;;
  19266. mips-sgi-irix*)
  19267. ans=yes
  19268. ;;
  19269. i?86-*-freebsd[123].*)
  19270. ;;
  19271. i?86-*-freebsd*)
  19272. ans=yes
  19273. ;;
  19274. *-*-unicosmp*)
  19275. ans=yes
  19276. ;;
  19277. esac
  19278. ac_cv_var_no_parenb_ignpar=$ans
  19279. fi
  19280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_no_parenb_ignpar" >&5
  19281. $as_echo "$ac_cv_var_no_parenb_ignpar" >&6; }
  19282. case "$ac_cv_var_no_parenb_ignpar" in
  19283. yes)
  19284. $as_echo "#define NO_PARENB_IGNPAR 1" >>confdefs.h
  19285. ;;
  19286. esac
  19287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we're including debugging code" >&5
  19288. $as_echo_n "checking if we're including debugging code... " >&6; }
  19289. # Check whether --enable-debugging was given.
  19290. if test "${enable_debugging+set}" = set; then :
  19291. enableval=$enable_debugging; ntp_ok=$enableval
  19292. else
  19293. ntp_ok=yes
  19294. fi
  19295. if test "$ntp_ok" = "yes"; then
  19296. $as_echo "#define DEBUG 1" >>confdefs.h
  19297. fi
  19298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  19299. $as_echo "$ntp_ok" >&6; }
  19300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we including processing time debugging code" >&5
  19301. $as_echo_n "checking if we including processing time debugging code... " >&6; }
  19302. # Check whether --enable-debug-timing was given.
  19303. if test "${enable_debug_timing+set}" = set; then :
  19304. enableval=$enable_debug_timing; ntp_ok=$enableval
  19305. else
  19306. ntp_ok=no
  19307. fi
  19308. if test "$ntp_ok" = "yes"; then
  19309. $as_echo "#define DEBUG_TIMING 1" >>confdefs.h
  19310. fi
  19311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  19312. $as_echo "$ntp_ok" >&6; }
  19313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a the number of minutes in a DST adjustment" >&5
  19314. $as_echo_n "checking for a the number of minutes in a DST adjustment... " >&6; }
  19315. # Check whether --enable-dst_minutes was given.
  19316. if test "${enable_dst_minutes+set}" = set; then :
  19317. enableval=$enable_dst_minutes; ans=$enableval
  19318. else
  19319. ans=60
  19320. fi
  19321. cat >>confdefs.h <<_ACEOF
  19322. #define DSTMINUTES $ans
  19323. _ACEOF
  19324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  19325. $as_echo "$ans" >&6; }
  19326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpd will retry on permanent DNS errors" >&5
  19327. $as_echo_n "checking if ntpd will retry on permanent DNS errors... " >&6; }
  19328. # Check whether --enable-ignore-dns-errors was given.
  19329. if test "${enable_ignore_dns_errors+set}" = set; then :
  19330. enableval=$enable_ignore_dns_errors; ans=$enableval
  19331. else
  19332. ans=no
  19333. fi
  19334. case "$ans" in
  19335. yes)
  19336. $as_echo "#define IGNORE_DNS_ERRORS 1" >>confdefs.h
  19337. esac
  19338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  19339. $as_echo "$ans" >&6; }
  19340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have the tty_clk line discipline/streams module" >&5
  19341. $as_echo_n "checking if we have the tty_clk line discipline/streams module... " >&6; }
  19342. if test "${ac_cv_var_tty_clk+set}" = set; then :
  19343. $as_echo_n "(cached) " >&6
  19344. else
  19345. case "$ac_cv_header_sys_clkdefs_h$ac_cv_hdr_def_tiocdcdtimestamp" in
  19346. *yes*) ac_cv_var_tty_clk=yes ;;
  19347. *) ac_cv_var_tty_clk=no ;;
  19348. esac
  19349. fi
  19350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tty_clk" >&5
  19351. $as_echo "$ac_cv_var_tty_clk" >&6; }
  19352. case "$ac_cv_var_tty_clk" in
  19353. yes)
  19354. $as_echo "#define TTYCLK 1" >>confdefs.h
  19355. ;;
  19356. esac
  19357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ppsclock streams module" >&5
  19358. $as_echo_n "checking for the ppsclock streams module... " >&6; }
  19359. if test "${ac_cv_var_ppsclock+set}" = set; then :
  19360. $as_echo_n "(cached) " >&6
  19361. else
  19362. ac_cv_var_ppsclock=$ac_cv_struct_ppsclockev
  19363. fi
  19364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_ppsclock" >&5
  19365. $as_echo "$ac_cv_var_ppsclock" >&6; }
  19366. case "$ac_cv_var_ppsclock" in
  19367. yes)
  19368. $as_echo "#define PPS 1" >>confdefs.h
  19369. ;;
  19370. esac
  19371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel multicast support" >&5
  19372. $as_echo_n "checking for kernel multicast support... " >&6; }
  19373. if test "${ac_cv_var_mcast+set}" = set; then :
  19374. $as_echo_n "(cached) " >&6
  19375. else
  19376. ac_cv_var_mcast=no
  19377. case "$host" in
  19378. i386-sequent-sysv4) ;;
  19379. *) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19380. /* end confdefs.h. */
  19381. #include <netinet/in.h>
  19382. #ifdef IP_ADD_MEMBERSHIP
  19383. yes
  19384. #endif
  19385. _ACEOF
  19386. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19387. $EGREP "yes" >/dev/null 2>&1; then :
  19388. ac_cv_var_mcast=yes
  19389. fi
  19390. rm -f conftest*
  19391. ;;
  19392. esac
  19393. fi
  19394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_mcast" >&5
  19395. $as_echo "$ac_cv_var_mcast" >&6; }
  19396. case "$ac_cv_var_mcast" in
  19397. yes)
  19398. $as_echo "#define MCAST 1" >>confdefs.h
  19399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()" >&5
  19400. $as_echo_n "checking arg type needed for IP*_MULTICAST_LOOP for setsockopt()... " >&6; }
  19401. if test "${ac_cv_var_typeof_ip_multicast_loop+set}" = set; then :
  19402. $as_echo_n "(cached) " >&6
  19403. else
  19404. case "$host" in
  19405. *-*-netbsd*|*-*-*linux*)
  19406. ac_cv_var_typeof_ip_multicast_loop=u_int
  19407. ;;
  19408. *-*-winnt*)
  19409. ac_cv_var_typeof_ip_multicast_loop=BOOL
  19410. ;;
  19411. *) ac_cv_var_typeof_ip_multicast_loop=u_char
  19412. ;;
  19413. esac
  19414. fi
  19415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_typeof_ip_multicast_loop" >&5
  19416. $as_echo "$ac_cv_var_typeof_ip_multicast_loop" >&6; }
  19417. cat >>confdefs.h <<_ACEOF
  19418. #define TYPEOF_IP_MULTICAST_LOOP $ac_cv_var_typeof_ip_multicast_loop
  19419. _ACEOF
  19420. ;;
  19421. esac
  19422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking availability of ntp_{adj,get}time()" >&5
  19423. $as_echo_n "checking availability of ntp_{adj,get}time()... " >&6; }
  19424. if test "${ac_cv_var_ntp_syscalls+set}" = set; then :
  19425. $as_echo_n "(cached) " >&6
  19426. else
  19427. ac_cv_var_ntp_syscalls=no
  19428. case "$ac_cv_func_ntp_adjtime$ac_cv_func_ntp_gettime$ac_cv_func___adjtimex" in
  19429. yesyes*)
  19430. ac_cv_var_ntp_syscalls=libc
  19431. ;;
  19432. *yes)
  19433. ac_cv_var_ntp_syscalls=inline
  19434. ;;
  19435. *) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19436. /* end confdefs.h. */
  19437. #include <sys/syscall.h>
  19438. #if defined(SYS_ntp_gettime) && defined(SYS_ntp_adjtime)
  19439. yes
  19440. #endif
  19441. _ACEOF
  19442. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19443. $EGREP "yes" >/dev/null 2>&1; then :
  19444. ac_cv_var_ntp_syscalls=kernel
  19445. fi
  19446. rm -f conftest*
  19447. ;;
  19448. esac
  19449. fi
  19450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_ntp_syscalls" >&5
  19451. $as_echo "$ac_cv_var_ntp_syscalls" >&6; }
  19452. case "$ac_cv_var_ntp_syscalls" in
  19453. libc)
  19454. $as_echo "#define NTP_SYSCALLS_LIBC 1" >>confdefs.h
  19455. ;;
  19456. kernel)
  19457. $as_echo "#define NTP_SYSCALLS_STD 1" >>confdefs.h
  19458. ;;
  19459. *)
  19460. ;;
  19461. esac
  19462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sys/timex.h has STA_FLL" >&5
  19463. $as_echo_n "checking if sys/timex.h has STA_FLL... " >&6; }
  19464. if test "${ac_cv_var_sta_fll+set}" = set; then :
  19465. $as_echo_n "(cached) " >&6
  19466. else
  19467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19468. /* end confdefs.h. */
  19469. #include <sys/timex.h>
  19470. #ifdef STA_FLL
  19471. yes
  19472. #endif
  19473. _ACEOF
  19474. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19475. $EGREP "yes" >/dev/null 2>&1; then :
  19476. ac_cv_var_sta_fll=yes
  19477. else
  19478. ac_cv_var_sta_fll=no
  19479. fi
  19480. rm -f conftest*
  19481. fi
  19482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_sta_fll" >&5
  19483. $as_echo "$ac_cv_var_sta_fll" >&6; }
  19484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have kernel PLL support" >&5
  19485. $as_echo_n "checking if we have kernel PLL support... " >&6; }
  19486. if test "${ac_cv_var_kernel_pll+set}" = set; then :
  19487. $as_echo_n "(cached) " >&6
  19488. else
  19489. case "$ac_cv_header_sys_timex_h$ac_cv_struct_ntptimeval$ac_cv_var_sta_fll$ac_cv_var_ntp_syscalls" in
  19490. *no*)
  19491. ac_cv_var_kernel_pll=no
  19492. ;;
  19493. *) ac_cv_var_kernel_pll=yes
  19494. ;;
  19495. esac
  19496. fi
  19497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_kernel_pll" >&5
  19498. $as_echo "$ac_cv_var_kernel_pll" >&6; }
  19499. case "$ac_cv_var_kernel_pll" in
  19500. yes)
  19501. $as_echo "#define KERNEL_PLL 1" >>confdefs.h
  19502. ;;
  19503. esac
  19504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SIOCGIFCONF returns buffer size in the buffer" >&5
  19505. $as_echo_n "checking if SIOCGIFCONF returns buffer size in the buffer... " >&6; }
  19506. if test "${ac_cv_var_size_returned_in_buffer+set}" = set; then :
  19507. $as_echo_n "(cached) " >&6
  19508. else
  19509. ans=no
  19510. case "$host" in
  19511. *-fujitsu-uxp*)
  19512. ans=yes
  19513. ;;
  19514. *-ncr-sysv4*)
  19515. ans=yes
  19516. ;;
  19517. *-univel-sysv*)
  19518. ans=yes
  19519. ;;
  19520. esac
  19521. ac_cv_var_size_returned_in_buffer=$ans
  19522. fi
  19523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_size_returned_in_buffer" >&5
  19524. $as_echo "$ac_cv_var_size_returned_in_buffer" >&6; }
  19525. case "$ac_cv_var_size_returned_in_buffer" in
  19526. yes)
  19527. $as_echo "#define SIZE_RETURNED_IN_BUFFER 1" >>confdefs.h
  19528. ;;
  19529. esac
  19530. # Check for ioctls TIOCGPPSEV
  19531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGPPSEV" >&5
  19532. $as_echo_n "checking ioctl TIOCGPPSEV... " >&6; }
  19533. if test "$ac_cv_header_termios_h" = "yes"; then
  19534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19535. /* end confdefs.h. */
  19536. #include <termios.h>
  19537. #ifdef TIOCGPPSEV
  19538. yes
  19539. #endif
  19540. _ACEOF
  19541. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19542. $EGREP "yes" >/dev/null 2>&1; then :
  19543. ntp_ok=yes
  19544. else
  19545. ntp_ok=no
  19546. fi
  19547. rm -f conftest*
  19548. else
  19549. ntp_ok=no
  19550. fi
  19551. if test "$ntp_ok" = "yes"; then
  19552. $as_echo "#define HAVE_TIOCGPPSEV 1" >>confdefs.h
  19553. ac_cv_var_oncore_ok=yes
  19554. fi
  19555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  19556. $as_echo "$ntp_ok" >&6; }
  19557. # Check for ioctls TIOCSPPS
  19558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCSPPS" >&5
  19559. $as_echo_n "checking ioctl TIOCSPPS... " >&6; }
  19560. if test "$ac_cv_header_termios_h" = "yes"; then
  19561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19562. /* end confdefs.h. */
  19563. #include <termios.h>
  19564. #ifdef TIOCSPPS
  19565. yes
  19566. #endif
  19567. _ACEOF
  19568. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19569. $EGREP "yes" >/dev/null 2>&1; then :
  19570. ntp_ok=yes
  19571. else
  19572. ntp_ok=no
  19573. fi
  19574. rm -f conftest*
  19575. else
  19576. ntp_ok=no
  19577. fi
  19578. if test "$ntp_ok" = "yes"; then
  19579. $as_echo "#define HAVE_TIOCSPPS 1" >>confdefs.h
  19580. fi
  19581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  19582. $as_echo "$ntp_ok" >&6; }
  19583. # Check for ioctls CIOGETEV
  19584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl CIOGETEV" >&5
  19585. $as_echo_n "checking ioctl CIOGETEV... " >&6; }
  19586. if test "$ac_cv_header_sys_ppsclock_h" = "yes"; then
  19587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19588. /* end confdefs.h. */
  19589. #include <sys/ppsclock.h>
  19590. #ifdef CIOGETEV
  19591. yes
  19592. #endif
  19593. _ACEOF
  19594. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19595. $EGREP "yes" >/dev/null 2>&1; then :
  19596. ntp_ok=yes
  19597. else
  19598. ntp_ok=no
  19599. fi
  19600. rm -f conftest*
  19601. else
  19602. ntp_ok=no
  19603. fi
  19604. if test "$ntp_ok" = "yes"; then
  19605. ac_cv_var_oncore_ok=yes
  19606. $as_echo "#define HAVE_CIOGETEV 1" >>confdefs.h
  19607. fi
  19608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  19609. $as_echo "$ntp_ok" >&6; }
  19610. # ATOM/PPSAPI stuff.
  19611. # ATOM used to require struct timespec, but that's been fixed now.
  19612. # case "$ac_cv_struct_timespec" in
  19613. # 'yes')
  19614. # ac_cv_var_atom_ok=yes
  19615. # ;;
  19616. # esac
  19617. ac_cv_var_atom_ok=yes
  19618. # Check for header timepps.h, if found then we have PPS API (Draft RFC) stuff.
  19619. # The PPSAPI headers need "inline" ($ac_cv_c_inline='inline')
  19620. # The PPSAPI needs struct timespec.
  19621. # The PPSAPI also needs a timepps header.
  19622. case "$ac_cv_c_inline$ac_cv_struct_timespec" in
  19623. inlineyes)
  19624. case "$ac_cv_header_timepps_h$ac_cv_header_sys_timepps_h$host_os" in
  19625. *yes* | *sunos* | *solaris* | *sco* | *netbsd* )
  19626. $as_echo "#define HAVE_PPSAPI 1" >>confdefs.h
  19627. ac_cv_var_jupiter_ok=yes
  19628. ac_cv_var_oncore_ok=yes
  19629. ac_cv_var_parse_ok=yes
  19630. ac_cv_var_ripe_ncc_ok=yes
  19631. ;;
  19632. esac
  19633. ;;
  19634. esac
  19635. # Check for ioctls TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG
  19636. ac_fn_c_check_header_mongrel "$LINENO" "linux/serial.h" "ac_cv_header_linux_serial_h" "$ac_includes_default"
  19637. if test "x$ac_cv_header_linux_serial_h" = x""yes; then :
  19638. fi
  19639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG" >&5
  19640. $as_echo_n "checking ioctl TIOCGSERIAL, TIOCSSERIAL, ASYNC_PPS_CD_POS, ASYNC_PPS_CD_NEG... " >&6; }
  19641. case "$ac_cv_header_sys_ppsclock_h$ac_cv_header_linux_serial_h" in
  19642. yesyes)
  19643. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19644. /* end confdefs.h. */
  19645. #include <sys/time.h>
  19646. typedef int u_int;
  19647. #include <sys/ppsclock.h>
  19648. #include <linux/serial.h>
  19649. #ifdef TIOCGSERIAL
  19650. #ifdef TIOCSSERIAL
  19651. #ifdef ASYNC_PPS_CD_POS
  19652. #ifdef ASYNC_PPS_CD_NEG
  19653. #ifdef CIOGETEV
  19654. yes
  19655. #endif
  19656. #endif
  19657. #endif
  19658. #endif
  19659. #endif
  19660. _ACEOF
  19661. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19662. $EGREP "yes" >/dev/null 2>&1; then :
  19663. ntp_ok=yes
  19664. fi
  19665. rm -f conftest*
  19666. ;;
  19667. *)
  19668. ntp_ok=no
  19669. ;;
  19670. esac
  19671. if test "$ntp_ok" = "yes"; then
  19672. $as_echo "#define HAVE_TIO_SERIAL_STUFF 1" >>confdefs.h
  19673. fi
  19674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  19675. $as_echo "$ntp_ok" >&6; }
  19676. # Check for SHMEM_STATUS support
  19677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking SHMEM_STATUS support" >&5
  19678. $as_echo_n "checking SHMEM_STATUS support... " >&6; }
  19679. case "$ac_cv_header_sys_mman_h" in
  19680. yes) ntp_ok=yes ;;
  19681. *) ntp_ok=no ;;
  19682. esac
  19683. if test "$ntp_ok" = "yes"; then
  19684. $as_echo "#define ONCORE_SHMEM_STATUS 1" >>confdefs.h
  19685. fi
  19686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  19687. $as_echo "$ntp_ok" >&6; }
  19688. ntp_refclock=no
  19689. # HPUX only, and by explicit request
  19690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum/Bancomm bc635/VME interface" >&5
  19691. $as_echo_n "checking Datum/Bancomm bc635/VME interface... " >&6; }
  19692. # Check whether --enable-BANCOMM was given.
  19693. if test "${enable_BANCOMM+set}" = set; then :
  19694. enableval=$enable_BANCOMM; ntp_ok=$enableval
  19695. else
  19696. ntp_ok=no
  19697. fi
  19698. if test "$ntp_ok" = "yes"; then
  19699. ntp_refclock=yes
  19700. $as_echo "#define CLOCK_BANC 1" >>confdefs.h
  19701. fi
  19702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  19703. $as_echo "$ntp_ok" >&6; }
  19704. case "$ntp_ok$host" in
  19705. yes*-*-hpux*) ;;
  19706. yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
  19707. $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
  19708. esac
  19709. #HPUX only, and only by explicit request
  19710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime GPS receiver/VME interface" >&5
  19711. $as_echo_n "checking TrueTime GPS receiver/VME interface... " >&6; }
  19712. # Check whether --enable-GPSVME was given.
  19713. if test "${enable_GPSVME+set}" = set; then :
  19714. enableval=$enable_GPSVME; ntp_ok=$enableval
  19715. else
  19716. ntp_ok=no
  19717. fi
  19718. if test "$ntp_ok" = "yes"; then
  19719. ntp_refclock=yes
  19720. $as_echo "#define CLOCK_GPSVME 1" >>confdefs.h
  19721. fi
  19722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  19723. $as_echo "$ntp_ok" >&6; }
  19724. case "$ntp_ok$host" in
  19725. yes*-*-hpux*) ;;
  19726. yes*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
  19727. $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
  19728. esac
  19729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL720 clock support" >&5
  19730. $as_echo_n "checking for PCL720 clock support... " >&6; }
  19731. case "$ac_cv_header_machine_inline_h$ac_cv_header_sys_pcl720_h$ac_cv_header_sys_i8253_h" in
  19732. yesyesyes)
  19733. $as_echo "#define CLOCK_PPS720 1" >>confdefs.h
  19734. ans=yes
  19735. ;;
  19736. *)
  19737. ans=no
  19738. ;;
  19739. esac
  19740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  19741. $as_echo "$ans" >&6; }
  19742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable non-PARSE clocks" >&5
  19743. $as_echo_n "checking for default inclusion of all suitable non-PARSE clocks... " >&6; }
  19744. # Check whether --enable-all-clocks was given.
  19745. if test "${enable_all_clocks+set}" = set; then :
  19746. enableval=$enable_all_clocks; ntp_eac=$enableval
  19747. else
  19748. ntp_eac=yes
  19749. fi
  19750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eac" >&5
  19751. $as_echo "$ntp_eac" >&6; }
  19752. # HMS: Should we also require ac_cv_var_parse_ok?
  19753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for PARSE clocks" >&5
  19754. $as_echo_n "checking if we have support for PARSE clocks... " >&6; }
  19755. case "$ac_cv_var_atom_ok$ac_cv_header_termio_h$ac_cv_header_termios_h" in
  19756. yes*yes*)
  19757. ntp_canparse=yes
  19758. ;;
  19759. *) ntp_canparse=no
  19760. ;;
  19761. esac
  19762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canparse" >&5
  19763. $as_echo "$ntp_canparse" >&6; }
  19764. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for audio clocks" >&5
  19765. $as_echo_n "checking if we have support for audio clocks... " >&6; }
  19766. case "$ac_cv_header_sun_audioio_h$ac_cv_header_sys_audioio_h$ac_cv_header_machine_soundcard_h$ac_cv_header_sys_soundcard_h" in
  19767. *yes*)
  19768. ntp_canaudio=yes
  19769. $as_echo "#define HAVE_AUDIO /**/" >>confdefs.h
  19770. ;;
  19771. *) ntp_canaudio=no ;;
  19772. esac
  19773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canaudio" >&5
  19774. $as_echo "$ntp_canaudio" >&6; }
  19775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have support for the SHM refclock interface" >&5
  19776. $as_echo_n "checking if we have support for the SHM refclock interface... " >&6; }
  19777. case "$ac_cv_header_sys_ipc_h$ac_cv_header_sys_shm_h" in
  19778. yesyes)
  19779. ntp_canshm=yes
  19780. ;;
  19781. *) ntp_canshm=no ;;
  19782. esac
  19783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_canshm" >&5
  19784. $as_echo "$ntp_canshm" >&6; }
  19785. # Requires modem control
  19786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking ACTS modem service" >&5
  19787. $as_echo_n "checking ACTS modem service... " >&6; }
  19788. # Check whether --enable-ACTS was given.
  19789. if test "${enable_ACTS+set}" = set; then :
  19790. enableval=$enable_ACTS; ntp_ok=$enableval
  19791. else
  19792. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19793. /* end confdefs.h. */
  19794. #include <termios.h>
  19795. #ifdef HAVE_SYS_IOCTL_H
  19796. #include <sys/ioctl.h>
  19797. #endif
  19798. #ifdef TIOCMBIS
  19799. yes
  19800. #endif
  19801. _ACEOF
  19802. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19803. $EGREP "yes" >/dev/null 2>&1; then :
  19804. ntp_ok=$ntp_eac
  19805. else
  19806. ntp_ok=no
  19807. fi
  19808. rm -f conftest*
  19809. fi
  19810. if test "$ntp_ok" = "yes"; then
  19811. ntp_refclock=yes
  19812. $as_echo "#define CLOCK_ACTS 1" >>confdefs.h
  19813. fi
  19814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  19815. $as_echo "$ntp_ok" >&6; }
  19816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arbiter 1088A/B GPS receiver" >&5
  19817. $as_echo_n "checking Arbiter 1088A/B GPS receiver... " >&6; }
  19818. # Check whether --enable-ARBITER was given.
  19819. if test "${enable_ARBITER+set}" = set; then :
  19820. enableval=$enable_ARBITER; ntp_ok=$enableval
  19821. else
  19822. ntp_ok=$ntp_eac
  19823. fi
  19824. if test "$ntp_ok" = "yes"; then
  19825. ntp_refclock=yes
  19826. $as_echo "#define CLOCK_ARBITER 1" >>confdefs.h
  19827. fi
  19828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  19829. $as_echo "$ntp_ok" >&6; }
  19830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Arcron MSF receiver" >&5
  19831. $as_echo_n "checking Arcron MSF receiver... " >&6; }
  19832. # Check whether --enable-ARCRON_MSF was given.
  19833. if test "${enable_ARCRON_MSF+set}" = set; then :
  19834. enableval=$enable_ARCRON_MSF; ntp_ok=$enableval
  19835. else
  19836. ntp_ok=$ntp_eac
  19837. fi
  19838. if test "$ntp_ok" = "yes"; then
  19839. ntp_refclock=yes
  19840. $as_echo "#define CLOCK_ARCRON_MSF 1" >>confdefs.h
  19841. fi
  19842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  19843. $as_echo "$ntp_ok" >&6; }
  19844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Austron 2200A/2201A GPS receiver" >&5
  19845. $as_echo_n "checking Austron 2200A/2201A GPS receiver... " >&6; }
  19846. # Check whether --enable-AS2201 was given.
  19847. if test "${enable_AS2201+set}" = set; then :
  19848. enableval=$enable_AS2201; ntp_ok=$enableval
  19849. else
  19850. ntp_ok=$ntp_eac
  19851. fi
  19852. if test "$ntp_ok" = "yes"; then
  19853. ntp_refclock=yes
  19854. $as_echo "#define CLOCK_AS2201 1" >>confdefs.h
  19855. fi
  19856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  19857. $as_echo "$ntp_ok" >&6; }
  19858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking ATOM PPS interface" >&5
  19859. $as_echo_n "checking ATOM PPS interface... " >&6; }
  19860. # Check whether --enable-ATOM was given.
  19861. if test "${enable_ATOM+set}" = set; then :
  19862. enableval=$enable_ATOM; ntp_ok=$enableval
  19863. else
  19864. ntp_ok=$ntp_eac
  19865. fi
  19866. case "$ac_cv_var_atom_ok" in
  19867. no) ntp_ok=no ;;
  19868. esac
  19869. if test "$ntp_ok" = "yes"; then
  19870. ntp_refclock=yes
  19871. $as_echo "#define CLOCK_ATOM 1" >>confdefs.h
  19872. fi
  19873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  19874. $as_echo "$ntp_ok" >&6; }
  19875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Chrono-log K-series WWVB receiver" >&5
  19876. $as_echo_n "checking Chrono-log K-series WWVB receiver... " >&6; }
  19877. # Check whether --enable-CHRONOLOG was given.
  19878. if test "${enable_CHRONOLOG+set}" = set; then :
  19879. enableval=$enable_CHRONOLOG; ntp_ok=$enableval
  19880. else
  19881. ntp_ok=$ntp_eac
  19882. fi
  19883. if test "$ntp_ok" = "yes"; then
  19884. ntp_refclock=yes
  19885. $as_echo "#define CLOCK_CHRONOLOG 1" >>confdefs.h
  19886. fi
  19887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  19888. $as_echo "$ntp_ok" >&6; }
  19889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU modem/decoder" >&5
  19890. $as_echo_n "checking CHU modem/decoder... " >&6; }
  19891. # Check whether --enable-CHU was given.
  19892. if test "${enable_CHU+set}" = set; then :
  19893. enableval=$enable_CHU; ntp_ok=$enableval
  19894. else
  19895. ntp_ok=$ntp_eac
  19896. fi
  19897. if test "$ntp_ok" = "yes"; then
  19898. ntp_refclock=yes
  19899. $as_echo "#define CLOCK_CHU 1" >>confdefs.h
  19900. fi
  19901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  19902. $as_echo "$ntp_ok" >&6; }
  19903. ac_refclock_chu=$ntp_ok
  19904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHU audio/decoder" >&5
  19905. $as_echo_n "checking CHU audio/decoder... " >&6; }
  19906. # Check whether --enable-AUDIO-CHU was given.
  19907. if test "${enable_AUDIO_CHU+set}" = set; then :
  19908. enableval=$enable_AUDIO_CHU; ntp_ok=$enableval
  19909. else
  19910. case "$ntp_eac$ac_refclock_chu$ntp_canaudio" in
  19911. *no*) ntp_ok=no ;;
  19912. *) ntp_ok=yes ;;
  19913. esac
  19914. fi
  19915. if test "$ntp_ok" = "yes"; then
  19916. $as_echo "#define AUDIO_CHU 1" >>confdefs.h
  19917. fi
  19918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  19919. $as_echo "$ntp_ok" >&6; }
  19920. # We used to check for sunos/solaris target...
  19921. case "$ntp_ok$ac_refclock_chu$ntp_canaudio" in
  19922. yes*no*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is...no ***" >&5
  19923. $as_echo "$as_me: WARNING: *** But the expected answer is...no ***" >&2;} ;;
  19924. esac
  19925. # Not under HP-UX
  19926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Datum Programmable Time System" >&5
  19927. $as_echo_n "checking Datum Programmable Time System... " >&6; }
  19928. # Check whether --enable-DATUM was given.
  19929. if test "${enable_DATUM+set}" = set; then :
  19930. enableval=$enable_DATUM; ntp_ok=$enableval
  19931. else
  19932. case "$ac_cv_header_termios_h" in
  19933. yes)
  19934. ntp_ok=$ntp_eac
  19935. ;;
  19936. *) ntp_ok=no
  19937. ;;
  19938. esac
  19939. fi
  19940. if test "$ntp_ok" = "yes"; then
  19941. ntp_refclock=yes
  19942. $as_echo "#define CLOCK_DATUM 1" >>confdefs.h
  19943. fi
  19944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  19945. $as_echo "$ntp_ok" >&6; }
  19946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Dumb generic hh:mm:ss local clock" >&5
  19947. $as_echo_n "checking Dumb generic hh:mm:ss local clock... " >&6; }
  19948. # Check whether --enable-DUMBCLOCK was given.
  19949. if test "${enable_DUMBCLOCK+set}" = set; then :
  19950. enableval=$enable_DUMBCLOCK; ntp_ok=$enableval
  19951. else
  19952. ntp_ok=$ntp_eac
  19953. fi
  19954. if test "$ntp_ok" = "yes"; then
  19955. ntp_refclock=yes
  19956. $as_echo "#define CLOCK_DUMBCLOCK 1" >>confdefs.h
  19957. fi
  19958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  19959. $as_echo "$ntp_ok" >&6; }
  19960. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Forum Graphic GPS" >&5
  19961. $as_echo_n "checking Forum Graphic GPS... " >&6; }
  19962. # Check whether --enable-FG was given.
  19963. if test "${enable_FG+set}" = set; then :
  19964. enableval=$enable_FG; ntp_ok=$enableval
  19965. else
  19966. ntp_ok=$ntp_eac
  19967. fi
  19968. if test "$ntp_ok" = "yes"; then
  19969. ntp_refclock=yes
  19970. $as_echo "#define CLOCK_FG 1" >>confdefs.h
  19971. fi
  19972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  19973. $as_echo "$ntp_ok" >&6; }
  19974. # Requires modem control
  19975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Heath GC-1000 WWV/WWVH receiver" >&5
  19976. $as_echo_n "checking Heath GC-1000 WWV/WWVH receiver... " >&6; }
  19977. # Check whether --enable-HEATH was given.
  19978. if test "${enable_HEATH+set}" = set; then :
  19979. enableval=$enable_HEATH; ntp_ok=$enableval
  19980. else
  19981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19982. /* end confdefs.h. */
  19983. #include <termios.h>
  19984. #ifdef HAVE_SYS_IOCTL_H
  19985. #include <sys/ioctl.h>
  19986. #endif
  19987. #ifdef TIOCMBIS
  19988. yes
  19989. #endif
  19990. _ACEOF
  19991. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  19992. $EGREP "yes" >/dev/null 2>&1; then :
  19993. ntp_ok=$ntp_eac
  19994. else
  19995. ntp_ok=no
  19996. fi
  19997. rm -f conftest*
  19998. fi
  19999. if test "$ntp_ok" = "yes"; then
  20000. ntp_refclock=yes
  20001. $as_echo "#define CLOCK_HEATH 1" >>confdefs.h
  20002. fi
  20003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20004. $as_echo "$ntp_ok" >&6; }
  20005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf serial clock device" >&5
  20006. $as_echo_n "checking for hopf serial clock device... " >&6; }
  20007. # Check whether --enable-HOPFSERIAL was given.
  20008. if test "${enable_HOPFSERIAL+set}" = set; then :
  20009. enableval=$enable_HOPFSERIAL; ntp_ok=$enableval
  20010. else
  20011. ntp_ok=$ntp_eac
  20012. fi
  20013. if test "$ntp_ok" = "yes"; then
  20014. ntp_refclock=yes
  20015. $as_echo "#define CLOCK_HOPF_SERIAL 1" >>confdefs.h
  20016. fi
  20017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20018. $as_echo "$ntp_ok" >&6; }
  20019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hopf PCI clock 6039" >&5
  20020. $as_echo_n "checking for hopf PCI clock 6039... " >&6; }
  20021. # Check whether --enable-HOPFPCI was given.
  20022. if test "${enable_HOPFPCI+set}" = set; then :
  20023. enableval=$enable_HOPFPCI; ntp_ok=$enableval
  20024. else
  20025. ntp_ok=$ntp_eac
  20026. fi
  20027. if test "$ntp_ok" = "yes"; then
  20028. ntp_refclock=yes
  20029. $as_echo "#define CLOCK_HOPF_PCI 1" >>confdefs.h
  20030. fi
  20031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20032. $as_echo "$ntp_ok" >&6; }
  20033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking HP 58503A GPS receiver" >&5
  20034. $as_echo_n "checking HP 58503A GPS receiver... " >&6; }
  20035. # Check whether --enable-HPGPS was given.
  20036. if test "${enable_HPGPS+set}" = set; then :
  20037. enableval=$enable_HPGPS; ntp_ok=$enableval
  20038. else
  20039. ntp_ok=$ntp_eac
  20040. fi
  20041. if test "$ntp_ok" = "yes"; then
  20042. ntp_refclock=yes
  20043. $as_echo "#define CLOCK_HPGPS 1" >>confdefs.h
  20044. fi
  20045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20046. $as_echo "$ntp_ok" >&6; }
  20047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking IRIG audio decoder" >&5
  20048. $as_echo_n "checking IRIG audio decoder... " >&6; }
  20049. # Check whether --enable-IRIG was given.
  20050. if test "${enable_IRIG+set}" = set; then :
  20051. enableval=$enable_IRIG; ntp_ok=$enableval
  20052. else
  20053. case "$ntp_eac$ntp_canaudio" in
  20054. *no*) ntp_ok=no ;;
  20055. *) ntp_ok=yes ;;
  20056. esac
  20057. fi
  20058. if test "$ntp_ok" = "yes"; then
  20059. ntp_refclock=yes
  20060. $as_echo "#define CLOCK_IRIG 1" >>confdefs.h
  20061. fi
  20062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20063. $as_echo "$ntp_ok" >&6; }
  20064. case "$ntp_ok$ntp_canaudio" in
  20065. yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
  20066. $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
  20067. esac
  20068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JJY receiver" >&5
  20069. $as_echo_n "checking for JJY receiver... " >&6; }
  20070. # Check whether --enable-JJY was given.
  20071. if test "${enable_JJY+set}" = set; then :
  20072. enableval=$enable_JJY; ntp_ok=$enableval
  20073. else
  20074. ntp_ok=$ntp_eac
  20075. fi
  20076. if test "$ntp_ok" = "yes"; then
  20077. ntp_refclock=yes
  20078. $as_echo "#define CLOCK_JJY 1" >>confdefs.h
  20079. fi
  20080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20081. $as_echo "$ntp_ok" >&6; }
  20082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Rockwell Jupiter GPS receiver" >&5
  20083. $as_echo_n "checking Rockwell Jupiter GPS receiver... " >&6; }
  20084. # Check whether --enable-JUPITER was given.
  20085. if test "${enable_JUPITER+set}" = set; then :
  20086. enableval=$enable_JUPITER; ntp_ok=$enableval
  20087. else
  20088. ntp_ok=$ntp_eac
  20089. fi
  20090. case "$ac_cv_var_jupiter_ok" in
  20091. no) ntp_ok=no ;;
  20092. esac
  20093. if test "$ntp_ok" = "yes"; then
  20094. ntp_refclock=yes
  20095. $as_echo "#define CLOCK_JUPITER 1" >>confdefs.h
  20096. fi
  20097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20098. $as_echo "$ntp_ok" >&6; }
  20099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Leitch CSD 5300 Master Clock System Driver" >&5
  20100. $as_echo_n "checking Leitch CSD 5300 Master Clock System Driver... " >&6; }
  20101. # Check whether --enable-LEITCH was given.
  20102. if test "${enable_LEITCH+set}" = set; then :
  20103. enableval=$enable_LEITCH; ntp_ok=$enableval
  20104. else
  20105. ntp_ok=$ntp_eac
  20106. fi
  20107. if test "$ntp_ok" = "yes"; then
  20108. ntp_refclock=yes
  20109. $as_echo "#define CLOCK_LEITCH 1" >>confdefs.h
  20110. fi
  20111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20112. $as_echo "$ntp_ok" >&6; }
  20113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking local clock reference" >&5
  20114. $as_echo_n "checking local clock reference... " >&6; }
  20115. # Check whether --enable-LOCAL-CLOCK was given.
  20116. if test "${enable_LOCAL_CLOCK+set}" = set; then :
  20117. enableval=$enable_LOCAL_CLOCK; ntp_ok=$enableval
  20118. else
  20119. ntp_ok=$ntp_eac
  20120. fi
  20121. if test "$ntp_ok" = "yes"; then
  20122. ntp_refclock=yes
  20123. $as_echo "#define CLOCK_LOCAL 1" >>confdefs.h
  20124. fi
  20125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20126. $as_echo "$ntp_ok" >&6; }
  20127. # Not Ultrix
  20128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Magnavox MX4200 GPS receiver" >&5
  20129. $as_echo_n "checking Magnavox MX4200 GPS receiver... " >&6; }
  20130. # Check whether --enable-MX4200 was given.
  20131. if test "${enable_MX4200+set}" = set; then :
  20132. enableval=$enable_MX4200; ntp_ok=$enableval
  20133. else
  20134. case "$ac_cv_var_ppsclock" in
  20135. yes) ntp_ok=$ntp_eac
  20136. ;;
  20137. *) ntp_ok=no
  20138. ;;
  20139. esac
  20140. fi
  20141. if test "$ntp_ok" = "yes"; then
  20142. ntp_refclock=yes
  20143. $as_echo "#define CLOCK_MX4200 1" >>confdefs.h
  20144. fi
  20145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20146. $as_echo "$ntp_ok" >&6; }
  20147. case "$ntp_ok$host" in
  20148. yes*-*-ultrix*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
  20149. $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
  20150. esac
  20151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NeoClock4X receiver" >&5
  20152. $as_echo_n "checking for NeoClock4X receiver... " >&6; }
  20153. # Check whether --enable-NEOCLOCK4X was given.
  20154. if test "${enable_NEOCLOCK4X+set}" = set; then :
  20155. enableval=$enable_NEOCLOCK4X; ntp_ok=$enableval
  20156. else
  20157. ntp_ok=$ntp_eac
  20158. fi
  20159. if test "$ntp_ok" = "yes"; then
  20160. ntp_refclock=yes
  20161. $as_echo "#define CLOCK_NEOCLOCK4X 1" >>confdefs.h
  20162. fi
  20163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20164. $as_echo "$ntp_ok" >&6; }
  20165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking NMEA GPS receiver" >&5
  20166. $as_echo_n "checking NMEA GPS receiver... " >&6; }
  20167. # Check whether --enable-NMEA was given.
  20168. if test "${enable_NMEA+set}" = set; then :
  20169. enableval=$enable_NMEA; ntp_ok=$enableval
  20170. else
  20171. ntp_ok=$ntp_eac
  20172. fi
  20173. if test "$ntp_ok" = "yes"; then
  20174. ntp_refclock=yes
  20175. $as_echo "#define CLOCK_NMEA 1" >>confdefs.h
  20176. fi
  20177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20178. $as_echo "$ntp_ok" >&6; }
  20179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ONCORE Motorola VP/UT Oncore GPS" >&5
  20180. $as_echo_n "checking for ONCORE Motorola VP/UT Oncore GPS... " >&6; }
  20181. # Check whether --enable-ONCORE was given.
  20182. if test "${enable_ONCORE+set}" = set; then :
  20183. enableval=$enable_ONCORE; ntp_ok=$enableval
  20184. else
  20185. ntp_ok=$ntp_eac
  20186. fi
  20187. case "$ac_cv_var_oncore_ok" in
  20188. no) ntp_ok=no ;;
  20189. esac
  20190. if test "$ntp_ok" = "yes"; then
  20191. ntp_refclock=yes
  20192. $as_echo "#define CLOCK_ONCORE 1" >>confdefs.h
  20193. fi
  20194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20195. $as_echo "$ntp_ok" >&6; }
  20196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Palisade clock" >&5
  20197. $as_echo_n "checking for Palisade clock... " >&6; }
  20198. # Check whether --enable-PALISADE was given.
  20199. if test "${enable_PALISADE+set}" = set; then :
  20200. enableval=$enable_PALISADE; ntp_ok=$enableval
  20201. else
  20202. case "$ac_cv_header_termios_h" in
  20203. yes)
  20204. ntp_ok=$ntp_eac
  20205. ;;
  20206. *) ntp_ok=no
  20207. ;;
  20208. esac
  20209. fi
  20210. if test "$ntp_ok" = "yes"; then
  20211. ntp_refclock=yes
  20212. $as_echo "#define CLOCK_PALISADE 1" >>confdefs.h
  20213. fi
  20214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20215. $as_echo "$ntp_ok" >&6; }
  20216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Conrad parallel port radio clock" >&5
  20217. $as_echo_n "checking Conrad parallel port radio clock... " >&6; }
  20218. # Check whether --enable-PCF was given.
  20219. if test "${enable_PCF+set}" = set; then :
  20220. enableval=$enable_PCF; ntp_ok=$enableval
  20221. else
  20222. ntp_ok=$ntp_eac
  20223. fi
  20224. if test "$ntp_ok" = "yes"; then
  20225. ntp_refclock=yes
  20226. $as_echo "#define CLOCK_PCF 1" >>confdefs.h
  20227. fi
  20228. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20229. $as_echo "$ntp_ok" >&6; }
  20230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking PST/Traconex 1020 WWV/WWVH receiver" >&5
  20231. $as_echo_n "checking PST/Traconex 1020 WWV/WWVH receiver... " >&6; }
  20232. # Check whether --enable-PST was given.
  20233. if test "${enable_PST+set}" = set; then :
  20234. enableval=$enable_PST; ntp_ok=$enableval
  20235. else
  20236. ntp_ok=$ntp_eac
  20237. fi
  20238. if test "$ntp_ok" = "yes"; then
  20239. ntp_refclock=yes
  20240. $as_echo "#define CLOCK_PST 1" >>confdefs.h
  20241. fi
  20242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20243. $as_echo "$ntp_ok" >&6; }
  20244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking RIPENCC specific Trimble driver" >&5
  20245. $as_echo_n "checking RIPENCC specific Trimble driver... " >&6; }
  20246. # Check whether --enable-RIPENCC was given.
  20247. if test "${enable_RIPENCC+set}" = set; then :
  20248. enableval=$enable_RIPENCC; ntp_ok=$enableval
  20249. else
  20250. ntp_ok=no
  20251. fi
  20252. # 020629: HMS: s/$ntp_eac -> -/no because of ptr += sprintf(ptr, ...) usage
  20253. case "$ac_cv_var_ripe_ncc_ok" in
  20254. no) ntp_ok=no ;;
  20255. esac
  20256. if test "$ntp_ok" = "yes"; then
  20257. ntp_refclock=yes
  20258. $as_echo "#define CLOCK_RIPENCC /**/" >>confdefs.h
  20259. fi
  20260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20261. $as_echo "$ntp_ok" >&6; }
  20262. # Danny Meyer says SHM compiles (with a few warnings) under Win32.
  20263. # For *IX, we need sys/ipc.h and sys/shm.h.
  20264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SHM clock attached thru shared memory" >&5
  20265. $as_echo_n "checking for SHM clock attached thru shared memory... " >&6; }
  20266. # Check whether --enable-SHM was given.
  20267. if test "${enable_SHM+set}" = set; then :
  20268. enableval=$enable_SHM; ntp_ok=$enableval
  20269. else
  20270. case "$ntp_eac$ntp_canshm" in
  20271. *no*) ntp_ok=no ;;
  20272. *) ntp_ok=yes ;;
  20273. esac
  20274. fi
  20275. if test "$ntp_ok" = "yes"; then
  20276. ntp_refclock=yes
  20277. $as_echo "#define CLOCK_SHM 1" >>confdefs.h
  20278. fi
  20279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20280. $as_echo "$ntp_ok" >&6; }
  20281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Spectracom 8170/Netclock/2 WWVB receiver" >&5
  20282. $as_echo_n "checking Spectracom 8170/Netclock/2 WWVB receiver... " >&6; }
  20283. # Check whether --enable-SPECTRACOM was given.
  20284. if test "${enable_SPECTRACOM+set}" = set; then :
  20285. enableval=$enable_SPECTRACOM; ntp_ok=$enableval
  20286. else
  20287. ntp_ok=$ntp_eac
  20288. fi
  20289. if test "$ntp_ok" = "yes"; then
  20290. ntp_refclock=yes
  20291. $as_echo "#define CLOCK_SPECTRACOM 1" >>confdefs.h
  20292. fi
  20293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20294. $as_echo "$ntp_ok" >&6; }
  20295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking KSI/Odetics TPRO/S GPS receiver/IRIG interface" >&5
  20296. $as_echo_n "checking KSI/Odetics TPRO/S GPS receiver/IRIG interface... " >&6; }
  20297. # Check whether --enable-TPRO was given.
  20298. if test "${enable_TPRO+set}" = set; then :
  20299. enableval=$enable_TPRO; ntp_ok=$enableval
  20300. else
  20301. case "$ac_cv_header_sys_tpro_h" in
  20302. yes)
  20303. ntp_ok=$ntp_eac
  20304. ;;
  20305. *) ntp_ok=no
  20306. ;;
  20307. esac
  20308. fi
  20309. if test "$ntp_ok" = "yes"; then
  20310. ntp_refclock=yes
  20311. $as_echo "#define CLOCK_TPRO 1" >>confdefs.h
  20312. fi
  20313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20314. $as_echo "$ntp_ok" >&6; }
  20315. case "$ntp_ok$ac_cv_header_sys_tpro" in
  20316. yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
  20317. $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
  20318. esac
  20319. # Not on a vax-dec-bsd
  20320. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kinemetrics/TrueTime receivers" >&5
  20321. $as_echo_n "checking Kinemetrics/TrueTime receivers... " >&6; }
  20322. # Check whether --enable-TRUETIME was given.
  20323. if test "${enable_TRUETIME+set}" = set; then :
  20324. enableval=$enable_TRUETIME; ntp_ok=$enableval
  20325. else
  20326. case "$host" in
  20327. vax-dec-bsd)
  20328. ntp_ok=no
  20329. ;;
  20330. *)
  20331. ntp_ok=$ntp_eac
  20332. ;;
  20333. esac
  20334. fi
  20335. if test "$ntp_ok" = "yes"; then
  20336. ntp_refclock=yes
  20337. $as_echo "#define CLOCK_TRUETIME 1" >>confdefs.h
  20338. fi
  20339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20340. $as_echo "$ntp_ok" >&6; }
  20341. case "$ntp_ok$host" in
  20342. yesvax-dec-bsd) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
  20343. $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
  20344. esac
  20345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking TrueTime 560 IRIG-B decoder" >&5
  20346. $as_echo_n "checking TrueTime 560 IRIG-B decoder... " >&6; }
  20347. # Check whether --enable-TT560 was given.
  20348. if test "${enable_TT560+set}" = set; then :
  20349. enableval=$enable_TT560; ntp_ok=$enableval
  20350. else
  20351. ntp_ok=no
  20352. fi
  20353. if test "$ntp_ok" = "yes"; then
  20354. ntp_refclock=yes
  20355. $as_echo "#define CLOCK_TT560 /**/" >>confdefs.h
  20356. fi
  20357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20358. $as_echo "$ntp_ok" >&6; }
  20359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ultralink M320 WWVB receiver" >&5
  20360. $as_echo_n "checking Ultralink M320 WWVB receiver... " >&6; }
  20361. # Check whether --enable-ULINK was given.
  20362. if test "${enable_ULINK+set}" = set; then :
  20363. enableval=$enable_ULINK; ntp_ok=$enableval
  20364. else
  20365. ntp_ok=$ntp_eac
  20366. fi
  20367. if test "$ntp_ok" = "yes"; then
  20368. ntp_refclock=yes
  20369. $as_echo "#define CLOCK_ULINK 1" >>confdefs.h
  20370. fi
  20371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20372. $as_echo "$ntp_ok" >&6; }
  20373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking WWV receiver" >&5
  20374. $as_echo_n "checking WWV receiver... " >&6; }
  20375. # Check whether --enable-WWV was given.
  20376. if test "${enable_WWV+set}" = set; then :
  20377. enableval=$enable_WWV; ntp_ok=$enableval
  20378. else
  20379. case "$ntp_eac$ntp_canaudio" in
  20380. *no*) ntp_ok=no ;;
  20381. *) ntp_ok=yes ;;
  20382. esac
  20383. fi
  20384. if test "$ntp_ok" = "yes"; then
  20385. ntp_refclock=yes
  20386. $as_echo "#define CLOCK_WWV 1" >>confdefs.h
  20387. fi
  20388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20389. $as_echo "$ntp_ok" >&6; }
  20390. case "$ntp_ok$ntp_canaudio" in
  20391. yesno) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** But the expected answer is... no ***" >&5
  20392. $as_echo "$as_me: WARNING: *** But the expected answer is... no ***" >&2;} ;;
  20393. esac
  20394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Zyfer receiver" >&5
  20395. $as_echo_n "checking for Zyfer receiver... " >&6; }
  20396. # Check whether --enable-ZYFER was given.
  20397. if test "${enable_ZYFER+set}" = set; then :
  20398. enableval=$enable_ZYFER; ntp_ok=$enableval
  20399. else
  20400. ntp_ok=$ntp_eac
  20401. fi
  20402. if test "$ntp_ok" = "yes"; then
  20403. ntp_refclock=yes
  20404. $as_echo "#define CLOCK_ZYFER 1" >>confdefs.h
  20405. fi
  20406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20407. $as_echo "$ntp_ok" >&6; }
  20408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default inclusion of all suitable PARSE clocks" >&5
  20409. $as_echo_n "checking for default inclusion of all suitable PARSE clocks... " >&6; }
  20410. # Check whether --enable-parse-clocks was given.
  20411. if test "${enable_parse_clocks+set}" = set; then :
  20412. enableval=$enable_parse_clocks; ntp_eapc=$enableval
  20413. else
  20414. case "$ntp_eac" in
  20415. yes) ntp_eapc=$ntp_canparse ;;
  20416. *) ntp_eapc=no ;;
  20417. esac
  20418. # Delete the next line one of these days
  20419. ntp_eapc=no
  20420. fi
  20421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_eapc" >&5
  20422. $as_echo "$ntp_eapc" >&6; }
  20423. case "$ntp_eac$ntp_eapc$ntp_canparse" in
  20424. noyes*)
  20425. as_fn_error "\"--enable-parse-clocks\" requires \"--enable-all-clocks\"." "$LINENO" 5
  20426. ;;
  20427. yesyesno)
  20428. as_fn_error "You said \"--enable-parse-clocks\" but PARSE isn't supported on this platform!" "$LINENO" 5
  20429. ;;
  20430. *) ;;
  20431. esac
  20432. ntp_libparse=no
  20433. ntp_parseutil=no
  20434. ntp_rawdcf=no
  20435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Diem Computime Radio Clock" >&5
  20436. $as_echo_n "checking Diem Computime Radio Clock... " >&6; }
  20437. # Check whether --enable-COMPUTIME was given.
  20438. if test "${enable_COMPUTIME+set}" = set; then :
  20439. enableval=$enable_COMPUTIME; ntp_ok=$enableval
  20440. else
  20441. ntp_ok=$ntp_eapc
  20442. fi
  20443. if test "$ntp_ok" = "yes"; then
  20444. ntp_libparse=yes
  20445. ntp_refclock=yes
  20446. $as_echo "#define CLOCK_COMPUTIME 1" >>confdefs.h
  20447. fi
  20448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20449. $as_echo "$ntp_ok" >&6; }
  20450. case "$ntp_ok$ntp_canparse" in
  20451. yesno)
  20452. as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
  20453. ;;
  20454. esac
  20455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking ELV/DCF7000 clock" >&5
  20456. $as_echo_n "checking ELV/DCF7000 clock... " >&6; }
  20457. # Check whether --enable-DCF7000 was given.
  20458. if test "${enable_DCF7000+set}" = set; then :
  20459. enableval=$enable_DCF7000; ntp_ok=$enableval
  20460. else
  20461. ntp_ok=$ntp_eapc
  20462. fi
  20463. if test "$ntp_ok" = "yes"; then
  20464. ntp_libparse=yes
  20465. ntp_refclock=yes
  20466. $as_echo "#define CLOCK_DCF7000 1" >>confdefs.h
  20467. fi
  20468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20469. $as_echo "$ntp_ok" >&6; }
  20470. case "$ntp_ok$ntp_canparse" in
  20471. yesno)
  20472. as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
  20473. ;;
  20474. esac
  20475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking HOPF 6021 clock" >&5
  20476. $as_echo_n "checking HOPF 6021 clock... " >&6; }
  20477. # Check whether --enable-HOPF6021 was given.
  20478. if test "${enable_HOPF6021+set}" = set; then :
  20479. enableval=$enable_HOPF6021; ntp_ok=$enableval
  20480. else
  20481. ntp_ok=$ntp_eapc
  20482. fi
  20483. if test "$ntp_ok" = "yes"; then
  20484. ntp_libparse=yes
  20485. ntp_refclock=yes
  20486. $as_echo "#define CLOCK_HOPF6021 1" >>confdefs.h
  20487. fi
  20488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20489. $as_echo "$ntp_ok" >&6; }
  20490. case "$ntp_ok$ntp_canparse" in
  20491. yesno)
  20492. as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
  20493. ;;
  20494. esac
  20495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Meinberg clocks" >&5
  20496. $as_echo_n "checking Meinberg clocks... " >&6; }
  20497. # Check whether --enable-MEINBERG was given.
  20498. if test "${enable_MEINBERG+set}" = set; then :
  20499. enableval=$enable_MEINBERG; ntp_ok=$enableval
  20500. else
  20501. ntp_ok=$ntp_eapc
  20502. fi
  20503. if test "$ntp_ok" = "yes"; then
  20504. ntp_libparse=yes
  20505. ntp_refclock=yes
  20506. $as_echo "#define CLOCK_MEINBERG 1" >>confdefs.h
  20507. fi
  20508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20509. $as_echo "$ntp_ok" >&6; }
  20510. case "$ntp_ok$ntp_canparse" in
  20511. yesno)
  20512. as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
  20513. ;;
  20514. esac
  20515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking DCF77 raw time code" >&5
  20516. $as_echo_n "checking DCF77 raw time code... " >&6; }
  20517. # Check whether --enable-RAWDCF was given.
  20518. if test "${enable_RAWDCF+set}" = set; then :
  20519. enableval=$enable_RAWDCF; ntp_ok=$enableval
  20520. else
  20521. ntp_ok=$ntp_eapc
  20522. fi
  20523. if test "$ntp_ok" = "yes"; then
  20524. ntp_libparse=yes
  20525. ntp_parseutil=yes
  20526. ntp_refclock=yes
  20527. ntp_rawdcf=yes
  20528. $as_echo "#define CLOCK_RAWDCF 1" >>confdefs.h
  20529. fi
  20530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20531. $as_echo "$ntp_ok" >&6; }
  20532. case "$ntp_ok$ntp_canparse" in
  20533. yesno)
  20534. as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
  20535. ;;
  20536. esac
  20537. case "$ntp_rawdcf" in
  20538. yes)
  20539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we must enable parity for RAWDCF" >&5
  20540. $as_echo_n "checking if we must enable parity for RAWDCF... " >&6; }
  20541. if test "${ac_cv_var_rawdcf_parity+set}" = set; then :
  20542. $as_echo_n "(cached) " >&6
  20543. else
  20544. ans=no
  20545. case "$host" in
  20546. *-*-*linux*)
  20547. ans=yes
  20548. ;;
  20549. esac
  20550. ac_cv_var_rawdcf_parity=$ans
  20551. fi
  20552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_rawdcf_parity" >&5
  20553. $as_echo "$ac_cv_var_rawdcf_parity" >&6; }
  20554. case "$ac_cv_var_rawdcf_parity" in
  20555. yes)
  20556. $as_echo "#define RAWDCF_NO_IGNPAR 1" >>confdefs.h
  20557. ;;
  20558. esac
  20559. ;;
  20560. *) # HMS: Is this a good idea?
  20561. ac_cv_var_rawdcf_parity=no
  20562. ;;
  20563. esac
  20564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking RCC 8000 clock" >&5
  20565. $as_echo_n "checking RCC 8000 clock... " >&6; }
  20566. # Check whether --enable-RCC8000 was given.
  20567. if test "${enable_RCC8000+set}" = set; then :
  20568. enableval=$enable_RCC8000; ntp_ok=$enableval
  20569. else
  20570. ntp_ok=$ntp_eapc
  20571. fi
  20572. if test "$ntp_ok" = "yes"; then
  20573. ntp_libparse=yes
  20574. ntp_refclock=yes
  20575. $as_echo "#define CLOCK_RCC8000 1" >>confdefs.h
  20576. fi
  20577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20578. $as_echo "$ntp_ok" >&6; }
  20579. case "$ntp_ok$ntp_canparse" in
  20580. yesno)
  20581. as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
  20582. ;;
  20583. esac
  20584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Schmid DCF77 clock" >&5
  20585. $as_echo_n "checking Schmid DCF77 clock... " >&6; }
  20586. # Check whether --enable-SCHMID was given.
  20587. if test "${enable_SCHMID+set}" = set; then :
  20588. enableval=$enable_SCHMID; ntp_ok=$enableval
  20589. else
  20590. ntp_ok=$ntp_eapc
  20591. fi
  20592. if test "$ntp_ok" = "yes"; then
  20593. ntp_libparse=yes
  20594. ntp_refclock=yes
  20595. $as_echo "#define CLOCK_SCHMID 1" >>confdefs.h
  20596. fi
  20597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20598. $as_echo "$ntp_ok" >&6; }
  20599. case "$ntp_ok$ntp_canparse" in
  20600. yesno)
  20601. as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
  20602. ;;
  20603. esac
  20604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TAIP protocol" >&5
  20605. $as_echo_n "checking Trimble GPS receiver/TAIP protocol... " >&6; }
  20606. # Check whether --enable-TRIMTAIP was given.
  20607. if test "${enable_TRIMTAIP+set}" = set; then :
  20608. enableval=$enable_TRIMTAIP; ntp_ok=$enableval
  20609. else
  20610. ntp_ok=$ntp_eapc
  20611. fi
  20612. if test "$ntp_ok" = "yes"; then
  20613. ntp_libparse=yes
  20614. ntp_refclock=yes
  20615. $as_echo "#define CLOCK_TRIMTAIP 1" >>confdefs.h
  20616. fi
  20617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20618. $as_echo "$ntp_ok" >&6; }
  20619. case "$ntp_ok$ntp_canparse" in
  20620. yesno)
  20621. as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
  20622. ;;
  20623. esac
  20624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Trimble GPS receiver/TSIP protocol" >&5
  20625. $as_echo_n "checking Trimble GPS receiver/TSIP protocol... " >&6; }
  20626. # Check whether --enable-TRIMTSIP was given.
  20627. if test "${enable_TRIMTSIP+set}" = set; then :
  20628. enableval=$enable_TRIMTSIP; ntp_ok=$enableval
  20629. else
  20630. ntp_ok=$ntp_eapc
  20631. fi
  20632. if test "$ntp_ok" = "yes"; then
  20633. ntp_libparse=yes
  20634. ntp_refclock=yes
  20635. $as_echo "#define CLOCK_TRIMTSIP 1" >>confdefs.h
  20636. fi
  20637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20638. $as_echo "$ntp_ok" >&6; }
  20639. case "$ntp_ok$ntp_canparse" in
  20640. yesno)
  20641. as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
  20642. ;;
  20643. esac
  20644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking WHARTON 400A Series clock" >&5
  20645. $as_echo_n "checking WHARTON 400A Series clock... " >&6; }
  20646. # Check whether --enable-WHARTON was given.
  20647. if test "${enable_WHARTON+set}" = set; then :
  20648. enableval=$enable_WHARTON; ntp_ok=$enableval
  20649. else
  20650. ntp_ok=$ntp_eapc
  20651. fi
  20652. if test "$ntp_ok" = "yes"; then
  20653. ntp_libparse=yes
  20654. ntp_refclock=yes
  20655. $as_echo "#define CLOCK_WHARTON_400A 1" >>confdefs.h
  20656. fi
  20657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20658. $as_echo "$ntp_ok" >&6; }
  20659. case "$ntp_ok$ntp_canparse" in
  20660. yesno)
  20661. as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
  20662. ;;
  20663. esac
  20664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking VARITEXT clock" >&5
  20665. $as_echo_n "checking VARITEXT clock... " >&6; }
  20666. # Check whether --enable-VARITEXT was given.
  20667. if test "${enable_VARITEXT+set}" = set; then :
  20668. enableval=$enable_VARITEXT; ntp_ok=$enableval
  20669. else
  20670. ntp_ok=$ntp_eapc
  20671. fi
  20672. if test "$ntp_ok" = "yes"; then
  20673. ntp_libparse=yes
  20674. ntp_refclock=yes
  20675. $as_echo "#define CLOCK_VARITEXT 1" >>confdefs.h
  20676. fi
  20677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_ok" >&5
  20678. $as_echo "$ntp_ok" >&6; }
  20679. case "$ntp_ok$ntp_canparse" in
  20680. yesno)
  20681. as_fn_error "That's a parse clock and this system doesn't support it!" "$LINENO" 5
  20682. ;;
  20683. esac
  20684. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need to make and use the parse libraries" >&5
  20685. $as_echo_n "checking if we need to make and use the parse libraries... " >&6; }
  20686. ans=no
  20687. case "$ntp_libparse" in
  20688. yes)
  20689. ans=yes
  20690. $as_echo "#define CLOCK_PARSE 1" >>confdefs.h
  20691. LIBPARSE=../libparse/libparse.a
  20692. MAKE_LIBPARSE=libparse.a
  20693. # HMS: check_y2k trips the 34 year problem now...
  20694. false && MAKE_CHECK_Y2K=check_y2k
  20695. $as_echo "#define PPS_SAMPLE 1" >>confdefs.h
  20696. $as_echo "#define CLOCK_ATOM 1" >>confdefs.h
  20697. ;;
  20698. esac
  20699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  20700. $as_echo "$ans" >&6; }
  20701. # AC_SUBST(RSAOBJS)
  20702. # AC_SUBST(RSASRCS)
  20703. # AC_SUBST(RSADIR)
  20704. # AC_SUBST(RSAREF)
  20705. # AC_SUBST(LIBRSAREF)
  20706. # AC_SUBST(MAKE_LIBRSAREF)
  20707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl library directory" >&5
  20708. $as_echo_n "checking for openssl library directory... " >&6; }
  20709. # Check whether --with-openssl-libdir was given.
  20710. if test "${with_openssl_libdir+set}" = set; then :
  20711. withval=$with_openssl_libdir; ans=$withval
  20712. else
  20713. case "$build" in
  20714. $host) ans=yes ;;
  20715. *) ans=no ;;
  20716. esac
  20717. fi
  20718. case "$ans" in
  20719. no) ;;
  20720. yes) # Look in:
  20721. ans="/usr/lib /usr/lib/openssl /usr/sfw/lib /usr/local/lib /usr/local/ssl/lib"
  20722. ;;
  20723. *) # Look where they said
  20724. ;;
  20725. esac
  20726. case "$ans" in
  20727. no) ;;
  20728. *) # Look for libcrypto.a and libssl.a:
  20729. for i in $ans no
  20730. do
  20731. case "$host" in
  20732. *-*-darwin*)
  20733. test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break
  20734. ;;
  20735. *)
  20736. test -f $i/libcrypto.so -a -f $i/libssl.so && break
  20737. test -f $i/libcrypto.a -a -f $i/libssl.a && break
  20738. ;;
  20739. esac
  20740. done
  20741. case "$i" in
  20742. no)
  20743. ans=no
  20744. OPENSSL_LIB=
  20745. ;;
  20746. *) ans=$i
  20747. OPENSSL_LIB=$ans
  20748. ;;
  20749. esac
  20750. ;;
  20751. esac
  20752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  20753. $as_echo "$ans" >&6; }
  20754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl include directory" >&5
  20755. $as_echo_n "checking for openssl include directory... " >&6; }
  20756. # Check whether --with-openssl-incdir was given.
  20757. if test "${with_openssl_incdir+set}" = set; then :
  20758. withval=$with_openssl_incdir; ans=$withval
  20759. else
  20760. case "$build" in
  20761. $host) ans=yes ;;
  20762. *) ans=no ;;
  20763. esac
  20764. fi
  20765. case "$ans" in
  20766. no) ;;
  20767. yes) # look in:
  20768. ans="/usr/include /usr/sfw/include /usr/local/include /usr/local/ssl/include"
  20769. ;;
  20770. *) # Look where they said
  20771. ;;
  20772. esac
  20773. case "$ans" in
  20774. no) ;;
  20775. *) # look for openssl/opensslconf.h:
  20776. for i in $ans no
  20777. do
  20778. test -f $i/openssl/opensslconf.h && break
  20779. done
  20780. case "$i" in
  20781. no)
  20782. ans=no
  20783. OPENSSL_INC=
  20784. ;;
  20785. *) ans=$i
  20786. OPENSSL_INC=$ans
  20787. ;;
  20788. esac
  20789. ;;
  20790. esac
  20791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  20792. $as_echo "$ans" >&6; }
  20793. # Check whether --with-crypto was given.
  20794. if test "${with_crypto+set}" = set; then :
  20795. withval=$with_crypto; ans=$withval
  20796. else
  20797. ans=yes
  20798. fi
  20799. case "$ans" in
  20800. no) ;;
  20801. yes|openssl)
  20802. if test -z "$OPENSSL_LIB" -o -z "$OPENSSL_INC"
  20803. then
  20804. ans=no
  20805. else
  20806. # We have OpenSSL inc/lib - use them.
  20807. ans=openssl
  20808. CPPFLAGS="$CPPFLAGS -I$OPENSSL_INC"
  20809. LDFLAGS="$LDFLAGS -L$OPENSSL_LIB"
  20810. case "$need_dash_r" in
  20811. 1) LDFLAGS="$LDFLAGS -R$OPENSSL_LIB"
  20812. ;;
  20813. esac
  20814. LCRYPTO=-lcrypto
  20815. $as_echo "#define OPENSSL /**/" >>confdefs.h
  20816. for ac_func in EVP_md2 EVP_mdc2
  20817. do :
  20818. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20819. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  20820. eval as_val=\$$as_ac_var
  20821. if test "x$as_val" = x""yes; then :
  20822. cat >>confdefs.h <<_ACEOF
  20823. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20824. _ACEOF
  20825. fi
  20826. done
  20827. fi
  20828. ;;
  20829. esac
  20830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the level of crypto support" >&5
  20831. $as_echo_n "checking for the level of crypto support... " >&6; }
  20832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  20833. $as_echo "$ans" >&6; }
  20834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to compile with ElectricFence" >&5
  20835. $as_echo_n "checking if we want to compile with ElectricFence... " >&6; }
  20836. # Check whether --with-electricfence was given.
  20837. if test "${with_electricfence+set}" = set; then :
  20838. withval=$with_electricfence; ans=$withval
  20839. else
  20840. ans=no
  20841. fi
  20842. case "$ans" in
  20843. no) ;;
  20844. *)
  20845. LIBS="$LIBS \${top_builddir}/ElectricFence/libefence.a"
  20846. EF_PROGS="eftest tstheap"
  20847. EF_LIBS=libefence.a
  20848. ans=yes
  20849. ;;
  20850. esac
  20851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  20852. $as_echo "$ans" >&6; }
  20853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to run check-layout" >&5
  20854. $as_echo_n "checking if we want to run check-layout... " >&6; }
  20855. case "$cross_compiling$PATH_PERL" in
  20856. no/*)
  20857. MAKE_CHECK_LAYOUT=check-layout
  20858. ans=yes
  20859. ;;
  20860. *)
  20861. ans=no
  20862. ;;
  20863. esac
  20864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  20865. $as_echo "$ans" >&6; }
  20866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make dcf parse utilities" >&5
  20867. $as_echo_n "checking if we can make dcf parse utilities... " >&6; }
  20868. ans=no
  20869. if test "$ntp_parseutil" = "yes"; then
  20870. case "$host" in
  20871. *-*-sunos4*|*-*-solaris2*|*-*-*linux*|*-*-netbsd*)
  20872. ans="dcfd testdcf"
  20873. DCFD=dcfd
  20874. TESTDCF=testdcf
  20875. ;;
  20876. esac
  20877. fi
  20878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  20879. $as_echo "$ans" >&6; }
  20880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can build kernel streams modules for parse" >&5
  20881. $as_echo_n "checking if we can build kernel streams modules for parse... " >&6; }
  20882. ans=no
  20883. case "$ntp_parseutil$ac_cv_header_sys_stropts_h" in
  20884. yesyes)
  20885. case "$host" in
  20886. sparc-*-sunos4*)
  20887. case "$ac_cv_var_kernel_pll" in
  20888. yes)
  20889. $as_echo "#define PPS_SYNC 1" >>confdefs.h
  20890. ;;
  20891. esac
  20892. ans=parsestreams
  20893. MAKE_PARSEKMODULE=parsestreams.loadable_module.o
  20894. ;;
  20895. sparc-*-solaris2*)
  20896. ans=parsesolaris
  20897. MAKE_PARSEKMODULE=parse
  20898. ;;
  20899. esac
  20900. ;;
  20901. esac
  20902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  20903. $as_echo "$ans" >&6; }
  20904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we need basic refclock support" >&5
  20905. $as_echo_n "checking if we need basic refclock support... " >&6; }
  20906. if test "$ntp_refclock" = "yes"; then
  20907. $as_echo "#define REFCLOCK 1" >>confdefs.h
  20908. fi
  20909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_refclock" >&5
  20910. $as_echo "$ntp_refclock" >&6; }
  20911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want HP-UX adjtimed support" >&5
  20912. $as_echo_n "checking if we want HP-UX adjtimed support... " >&6; }
  20913. case "$host" in
  20914. *-*-hpux[56789]*)
  20915. ans=yes
  20916. ;;
  20917. *) ans=no
  20918. ;;
  20919. esac
  20920. if test "$ans" = "yes"; then
  20921. MAKE_ADJTIMED=adjtimed
  20922. $as_echo "#define NEED_HPUX_ADJTIME 1" >>confdefs.h
  20923. fi
  20924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  20925. $as_echo "$ans" >&6; }
  20926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want QNX adjtime support" >&5
  20927. $as_echo_n "checking if we want QNX adjtime support... " >&6; }
  20928. case "$host" in
  20929. *-*-qnx*)
  20930. ans=yes
  20931. ;;
  20932. *) ans=no
  20933. ;;
  20934. esac
  20935. if test "$ans" = "yes"; then
  20936. $as_echo "#define NEED_QNX_ADJTIME 1" >>confdefs.h
  20937. fi
  20938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  20939. $as_echo "$ans" >&6; }
  20940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can read kmem" >&5
  20941. $as_echo_n "checking if we can read kmem... " >&6; }
  20942. # the default is to enable it if the system has the capability
  20943. case "$ac_cv_func_nlist$ac_cv_func_K_open$ac_cv_func_kvm_open" in
  20944. *yes*)
  20945. ans=yes
  20946. ;;
  20947. *) ans=no
  20948. esac
  20949. case "$host" in
  20950. *-*-domainos) # Won't be found...
  20951. ans=no
  20952. ;;
  20953. *-*-hpux*)
  20954. #ans=no
  20955. ;;
  20956. *-*-irix[456]*)
  20957. ans=no
  20958. ;;
  20959. *-*-*linux*)
  20960. ans=no
  20961. ;;
  20962. *-*-winnt3.5)
  20963. ans=no
  20964. ;;
  20965. *-*-unicosmp*)
  20966. ans=no
  20967. ;;
  20968. esac
  20969. # --enable-kmem / --disable-kmem controls if present
  20970. # Check whether --enable-kmem was given.
  20971. if test "${enable_kmem+set}" = set; then :
  20972. enableval=$enable_kmem; ans=$enableval
  20973. fi
  20974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  20975. $as_echo "$ans" >&6; }
  20976. case "$ans" in
  20977. yes)
  20978. can_kmem=yes
  20979. ;;
  20980. *)
  20981. can_kmem=no
  20982. $as_echo "#define NOKMEM 1" >>confdefs.h
  20983. esac
  20984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if adjtime is accurate" >&5
  20985. $as_echo_n "checking if adjtime is accurate... " >&6; }
  20986. # target-dependent defaults
  20987. case "$host" in
  20988. i386-sequent-ptx*)
  20989. ans=no
  20990. ;;
  20991. i386-unknown-osf1*)
  20992. ans=yes
  20993. ;;
  20994. mips-sgi-irix[456]*)
  20995. ans=yes
  20996. ;;
  20997. *-fujitsu-uxp*)
  20998. ans=yes
  20999. ;;
  21000. *-ibm-aix[456]*)
  21001. ans=yes
  21002. ;;
  21003. *-*-*linux*)
  21004. ans=yes
  21005. ;;
  21006. *-*-solaris2.[01])
  21007. ans=no
  21008. ;;
  21009. *-*-solaris2*)
  21010. ans=yes
  21011. ;;
  21012. *-*-unicosmp*)
  21013. ans=yes
  21014. ;;
  21015. *) ans=no
  21016. esac
  21017. # --enable-accurate-adjtime / --disable-accurate-adjtime
  21018. # override the default
  21019. # Check whether --enable-accurate-adjtime was given.
  21020. if test "${enable_accurate_adjtime+set}" = set; then :
  21021. enableval=$enable_accurate_adjtime; ans=$enableval
  21022. fi
  21023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  21024. $as_echo "$ans" >&6; }
  21025. case "$ans" in
  21026. yes)
  21027. $as_echo "#define ADJTIME_IS_ACCURATE 1" >>confdefs.h
  21028. adjtime_is_accurate=yes
  21029. ;;
  21030. *)
  21031. adjtime_is_accurate=no
  21032. esac
  21033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tick' in the kernel" >&5
  21034. $as_echo_n "checking the name of 'tick' in the kernel... " >&6; }
  21035. if test "${ac_cv_var_nlist_tick+set}" = set; then :
  21036. $as_echo_n "(cached) " >&6
  21037. else
  21038. ans=_tick
  21039. case "$host" in
  21040. m68*-hp-hpux*) # HP9000/300?
  21041. ans=_old_tick
  21042. ;;
  21043. *-apple-aux[23]*)
  21044. ans=tick
  21045. ;;
  21046. *-hp-hpux*)
  21047. ans=old_tick
  21048. ;;
  21049. *-ibm-aix[3456]*)
  21050. ans=no
  21051. ;;
  21052. *-*-mpeix*)
  21053. ans=no
  21054. ;;
  21055. *-*-ptx*)
  21056. ans=tick
  21057. ;;
  21058. *-*-sco3.2v[45]*)
  21059. ans=no
  21060. ;;
  21061. *-*-solaris2*)
  21062. ans=nsec_per_tick
  21063. ;;
  21064. *-*-sysv4*)
  21065. ans=tick
  21066. ;;
  21067. esac
  21068. ac_cv_var_nlist_tick=$ans
  21069. fi
  21070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_tick" >&5
  21071. $as_echo "$ac_cv_var_nlist_tick" >&6; }
  21072. case "$ac_cv_var_nlist_tick" in
  21073. ''|no) ;; # HMS: I think we can only get 'no' here...
  21074. *)
  21075. cat >>confdefs.h <<_ACEOF
  21076. #define K_TICK_NAME "$ac_cv_var_nlist_tick"
  21077. _ACEOF
  21078. ;;
  21079. esac
  21080. #
  21081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tick'" >&5
  21082. $as_echo_n "checking for the units of 'tick'... " >&6; }
  21083. if test "${ac_cv_var_tick_nano+set}" = set; then :
  21084. $as_echo_n "(cached) " >&6
  21085. else
  21086. ans=usec
  21087. case "$host" in
  21088. *-*-solaris2*)
  21089. ans=nsec
  21090. ;;
  21091. esac
  21092. ac_cv_var_tick_nano=$ans
  21093. fi
  21094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tick_nano" >&5
  21095. $as_echo "$ac_cv_var_tick_nano" >&6; }
  21096. case "$ac_cv_var_tick_nano" in
  21097. nsec)
  21098. $as_echo "#define TICK_NANO 1" >>confdefs.h
  21099. ;;
  21100. esac
  21101. #
  21102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name of 'tickadj' in the kernel" >&5
  21103. $as_echo_n "checking the name of 'tickadj' in the kernel... " >&6; }
  21104. if test "${ac_cv_var_nlist_tickadj+set}" = set; then :
  21105. $as_echo_n "(cached) " >&6
  21106. else
  21107. ans=_tickadj
  21108. case "$host" in
  21109. m68*-hp-hpux*) # HP9000/300?
  21110. ans=_tickadj
  21111. ;;
  21112. *-apple-aux[23]*)
  21113. ans=tickadj
  21114. ;;
  21115. *-hp-hpux10*)
  21116. ans=no
  21117. ;;
  21118. *-hp-hpux9*)
  21119. ans=no
  21120. ;;
  21121. *-hp-hpux*)
  21122. ans=tickadj
  21123. ;;
  21124. *-*-aix*)
  21125. ans=tickadj
  21126. ;;
  21127. *-*-mpeix*)
  21128. ans=no
  21129. ;;
  21130. *-*-ptx*)
  21131. ans=tickadj
  21132. ;;
  21133. *-*-sco3.2v4*)
  21134. ans=no
  21135. ;;
  21136. *-*-sco3.2v5.0*)
  21137. ans=clock_drift
  21138. ;;
  21139. *-*-solaris2*)
  21140. ans=no # hrestime_adj
  21141. ;;
  21142. *-*-sysv4*)
  21143. ans=tickadj
  21144. ;;
  21145. esac
  21146. ac_cv_var_nlist_tickadj=$ans
  21147. fi
  21148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_tickadj" >&5
  21149. $as_echo "$ac_cv_var_nlist_tickadj" >&6; }
  21150. case "$ac_cv_var_nlist_tickadj" in
  21151. ''|no) ;; # HMS: I think we can only get 'no' here...
  21152. *)
  21153. cat >>confdefs.h <<_ACEOF
  21154. #define K_TICKADJ_NAME "$ac_cv_var_nlist_tickadj"
  21155. _ACEOF
  21156. ;;
  21157. esac
  21158. #
  21159. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the units of 'tickadj'" >&5
  21160. $as_echo_n "checking for the units of 'tickadj'... " >&6; }
  21161. if test "${ac_cv_var_tickadj_nano+set}" = set; then :
  21162. $as_echo_n "(cached) " >&6
  21163. else
  21164. ans=usec
  21165. case "$host" in
  21166. *-*-solaris2*)
  21167. ans=nsec
  21168. ;;
  21169. esac
  21170. ac_cv_var_tickadj_nano=$ans
  21171. fi
  21172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tickadj_nano" >&5
  21173. $as_echo "$ac_cv_var_tickadj_nano" >&6; }
  21174. case "$ac_cv_var_tickadj_nano" in
  21175. nsec)
  21176. $as_echo "#define TICKADJ_NANO 1" >>confdefs.h
  21177. ;;
  21178. esac
  21179. #
  21180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'dosynctodr' in the kernel" >&5
  21181. $as_echo_n "checking half-heartedly for 'dosynctodr' in the kernel... " >&6; }
  21182. if test "${ac_cv_var_nlist_dosynctodr+set}" = set; then :
  21183. $as_echo_n "(cached) " >&6
  21184. else
  21185. case "$host" in
  21186. *-apple-aux[23]*)
  21187. ans=no
  21188. ;;
  21189. *-sni-sysv*)
  21190. ans=dosynctodr
  21191. ;;
  21192. *-*-aix*)
  21193. ans=dosynctodr
  21194. ;;
  21195. *-*-hpux*)
  21196. ans=no
  21197. ;;
  21198. *-*-mpeix*)
  21199. ans=no
  21200. ;;
  21201. *-*-nextstep*)
  21202. ans=_dosynctodr
  21203. ;;
  21204. *-*-ptx*)
  21205. ans=doresettodr
  21206. ;;
  21207. *-*-sco3.2v4*)
  21208. ans=no
  21209. ;;
  21210. *-*-sco3.2v5*)
  21211. ans=track_rtc
  21212. ;;
  21213. *-*-solaris2*)
  21214. ans=dosynctodr
  21215. ;;
  21216. *-*-sysv4*)
  21217. ans=doresettodr
  21218. ;;
  21219. *)
  21220. ans=_dosynctodr
  21221. ;;
  21222. esac
  21223. ac_cv_var_nlist_dosynctodr=$ans
  21224. fi
  21225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_dosynctodr" >&5
  21226. $as_echo "$ac_cv_var_nlist_dosynctodr" >&6; }
  21227. case "$ac_cv_var_nlist_dosynctodr" in
  21228. no) ;;
  21229. *)
  21230. cat >>confdefs.h <<_ACEOF
  21231. #define K_DOSYNCTODR_NAME "$ac_cv_var_nlist_dosynctodr"
  21232. _ACEOF
  21233. ;;
  21234. esac
  21235. #
  21236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking half-heartedly for 'noprintf' in the kernel" >&5
  21237. $as_echo_n "checking half-heartedly for 'noprintf' in the kernel... " >&6; }
  21238. if test "${ac_cv_var_nlist_noprintf+set}" = set; then :
  21239. $as_echo_n "(cached) " >&6
  21240. else
  21241. case "$host" in
  21242. *-apple-aux[23]*)
  21243. ans=no
  21244. ;;
  21245. *-sni-sysv*)
  21246. ans=noprintf
  21247. ;;
  21248. *-*-aix*)
  21249. ans=noprintf
  21250. ;;
  21251. *-*-hpux*)
  21252. ans=no
  21253. ;;
  21254. *-*-mpeix*)
  21255. ans=no
  21256. ;;
  21257. *-*-ptx*)
  21258. ans=noprintf
  21259. ;;
  21260. *-*-nextstep*)
  21261. ans=_noprintf
  21262. ;;
  21263. *-*-solaris2*)
  21264. ans=noprintf
  21265. ;;
  21266. *-*-sysv4*)
  21267. ans=noprintf
  21268. ;;
  21269. *)
  21270. ans=_noprintf
  21271. ;;
  21272. esac
  21273. ac_cv_var_nlist_noprintf=$ans
  21274. fi
  21275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_nlist_noprintf" >&5
  21276. $as_echo "$ac_cv_var_nlist_noprintf" >&6; }
  21277. case "$ac_cv_var_nlist_noprintf" in
  21278. no) ;;
  21279. *)
  21280. cat >>confdefs.h <<_ACEOF
  21281. #define K_NOPRINTF_NAME "$ac_cv_var_nlist_noprintf"
  21282. _ACEOF
  21283. ;;
  21284. esac
  21285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tick'" >&5
  21286. $as_echo_n "checking for a default value for 'tick'... " >&6; }
  21287. # target-dependent default for tick
  21288. case "$host" in
  21289. *-*-pc-cygwin*)
  21290. as_fn_error "tick needs work for cygwin" "$LINENO" 5
  21291. ;;
  21292. *-univel-sysv*)
  21293. ans=10000
  21294. ;;
  21295. *-*-irix*)
  21296. ans=10000
  21297. ;;
  21298. *-*-*linux*)
  21299. ans=txc.tick
  21300. ;;
  21301. *-*-mpeix*)
  21302. ans=no
  21303. ;;
  21304. *-*-winnt3.5)
  21305. ans='(every / 10)'
  21306. ;;
  21307. *-*-unicosmp*)
  21308. ans=10000
  21309. ;;
  21310. *)
  21311. ans='1000000L/hz'
  21312. ;;
  21313. esac
  21314. # Check whether --enable-tick was given.
  21315. if test "${enable_tick+set}" = set; then :
  21316. enableval=$enable_tick; ans=$enableval
  21317. fi
  21318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  21319. $as_echo "$ans" >&6; }
  21320. case "$ans" in
  21321. ''|no) ;; # HMS: I think we can only get 'no' here...
  21322. *)
  21323. cat >>confdefs.h <<_ACEOF
  21324. #define PRESET_TICK $ans
  21325. _ACEOF
  21326. ;;
  21327. esac
  21328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a default value for 'tickadj'" >&5
  21329. $as_echo_n "checking for a default value for 'tickadj'... " >&6; }
  21330. # target-specific default
  21331. ans='500/hz'
  21332. case "$host" in
  21333. *-fujitsu-uxp*)
  21334. case "$adjtime_is_accurate" in
  21335. yes)
  21336. ans='tick/16'
  21337. esac
  21338. ;;
  21339. XXX-*-pc-cygwin*)
  21340. ans=no
  21341. ;;
  21342. *-univel-sysv*)
  21343. ans=80
  21344. ;;
  21345. *-*-aix*)
  21346. case "$can_kmem" in
  21347. no)
  21348. ans=1000
  21349. esac
  21350. ;;
  21351. *-*-domainos) # Skippy: won't be found...
  21352. case "$can_kmem" in
  21353. no)
  21354. ans=668
  21355. esac
  21356. ;;
  21357. *-*-hpux*)
  21358. case "$adjtime_is_accurate" in
  21359. yes)
  21360. ans='tick/16'
  21361. esac
  21362. ;;
  21363. *-*-irix*)
  21364. ans=150
  21365. ;;
  21366. *-*-mpeix*)
  21367. ans=no
  21368. ;;
  21369. *-*-sco3.2v5.0*)
  21370. ans=10000L/hz
  21371. ;;
  21372. *-*-winnt3.5)
  21373. ans=50
  21374. ;;
  21375. *-*-unicosmp*)
  21376. ans=150
  21377. esac
  21378. # Check whether --enable-tickadj was given.
  21379. if test "${enable_tickadj+set}" = set; then :
  21380. enableval=$enable_tickadj; ans=$enableval
  21381. fi
  21382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  21383. $as_echo "$ans" >&6; }
  21384. default_tickadj=$ans
  21385. case "$default_tickadj" in
  21386. ''|no) ;; # HMS: I think we can only get 'no' here...
  21387. *)
  21388. cat >>confdefs.h <<_ACEOF
  21389. #define PRESET_TICKADJ $default_tickadj
  21390. _ACEOF
  21391. ;;
  21392. esac
  21393. # Newer versions of ReliantUNIX round adjtime() values down to
  21394. # 1/100s (system tick). Sigh ...
  21395. # Unfortunately, there is no easy way to know if particular release
  21396. # has this "feature" or any obvious way to test for it.
  21397. case "$host" in
  21398. mips-sni-sysv4*)
  21399. $as_echo "#define RELIANTUNIX_CLOCK 1" >>confdefs.h
  21400. ;;
  21401. esac
  21402. case "$host" in
  21403. *-*-sco3.2v5*)
  21404. $as_echo "#define SCO5_CLOCK 1" >>confdefs.h
  21405. ;;
  21406. esac
  21407. ac_cv_make_tickadj=yes
  21408. case "$can_kmem$ac_cv_var_tick$default_tickadj" in
  21409. nonono) # Don't read KMEM, no presets. Bogus.
  21410. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&5
  21411. $as_echo "$as_me: WARNING: Can't read kmem, no PRESET_TICK or PRESET_TICKADJ. No tickadj." >&2;}
  21412. ac_cv_make_tickadj=no
  21413. ;;
  21414. nono*) # Don't read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
  21415. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&5
  21416. $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICK. No tickadj." >&2;}
  21417. ac_cv_make_tickadj=no
  21418. ;;
  21419. no*no) # Don't read KMEM, PRESET_TICK but no PRESET_TICKADJ. Bogus.
  21420. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&5
  21421. $as_echo "$as_me: WARNING: Can't read kmem but no PRESET_TICKADJ. No tickadj." >&2;}
  21422. ac_cv_make_tickadj=no
  21423. ;;
  21424. no*) # Don't read KMEM, PRESET_TICK and PRESET_TICKADJ. Cool.
  21425. ;;
  21426. yesnono) # Read KMEM, no presets. Cool.
  21427. ;;
  21428. yesno*) # Read KMEM, no PRESET_TICK but PRESET_TICKADJ. Bogus.
  21429. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&5
  21430. $as_echo "$as_me: WARNING: PRESET_TICKADJ is defined but not PRESET_TICK. Please report this." >&2;}
  21431. ;;
  21432. yes*no) # Read KMEM, PRESET_TICK but no PRESET_TICKADJ. Cool.
  21433. ;;
  21434. yes*) # READ KMEM, PRESET_TICK and PRESET_TICKADJ.
  21435. ;;
  21436. *) # Generally bogus.
  21437. as_fn_error "This shouldn't happen." "$LINENO" 5
  21438. ;;
  21439. esac
  21440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the ntptime utility" >&5
  21441. $as_echo_n "checking if we want and can make the ntptime utility... " >&6; }
  21442. if test "${ac_cv_make_ntptime+set}" = set; then :
  21443. $as_echo_n "(cached) " >&6
  21444. else
  21445. case "$host" in
  21446. *) case "$ac_cv_struct_ntptimeval$ac_cv_var_kernel_pll" in
  21447. yesyes)
  21448. ans=yes
  21449. ;;
  21450. *)
  21451. ans=no
  21452. ;;
  21453. esac
  21454. ;;
  21455. esac
  21456. ac_cv_make_ntptime=$ans
  21457. fi
  21458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_ntptime" >&5
  21459. $as_echo "$ac_cv_make_ntptime" >&6; }
  21460. case "$ac_cv_make_ntptime" in
  21461. yes)
  21462. MAKE_NTPTIME=ntptime
  21463. ;;
  21464. esac
  21465. case "$host" in
  21466. mips-sni-sysv4*)
  21467. # tickadj is pretty useless on newer versions of ReliantUNIX
  21468. # Do not bother
  21469. ac_cv_make_tickadj=no
  21470. ;;
  21471. *-*-irix*)
  21472. ac_cv_make_tickadj=no
  21473. ;;
  21474. *-*-solaris2*)
  21475. # DLM says tickadj is a no-no starting with solaris2.5
  21476. case "$host" in
  21477. *-*-solaris2.1[0-9]*)
  21478. ac_cv_make_tickadj=no
  21479. ;;
  21480. *-*-solaris2.[0-4]*) ;;
  21481. *) ac_cv_make_tickadj=no ;;
  21482. esac
  21483. ;;
  21484. *-*-unicosmp*)
  21485. ac_cv_make_tickadj=no
  21486. ;;
  21487. esac
  21488. #
  21489. # Despite all the above, we always make tickadj. Setting
  21490. # ac_cv_make_tickadj before AC_CACHE_CHECK will cause a false
  21491. # report that the configuration variable was cached. It may
  21492. # be better to simply remove the hunk above, I did not want
  21493. # to remove it if there is hope it will be used again.
  21494. #
  21495. unset ac_cv_make_tickadj
  21496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the tickadj utility" >&5
  21497. $as_echo_n "checking if we want and can make the tickadj utility... " >&6; }
  21498. if test "${ac_cv_make_tickadj+set}" = set; then :
  21499. $as_echo_n "(cached) " >&6
  21500. else
  21501. ac_cv_make_tickadj=yes
  21502. fi
  21503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_tickadj" >&5
  21504. $as_echo "$ac_cv_make_tickadj" >&6; }
  21505. case "$ac_cv_make_tickadj" in
  21506. yes)
  21507. MAKE_TICKADJ=tickadj
  21508. ;;
  21509. esac
  21510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want and can make the timetrim utility" >&5
  21511. $as_echo_n "checking if we want and can make the timetrim utility... " >&6; }
  21512. if test "${ac_cv_make_timetrim+set}" = set; then :
  21513. $as_echo_n "(cached) " >&6
  21514. else
  21515. case "$host" in
  21516. *-*-irix*)
  21517. ac_cv_make_timetrim=yes
  21518. ;;
  21519. *-*-unicosmp*)
  21520. ac_cv_make_timetrim=yes
  21521. ;;
  21522. *)
  21523. ac_cv_make_timetrim=no
  21524. ;;
  21525. esac
  21526. fi
  21527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_make_timetrim" >&5
  21528. $as_echo "$ac_cv_make_timetrim" >&6; }
  21529. case "$ac_cv_make_timetrim" in
  21530. yes)
  21531. MAKE_TIMETRIM=timetrim
  21532. ;;
  21533. esac
  21534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want to build the NTPD simulator" >&5
  21535. $as_echo_n "checking if we want to build the NTPD simulator... " >&6; }
  21536. # Check whether --enable-simulator was given.
  21537. if test "${enable_simulator+set}" = set; then :
  21538. enableval=$enable_simulator; ans=$enableval
  21539. else
  21540. ans=no
  21541. fi
  21542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  21543. $as_echo "$ans" >&6; }
  21544. case "$ans" in
  21545. yes)
  21546. MAKE_NTPDSIM=ntpdsim
  21547. MAKE_LIBNTPSIM=libntpsim.a
  21548. ;;
  21549. esac
  21550. case "$build" in
  21551. $host)
  21552. ;;
  21553. *) case "$host" in
  21554. *-*-vxworks*)
  21555. LDFLAGS="$LDFLAGS -r"
  21556. ;;
  21557. esac
  21558. ;;
  21559. esac
  21560. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should always slew the time" >&5
  21561. $as_echo_n "checking if we should always slew the time... " >&6; }
  21562. # target-specific defaults
  21563. case "$host" in
  21564. *-apple-aux[23]*)
  21565. ans=yes
  21566. ;;
  21567. *-*-bsdi[012]*)
  21568. ans=no
  21569. ;;
  21570. *-*-bsdi*)
  21571. ans=yes
  21572. ;;
  21573. *-*-openvms*) # HMS: won't be found
  21574. ans=yes
  21575. ;;
  21576. *) ans=no
  21577. ;;
  21578. esac
  21579. # --enable-slew-always / --disable-slew-always overrides default
  21580. # Check whether --enable-slew-always was given.
  21581. if test "${enable_slew_always+set}" = set; then :
  21582. enableval=$enable_slew_always; ans=$enableval
  21583. fi
  21584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  21585. $as_echo "$ans" >&6; }
  21586. case "$ans" in
  21587. yes)
  21588. $as_echo "#define SLEWALWAYS 1" >>confdefs.h
  21589. ;;
  21590. esac
  21591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should step and slew the time" >&5
  21592. $as_echo_n "checking if we should step and slew the time... " >&6; }
  21593. case "$host" in
  21594. *-sni-sysv*)
  21595. ans=yes
  21596. ;;
  21597. *-univel-sysv*)
  21598. ans=no
  21599. ;;
  21600. *-*-ptx*)
  21601. ans=yes
  21602. ;;
  21603. *-*-solaris2.1[0-9]*)
  21604. ans=no
  21605. ;;
  21606. *-*-solaris2.[012]*)
  21607. ans=yes
  21608. ;;
  21609. *-*-sysv4*) # HMS: Does this catch Fujitsu UXP?
  21610. ans=yes
  21611. ;;
  21612. *) ans=no
  21613. ;;
  21614. esac
  21615. # Check whether --enable-step-slew was given.
  21616. if test "${enable_step_slew+set}" = set; then :
  21617. enableval=$enable_step_slew; ans=$enableval
  21618. fi
  21619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  21620. $as_echo "$ans" >&6; }
  21621. case "$ans" in
  21622. yes)
  21623. $as_echo "#define STEP_SLEW 1" >>confdefs.h
  21624. ;;
  21625. esac
  21626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ntpdate should step the time" >&5
  21627. $as_echo_n "checking if ntpdate should step the time... " >&6; }
  21628. case "$host" in
  21629. *-apple-aux[23]*)
  21630. ans=yes
  21631. ;;
  21632. *) ans=no
  21633. esac
  21634. # Check whether --enable-ntpdate-step was given.
  21635. if test "${enable_ntpdate_step+set}" = set; then :
  21636. enableval=$enable_ntpdate_step; ans=$enableval
  21637. fi
  21638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  21639. $as_echo "$ans" >&6; }
  21640. case "$ans" in
  21641. yes)
  21642. $as_echo "#define FORCE_NTPDATE_STEP 1" >>confdefs.h
  21643. ;;
  21644. esac
  21645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should sync TODR clock every hour" >&5
  21646. $as_echo_n "checking if we should sync TODR clock every hour... " >&6; }
  21647. case "$host" in
  21648. *-*-nextstep*)
  21649. ans=yes
  21650. ;;
  21651. *-*-openvms*) # HMS: won't be found
  21652. ans=yes
  21653. ;;
  21654. *)
  21655. ans=no
  21656. esac
  21657. # Check whether --enable-hourly-todr-sync was given.
  21658. if test "${enable_hourly_todr_sync+set}" = set; then :
  21659. enableval=$enable_hourly_todr_sync; ans=$enableval
  21660. fi
  21661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  21662. $as_echo "$ans" >&6; }
  21663. case "$ac_cv_var_sync_todr" in
  21664. yes)
  21665. $as_echo "#define DOSYNCTODR 1" >>confdefs.h
  21666. ;;
  21667. esac
  21668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should avoid kernel FLL bug" >&5
  21669. $as_echo_n "checking if we should avoid kernel FLL bug... " >&6; }
  21670. case "$host" in
  21671. *-*-solaris2.6)
  21672. unamev=`uname -v`
  21673. case "$unamev" in
  21674. Generic_105181-*)
  21675. old_IFS="$IFS"
  21676. IFS="-"
  21677. set $unamev
  21678. IFS="$old_IFS"
  21679. if test "$2" -ge 17
  21680. then
  21681. # Generic_105181-17 and higher
  21682. ans=no
  21683. else
  21684. ans=yes
  21685. fi
  21686. ;;
  21687. *)
  21688. ans=yes
  21689. esac
  21690. ;;
  21691. *-*-solaris2.7)
  21692. unamev=`uname -v`
  21693. case "$unamev" in
  21694. Generic_106541-*)
  21695. old_IFS="$IFS"
  21696. IFS="-"
  21697. set $unamev
  21698. IFS="$old_IFS"
  21699. if test "$2" -ge 07
  21700. then
  21701. # Generic_106541-07 and higher
  21702. ans=no
  21703. else
  21704. ans=yes
  21705. fi
  21706. ;;
  21707. *)
  21708. ans=yes
  21709. esac
  21710. ;;
  21711. *)
  21712. ans=no
  21713. esac
  21714. # Check whether --enable-kernel-fll-bug was given.
  21715. if test "${enable_kernel_fll_bug+set}" = set; then :
  21716. enableval=$enable_kernel_fll_bug; ans=$enableval
  21717. fi
  21718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  21719. $as_echo "$ans" >&6; }
  21720. case "$ans" in
  21721. yes)
  21722. $as_echo "#define KERNEL_FLL_BUG 1" >>confdefs.h
  21723. ;;
  21724. esac
  21725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use the IRIG sawtooth filter" >&5
  21726. $as_echo_n "checking if we should use the IRIG sawtooth filter... " >&6; }
  21727. case "$host" in
  21728. *-*-solaris2.[89])
  21729. ans=yes
  21730. ;;
  21731. *-*-solaris2.1[0-9]*)
  21732. ans=yes
  21733. ;;
  21734. *) ans=no
  21735. esac
  21736. # Check whether --enable-irig-sawtooth was given.
  21737. if test "${enable_irig_sawtooth+set}" = set; then :
  21738. enableval=$enable_irig_sawtooth; ans=$enableval
  21739. fi
  21740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  21741. $as_echo "$ans" >&6; }
  21742. case "$ans" in
  21743. yes)
  21744. $as_echo "#define IRIG_SUCKS 1" >>confdefs.h
  21745. ;;
  21746. esac
  21747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should enable NIST lockclock scheme" >&5
  21748. $as_echo_n "checking if we should enable NIST lockclock scheme... " >&6; }
  21749. # Check whether --enable-nist was given.
  21750. if test "${enable_nist+set}" = set; then :
  21751. enableval=$enable_nist; ans=$enableval
  21752. else
  21753. ans=no
  21754. fi
  21755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  21756. $as_echo "$ans" >&6; }
  21757. case "$ans" in
  21758. yes)
  21759. $as_echo "#define LOCKCLOCK 1" >>confdefs.h
  21760. ;;
  21761. esac
  21762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want support for Samba's signing daemon" >&5
  21763. $as_echo_n "checking if we want support for Samba's signing daemon... " >&6; }
  21764. # Check whether --enable-ntp-signd was given.
  21765. if test "${enable_ntp_signd+set}" = set; then :
  21766. enableval=$enable_ntp_signd; ans=$enableval
  21767. else
  21768. ans=no
  21769. fi
  21770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  21771. $as_echo "$ans" >&6; }
  21772. case "$ans" in
  21773. no)
  21774. ntp_signd_path=
  21775. ;;
  21776. yes)
  21777. ntp_signd_path=/var/run/ntp_signd
  21778. ;;
  21779. *)
  21780. ntp_signd_path="$ans"
  21781. esac
  21782. case "$ntp_signd_path" in
  21783. '')
  21784. wintime_default=no
  21785. ;;
  21786. *)
  21787. wintime_default=yes
  21788. $as_echo "#define HAVE_NTP_SIGND /**/" >>confdefs.h
  21789. cat >>confdefs.h <<_ACEOF
  21790. #define NTP_SIGND_PATH "$ntp_signd_path"
  21791. _ACEOF
  21792. esac
  21793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want the windows symmetric client hack" >&5
  21794. $as_echo_n "checking if we want the windows symmetric client hack... " >&6; }
  21795. # default is no, unless --enable-ntp-signd was given
  21796. ans=$wintime_default
  21797. unset wintime_default
  21798. # Check whether --enable-wintime was given.
  21799. if test "${enable_wintime+set}" = set; then :
  21800. enableval=$enable_wintime; ans=$enableval
  21801. fi
  21802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
  21803. $as_echo "$ans" >&6; }
  21804. case "$ans" in
  21805. yes)
  21806. $as_echo "#define WINTIME /**/" >>confdefs.h
  21807. esac
  21808. for ac_header in sys/clockctl.h
  21809. do :
  21810. ac_fn_c_check_header_mongrel "$LINENO" "sys/clockctl.h" "ac_cv_header_sys_clockctl_h" "$ac_includes_default"
  21811. if test "x$ac_cv_header_sys_clockctl_h" = x""yes; then :
  21812. cat >>confdefs.h <<_ACEOF
  21813. #define HAVE_SYS_CLOCKCTL_H 1
  21814. _ACEOF
  21815. fi
  21816. done
  21817. case "$host" in
  21818. *-*-netbsd*)
  21819. ans=yes
  21820. ;;
  21821. *) ans=no
  21822. ;;
  21823. esac
  21824. # Check whether --enable-clockctl was given.
  21825. if test "${enable_clockctl+set}" = set; then :
  21826. enableval=$enable_clockctl; ntp_use_dev_clockctl=$enableval
  21827. else
  21828. ntp_use_dev_clockctl=$ac_cv_header_sys_clockctl_h
  21829. fi
  21830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should use /dev/clockctl" >&5
  21831. $as_echo_n "checking if we should use /dev/clockctl... " >&6; }
  21832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_use_dev_clockctl" >&5
  21833. $as_echo "$ntp_use_dev_clockctl" >&6; }
  21834. for ac_header in sys/capability.h
  21835. do :
  21836. ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
  21837. if test "x$ac_cv_header_sys_capability_h" = x""yes; then :
  21838. cat >>confdefs.h <<_ACEOF
  21839. #define HAVE_SYS_CAPABILITY_H 1
  21840. _ACEOF
  21841. fi
  21842. done
  21843. for ac_header in sys/prctl.h
  21844. do :
  21845. ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
  21846. if test "x$ac_cv_header_sys_prctl_h" = x""yes; then :
  21847. cat >>confdefs.h <<_ACEOF
  21848. #define HAVE_SYS_PRCTL_H 1
  21849. _ACEOF
  21850. fi
  21851. done
  21852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have linux capabilities (libcap)" >&5
  21853. $as_echo_n "checking if we have linux capabilities (libcap)... " >&6; }
  21854. case "$ac_cv_header_sys_capability_h$ac_cv_header_sys_prctl_h" in
  21855. yesyes)
  21856. ntp_have_linuxcaps=yes
  21857. ;;
  21858. *)
  21859. ntp_have_linuxcaps=no
  21860. esac
  21861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ntp_have_linuxcaps" >&5
  21862. $as_echo "$ntp_have_linuxcaps" >&6; }
  21863. # Check whether --enable-linuxcaps was given.
  21864. if test "${enable_linuxcaps+set}" = set; then :
  21865. enableval=$enable_linuxcaps; ntp_have_linuxcaps=$enableval
  21866. fi
  21867. case "$ntp_have_linuxcaps" in
  21868. yes)
  21869. $as_echo "#define HAVE_LINUX_CAPABILITIES /**/" >>confdefs.h
  21870. LIBS="$LIBS -lcap"
  21871. esac
  21872. case "$ntp_use_dev_clockctl$ntp_have_linuxcaps" in
  21873. *yes*)
  21874. $as_echo "#define HAVE_DROPROOT /**/" >>confdefs.h
  21875. esac
  21876. for ac_header in libscf.h
  21877. do :
  21878. ac_fn_c_check_header_mongrel "$LINENO" "libscf.h" "ac_cv_header_libscf_h" "$ac_includes_default"
  21879. if test "x$ac_cv_header_libscf_h" = x""yes; then :
  21880. cat >>confdefs.h <<_ACEOF
  21881. #define HAVE_LIBSCF_H 1
  21882. _ACEOF
  21883. fi
  21884. done
  21885. case "$ac_cv_header_libscf_h" in
  21886. yes)
  21887. LSCF=-lscf
  21888. esac
  21889. ac_fn_c_check_func "$LINENO" "setppriv" "ac_cv_func_setppriv"
  21890. if test "x$ac_cv_func_setppriv" = x""yes; then :
  21891. $as_echo "#define HAVE_SOLARIS_PRIVS /**/" >>confdefs.h
  21892. fi
  21893. #
  21894. # ISC stuff
  21895. #
  21896. if test $ac_cv_struct_sockaddr_has_sa_len = yes; then
  21897. $as_echo "#define ISC_PLATFORM_HAVESALEN /**/" >>confdefs.h
  21898. fi
  21899. # Check whether --enable-ipv6 was given.
  21900. if test "${enable_ipv6+set}" = set; then :
  21901. enableval=$enable_ipv6;
  21902. fi
  21903. case "$enable_ipv6" in
  21904. yes|''|autodetect)
  21905. case "$host" in
  21906. powerpc-ibm-aix4*) ;;
  21907. *)
  21908. $as_echo "#define WANT_IPV6 /**/" >>confdefs.h
  21909. ;;
  21910. esac
  21911. ;;
  21912. no)
  21913. ;;
  21914. esac
  21915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6 structures" >&5
  21916. $as_echo_n "checking for IPv6 structures... " >&6; }
  21917. if test "${ac_cv_isc_found_ipv6+set}" = set; then :
  21918. $as_echo_n "(cached) " >&6
  21919. else
  21920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  21921. /* end confdefs.h. */
  21922. #include <sys/types.h>
  21923. #include <sys/socket.h>
  21924. #include <netinet/in.h>
  21925. int
  21926. main ()
  21927. {
  21928. struct sockaddr_in6 sin6;
  21929. ;
  21930. return 0;
  21931. }
  21932. _ACEOF
  21933. if ac_fn_c_try_compile "$LINENO"; then :
  21934. ac_cv_isc_found_ipv6=yes
  21935. else
  21936. ac_cv_isc_found_ipv6=no
  21937. fi
  21938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  21939. fi
  21940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_found_ipv6" >&5
  21941. $as_echo "$ac_cv_isc_found_ipv6" >&6; }
  21942. #
  21943. # See whether IPv6 support is provided via a Kame add-on.
  21944. # This is done before other IPv6 linking tests so LIBS is properly set.
  21945. #
  21946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kame IPv6 support" >&5
  21947. $as_echo_n "checking for Kame IPv6 support... " >&6; }
  21948. # Check whether --with-kame was given.
  21949. if test "${with_kame+set}" = set; then :
  21950. withval=$with_kame; use_kame="$withval"
  21951. else
  21952. use_kame="no"
  21953. fi
  21954. case "$use_kame" in
  21955. no)
  21956. ;;
  21957. yes)
  21958. kame_path=/usr/local/v6
  21959. ;;
  21960. *)
  21961. kame_path="$use_kame"
  21962. ;;
  21963. esac
  21964. case "$use_kame" in
  21965. no)
  21966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21967. $as_echo "no" >&6; }
  21968. ;;
  21969. *)
  21970. if test -f $kame_path/lib/libinet6.a; then
  21971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kame_path/lib/libinet6.a" >&5
  21972. $as_echo "$kame_path/lib/libinet6.a" >&6; }
  21973. LIBS="-L$kame_path/lib -linet6 $LIBS"
  21974. else
  21975. as_fn_error "$kame_path/lib/libinet6.a not found.
  21976. Please choose the proper path with the following command:
  21977. configure --with-kame=PATH
  21978. " "$LINENO" 5
  21979. fi
  21980. ;;
  21981. esac
  21982. #
  21983. # Whether netinet6/in6.h is needed has to be defined in isc/platform.h.
  21984. # Including it on Kame-using platforms is very bad, though, because
  21985. # Kame uses #error against direct inclusion. So include it on only
  21986. # the platform that is otherwise broken without it -- BSD/OS 4.0 through 4.1.
  21987. # This is done before the in6_pktinfo check because that's what
  21988. # netinet6/in6.h is needed for.
  21989. #
  21990. case "$host" in
  21991. *-bsdi4.[01]*)
  21992. $as_echo "#define ISC_PLATFORM_NEEDNETINET6IN6H 1" >>confdefs.h
  21993. isc_netinet6in6_hack="#include <netinet6/in6.h>"
  21994. ;;
  21995. *)
  21996. isc_netinet6in6_hack=""
  21997. esac
  21998. #
  21999. # This is similar to the netinet6/in6.h issue.
  22000. #
  22001. case "$host" in
  22002. *-sco-sysv*uw*|*-*-sysv*UnixWare*|*-*-sysv*OpenUNIX*)
  22003. $as_echo "#define ISC_PLATFORM_FIXIN6ISADDR 1" >>confdefs.h
  22004. isc_netinetin6_hack="#include <netinet/in6.h>"
  22005. ;;
  22006. *)
  22007. isc_netinetin6_hack=""
  22008. esac
  22009. case "$ac_cv_isc_found_ipv6" in
  22010. yes)
  22011. $as_echo "#define ISC_PLATFORM_HAVEIPV6 /**/" >>confdefs.h
  22012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6_pktinfo" >&5
  22013. $as_echo_n "checking for in6_pktinfo... " >&6; }
  22014. if test "${ac_cv_have_in6_pktinfo+set}" = set; then :
  22015. $as_echo_n "(cached) " >&6
  22016. else
  22017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22018. /* end confdefs.h. */
  22019. #include <sys/types.h>
  22020. #include <sys/socket.h>
  22021. #include <netinet/in.h>
  22022. $isc_netinetin6_hack
  22023. $isc_netinet6in6_hack
  22024. int
  22025. main ()
  22026. {
  22027. struct in6_pktinfo xyzzy;
  22028. ;
  22029. return 0;
  22030. }
  22031. _ACEOF
  22032. if ac_fn_c_try_compile "$LINENO"; then :
  22033. ac_cv_have_in6_pktinfo=yes
  22034. else
  22035. ac_cv_have_in6_pktinfo=no
  22036. fi
  22037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22038. fi
  22039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_in6_pktinfo" >&5
  22040. $as_echo "$ac_cv_have_in6_pktinfo" >&6; }
  22041. case "$ac_cv_have_in6_pktinfo" in
  22042. yes)
  22043. $as_echo "#define ISC_PLATFORM_HAVEIN6PKTINFO /**/" >>confdefs.h
  22044. esac
  22045. # HMS: Use HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID instead?
  22046. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6.sin6_scope_id" >&5
  22047. $as_echo_n "checking for sockaddr_in6.sin6_scope_id... " >&6; }
  22048. if test "${ac_cv_have_sin6_scope_id+set}" = set; then :
  22049. $as_echo_n "(cached) " >&6
  22050. else
  22051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22052. /* end confdefs.h. */
  22053. #include <sys/types.h>
  22054. #include <sys/socket.h>
  22055. #include <netinet/in.h>
  22056. $isc_netinetin6_hack
  22057. $isc_netinet6in6_hack
  22058. int
  22059. main ()
  22060. {
  22061. struct sockaddr_in6 xyzzy;
  22062. xyzzy.sin6_scope_id = 0;
  22063. ;
  22064. return 0;
  22065. }
  22066. _ACEOF
  22067. if ac_fn_c_try_compile "$LINENO"; then :
  22068. ac_cv_have_sin6_scope_id=yes
  22069. else
  22070. ac_cv_have_sin6_scope_id=no
  22071. fi
  22072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22073. fi
  22074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_sin6_scope_id" >&5
  22075. $as_echo "$ac_cv_have_sin6_scope_id" >&6; }
  22076. case "$ac_cv_have_sin6_scope_id" in
  22077. yes)
  22078. $as_echo "#define ISC_PLATFORM_HAVESCOPEID /**/" >>confdefs.h
  22079. esac
  22080. esac
  22081. # We need this check run even without ac_cv_isc_found_ipv6=yes
  22082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in6addr_any" >&5
  22083. $as_echo_n "checking for in6addr_any... " >&6; }
  22084. if test "${ac_cv_have_in6addr_any+set}" = set; then :
  22085. $as_echo_n "(cached) " >&6
  22086. else
  22087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22088. /* end confdefs.h. */
  22089. #include <sys/types.h>
  22090. #include <sys/socket.h>
  22091. #include <netinet/in.h>
  22092. $isc_netinetin6_hack
  22093. $isc_netinet6in6_hack
  22094. int
  22095. main ()
  22096. {
  22097. struct in6_addr in6;
  22098. in6 = in6addr_any;
  22099. ;
  22100. return 0;
  22101. }
  22102. _ACEOF
  22103. if ac_fn_c_try_compile "$LINENO"; then :
  22104. ac_cv_have_in6addr_any=yes
  22105. else
  22106. ac_cv_have_in6addr_any=no
  22107. fi
  22108. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22109. fi
  22110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_in6addr_any" >&5
  22111. $as_echo "$ac_cv_have_in6addr_any" >&6; }
  22112. case "$ac_cv_have_in6addr_any" in
  22113. no)
  22114. $as_echo "#define ISC_PLATFORM_NEEDIN6ADDRANY /**/" >>confdefs.h
  22115. esac
  22116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrconf" >&5
  22117. $as_echo_n "checking for struct if_laddrconf... " >&6; }
  22118. if test "${ac_cv_isc_struct_if_laddrconf+set}" = set; then :
  22119. $as_echo_n "(cached) " >&6
  22120. else
  22121. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22122. /* end confdefs.h. */
  22123. #include <sys/types.h>
  22124. #include <net/if6.h>
  22125. int
  22126. main ()
  22127. {
  22128. struct if_laddrconf a;
  22129. ;
  22130. return 0;
  22131. }
  22132. _ACEOF
  22133. if ac_fn_c_try_compile "$LINENO"; then :
  22134. ac_cv_isc_struct_if_laddrconf=yes
  22135. else
  22136. ac_cv_isc_struct_if_laddrconf=no
  22137. fi
  22138. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22139. fi
  22140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_struct_if_laddrconf" >&5
  22141. $as_echo "$ac_cv_isc_struct_if_laddrconf" >&6; }
  22142. case "$ac_cv_isc_struct_if_laddrconf" in
  22143. yes)
  22144. $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRCONF /**/" >>confdefs.h
  22145. esac
  22146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct if_laddrreq" >&5
  22147. $as_echo_n "checking for struct if_laddrreq... " >&6; }
  22148. if test "${ac_cv_isc_struct_if_laddrreq+set}" = set; then :
  22149. $as_echo_n "(cached) " >&6
  22150. else
  22151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22152. /* end confdefs.h. */
  22153. #include <sys/types.h>
  22154. #include <net/if6.h>
  22155. int
  22156. main ()
  22157. {
  22158. struct if_laddrreq a;
  22159. ;
  22160. return 0;
  22161. }
  22162. _ACEOF
  22163. if ac_fn_c_try_compile "$LINENO"; then :
  22164. ac_cv_isc_struct_if_laddrreq=yes
  22165. else
  22166. ac_cv_isc_struct_if_laddrreq=no
  22167. fi
  22168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  22169. fi
  22170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_isc_struct_if_laddrreq" >&5
  22171. $as_echo "$ac_cv_isc_struct_if_laddrreq" >&6; }
  22172. case "$ac_cv_isc_struct_if_laddrreq" in
  22173. yes)
  22174. $as_echo "#define ISC_PLATFORM_HAVEIF_LADDRREQ /**/" >>confdefs.h
  22175. esac
  22176. #
  22177. # Look for a sysctl call to get the list of network interfaces.
  22178. #
  22179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for interface list sysctl" >&5
  22180. $as_echo_n "checking for interface list sysctl... " >&6; }
  22181. if test "${ac_cv_iflist_sysctl+set}" = set; then :
  22182. $as_echo_n "(cached) " >&6
  22183. else
  22184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22185. /* end confdefs.h. */
  22186. #include <sys/param.h>
  22187. #include <sys/sysctl.h>
  22188. #include <sys/socket.h>
  22189. #ifdef NET_RT_IFLIST
  22190. found_rt_iflist
  22191. #endif
  22192. _ACEOF
  22193. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  22194. $EGREP "found_rt_iflist" >/dev/null 2>&1; then :
  22195. ac_cv_iflist_sysctl=yes
  22196. else
  22197. ac_cv_iflist_sysctl=no
  22198. fi
  22199. rm -f conftest*
  22200. fi
  22201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_iflist_sysctl" >&5
  22202. $as_echo "$ac_cv_iflist_sysctl" >&6; }
  22203. case "$ac_cv_iflist_sysctl" in
  22204. yes)
  22205. $as_echo "#define HAVE_IFLIST_SYSCTL 1" >>confdefs.h
  22206. esac
  22207. ###
  22208. ac_expanded=`(
  22209. test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  22210. test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
  22211. eval echo \""$sysconfdir"\"
  22212. )`
  22213. cat >>confdefs.h <<_ACEOF
  22214. #define NTP_KEYSDIR "$ac_expanded"
  22215. _ACEOF
  22216. ac_config_files="$ac_config_files Makefile"
  22217. ac_config_files="$ac_config_files ElectricFence/Makefile"
  22218. ac_config_files="$ac_config_files adjtimed/Makefile"
  22219. ac_config_files="$ac_config_files clockstuff/Makefile"
  22220. ac_config_files="$ac_config_files include/Makefile"
  22221. ac_config_files="$ac_config_files include/isc/Makefile"
  22222. ac_config_files="$ac_config_files kernel/Makefile"
  22223. ac_config_files="$ac_config_files kernel/sys/Makefile"
  22224. ac_config_files="$ac_config_files libntp/Makefile"
  22225. ac_config_files="$ac_config_files libparse/Makefile"
  22226. ac_config_files="$ac_config_files ntpd/Makefile"
  22227. ac_config_files="$ac_config_files ntpdate/Makefile"
  22228. ac_config_files="$ac_config_files ntpdc/Makefile"
  22229. ac_config_files="$ac_config_files ntpdc/nl.pl"
  22230. ac_config_files="$ac_config_files ntpq/Makefile"
  22231. ac_config_files="$ac_config_files parseutil/Makefile"
  22232. ac_config_files="$ac_config_files scripts/Makefile"
  22233. ac_config_files="$ac_config_files scripts/calc_tickadj"
  22234. ac_config_files="$ac_config_files scripts/checktime"
  22235. ac_config_files="$ac_config_files scripts/freq_adj"
  22236. ac_config_files="$ac_config_files scripts/html2man"
  22237. ac_config_files="$ac_config_files scripts/mkver"
  22238. ac_config_files="$ac_config_files scripts/ntp-wait"
  22239. ac_config_files="$ac_config_files scripts/ntpsweep"
  22240. ac_config_files="$ac_config_files scripts/ntptrace"
  22241. ac_config_files="$ac_config_files scripts/ntpver"
  22242. ac_config_files="$ac_config_files scripts/plot_summary"
  22243. ac_config_files="$ac_config_files scripts/summary"
  22244. ac_config_files="$ac_config_files util/Makefile"
  22245. subdirs="$subdirs sntp"
  22246. cat >confcache <<\_ACEOF
  22247. # This file is a shell script that caches the results of configure
  22248. # tests run on this system so they can be shared between configure
  22249. # scripts and configure runs, see configure's option --config-cache.
  22250. # It is not useful on other systems. If it contains results you don't
  22251. # want to keep, you may remove or edit it.
  22252. #
  22253. # config.status only pays attention to the cache file if you give it
  22254. # the --recheck option to rerun configure.
  22255. #
  22256. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  22257. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  22258. # following values.
  22259. _ACEOF
  22260. # The following way of writing the cache mishandles newlines in values,
  22261. # but we know of no workaround that is simple, portable, and efficient.
  22262. # So, we kill variables containing newlines.
  22263. # Ultrix sh set writes to stderr and can't be redirected directly,
  22264. # and sets the high bit in the cache file unless we assign to the vars.
  22265. (
  22266. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  22267. eval ac_val=\$$ac_var
  22268. case $ac_val in #(
  22269. *${as_nl}*)
  22270. case $ac_var in #(
  22271. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  22272. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  22273. esac
  22274. case $ac_var in #(
  22275. _ | IFS | as_nl) ;; #(
  22276. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  22277. *) { eval $ac_var=; unset $ac_var;} ;;
  22278. esac ;;
  22279. esac
  22280. done
  22281. (set) 2>&1 |
  22282. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  22283. *${as_nl}ac_space=\ *)
  22284. # `set' does not quote correctly, so add quotes: double-quote
  22285. # substitution turns \\\\ into \\, and sed turns \\ into \.
  22286. sed -n \
  22287. "s/'/'\\\\''/g;
  22288. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  22289. ;; #(
  22290. *)
  22291. # `set' quotes correctly as required by POSIX, so do not add quotes.
  22292. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  22293. ;;
  22294. esac |
  22295. sort
  22296. ) |
  22297. sed '
  22298. /^ac_cv_env_/b end
  22299. t clear
  22300. :clear
  22301. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  22302. t end
  22303. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  22304. :end' >>confcache
  22305. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  22306. if test -w "$cache_file"; then
  22307. test "x$cache_file" != "x/dev/null" &&
  22308. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  22309. $as_echo "$as_me: updating cache $cache_file" >&6;}
  22310. cat confcache >$cache_file
  22311. else
  22312. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  22313. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  22314. fi
  22315. fi
  22316. rm -f confcache
  22317. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  22318. # Let make expand exec_prefix.
  22319. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  22320. DEFS=-DHAVE_CONFIG_H
  22321. ac_libobjs=
  22322. ac_ltlibobjs=
  22323. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  22324. # 1. Remove the extension, and $U if already installed.
  22325. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  22326. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  22327. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  22328. # will be set to the directory where LIBOBJS objects are built.
  22329. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  22330. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  22331. done
  22332. LIBOBJS=$ac_libobjs
  22333. LTLIBOBJS=$ac_ltlibobjs
  22334. if test -n "$EXEEXT"; then
  22335. am__EXEEXT_TRUE=
  22336. am__EXEEXT_FALSE='#'
  22337. else
  22338. am__EXEEXT_TRUE='#'
  22339. am__EXEEXT_FALSE=
  22340. fi
  22341. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  22342. as_fn_error "conditional \"AMDEP\" was never defined.
  22343. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22344. fi
  22345. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  22346. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  22347. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22348. fi
  22349. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  22350. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  22351. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22352. fi
  22353. if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  22354. as_fn_error "conditional \"INSTALL_LIBOPTS\" was never defined.
  22355. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22356. fi
  22357. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  22358. as_fn_error "conditional \"NEED_LIBOPTS\" was never defined.
  22359. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  22360. fi
  22361. : ${CONFIG_STATUS=./config.status}
  22362. ac_write_fail=0
  22363. ac_clean_files_save=$ac_clean_files
  22364. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  22365. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  22366. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  22367. as_write_fail=0
  22368. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  22369. #! $SHELL
  22370. # Generated by $as_me.
  22371. # Run this file to recreate the current configuration.
  22372. # Compiler output produced by configure, useful for debugging
  22373. # configure, is in config.log if it exists.
  22374. debug=false
  22375. ac_cs_recheck=false
  22376. ac_cs_silent=false
  22377. SHELL=\${CONFIG_SHELL-$SHELL}
  22378. export SHELL
  22379. _ASEOF
  22380. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  22381. ## -------------------- ##
  22382. ## M4sh Initialization. ##
  22383. ## -------------------- ##
  22384. # Be more Bourne compatible
  22385. DUALCASE=1; export DUALCASE # for MKS sh
  22386. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  22387. emulate sh
  22388. NULLCMD=:
  22389. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22390. # is contrary to our usage. Disable this feature.
  22391. alias -g '${1+"$@"}'='"$@"'
  22392. setopt NO_GLOB_SUBST
  22393. else
  22394. case `(set -o) 2>/dev/null` in #(
  22395. *posix*) :
  22396. set -o posix ;; #(
  22397. *) :
  22398. ;;
  22399. esac
  22400. fi
  22401. as_nl='
  22402. '
  22403. export as_nl
  22404. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  22405. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  22406. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  22407. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  22408. # Prefer a ksh shell builtin over an external printf program on Solaris,
  22409. # but without wasting forks for bash or zsh.
  22410. if test -z "$BASH_VERSION$ZSH_VERSION" \
  22411. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  22412. as_echo='print -r --'
  22413. as_echo_n='print -rn --'
  22414. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  22415. as_echo='printf %s\n'
  22416. as_echo_n='printf %s'
  22417. else
  22418. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  22419. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  22420. as_echo_n='/usr/ucb/echo -n'
  22421. else
  22422. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  22423. as_echo_n_body='eval
  22424. arg=$1;
  22425. case $arg in #(
  22426. *"$as_nl"*)
  22427. expr "X$arg" : "X\\(.*\\)$as_nl";
  22428. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  22429. esac;
  22430. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  22431. '
  22432. export as_echo_n_body
  22433. as_echo_n='sh -c $as_echo_n_body as_echo'
  22434. fi
  22435. export as_echo_body
  22436. as_echo='sh -c $as_echo_body as_echo'
  22437. fi
  22438. # The user is always right.
  22439. if test "${PATH_SEPARATOR+set}" != set; then
  22440. PATH_SEPARATOR=:
  22441. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  22442. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  22443. PATH_SEPARATOR=';'
  22444. }
  22445. fi
  22446. # IFS
  22447. # We need space, tab and new line, in precisely that order. Quoting is
  22448. # there to prevent editors from complaining about space-tab.
  22449. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  22450. # splitting by setting IFS to empty value.)
  22451. IFS=" "" $as_nl"
  22452. # Find who we are. Look in the path if we contain no directory separator.
  22453. case $0 in #((
  22454. *[\\/]* ) as_myself=$0 ;;
  22455. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22456. for as_dir in $PATH
  22457. do
  22458. IFS=$as_save_IFS
  22459. test -z "$as_dir" && as_dir=.
  22460. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  22461. done
  22462. IFS=$as_save_IFS
  22463. ;;
  22464. esac
  22465. # We did not find ourselves, most probably we were run as `sh COMMAND'
  22466. # in which case we are not to be found in the path.
  22467. if test "x$as_myself" = x; then
  22468. as_myself=$0
  22469. fi
  22470. if test ! -f "$as_myself"; then
  22471. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  22472. exit 1
  22473. fi
  22474. # Unset variables that we do not need and which cause bugs (e.g. in
  22475. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  22476. # suppresses any "Segmentation fault" message there. '((' could
  22477. # trigger a bug in pdksh 5.2.14.
  22478. for as_var in BASH_ENV ENV MAIL MAILPATH
  22479. do eval test x\${$as_var+set} = xset \
  22480. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  22481. done
  22482. PS1='$ '
  22483. PS2='> '
  22484. PS4='+ '
  22485. # NLS nuisances.
  22486. LC_ALL=C
  22487. export LC_ALL
  22488. LANGUAGE=C
  22489. export LANGUAGE
  22490. # CDPATH.
  22491. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  22492. # as_fn_error ERROR [LINENO LOG_FD]
  22493. # ---------------------------------
  22494. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  22495. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  22496. # script with status $?, using 1 if that was 0.
  22497. as_fn_error ()
  22498. {
  22499. as_status=$?; test $as_status -eq 0 && as_status=1
  22500. if test "$3"; then
  22501. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  22502. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  22503. fi
  22504. $as_echo "$as_me: error: $1" >&2
  22505. as_fn_exit $as_status
  22506. } # as_fn_error
  22507. # as_fn_set_status STATUS
  22508. # -----------------------
  22509. # Set $? to STATUS, without forking.
  22510. as_fn_set_status ()
  22511. {
  22512. return $1
  22513. } # as_fn_set_status
  22514. # as_fn_exit STATUS
  22515. # -----------------
  22516. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  22517. as_fn_exit ()
  22518. {
  22519. set +e
  22520. as_fn_set_status $1
  22521. exit $1
  22522. } # as_fn_exit
  22523. # as_fn_unset VAR
  22524. # ---------------
  22525. # Portably unset VAR.
  22526. as_fn_unset ()
  22527. {
  22528. { eval $1=; unset $1;}
  22529. }
  22530. as_unset=as_fn_unset
  22531. # as_fn_append VAR VALUE
  22532. # ----------------------
  22533. # Append the text in VALUE to the end of the definition contained in VAR. Take
  22534. # advantage of any shell optimizations that allow amortized linear growth over
  22535. # repeated appends, instead of the typical quadratic growth present in naive
  22536. # implementations.
  22537. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  22538. eval 'as_fn_append ()
  22539. {
  22540. eval $1+=\$2
  22541. }'
  22542. else
  22543. as_fn_append ()
  22544. {
  22545. eval $1=\$$1\$2
  22546. }
  22547. fi # as_fn_append
  22548. # as_fn_arith ARG...
  22549. # ------------------
  22550. # Perform arithmetic evaluation on the ARGs, and store the result in the
  22551. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  22552. # must be portable across $(()) and expr.
  22553. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  22554. eval 'as_fn_arith ()
  22555. {
  22556. as_val=$(( $* ))
  22557. }'
  22558. else
  22559. as_fn_arith ()
  22560. {
  22561. as_val=`expr "$@" || test $? -eq 1`
  22562. }
  22563. fi # as_fn_arith
  22564. if expr a : '\(a\)' >/dev/null 2>&1 &&
  22565. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  22566. as_expr=expr
  22567. else
  22568. as_expr=false
  22569. fi
  22570. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  22571. as_basename=basename
  22572. else
  22573. as_basename=false
  22574. fi
  22575. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  22576. as_dirname=dirname
  22577. else
  22578. as_dirname=false
  22579. fi
  22580. as_me=`$as_basename -- "$0" ||
  22581. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  22582. X"$0" : 'X\(//\)$' \| \
  22583. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  22584. $as_echo X/"$0" |
  22585. sed '/^.*\/\([^/][^/]*\)\/*$/{
  22586. s//\1/
  22587. q
  22588. }
  22589. /^X\/\(\/\/\)$/{
  22590. s//\1/
  22591. q
  22592. }
  22593. /^X\/\(\/\).*/{
  22594. s//\1/
  22595. q
  22596. }
  22597. s/.*/./; q'`
  22598. # Avoid depending upon Character Ranges.
  22599. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  22600. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  22601. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  22602. as_cr_digits='0123456789'
  22603. as_cr_alnum=$as_cr_Letters$as_cr_digits
  22604. ECHO_C= ECHO_N= ECHO_T=
  22605. case `echo -n x` in #(((((
  22606. -n*)
  22607. case `echo 'xy\c'` in
  22608. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  22609. xy) ECHO_C='\c';;
  22610. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  22611. ECHO_T=' ';;
  22612. esac;;
  22613. *)
  22614. ECHO_N='-n';;
  22615. esac
  22616. rm -f conf$$ conf$$.exe conf$$.file
  22617. if test -d conf$$.dir; then
  22618. rm -f conf$$.dir/conf$$.file
  22619. else
  22620. rm -f conf$$.dir
  22621. mkdir conf$$.dir 2>/dev/null
  22622. fi
  22623. if (echo >conf$$.file) 2>/dev/null; then
  22624. if ln -s conf$$.file conf$$ 2>/dev/null; then
  22625. as_ln_s='ln -s'
  22626. # ... but there are two gotchas:
  22627. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  22628. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  22629. # In both cases, we have to default to `cp -p'.
  22630. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  22631. as_ln_s='cp -p'
  22632. elif ln conf$$.file conf$$ 2>/dev/null; then
  22633. as_ln_s=ln
  22634. else
  22635. as_ln_s='cp -p'
  22636. fi
  22637. else
  22638. as_ln_s='cp -p'
  22639. fi
  22640. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  22641. rmdir conf$$.dir 2>/dev/null
  22642. # as_fn_mkdir_p
  22643. # -------------
  22644. # Create "$as_dir" as a directory, including parents if necessary.
  22645. as_fn_mkdir_p ()
  22646. {
  22647. case $as_dir in #(
  22648. -*) as_dir=./$as_dir;;
  22649. esac
  22650. test -d "$as_dir" || eval $as_mkdir_p || {
  22651. as_dirs=
  22652. while :; do
  22653. case $as_dir in #(
  22654. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22655. *) as_qdir=$as_dir;;
  22656. esac
  22657. as_dirs="'$as_qdir' $as_dirs"
  22658. as_dir=`$as_dirname -- "$as_dir" ||
  22659. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22660. X"$as_dir" : 'X\(//\)[^/]' \| \
  22661. X"$as_dir" : 'X\(//\)$' \| \
  22662. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22663. $as_echo X"$as_dir" |
  22664. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22665. s//\1/
  22666. q
  22667. }
  22668. /^X\(\/\/\)[^/].*/{
  22669. s//\1/
  22670. q
  22671. }
  22672. /^X\(\/\/\)$/{
  22673. s//\1/
  22674. q
  22675. }
  22676. /^X\(\/\).*/{
  22677. s//\1/
  22678. q
  22679. }
  22680. s/.*/./; q'`
  22681. test -d "$as_dir" && break
  22682. done
  22683. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22684. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  22685. } # as_fn_mkdir_p
  22686. if mkdir -p . 2>/dev/null; then
  22687. as_mkdir_p='mkdir -p "$as_dir"'
  22688. else
  22689. test -d ./-p && rmdir ./-p
  22690. as_mkdir_p=false
  22691. fi
  22692. if test -x / >/dev/null 2>&1; then
  22693. as_test_x='test -x'
  22694. else
  22695. if ls -dL / >/dev/null 2>&1; then
  22696. as_ls_L_option=L
  22697. else
  22698. as_ls_L_option=
  22699. fi
  22700. as_test_x='
  22701. eval sh -c '\''
  22702. if test -d "$1"; then
  22703. test -d "$1/.";
  22704. else
  22705. case $1 in #(
  22706. -*)set "./$1";;
  22707. esac;
  22708. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  22709. ???[sx]*):;;*)false;;esac;fi
  22710. '\'' sh
  22711. '
  22712. fi
  22713. as_executable_p=$as_test_x
  22714. # Sed expression to map a string onto a valid CPP name.
  22715. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  22716. # Sed expression to map a string onto a valid variable name.
  22717. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  22718. exec 6>&1
  22719. ## ----------------------------------- ##
  22720. ## Main body of $CONFIG_STATUS script. ##
  22721. ## ----------------------------------- ##
  22722. _ASEOF
  22723. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  22724. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22725. # Save the log message, to keep $0 and so on meaningful, and to
  22726. # report actual input values of CONFIG_FILES etc. instead of their
  22727. # values after options handling.
  22728. ac_log="
  22729. This file was extended by ntp $as_me 4.2.4p8, which was
  22730. generated by GNU Autoconf 2.65. Invocation command line was
  22731. CONFIG_FILES = $CONFIG_FILES
  22732. CONFIG_HEADERS = $CONFIG_HEADERS
  22733. CONFIG_LINKS = $CONFIG_LINKS
  22734. CONFIG_COMMANDS = $CONFIG_COMMANDS
  22735. $ $0 $@
  22736. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  22737. "
  22738. _ACEOF
  22739. case $ac_config_files in *"
  22740. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  22741. esac
  22742. case $ac_config_headers in *"
  22743. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  22744. esac
  22745. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22746. # Files that config.status was made for.
  22747. config_files="$ac_config_files"
  22748. config_headers="$ac_config_headers"
  22749. config_commands="$ac_config_commands"
  22750. _ACEOF
  22751. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22752. ac_cs_usage="\
  22753. \`$as_me' instantiates files and other configuration actions
  22754. from templates according to the current configuration. Unless the files
  22755. and actions are specified as TAGs, all are instantiated by default.
  22756. Usage: $0 [OPTION]... [TAG]...
  22757. -h, --help print this help, then exit
  22758. -V, --version print version number and configuration settings, then exit
  22759. --config print configuration, then exit
  22760. -q, --quiet, --silent
  22761. do not print progress messages
  22762. -d, --debug don't remove temporary files
  22763. --recheck update $as_me by reconfiguring in the same conditions
  22764. --file=FILE[:TEMPLATE]
  22765. instantiate the configuration file FILE
  22766. --header=FILE[:TEMPLATE]
  22767. instantiate the configuration header FILE
  22768. Configuration files:
  22769. $config_files
  22770. Configuration headers:
  22771. $config_headers
  22772. Configuration commands:
  22773. $config_commands
  22774. Report bugs to the package provider."
  22775. _ACEOF
  22776. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22777. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  22778. ac_cs_version="\\
  22779. ntp config.status 4.2.4p8
  22780. configured by $0, generated by GNU Autoconf 2.65,
  22781. with options \\"\$ac_cs_config\\"
  22782. Copyright (C) 2009 Free Software Foundation, Inc.
  22783. This config.status script is free software; the Free Software Foundation
  22784. gives unlimited permission to copy, distribute and modify it."
  22785. ac_pwd='$ac_pwd'
  22786. srcdir='$srcdir'
  22787. INSTALL='$INSTALL'
  22788. MKDIR_P='$MKDIR_P'
  22789. AWK='$AWK'
  22790. test -n "\$AWK" || AWK=awk
  22791. _ACEOF
  22792. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22793. # The default lists apply if the user does not specify any file.
  22794. ac_need_defaults=:
  22795. while test $# != 0
  22796. do
  22797. case $1 in
  22798. --*=*)
  22799. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  22800. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  22801. ac_shift=:
  22802. ;;
  22803. *)
  22804. ac_option=$1
  22805. ac_optarg=$2
  22806. ac_shift=shift
  22807. ;;
  22808. esac
  22809. case $ac_option in
  22810. # Handling of the options.
  22811. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  22812. ac_cs_recheck=: ;;
  22813. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  22814. $as_echo "$ac_cs_version"; exit ;;
  22815. --config | --confi | --conf | --con | --co | --c )
  22816. $as_echo "$ac_cs_config"; exit ;;
  22817. --debug | --debu | --deb | --de | --d | -d )
  22818. debug=: ;;
  22819. --file | --fil | --fi | --f )
  22820. $ac_shift
  22821. case $ac_optarg in
  22822. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22823. esac
  22824. as_fn_append CONFIG_FILES " '$ac_optarg'"
  22825. ac_need_defaults=false;;
  22826. --header | --heade | --head | --hea )
  22827. $ac_shift
  22828. case $ac_optarg in
  22829. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  22830. esac
  22831. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  22832. ac_need_defaults=false;;
  22833. --he | --h)
  22834. # Conflict between --help and --header
  22835. as_fn_error "ambiguous option: \`$1'
  22836. Try \`$0 --help' for more information.";;
  22837. --help | --hel | -h )
  22838. $as_echo "$ac_cs_usage"; exit ;;
  22839. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  22840. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  22841. ac_cs_silent=: ;;
  22842. # This is an error.
  22843. -*) as_fn_error "unrecognized option: \`$1'
  22844. Try \`$0 --help' for more information." ;;
  22845. *) as_fn_append ac_config_targets " $1"
  22846. ac_need_defaults=false ;;
  22847. esac
  22848. shift
  22849. done
  22850. ac_configure_extra_args=
  22851. if $ac_cs_silent; then
  22852. exec 6>/dev/null
  22853. ac_configure_extra_args="$ac_configure_extra_args --silent"
  22854. fi
  22855. _ACEOF
  22856. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22857. if \$ac_cs_recheck; then
  22858. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  22859. shift
  22860. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  22861. CONFIG_SHELL='$SHELL'
  22862. export CONFIG_SHELL
  22863. exec "\$@"
  22864. fi
  22865. _ACEOF
  22866. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22867. exec 5>>config.log
  22868. {
  22869. echo
  22870. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  22871. ## Running $as_me. ##
  22872. _ASBOX
  22873. $as_echo "$ac_log"
  22874. } >&5
  22875. _ACEOF
  22876. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22877. #
  22878. # INIT-COMMANDS
  22879. #
  22880. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  22881. _ACEOF
  22882. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22883. # Handling of arguments.
  22884. for ac_config_target in $ac_config_targets
  22885. do
  22886. case $ac_config_target in
  22887. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  22888. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  22889. "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
  22890. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  22891. "ElectricFence/Makefile") CONFIG_FILES="$CONFIG_FILES ElectricFence/Makefile" ;;
  22892. "adjtimed/Makefile") CONFIG_FILES="$CONFIG_FILES adjtimed/Makefile" ;;
  22893. "clockstuff/Makefile") CONFIG_FILES="$CONFIG_FILES clockstuff/Makefile" ;;
  22894. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  22895. "include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES include/isc/Makefile" ;;
  22896. "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
  22897. "kernel/sys/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/sys/Makefile" ;;
  22898. "libntp/Makefile") CONFIG_FILES="$CONFIG_FILES libntp/Makefile" ;;
  22899. "libparse/Makefile") CONFIG_FILES="$CONFIG_FILES libparse/Makefile" ;;
  22900. "ntpd/Makefile") CONFIG_FILES="$CONFIG_FILES ntpd/Makefile" ;;
  22901. "ntpdate/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdate/Makefile" ;;
  22902. "ntpdc/Makefile") CONFIG_FILES="$CONFIG_FILES ntpdc/Makefile" ;;
  22903. "ntpdc/nl.pl") CONFIG_FILES="$CONFIG_FILES ntpdc/nl.pl" ;;
  22904. "ntpq/Makefile") CONFIG_FILES="$CONFIG_FILES ntpq/Makefile" ;;
  22905. "parseutil/Makefile") CONFIG_FILES="$CONFIG_FILES parseutil/Makefile" ;;
  22906. "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
  22907. "scripts/calc_tickadj") CONFIG_FILES="$CONFIG_FILES scripts/calc_tickadj" ;;
  22908. "scripts/checktime") CONFIG_FILES="$CONFIG_FILES scripts/checktime" ;;
  22909. "scripts/freq_adj") CONFIG_FILES="$CONFIG_FILES scripts/freq_adj" ;;
  22910. "scripts/html2man") CONFIG_FILES="$CONFIG_FILES scripts/html2man" ;;
  22911. "scripts/mkver") CONFIG_FILES="$CONFIG_FILES scripts/mkver" ;;
  22912. "scripts/ntp-wait") CONFIG_FILES="$CONFIG_FILES scripts/ntp-wait" ;;
  22913. "scripts/ntpsweep") CONFIG_FILES="$CONFIG_FILES scripts/ntpsweep" ;;
  22914. "scripts/ntptrace") CONFIG_FILES="$CONFIG_FILES scripts/ntptrace" ;;
  22915. "scripts/ntpver") CONFIG_FILES="$CONFIG_FILES scripts/ntpver" ;;
  22916. "scripts/plot_summary") CONFIG_FILES="$CONFIG_FILES scripts/plot_summary" ;;
  22917. "scripts/summary") CONFIG_FILES="$CONFIG_FILES scripts/summary" ;;
  22918. "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
  22919. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  22920. esac
  22921. done
  22922. # If the user did not use the arguments to specify the items to instantiate,
  22923. # then the envvar interface is used. Set only those that are not.
  22924. # We use the long form for the default assignment because of an extremely
  22925. # bizarre bug on SunOS 4.1.3.
  22926. if $ac_need_defaults; then
  22927. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  22928. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  22929. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  22930. fi
  22931. # Have a temporary directory for convenience. Make it in the build tree
  22932. # simply because there is no reason against having it here, and in addition,
  22933. # creating and moving files from /tmp can sometimes cause problems.
  22934. # Hook for its removal unless debugging.
  22935. # Note that there is a small window in which the directory will not be cleaned:
  22936. # after its creation but before its name has been assigned to `$tmp'.
  22937. $debug ||
  22938. {
  22939. tmp=
  22940. trap 'exit_status=$?
  22941. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  22942. ' 0
  22943. trap 'as_fn_exit 1' 1 2 13 15
  22944. }
  22945. # Create a (secure) tmp directory for tmp files.
  22946. {
  22947. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  22948. test -n "$tmp" && test -d "$tmp"
  22949. } ||
  22950. {
  22951. tmp=./conf$$-$RANDOM
  22952. (umask 077 && mkdir "$tmp")
  22953. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  22954. # Set up the scripts for CONFIG_FILES section.
  22955. # No need to generate them if there are no CONFIG_FILES.
  22956. # This happens for instance with `./config.status config.h'.
  22957. if test -n "$CONFIG_FILES"; then
  22958. ac_cr=`echo X | tr X '\015'`
  22959. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  22960. # But we know of no other shell where ac_cr would be empty at this
  22961. # point, so we can use a bashism as a fallback.
  22962. if test "x$ac_cr" = x; then
  22963. eval ac_cr=\$\'\\r\'
  22964. fi
  22965. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  22966. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  22967. ac_cs_awk_cr='\r'
  22968. else
  22969. ac_cs_awk_cr=$ac_cr
  22970. fi
  22971. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  22972. _ACEOF
  22973. {
  22974. echo "cat >conf$$subs.awk <<_ACEOF" &&
  22975. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  22976. echo "_ACEOF"
  22977. } >conf$$subs.sh ||
  22978. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  22979. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  22980. ac_delim='%!_!# '
  22981. for ac_last_try in false false false false false :; do
  22982. . ./conf$$subs.sh ||
  22983. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  22984. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  22985. if test $ac_delim_n = $ac_delim_num; then
  22986. break
  22987. elif $ac_last_try; then
  22988. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  22989. else
  22990. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  22991. fi
  22992. done
  22993. rm -f conf$$subs.sh
  22994. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22995. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  22996. _ACEOF
  22997. sed -n '
  22998. h
  22999. s/^/S["/; s/!.*/"]=/
  23000. p
  23001. g
  23002. s/^[^!]*!//
  23003. :repl
  23004. t repl
  23005. s/'"$ac_delim"'$//
  23006. t delim
  23007. :nl
  23008. h
  23009. s/\(.\{148\}\)..*/\1/
  23010. t more1
  23011. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  23012. p
  23013. n
  23014. b repl
  23015. :more1
  23016. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23017. p
  23018. g
  23019. s/.\{148\}//
  23020. t nl
  23021. :delim
  23022. h
  23023. s/\(.\{148\}\)..*/\1/
  23024. t more2
  23025. s/["\\]/\\&/g; s/^/"/; s/$/"/
  23026. p
  23027. b
  23028. :more2
  23029. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  23030. p
  23031. g
  23032. s/.\{148\}//
  23033. t delim
  23034. ' <conf$$subs.awk | sed '
  23035. /^[^""]/{
  23036. N
  23037. s/\n//
  23038. }
  23039. ' >>$CONFIG_STATUS || ac_write_fail=1
  23040. rm -f conf$$subs.awk
  23041. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23042. _ACAWK
  23043. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  23044. for (key in S) S_is_set[key] = 1
  23045. FS = ""
  23046. }
  23047. {
  23048. line = $ 0
  23049. nfields = split(line, field, "@")
  23050. substed = 0
  23051. len = length(field[1])
  23052. for (i = 2; i < nfields; i++) {
  23053. key = field[i]
  23054. keylen = length(key)
  23055. if (S_is_set[key]) {
  23056. value = S[key]
  23057. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  23058. len += length(value) + length(field[++i])
  23059. substed = 1
  23060. } else
  23061. len += 1 + keylen
  23062. }
  23063. print line
  23064. }
  23065. _ACAWK
  23066. _ACEOF
  23067. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23068. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  23069. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  23070. else
  23071. cat
  23072. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  23073. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  23074. _ACEOF
  23075. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  23076. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  23077. # trailing colons and then remove the whole line if VPATH becomes empty
  23078. # (actually we leave an empty line to preserve line numbers).
  23079. if test "x$srcdir" = x.; then
  23080. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  23081. s/:*\$(srcdir):*/:/
  23082. s/:*\${srcdir}:*/:/
  23083. s/:*@srcdir@:*/:/
  23084. s/^\([^=]*=[ ]*\):*/\1/
  23085. s/:*$//
  23086. s/^[^=]*=[ ]*$//
  23087. }'
  23088. fi
  23089. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23090. fi # test -n "$CONFIG_FILES"
  23091. # Set up the scripts for CONFIG_HEADERS section.
  23092. # No need to generate them if there are no CONFIG_HEADERS.
  23093. # This happens for instance with `./config.status Makefile'.
  23094. if test -n "$CONFIG_HEADERS"; then
  23095. cat >"$tmp/defines.awk" <<\_ACAWK ||
  23096. BEGIN {
  23097. _ACEOF
  23098. # Transform confdefs.h into an awk script `defines.awk', embedded as
  23099. # here-document in config.status, that substitutes the proper values into
  23100. # config.h.in to produce config.h.
  23101. # Create a delimiter string that does not exist in confdefs.h, to ease
  23102. # handling of long lines.
  23103. ac_delim='%!_!# '
  23104. for ac_last_try in false false :; do
  23105. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  23106. if test -z "$ac_t"; then
  23107. break
  23108. elif $ac_last_try; then
  23109. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  23110. else
  23111. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  23112. fi
  23113. done
  23114. # For the awk script, D is an array of macro values keyed by name,
  23115. # likewise P contains macro parameters if any. Preserve backslash
  23116. # newline sequences.
  23117. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  23118. sed -n '
  23119. s/.\{148\}/&'"$ac_delim"'/g
  23120. t rset
  23121. :rset
  23122. s/^[ ]*#[ ]*define[ ][ ]*/ /
  23123. t def
  23124. d
  23125. :def
  23126. s/\\$//
  23127. t bsnl
  23128. s/["\\]/\\&/g
  23129. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23130. D["\1"]=" \3"/p
  23131. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  23132. d
  23133. :bsnl
  23134. s/["\\]/\\&/g
  23135. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  23136. D["\1"]=" \3\\\\\\n"\\/p
  23137. t cont
  23138. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  23139. t cont
  23140. d
  23141. :cont
  23142. n
  23143. s/.\{148\}/&'"$ac_delim"'/g
  23144. t clear
  23145. :clear
  23146. s/\\$//
  23147. t bsnlc
  23148. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  23149. d
  23150. :bsnlc
  23151. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  23152. b cont
  23153. ' <confdefs.h | sed '
  23154. s/'"$ac_delim"'/"\\\
  23155. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  23156. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23157. for (key in D) D_is_set[key] = 1
  23158. FS = ""
  23159. }
  23160. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  23161. line = \$ 0
  23162. split(line, arg, " ")
  23163. if (arg[1] == "#") {
  23164. defundef = arg[2]
  23165. mac1 = arg[3]
  23166. } else {
  23167. defundef = substr(arg[1], 2)
  23168. mac1 = arg[2]
  23169. }
  23170. split(mac1, mac2, "(") #)
  23171. macro = mac2[1]
  23172. prefix = substr(line, 1, index(line, defundef) - 1)
  23173. if (D_is_set[macro]) {
  23174. # Preserve the white space surrounding the "#".
  23175. print prefix "define", macro P[macro] D[macro]
  23176. next
  23177. } else {
  23178. # Replace #undef with comments. This is necessary, for example,
  23179. # in the case of _POSIX_SOURCE, which is predefined and required
  23180. # on some systems where configure will not decide to define it.
  23181. if (defundef == "undef") {
  23182. print "/*", prefix defundef, macro, "*/"
  23183. next
  23184. }
  23185. }
  23186. }
  23187. { print }
  23188. _ACAWK
  23189. _ACEOF
  23190. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23191. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  23192. fi # test -n "$CONFIG_HEADERS"
  23193. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  23194. shift
  23195. for ac_tag
  23196. do
  23197. case $ac_tag in
  23198. :[FHLC]) ac_mode=$ac_tag; continue;;
  23199. esac
  23200. case $ac_mode$ac_tag in
  23201. :[FHL]*:*);;
  23202. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  23203. :[FH]-) ac_tag=-:-;;
  23204. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  23205. esac
  23206. ac_save_IFS=$IFS
  23207. IFS=:
  23208. set x $ac_tag
  23209. IFS=$ac_save_IFS
  23210. shift
  23211. ac_file=$1
  23212. shift
  23213. case $ac_mode in
  23214. :L) ac_source=$1;;
  23215. :[FH])
  23216. ac_file_inputs=
  23217. for ac_f
  23218. do
  23219. case $ac_f in
  23220. -) ac_f="$tmp/stdin";;
  23221. *) # Look for the file first in the build tree, then in the source tree
  23222. # (if the path is not absolute). The absolute path cannot be DOS-style,
  23223. # because $ac_f cannot contain `:'.
  23224. test -f "$ac_f" ||
  23225. case $ac_f in
  23226. [\\/$]*) false;;
  23227. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  23228. esac ||
  23229. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  23230. esac
  23231. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  23232. as_fn_append ac_file_inputs " '$ac_f'"
  23233. done
  23234. # Let's still pretend it is `configure' which instantiates (i.e., don't
  23235. # use $as_me), people would be surprised to read:
  23236. # /* config.h. Generated by config.status. */
  23237. configure_input='Generated from '`
  23238. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  23239. `' by configure.'
  23240. if test x"$ac_file" != x-; then
  23241. configure_input="$ac_file. $configure_input"
  23242. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  23243. $as_echo "$as_me: creating $ac_file" >&6;}
  23244. fi
  23245. # Neutralize special characters interpreted by sed in replacement strings.
  23246. case $configure_input in #(
  23247. *\&* | *\|* | *\\* )
  23248. ac_sed_conf_input=`$as_echo "$configure_input" |
  23249. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  23250. *) ac_sed_conf_input=$configure_input;;
  23251. esac
  23252. case $ac_tag in
  23253. *:-:* | *:-) cat >"$tmp/stdin" \
  23254. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  23255. esac
  23256. ;;
  23257. esac
  23258. ac_dir=`$as_dirname -- "$ac_file" ||
  23259. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23260. X"$ac_file" : 'X\(//\)[^/]' \| \
  23261. X"$ac_file" : 'X\(//\)$' \| \
  23262. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  23263. $as_echo X"$ac_file" |
  23264. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23265. s//\1/
  23266. q
  23267. }
  23268. /^X\(\/\/\)[^/].*/{
  23269. s//\1/
  23270. q
  23271. }
  23272. /^X\(\/\/\)$/{
  23273. s//\1/
  23274. q
  23275. }
  23276. /^X\(\/\).*/{
  23277. s//\1/
  23278. q
  23279. }
  23280. s/.*/./; q'`
  23281. as_dir="$ac_dir"; as_fn_mkdir_p
  23282. ac_builddir=.
  23283. case "$ac_dir" in
  23284. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23285. *)
  23286. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23287. # A ".." for each directory in $ac_dir_suffix.
  23288. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23289. case $ac_top_builddir_sub in
  23290. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23291. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23292. esac ;;
  23293. esac
  23294. ac_abs_top_builddir=$ac_pwd
  23295. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23296. # for backward compatibility:
  23297. ac_top_builddir=$ac_top_build_prefix
  23298. case $srcdir in
  23299. .) # We are building in place.
  23300. ac_srcdir=.
  23301. ac_top_srcdir=$ac_top_builddir_sub
  23302. ac_abs_top_srcdir=$ac_pwd ;;
  23303. [\\/]* | ?:[\\/]* ) # Absolute name.
  23304. ac_srcdir=$srcdir$ac_dir_suffix;
  23305. ac_top_srcdir=$srcdir
  23306. ac_abs_top_srcdir=$srcdir ;;
  23307. *) # Relative name.
  23308. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23309. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23310. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23311. esac
  23312. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23313. case $ac_mode in
  23314. :F)
  23315. #
  23316. # CONFIG_FILE
  23317. #
  23318. case $INSTALL in
  23319. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  23320. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  23321. esac
  23322. ac_MKDIR_P=$MKDIR_P
  23323. case $MKDIR_P in
  23324. [\\/$]* | ?:[\\/]* ) ;;
  23325. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  23326. esac
  23327. _ACEOF
  23328. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23329. # If the template does not know about datarootdir, expand it.
  23330. # FIXME: This hack should be removed a few years after 2.60.
  23331. ac_datarootdir_hack=; ac_datarootdir_seen=
  23332. ac_sed_dataroot='
  23333. /datarootdir/ {
  23334. p
  23335. q
  23336. }
  23337. /@datadir@/p
  23338. /@docdir@/p
  23339. /@infodir@/p
  23340. /@localedir@/p
  23341. /@mandir@/p'
  23342. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  23343. *datarootdir*) ac_datarootdir_seen=yes;;
  23344. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  23345. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  23346. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  23347. _ACEOF
  23348. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23349. ac_datarootdir_hack='
  23350. s&@datadir@&$datadir&g
  23351. s&@docdir@&$docdir&g
  23352. s&@infodir@&$infodir&g
  23353. s&@localedir@&$localedir&g
  23354. s&@mandir@&$mandir&g
  23355. s&\\\${datarootdir}&$datarootdir&g' ;;
  23356. esac
  23357. _ACEOF
  23358. # Neutralize VPATH when `$srcdir' = `.'.
  23359. # Shell code in configure.ac might set extrasub.
  23360. # FIXME: do we really want to maintain this feature?
  23361. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  23362. ac_sed_extra="$ac_vpsub
  23363. $extrasub
  23364. _ACEOF
  23365. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  23366. :t
  23367. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  23368. s|@configure_input@|$ac_sed_conf_input|;t t
  23369. s&@top_builddir@&$ac_top_builddir_sub&;t t
  23370. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  23371. s&@srcdir@&$ac_srcdir&;t t
  23372. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  23373. s&@top_srcdir@&$ac_top_srcdir&;t t
  23374. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  23375. s&@builddir@&$ac_builddir&;t t
  23376. s&@abs_builddir@&$ac_abs_builddir&;t t
  23377. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  23378. s&@INSTALL@&$ac_INSTALL&;t t
  23379. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  23380. $ac_datarootdir_hack
  23381. "
  23382. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  23383. || as_fn_error "could not create $ac_file" "$LINENO" 5
  23384. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  23385. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  23386. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  23387. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23388. which seems to be undefined. Please make sure it is defined." >&5
  23389. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  23390. which seems to be undefined. Please make sure it is defined." >&2;}
  23391. rm -f "$tmp/stdin"
  23392. case $ac_file in
  23393. -) cat "$tmp/out" && rm -f "$tmp/out";;
  23394. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  23395. esac \
  23396. || as_fn_error "could not create $ac_file" "$LINENO" 5
  23397. ;;
  23398. :H)
  23399. #
  23400. # CONFIG_HEADER
  23401. #
  23402. if test x"$ac_file" != x-; then
  23403. {
  23404. $as_echo "/* $configure_input */" \
  23405. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  23406. } >"$tmp/config.h" \
  23407. || as_fn_error "could not create $ac_file" "$LINENO" 5
  23408. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  23409. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  23410. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  23411. else
  23412. rm -f "$ac_file"
  23413. mv "$tmp/config.h" "$ac_file" \
  23414. || as_fn_error "could not create $ac_file" "$LINENO" 5
  23415. fi
  23416. else
  23417. $as_echo "/* $configure_input */" \
  23418. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  23419. || as_fn_error "could not create -" "$LINENO" 5
  23420. fi
  23421. # Compute "$ac_file"'s index in $config_headers.
  23422. _am_arg="$ac_file"
  23423. _am_stamp_count=1
  23424. for _am_header in $config_headers :; do
  23425. case $_am_header in
  23426. $_am_arg | $_am_arg:* )
  23427. break ;;
  23428. * )
  23429. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  23430. esac
  23431. done
  23432. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  23433. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23434. X"$_am_arg" : 'X\(//\)[^/]' \| \
  23435. X"$_am_arg" : 'X\(//\)$' \| \
  23436. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  23437. $as_echo X"$_am_arg" |
  23438. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23439. s//\1/
  23440. q
  23441. }
  23442. /^X\(\/\/\)[^/].*/{
  23443. s//\1/
  23444. q
  23445. }
  23446. /^X\(\/\/\)$/{
  23447. s//\1/
  23448. q
  23449. }
  23450. /^X\(\/\).*/{
  23451. s//\1/
  23452. q
  23453. }
  23454. s/.*/./; q'`/stamp-h$_am_stamp_count
  23455. ;;
  23456. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  23457. $as_echo "$as_me: executing $ac_file commands" >&6;}
  23458. ;;
  23459. esac
  23460. case $ac_file$ac_mode in
  23461. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  23462. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  23463. # are listed without --file. Let's play safe and only enable the eval
  23464. # if we detect the quoting.
  23465. case $CONFIG_FILES in
  23466. *\'*) eval set x "$CONFIG_FILES" ;;
  23467. *) set x $CONFIG_FILES ;;
  23468. esac
  23469. shift
  23470. for mf
  23471. do
  23472. # Strip MF so we end up with the name of the file.
  23473. mf=`echo "$mf" | sed -e 's/:.*$//'`
  23474. # Check whether this is an Automake generated Makefile or not.
  23475. # We used to match only the files named `Makefile.in', but
  23476. # some people rename them; so instead we look at the file content.
  23477. # Grep'ing the first line is not enough: some people post-process
  23478. # each Makefile.in and add a new line on top of each file to say so.
  23479. # Grep'ing the whole file is not good either: AIX grep has a line
  23480. # limit of 2048, but all sed's we know have understand at least 4000.
  23481. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  23482. dirpart=`$as_dirname -- "$mf" ||
  23483. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23484. X"$mf" : 'X\(//\)[^/]' \| \
  23485. X"$mf" : 'X\(//\)$' \| \
  23486. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  23487. $as_echo X"$mf" |
  23488. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23489. s//\1/
  23490. q
  23491. }
  23492. /^X\(\/\/\)[^/].*/{
  23493. s//\1/
  23494. q
  23495. }
  23496. /^X\(\/\/\)$/{
  23497. s//\1/
  23498. q
  23499. }
  23500. /^X\(\/\).*/{
  23501. s//\1/
  23502. q
  23503. }
  23504. s/.*/./; q'`
  23505. else
  23506. continue
  23507. fi
  23508. # Extract the definition of DEPDIR, am__include, and am__quote
  23509. # from the Makefile without running `make'.
  23510. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  23511. test -z "$DEPDIR" && continue
  23512. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  23513. test -z "am__include" && continue
  23514. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  23515. # When using ansi2knr, U may be empty or an underscore; expand it
  23516. U=`sed -n 's/^U = //p' < "$mf"`
  23517. # Find all dependency output files, they are included files with
  23518. # $(DEPDIR) in their names. We invoke sed twice because it is the
  23519. # simplest approach to changing $(DEPDIR) to its actual value in the
  23520. # expansion.
  23521. for file in `sed -n "
  23522. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  23523. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  23524. # Make sure the directory exists.
  23525. test -f "$dirpart/$file" && continue
  23526. fdir=`$as_dirname -- "$file" ||
  23527. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  23528. X"$file" : 'X\(//\)[^/]' \| \
  23529. X"$file" : 'X\(//\)$' \| \
  23530. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  23531. $as_echo X"$file" |
  23532. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  23533. s//\1/
  23534. q
  23535. }
  23536. /^X\(\/\/\)[^/].*/{
  23537. s//\1/
  23538. q
  23539. }
  23540. /^X\(\/\/\)$/{
  23541. s//\1/
  23542. q
  23543. }
  23544. /^X\(\/\).*/{
  23545. s//\1/
  23546. q
  23547. }
  23548. s/.*/./; q'`
  23549. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  23550. # echo "creating $dirpart/$file"
  23551. echo '# dummy' > "$dirpart/$file"
  23552. done
  23553. done
  23554. }
  23555. ;;
  23556. "ntpdc/nl.pl":F) chmod +x ntpdc/nl.pl ;;
  23557. "scripts/calc_tickadj":F) chmod +x scripts/calc_tickadj ;;
  23558. "scripts/checktime":F) chmod +x scripts/checktime ;;
  23559. "scripts/freq_adj":F) chmod +x scripts/freq_adj ;;
  23560. "scripts/html2man":F) chmod +x scripts/html2man ;;
  23561. "scripts/mkver":F) chmod +x scripts/mkver ;;
  23562. "scripts/ntp-wait":F) chmod +x scripts/ntp-wait ;;
  23563. "scripts/ntpsweep":F) chmod +x scripts/ntpsweep ;;
  23564. "scripts/ntptrace":F) chmod +x scripts/ntptrace ;;
  23565. "scripts/ntpver":F) chmod +x scripts/ntpver ;;
  23566. "scripts/plot_summary":F) chmod +x scripts/plot_summary ;;
  23567. "scripts/summary":F) chmod +x scripts/summary ;;
  23568. esac
  23569. done # for ac_tag
  23570. as_fn_exit 0
  23571. _ACEOF
  23572. ac_clean_files=$ac_clean_files_save
  23573. test $ac_write_fail = 0 ||
  23574. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  23575. # configure is writing to config.log, and then calls config.status.
  23576. # config.status does its own redirection, appending to config.log.
  23577. # Unfortunately, on DOS this fails, as config.log is still kept open
  23578. # by configure, so config.status won't be able to write to it; its
  23579. # output is simply discarded. So we exec the FD to /dev/null,
  23580. # effectively closing config.log, so it can be properly (re)opened and
  23581. # appended to by config.status. When coming back to configure, we
  23582. # need to make the FD available again.
  23583. if test "$no_create" != yes; then
  23584. ac_cs_success=:
  23585. ac_config_status_args=
  23586. test "$silent" = yes &&
  23587. ac_config_status_args="$ac_config_status_args --quiet"
  23588. exec 5>/dev/null
  23589. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  23590. exec 5>>config.log
  23591. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  23592. # would make configure fail if this is the last instruction.
  23593. $ac_cs_success || as_fn_exit $?
  23594. fi
  23595. #
  23596. # CONFIG_SUBDIRS section.
  23597. #
  23598. if test "$no_recursion" != yes; then
  23599. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  23600. # so they do not pile up.
  23601. ac_sub_configure_args=
  23602. ac_prev=
  23603. eval "set x $ac_configure_args"
  23604. shift
  23605. for ac_arg
  23606. do
  23607. if test -n "$ac_prev"; then
  23608. ac_prev=
  23609. continue
  23610. fi
  23611. case $ac_arg in
  23612. -cache-file | --cache-file | --cache-fil | --cache-fi \
  23613. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  23614. ac_prev=cache_file ;;
  23615. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  23616. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  23617. | --c=*)
  23618. ;;
  23619. --config-cache | -C)
  23620. ;;
  23621. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  23622. ac_prev=srcdir ;;
  23623. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  23624. ;;
  23625. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  23626. ac_prev=prefix ;;
  23627. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  23628. ;;
  23629. --disable-option-checking)
  23630. ;;
  23631. *)
  23632. case $ac_arg in
  23633. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23634. esac
  23635. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  23636. esac
  23637. done
  23638. # Always prepend --prefix to ensure using the same prefix
  23639. # in subdir configurations.
  23640. ac_arg="--prefix=$prefix"
  23641. case $ac_arg in
  23642. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  23643. esac
  23644. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  23645. # Pass --silent
  23646. if test "$silent" = yes; then
  23647. ac_sub_configure_args="--silent $ac_sub_configure_args"
  23648. fi
  23649. # Always prepend --disable-option-checking to silence warnings, since
  23650. # different subdirs can have different --enable and --with options.
  23651. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  23652. ac_popdir=`pwd`
  23653. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  23654. # Do not complain, so a configure script can configure whichever
  23655. # parts of a large source tree are present.
  23656. test -d "$srcdir/$ac_dir" || continue
  23657. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  23658. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  23659. $as_echo "$ac_msg" >&6
  23660. as_dir="$ac_dir"; as_fn_mkdir_p
  23661. ac_builddir=.
  23662. case "$ac_dir" in
  23663. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23664. *)
  23665. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  23666. # A ".." for each directory in $ac_dir_suffix.
  23667. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  23668. case $ac_top_builddir_sub in
  23669. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  23670. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  23671. esac ;;
  23672. esac
  23673. ac_abs_top_builddir=$ac_pwd
  23674. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  23675. # for backward compatibility:
  23676. ac_top_builddir=$ac_top_build_prefix
  23677. case $srcdir in
  23678. .) # We are building in place.
  23679. ac_srcdir=.
  23680. ac_top_srcdir=$ac_top_builddir_sub
  23681. ac_abs_top_srcdir=$ac_pwd ;;
  23682. [\\/]* | ?:[\\/]* ) # Absolute name.
  23683. ac_srcdir=$srcdir$ac_dir_suffix;
  23684. ac_top_srcdir=$srcdir
  23685. ac_abs_top_srcdir=$srcdir ;;
  23686. *) # Relative name.
  23687. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  23688. ac_top_srcdir=$ac_top_build_prefix$srcdir
  23689. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  23690. esac
  23691. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  23692. cd "$ac_dir"
  23693. # Check for guested configure; otherwise get Cygnus style configure.
  23694. if test -f "$ac_srcdir/configure.gnu"; then
  23695. ac_sub_configure=$ac_srcdir/configure.gnu
  23696. elif test -f "$ac_srcdir/configure"; then
  23697. ac_sub_configure=$ac_srcdir/configure
  23698. elif test -f "$ac_srcdir/configure.in"; then
  23699. # This should be Cygnus configure.
  23700. ac_sub_configure=$ac_aux_dir/configure
  23701. else
  23702. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  23703. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  23704. ac_sub_configure=
  23705. fi
  23706. # The recursion is here.
  23707. if test -n "$ac_sub_configure"; then
  23708. # Make the cache file name correct relative to the subdirectory.
  23709. case $cache_file in
  23710. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  23711. *) # Relative name.
  23712. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  23713. esac
  23714. { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  23715. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  23716. # The eval makes quoting arguments work.
  23717. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  23718. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  23719. as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  23720. fi
  23721. cd "$ac_popdir"
  23722. done
  23723. fi
  23724. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  23725. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  23726. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  23727. fi