PageRenderTime 120ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 1ms

/contrib/ntp/sntp/configure

https://bitbucket.org/freebsd/freebsd-head/
Shell | 16325 lines | 14479 code | 853 blank | 993 comment | 611 complexity | ea6637b1311adfb56a4d88b35e9037a7 MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, BSD-3-Clause, LGPL-2.0, LGPL-2.1, BSD-2-Clause, 0BSD, JSON, AGPL-1.0, GPL-2.0
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65.
  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=
  638. PACKAGE_TARNAME=
  639. PACKAGE_VERSION=
  640. PACKAGE_STRING=
  641. PACKAGE_BUGREPORT=
  642. PACKAGE_URL=
  643. ac_unique_file="main.c"
  644. ac_unique_file="header.h"
  645. # Factoring default headers for most tests.
  646. ac_includes_default="\
  647. #include <stdio.h>
  648. #ifdef HAVE_SYS_TYPES_H
  649. # include <sys/types.h>
  650. #endif
  651. #ifdef HAVE_SYS_STAT_H
  652. # include <sys/stat.h>
  653. #endif
  654. #ifdef STDC_HEADERS
  655. # include <stdlib.h>
  656. # include <stddef.h>
  657. #else
  658. # ifdef HAVE_STDLIB_H
  659. # include <stdlib.h>
  660. # endif
  661. #endif
  662. #ifdef HAVE_STRING_H
  663. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  664. # include <memory.h>
  665. # endif
  666. # include <string.h>
  667. #endif
  668. #ifdef HAVE_STRINGS_H
  669. # include <strings.h>
  670. #endif
  671. #ifdef HAVE_INTTYPES_H
  672. # include <inttypes.h>
  673. #endif
  674. #ifdef HAVE_STDINT_H
  675. # include <stdint.h>
  676. #endif
  677. #ifdef HAVE_UNISTD_H
  678. # include <unistd.h>
  679. #endif"
  680. ac_subst_vars='am__EXEEXT_FALSE
  681. am__EXEEXT_TRUE
  682. LTLIBOBJS
  683. LIBOBJS
  684. BINSUBDIR
  685. HAVE_INLINE
  686. LIBOPTS_CFLAGS
  687. LIBOPTS_LDADD
  688. NEED_LIBOPTS_FALSE
  689. NEED_LIBOPTS_TRUE
  690. INSTALL_LIBOPTS_FALSE
  691. INSTALL_LIBOPTS_TRUE
  692. LIBOPTS_DIR
  693. LIBTOOL
  694. CPP
  695. RANLIB
  696. AR
  697. ECHO
  698. LN_S
  699. EGREP
  700. GREP
  701. am__fastdepCC_FALSE
  702. am__fastdepCC_TRUE
  703. CCDEPMODE
  704. AMDEPBACKSLASH
  705. AMDEP_FALSE
  706. AMDEP_TRUE
  707. am__quote
  708. am__include
  709. DEPDIR
  710. OBJEXT
  711. EXEEXT
  712. ac_ct_CC
  713. CPPFLAGS
  714. LDFLAGS
  715. CFLAGS
  716. CC
  717. host_os
  718. host_vendor
  719. host_cpu
  720. host
  721. build_os
  722. build_vendor
  723. build_cpu
  724. build
  725. am__untar
  726. am__tar
  727. AMTAR
  728. am__leading_dot
  729. SET_MAKE
  730. AWK
  731. mkdir_p
  732. MKDIR_P
  733. INSTALL_STRIP_PROGRAM
  734. STRIP
  735. install_sh
  736. MAKEINFO
  737. AUTOHEADER
  738. AUTOMAKE
  739. AUTOCONF
  740. ACLOCAL
  741. VERSION
  742. PACKAGE
  743. CYGPATH_W
  744. am__isrc
  745. INSTALL_DATA
  746. INSTALL_SCRIPT
  747. INSTALL_PROGRAM
  748. target_alias
  749. host_alias
  750. build_alias
  751. LIBS
  752. ECHO_T
  753. ECHO_N
  754. ECHO_C
  755. DEFS
  756. mandir
  757. localedir
  758. libdir
  759. psdir
  760. pdfdir
  761. dvidir
  762. htmldir
  763. infodir
  764. docdir
  765. oldincludedir
  766. includedir
  767. localstatedir
  768. sharedstatedir
  769. sysconfdir
  770. datadir
  771. datarootdir
  772. libexecdir
  773. sbindir
  774. bindir
  775. program_transform_name
  776. prefix
  777. exec_prefix
  778. PACKAGE_URL
  779. PACKAGE_BUGREPORT
  780. PACKAGE_STRING
  781. PACKAGE_VERSION
  782. PACKAGE_TARNAME
  783. PACKAGE_NAME
  784. PATH_SEPARATOR
  785. SHELL'
  786. ac_subst_files=''
  787. ac_user_opts='
  788. enable_option_checking
  789. enable_dependency_tracking
  790. enable_shared
  791. enable_static
  792. enable_fast_install
  793. with_gnu_ld
  794. enable_libtool_lock
  795. with_pic
  796. with_tags
  797. enable_local_libopts
  798. enable_libopts_install
  799. with_autoopts_config
  800. with_regex_header
  801. with_libregex
  802. with_libregex_cflags
  803. with_libregex_libs
  804. enable_optional_args
  805. with_binsubdir
  806. '
  807. ac_precious_vars='build_alias
  808. host_alias
  809. target_alias
  810. CC
  811. CFLAGS
  812. LDFLAGS
  813. LIBS
  814. CPPFLAGS
  815. CPP'
  816. # Initialize some variables set by options.
  817. ac_init_help=
  818. ac_init_version=false
  819. ac_unrecognized_opts=
  820. ac_unrecognized_sep=
  821. # The variables have the same names as the options, with
  822. # dashes changed to underlines.
  823. cache_file=/dev/null
  824. exec_prefix=NONE
  825. no_create=
  826. no_recursion=
  827. prefix=NONE
  828. program_prefix=NONE
  829. program_suffix=NONE
  830. program_transform_name=s,x,x,
  831. silent=
  832. site=
  833. srcdir=
  834. verbose=
  835. x_includes=NONE
  836. x_libraries=NONE
  837. # Installation directory options.
  838. # These are left unexpanded so users can "make install exec_prefix=/foo"
  839. # and all the variables that are supposed to be based on exec_prefix
  840. # by default will actually change.
  841. # Use braces instead of parens because sh, perl, etc. also accept them.
  842. # (The list follows the same order as the GNU Coding Standards.)
  843. bindir='${exec_prefix}/bin'
  844. sbindir='${exec_prefix}/sbin'
  845. libexecdir='${exec_prefix}/libexec'
  846. datarootdir='${prefix}/share'
  847. datadir='${datarootdir}'
  848. sysconfdir='${prefix}/etc'
  849. sharedstatedir='${prefix}/com'
  850. localstatedir='${prefix}/var'
  851. includedir='${prefix}/include'
  852. oldincludedir='/usr/include'
  853. docdir='${datarootdir}/doc/${PACKAGE}'
  854. infodir='${datarootdir}/info'
  855. htmldir='${docdir}'
  856. dvidir='${docdir}'
  857. pdfdir='${docdir}'
  858. psdir='${docdir}'
  859. libdir='${exec_prefix}/lib'
  860. localedir='${datarootdir}/locale'
  861. mandir='${datarootdir}/man'
  862. ac_prev=
  863. ac_dashdash=
  864. for ac_option
  865. do
  866. # If the previous option needs an argument, assign it.
  867. if test -n "$ac_prev"; then
  868. eval $ac_prev=\$ac_option
  869. ac_prev=
  870. continue
  871. fi
  872. case $ac_option in
  873. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  874. *) ac_optarg=yes ;;
  875. esac
  876. # Accept the important Cygnus configure options, so we can diagnose typos.
  877. case $ac_dashdash$ac_option in
  878. --)
  879. ac_dashdash=yes ;;
  880. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  881. ac_prev=bindir ;;
  882. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  883. bindir=$ac_optarg ;;
  884. -build | --build | --buil | --bui | --bu)
  885. ac_prev=build_alias ;;
  886. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  887. build_alias=$ac_optarg ;;
  888. -cache-file | --cache-file | --cache-fil | --cache-fi \
  889. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  890. ac_prev=cache_file ;;
  891. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  892. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  893. cache_file=$ac_optarg ;;
  894. --config-cache | -C)
  895. cache_file=config.cache ;;
  896. -datadir | --datadir | --datadi | --datad)
  897. ac_prev=datadir ;;
  898. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  899. datadir=$ac_optarg ;;
  900. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  901. | --dataroo | --dataro | --datar)
  902. ac_prev=datarootdir ;;
  903. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  904. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  905. datarootdir=$ac_optarg ;;
  906. -disable-* | --disable-*)
  907. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  908. # Reject names that are not valid shell variable names.
  909. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  910. as_fn_error "invalid feature name: $ac_useropt"
  911. ac_useropt_orig=$ac_useropt
  912. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  913. case $ac_user_opts in
  914. *"
  915. "enable_$ac_useropt"
  916. "*) ;;
  917. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  918. ac_unrecognized_sep=', ';;
  919. esac
  920. eval enable_$ac_useropt=no ;;
  921. -docdir | --docdir | --docdi | --doc | --do)
  922. ac_prev=docdir ;;
  923. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  924. docdir=$ac_optarg ;;
  925. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  926. ac_prev=dvidir ;;
  927. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  928. dvidir=$ac_optarg ;;
  929. -enable-* | --enable-*)
  930. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  931. # Reject names that are not valid shell variable names.
  932. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  933. as_fn_error "invalid feature name: $ac_useropt"
  934. ac_useropt_orig=$ac_useropt
  935. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  936. case $ac_user_opts in
  937. *"
  938. "enable_$ac_useropt"
  939. "*) ;;
  940. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  941. ac_unrecognized_sep=', ';;
  942. esac
  943. eval enable_$ac_useropt=\$ac_optarg ;;
  944. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  945. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  946. | --exec | --exe | --ex)
  947. ac_prev=exec_prefix ;;
  948. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  949. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  950. | --exec=* | --exe=* | --ex=*)
  951. exec_prefix=$ac_optarg ;;
  952. -gas | --gas | --ga | --g)
  953. # Obsolete; use --with-gas.
  954. with_gas=yes ;;
  955. -help | --help | --hel | --he | -h)
  956. ac_init_help=long ;;
  957. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  958. ac_init_help=recursive ;;
  959. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  960. ac_init_help=short ;;
  961. -host | --host | --hos | --ho)
  962. ac_prev=host_alias ;;
  963. -host=* | --host=* | --hos=* | --ho=*)
  964. host_alias=$ac_optarg ;;
  965. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  966. ac_prev=htmldir ;;
  967. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  968. | --ht=*)
  969. htmldir=$ac_optarg ;;
  970. -includedir | --includedir | --includedi | --included | --include \
  971. | --includ | --inclu | --incl | --inc)
  972. ac_prev=includedir ;;
  973. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  974. | --includ=* | --inclu=* | --incl=* | --inc=*)
  975. includedir=$ac_optarg ;;
  976. -infodir | --infodir | --infodi | --infod | --info | --inf)
  977. ac_prev=infodir ;;
  978. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  979. infodir=$ac_optarg ;;
  980. -libdir | --libdir | --libdi | --libd)
  981. ac_prev=libdir ;;
  982. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  983. libdir=$ac_optarg ;;
  984. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  985. | --libexe | --libex | --libe)
  986. ac_prev=libexecdir ;;
  987. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  988. | --libexe=* | --libex=* | --libe=*)
  989. libexecdir=$ac_optarg ;;
  990. -localedir | --localedir | --localedi | --localed | --locale)
  991. ac_prev=localedir ;;
  992. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  993. localedir=$ac_optarg ;;
  994. -localstatedir | --localstatedir | --localstatedi | --localstated \
  995. | --localstate | --localstat | --localsta | --localst | --locals)
  996. ac_prev=localstatedir ;;
  997. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  998. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  999. localstatedir=$ac_optarg ;;
  1000. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1001. ac_prev=mandir ;;
  1002. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1003. mandir=$ac_optarg ;;
  1004. -nfp | --nfp | --nf)
  1005. # Obsolete; use --without-fp.
  1006. with_fp=no ;;
  1007. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1008. | --no-cr | --no-c | -n)
  1009. no_create=yes ;;
  1010. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1011. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1012. no_recursion=yes ;;
  1013. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1014. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1015. | --oldin | --oldi | --old | --ol | --o)
  1016. ac_prev=oldincludedir ;;
  1017. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1018. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1019. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1020. oldincludedir=$ac_optarg ;;
  1021. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1022. ac_prev=prefix ;;
  1023. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1024. prefix=$ac_optarg ;;
  1025. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1026. | --program-pre | --program-pr | --program-p)
  1027. ac_prev=program_prefix ;;
  1028. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1029. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1030. program_prefix=$ac_optarg ;;
  1031. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1032. | --program-suf | --program-su | --program-s)
  1033. ac_prev=program_suffix ;;
  1034. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1035. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1036. program_suffix=$ac_optarg ;;
  1037. -program-transform-name | --program-transform-name \
  1038. | --program-transform-nam | --program-transform-na \
  1039. | --program-transform-n | --program-transform- \
  1040. | --program-transform | --program-transfor \
  1041. | --program-transfo | --program-transf \
  1042. | --program-trans | --program-tran \
  1043. | --progr-tra | --program-tr | --program-t)
  1044. ac_prev=program_transform_name ;;
  1045. -program-transform-name=* | --program-transform-name=* \
  1046. | --program-transform-nam=* | --program-transform-na=* \
  1047. | --program-transform-n=* | --program-transform-=* \
  1048. | --program-transform=* | --program-transfor=* \
  1049. | --program-transfo=* | --program-transf=* \
  1050. | --program-trans=* | --program-tran=* \
  1051. | --progr-tra=* | --program-tr=* | --program-t=*)
  1052. program_transform_name=$ac_optarg ;;
  1053. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1054. ac_prev=pdfdir ;;
  1055. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1056. pdfdir=$ac_optarg ;;
  1057. -psdir | --psdir | --psdi | --psd | --ps)
  1058. ac_prev=psdir ;;
  1059. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1060. psdir=$ac_optarg ;;
  1061. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1062. | -silent | --silent | --silen | --sile | --sil)
  1063. silent=yes ;;
  1064. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1065. ac_prev=sbindir ;;
  1066. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1067. | --sbi=* | --sb=*)
  1068. sbindir=$ac_optarg ;;
  1069. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1070. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1071. | --sharedst | --shareds | --shared | --share | --shar \
  1072. | --sha | --sh)
  1073. ac_prev=sharedstatedir ;;
  1074. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1075. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1076. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1077. | --sha=* | --sh=*)
  1078. sharedstatedir=$ac_optarg ;;
  1079. -site | --site | --sit)
  1080. ac_prev=site ;;
  1081. -site=* | --site=* | --sit=*)
  1082. site=$ac_optarg ;;
  1083. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1084. ac_prev=srcdir ;;
  1085. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1086. srcdir=$ac_optarg ;;
  1087. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1088. | --syscon | --sysco | --sysc | --sys | --sy)
  1089. ac_prev=sysconfdir ;;
  1090. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1091. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1092. sysconfdir=$ac_optarg ;;
  1093. -target | --target | --targe | --targ | --tar | --ta | --t)
  1094. ac_prev=target_alias ;;
  1095. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1096. target_alias=$ac_optarg ;;
  1097. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1098. verbose=yes ;;
  1099. -version | --version | --versio | --versi | --vers | -V)
  1100. ac_init_version=: ;;
  1101. -with-* | --with-*)
  1102. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1103. # Reject names that are not valid shell variable names.
  1104. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1105. as_fn_error "invalid package name: $ac_useropt"
  1106. ac_useropt_orig=$ac_useropt
  1107. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1108. case $ac_user_opts in
  1109. *"
  1110. "with_$ac_useropt"
  1111. "*) ;;
  1112. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1113. ac_unrecognized_sep=', ';;
  1114. esac
  1115. eval with_$ac_useropt=\$ac_optarg ;;
  1116. -without-* | --without-*)
  1117. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1118. # Reject names that are not valid shell variable names.
  1119. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1120. as_fn_error "invalid package name: $ac_useropt"
  1121. ac_useropt_orig=$ac_useropt
  1122. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1123. case $ac_user_opts in
  1124. *"
  1125. "with_$ac_useropt"
  1126. "*) ;;
  1127. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1128. ac_unrecognized_sep=', ';;
  1129. esac
  1130. eval with_$ac_useropt=no ;;
  1131. --x)
  1132. # Obsolete; use --with-x.
  1133. with_x=yes ;;
  1134. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1135. | --x-incl | --x-inc | --x-in | --x-i)
  1136. ac_prev=x_includes ;;
  1137. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1138. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1139. x_includes=$ac_optarg ;;
  1140. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1141. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1142. ac_prev=x_libraries ;;
  1143. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1144. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1145. x_libraries=$ac_optarg ;;
  1146. -*) as_fn_error "unrecognized option: \`$ac_option'
  1147. Try \`$0 --help' for more information."
  1148. ;;
  1149. *=*)
  1150. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1151. # Reject names that are not valid shell variable names.
  1152. case $ac_envvar in #(
  1153. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1154. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1155. esac
  1156. eval $ac_envvar=\$ac_optarg
  1157. export $ac_envvar ;;
  1158. *)
  1159. # FIXME: should be removed in autoconf 3.0.
  1160. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1161. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1162. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1163. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1164. ;;
  1165. esac
  1166. done
  1167. if test -n "$ac_prev"; then
  1168. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1169. as_fn_error "missing argument to $ac_option"
  1170. fi
  1171. if test -n "$ac_unrecognized_opts"; then
  1172. case $enable_option_checking in
  1173. no) ;;
  1174. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1175. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1176. esac
  1177. fi
  1178. # Check all directory arguments for consistency.
  1179. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1180. datadir sysconfdir sharedstatedir localstatedir includedir \
  1181. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1182. libdir localedir mandir
  1183. do
  1184. eval ac_val=\$$ac_var
  1185. # Remove trailing slashes.
  1186. case $ac_val in
  1187. */ )
  1188. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1189. eval $ac_var=\$ac_val;;
  1190. esac
  1191. # Be sure to have absolute directory names.
  1192. case $ac_val in
  1193. [\\/$]* | ?:[\\/]* ) continue;;
  1194. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1195. esac
  1196. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1197. done
  1198. # There might be people who depend on the old broken behavior: `$host'
  1199. # used to hold the argument of --host etc.
  1200. # FIXME: To remove some day.
  1201. build=$build_alias
  1202. host=$host_alias
  1203. target=$target_alias
  1204. # FIXME: To remove some day.
  1205. if test "x$host_alias" != x; then
  1206. if test "x$build_alias" = x; then
  1207. cross_compiling=maybe
  1208. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1209. If a cross compiler is detected then cross compile mode will be used." >&2
  1210. elif test "x$build_alias" != "x$host_alias"; then
  1211. cross_compiling=yes
  1212. fi
  1213. fi
  1214. ac_tool_prefix=
  1215. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1216. test "$silent" = yes && exec 6>/dev/null
  1217. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1218. ac_ls_di=`ls -di .` &&
  1219. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1220. as_fn_error "working directory cannot be determined"
  1221. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1222. as_fn_error "pwd does not report name of working directory"
  1223. # Find the source files, if location was not specified.
  1224. if test -z "$srcdir"; then
  1225. ac_srcdir_defaulted=yes
  1226. # Try the directory containing this script, then the parent directory.
  1227. ac_confdir=`$as_dirname -- "$as_myself" ||
  1228. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1229. X"$as_myself" : 'X\(//\)[^/]' \| \
  1230. X"$as_myself" : 'X\(//\)$' \| \
  1231. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1232. $as_echo X"$as_myself" |
  1233. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1234. s//\1/
  1235. q
  1236. }
  1237. /^X\(\/\/\)[^/].*/{
  1238. s//\1/
  1239. q
  1240. }
  1241. /^X\(\/\/\)$/{
  1242. s//\1/
  1243. q
  1244. }
  1245. /^X\(\/\).*/{
  1246. s//\1/
  1247. q
  1248. }
  1249. s/.*/./; q'`
  1250. srcdir=$ac_confdir
  1251. if test ! -r "$srcdir/$ac_unique_file"; then
  1252. srcdir=..
  1253. fi
  1254. else
  1255. ac_srcdir_defaulted=no
  1256. fi
  1257. if test ! -r "$srcdir/$ac_unique_file"; then
  1258. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1259. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1260. fi
  1261. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1262. ac_abs_confdir=`(
  1263. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1264. pwd)`
  1265. # When building in place, set srcdir=.
  1266. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1267. srcdir=.
  1268. fi
  1269. # Remove unnecessary trailing slashes from srcdir.
  1270. # Double slashes in file names in object file debugging info
  1271. # mess up M-x gdb in Emacs.
  1272. case $srcdir in
  1273. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1274. esac
  1275. for ac_var in $ac_precious_vars; do
  1276. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1277. eval ac_env_${ac_var}_value=\$${ac_var}
  1278. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1279. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1280. done
  1281. #
  1282. # Report the --help message.
  1283. #
  1284. if test "$ac_init_help" = "long"; then
  1285. # Omit some internal or obsolete options to make the list less imposing.
  1286. # This message is too long to be a string in the A/UX 3.1 sh.
  1287. cat <<_ACEOF
  1288. \`configure' configures this package to adapt to many kinds of systems.
  1289. Usage: $0 [OPTION]... [VAR=VALUE]...
  1290. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1291. VAR=VALUE. See below for descriptions of some of the useful variables.
  1292. Defaults for the options are specified in brackets.
  1293. Configuration:
  1294. -h, --help display this help and exit
  1295. --help=short display options specific to this package
  1296. --help=recursive display the short help of all the included packages
  1297. -V, --version display version information and exit
  1298. -q, --quiet, --silent do not print \`checking...' messages
  1299. --cache-file=FILE cache test results in FILE [disabled]
  1300. -C, --config-cache alias for \`--cache-file=config.cache'
  1301. -n, --no-create do not create output files
  1302. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1303. Installation directories:
  1304. --prefix=PREFIX install architecture-independent files in PREFIX
  1305. [$ac_default_prefix]
  1306. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1307. [PREFIX]
  1308. By default, \`make install' will install all the files in
  1309. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1310. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1311. for instance \`--prefix=\$HOME'.
  1312. For better control, use the options below.
  1313. Fine tuning of the installation directories:
  1314. --bindir=DIR user executables [EPREFIX/bin]
  1315. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1316. --libexecdir=DIR program executables [EPREFIX/libexec]
  1317. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1318. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1319. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1320. --libdir=DIR object code libraries [EPREFIX/lib]
  1321. --includedir=DIR C header files [PREFIX/include]
  1322. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1323. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1324. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1325. --infodir=DIR info documentation [DATAROOTDIR/info]
  1326. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1327. --mandir=DIR man documentation [DATAROOTDIR/man]
  1328. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1329. --htmldir=DIR html documentation [DOCDIR]
  1330. --dvidir=DIR dvi documentation [DOCDIR]
  1331. --pdfdir=DIR pdf documentation [DOCDIR]
  1332. --psdir=DIR ps documentation [DOCDIR]
  1333. _ACEOF
  1334. cat <<\_ACEOF
  1335. Program names:
  1336. --program-prefix=PREFIX prepend PREFIX to installed program names
  1337. --program-suffix=SUFFIX append SUFFIX to installed program names
  1338. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1339. System types:
  1340. --build=BUILD configure for building on BUILD [guessed]
  1341. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1342. _ACEOF
  1343. fi
  1344. if test -n "$ac_init_help"; then
  1345. cat <<\_ACEOF
  1346. Optional Features:
  1347. --disable-option-checking ignore unrecognized --enable/--with options
  1348. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1349. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1350. --disable-dependency-tracking speeds up one-time build
  1351. --enable-dependency-tracking do not reject slow dependency extractors
  1352. --enable-shared[=PKGS] build shared libraries [default=no]
  1353. --enable-static[=PKGS] build static libraries [default=yes]
  1354. --enable-fast-install[=PKGS]
  1355. optimize for fast installation [default=yes]
  1356. --disable-libtool-lock avoid locking (might break parallel builds)
  1357. --enable-local-libopts Force using the supplied libopts tearoff code
  1358. --disable-libopts-install
  1359. Do not install libopts with client installation
  1360. --disable-optional-args not wanting optional option args
  1361. Optional Packages:
  1362. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1363. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1364. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1365. --with-pic try to use only PIC/non-PIC objects [default=use
  1366. both]
  1367. --with-tags[=TAGS] include additional configurations [automatic]
  1368. --with-autoopts-config specify the config-info script
  1369. --with-regex-header a reg expr header is specified
  1370. --with-libregex libregex installation prefix
  1371. --with-libregex-cflags libregex compile flags
  1372. --with-libregex-libs libregex link command arguments
  1373. --with-binsubdir bin ={bin,sbin}
  1374. Some influential environment variables:
  1375. CC C compiler command
  1376. CFLAGS C compiler flags
  1377. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1378. nonstandard directory <lib dir>
  1379. LIBS libraries to pass to the linker, e.g. -l<library>
  1380. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1381. you have headers in a nonstandard directory <include dir>
  1382. CPP C preprocessor
  1383. Use these variables to override the choices made by `configure' or to help
  1384. it to find libraries and programs with nonstandard names/locations.
  1385. Report bugs to the package provider.
  1386. _ACEOF
  1387. ac_status=$?
  1388. fi
  1389. if test "$ac_init_help" = "recursive"; then
  1390. # If there are subdirs, report their specific --help.
  1391. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1392. test -d "$ac_dir" ||
  1393. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1394. continue
  1395. ac_builddir=.
  1396. case "$ac_dir" in
  1397. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1398. *)
  1399. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1400. # A ".." for each directory in $ac_dir_suffix.
  1401. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1402. case $ac_top_builddir_sub in
  1403. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1404. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1405. esac ;;
  1406. esac
  1407. ac_abs_top_builddir=$ac_pwd
  1408. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1409. # for backward compatibility:
  1410. ac_top_builddir=$ac_top_build_prefix
  1411. case $srcdir in
  1412. .) # We are building in place.
  1413. ac_srcdir=.
  1414. ac_top_srcdir=$ac_top_builddir_sub
  1415. ac_abs_top_srcdir=$ac_pwd ;;
  1416. [\\/]* | ?:[\\/]* ) # Absolute name.
  1417. ac_srcdir=$srcdir$ac_dir_suffix;
  1418. ac_top_srcdir=$srcdir
  1419. ac_abs_top_srcdir=$srcdir ;;
  1420. *) # Relative name.
  1421. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1422. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1423. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1424. esac
  1425. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1426. cd "$ac_dir" || { ac_status=$?; continue; }
  1427. # Check for guested configure.
  1428. if test -f "$ac_srcdir/configure.gnu"; then
  1429. echo &&
  1430. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1431. elif test -f "$ac_srcdir/configure"; then
  1432. echo &&
  1433. $SHELL "$ac_srcdir/configure" --help=recursive
  1434. else
  1435. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1436. fi || ac_status=$?
  1437. cd "$ac_pwd" || { ac_status=$?; break; }
  1438. done
  1439. fi
  1440. test -n "$ac_init_help" && exit $ac_status
  1441. if $ac_init_version; then
  1442. cat <<\_ACEOF
  1443. configure
  1444. generated by GNU Autoconf 2.65
  1445. Copyright (C) 2009 Free Software Foundation, Inc.
  1446. This configure script is free software; the Free Software Foundation
  1447. gives unlimited permission to copy, distribute and modify it.
  1448. _ACEOF
  1449. exit
  1450. fi
  1451. ## ------------------------ ##
  1452. ## Autoconf initialization. ##
  1453. ## ------------------------ ##
  1454. # ac_fn_c_try_compile LINENO
  1455. # --------------------------
  1456. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1457. ac_fn_c_try_compile ()
  1458. {
  1459. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1460. rm -f conftest.$ac_objext
  1461. if { { ac_try="$ac_compile"
  1462. case "(($ac_try" in
  1463. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1464. *) ac_try_echo=$ac_try;;
  1465. esac
  1466. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1467. $as_echo "$ac_try_echo"; } >&5
  1468. (eval "$ac_compile") 2>conftest.err
  1469. ac_status=$?
  1470. if test -s conftest.err; then
  1471. grep -v '^ *+' conftest.err >conftest.er1
  1472. cat conftest.er1 >&5
  1473. mv -f conftest.er1 conftest.err
  1474. fi
  1475. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1476. test $ac_status = 0; } && {
  1477. test -z "$ac_c_werror_flag" ||
  1478. test ! -s conftest.err
  1479. } && test -s conftest.$ac_objext; then :
  1480. ac_retval=0
  1481. else
  1482. $as_echo "$as_me: failed program was:" >&5
  1483. sed 's/^/| /' conftest.$ac_ext >&5
  1484. ac_retval=1
  1485. fi
  1486. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1487. as_fn_set_status $ac_retval
  1488. } # ac_fn_c_try_compile
  1489. # ac_fn_c_try_link LINENO
  1490. # -----------------------
  1491. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1492. ac_fn_c_try_link ()
  1493. {
  1494. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1495. rm -f conftest.$ac_objext conftest$ac_exeext
  1496. if { { ac_try="$ac_link"
  1497. case "(($ac_try" in
  1498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1499. *) ac_try_echo=$ac_try;;
  1500. esac
  1501. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1502. $as_echo "$ac_try_echo"; } >&5
  1503. (eval "$ac_link") 2>conftest.err
  1504. ac_status=$?
  1505. if test -s conftest.err; then
  1506. grep -v '^ *+' conftest.err >conftest.er1
  1507. cat conftest.er1 >&5
  1508. mv -f conftest.er1 conftest.err
  1509. fi
  1510. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1511. test $ac_status = 0; } && {
  1512. test -z "$ac_c_werror_flag" ||
  1513. test ! -s conftest.err
  1514. } && test -s conftest$ac_exeext && {
  1515. test "$cross_compiling" = yes ||
  1516. $as_test_x conftest$ac_exeext
  1517. }; then :
  1518. ac_retval=0
  1519. else
  1520. $as_echo "$as_me: failed program was:" >&5
  1521. sed 's/^/| /' conftest.$ac_ext >&5
  1522. ac_retval=1
  1523. fi
  1524. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1525. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1526. # interfere with the next link command; also delete a directory that is
  1527. # left behind by Apple's compiler. We do this before executing the actions.
  1528. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1529. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1530. as_fn_set_status $ac_retval
  1531. } # ac_fn_c_try_link
  1532. # ac_fn_c_try_cpp LINENO
  1533. # ----------------------
  1534. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1535. ac_fn_c_try_cpp ()
  1536. {
  1537. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1538. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1539. case "(($ac_try" in
  1540. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1541. *) ac_try_echo=$ac_try;;
  1542. esac
  1543. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1544. $as_echo "$ac_try_echo"; } >&5
  1545. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1546. ac_status=$?
  1547. if test -s conftest.err; then
  1548. grep -v '^ *+' conftest.err >conftest.er1
  1549. cat conftest.er1 >&5
  1550. mv -f conftest.er1 conftest.err
  1551. fi
  1552. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1553. test $ac_status = 0; } >/dev/null && {
  1554. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1555. test ! -s conftest.err
  1556. }; then :
  1557. ac_retval=0
  1558. else
  1559. $as_echo "$as_me: failed program was:" >&5
  1560. sed 's/^/| /' conftest.$ac_ext >&5
  1561. ac_retval=1
  1562. fi
  1563. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1564. as_fn_set_status $ac_retval
  1565. } # ac_fn_c_try_cpp
  1566. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1567. # -------------------------------------------------------
  1568. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1569. # the include files in INCLUDES and setting the cache variable VAR
  1570. # accordingly.
  1571. ac_fn_c_check_header_mongrel ()
  1572. {
  1573. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1574. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1576. $as_echo_n "checking for $2... " >&6; }
  1577. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1578. $as_echo_n "(cached) " >&6
  1579. fi
  1580. eval ac_res=\$$3
  1581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1582. $as_echo "$ac_res" >&6; }
  1583. else
  1584. # Is the header compilable?
  1585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1586. $as_echo_n "checking $2 usability... " >&6; }
  1587. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1588. /* end confdefs.h. */
  1589. $4
  1590. #include <$2>
  1591. _ACEOF
  1592. if ac_fn_c_try_compile "$LINENO"; then :
  1593. ac_header_compiler=yes
  1594. else
  1595. ac_header_compiler=no
  1596. fi
  1597. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1599. $as_echo "$ac_header_compiler" >&6; }
  1600. # Is the header present?
  1601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1602. $as_echo_n "checking $2 presence... " >&6; }
  1603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1604. /* end confdefs.h. */
  1605. #include <$2>
  1606. _ACEOF
  1607. if ac_fn_c_try_cpp "$LINENO"; then :
  1608. ac_header_preproc=yes
  1609. else
  1610. ac_header_preproc=no
  1611. fi
  1612. rm -f conftest.err conftest.$ac_ext
  1613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1614. $as_echo "$ac_header_preproc" >&6; }
  1615. # So? What about this header?
  1616. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1617. yes:no: )
  1618. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1619. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1620. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1621. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1622. ;;
  1623. no:yes:* )
  1624. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1625. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1626. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1627. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1628. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1629. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1630. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1631. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1632. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1633. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1634. ;;
  1635. esac
  1636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1637. $as_echo_n "checking for $2... " >&6; }
  1638. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1639. $as_echo_n "(cached) " >&6
  1640. else
  1641. eval "$3=\$ac_header_compiler"
  1642. fi
  1643. eval ac_res=\$$3
  1644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1645. $as_echo "$ac_res" >&6; }
  1646. fi
  1647. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1648. } # ac_fn_c_check_header_mongrel
  1649. # ac_fn_c_try_run LINENO
  1650. # ----------------------
  1651. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1652. # that executables *can* be run.
  1653. ac_fn_c_try_run ()
  1654. {
  1655. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1656. if { { ac_try="$ac_link"
  1657. case "(($ac_try" in
  1658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1659. *) ac_try_echo=$ac_try;;
  1660. esac
  1661. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1662. $as_echo "$ac_try_echo"; } >&5
  1663. (eval "$ac_link") 2>&5
  1664. ac_status=$?
  1665. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1666. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1667. { { case "(($ac_try" in
  1668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1669. *) ac_try_echo=$ac_try;;
  1670. esac
  1671. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1672. $as_echo "$ac_try_echo"; } >&5
  1673. (eval "$ac_try") 2>&5
  1674. ac_status=$?
  1675. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1676. test $ac_status = 0; }; }; then :
  1677. ac_retval=0
  1678. else
  1679. $as_echo "$as_me: program exited with status $ac_status" >&5
  1680. $as_echo "$as_me: failed program was:" >&5
  1681. sed 's/^/| /' conftest.$ac_ext >&5
  1682. ac_retval=$ac_status
  1683. fi
  1684. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1685. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1686. as_fn_set_status $ac_retval
  1687. } # ac_fn_c_try_run
  1688. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1689. # -------------------------------------------------------
  1690. # Tests whether HEADER exists and can be compiled using the include files in
  1691. # INCLUDES, setting the cache variable VAR accordingly.
  1692. ac_fn_c_check_header_compile ()
  1693. {
  1694. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1696. $as_echo_n "checking for $2... " >&6; }
  1697. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1698. $as_echo_n "(cached) " >&6
  1699. else
  1700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1701. /* end confdefs.h. */
  1702. $4
  1703. #include <$2>
  1704. _ACEOF
  1705. if ac_fn_c_try_compile "$LINENO"; then :
  1706. eval "$3=yes"
  1707. else
  1708. eval "$3=no"
  1709. fi
  1710. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1711. fi
  1712. eval ac_res=\$$3
  1713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1714. $as_echo "$ac_res" >&6; }
  1715. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1716. } # ac_fn_c_check_header_compile
  1717. # ac_fn_c_check_func LINENO FUNC VAR
  1718. # ----------------------------------
  1719. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1720. ac_fn_c_check_func ()
  1721. {
  1722. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1724. $as_echo_n "checking for $2... " >&6; }
  1725. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1726. $as_echo_n "(cached) " >&6
  1727. else
  1728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1729. /* end confdefs.h. */
  1730. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1731. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1732. #define $2 innocuous_$2
  1733. /* System header to define __stub macros and hopefully few prototypes,
  1734. which can conflict with char $2 (); below.
  1735. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1736. <limits.h> exists even on freestanding compilers. */
  1737. #ifdef __STDC__
  1738. # include <limits.h>
  1739. #else
  1740. # include <assert.h>
  1741. #endif
  1742. #undef $2
  1743. /* Override any GCC internal prototype to avoid an error.
  1744. Use char because int might match the return type of a GCC
  1745. builtin and then its argument prototype would still apply. */
  1746. #ifdef __cplusplus
  1747. extern "C"
  1748. #endif
  1749. char $2 ();
  1750. /* The GNU C library defines this for functions which it implements
  1751. to always fail with ENOSYS. Some functions are actually named
  1752. something starting with __ and the normal name is an alias. */
  1753. #if defined __stub_$2 || defined __stub___$2
  1754. choke me
  1755. #endif
  1756. int
  1757. main ()
  1758. {
  1759. return $2 ();
  1760. ;
  1761. return 0;
  1762. }
  1763. _ACEOF
  1764. if ac_fn_c_try_link "$LINENO"; then :
  1765. eval "$3=yes"
  1766. else
  1767. eval "$3=no"
  1768. fi
  1769. rm -f core conftest.err conftest.$ac_objext \
  1770. conftest$ac_exeext conftest.$ac_ext
  1771. fi
  1772. eval ac_res=\$$3
  1773. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1774. $as_echo "$ac_res" >&6; }
  1775. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1776. } # ac_fn_c_check_func
  1777. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1778. # -------------------------------------------
  1779. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1780. # variable VAR accordingly.
  1781. ac_fn_c_check_type ()
  1782. {
  1783. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1785. $as_echo_n "checking for $2... " >&6; }
  1786. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1787. $as_echo_n "(cached) " >&6
  1788. else
  1789. eval "$3=no"
  1790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1791. /* end confdefs.h. */
  1792. $4
  1793. int
  1794. main ()
  1795. {
  1796. if (sizeof ($2))
  1797. return 0;
  1798. ;
  1799. return 0;
  1800. }
  1801. _ACEOF
  1802. if ac_fn_c_try_compile "$LINENO"; then :
  1803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1804. /* end confdefs.h. */
  1805. $4
  1806. int
  1807. main ()
  1808. {
  1809. if (sizeof (($2)))
  1810. return 0;
  1811. ;
  1812. return 0;
  1813. }
  1814. _ACEOF
  1815. if ac_fn_c_try_compile "$LINENO"; then :
  1816. else
  1817. eval "$3=yes"
  1818. fi
  1819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1820. fi
  1821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1822. fi
  1823. eval ac_res=\$$3
  1824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1825. $as_echo "$ac_res" >&6; }
  1826. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1827. } # ac_fn_c_check_type
  1828. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1829. # --------------------------------------------
  1830. # Tries to find the compile-time value of EXPR in a program that includes
  1831. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1832. # computed
  1833. ac_fn_c_compute_int ()
  1834. {
  1835. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1836. if test "$cross_compiling" = yes; then
  1837. # Depending upon the size, compute the lo and hi bounds.
  1838. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1839. /* end confdefs.h. */
  1840. $4
  1841. int
  1842. main ()
  1843. {
  1844. static int test_array [1 - 2 * !(($2) >= 0)];
  1845. test_array [0] = 0
  1846. ;
  1847. return 0;
  1848. }
  1849. _ACEOF
  1850. if ac_fn_c_try_compile "$LINENO"; then :
  1851. ac_lo=0 ac_mid=0
  1852. while :; do
  1853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1854. /* end confdefs.h. */
  1855. $4
  1856. int
  1857. main ()
  1858. {
  1859. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1860. test_array [0] = 0
  1861. ;
  1862. return 0;
  1863. }
  1864. _ACEOF
  1865. if ac_fn_c_try_compile "$LINENO"; then :
  1866. ac_hi=$ac_mid; break
  1867. else
  1868. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1869. if test $ac_lo -le $ac_mid; then
  1870. ac_lo= ac_hi=
  1871. break
  1872. fi
  1873. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1874. fi
  1875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1876. done
  1877. else
  1878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1879. /* end confdefs.h. */
  1880. $4
  1881. int
  1882. main ()
  1883. {
  1884. static int test_array [1 - 2 * !(($2) < 0)];
  1885. test_array [0] = 0
  1886. ;
  1887. return 0;
  1888. }
  1889. _ACEOF
  1890. if ac_fn_c_try_compile "$LINENO"; then :
  1891. ac_hi=-1 ac_mid=-1
  1892. while :; do
  1893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1894. /* end confdefs.h. */
  1895. $4
  1896. int
  1897. main ()
  1898. {
  1899. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1900. test_array [0] = 0
  1901. ;
  1902. return 0;
  1903. }
  1904. _ACEOF
  1905. if ac_fn_c_try_compile "$LINENO"; then :
  1906. ac_lo=$ac_mid; break
  1907. else
  1908. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1909. if test $ac_mid -le $ac_hi; then
  1910. ac_lo= ac_hi=
  1911. break
  1912. fi
  1913. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1914. fi
  1915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1916. done
  1917. else
  1918. ac_lo= ac_hi=
  1919. fi
  1920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1921. fi
  1922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1923. # Binary search between lo and hi bounds.
  1924. while test "x$ac_lo" != "x$ac_hi"; do
  1925. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1927. /* end confdefs.h. */
  1928. $4
  1929. int
  1930. main ()
  1931. {
  1932. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1933. test_array [0] = 0
  1934. ;
  1935. return 0;
  1936. }
  1937. _ACEOF
  1938. if ac_fn_c_try_compile "$LINENO"; then :
  1939. ac_hi=$ac_mid
  1940. else
  1941. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1942. fi
  1943. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1944. done
  1945. case $ac_lo in #((
  1946. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1947. '') ac_retval=1 ;;
  1948. esac
  1949. else
  1950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1951. /* end confdefs.h. */
  1952. $4
  1953. static long int longval () { return $2; }
  1954. static unsigned long int ulongval () { return $2; }
  1955. #include <stdio.h>
  1956. #include <stdlib.h>
  1957. int
  1958. main ()
  1959. {
  1960. FILE *f = fopen ("conftest.val", "w");
  1961. if (! f)
  1962. return 1;
  1963. if (($2) < 0)
  1964. {
  1965. long int i = longval ();
  1966. if (i != ($2))
  1967. return 1;
  1968. fprintf (f, "%ld", i);
  1969. }
  1970. else
  1971. {
  1972. unsigned long int i = ulongval ();
  1973. if (i != ($2))
  1974. return 1;
  1975. fprintf (f, "%lu", i);
  1976. }
  1977. /* Do not output a trailing newline, as this causes \r\n confusion
  1978. on some platforms. */
  1979. return ferror (f) || fclose (f) != 0;
  1980. ;
  1981. return 0;
  1982. }
  1983. _ACEOF
  1984. if ac_fn_c_try_run "$LINENO"; then :
  1985. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1986. else
  1987. ac_retval=1
  1988. fi
  1989. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1990. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1991. rm -f conftest.val
  1992. fi
  1993. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1994. as_fn_set_status $ac_retval
  1995. } # ac_fn_c_compute_int
  1996. cat >config.log <<_ACEOF
  1997. This file contains any messages produced by compilers while
  1998. running configure, to aid debugging if configure makes a mistake.
  1999. It was created by $as_me, which was
  2000. generated by GNU Autoconf 2.65. Invocation command line was
  2001. $ $0 $@
  2002. _ACEOF
  2003. exec 5>>config.log
  2004. {
  2005. cat <<_ASUNAME
  2006. ## --------- ##
  2007. ## Platform. ##
  2008. ## --------- ##
  2009. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2010. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2011. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2012. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2013. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2014. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2015. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2016. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2017. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2018. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2019. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2020. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2021. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2022. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2023. _ASUNAME
  2024. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2025. for as_dir in $PATH
  2026. do
  2027. IFS=$as_save_IFS
  2028. test -z "$as_dir" && as_dir=.
  2029. $as_echo "PATH: $as_dir"
  2030. done
  2031. IFS=$as_save_IFS
  2032. } >&5
  2033. cat >&5 <<_ACEOF
  2034. ## ----------- ##
  2035. ## Core tests. ##
  2036. ## ----------- ##
  2037. _ACEOF
  2038. # Keep a trace of the command line.
  2039. # Strip out --no-create and --no-recursion so they do not pile up.
  2040. # Strip out --silent because we don't want to record it for future runs.
  2041. # Also quote any args containing shell meta-characters.
  2042. # Make two passes to allow for proper duplicate-argument suppression.
  2043. ac_configure_args=
  2044. ac_configure_args0=
  2045. ac_configure_args1=
  2046. ac_must_keep_next=false
  2047. for ac_pass in 1 2
  2048. do
  2049. for ac_arg
  2050. do
  2051. case $ac_arg in
  2052. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2053. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2054. | -silent | --silent | --silen | --sile | --sil)
  2055. continue ;;
  2056. *\'*)
  2057. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2058. esac
  2059. case $ac_pass in
  2060. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2061. 2)
  2062. as_fn_append ac_configure_args1 " '$ac_arg'"
  2063. if test $ac_must_keep_next = true; then
  2064. ac_must_keep_next=false # Got value, back to normal.
  2065. else
  2066. case $ac_arg in
  2067. *=* | --config-cache | -C | -disable-* | --disable-* \
  2068. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2069. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2070. | -with-* | --with-* | -without-* | --without-* | --x)
  2071. case "$ac_configure_args0 " in
  2072. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2073. esac
  2074. ;;
  2075. -* ) ac_must_keep_next=true ;;
  2076. esac
  2077. fi
  2078. as_fn_append ac_configure_args " '$ac_arg'"
  2079. ;;
  2080. esac
  2081. done
  2082. done
  2083. { ac_configure_args0=; unset ac_configure_args0;}
  2084. { ac_configure_args1=; unset ac_configure_args1;}
  2085. # When interrupted or exit'd, cleanup temporary files, and complete
  2086. # config.log. We remove comments because anyway the quotes in there
  2087. # would cause problems or look ugly.
  2088. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2089. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2090. trap 'exit_status=$?
  2091. # Save into config.log some information that might help in debugging.
  2092. {
  2093. echo
  2094. cat <<\_ASBOX
  2095. ## ---------------- ##
  2096. ## Cache variables. ##
  2097. ## ---------------- ##
  2098. _ASBOX
  2099. echo
  2100. # The following way of writing the cache mishandles newlines in values,
  2101. (
  2102. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2103. eval ac_val=\$$ac_var
  2104. case $ac_val in #(
  2105. *${as_nl}*)
  2106. case $ac_var in #(
  2107. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2108. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2109. esac
  2110. case $ac_var in #(
  2111. _ | IFS | as_nl) ;; #(
  2112. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2113. *) { eval $ac_var=; unset $ac_var;} ;;
  2114. esac ;;
  2115. esac
  2116. done
  2117. (set) 2>&1 |
  2118. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2119. *${as_nl}ac_space=\ *)
  2120. sed -n \
  2121. "s/'\''/'\''\\\\'\'''\''/g;
  2122. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2123. ;; #(
  2124. *)
  2125. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2126. ;;
  2127. esac |
  2128. sort
  2129. )
  2130. echo
  2131. cat <<\_ASBOX
  2132. ## ----------------- ##
  2133. ## Output variables. ##
  2134. ## ----------------- ##
  2135. _ASBOX
  2136. echo
  2137. for ac_var in $ac_subst_vars
  2138. do
  2139. eval ac_val=\$$ac_var
  2140. case $ac_val in
  2141. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2142. esac
  2143. $as_echo "$ac_var='\''$ac_val'\''"
  2144. done | sort
  2145. echo
  2146. if test -n "$ac_subst_files"; then
  2147. cat <<\_ASBOX
  2148. ## ------------------- ##
  2149. ## File substitutions. ##
  2150. ## ------------------- ##
  2151. _ASBOX
  2152. echo
  2153. for ac_var in $ac_subst_files
  2154. do
  2155. eval ac_val=\$$ac_var
  2156. case $ac_val in
  2157. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2158. esac
  2159. $as_echo "$ac_var='\''$ac_val'\''"
  2160. done | sort
  2161. echo
  2162. fi
  2163. if test -s confdefs.h; then
  2164. cat <<\_ASBOX
  2165. ## ----------- ##
  2166. ## confdefs.h. ##
  2167. ## ----------- ##
  2168. _ASBOX
  2169. echo
  2170. cat confdefs.h
  2171. echo
  2172. fi
  2173. test "$ac_signal" != 0 &&
  2174. $as_echo "$as_me: caught signal $ac_signal"
  2175. $as_echo "$as_me: exit $exit_status"
  2176. } >&5
  2177. rm -f core *.core core.conftest.* &&
  2178. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2179. exit $exit_status
  2180. ' 0
  2181. for ac_signal in 1 2 13 15; do
  2182. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2183. done
  2184. ac_signal=0
  2185. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2186. rm -f -r conftest* confdefs.h
  2187. $as_echo "/* confdefs.h */" > confdefs.h
  2188. # Predefined preprocessor variables.
  2189. cat >>confdefs.h <<_ACEOF
  2190. #define PACKAGE_NAME "$PACKAGE_NAME"
  2191. _ACEOF
  2192. cat >>confdefs.h <<_ACEOF
  2193. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2194. _ACEOF
  2195. cat >>confdefs.h <<_ACEOF
  2196. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2197. _ACEOF
  2198. cat >>confdefs.h <<_ACEOF
  2199. #define PACKAGE_STRING "$PACKAGE_STRING"
  2200. _ACEOF
  2201. cat >>confdefs.h <<_ACEOF
  2202. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2203. _ACEOF
  2204. cat >>confdefs.h <<_ACEOF
  2205. #define PACKAGE_URL "$PACKAGE_URL"
  2206. _ACEOF
  2207. # Let the site file select an alternate cache file if it wants to.
  2208. # Prefer an explicitly selected file to automatically selected ones.
  2209. ac_site_file1=NONE
  2210. ac_site_file2=NONE
  2211. if test -n "$CONFIG_SITE"; then
  2212. ac_site_file1=$CONFIG_SITE
  2213. elif test "x$prefix" != xNONE; then
  2214. ac_site_file1=$prefix/share/config.site
  2215. ac_site_file2=$prefix/etc/config.site
  2216. else
  2217. ac_site_file1=$ac_default_prefix/share/config.site
  2218. ac_site_file2=$ac_default_prefix/etc/config.site
  2219. fi
  2220. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2221. do
  2222. test "x$ac_site_file" = xNONE && continue
  2223. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2224. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2225. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2226. sed 's/^/| /' "$ac_site_file" >&5
  2227. . "$ac_site_file"
  2228. fi
  2229. done
  2230. if test -r "$cache_file"; then
  2231. # Some versions of bash will fail to source /dev/null (special files
  2232. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2233. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2234. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2235. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2236. case $cache_file in
  2237. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2238. *) . "./$cache_file";;
  2239. esac
  2240. fi
  2241. else
  2242. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2243. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2244. >$cache_file
  2245. fi
  2246. # Check that the precious variables saved in the cache have kept the same
  2247. # value.
  2248. ac_cache_corrupted=false
  2249. for ac_var in $ac_precious_vars; do
  2250. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2251. eval ac_new_set=\$ac_env_${ac_var}_set
  2252. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2253. eval ac_new_val=\$ac_env_${ac_var}_value
  2254. case $ac_old_set,$ac_new_set in
  2255. set,)
  2256. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2257. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2258. ac_cache_corrupted=: ;;
  2259. ,set)
  2260. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2261. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2262. ac_cache_corrupted=: ;;
  2263. ,);;
  2264. *)
  2265. if test "x$ac_old_val" != "x$ac_new_val"; then
  2266. # differences in whitespace do not lead to failure.
  2267. ac_old_val_w=`echo x $ac_old_val`
  2268. ac_new_val_w=`echo x $ac_new_val`
  2269. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2270. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2271. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2272. ac_cache_corrupted=:
  2273. else
  2274. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2275. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2276. eval $ac_var=\$ac_old_val
  2277. fi
  2278. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2279. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2280. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2281. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2282. fi;;
  2283. esac
  2284. # Pass precious variables to config.status.
  2285. if test "$ac_new_set" = set; then
  2286. case $ac_new_val in
  2287. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2288. *) ac_arg=$ac_var=$ac_new_val ;;
  2289. esac
  2290. case " $ac_configure_args " in
  2291. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2292. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2293. esac
  2294. fi
  2295. done
  2296. if $ac_cache_corrupted; then
  2297. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2298. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2299. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2300. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2301. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2302. fi
  2303. ## -------------------- ##
  2304. ## Main body of script. ##
  2305. ## -------------------- ##
  2306. ac_ext=c
  2307. ac_cpp='$CPP $CPPFLAGS'
  2308. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2309. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2310. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2311. am__api_version='1.11'
  2312. ac_aux_dir=
  2313. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2314. for ac_t in install-sh install.sh shtool; do
  2315. if test -f "$ac_dir/$ac_t"; then
  2316. ac_aux_dir=$ac_dir
  2317. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2318. break 2
  2319. fi
  2320. done
  2321. done
  2322. if test -z "$ac_aux_dir"; then
  2323. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2324. fi
  2325. # These three variables are undocumented and unsupported,
  2326. # and are intended to be withdrawn in a future Autoconf release.
  2327. # They can cause serious problems if a builder's source tree is in a directory
  2328. # whose full name contains unusual characters.
  2329. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2330. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2331. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2332. # Find a good install program. We prefer a C program (faster),
  2333. # so one script is as good as another. But avoid the broken or
  2334. # incompatible versions:
  2335. # SysV /etc/install, /usr/sbin/install
  2336. # SunOS /usr/etc/install
  2337. # IRIX /sbin/install
  2338. # AIX /bin/install
  2339. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2340. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2341. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2342. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2343. # OS/2's system install, which has a completely different semantic
  2344. # ./install, which can be erroneously created by make from ./install.sh.
  2345. # Reject install programs that cannot install multiple files.
  2346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2347. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2348. if test -z "$INSTALL"; then
  2349. if test "${ac_cv_path_install+set}" = set; then :
  2350. $as_echo_n "(cached) " >&6
  2351. else
  2352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2353. for as_dir in $PATH
  2354. do
  2355. IFS=$as_save_IFS
  2356. test -z "$as_dir" && as_dir=.
  2357. # Account for people who put trailing slashes in PATH elements.
  2358. case $as_dir/ in #((
  2359. ./ | .// | /[cC]/* | \
  2360. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2361. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2362. /usr/ucb/* ) ;;
  2363. *)
  2364. # OSF1 and SCO ODT 3.0 have their own names for install.
  2365. # Don't use installbsd from OSF since it installs stuff as root
  2366. # by default.
  2367. for ac_prog in ginstall scoinst install; do
  2368. for ac_exec_ext in '' $ac_executable_extensions; do
  2369. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2370. if test $ac_prog = install &&
  2371. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2372. # AIX install. It has an incompatible calling convention.
  2373. :
  2374. elif test $ac_prog = install &&
  2375. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2376. # program-specific install script used by HP pwplus--don't use.
  2377. :
  2378. else
  2379. rm -rf conftest.one conftest.two conftest.dir
  2380. echo one > conftest.one
  2381. echo two > conftest.two
  2382. mkdir conftest.dir
  2383. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2384. test -s conftest.one && test -s conftest.two &&
  2385. test -s conftest.dir/conftest.one &&
  2386. test -s conftest.dir/conftest.two
  2387. then
  2388. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2389. break 3
  2390. fi
  2391. fi
  2392. fi
  2393. done
  2394. done
  2395. ;;
  2396. esac
  2397. done
  2398. IFS=$as_save_IFS
  2399. rm -rf conftest.one conftest.two conftest.dir
  2400. fi
  2401. if test "${ac_cv_path_install+set}" = set; then
  2402. INSTALL=$ac_cv_path_install
  2403. else
  2404. # As a last resort, use the slow shell script. Don't cache a
  2405. # value for INSTALL within a source directory, because that will
  2406. # break other packages using the cache if that directory is
  2407. # removed, or if the value is a relative name.
  2408. INSTALL=$ac_install_sh
  2409. fi
  2410. fi
  2411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2412. $as_echo "$INSTALL" >&6; }
  2413. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2414. # It thinks the first close brace ends the variable substitution.
  2415. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2416. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2417. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2419. $as_echo_n "checking whether build environment is sane... " >&6; }
  2420. # Just in case
  2421. sleep 1
  2422. echo timestamp > conftest.file
  2423. # Reject unsafe characters in $srcdir or the absolute working directory
  2424. # name. Accept space and tab only in the latter.
  2425. am_lf='
  2426. '
  2427. case `pwd` in
  2428. *[\\\"\#\$\&\'\`$am_lf]*)
  2429. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2430. esac
  2431. case $srcdir in
  2432. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2433. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2434. esac
  2435. # Do `set' in a subshell so we don't clobber the current shell's
  2436. # arguments. Must try -L first in case configure is actually a
  2437. # symlink; some systems play weird games with the mod time of symlinks
  2438. # (eg FreeBSD returns the mod time of the symlink's containing
  2439. # directory).
  2440. if (
  2441. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2442. if test "$*" = "X"; then
  2443. # -L didn't work.
  2444. set X `ls -t "$srcdir/configure" conftest.file`
  2445. fi
  2446. rm -f conftest.file
  2447. if test "$*" != "X $srcdir/configure conftest.file" \
  2448. && test "$*" != "X conftest.file $srcdir/configure"; then
  2449. # If neither matched, then we have a broken ls. This can happen
  2450. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2451. # broken ls alias from the environment. This has actually
  2452. # happened. Such a system could not be considered "sane".
  2453. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2454. alias in your environment" "$LINENO" 5
  2455. fi
  2456. test "$2" = conftest.file
  2457. )
  2458. then
  2459. # Ok.
  2460. :
  2461. else
  2462. as_fn_error "newly created file is older than distributed files!
  2463. Check your system clock" "$LINENO" 5
  2464. fi
  2465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2466. $as_echo "yes" >&6; }
  2467. test "$program_prefix" != NONE &&
  2468. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2469. # Use a double $ so make ignores it.
  2470. test "$program_suffix" != NONE &&
  2471. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2472. # Double any \ or $.
  2473. # By default was `s,x,x', remove it if useless.
  2474. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2475. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2476. # expand $ac_aux_dir to an absolute path
  2477. am_aux_dir=`cd $ac_aux_dir && pwd`
  2478. if test x"${MISSING+set}" != xset; then
  2479. case $am_aux_dir in
  2480. *\ * | *\ *)
  2481. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2482. *)
  2483. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2484. esac
  2485. fi
  2486. # Use eval to expand $SHELL
  2487. if eval "$MISSING --run true"; then
  2488. am_missing_run="$MISSING --run "
  2489. else
  2490. am_missing_run=
  2491. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2492. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2493. fi
  2494. if test x"${install_sh}" != xset; then
  2495. case $am_aux_dir in
  2496. *\ * | *\ *)
  2497. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2498. *)
  2499. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2500. esac
  2501. fi
  2502. # Installed binaries are usually stripped using `strip' when the user
  2503. # run `make install-strip'. However `strip' might not be the right
  2504. # tool to use in cross-compilation environments, therefore Automake
  2505. # will honor the `STRIP' environment variable to overrule this program.
  2506. if test "$cross_compiling" != no; then
  2507. if test -n "$ac_tool_prefix"; then
  2508. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2509. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2511. $as_echo_n "checking for $ac_word... " >&6; }
  2512. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2513. $as_echo_n "(cached) " >&6
  2514. else
  2515. if test -n "$STRIP"; then
  2516. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2517. else
  2518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2519. for as_dir in $PATH
  2520. do
  2521. IFS=$as_save_IFS
  2522. test -z "$as_dir" && as_dir=.
  2523. for ac_exec_ext in '' $ac_executable_extensions; do
  2524. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2525. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2526. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2527. break 2
  2528. fi
  2529. done
  2530. done
  2531. IFS=$as_save_IFS
  2532. fi
  2533. fi
  2534. STRIP=$ac_cv_prog_STRIP
  2535. if test -n "$STRIP"; then
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2537. $as_echo "$STRIP" >&6; }
  2538. else
  2539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2540. $as_echo "no" >&6; }
  2541. fi
  2542. fi
  2543. if test -z "$ac_cv_prog_STRIP"; then
  2544. ac_ct_STRIP=$STRIP
  2545. # Extract the first word of "strip", so it can be a program name with args.
  2546. set dummy strip; ac_word=$2
  2547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2548. $as_echo_n "checking for $ac_word... " >&6; }
  2549. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2550. $as_echo_n "(cached) " >&6
  2551. else
  2552. if test -n "$ac_ct_STRIP"; then
  2553. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2554. else
  2555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2556. for as_dir in $PATH
  2557. do
  2558. IFS=$as_save_IFS
  2559. test -z "$as_dir" && as_dir=.
  2560. for ac_exec_ext in '' $ac_executable_extensions; do
  2561. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2562. ac_cv_prog_ac_ct_STRIP="strip"
  2563. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2564. break 2
  2565. fi
  2566. done
  2567. done
  2568. IFS=$as_save_IFS
  2569. fi
  2570. fi
  2571. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2572. if test -n "$ac_ct_STRIP"; then
  2573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2574. $as_echo "$ac_ct_STRIP" >&6; }
  2575. else
  2576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2577. $as_echo "no" >&6; }
  2578. fi
  2579. if test "x$ac_ct_STRIP" = x; then
  2580. STRIP=":"
  2581. else
  2582. case $cross_compiling:$ac_tool_warned in
  2583. yes:)
  2584. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2585. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2586. ac_tool_warned=yes ;;
  2587. esac
  2588. STRIP=$ac_ct_STRIP
  2589. fi
  2590. else
  2591. STRIP="$ac_cv_prog_STRIP"
  2592. fi
  2593. fi
  2594. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2596. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2597. if test -z "$MKDIR_P"; then
  2598. if test "${ac_cv_path_mkdir+set}" = set; then :
  2599. $as_echo_n "(cached) " >&6
  2600. else
  2601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2602. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2603. do
  2604. IFS=$as_save_IFS
  2605. test -z "$as_dir" && as_dir=.
  2606. for ac_prog in mkdir gmkdir; do
  2607. for ac_exec_ext in '' $ac_executable_extensions; do
  2608. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2609. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2610. 'mkdir (GNU coreutils) '* | \
  2611. 'mkdir (coreutils) '* | \
  2612. 'mkdir (fileutils) '4.1*)
  2613. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2614. break 3;;
  2615. esac
  2616. done
  2617. done
  2618. done
  2619. IFS=$as_save_IFS
  2620. fi
  2621. test -d ./--version && rmdir ./--version
  2622. if test "${ac_cv_path_mkdir+set}" = set; then
  2623. MKDIR_P="$ac_cv_path_mkdir -p"
  2624. else
  2625. # As a last resort, use the slow shell script. Don't cache a
  2626. # value for MKDIR_P within a source directory, because that will
  2627. # break other packages using the cache if that directory is
  2628. # removed, or if the value is a relative name.
  2629. MKDIR_P="$ac_install_sh -d"
  2630. fi
  2631. fi
  2632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2633. $as_echo "$MKDIR_P" >&6; }
  2634. mkdir_p="$MKDIR_P"
  2635. case $mkdir_p in
  2636. [\\/$]* | ?:[\\/]*) ;;
  2637. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2638. esac
  2639. for ac_prog in gawk mawk nawk awk
  2640. do
  2641. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2642. set dummy $ac_prog; ac_word=$2
  2643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2644. $as_echo_n "checking for $ac_word... " >&6; }
  2645. if test "${ac_cv_prog_AWK+set}" = set; then :
  2646. $as_echo_n "(cached) " >&6
  2647. else
  2648. if test -n "$AWK"; then
  2649. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2650. else
  2651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2652. for as_dir in $PATH
  2653. do
  2654. IFS=$as_save_IFS
  2655. test -z "$as_dir" && as_dir=.
  2656. for ac_exec_ext in '' $ac_executable_extensions; do
  2657. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2658. ac_cv_prog_AWK="$ac_prog"
  2659. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2660. break 2
  2661. fi
  2662. done
  2663. done
  2664. IFS=$as_save_IFS
  2665. fi
  2666. fi
  2667. AWK=$ac_cv_prog_AWK
  2668. if test -n "$AWK"; then
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2670. $as_echo "$AWK" >&6; }
  2671. else
  2672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2673. $as_echo "no" >&6; }
  2674. fi
  2675. test -n "$AWK" && break
  2676. done
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2678. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2679. set x ${MAKE-make}
  2680. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2681. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2682. $as_echo_n "(cached) " >&6
  2683. else
  2684. cat >conftest.make <<\_ACEOF
  2685. SHELL = /bin/sh
  2686. all:
  2687. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2688. _ACEOF
  2689. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2690. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2691. *@@@%%%=?*=@@@%%%*)
  2692. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2693. *)
  2694. eval ac_cv_prog_make_${ac_make}_set=no;;
  2695. esac
  2696. rm -f conftest.make
  2697. fi
  2698. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2700. $as_echo "yes" >&6; }
  2701. SET_MAKE=
  2702. else
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2704. $as_echo "no" >&6; }
  2705. SET_MAKE="MAKE=${MAKE-make}"
  2706. fi
  2707. rm -rf .tst 2>/dev/null
  2708. mkdir .tst 2>/dev/null
  2709. if test -d .tst; then
  2710. am__leading_dot=.
  2711. else
  2712. am__leading_dot=_
  2713. fi
  2714. rmdir .tst 2>/dev/null
  2715. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2716. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2717. # is not polluted with repeated "-I."
  2718. am__isrc=' -I$(srcdir)'
  2719. # test to see if srcdir already configured
  2720. if test -f $srcdir/config.status; then
  2721. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2722. fi
  2723. fi
  2724. # test whether we have cygpath
  2725. if test -z "$CYGPATH_W"; then
  2726. if (cygpath --version) >/dev/null 2>/dev/null; then
  2727. CYGPATH_W='cygpath -w'
  2728. else
  2729. CYGPATH_W=echo
  2730. fi
  2731. fi
  2732. # Define the identity of the package.
  2733. PACKAGE=msntp
  2734. VERSION=1.6
  2735. cat >>confdefs.h <<_ACEOF
  2736. #define PACKAGE "$PACKAGE"
  2737. _ACEOF
  2738. cat >>confdefs.h <<_ACEOF
  2739. #define VERSION "$VERSION"
  2740. _ACEOF
  2741. # Some tools Automake needs.
  2742. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2743. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2744. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2745. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2746. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2747. # We need awk for the "check" target. The system "awk" is bad on
  2748. # some platforms.
  2749. # Always define AMTAR for backward compatibility.
  2750. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2751. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2752. # Make sure we can run config.sub.
  2753. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2754. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2756. $as_echo_n "checking build system type... " >&6; }
  2757. if test "${ac_cv_build+set}" = set; then :
  2758. $as_echo_n "(cached) " >&6
  2759. else
  2760. ac_build_alias=$build_alias
  2761. test "x$ac_build_alias" = x &&
  2762. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2763. test "x$ac_build_alias" = x &&
  2764. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2765. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2766. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2767. fi
  2768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2769. $as_echo "$ac_cv_build" >&6; }
  2770. case $ac_cv_build in
  2771. *-*-*) ;;
  2772. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2773. esac
  2774. build=$ac_cv_build
  2775. ac_save_IFS=$IFS; IFS='-'
  2776. set x $ac_cv_build
  2777. shift
  2778. build_cpu=$1
  2779. build_vendor=$2
  2780. shift; shift
  2781. # Remember, the first character of IFS is used to create $*,
  2782. # except with old shells:
  2783. build_os=$*
  2784. IFS=$ac_save_IFS
  2785. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2787. $as_echo_n "checking host system type... " >&6; }
  2788. if test "${ac_cv_host+set}" = set; then :
  2789. $as_echo_n "(cached) " >&6
  2790. else
  2791. if test "x$host_alias" = x; then
  2792. ac_cv_host=$ac_cv_build
  2793. else
  2794. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2795. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2796. fi
  2797. fi
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2799. $as_echo "$ac_cv_host" >&6; }
  2800. case $ac_cv_host in
  2801. *-*-*) ;;
  2802. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2803. esac
  2804. host=$ac_cv_host
  2805. ac_save_IFS=$IFS; IFS='-'
  2806. set x $ac_cv_host
  2807. shift
  2808. host_cpu=$1
  2809. host_vendor=$2
  2810. shift; shift
  2811. # Remember, the first character of IFS is used to create $*,
  2812. # except with old shells:
  2813. host_os=$*
  2814. IFS=$ac_save_IFS
  2815. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2816. ac_config_headers="$ac_config_headers config.h"
  2817. # Checks for programs.
  2818. ac_ext=c
  2819. ac_cpp='$CPP $CPPFLAGS'
  2820. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2821. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2822. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2823. if test -n "$ac_tool_prefix"; then
  2824. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2825. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2827. $as_echo_n "checking for $ac_word... " >&6; }
  2828. if test "${ac_cv_prog_CC+set}" = set; then :
  2829. $as_echo_n "(cached) " >&6
  2830. else
  2831. if test -n "$CC"; then
  2832. ac_cv_prog_CC="$CC" # Let the user override the test.
  2833. else
  2834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2835. for as_dir in $PATH
  2836. do
  2837. IFS=$as_save_IFS
  2838. test -z "$as_dir" && as_dir=.
  2839. for ac_exec_ext in '' $ac_executable_extensions; do
  2840. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2841. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2842. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2843. break 2
  2844. fi
  2845. done
  2846. done
  2847. IFS=$as_save_IFS
  2848. fi
  2849. fi
  2850. CC=$ac_cv_prog_CC
  2851. if test -n "$CC"; then
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2853. $as_echo "$CC" >&6; }
  2854. else
  2855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2856. $as_echo "no" >&6; }
  2857. fi
  2858. fi
  2859. if test -z "$ac_cv_prog_CC"; then
  2860. ac_ct_CC=$CC
  2861. # Extract the first word of "gcc", so it can be a program name with args.
  2862. set dummy gcc; ac_word=$2
  2863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2864. $as_echo_n "checking for $ac_word... " >&6; }
  2865. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2866. $as_echo_n "(cached) " >&6
  2867. else
  2868. if test -n "$ac_ct_CC"; then
  2869. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2870. else
  2871. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2872. for as_dir in $PATH
  2873. do
  2874. IFS=$as_save_IFS
  2875. test -z "$as_dir" && as_dir=.
  2876. for ac_exec_ext in '' $ac_executable_extensions; do
  2877. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2878. ac_cv_prog_ac_ct_CC="gcc"
  2879. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2880. break 2
  2881. fi
  2882. done
  2883. done
  2884. IFS=$as_save_IFS
  2885. fi
  2886. fi
  2887. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2888. if test -n "$ac_ct_CC"; then
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2890. $as_echo "$ac_ct_CC" >&6; }
  2891. else
  2892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2893. $as_echo "no" >&6; }
  2894. fi
  2895. if test "x$ac_ct_CC" = x; then
  2896. CC=""
  2897. else
  2898. case $cross_compiling:$ac_tool_warned in
  2899. yes:)
  2900. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2901. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2902. ac_tool_warned=yes ;;
  2903. esac
  2904. CC=$ac_ct_CC
  2905. fi
  2906. else
  2907. CC="$ac_cv_prog_CC"
  2908. fi
  2909. if test -z "$CC"; then
  2910. if test -n "$ac_tool_prefix"; then
  2911. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2912. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2914. $as_echo_n "checking for $ac_word... " >&6; }
  2915. if test "${ac_cv_prog_CC+set}" = set; then :
  2916. $as_echo_n "(cached) " >&6
  2917. else
  2918. if test -n "$CC"; then
  2919. ac_cv_prog_CC="$CC" # Let the user override the test.
  2920. else
  2921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2922. for as_dir in $PATH
  2923. do
  2924. IFS=$as_save_IFS
  2925. test -z "$as_dir" && as_dir=.
  2926. for ac_exec_ext in '' $ac_executable_extensions; do
  2927. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2928. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2929. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2930. break 2
  2931. fi
  2932. done
  2933. done
  2934. IFS=$as_save_IFS
  2935. fi
  2936. fi
  2937. CC=$ac_cv_prog_CC
  2938. if test -n "$CC"; then
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2940. $as_echo "$CC" >&6; }
  2941. else
  2942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2943. $as_echo "no" >&6; }
  2944. fi
  2945. fi
  2946. fi
  2947. if test -z "$CC"; then
  2948. # Extract the first word of "cc", so it can be a program name with args.
  2949. set dummy cc; ac_word=$2
  2950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2951. $as_echo_n "checking for $ac_word... " >&6; }
  2952. if test "${ac_cv_prog_CC+set}" = set; then :
  2953. $as_echo_n "(cached) " >&6
  2954. else
  2955. if test -n "$CC"; then
  2956. ac_cv_prog_CC="$CC" # Let the user override the test.
  2957. else
  2958. ac_prog_rejected=no
  2959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2960. for as_dir in $PATH
  2961. do
  2962. IFS=$as_save_IFS
  2963. test -z "$as_dir" && as_dir=.
  2964. for ac_exec_ext in '' $ac_executable_extensions; do
  2965. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2966. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2967. ac_prog_rejected=yes
  2968. continue
  2969. fi
  2970. ac_cv_prog_CC="cc"
  2971. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2972. break 2
  2973. fi
  2974. done
  2975. done
  2976. IFS=$as_save_IFS
  2977. if test $ac_prog_rejected = yes; then
  2978. # We found a bogon in the path, so make sure we never use it.
  2979. set dummy $ac_cv_prog_CC
  2980. shift
  2981. if test $# != 0; then
  2982. # We chose a different compiler from the bogus one.
  2983. # However, it has the same basename, so the bogon will be chosen
  2984. # first if we set CC to just the basename; use the full file name.
  2985. shift
  2986. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2987. fi
  2988. fi
  2989. fi
  2990. fi
  2991. CC=$ac_cv_prog_CC
  2992. if test -n "$CC"; then
  2993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2994. $as_echo "$CC" >&6; }
  2995. else
  2996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2997. $as_echo "no" >&6; }
  2998. fi
  2999. fi
  3000. if test -z "$CC"; then
  3001. if test -n "$ac_tool_prefix"; then
  3002. for ac_prog in cl.exe
  3003. do
  3004. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3005. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3007. $as_echo_n "checking for $ac_word... " >&6; }
  3008. if test "${ac_cv_prog_CC+set}" = set; then :
  3009. $as_echo_n "(cached) " >&6
  3010. else
  3011. if test -n "$CC"; then
  3012. ac_cv_prog_CC="$CC" # Let the user override the test.
  3013. else
  3014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3015. for as_dir in $PATH
  3016. do
  3017. IFS=$as_save_IFS
  3018. test -z "$as_dir" && as_dir=.
  3019. for ac_exec_ext in '' $ac_executable_extensions; do
  3020. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3021. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3022. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3023. break 2
  3024. fi
  3025. done
  3026. done
  3027. IFS=$as_save_IFS
  3028. fi
  3029. fi
  3030. CC=$ac_cv_prog_CC
  3031. if test -n "$CC"; then
  3032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3033. $as_echo "$CC" >&6; }
  3034. else
  3035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3036. $as_echo "no" >&6; }
  3037. fi
  3038. test -n "$CC" && break
  3039. done
  3040. fi
  3041. if test -z "$CC"; then
  3042. ac_ct_CC=$CC
  3043. for ac_prog in cl.exe
  3044. do
  3045. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3046. set dummy $ac_prog; ac_word=$2
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3048. $as_echo_n "checking for $ac_word... " >&6; }
  3049. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3050. $as_echo_n "(cached) " >&6
  3051. else
  3052. if test -n "$ac_ct_CC"; then
  3053. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3054. else
  3055. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3056. for as_dir in $PATH
  3057. do
  3058. IFS=$as_save_IFS
  3059. test -z "$as_dir" && as_dir=.
  3060. for ac_exec_ext in '' $ac_executable_extensions; do
  3061. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3062. ac_cv_prog_ac_ct_CC="$ac_prog"
  3063. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3064. break 2
  3065. fi
  3066. done
  3067. done
  3068. IFS=$as_save_IFS
  3069. fi
  3070. fi
  3071. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3072. if test -n "$ac_ct_CC"; then
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3074. $as_echo "$ac_ct_CC" >&6; }
  3075. else
  3076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3077. $as_echo "no" >&6; }
  3078. fi
  3079. test -n "$ac_ct_CC" && break
  3080. done
  3081. if test "x$ac_ct_CC" = x; then
  3082. CC=""
  3083. else
  3084. case $cross_compiling:$ac_tool_warned in
  3085. yes:)
  3086. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3087. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3088. ac_tool_warned=yes ;;
  3089. esac
  3090. CC=$ac_ct_CC
  3091. fi
  3092. fi
  3093. fi
  3094. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3095. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3096. as_fn_error "no acceptable C compiler found in \$PATH
  3097. See \`config.log' for more details." "$LINENO" 5; }
  3098. # Provide some information about the compiler.
  3099. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3100. set X $ac_compile
  3101. ac_compiler=$2
  3102. for ac_option in --version -v -V -qversion; do
  3103. { { ac_try="$ac_compiler $ac_option >&5"
  3104. case "(($ac_try" in
  3105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3106. *) ac_try_echo=$ac_try;;
  3107. esac
  3108. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3109. $as_echo "$ac_try_echo"; } >&5
  3110. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3111. ac_status=$?
  3112. if test -s conftest.err; then
  3113. sed '10a\
  3114. ... rest of stderr output deleted ...
  3115. 10q' conftest.err >conftest.er1
  3116. cat conftest.er1 >&5
  3117. fi
  3118. rm -f conftest.er1 conftest.err
  3119. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3120. test $ac_status = 0; }
  3121. done
  3122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3123. /* end confdefs.h. */
  3124. int
  3125. main ()
  3126. {
  3127. ;
  3128. return 0;
  3129. }
  3130. _ACEOF
  3131. ac_clean_files_save=$ac_clean_files
  3132. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3133. # Try to create an executable without -o first, disregard a.out.
  3134. # It will help us diagnose broken compilers, and finding out an intuition
  3135. # of exeext.
  3136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3137. $as_echo_n "checking whether the C compiler works... " >&6; }
  3138. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3139. # The possible output files:
  3140. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3141. ac_rmfiles=
  3142. for ac_file in $ac_files
  3143. do
  3144. case $ac_file in
  3145. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3146. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3147. esac
  3148. done
  3149. rm -f $ac_rmfiles
  3150. if { { ac_try="$ac_link_default"
  3151. case "(($ac_try" in
  3152. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3153. *) ac_try_echo=$ac_try;;
  3154. esac
  3155. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3156. $as_echo "$ac_try_echo"; } >&5
  3157. (eval "$ac_link_default") 2>&5
  3158. ac_status=$?
  3159. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3160. test $ac_status = 0; }; then :
  3161. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3162. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3163. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3164. # so that the user can short-circuit this test for compilers unknown to
  3165. # Autoconf.
  3166. for ac_file in $ac_files ''
  3167. do
  3168. test -f "$ac_file" || continue
  3169. case $ac_file in
  3170. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3171. ;;
  3172. [ab].out )
  3173. # We found the default executable, but exeext='' is most
  3174. # certainly right.
  3175. break;;
  3176. *.* )
  3177. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3178. then :; else
  3179. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3180. fi
  3181. # We set ac_cv_exeext here because the later test for it is not
  3182. # safe: cross compilers may not add the suffix if given an `-o'
  3183. # argument, so we may need to know it at that point already.
  3184. # Even if this section looks crufty: it has the advantage of
  3185. # actually working.
  3186. break;;
  3187. * )
  3188. break;;
  3189. esac
  3190. done
  3191. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3192. else
  3193. ac_file=''
  3194. fi
  3195. if test -z "$ac_file"; then :
  3196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3197. $as_echo "no" >&6; }
  3198. $as_echo "$as_me: failed program was:" >&5
  3199. sed 's/^/| /' conftest.$ac_ext >&5
  3200. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3201. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3202. { as_fn_set_status 77
  3203. as_fn_error "C compiler cannot create executables
  3204. See \`config.log' for more details." "$LINENO" 5; }; }
  3205. else
  3206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3207. $as_echo "yes" >&6; }
  3208. fi
  3209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3210. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3212. $as_echo "$ac_file" >&6; }
  3213. ac_exeext=$ac_cv_exeext
  3214. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3215. ac_clean_files=$ac_clean_files_save
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3217. $as_echo_n "checking for suffix of executables... " >&6; }
  3218. if { { ac_try="$ac_link"
  3219. case "(($ac_try" in
  3220. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3221. *) ac_try_echo=$ac_try;;
  3222. esac
  3223. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3224. $as_echo "$ac_try_echo"; } >&5
  3225. (eval "$ac_link") 2>&5
  3226. ac_status=$?
  3227. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3228. test $ac_status = 0; }; then :
  3229. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3230. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3231. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3232. # `rm'.
  3233. for ac_file in conftest.exe conftest conftest.*; do
  3234. test -f "$ac_file" || continue
  3235. case $ac_file in
  3236. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3237. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3238. break;;
  3239. * ) break;;
  3240. esac
  3241. done
  3242. else
  3243. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3244. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3245. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3246. See \`config.log' for more details." "$LINENO" 5; }
  3247. fi
  3248. rm -f conftest conftest$ac_cv_exeext
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3250. $as_echo "$ac_cv_exeext" >&6; }
  3251. rm -f conftest.$ac_ext
  3252. EXEEXT=$ac_cv_exeext
  3253. ac_exeext=$EXEEXT
  3254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3255. /* end confdefs.h. */
  3256. #include <stdio.h>
  3257. int
  3258. main ()
  3259. {
  3260. FILE *f = fopen ("conftest.out", "w");
  3261. return ferror (f) || fclose (f) != 0;
  3262. ;
  3263. return 0;
  3264. }
  3265. _ACEOF
  3266. ac_clean_files="$ac_clean_files conftest.out"
  3267. # Check that the compiler produces executables we can run. If not, either
  3268. # the compiler is broken, or we cross compile.
  3269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3270. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3271. if test "$cross_compiling" != yes; then
  3272. { { ac_try="$ac_link"
  3273. case "(($ac_try" in
  3274. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3275. *) ac_try_echo=$ac_try;;
  3276. esac
  3277. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3278. $as_echo "$ac_try_echo"; } >&5
  3279. (eval "$ac_link") 2>&5
  3280. ac_status=$?
  3281. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3282. test $ac_status = 0; }
  3283. if { ac_try='./conftest$ac_cv_exeext'
  3284. { { case "(($ac_try" in
  3285. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3286. *) ac_try_echo=$ac_try;;
  3287. esac
  3288. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3289. $as_echo "$ac_try_echo"; } >&5
  3290. (eval "$ac_try") 2>&5
  3291. ac_status=$?
  3292. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3293. test $ac_status = 0; }; }; then
  3294. cross_compiling=no
  3295. else
  3296. if test "$cross_compiling" = maybe; then
  3297. cross_compiling=yes
  3298. else
  3299. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3300. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3301. as_fn_error "cannot run C compiled programs.
  3302. If you meant to cross compile, use \`--host'.
  3303. See \`config.log' for more details." "$LINENO" 5; }
  3304. fi
  3305. fi
  3306. fi
  3307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3308. $as_echo "$cross_compiling" >&6; }
  3309. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3310. ac_clean_files=$ac_clean_files_save
  3311. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3312. $as_echo_n "checking for suffix of object files... " >&6; }
  3313. if test "${ac_cv_objext+set}" = set; then :
  3314. $as_echo_n "(cached) " >&6
  3315. else
  3316. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3317. /* end confdefs.h. */
  3318. int
  3319. main ()
  3320. {
  3321. ;
  3322. return 0;
  3323. }
  3324. _ACEOF
  3325. rm -f conftest.o conftest.obj
  3326. if { { ac_try="$ac_compile"
  3327. case "(($ac_try" in
  3328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3329. *) ac_try_echo=$ac_try;;
  3330. esac
  3331. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3332. $as_echo "$ac_try_echo"; } >&5
  3333. (eval "$ac_compile") 2>&5
  3334. ac_status=$?
  3335. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3336. test $ac_status = 0; }; then :
  3337. for ac_file in conftest.o conftest.obj conftest.*; do
  3338. test -f "$ac_file" || continue;
  3339. case $ac_file in
  3340. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3341. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3342. break;;
  3343. esac
  3344. done
  3345. else
  3346. $as_echo "$as_me: failed program was:" >&5
  3347. sed 's/^/| /' conftest.$ac_ext >&5
  3348. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3349. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3350. as_fn_error "cannot compute suffix of object files: cannot compile
  3351. See \`config.log' for more details." "$LINENO" 5; }
  3352. fi
  3353. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3354. fi
  3355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3356. $as_echo "$ac_cv_objext" >&6; }
  3357. OBJEXT=$ac_cv_objext
  3358. ac_objext=$OBJEXT
  3359. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3360. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3361. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3362. $as_echo_n "(cached) " >&6
  3363. else
  3364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3365. /* end confdefs.h. */
  3366. int
  3367. main ()
  3368. {
  3369. #ifndef __GNUC__
  3370. choke me
  3371. #endif
  3372. ;
  3373. return 0;
  3374. }
  3375. _ACEOF
  3376. if ac_fn_c_try_compile "$LINENO"; then :
  3377. ac_compiler_gnu=yes
  3378. else
  3379. ac_compiler_gnu=no
  3380. fi
  3381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3382. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3383. fi
  3384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3385. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3386. if test $ac_compiler_gnu = yes; then
  3387. GCC=yes
  3388. else
  3389. GCC=
  3390. fi
  3391. ac_test_CFLAGS=${CFLAGS+set}
  3392. ac_save_CFLAGS=$CFLAGS
  3393. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3394. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3395. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3396. $as_echo_n "(cached) " >&6
  3397. else
  3398. ac_save_c_werror_flag=$ac_c_werror_flag
  3399. ac_c_werror_flag=yes
  3400. ac_cv_prog_cc_g=no
  3401. CFLAGS="-g"
  3402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3403. /* end confdefs.h. */
  3404. int
  3405. main ()
  3406. {
  3407. ;
  3408. return 0;
  3409. }
  3410. _ACEOF
  3411. if ac_fn_c_try_compile "$LINENO"; then :
  3412. ac_cv_prog_cc_g=yes
  3413. else
  3414. CFLAGS=""
  3415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3416. /* end confdefs.h. */
  3417. int
  3418. main ()
  3419. {
  3420. ;
  3421. return 0;
  3422. }
  3423. _ACEOF
  3424. if ac_fn_c_try_compile "$LINENO"; then :
  3425. else
  3426. ac_c_werror_flag=$ac_save_c_werror_flag
  3427. CFLAGS="-g"
  3428. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3429. /* end confdefs.h. */
  3430. int
  3431. main ()
  3432. {
  3433. ;
  3434. return 0;
  3435. }
  3436. _ACEOF
  3437. if ac_fn_c_try_compile "$LINENO"; then :
  3438. ac_cv_prog_cc_g=yes
  3439. fi
  3440. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3441. fi
  3442. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3443. fi
  3444. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3445. ac_c_werror_flag=$ac_save_c_werror_flag
  3446. fi
  3447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3448. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3449. if test "$ac_test_CFLAGS" = set; then
  3450. CFLAGS=$ac_save_CFLAGS
  3451. elif test $ac_cv_prog_cc_g = yes; then
  3452. if test "$GCC" = yes; then
  3453. CFLAGS="-g -O2"
  3454. else
  3455. CFLAGS="-g"
  3456. fi
  3457. else
  3458. if test "$GCC" = yes; then
  3459. CFLAGS="-O2"
  3460. else
  3461. CFLAGS=
  3462. fi
  3463. fi
  3464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3465. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3466. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3467. $as_echo_n "(cached) " >&6
  3468. else
  3469. ac_cv_prog_cc_c89=no
  3470. ac_save_CC=$CC
  3471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3472. /* end confdefs.h. */
  3473. #include <stdarg.h>
  3474. #include <stdio.h>
  3475. #include <sys/types.h>
  3476. #include <sys/stat.h>
  3477. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3478. struct buf { int x; };
  3479. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3480. static char *e (p, i)
  3481. char **p;
  3482. int i;
  3483. {
  3484. return p[i];
  3485. }
  3486. static char *f (char * (*g) (char **, int), char **p, ...)
  3487. {
  3488. char *s;
  3489. va_list v;
  3490. va_start (v,p);
  3491. s = g (p, va_arg (v,int));
  3492. va_end (v);
  3493. return s;
  3494. }
  3495. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3496. function prototypes and stuff, but not '\xHH' hex character constants.
  3497. These don't provoke an error unfortunately, instead are silently treated
  3498. as 'x'. The following induces an error, until -std is added to get
  3499. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3500. array size at least. It's necessary to write '\x00'==0 to get something
  3501. that's true only with -std. */
  3502. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3503. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3504. inside strings and character constants. */
  3505. #define FOO(x) 'x'
  3506. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3507. int test (int i, double x);
  3508. struct s1 {int (*f) (int a);};
  3509. struct s2 {int (*f) (double a);};
  3510. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3511. int argc;
  3512. char **argv;
  3513. int
  3514. main ()
  3515. {
  3516. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3517. ;
  3518. return 0;
  3519. }
  3520. _ACEOF
  3521. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3522. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3523. do
  3524. CC="$ac_save_CC $ac_arg"
  3525. if ac_fn_c_try_compile "$LINENO"; then :
  3526. ac_cv_prog_cc_c89=$ac_arg
  3527. fi
  3528. rm -f core conftest.err conftest.$ac_objext
  3529. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3530. done
  3531. rm -f conftest.$ac_ext
  3532. CC=$ac_save_CC
  3533. fi
  3534. # AC_CACHE_VAL
  3535. case "x$ac_cv_prog_cc_c89" in
  3536. x)
  3537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3538. $as_echo "none needed" >&6; } ;;
  3539. xno)
  3540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3541. $as_echo "unsupported" >&6; } ;;
  3542. *)
  3543. CC="$CC $ac_cv_prog_cc_c89"
  3544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3545. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3546. esac
  3547. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3548. fi
  3549. ac_ext=c
  3550. ac_cpp='$CPP $CPPFLAGS'
  3551. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3552. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3553. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3554. DEPDIR="${am__leading_dot}deps"
  3555. ac_config_commands="$ac_config_commands depfiles"
  3556. am_make=${MAKE-make}
  3557. cat > confinc << 'END'
  3558. am__doit:
  3559. @echo this is the am__doit target
  3560. .PHONY: am__doit
  3561. END
  3562. # If we don't find an include directive, just comment out the code.
  3563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3564. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3565. am__include="#"
  3566. am__quote=
  3567. _am_result=none
  3568. # First try GNU make style include.
  3569. echo "include confinc" > confmf
  3570. # Ignore all kinds of additional output from `make'.
  3571. case `$am_make -s -f confmf 2> /dev/null` in #(
  3572. *the\ am__doit\ target*)
  3573. am__include=include
  3574. am__quote=
  3575. _am_result=GNU
  3576. ;;
  3577. esac
  3578. # Now try BSD make style include.
  3579. if test "$am__include" = "#"; then
  3580. echo '.include "confinc"' > confmf
  3581. case `$am_make -s -f confmf 2> /dev/null` in #(
  3582. *the\ am__doit\ target*)
  3583. am__include=.include
  3584. am__quote="\""
  3585. _am_result=BSD
  3586. ;;
  3587. esac
  3588. fi
  3589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3590. $as_echo "$_am_result" >&6; }
  3591. rm -f confinc confmf
  3592. # Check whether --enable-dependency-tracking was given.
  3593. if test "${enable_dependency_tracking+set}" = set; then :
  3594. enableval=$enable_dependency_tracking;
  3595. fi
  3596. if test "x$enable_dependency_tracking" != xno; then
  3597. am_depcomp="$ac_aux_dir/depcomp"
  3598. AMDEPBACKSLASH='\'
  3599. fi
  3600. if test "x$enable_dependency_tracking" != xno; then
  3601. AMDEP_TRUE=
  3602. AMDEP_FALSE='#'
  3603. else
  3604. AMDEP_TRUE='#'
  3605. AMDEP_FALSE=
  3606. fi
  3607. depcc="$CC" am_compiler_list=
  3608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3609. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3610. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3611. $as_echo_n "(cached) " >&6
  3612. else
  3613. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3614. # We make a subdir and do the tests there. Otherwise we can end up
  3615. # making bogus files that we don't know about and never remove. For
  3616. # instance it was reported that on HP-UX the gcc test will end up
  3617. # making a dummy file named `D' -- because `-MD' means `put the output
  3618. # in D'.
  3619. mkdir conftest.dir
  3620. # Copy depcomp to subdir because otherwise we won't find it if we're
  3621. # using a relative directory.
  3622. cp "$am_depcomp" conftest.dir
  3623. cd conftest.dir
  3624. # We will build objects and dependencies in a subdirectory because
  3625. # it helps to detect inapplicable dependency modes. For instance
  3626. # both Tru64's cc and ICC support -MD to output dependencies as a
  3627. # side effect of compilation, but ICC will put the dependencies in
  3628. # the current directory while Tru64 will put them in the object
  3629. # directory.
  3630. mkdir sub
  3631. am_cv_CC_dependencies_compiler_type=none
  3632. if test "$am_compiler_list" = ""; then
  3633. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3634. fi
  3635. am__universal=false
  3636. case " $depcc " in #(
  3637. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3638. esac
  3639. for depmode in $am_compiler_list; do
  3640. # Setup a source with many dependencies, because some compilers
  3641. # like to wrap large dependency lists on column 80 (with \), and
  3642. # we should not choose a depcomp mode which is confused by this.
  3643. #
  3644. # We need to recreate these files for each test, as the compiler may
  3645. # overwrite some of them when testing with obscure command lines.
  3646. # This happens at least with the AIX C compiler.
  3647. : > sub/conftest.c
  3648. for i in 1 2 3 4 5 6; do
  3649. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3650. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3651. # Solaris 8's {/usr,}/bin/sh.
  3652. touch sub/conftst$i.h
  3653. done
  3654. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3655. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3656. # mode. It turns out that the SunPro C++ compiler does not properly
  3657. # handle `-M -o', and we need to detect this. Also, some Intel
  3658. # versions had trouble with output in subdirs
  3659. am__obj=sub/conftest.${OBJEXT-o}
  3660. am__minus_obj="-o $am__obj"
  3661. case $depmode in
  3662. gcc)
  3663. # This depmode causes a compiler race in universal mode.
  3664. test "$am__universal" = false || continue
  3665. ;;
  3666. nosideeffect)
  3667. # after this tag, mechanisms are not by side-effect, so they'll
  3668. # only be used when explicitly requested
  3669. if test "x$enable_dependency_tracking" = xyes; then
  3670. continue
  3671. else
  3672. break
  3673. fi
  3674. ;;
  3675. msvisualcpp | msvcmsys)
  3676. # This compiler won't grok `-c -o', but also, the minuso test has
  3677. # not run yet. These depmodes are late enough in the game, and
  3678. # so weak that their functioning should not be impacted.
  3679. am__obj=conftest.${OBJEXT-o}
  3680. am__minus_obj=
  3681. ;;
  3682. none) break ;;
  3683. esac
  3684. if depmode=$depmode \
  3685. source=sub/conftest.c object=$am__obj \
  3686. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3687. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3688. >/dev/null 2>conftest.err &&
  3689. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3690. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3691. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3692. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3693. # icc doesn't choke on unknown options, it will just issue warnings
  3694. # or remarks (even with -Werror). So we grep stderr for any message
  3695. # that says an option was ignored or not supported.
  3696. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3697. # icc: Command line warning: ignoring option '-M'; no argument required
  3698. # The diagnosis changed in icc 8.0:
  3699. # icc: Command line remark: option '-MP' not supported
  3700. if (grep 'ignoring option' conftest.err ||
  3701. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3702. am_cv_CC_dependencies_compiler_type=$depmode
  3703. break
  3704. fi
  3705. fi
  3706. done
  3707. cd ..
  3708. rm -rf conftest.dir
  3709. else
  3710. am_cv_CC_dependencies_compiler_type=none
  3711. fi
  3712. fi
  3713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3714. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3715. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3716. if
  3717. test "x$enable_dependency_tracking" != xno \
  3718. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3719. am__fastdepCC_TRUE=
  3720. am__fastdepCC_FALSE='#'
  3721. else
  3722. am__fastdepCC_TRUE='#'
  3723. am__fastdepCC_FALSE=
  3724. fi
  3725. # So far, the only shared library we might use is libopts.
  3726. # It's a small library - we might as well use a static version of it.
  3727. # Check whether --enable-shared was given.
  3728. if test "${enable_shared+set}" = set; then :
  3729. enableval=$enable_shared; p=${PACKAGE-default}
  3730. case $enableval in
  3731. yes) enable_shared=yes ;;
  3732. no) enable_shared=no ;;
  3733. *)
  3734. enable_shared=no
  3735. # Look at the argument we got. We use all the common list separators.
  3736. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3737. for pkg in $enableval; do
  3738. IFS="$lt_save_ifs"
  3739. if test "X$pkg" = "X$p"; then
  3740. enable_shared=yes
  3741. fi
  3742. done
  3743. IFS="$lt_save_ifs"
  3744. ;;
  3745. esac
  3746. else
  3747. enable_shared=no
  3748. fi
  3749. # Check whether --enable-static was given.
  3750. if test "${enable_static+set}" = set; then :
  3751. enableval=$enable_static; p=${PACKAGE-default}
  3752. case $enableval in
  3753. yes) enable_static=yes ;;
  3754. no) enable_static=no ;;
  3755. *)
  3756. enable_static=no
  3757. # Look at the argument we got. We use all the common list separators.
  3758. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3759. for pkg in $enableval; do
  3760. IFS="$lt_save_ifs"
  3761. if test "X$pkg" = "X$p"; then
  3762. enable_static=yes
  3763. fi
  3764. done
  3765. IFS="$lt_save_ifs"
  3766. ;;
  3767. esac
  3768. else
  3769. enable_static=yes
  3770. fi
  3771. # Check whether --enable-fast-install was given.
  3772. if test "${enable_fast_install+set}" = set; then :
  3773. enableval=$enable_fast_install; p=${PACKAGE-default}
  3774. case $enableval in
  3775. yes) enable_fast_install=yes ;;
  3776. no) enable_fast_install=no ;;
  3777. *)
  3778. enable_fast_install=no
  3779. # Look at the argument we got. We use all the common list separators.
  3780. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3781. for pkg in $enableval; do
  3782. IFS="$lt_save_ifs"
  3783. if test "X$pkg" = "X$p"; then
  3784. enable_fast_install=yes
  3785. fi
  3786. done
  3787. IFS="$lt_save_ifs"
  3788. ;;
  3789. esac
  3790. else
  3791. enable_fast_install=yes
  3792. fi
  3793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3794. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3795. if test "${lt_cv_path_SED+set}" = set; then :
  3796. $as_echo_n "(cached) " >&6
  3797. else
  3798. # Loop through the user's path and test for sed and gsed.
  3799. # Then use that list of sed's as ones to test for truncation.
  3800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3801. for as_dir in $PATH
  3802. do
  3803. IFS=$as_save_IFS
  3804. test -z "$as_dir" && as_dir=.
  3805. for lt_ac_prog in sed gsed; do
  3806. for ac_exec_ext in '' $ac_executable_extensions; do
  3807. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  3808. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3809. fi
  3810. done
  3811. done
  3812. done
  3813. lt_ac_max=0
  3814. lt_ac_count=0
  3815. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3816. # along with /bin/sed that truncates output.
  3817. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3818. test ! -f $lt_ac_sed && continue
  3819. cat /dev/null > conftest.in
  3820. lt_ac_count=0
  3821. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3822. # Check for GNU sed and select it if it is found.
  3823. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3824. lt_cv_path_SED=$lt_ac_sed
  3825. break
  3826. fi
  3827. while true; do
  3828. cat conftest.in conftest.in >conftest.tmp
  3829. mv conftest.tmp conftest.in
  3830. cp conftest.in conftest.nl
  3831. echo >>conftest.nl
  3832. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3833. cmp -s conftest.out conftest.nl || break
  3834. # 10000 chars as input seems more than enough
  3835. test $lt_ac_count -gt 10 && break
  3836. lt_ac_count=`expr $lt_ac_count + 1`
  3837. if test $lt_ac_count -gt $lt_ac_max; then
  3838. lt_ac_max=$lt_ac_count
  3839. lt_cv_path_SED=$lt_ac_sed
  3840. fi
  3841. done
  3842. done
  3843. fi
  3844. SED=$lt_cv_path_SED
  3845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
  3846. $as_echo "$SED" >&6; }
  3847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3848. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3849. if test "${ac_cv_path_GREP+set}" = set; then :
  3850. $as_echo_n "(cached) " >&6
  3851. else
  3852. if test -z "$GREP"; then
  3853. ac_path_GREP_found=false
  3854. # Loop through the user's path and test for each of PROGNAME-LIST
  3855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3856. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3857. do
  3858. IFS=$as_save_IFS
  3859. test -z "$as_dir" && as_dir=.
  3860. for ac_prog in grep ggrep; do
  3861. for ac_exec_ext in '' $ac_executable_extensions; do
  3862. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3863. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3864. # Check for GNU ac_path_GREP and select it if it is found.
  3865. # Check for GNU $ac_path_GREP
  3866. case `"$ac_path_GREP" --version 2>&1` in
  3867. *GNU*)
  3868. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3869. *)
  3870. ac_count=0
  3871. $as_echo_n 0123456789 >"conftest.in"
  3872. while :
  3873. do
  3874. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3875. mv "conftest.tmp" "conftest.in"
  3876. cp "conftest.in" "conftest.nl"
  3877. $as_echo 'GREP' >> "conftest.nl"
  3878. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3879. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3880. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3881. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3882. # Best one so far, save it but keep looking for a better one
  3883. ac_cv_path_GREP="$ac_path_GREP"
  3884. ac_path_GREP_max=$ac_count
  3885. fi
  3886. # 10*(2^10) chars as input seems more than enough
  3887. test $ac_count -gt 10 && break
  3888. done
  3889. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3890. esac
  3891. $ac_path_GREP_found && break 3
  3892. done
  3893. done
  3894. done
  3895. IFS=$as_save_IFS
  3896. if test -z "$ac_cv_path_GREP"; then
  3897. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3898. fi
  3899. else
  3900. ac_cv_path_GREP=$GREP
  3901. fi
  3902. fi
  3903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3904. $as_echo "$ac_cv_path_GREP" >&6; }
  3905. GREP="$ac_cv_path_GREP"
  3906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3907. $as_echo_n "checking for egrep... " >&6; }
  3908. if test "${ac_cv_path_EGREP+set}" = set; then :
  3909. $as_echo_n "(cached) " >&6
  3910. else
  3911. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3912. then ac_cv_path_EGREP="$GREP -E"
  3913. else
  3914. if test -z "$EGREP"; then
  3915. ac_path_EGREP_found=false
  3916. # Loop through the user's path and test for each of PROGNAME-LIST
  3917. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3918. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3919. do
  3920. IFS=$as_save_IFS
  3921. test -z "$as_dir" && as_dir=.
  3922. for ac_prog in egrep; do
  3923. for ac_exec_ext in '' $ac_executable_extensions; do
  3924. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3925. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3926. # Check for GNU ac_path_EGREP and select it if it is found.
  3927. # Check for GNU $ac_path_EGREP
  3928. case `"$ac_path_EGREP" --version 2>&1` in
  3929. *GNU*)
  3930. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3931. *)
  3932. ac_count=0
  3933. $as_echo_n 0123456789 >"conftest.in"
  3934. while :
  3935. do
  3936. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3937. mv "conftest.tmp" "conftest.in"
  3938. cp "conftest.in" "conftest.nl"
  3939. $as_echo 'EGREP' >> "conftest.nl"
  3940. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3941. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3942. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3943. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3944. # Best one so far, save it but keep looking for a better one
  3945. ac_cv_path_EGREP="$ac_path_EGREP"
  3946. ac_path_EGREP_max=$ac_count
  3947. fi
  3948. # 10*(2^10) chars as input seems more than enough
  3949. test $ac_count -gt 10 && break
  3950. done
  3951. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3952. esac
  3953. $ac_path_EGREP_found && break 3
  3954. done
  3955. done
  3956. done
  3957. IFS=$as_save_IFS
  3958. if test -z "$ac_cv_path_EGREP"; then
  3959. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3960. fi
  3961. else
  3962. ac_cv_path_EGREP=$EGREP
  3963. fi
  3964. fi
  3965. fi
  3966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3967. $as_echo "$ac_cv_path_EGREP" >&6; }
  3968. EGREP="$ac_cv_path_EGREP"
  3969. # Check whether --with-gnu-ld was given.
  3970. if test "${with_gnu_ld+set}" = set; then :
  3971. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3972. else
  3973. with_gnu_ld=no
  3974. fi
  3975. ac_prog=ld
  3976. if test "$GCC" = yes; then
  3977. # Check if gcc -print-prog-name=ld gives a path.
  3978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3979. $as_echo_n "checking for ld used by $CC... " >&6; }
  3980. case $host in
  3981. *-*-mingw*)
  3982. # gcc leaves a trailing carriage return which upsets mingw
  3983. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3984. *)
  3985. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3986. esac
  3987. case $ac_prog in
  3988. # Accept absolute paths.
  3989. [\\/]* | ?:[\\/]*)
  3990. re_direlt='/[^/][^/]*/\.\./'
  3991. # Canonicalize the pathname of ld
  3992. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3993. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3994. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3995. done
  3996. test -z "$LD" && LD="$ac_prog"
  3997. ;;
  3998. "")
  3999. # If it fails, then pretend we aren't using GCC.
  4000. ac_prog=ld
  4001. ;;
  4002. *)
  4003. # If it is relative, then search for the first ld in PATH.
  4004. with_gnu_ld=unknown
  4005. ;;
  4006. esac
  4007. elif test "$with_gnu_ld" = yes; then
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4009. $as_echo_n "checking for GNU ld... " >&6; }
  4010. else
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4012. $as_echo_n "checking for non-GNU ld... " >&6; }
  4013. fi
  4014. if test "${lt_cv_path_LD+set}" = set; then :
  4015. $as_echo_n "(cached) " >&6
  4016. else
  4017. if test -z "$LD"; then
  4018. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4019. for ac_dir in $PATH; do
  4020. IFS="$lt_save_ifs"
  4021. test -z "$ac_dir" && ac_dir=.
  4022. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4023. lt_cv_path_LD="$ac_dir/$ac_prog"
  4024. # Check to see if the program is GNU ld. I'd rather use --version,
  4025. # but apparently some variants of GNU ld only accept -v.
  4026. # Break only if it was the GNU/non-GNU ld that we prefer.
  4027. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4028. *GNU* | *'with BFD'*)
  4029. test "$with_gnu_ld" != no && break
  4030. ;;
  4031. *)
  4032. test "$with_gnu_ld" != yes && break
  4033. ;;
  4034. esac
  4035. fi
  4036. done
  4037. IFS="$lt_save_ifs"
  4038. else
  4039. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4040. fi
  4041. fi
  4042. LD="$lt_cv_path_LD"
  4043. if test -n "$LD"; then
  4044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4045. $as_echo "$LD" >&6; }
  4046. else
  4047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4048. $as_echo "no" >&6; }
  4049. fi
  4050. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4052. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4053. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4054. $as_echo_n "(cached) " >&6
  4055. else
  4056. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4057. case `$LD -v 2>&1 </dev/null` in
  4058. *GNU* | *'with BFD'*)
  4059. lt_cv_prog_gnu_ld=yes
  4060. ;;
  4061. *)
  4062. lt_cv_prog_gnu_ld=no
  4063. ;;
  4064. esac
  4065. fi
  4066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4067. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4068. with_gnu_ld=$lt_cv_prog_gnu_ld
  4069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4070. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4071. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4072. $as_echo_n "(cached) " >&6
  4073. else
  4074. lt_cv_ld_reload_flag='-r'
  4075. fi
  4076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4077. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4078. reload_flag=$lt_cv_ld_reload_flag
  4079. case $reload_flag in
  4080. "" | " "*) ;;
  4081. *) reload_flag=" $reload_flag" ;;
  4082. esac
  4083. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4084. case $host_os in
  4085. darwin*)
  4086. if test "$GCC" = yes; then
  4087. reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
  4088. else
  4089. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4090. fi
  4091. ;;
  4092. esac
  4093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
  4094. $as_echo_n "checking for BSD-compatible nm... " >&6; }
  4095. if test "${lt_cv_path_NM+set}" = set; then :
  4096. $as_echo_n "(cached) " >&6
  4097. else
  4098. if test -n "$NM"; then
  4099. # Let the user override the test.
  4100. lt_cv_path_NM="$NM"
  4101. else
  4102. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4103. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  4104. IFS="$lt_save_ifs"
  4105. test -z "$ac_dir" && ac_dir=.
  4106. tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  4107. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4108. # Check to see if the nm accepts a BSD-compat flag.
  4109. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4110. # nm: unknown option "B" ignored
  4111. # Tru64's nm complains that /dev/null is an invalid object file
  4112. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4113. */dev/null* | *'Invalid file or object type'*)
  4114. lt_cv_path_NM="$tmp_nm -B"
  4115. break
  4116. ;;
  4117. *)
  4118. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4119. */dev/null*)
  4120. lt_cv_path_NM="$tmp_nm -p"
  4121. break
  4122. ;;
  4123. *)
  4124. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4125. continue # so that we can try to find one that supports BSD flags
  4126. ;;
  4127. esac
  4128. esac
  4129. fi
  4130. done
  4131. IFS="$lt_save_ifs"
  4132. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4133. fi
  4134. fi
  4135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4136. $as_echo "$lt_cv_path_NM" >&6; }
  4137. NM="$lt_cv_path_NM"
  4138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4139. $as_echo_n "checking whether ln -s works... " >&6; }
  4140. LN_S=$as_ln_s
  4141. if test "$LN_S" = "ln -s"; then
  4142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4143. $as_echo "yes" >&6; }
  4144. else
  4145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4146. $as_echo "no, using $LN_S" >&6; }
  4147. fi
  4148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
  4149. $as_echo_n "checking how to recognise dependent libraries... " >&6; }
  4150. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4151. $as_echo_n "(cached) " >&6
  4152. else
  4153. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4154. lt_cv_file_magic_test_file=
  4155. lt_cv_deplibs_check_method='unknown'
  4156. # Need to set the preceding variable on all platforms that support
  4157. # interlibrary dependencies.
  4158. # 'none' -- dependencies not supported.
  4159. # `unknown' -- same as none, but documents that we really don't know.
  4160. # 'pass_all' -- all dependencies passed with no checks.
  4161. # 'test_compile' -- check by making test program.
  4162. # 'file_magic [[regex]]' -- check by looking for files in library path
  4163. # which responds to the $file_magic_cmd with a given extended regex.
  4164. # If you have `file' or equivalent on your system and you're not sure
  4165. # whether `pass_all' will *always* work, you probably want this one.
  4166. case $host_os in
  4167. aix4* | aix5*)
  4168. lt_cv_deplibs_check_method=pass_all
  4169. ;;
  4170. beos*)
  4171. lt_cv_deplibs_check_method=pass_all
  4172. ;;
  4173. bsdi[45]*)
  4174. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4175. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4176. lt_cv_file_magic_test_file=/shlib/libc.so
  4177. ;;
  4178. cygwin*)
  4179. # func_win32_libid is a shell function defined in ltmain.sh
  4180. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4181. lt_cv_file_magic_cmd='func_win32_libid'
  4182. ;;
  4183. mingw* | pw32*)
  4184. # Base MSYS/MinGW do not provide the 'file' command needed by
  4185. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  4186. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4187. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4188. ;;
  4189. darwin* | rhapsody*)
  4190. lt_cv_deplibs_check_method=pass_all
  4191. ;;
  4192. freebsd* | kfreebsd*-gnu | dragonfly*)
  4193. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4194. case $host_cpu in
  4195. i*86 )
  4196. # Not sure whether the presence of OpenBSD here was a mistake.
  4197. # Let's accept both of them until this is cleared up.
  4198. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4199. lt_cv_file_magic_cmd=/usr/bin/file
  4200. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4201. ;;
  4202. esac
  4203. else
  4204. lt_cv_deplibs_check_method=pass_all
  4205. fi
  4206. ;;
  4207. gnu*)
  4208. lt_cv_deplibs_check_method=pass_all
  4209. ;;
  4210. hpux10.20* | hpux11*)
  4211. lt_cv_file_magic_cmd=/usr/bin/file
  4212. case $host_cpu in
  4213. ia64*)
  4214. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4215. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4216. ;;
  4217. hppa*64*)
  4218. 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]'
  4219. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4220. ;;
  4221. *)
  4222. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4223. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4224. ;;
  4225. esac
  4226. ;;
  4227. irix5* | irix6* | nonstopux*)
  4228. case $LD in
  4229. *-32|*"-32 ") libmagic=32-bit;;
  4230. *-n32|*"-n32 ") libmagic=N32;;
  4231. *-64|*"-64 ") libmagic=64-bit;;
  4232. *) libmagic=never-match;;
  4233. esac
  4234. lt_cv_deplibs_check_method=pass_all
  4235. ;;
  4236. # This must be Linux ELF.
  4237. linux*)
  4238. lt_cv_deplibs_check_method=pass_all
  4239. ;;
  4240. netbsd*)
  4241. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4242. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4243. else
  4244. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4245. fi
  4246. ;;
  4247. newos6*)
  4248. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4249. lt_cv_file_magic_cmd=/usr/bin/file
  4250. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4251. ;;
  4252. nto-qnx*)
  4253. lt_cv_deplibs_check_method=unknown
  4254. ;;
  4255. openbsd*)
  4256. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4257. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4258. else
  4259. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4260. fi
  4261. ;;
  4262. osf3* | osf4* | osf5*)
  4263. lt_cv_deplibs_check_method=pass_all
  4264. ;;
  4265. sco3.2v5*)
  4266. lt_cv_deplibs_check_method=pass_all
  4267. ;;
  4268. solaris*)
  4269. lt_cv_deplibs_check_method=pass_all
  4270. ;;
  4271. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  4272. case $host_vendor in
  4273. motorola)
  4274. 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]'
  4275. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4276. ;;
  4277. ncr)
  4278. lt_cv_deplibs_check_method=pass_all
  4279. ;;
  4280. sequent)
  4281. lt_cv_file_magic_cmd='/bin/file'
  4282. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4283. ;;
  4284. sni)
  4285. lt_cv_file_magic_cmd='/bin/file'
  4286. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4287. lt_cv_file_magic_test_file=/lib/libc.so
  4288. ;;
  4289. siemens)
  4290. lt_cv_deplibs_check_method=pass_all
  4291. ;;
  4292. esac
  4293. ;;
  4294. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  4295. lt_cv_deplibs_check_method=pass_all
  4296. ;;
  4297. esac
  4298. fi
  4299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4300. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4301. file_magic_cmd=$lt_cv_file_magic_cmd
  4302. deplibs_check_method=$lt_cv_deplibs_check_method
  4303. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4304. # If no C compiler was specified, use CC.
  4305. LTCC=${LTCC-"$CC"}
  4306. # Allow CC to be a program name with arguments.
  4307. compiler=$CC
  4308. # Check whether --enable-libtool-lock was given.
  4309. if test "${enable_libtool_lock+set}" = set; then :
  4310. enableval=$enable_libtool_lock;
  4311. fi
  4312. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4313. # Some flags need to be propagated to the compiler or linker for good
  4314. # libtool support.
  4315. case $host in
  4316. ia64-*-hpux*)
  4317. # Find out which ABI we are using.
  4318. echo 'int i;' > conftest.$ac_ext
  4319. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4320. (eval $ac_compile) 2>&5
  4321. ac_status=$?
  4322. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4323. test $ac_status = 0; }; then
  4324. case `/usr/bin/file conftest.$ac_objext` in
  4325. *ELF-32*)
  4326. HPUX_IA64_MODE="32"
  4327. ;;
  4328. *ELF-64*)
  4329. HPUX_IA64_MODE="64"
  4330. ;;
  4331. esac
  4332. fi
  4333. rm -rf conftest*
  4334. ;;
  4335. *-*-irix6*)
  4336. # Find out which ABI we are using.
  4337. echo '#line 4774 "configure"' > conftest.$ac_ext
  4338. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4339. (eval $ac_compile) 2>&5
  4340. ac_status=$?
  4341. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4342. test $ac_status = 0; }; then
  4343. if test "$lt_cv_prog_gnu_ld" = yes; then
  4344. case `/usr/bin/file conftest.$ac_objext` in
  4345. *32-bit*)
  4346. LD="${LD-ld} -melf32bsmip"
  4347. ;;
  4348. *N32*)
  4349. LD="${LD-ld} -melf32bmipn32"
  4350. ;;
  4351. *64-bit*)
  4352. LD="${LD-ld} -melf64bmip"
  4353. ;;
  4354. esac
  4355. else
  4356. case `/usr/bin/file conftest.$ac_objext` in
  4357. *32-bit*)
  4358. LD="${LD-ld} -32"
  4359. ;;
  4360. *N32*)
  4361. LD="${LD-ld} -n32"
  4362. ;;
  4363. *64-bit*)
  4364. LD="${LD-ld} -64"
  4365. ;;
  4366. esac
  4367. fi
  4368. fi
  4369. rm -rf conftest*
  4370. ;;
  4371. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  4372. # Find out which ABI we are using.
  4373. echo 'int i;' > conftest.$ac_ext
  4374. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4375. (eval $ac_compile) 2>&5
  4376. ac_status=$?
  4377. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4378. test $ac_status = 0; }; then
  4379. case `/usr/bin/file conftest.o` in
  4380. *32-bit*)
  4381. case $host in
  4382. x86_64-*linux*)
  4383. LD="${LD-ld} -m elf_i386"
  4384. ;;
  4385. ppc64-*linux*|powerpc64-*linux*)
  4386. LD="${LD-ld} -m elf32ppclinux"
  4387. ;;
  4388. s390x-*linux*)
  4389. LD="${LD-ld} -m elf_s390"
  4390. ;;
  4391. sparc64-*linux*)
  4392. LD="${LD-ld} -m elf32_sparc"
  4393. ;;
  4394. esac
  4395. ;;
  4396. *64-bit*)
  4397. case $host in
  4398. x86_64-*linux*)
  4399. LD="${LD-ld} -m elf_x86_64"
  4400. ;;
  4401. ppc*-*linux*|powerpc*-*linux*)
  4402. LD="${LD-ld} -m elf64ppc"
  4403. ;;
  4404. s390*-*linux*)
  4405. LD="${LD-ld} -m elf64_s390"
  4406. ;;
  4407. sparc*-*linux*)
  4408. LD="${LD-ld} -m elf64_sparc"
  4409. ;;
  4410. esac
  4411. ;;
  4412. esac
  4413. fi
  4414. rm -rf conftest*
  4415. ;;
  4416. *-*-sco3.2v5*)
  4417. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4418. SAVE_CFLAGS="$CFLAGS"
  4419. CFLAGS="$CFLAGS -belf"
  4420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  4421. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  4422. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  4423. $as_echo_n "(cached) " >&6
  4424. else
  4425. ac_ext=c
  4426. ac_cpp='$CPP $CPPFLAGS'
  4427. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4428. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4429. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4430. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4431. /* end confdefs.h. */
  4432. int
  4433. main ()
  4434. {
  4435. ;
  4436. return 0;
  4437. }
  4438. _ACEOF
  4439. if ac_fn_c_try_link "$LINENO"; then :
  4440. lt_cv_cc_needs_belf=yes
  4441. else
  4442. lt_cv_cc_needs_belf=no
  4443. fi
  4444. rm -f core conftest.err conftest.$ac_objext \
  4445. conftest$ac_exeext conftest.$ac_ext
  4446. ac_ext=c
  4447. ac_cpp='$CPP $CPPFLAGS'
  4448. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4449. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4450. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4451. fi
  4452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  4453. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  4454. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4455. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4456. CFLAGS="$SAVE_CFLAGS"
  4457. fi
  4458. ;;
  4459. esac
  4460. need_locks="$enable_libtool_lock"
  4461. ac_ext=c
  4462. ac_cpp='$CPP $CPPFLAGS'
  4463. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4464. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4465. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4467. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4468. # On Suns, sometimes $CPP names a directory.
  4469. if test -n "$CPP" && test -d "$CPP"; then
  4470. CPP=
  4471. fi
  4472. if test -z "$CPP"; then
  4473. if test "${ac_cv_prog_CPP+set}" = set; then :
  4474. $as_echo_n "(cached) " >&6
  4475. else
  4476. # Double quotes because CPP needs to be expanded
  4477. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4478. do
  4479. ac_preproc_ok=false
  4480. for ac_c_preproc_warn_flag in '' yes
  4481. do
  4482. # Use a header file that comes with gcc, so configuring glibc
  4483. # with a fresh cross-compiler works.
  4484. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4485. # <limits.h> exists even on freestanding compilers.
  4486. # On the NeXT, cc -E runs the code through the compiler's parser,
  4487. # not just through cpp. "Syntax error" is here to catch this case.
  4488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4489. /* end confdefs.h. */
  4490. #ifdef __STDC__
  4491. # include <limits.h>
  4492. #else
  4493. # include <assert.h>
  4494. #endif
  4495. Syntax error
  4496. _ACEOF
  4497. if ac_fn_c_try_cpp "$LINENO"; then :
  4498. else
  4499. # Broken: fails on valid input.
  4500. continue
  4501. fi
  4502. rm -f conftest.err conftest.$ac_ext
  4503. # OK, works on sane cases. Now check whether nonexistent headers
  4504. # can be detected and how.
  4505. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4506. /* end confdefs.h. */
  4507. #include <ac_nonexistent.h>
  4508. _ACEOF
  4509. if ac_fn_c_try_cpp "$LINENO"; then :
  4510. # Broken: success on invalid input.
  4511. continue
  4512. else
  4513. # Passes both tests.
  4514. ac_preproc_ok=:
  4515. break
  4516. fi
  4517. rm -f conftest.err conftest.$ac_ext
  4518. done
  4519. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4520. rm -f conftest.err conftest.$ac_ext
  4521. if $ac_preproc_ok; then :
  4522. break
  4523. fi
  4524. done
  4525. ac_cv_prog_CPP=$CPP
  4526. fi
  4527. CPP=$ac_cv_prog_CPP
  4528. else
  4529. ac_cv_prog_CPP=$CPP
  4530. fi
  4531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4532. $as_echo "$CPP" >&6; }
  4533. ac_preproc_ok=false
  4534. for ac_c_preproc_warn_flag in '' yes
  4535. do
  4536. # Use a header file that comes with gcc, so configuring glibc
  4537. # with a fresh cross-compiler works.
  4538. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4539. # <limits.h> exists even on freestanding compilers.
  4540. # On the NeXT, cc -E runs the code through the compiler's parser,
  4541. # not just through cpp. "Syntax error" is here to catch this case.
  4542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4543. /* end confdefs.h. */
  4544. #ifdef __STDC__
  4545. # include <limits.h>
  4546. #else
  4547. # include <assert.h>
  4548. #endif
  4549. Syntax error
  4550. _ACEOF
  4551. if ac_fn_c_try_cpp "$LINENO"; then :
  4552. else
  4553. # Broken: fails on valid input.
  4554. continue
  4555. fi
  4556. rm -f conftest.err conftest.$ac_ext
  4557. # OK, works on sane cases. Now check whether nonexistent headers
  4558. # can be detected and how.
  4559. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4560. /* end confdefs.h. */
  4561. #include <ac_nonexistent.h>
  4562. _ACEOF
  4563. if ac_fn_c_try_cpp "$LINENO"; then :
  4564. # Broken: success on invalid input.
  4565. continue
  4566. else
  4567. # Passes both tests.
  4568. ac_preproc_ok=:
  4569. break
  4570. fi
  4571. rm -f conftest.err conftest.$ac_ext
  4572. done
  4573. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4574. rm -f conftest.err conftest.$ac_ext
  4575. if $ac_preproc_ok; then :
  4576. else
  4577. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4578. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4579. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  4580. See \`config.log' for more details." "$LINENO" 5; }
  4581. fi
  4582. ac_ext=c
  4583. ac_cpp='$CPP $CPPFLAGS'
  4584. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4585. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4586. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4588. $as_echo_n "checking for ANSI C header files... " >&6; }
  4589. if test "${ac_cv_header_stdc+set}" = set; then :
  4590. $as_echo_n "(cached) " >&6
  4591. else
  4592. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4593. /* end confdefs.h. */
  4594. #include <stdlib.h>
  4595. #include <stdarg.h>
  4596. #include <string.h>
  4597. #include <float.h>
  4598. int
  4599. main ()
  4600. {
  4601. ;
  4602. return 0;
  4603. }
  4604. _ACEOF
  4605. if ac_fn_c_try_compile "$LINENO"; then :
  4606. ac_cv_header_stdc=yes
  4607. else
  4608. ac_cv_header_stdc=no
  4609. fi
  4610. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4611. if test $ac_cv_header_stdc = yes; then
  4612. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4614. /* end confdefs.h. */
  4615. #include <string.h>
  4616. _ACEOF
  4617. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4618. $EGREP "memchr" >/dev/null 2>&1; then :
  4619. else
  4620. ac_cv_header_stdc=no
  4621. fi
  4622. rm -f conftest*
  4623. fi
  4624. if test $ac_cv_header_stdc = yes; then
  4625. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4627. /* end confdefs.h. */
  4628. #include <stdlib.h>
  4629. _ACEOF
  4630. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4631. $EGREP "free" >/dev/null 2>&1; then :
  4632. else
  4633. ac_cv_header_stdc=no
  4634. fi
  4635. rm -f conftest*
  4636. fi
  4637. if test $ac_cv_header_stdc = yes; then
  4638. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4639. if test "$cross_compiling" = yes; then :
  4640. :
  4641. else
  4642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4643. /* end confdefs.h. */
  4644. #include <ctype.h>
  4645. #include <stdlib.h>
  4646. #if ((' ' & 0x0FF) == 0x020)
  4647. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4648. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4649. #else
  4650. # define ISLOWER(c) \
  4651. (('a' <= (c) && (c) <= 'i') \
  4652. || ('j' <= (c) && (c) <= 'r') \
  4653. || ('s' <= (c) && (c) <= 'z'))
  4654. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4655. #endif
  4656. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4657. int
  4658. main ()
  4659. {
  4660. int i;
  4661. for (i = 0; i < 256; i++)
  4662. if (XOR (islower (i), ISLOWER (i))
  4663. || toupper (i) != TOUPPER (i))
  4664. return 2;
  4665. return 0;
  4666. }
  4667. _ACEOF
  4668. if ac_fn_c_try_run "$LINENO"; then :
  4669. else
  4670. ac_cv_header_stdc=no
  4671. fi
  4672. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4673. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4674. fi
  4675. fi
  4676. fi
  4677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4678. $as_echo "$ac_cv_header_stdc" >&6; }
  4679. if test $ac_cv_header_stdc = yes; then
  4680. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4681. fi
  4682. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4683. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4684. inttypes.h stdint.h unistd.h
  4685. do :
  4686. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4687. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4688. "
  4689. eval as_val=\$$as_ac_Header
  4690. if test "x$as_val" = x""yes; then :
  4691. cat >>confdefs.h <<_ACEOF
  4692. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4693. _ACEOF
  4694. fi
  4695. done
  4696. for ac_header in dlfcn.h
  4697. do :
  4698. ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
  4699. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  4700. cat >>confdefs.h <<_ACEOF
  4701. #define HAVE_DLFCN_H 1
  4702. _ACEOF
  4703. fi
  4704. done
  4705. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  4706. # find the maximum length of command line arguments
  4707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4708. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4709. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4710. $as_echo_n "(cached) " >&6
  4711. else
  4712. i=0
  4713. teststring="ABCD"
  4714. case $build_os in
  4715. msdosdjgpp*)
  4716. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4717. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4718. # during glob expansion). Even if it were fixed, the result of this
  4719. # check would be larger than it should be.
  4720. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4721. ;;
  4722. gnu*)
  4723. # Under GNU Hurd, this test is not required because there is
  4724. # no limit to the length of command line arguments.
  4725. # Libtool will interpret -1 as no limit whatsoever
  4726. lt_cv_sys_max_cmd_len=-1;
  4727. ;;
  4728. cygwin* | mingw*)
  4729. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4730. # about 5 minutes as the teststring grows exponentially.
  4731. # Worse, since 9x/ME are not pre-emptively multitasking,
  4732. # you end up with a "frozen" computer, even though with patience
  4733. # the test eventually succeeds (with a max line length of 256k).
  4734. # Instead, let's just punt: use the minimum linelength reported by
  4735. # all of the supported platforms: 8192 (on NT/2K/XP).
  4736. lt_cv_sys_max_cmd_len=8192;
  4737. ;;
  4738. amigaos*)
  4739. # On AmigaOS with pdksh, this test takes hours, literally.
  4740. # So we just punt and use a minimum line length of 8192.
  4741. lt_cv_sys_max_cmd_len=8192;
  4742. ;;
  4743. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4744. # This has been around since 386BSD, at least. Likely further.
  4745. if test -x /sbin/sysctl; then
  4746. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4747. elif test -x /usr/sbin/sysctl; then
  4748. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4749. else
  4750. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4751. fi
  4752. # And add a safety zone
  4753. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4754. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4755. ;;
  4756. osf*)
  4757. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4758. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4759. # nice to cause kernel panics so lets avoid the loop below.
  4760. # First set a reasonable default.
  4761. lt_cv_sys_max_cmd_len=16384
  4762. #
  4763. if test -x /sbin/sysconfig; then
  4764. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4765. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4766. esac
  4767. fi
  4768. ;;
  4769. *)
  4770. # If test is not a shell built-in, we'll probably end up computing a
  4771. # maximum length that is only half of the actual maximum length, but
  4772. # we can't tell.
  4773. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4774. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  4775. = "XX$teststring") >/dev/null 2>&1 &&
  4776. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  4777. lt_cv_sys_max_cmd_len=$new_result &&
  4778. test $i != 17 # 1/2 MB should be enough
  4779. do
  4780. i=`expr $i + 1`
  4781. teststring=$teststring$teststring
  4782. done
  4783. teststring=
  4784. # Add a significant safety factor because C++ compilers can tack on massive
  4785. # amounts of additional arguments before passing them to the linker.
  4786. # It appears as though 1/2 is a usable value.
  4787. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4788. ;;
  4789. esac
  4790. fi
  4791. if test -n $lt_cv_sys_max_cmd_len ; then
  4792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4793. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4794. else
  4795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4796. $as_echo "none" >&6; }
  4797. fi
  4798. # Check for command to grab the raw symbol name followed by C symbol from nm.
  4799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  4800. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  4801. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  4802. $as_echo_n "(cached) " >&6
  4803. else
  4804. # These are sane defaults that work on at least a few old systems.
  4805. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4806. # Character class describing NM global symbol codes.
  4807. symcode='[BCDEGRST]'
  4808. # Regexp to match symbols that can be accessed directly from C.
  4809. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4810. # Transform an extracted symbol line into a proper C declaration
  4811. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  4812. # Transform an extracted symbol line into symbol name and symbol address
  4813. 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'"
  4814. # Define system-specific variables.
  4815. case $host_os in
  4816. aix*)
  4817. symcode='[BCDT]'
  4818. ;;
  4819. cygwin* | mingw* | pw32*)
  4820. symcode='[ABCDGISTW]'
  4821. ;;
  4822. hpux*) # Its linker distinguishes data from code symbols
  4823. if test "$host_cpu" = ia64; then
  4824. symcode='[ABCDEGRST]'
  4825. fi
  4826. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4827. 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'"
  4828. ;;
  4829. linux*)
  4830. if test "$host_cpu" = ia64; then
  4831. symcode='[ABCDGIRSTW]'
  4832. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4833. 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'"
  4834. fi
  4835. ;;
  4836. irix* | nonstopux*)
  4837. symcode='[BCDEGRST]'
  4838. ;;
  4839. osf*)
  4840. symcode='[BCDEGQRST]'
  4841. ;;
  4842. solaris* | sysv5*)
  4843. symcode='[BDRT]'
  4844. ;;
  4845. sysv4)
  4846. symcode='[DFNSTU]'
  4847. ;;
  4848. esac
  4849. # Handle CRLF in mingw tool chain
  4850. opt_cr=
  4851. case $build_os in
  4852. mingw*)
  4853. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4854. ;;
  4855. esac
  4856. # If we're using GNU nm, then use its standard symbol codes.
  4857. case `$NM -V 2>&1` in
  4858. *GNU* | *'with BFD'*)
  4859. symcode='[ABCDGIRSTW]' ;;
  4860. esac
  4861. # Try without a prefix undercore, then with it.
  4862. for ac_symprfx in "" "_"; do
  4863. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  4864. symxfrm="\\1 $ac_symprfx\\2 \\2"
  4865. # Write the raw and C identifiers.
  4866. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4867. # Check to see that the pipe works correctly.
  4868. pipe_works=no
  4869. rm -f conftest*
  4870. cat > conftest.$ac_ext <<EOF
  4871. #ifdef __cplusplus
  4872. extern "C" {
  4873. #endif
  4874. char nm_test_var;
  4875. void nm_test_func(){}
  4876. #ifdef __cplusplus
  4877. }
  4878. #endif
  4879. int main(){nm_test_var='a';nm_test_func();return(0);}
  4880. EOF
  4881. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  4882. (eval $ac_compile) 2>&5
  4883. ac_status=$?
  4884. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4885. test $ac_status = 0; }; then
  4886. # Now try to grab the symbols.
  4887. nlist=conftest.nm
  4888. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  4889. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  4890. ac_status=$?
  4891. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4892. test $ac_status = 0; } && test -s "$nlist"; then
  4893. # Try sorting and uniquifying the output.
  4894. if sort "$nlist" | uniq > "$nlist"T; then
  4895. mv -f "$nlist"T "$nlist"
  4896. else
  4897. rm -f "$nlist"T
  4898. fi
  4899. # Make sure that we snagged all the symbols we need.
  4900. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  4901. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  4902. cat <<EOF > conftest.$ac_ext
  4903. #ifdef __cplusplus
  4904. extern "C" {
  4905. #endif
  4906. EOF
  4907. # Now generate the symbol file.
  4908. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  4909. cat <<EOF >> conftest.$ac_ext
  4910. #if defined (__STDC__) && __STDC__
  4911. # define lt_ptr_t void *
  4912. #else
  4913. # define lt_ptr_t char *
  4914. # define const
  4915. #endif
  4916. /* The mapping between symbol names and symbols. */
  4917. const struct {
  4918. const char *name;
  4919. lt_ptr_t address;
  4920. }
  4921. lt_preloaded_symbols[] =
  4922. {
  4923. EOF
  4924. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  4925. cat <<\EOF >> conftest.$ac_ext
  4926. {0, (lt_ptr_t) 0}
  4927. };
  4928. #ifdef __cplusplus
  4929. }
  4930. #endif
  4931. EOF
  4932. # Now try linking the two files.
  4933. mv conftest.$ac_objext conftstm.$ac_objext
  4934. lt_save_LIBS="$LIBS"
  4935. lt_save_CFLAGS="$CFLAGS"
  4936. LIBS="conftstm.$ac_objext"
  4937. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  4938. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  4939. (eval $ac_link) 2>&5
  4940. ac_status=$?
  4941. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4942. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  4943. pipe_works=yes
  4944. fi
  4945. LIBS="$lt_save_LIBS"
  4946. CFLAGS="$lt_save_CFLAGS"
  4947. else
  4948. echo "cannot find nm_test_func in $nlist" >&5
  4949. fi
  4950. else
  4951. echo "cannot find nm_test_var in $nlist" >&5
  4952. fi
  4953. else
  4954. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  4955. fi
  4956. else
  4957. echo "$progname: failed program was:" >&5
  4958. cat conftest.$ac_ext >&5
  4959. fi
  4960. rm -f conftest* conftst*
  4961. # Do not use the global_symbol_pipe unless it works.
  4962. if test "$pipe_works" = yes; then
  4963. break
  4964. else
  4965. lt_cv_sys_global_symbol_pipe=
  4966. fi
  4967. done
  4968. fi
  4969. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4970. lt_cv_sys_global_symbol_to_cdecl=
  4971. fi
  4972. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  4974. $as_echo "failed" >&6; }
  4975. else
  4976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  4977. $as_echo "ok" >&6; }
  4978. fi
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  4980. $as_echo_n "checking for objdir... " >&6; }
  4981. if test "${lt_cv_objdir+set}" = set; then :
  4982. $as_echo_n "(cached) " >&6
  4983. else
  4984. rm -f .libs 2>/dev/null
  4985. mkdir .libs 2>/dev/null
  4986. if test -d .libs; then
  4987. lt_cv_objdir=.libs
  4988. else
  4989. # MS-DOS does not allow filenames that begin with a dot.
  4990. lt_cv_objdir=_libs
  4991. fi
  4992. rmdir .libs 2>/dev/null
  4993. fi
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  4995. $as_echo "$lt_cv_objdir" >&6; }
  4996. objdir=$lt_cv_objdir
  4997. case $host_os in
  4998. aix3*)
  4999. # AIX sometimes has problems with the GCC collect2 program. For some
  5000. # reason, if we set the COLLECT_NAMES environment variable, the problems
  5001. # vanish in a puff of smoke.
  5002. if test "X${COLLECT_NAMES+set}" != Xset; then
  5003. COLLECT_NAMES=
  5004. export COLLECT_NAMES
  5005. fi
  5006. ;;
  5007. esac
  5008. # Sed substitution that helps us do robust quoting. It backslashifies
  5009. # metacharacters that are still active within double-quoted strings.
  5010. Xsed='sed -e 1s/^X//'
  5011. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5012. # Same as above, but do not quote variable references.
  5013. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5014. # Sed substitution to delay expansion of an escaped shell variable in a
  5015. # double_quote_subst'ed string.
  5016. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5017. # Sed substitution to avoid accidental globbing in evaled expressions
  5018. no_glob_subst='s/\*/\\\*/g'
  5019. # Constants:
  5020. rm="rm -f"
  5021. # Global variables:
  5022. default_ofile=libtool
  5023. can_build_shared=yes
  5024. # All known linkers require a `.a' archive for static linking (except MSVC,
  5025. # which needs '.lib').
  5026. libext=a
  5027. ltmain="$ac_aux_dir/ltmain.sh"
  5028. ofile="$default_ofile"
  5029. with_gnu_ld="$lt_cv_prog_gnu_ld"
  5030. if test -n "$ac_tool_prefix"; then
  5031. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5032. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5034. $as_echo_n "checking for $ac_word... " >&6; }
  5035. if test "${ac_cv_prog_AR+set}" = set; then :
  5036. $as_echo_n "(cached) " >&6
  5037. else
  5038. if test -n "$AR"; then
  5039. ac_cv_prog_AR="$AR" # Let the user override the test.
  5040. else
  5041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5042. for as_dir in $PATH
  5043. do
  5044. IFS=$as_save_IFS
  5045. test -z "$as_dir" && as_dir=.
  5046. for ac_exec_ext in '' $ac_executable_extensions; do
  5047. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5048. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5049. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5050. break 2
  5051. fi
  5052. done
  5053. done
  5054. IFS=$as_save_IFS
  5055. fi
  5056. fi
  5057. AR=$ac_cv_prog_AR
  5058. if test -n "$AR"; then
  5059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5060. $as_echo "$AR" >&6; }
  5061. else
  5062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5063. $as_echo "no" >&6; }
  5064. fi
  5065. fi
  5066. if test -z "$ac_cv_prog_AR"; then
  5067. ac_ct_AR=$AR
  5068. # Extract the first word of "ar", so it can be a program name with args.
  5069. set dummy ar; ac_word=$2
  5070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5071. $as_echo_n "checking for $ac_word... " >&6; }
  5072. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5073. $as_echo_n "(cached) " >&6
  5074. else
  5075. if test -n "$ac_ct_AR"; then
  5076. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5077. else
  5078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5079. for as_dir in $PATH
  5080. do
  5081. IFS=$as_save_IFS
  5082. test -z "$as_dir" && as_dir=.
  5083. for ac_exec_ext in '' $ac_executable_extensions; do
  5084. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5085. ac_cv_prog_ac_ct_AR="ar"
  5086. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5087. break 2
  5088. fi
  5089. done
  5090. done
  5091. IFS=$as_save_IFS
  5092. fi
  5093. fi
  5094. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5095. if test -n "$ac_ct_AR"; then
  5096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5097. $as_echo "$ac_ct_AR" >&6; }
  5098. else
  5099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5100. $as_echo "no" >&6; }
  5101. fi
  5102. if test "x$ac_ct_AR" = x; then
  5103. AR="false"
  5104. else
  5105. case $cross_compiling:$ac_tool_warned in
  5106. yes:)
  5107. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5108. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5109. ac_tool_warned=yes ;;
  5110. esac
  5111. AR=$ac_ct_AR
  5112. fi
  5113. else
  5114. AR="$ac_cv_prog_AR"
  5115. fi
  5116. if test -n "$ac_tool_prefix"; then
  5117. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5118. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5120. $as_echo_n "checking for $ac_word... " >&6; }
  5121. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5122. $as_echo_n "(cached) " >&6
  5123. else
  5124. if test -n "$RANLIB"; then
  5125. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5126. else
  5127. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5128. for as_dir in $PATH
  5129. do
  5130. IFS=$as_save_IFS
  5131. test -z "$as_dir" && as_dir=.
  5132. for ac_exec_ext in '' $ac_executable_extensions; do
  5133. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5134. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5135. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5136. break 2
  5137. fi
  5138. done
  5139. done
  5140. IFS=$as_save_IFS
  5141. fi
  5142. fi
  5143. RANLIB=$ac_cv_prog_RANLIB
  5144. if test -n "$RANLIB"; then
  5145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5146. $as_echo "$RANLIB" >&6; }
  5147. else
  5148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5149. $as_echo "no" >&6; }
  5150. fi
  5151. fi
  5152. if test -z "$ac_cv_prog_RANLIB"; then
  5153. ac_ct_RANLIB=$RANLIB
  5154. # Extract the first word of "ranlib", so it can be a program name with args.
  5155. set dummy ranlib; ac_word=$2
  5156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5157. $as_echo_n "checking for $ac_word... " >&6; }
  5158. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5159. $as_echo_n "(cached) " >&6
  5160. else
  5161. if test -n "$ac_ct_RANLIB"; then
  5162. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5163. else
  5164. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5165. for as_dir in $PATH
  5166. do
  5167. IFS=$as_save_IFS
  5168. test -z "$as_dir" && as_dir=.
  5169. for ac_exec_ext in '' $ac_executable_extensions; do
  5170. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5171. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5172. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5173. break 2
  5174. fi
  5175. done
  5176. done
  5177. IFS=$as_save_IFS
  5178. fi
  5179. fi
  5180. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5181. if test -n "$ac_ct_RANLIB"; then
  5182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5183. $as_echo "$ac_ct_RANLIB" >&6; }
  5184. else
  5185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5186. $as_echo "no" >&6; }
  5187. fi
  5188. if test "x$ac_ct_RANLIB" = x; then
  5189. RANLIB=":"
  5190. else
  5191. case $cross_compiling:$ac_tool_warned in
  5192. yes:)
  5193. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5194. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5195. ac_tool_warned=yes ;;
  5196. esac
  5197. RANLIB=$ac_ct_RANLIB
  5198. fi
  5199. else
  5200. RANLIB="$ac_cv_prog_RANLIB"
  5201. fi
  5202. if test -n "$ac_tool_prefix"; then
  5203. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5204. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5206. $as_echo_n "checking for $ac_word... " >&6; }
  5207. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5208. $as_echo_n "(cached) " >&6
  5209. else
  5210. if test -n "$STRIP"; then
  5211. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5212. else
  5213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5214. for as_dir in $PATH
  5215. do
  5216. IFS=$as_save_IFS
  5217. test -z "$as_dir" && as_dir=.
  5218. for ac_exec_ext in '' $ac_executable_extensions; do
  5219. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5220. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5221. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5222. break 2
  5223. fi
  5224. done
  5225. done
  5226. IFS=$as_save_IFS
  5227. fi
  5228. fi
  5229. STRIP=$ac_cv_prog_STRIP
  5230. if test -n "$STRIP"; then
  5231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5232. $as_echo "$STRIP" >&6; }
  5233. else
  5234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5235. $as_echo "no" >&6; }
  5236. fi
  5237. fi
  5238. if test -z "$ac_cv_prog_STRIP"; then
  5239. ac_ct_STRIP=$STRIP
  5240. # Extract the first word of "strip", so it can be a program name with args.
  5241. set dummy strip; ac_word=$2
  5242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5243. $as_echo_n "checking for $ac_word... " >&6; }
  5244. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5245. $as_echo_n "(cached) " >&6
  5246. else
  5247. if test -n "$ac_ct_STRIP"; then
  5248. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5249. else
  5250. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5251. for as_dir in $PATH
  5252. do
  5253. IFS=$as_save_IFS
  5254. test -z "$as_dir" && as_dir=.
  5255. for ac_exec_ext in '' $ac_executable_extensions; do
  5256. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5257. ac_cv_prog_ac_ct_STRIP="strip"
  5258. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5259. break 2
  5260. fi
  5261. done
  5262. done
  5263. IFS=$as_save_IFS
  5264. fi
  5265. fi
  5266. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5267. if test -n "$ac_ct_STRIP"; then
  5268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5269. $as_echo "$ac_ct_STRIP" >&6; }
  5270. else
  5271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5272. $as_echo "no" >&6; }
  5273. fi
  5274. if test "x$ac_ct_STRIP" = x; then
  5275. STRIP=":"
  5276. else
  5277. case $cross_compiling:$ac_tool_warned in
  5278. yes:)
  5279. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5280. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5281. ac_tool_warned=yes ;;
  5282. esac
  5283. STRIP=$ac_ct_STRIP
  5284. fi
  5285. else
  5286. STRIP="$ac_cv_prog_STRIP"
  5287. fi
  5288. old_CC="$CC"
  5289. old_CFLAGS="$CFLAGS"
  5290. # Set sane defaults for various variables
  5291. test -z "$AR" && AR=ar
  5292. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5293. test -z "$AS" && AS=as
  5294. test -z "$CC" && CC=cc
  5295. test -z "$LTCC" && LTCC=$CC
  5296. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5297. test -z "$LD" && LD=ld
  5298. test -z "$LN_S" && LN_S="ln -s"
  5299. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  5300. test -z "$NM" && NM=nm
  5301. test -z "$SED" && SED=sed
  5302. test -z "$OBJDUMP" && OBJDUMP=objdump
  5303. test -z "$RANLIB" && RANLIB=:
  5304. test -z "$STRIP" && STRIP=:
  5305. test -z "$ac_objext" && ac_objext=o
  5306. # Determine commands to create old-style static archives.
  5307. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  5308. old_postinstall_cmds='chmod 644 $oldlib'
  5309. old_postuninstall_cmds=
  5310. if test -n "$RANLIB"; then
  5311. case $host_os in
  5312. openbsd*)
  5313. old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  5314. ;;
  5315. *)
  5316. old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  5317. ;;
  5318. esac
  5319. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5320. fi
  5321. for cc_temp in $compiler""; do
  5322. case $cc_temp in
  5323. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5324. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5325. \-*) ;;
  5326. *) break;;
  5327. esac
  5328. done
  5329. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5330. # Only perform the check for file, if the check method requires it
  5331. case $deplibs_check_method in
  5332. file_magic*)
  5333. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  5334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  5335. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  5336. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  5337. $as_echo_n "(cached) " >&6
  5338. else
  5339. case $MAGIC_CMD in
  5340. [\\/*] | ?:[\\/]*)
  5341. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5342. ;;
  5343. *)
  5344. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5345. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5346. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5347. for ac_dir in $ac_dummy; do
  5348. IFS="$lt_save_ifs"
  5349. test -z "$ac_dir" && ac_dir=.
  5350. if test -f $ac_dir/${ac_tool_prefix}file; then
  5351. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  5352. if test -n "$file_magic_test_file"; then
  5353. case $deplibs_check_method in
  5354. "file_magic "*)
  5355. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5356. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5357. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5358. $EGREP "$file_magic_regex" > /dev/null; then
  5359. :
  5360. else
  5361. cat <<EOF 1>&2
  5362. *** Warning: the command libtool uses to detect shared libraries,
  5363. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5364. *** The result is that libtool may fail to recognize shared libraries
  5365. *** as such. This will affect the creation of libtool libraries that
  5366. *** depend on shared libraries, but programs linked with such libtool
  5367. *** libraries will work regardless of this problem. Nevertheless, you
  5368. *** may want to report the problem to your system manager and/or to
  5369. *** bug-libtool@gnu.org
  5370. EOF
  5371. fi ;;
  5372. esac
  5373. fi
  5374. break
  5375. fi
  5376. done
  5377. IFS="$lt_save_ifs"
  5378. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5379. ;;
  5380. esac
  5381. fi
  5382. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5383. if test -n "$MAGIC_CMD"; then
  5384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  5385. $as_echo "$MAGIC_CMD" >&6; }
  5386. else
  5387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5388. $as_echo "no" >&6; }
  5389. fi
  5390. if test -z "$lt_cv_path_MAGIC_CMD"; then
  5391. if test -n "$ac_tool_prefix"; then
  5392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  5393. $as_echo_n "checking for file... " >&6; }
  5394. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  5395. $as_echo_n "(cached) " >&6
  5396. else
  5397. case $MAGIC_CMD in
  5398. [\\/*] | ?:[\\/]*)
  5399. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5400. ;;
  5401. *)
  5402. lt_save_MAGIC_CMD="$MAGIC_CMD"
  5403. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5404. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  5405. for ac_dir in $ac_dummy; do
  5406. IFS="$lt_save_ifs"
  5407. test -z "$ac_dir" && ac_dir=.
  5408. if test -f $ac_dir/file; then
  5409. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  5410. if test -n "$file_magic_test_file"; then
  5411. case $deplibs_check_method in
  5412. "file_magic "*)
  5413. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5414. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5415. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5416. $EGREP "$file_magic_regex" > /dev/null; then
  5417. :
  5418. else
  5419. cat <<EOF 1>&2
  5420. *** Warning: the command libtool uses to detect shared libraries,
  5421. *** $file_magic_cmd, produces output that libtool cannot recognize.
  5422. *** The result is that libtool may fail to recognize shared libraries
  5423. *** as such. This will affect the creation of libtool libraries that
  5424. *** depend on shared libraries, but programs linked with such libtool
  5425. *** libraries will work regardless of this problem. Nevertheless, you
  5426. *** may want to report the problem to your system manager and/or to
  5427. *** bug-libtool@gnu.org
  5428. EOF
  5429. fi ;;
  5430. esac
  5431. fi
  5432. break
  5433. fi
  5434. done
  5435. IFS="$lt_save_ifs"
  5436. MAGIC_CMD="$lt_save_MAGIC_CMD"
  5437. ;;
  5438. esac
  5439. fi
  5440. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5441. if test -n "$MAGIC_CMD"; then
  5442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  5443. $as_echo "$MAGIC_CMD" >&6; }
  5444. else
  5445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5446. $as_echo "no" >&6; }
  5447. fi
  5448. else
  5449. MAGIC_CMD=:
  5450. fi
  5451. fi
  5452. fi
  5453. ;;
  5454. esac
  5455. enable_dlopen=no
  5456. enable_win32_dll=no
  5457. # Check whether --enable-libtool-lock was given.
  5458. if test "${enable_libtool_lock+set}" = set; then :
  5459. enableval=$enable_libtool_lock;
  5460. fi
  5461. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5462. # Check whether --with-pic was given.
  5463. if test "${with_pic+set}" = set; then :
  5464. withval=$with_pic; pic_mode="$withval"
  5465. else
  5466. pic_mode=default
  5467. fi
  5468. test -z "$pic_mode" && pic_mode=default
  5469. # Use C for the default configuration in the libtool script
  5470. tagname=
  5471. lt_save_CC="$CC"
  5472. ac_ext=c
  5473. ac_cpp='$CPP $CPPFLAGS'
  5474. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5475. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5476. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5477. # Source file extension for C test sources.
  5478. ac_ext=c
  5479. # Object file extension for compiled C test sources.
  5480. objext=o
  5481. objext=$objext
  5482. # Code to be used in simple compile tests
  5483. lt_simple_compile_test_code="int some_variable = 0;\n"
  5484. # Code to be used in simple link tests
  5485. lt_simple_link_test_code='int main(){return(0);}\n'
  5486. # If no C compiler was specified, use CC.
  5487. LTCC=${LTCC-"$CC"}
  5488. # Allow CC to be a program name with arguments.
  5489. compiler=$CC
  5490. # save warnings/boilerplate of simple test code
  5491. ac_outfile=conftest.$ac_objext
  5492. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  5493. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  5494. _lt_compiler_boilerplate=`cat conftest.err`
  5495. $rm conftest*
  5496. ac_outfile=conftest.$ac_objext
  5497. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  5498. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  5499. _lt_linker_boilerplate=`cat conftest.err`
  5500. $rm conftest*
  5501. #
  5502. # Check for any special shared library compilation flags.
  5503. #
  5504. lt_prog_cc_shlib=
  5505. if test "$GCC" = no; then
  5506. case $host_os in
  5507. sco3.2v5*)
  5508. lt_prog_cc_shlib='-belf'
  5509. ;;
  5510. esac
  5511. fi
  5512. if test -n "$lt_prog_cc_shlib"; then
  5513. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  5514. $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  5515. if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
  5516. else
  5517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  5518. $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  5519. lt_cv_prog_cc_can_build_shared=no
  5520. fi
  5521. fi
  5522. #
  5523. # Check to make sure the static flag actually works.
  5524. #
  5525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  5526. $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
  5527. if test "${lt_prog_compiler_static_works+set}" = set; then :
  5528. $as_echo_n "(cached) " >&6
  5529. else
  5530. lt_prog_compiler_static_works=no
  5531. save_LDFLAGS="$LDFLAGS"
  5532. LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  5533. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  5534. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  5535. # The linker can only warn and ignore the option if not recognized
  5536. # So say no if there are warnings
  5537. if test -s conftest.err; then
  5538. # Append any errors to the config.log.
  5539. cat conftest.err 1>&5
  5540. $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
  5541. $SED '/^$/d' conftest.err >conftest.er2
  5542. if diff conftest.exp conftest.er2 >/dev/null; then
  5543. lt_prog_compiler_static_works=yes
  5544. fi
  5545. else
  5546. lt_prog_compiler_static_works=yes
  5547. fi
  5548. fi
  5549. $rm conftest*
  5550. LDFLAGS="$save_LDFLAGS"
  5551. fi
  5552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
  5553. $as_echo "$lt_prog_compiler_static_works" >&6; }
  5554. if test x"$lt_prog_compiler_static_works" = xyes; then
  5555. :
  5556. else
  5557. lt_prog_compiler_static=
  5558. fi
  5559. lt_prog_compiler_no_builtin_flag=
  5560. if test "$GCC" = yes; then
  5561. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  5562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  5563. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  5564. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  5565. $as_echo_n "(cached) " >&6
  5566. else
  5567. lt_cv_prog_compiler_rtti_exceptions=no
  5568. ac_outfile=conftest.$ac_objext
  5569. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5570. lt_compiler_flag="-fno-rtti -fno-exceptions"
  5571. # Insert the option either (1) after the last *FLAGS variable, or
  5572. # (2) before a word containing "conftest.", or (3) at the end.
  5573. # Note that $ac_compile itself does not contain backslashes and begins
  5574. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5575. # The option is referenced via a variable to avoid confusing sed.
  5576. lt_compile=`echo "$ac_compile" | $SED \
  5577. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5578. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5579. -e 's:$: $lt_compiler_flag:'`
  5580. (eval echo "\"\$as_me:6177: $lt_compile\"" >&5)
  5581. (eval "$lt_compile" 2>conftest.err)
  5582. ac_status=$?
  5583. cat conftest.err >&5
  5584. echo "$as_me:6181: \$? = $ac_status" >&5
  5585. if (exit $ac_status) && test -s "$ac_outfile"; then
  5586. # The compiler can only warn and ignore the option if not recognized
  5587. # So say no if there are warnings other than the usual output.
  5588. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  5589. $SED '/^$/d' conftest.err >conftest.er2
  5590. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  5591. lt_cv_prog_compiler_rtti_exceptions=yes
  5592. fi
  5593. fi
  5594. $rm conftest*
  5595. fi
  5596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  5597. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  5598. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  5599. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  5600. else
  5601. :
  5602. fi
  5603. fi
  5604. lt_prog_compiler_wl=
  5605. lt_prog_compiler_pic=
  5606. lt_prog_compiler_static=
  5607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  5608. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  5609. if test "$GCC" = yes; then
  5610. lt_prog_compiler_wl='-Wl,'
  5611. lt_prog_compiler_static='-static'
  5612. case $host_os in
  5613. aix*)
  5614. # All AIX code is PIC.
  5615. if test "$host_cpu" = ia64; then
  5616. # AIX 5 now supports IA64 processor
  5617. lt_prog_compiler_static='-Bstatic'
  5618. fi
  5619. ;;
  5620. amigaos*)
  5621. # FIXME: we need at least 68020 code to build shared libraries, but
  5622. # adding the `-m68020' flag to GCC prevents building anything better,
  5623. # like `-m68040'.
  5624. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  5625. ;;
  5626. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5627. # PIC is the default for these OSes.
  5628. ;;
  5629. mingw* | pw32* | os2*)
  5630. # This hack is so that the source file can tell whether it is being
  5631. # built for inclusion in a dll (and should export symbols for example).
  5632. lt_prog_compiler_pic='-DDLL_EXPORT'
  5633. ;;
  5634. darwin* | rhapsody*)
  5635. # PIC is the default on this platform
  5636. # Common symbols not allowed in MH_DYLIB files
  5637. lt_prog_compiler_pic='-fno-common'
  5638. ;;
  5639. msdosdjgpp*)
  5640. # Just because we use GCC doesn't mean we suddenly get shared libraries
  5641. # on systems that don't support them.
  5642. lt_prog_compiler_can_build_shared=no
  5643. enable_shared=no
  5644. ;;
  5645. sysv4*MP*)
  5646. if test -d /usr/nec; then
  5647. lt_prog_compiler_pic=-Kconform_pic
  5648. fi
  5649. ;;
  5650. hpux*)
  5651. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5652. # not for PA HP-UX.
  5653. case $host_cpu in
  5654. hppa*64*|ia64*)
  5655. # +Z the default
  5656. ;;
  5657. *)
  5658. lt_prog_compiler_pic='-fPIC'
  5659. ;;
  5660. esac
  5661. ;;
  5662. *)
  5663. lt_prog_compiler_pic='-fPIC'
  5664. ;;
  5665. esac
  5666. else
  5667. # PORTME Check for flag to pass linker flags through the system compiler.
  5668. case $host_os in
  5669. aix*)
  5670. lt_prog_compiler_wl='-Wl,'
  5671. if test "$host_cpu" = ia64; then
  5672. # AIX 5 now supports IA64 processor
  5673. lt_prog_compiler_static='-Bstatic'
  5674. else
  5675. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  5676. fi
  5677. ;;
  5678. darwin*)
  5679. # PIC is the default on this platform
  5680. # Common symbols not allowed in MH_DYLIB files
  5681. case $cc_basename in
  5682. xlc*)
  5683. lt_prog_compiler_pic='-qnocommon'
  5684. lt_prog_compiler_wl='-Wl,'
  5685. ;;
  5686. esac
  5687. ;;
  5688. mingw* | pw32* | os2*)
  5689. # This hack is so that the source file can tell whether it is being
  5690. # built for inclusion in a dll (and should export symbols for example).
  5691. lt_prog_compiler_pic='-DDLL_EXPORT'
  5692. ;;
  5693. hpux9* | hpux10* | hpux11*)
  5694. lt_prog_compiler_wl='-Wl,'
  5695. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5696. # not for PA HP-UX.
  5697. case $host_cpu in
  5698. hppa*64*|ia64*)
  5699. # +Z the default
  5700. ;;
  5701. *)
  5702. lt_prog_compiler_pic='+Z'
  5703. ;;
  5704. esac
  5705. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  5706. lt_prog_compiler_static='${wl}-a ${wl}archive'
  5707. ;;
  5708. irix5* | irix6* | nonstopux*)
  5709. lt_prog_compiler_wl='-Wl,'
  5710. # PIC (with -KPIC) is the default.
  5711. lt_prog_compiler_static='-non_shared'
  5712. ;;
  5713. newsos6)
  5714. lt_prog_compiler_pic='-KPIC'
  5715. lt_prog_compiler_static='-Bstatic'
  5716. ;;
  5717. linux*)
  5718. case $cc_basename in
  5719. icc* | ecc*)
  5720. lt_prog_compiler_wl='-Wl,'
  5721. lt_prog_compiler_pic='-KPIC'
  5722. lt_prog_compiler_static='-static'
  5723. ;;
  5724. pgcc* | pgf77* | pgf90* | pgf95*)
  5725. # Portland Group compilers (*not* the Pentium gcc compiler,
  5726. # which looks to be a dead project)
  5727. lt_prog_compiler_wl='-Wl,'
  5728. lt_prog_compiler_pic='-fpic'
  5729. lt_prog_compiler_static='-Bstatic'
  5730. ;;
  5731. ccc*)
  5732. lt_prog_compiler_wl='-Wl,'
  5733. # All Alpha code is PIC.
  5734. lt_prog_compiler_static='-non_shared'
  5735. ;;
  5736. esac
  5737. ;;
  5738. osf3* | osf4* | osf5*)
  5739. lt_prog_compiler_wl='-Wl,'
  5740. # All OSF/1 code is PIC.
  5741. lt_prog_compiler_static='-non_shared'
  5742. ;;
  5743. sco3.2v5*)
  5744. lt_prog_compiler_pic='-Kpic'
  5745. lt_prog_compiler_static='-dn'
  5746. ;;
  5747. solaris*)
  5748. lt_prog_compiler_pic='-KPIC'
  5749. lt_prog_compiler_static='-Bstatic'
  5750. case $cc_basename in
  5751. f77* | f90* | f95*)
  5752. lt_prog_compiler_wl='-Qoption ld ';;
  5753. *)
  5754. lt_prog_compiler_wl='-Wl,';;
  5755. esac
  5756. ;;
  5757. sunos4*)
  5758. lt_prog_compiler_wl='-Qoption ld '
  5759. lt_prog_compiler_pic='-PIC'
  5760. lt_prog_compiler_static='-Bstatic'
  5761. ;;
  5762. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5763. lt_prog_compiler_wl='-Wl,'
  5764. lt_prog_compiler_pic='-KPIC'
  5765. lt_prog_compiler_static='-Bstatic'
  5766. ;;
  5767. sysv4*MP*)
  5768. if test -d /usr/nec ;then
  5769. lt_prog_compiler_pic='-Kconform_pic'
  5770. lt_prog_compiler_static='-Bstatic'
  5771. fi
  5772. ;;
  5773. unicos*)
  5774. lt_prog_compiler_wl='-Wl,'
  5775. lt_prog_compiler_can_build_shared=no
  5776. ;;
  5777. uts4*)
  5778. lt_prog_compiler_pic='-pic'
  5779. lt_prog_compiler_static='-Bstatic'
  5780. ;;
  5781. *)
  5782. lt_prog_compiler_can_build_shared=no
  5783. ;;
  5784. esac
  5785. fi
  5786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  5787. $as_echo "$lt_prog_compiler_pic" >&6; }
  5788. #
  5789. # Check to make sure the PIC flag actually works.
  5790. #
  5791. if test -n "$lt_prog_compiler_pic"; then
  5792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  5793. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  5794. if test "${lt_prog_compiler_pic_works+set}" = set; then :
  5795. $as_echo_n "(cached) " >&6
  5796. else
  5797. lt_prog_compiler_pic_works=no
  5798. ac_outfile=conftest.$ac_objext
  5799. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5800. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  5801. # Insert the option either (1) after the last *FLAGS variable, or
  5802. # (2) before a word containing "conftest.", or (3) at the end.
  5803. # Note that $ac_compile itself does not contain backslashes and begins
  5804. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5805. # The option is referenced via a variable to avoid confusing sed.
  5806. lt_compile=`echo "$ac_compile" | $SED \
  5807. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5808. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5809. -e 's:$: $lt_compiler_flag:'`
  5810. (eval echo "\"\$as_me:6439: $lt_compile\"" >&5)
  5811. (eval "$lt_compile" 2>conftest.err)
  5812. ac_status=$?
  5813. cat conftest.err >&5
  5814. echo "$as_me:6443: \$? = $ac_status" >&5
  5815. if (exit $ac_status) && test -s "$ac_outfile"; then
  5816. # The compiler can only warn and ignore the option if not recognized
  5817. # So say no if there are warnings other than the usual output.
  5818. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  5819. $SED '/^$/d' conftest.err >conftest.er2
  5820. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  5821. lt_prog_compiler_pic_works=yes
  5822. fi
  5823. fi
  5824. $rm conftest*
  5825. fi
  5826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
  5827. $as_echo "$lt_prog_compiler_pic_works" >&6; }
  5828. if test x"$lt_prog_compiler_pic_works" = xyes; then
  5829. case $lt_prog_compiler_pic in
  5830. "" | " "*) ;;
  5831. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  5832. esac
  5833. else
  5834. lt_prog_compiler_pic=
  5835. lt_prog_compiler_can_build_shared=no
  5836. fi
  5837. fi
  5838. case $host_os in
  5839. # For platforms which do not support PIC, -DPIC is meaningless:
  5840. *djgpp*)
  5841. lt_prog_compiler_pic=
  5842. ;;
  5843. *)
  5844. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  5845. ;;
  5846. esac
  5847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  5848. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  5849. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  5850. $as_echo_n "(cached) " >&6
  5851. else
  5852. lt_cv_prog_compiler_c_o=no
  5853. $rm -r conftest 2>/dev/null
  5854. mkdir conftest
  5855. cd conftest
  5856. mkdir out
  5857. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  5858. lt_compiler_flag="-o out/conftest2.$ac_objext"
  5859. # Insert the option either (1) after the last *FLAGS variable, or
  5860. # (2) before a word containing "conftest.", or (3) at the end.
  5861. # Note that $ac_compile itself does not contain backslashes and begins
  5862. # with a dollar sign (not a hyphen), so the echo should work correctly.
  5863. lt_compile=`echo "$ac_compile" | $SED \
  5864. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  5865. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  5866. -e 's:$: $lt_compiler_flag:'`
  5867. (eval echo "\"\$as_me:6501: $lt_compile\"" >&5)
  5868. (eval "$lt_compile" 2>out/conftest.err)
  5869. ac_status=$?
  5870. cat out/conftest.err >&5
  5871. echo "$as_me:6505: \$? = $ac_status" >&5
  5872. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  5873. then
  5874. # The compiler can only warn and ignore the option if not recognized
  5875. # So say no if there are warnings
  5876. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  5877. $SED '/^$/d' out/conftest.err >out/conftest.er2
  5878. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  5879. lt_cv_prog_compiler_c_o=yes
  5880. fi
  5881. fi
  5882. chmod u+w . 2>&5
  5883. $rm conftest*
  5884. # SGI C++ compiler will create directory out/ii_files/ for
  5885. # template instantiation
  5886. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  5887. $rm out/* && rmdir out
  5888. cd ..
  5889. rmdir conftest
  5890. $rm conftest*
  5891. fi
  5892. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  5893. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  5894. hard_links="nottested"
  5895. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  5896. # do not overwrite the value of need_locks provided by the user
  5897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  5898. $as_echo_n "checking if we can lock with hard links... " >&6; }
  5899. hard_links=yes
  5900. $rm conftest*
  5901. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  5902. touch conftest.a
  5903. ln conftest.a conftest.b 2>&5 || hard_links=no
  5904. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  5905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  5906. $as_echo "$hard_links" >&6; }
  5907. if test "$hard_links" = no; then
  5908. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  5909. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  5910. need_locks=warn
  5911. fi
  5912. else
  5913. need_locks=no
  5914. fi
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  5916. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  5917. runpath_var=
  5918. allow_undefined_flag=
  5919. enable_shared_with_static_runtimes=no
  5920. archive_cmds=
  5921. archive_expsym_cmds=
  5922. old_archive_From_new_cmds=
  5923. old_archive_from_expsyms_cmds=
  5924. export_dynamic_flag_spec=
  5925. whole_archive_flag_spec=
  5926. thread_safe_flag_spec=
  5927. hardcode_libdir_flag_spec=
  5928. hardcode_libdir_flag_spec_ld=
  5929. hardcode_libdir_separator=
  5930. hardcode_direct=no
  5931. hardcode_minus_L=no
  5932. hardcode_shlibpath_var=unsupported
  5933. link_all_deplibs=unknown
  5934. hardcode_automatic=no
  5935. module_cmds=
  5936. module_expsym_cmds=
  5937. always_export_symbols=no
  5938. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5939. # include_expsyms should be a list of space-separated symbols to be *always*
  5940. # included in the symbol list
  5941. include_expsyms=
  5942. # exclude_expsyms can be an extended regexp of symbols to exclude
  5943. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  5944. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  5945. # as well as any symbol that contains `d'.
  5946. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  5947. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  5948. # platforms (ab)use it in PIC code, but their linkers get confused if
  5949. # the symbol is explicitly referenced. Since portable code cannot
  5950. # rely on this symbol name, it's probably fine to never include it in
  5951. # preloaded symbol tables.
  5952. extract_expsyms_cmds=
  5953. # Just being paranoid about ensuring that cc_basename is set.
  5954. for cc_temp in $compiler""; do
  5955. case $cc_temp in
  5956. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5957. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5958. \-*) ;;
  5959. *) break;;
  5960. esac
  5961. done
  5962. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  5963. case $host_os in
  5964. cygwin* | mingw* | pw32*)
  5965. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  5966. # When not using gcc, we currently assume that we are using
  5967. # Microsoft Visual C++.
  5968. if test "$GCC" != yes; then
  5969. with_gnu_ld=no
  5970. fi
  5971. ;;
  5972. openbsd*)
  5973. with_gnu_ld=no
  5974. ;;
  5975. esac
  5976. ld_shlibs=yes
  5977. if test "$with_gnu_ld" = yes; then
  5978. # If archive_cmds runs LD, not CC, wlarc should be empty
  5979. wlarc='${wl}'
  5980. # Set some defaults for GNU ld with shared library support. These
  5981. # are reset later if shared libraries are not supported. Putting them
  5982. # here allows them to be overridden if necessary.
  5983. runpath_var=LD_RUN_PATH
  5984. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  5985. export_dynamic_flag_spec='${wl}--export-dynamic'
  5986. # ancient GNU ld didn't support --whole-archive et. al.
  5987. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  5988. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5989. else
  5990. whole_archive_flag_spec=
  5991. fi
  5992. supports_anon_versioning=no
  5993. case `$LD -v 2>/dev/null` in
  5994. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  5995. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  5996. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  5997. *\ 2.11.*) ;; # other 2.11 versions
  5998. *) supports_anon_versioning=yes ;;
  5999. esac
  6000. # See if GNU ld supports shared libraries.
  6001. case $host_os in
  6002. aix3* | aix4* | aix5*)
  6003. # On AIX/PPC, the GNU linker is very broken
  6004. if test "$host_cpu" != ia64; then
  6005. ld_shlibs=no
  6006. cat <<EOF 1>&2
  6007. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6008. *** to be unable to reliably create shared libraries on AIX.
  6009. *** Therefore, libtool is disabling shared libraries support. If you
  6010. *** really care for shared libraries, you may want to modify your PATH
  6011. *** so that a non-GNU linker is found, and then restart.
  6012. EOF
  6013. fi
  6014. ;;
  6015. amigaos*)
  6016. 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)'
  6017. hardcode_libdir_flag_spec='-L$libdir'
  6018. hardcode_minus_L=yes
  6019. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  6020. # that the semantics of dynamic libraries on AmigaOS, at least up
  6021. # to version 4, is to share data among multiple programs linked
  6022. # with the same dynamic library. Since this doesn't match the
  6023. # behavior of shared libraries on other platforms, we can't use
  6024. # them.
  6025. ld_shlibs=no
  6026. ;;
  6027. beos*)
  6028. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6029. allow_undefined_flag=unsupported
  6030. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6031. # support --undefined. This deserves some investigation. FIXME
  6032. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6033. else
  6034. ld_shlibs=no
  6035. fi
  6036. ;;
  6037. cygwin* | mingw* | pw32*)
  6038. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  6039. # as there is no search path for DLLs.
  6040. hardcode_libdir_flag_spec='-L$libdir'
  6041. allow_undefined_flag=unsupported
  6042. always_export_symbols=no
  6043. enable_shared_with_static_runtimes=yes
  6044. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  6045. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  6046. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  6047. # If the export-symbols file already is a .def file (1st line
  6048. # is EXPORTS), use it as is; otherwise, prepend...
  6049. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6050. cp $export_symbols $output_objdir/$soname.def;
  6051. else
  6052. echo EXPORTS > $output_objdir/$soname.def;
  6053. cat $export_symbols >> $output_objdir/$soname.def;
  6054. fi~
  6055. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  6056. else
  6057. ld_shlibs=no
  6058. fi
  6059. ;;
  6060. linux*)
  6061. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6062. tmp_addflag=
  6063. case $cc_basename,$host_cpu in
  6064. pgcc*) # Portland Group C compiler
  6065. 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'
  6066. tmp_addflag=' $pic_flag'
  6067. ;;
  6068. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  6069. 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'
  6070. tmp_addflag=' $pic_flag -Mnomain' ;;
  6071. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6072. tmp_addflag=' -i_dynamic' ;;
  6073. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6074. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6075. ifc* | ifort*) # Intel Fortran compiler
  6076. tmp_addflag=' -nofor_main' ;;
  6077. esac
  6078. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6079. if test $supports_anon_versioning = yes; then
  6080. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  6081. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6082. $echo "local: *; };" >> $output_objdir/$libname.ver~
  6083. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6084. fi
  6085. else
  6086. ld_shlibs=no
  6087. fi
  6088. ;;
  6089. netbsd*)
  6090. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6091. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6092. wlarc=
  6093. else
  6094. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6095. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6096. fi
  6097. ;;
  6098. solaris* | sysv5*)
  6099. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  6100. ld_shlibs=no
  6101. cat <<EOF 1>&2
  6102. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6103. *** create shared libraries on Solaris systems. Therefore, libtool
  6104. *** is disabling shared libraries support. We urge you to upgrade GNU
  6105. *** binutils to release 2.9.1 or newer. Another option is to modify
  6106. *** your PATH or compiler configuration so that the native linker is
  6107. *** used, and then restart.
  6108. EOF
  6109. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6110. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6111. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6112. else
  6113. ld_shlibs=no
  6114. fi
  6115. ;;
  6116. sunos4*)
  6117. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6118. wlarc=
  6119. hardcode_direct=yes
  6120. hardcode_shlibpath_var=no
  6121. ;;
  6122. *)
  6123. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6124. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6125. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6126. else
  6127. ld_shlibs=no
  6128. fi
  6129. ;;
  6130. esac
  6131. if test "$ld_shlibs" = no; then
  6132. runpath_var=
  6133. hardcode_libdir_flag_spec=
  6134. export_dynamic_flag_spec=
  6135. whole_archive_flag_spec=
  6136. fi
  6137. else
  6138. # PORTME fill in a description of your system's linker (not GNU ld)
  6139. case $host_os in
  6140. aix3*)
  6141. allow_undefined_flag=unsupported
  6142. always_export_symbols=yes
  6143. 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'
  6144. # Note: this linker hardcodes the directories in LIBPATH if there
  6145. # are no directories specified by -L.
  6146. hardcode_minus_L=yes
  6147. if test "$GCC" = yes && test -z "$link_static_flag"; then
  6148. # Neither direct hardcoding nor static linking is supported with a
  6149. # broken collect2.
  6150. hardcode_direct=unsupported
  6151. fi
  6152. ;;
  6153. aix4* | aix5*)
  6154. if test "$host_cpu" = ia64; then
  6155. # On IA64, the linker does run time linking by default, so we don't
  6156. # have to do anything special.
  6157. aix_use_runtimelinking=no
  6158. exp_sym_flag='-Bexport'
  6159. no_entry_flag=""
  6160. else
  6161. # If we're using GNU nm, then we don't want the "-C" option.
  6162. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6163. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  6164. 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'
  6165. else
  6166. 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'
  6167. fi
  6168. aix_use_runtimelinking=no
  6169. # Test if we are trying to use run time linking or normal
  6170. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6171. # need to do runtime linking.
  6172. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  6173. for ld_flag in $LDFLAGS; do
  6174. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6175. aix_use_runtimelinking=yes
  6176. break
  6177. fi
  6178. done
  6179. esac
  6180. exp_sym_flag='-bexport'
  6181. no_entry_flag='-bnoentry'
  6182. fi
  6183. # When large executables or shared objects are built, AIX ld can
  6184. # have problems creating the table of contents. If linking a library
  6185. # or program results in "error TOC overflow" add -mminimal-toc to
  6186. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6187. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6188. archive_cmds=''
  6189. hardcode_direct=yes
  6190. hardcode_libdir_separator=':'
  6191. link_all_deplibs=yes
  6192. if test "$GCC" = yes; then
  6193. case $host_os in aix4.[012]|aix4.[012].*)
  6194. # We only want to do this on AIX 4.2 and lower, the check
  6195. # below for broken collect2 doesn't work under 4.3+
  6196. collect2name=`${CC} -print-prog-name=collect2`
  6197. if test -f "$collect2name" && \
  6198. strings "$collect2name" | grep resolve_lib_name >/dev/null
  6199. then
  6200. # We have reworked collect2
  6201. hardcode_direct=yes
  6202. else
  6203. # We have old collect2
  6204. hardcode_direct=unsupported
  6205. # It fails to find uninstalled libraries when the uninstalled
  6206. # path is not listed in the libpath. Setting hardcode_minus_L
  6207. # to unsupported forces relinking
  6208. hardcode_minus_L=yes
  6209. hardcode_libdir_flag_spec='-L$libdir'
  6210. hardcode_libdir_separator=
  6211. fi
  6212. esac
  6213. shared_flag='-shared'
  6214. if test "$aix_use_runtimelinking" = yes; then
  6215. shared_flag="$shared_flag "'${wl}-G'
  6216. fi
  6217. else
  6218. # not using gcc
  6219. if test "$host_cpu" = ia64; then
  6220. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6221. # chokes on -Wl,-G. The following line is correct:
  6222. shared_flag='-G'
  6223. else
  6224. if test "$aix_use_runtimelinking" = yes; then
  6225. shared_flag='${wl}-G'
  6226. else
  6227. shared_flag='${wl}-bM:SRE'
  6228. fi
  6229. fi
  6230. fi
  6231. # It seems that -bexpall does not export symbols beginning with
  6232. # underscore (_), so it is better to generate a list of symbols to export.
  6233. always_export_symbols=yes
  6234. if test "$aix_use_runtimelinking" = yes; then
  6235. # Warning - without using the other runtime loading flags (-brtl),
  6236. # -berok will link without error, but may produce a broken library.
  6237. allow_undefined_flag='-berok'
  6238. # Determine the default libpath from the value encoded in an empty executable.
  6239. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6240. /* end confdefs.h. */
  6241. int
  6242. main ()
  6243. {
  6244. ;
  6245. return 0;
  6246. }
  6247. _ACEOF
  6248. if ac_fn_c_try_link "$LINENO"; then :
  6249. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6250. }'`
  6251. # Check for a 64-bit object if we didn't find anything.
  6252. 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; }
  6253. }'`; fi
  6254. fi
  6255. rm -f core conftest.err conftest.$ac_objext \
  6256. conftest$ac_exeext conftest.$ac_ext
  6257. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6258. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6259. 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"
  6260. else
  6261. if test "$host_cpu" = ia64; then
  6262. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  6263. allow_undefined_flag="-z nodefs"
  6264. 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"
  6265. else
  6266. # Determine the default libpath from the value encoded in an empty executable.
  6267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6268. /* end confdefs.h. */
  6269. int
  6270. main ()
  6271. {
  6272. ;
  6273. return 0;
  6274. }
  6275. _ACEOF
  6276. if ac_fn_c_try_link "$LINENO"; then :
  6277. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  6278. }'`
  6279. # Check for a 64-bit object if we didn't find anything.
  6280. 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; }
  6281. }'`; fi
  6282. fi
  6283. rm -f core conftest.err conftest.$ac_objext \
  6284. conftest$ac_exeext conftest.$ac_ext
  6285. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  6286. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  6287. # Warning - without using the other run time loading flags,
  6288. # -berok will link without error, but may produce a broken library.
  6289. no_undefined_flag=' ${wl}-bernotok'
  6290. allow_undefined_flag=' ${wl}-berok'
  6291. # -bexpall does not export symbols beginning with underscore (_)
  6292. always_export_symbols=yes
  6293. # Exported symbols can be pulled into shared objects from archives
  6294. whole_archive_flag_spec=' '
  6295. archive_cmds_need_lc=yes
  6296. # This is similar to how AIX traditionally builds its shared libraries.
  6297. 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'
  6298. fi
  6299. fi
  6300. ;;
  6301. amigaos*)
  6302. 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)'
  6303. hardcode_libdir_flag_spec='-L$libdir'
  6304. hardcode_minus_L=yes
  6305. # see comment about different semantics on the GNU ld section
  6306. ld_shlibs=no
  6307. ;;
  6308. bsdi[45]*)
  6309. export_dynamic_flag_spec=-rdynamic
  6310. ;;
  6311. cygwin* | mingw* | pw32*)
  6312. # When not using gcc, we currently assume that we are using
  6313. # Microsoft Visual C++.
  6314. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6315. # no search path for DLLs.
  6316. hardcode_libdir_flag_spec=' '
  6317. allow_undefined_flag=unsupported
  6318. # Tell ltmain to make .lib files, not .a files.
  6319. libext=lib
  6320. # Tell ltmain to make .dll files, not .so files.
  6321. shrext_cmds=".dll"
  6322. # FIXME: Setting linknames here is a bad hack.
  6323. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6324. # The linker will automatically build a .lib file if we build a DLL.
  6325. old_archive_From_new_cmds='true'
  6326. # FIXME: Should let the user specify the lib program.
  6327. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  6328. fix_srcfile_path='`cygpath -w "$srcfile"`'
  6329. enable_shared_with_static_runtimes=yes
  6330. ;;
  6331. darwin* | rhapsody*)
  6332. case $host_os in
  6333. rhapsody* | darwin1.[012])
  6334. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  6335. ;;
  6336. *) # Darwin 1.3 on
  6337. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  6338. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6339. else
  6340. case ${MACOSX_DEPLOYMENT_TARGET} in
  6341. 10.[012])
  6342. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  6343. ;;
  6344. 10.*)
  6345. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  6346. ;;
  6347. esac
  6348. fi
  6349. ;;
  6350. esac
  6351. archive_cmds_need_lc=no
  6352. hardcode_direct=no
  6353. hardcode_automatic=yes
  6354. hardcode_shlibpath_var=unsupported
  6355. whole_archive_flag_spec=''
  6356. link_all_deplibs=yes
  6357. if test "$GCC" = yes ; then
  6358. output_verbose_link_cmd='echo'
  6359. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  6360. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6361. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6362. 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}'
  6363. 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}'
  6364. else
  6365. case $cc_basename in
  6366. xlc*)
  6367. output_verbose_link_cmd='echo'
  6368. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  6369. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  6370. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  6371. 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}'
  6372. 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}'
  6373. ;;
  6374. *)
  6375. ld_shlibs=no
  6376. ;;
  6377. esac
  6378. fi
  6379. ;;
  6380. dgux*)
  6381. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6382. hardcode_libdir_flag_spec='-L$libdir'
  6383. hardcode_shlibpath_var=no
  6384. ;;
  6385. freebsd1*)
  6386. ld_shlibs=no
  6387. ;;
  6388. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6389. # support. Future versions do this automatically, but an explicit c++rt0.o
  6390. # does not break anything, and helps significantly (at the cost of a little
  6391. # extra space).
  6392. freebsd2.2*)
  6393. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6394. hardcode_libdir_flag_spec='-R$libdir'
  6395. hardcode_direct=yes
  6396. hardcode_shlibpath_var=no
  6397. ;;
  6398. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6399. freebsd2*)
  6400. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6401. hardcode_direct=yes
  6402. hardcode_minus_L=yes
  6403. hardcode_shlibpath_var=no
  6404. ;;
  6405. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6406. freebsd* | kfreebsd*-gnu | dragonfly*)
  6407. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6408. hardcode_libdir_flag_spec='-R$libdir'
  6409. hardcode_direct=yes
  6410. hardcode_shlibpath_var=no
  6411. ;;
  6412. hpux9*)
  6413. if test "$GCC" = yes; then
  6414. 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'
  6415. else
  6416. 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'
  6417. fi
  6418. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6419. hardcode_libdir_separator=:
  6420. hardcode_direct=yes
  6421. # hardcode_minus_L: Not really in the search PATH,
  6422. # but as the default location of the library.
  6423. hardcode_minus_L=yes
  6424. export_dynamic_flag_spec='${wl}-E'
  6425. ;;
  6426. hpux10* | hpux11*)
  6427. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6428. case $host_cpu in
  6429. hppa*64*|ia64*)
  6430. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6431. ;;
  6432. *)
  6433. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6434. ;;
  6435. esac
  6436. else
  6437. case $host_cpu in
  6438. hppa*64*|ia64*)
  6439. archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  6440. ;;
  6441. *)
  6442. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6443. ;;
  6444. esac
  6445. fi
  6446. if test "$with_gnu_ld" = no; then
  6447. case $host_cpu in
  6448. hppa*64*)
  6449. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6450. hardcode_libdir_flag_spec_ld='+b $libdir'
  6451. hardcode_libdir_separator=:
  6452. hardcode_direct=no
  6453. hardcode_shlibpath_var=no
  6454. ;;
  6455. ia64*)
  6456. hardcode_libdir_flag_spec='-L$libdir'
  6457. hardcode_direct=no
  6458. hardcode_shlibpath_var=no
  6459. # hardcode_minus_L: Not really in the search PATH,
  6460. # but as the default location of the library.
  6461. hardcode_minus_L=yes
  6462. ;;
  6463. *)
  6464. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6465. hardcode_libdir_separator=:
  6466. hardcode_direct=yes
  6467. export_dynamic_flag_spec='${wl}-E'
  6468. # hardcode_minus_L: Not really in the search PATH,
  6469. # but as the default location of the library.
  6470. hardcode_minus_L=yes
  6471. ;;
  6472. esac
  6473. fi
  6474. ;;
  6475. irix5* | irix6* | nonstopux*)
  6476. if test "$GCC" = yes; then
  6477. 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'
  6478. else
  6479. 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'
  6480. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  6481. fi
  6482. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6483. hardcode_libdir_separator=:
  6484. link_all_deplibs=yes
  6485. ;;
  6486. netbsd*)
  6487. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6488. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6489. else
  6490. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6491. fi
  6492. hardcode_libdir_flag_spec='-R$libdir'
  6493. hardcode_direct=yes
  6494. hardcode_shlibpath_var=no
  6495. ;;
  6496. newsos6)
  6497. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6498. hardcode_direct=yes
  6499. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6500. hardcode_libdir_separator=:
  6501. hardcode_shlibpath_var=no
  6502. ;;
  6503. openbsd*)
  6504. hardcode_direct=yes
  6505. hardcode_shlibpath_var=no
  6506. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6507. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6508. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6509. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6510. export_dynamic_flag_spec='${wl}-E'
  6511. else
  6512. case $host_os in
  6513. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  6514. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6515. hardcode_libdir_flag_spec='-R$libdir'
  6516. ;;
  6517. *)
  6518. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6519. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6520. ;;
  6521. esac
  6522. fi
  6523. ;;
  6524. os2*)
  6525. hardcode_libdir_flag_spec='-L$libdir'
  6526. hardcode_minus_L=yes
  6527. allow_undefined_flag=unsupported
  6528. 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'
  6529. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6530. ;;
  6531. osf3*)
  6532. if test "$GCC" = yes; then
  6533. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6534. 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'
  6535. else
  6536. allow_undefined_flag=' -expect_unresolved \*'
  6537. 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'
  6538. fi
  6539. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6540. hardcode_libdir_separator=:
  6541. ;;
  6542. osf4* | osf5*) # as osf3* with the addition of -msym flag
  6543. if test "$GCC" = yes; then
  6544. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6545. 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'
  6546. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6547. else
  6548. allow_undefined_flag=' -expect_unresolved \*'
  6549. 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'
  6550. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  6551. $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'
  6552. # Both c and cxx compiler support -rpath directly
  6553. hardcode_libdir_flag_spec='-rpath $libdir'
  6554. fi
  6555. hardcode_libdir_separator=:
  6556. ;;
  6557. sco3.2v5*)
  6558. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6559. hardcode_shlibpath_var=no
  6560. export_dynamic_flag_spec='${wl}-Bexport'
  6561. runpath_var=LD_RUN_PATH
  6562. hardcode_runpath_var=yes
  6563. ;;
  6564. solaris*)
  6565. no_undefined_flag=' -z text'
  6566. if test "$GCC" = yes; then
  6567. wlarc='${wl}'
  6568. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6569. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6570. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  6571. else
  6572. wlarc=''
  6573. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6574. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6575. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6576. fi
  6577. hardcode_libdir_flag_spec='-R$libdir'
  6578. hardcode_shlibpath_var=no
  6579. case $host_os in
  6580. solaris2.[0-5] | solaris2.[0-5].*) ;;
  6581. *)
  6582. # The compiler driver will combine linker options so we
  6583. # cannot just pass the convience library names through
  6584. # without $wl, iff we do not link with $LD.
  6585. # Luckily, gcc supports the same syntax we need for Sun Studio.
  6586. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6587. case $wlarc in
  6588. '')
  6589. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  6590. *)
  6591. 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' ;;
  6592. esac ;;
  6593. esac
  6594. link_all_deplibs=yes
  6595. ;;
  6596. sunos4*)
  6597. if test "x$host_vendor" = xsequent; then
  6598. # Use $CC to link under sequent, because it throws in some extra .o
  6599. # files that make .init and .fini sections work.
  6600. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6601. else
  6602. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6603. fi
  6604. hardcode_libdir_flag_spec='-L$libdir'
  6605. hardcode_direct=yes
  6606. hardcode_minus_L=yes
  6607. hardcode_shlibpath_var=no
  6608. ;;
  6609. sysv4)
  6610. case $host_vendor in
  6611. sni)
  6612. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6613. hardcode_direct=yes # is this really true???
  6614. ;;
  6615. siemens)
  6616. ## LD is ld it makes a PLAMLIB
  6617. ## CC just makes a GrossModule.
  6618. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6619. reload_cmds='$CC -r -o $output$reload_objs'
  6620. hardcode_direct=no
  6621. ;;
  6622. motorola)
  6623. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6624. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  6625. ;;
  6626. esac
  6627. runpath_var='LD_RUN_PATH'
  6628. hardcode_shlibpath_var=no
  6629. ;;
  6630. sysv4.3*)
  6631. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6632. hardcode_shlibpath_var=no
  6633. export_dynamic_flag_spec='-Bexport'
  6634. ;;
  6635. sysv4*MP*)
  6636. if test -d /usr/nec; then
  6637. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6638. hardcode_shlibpath_var=no
  6639. runpath_var=LD_RUN_PATH
  6640. hardcode_runpath_var=yes
  6641. ld_shlibs=yes
  6642. fi
  6643. ;;
  6644. sysv4.2uw2*)
  6645. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6646. hardcode_direct=yes
  6647. hardcode_minus_L=no
  6648. hardcode_shlibpath_var=no
  6649. hardcode_runpath_var=yes
  6650. runpath_var=LD_RUN_PATH
  6651. ;;
  6652. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  6653. no_undefined_flag='${wl}-z ${wl}text'
  6654. if test "$GCC" = yes; then
  6655. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6656. else
  6657. archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6658. fi
  6659. runpath_var='LD_RUN_PATH'
  6660. hardcode_shlibpath_var=no
  6661. ;;
  6662. sysv5*)
  6663. no_undefined_flag=' -z text'
  6664. # $CC -shared without GNU ld will not create a library from C++
  6665. # object files and a static libstdc++, better avoid it by now
  6666. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6667. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6668. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  6669. hardcode_libdir_flag_spec=
  6670. hardcode_shlibpath_var=no
  6671. runpath_var='LD_RUN_PATH'
  6672. ;;
  6673. uts4*)
  6674. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6675. hardcode_libdir_flag_spec='-L$libdir'
  6676. hardcode_shlibpath_var=no
  6677. ;;
  6678. *)
  6679. ld_shlibs=no
  6680. ;;
  6681. esac
  6682. fi
  6683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  6684. $as_echo "$ld_shlibs" >&6; }
  6685. test "$ld_shlibs" = no && can_build_shared=no
  6686. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  6687. if test "$GCC" = yes; then
  6688. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  6689. fi
  6690. #
  6691. # Do we need to explicitly link libc?
  6692. #
  6693. case "x$archive_cmds_need_lc" in
  6694. x|xyes)
  6695. # Assume -lc should be added
  6696. archive_cmds_need_lc=yes
  6697. if test "$enable_shared" = yes && test "$GCC" = yes; then
  6698. case $archive_cmds in
  6699. *'~'*)
  6700. # FIXME: we may have to deal with multi-command sequences.
  6701. ;;
  6702. '$CC '*)
  6703. # Test whether the compiler implicitly links with -lc since on some
  6704. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6705. # to ld, don't add -lc before -lgcc.
  6706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  6707. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  6708. $rm conftest*
  6709. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  6710. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6711. (eval $ac_compile) 2>&5
  6712. ac_status=$?
  6713. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6714. test $ac_status = 0; } 2>conftest.err; then
  6715. soname=conftest
  6716. lib=conftest
  6717. libobjs=conftest.$ac_objext
  6718. deplibs=
  6719. wl=$lt_prog_compiler_wl
  6720. compiler_flags=-v
  6721. linker_flags=-v
  6722. verstring=
  6723. output_objdir=.
  6724. libname=conftest
  6725. lt_save_allow_undefined_flag=$allow_undefined_flag
  6726. allow_undefined_flag=
  6727. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  6728. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  6729. ac_status=$?
  6730. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6731. test $ac_status = 0; }
  6732. then
  6733. archive_cmds_need_lc=no
  6734. else
  6735. archive_cmds_need_lc=yes
  6736. fi
  6737. allow_undefined_flag=$lt_save_allow_undefined_flag
  6738. else
  6739. cat conftest.err 1>&5
  6740. fi
  6741. $rm conftest*
  6742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  6743. $as_echo "$archive_cmds_need_lc" >&6; }
  6744. ;;
  6745. esac
  6746. fi
  6747. ;;
  6748. esac
  6749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  6750. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  6751. library_names_spec=
  6752. libname_spec='lib$name'
  6753. soname_spec=
  6754. shrext_cmds=".so"
  6755. postinstall_cmds=
  6756. postuninstall_cmds=
  6757. finish_cmds=
  6758. finish_eval=
  6759. shlibpath_var=
  6760. shlibpath_overrides_runpath=unknown
  6761. version_type=none
  6762. dynamic_linker="$host_os ld.so"
  6763. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  6764. if test "$GCC" = yes; then
  6765. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  6766. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  6767. # if the path contains ";" then we assume it to be the separator
  6768. # otherwise default to the standard path separator (i.e. ":") - it is
  6769. # assumed that no part of a normal pathname contains ";" but that should
  6770. # okay in the real world where ";" in dirpaths is itself problematic.
  6771. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  6772. else
  6773. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  6774. fi
  6775. else
  6776. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  6777. fi
  6778. need_lib_prefix=unknown
  6779. hardcode_into_libs=no
  6780. # when you set need_version to no, make sure it does not cause -set_version
  6781. # flags to be left without arguments
  6782. need_version=unknown
  6783. case $host_os in
  6784. aix3*)
  6785. version_type=linux
  6786. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  6787. shlibpath_var=LIBPATH
  6788. # AIX 3 has no versioning support, so we append a major version to the name.
  6789. soname_spec='${libname}${release}${shared_ext}$major'
  6790. ;;
  6791. aix4* | aix5*)
  6792. version_type=linux
  6793. need_lib_prefix=no
  6794. need_version=no
  6795. hardcode_into_libs=yes
  6796. if test "$host_cpu" = ia64; then
  6797. # AIX 5 supports IA64
  6798. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  6799. shlibpath_var=LD_LIBRARY_PATH
  6800. else
  6801. # With GCC up to 2.95.x, collect2 would create an import file
  6802. # for dependence libraries. The import file would start with
  6803. # the line `#! .'. This would cause the generated library to
  6804. # depend on `.', always an invalid library. This was fixed in
  6805. # development snapshots of GCC prior to 3.0.
  6806. case $host_os in
  6807. aix4 | aix4.[01] | aix4.[01].*)
  6808. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  6809. echo ' yes '
  6810. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  6811. :
  6812. else
  6813. can_build_shared=no
  6814. fi
  6815. ;;
  6816. esac
  6817. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  6818. # soname into executable. Probably we can add versioning support to
  6819. # collect2, so additional links can be useful in future.
  6820. if test "$aix_use_runtimelinking" = yes; then
  6821. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  6822. # instead of lib<name>.a to let people know that these are not
  6823. # typical AIX shared libraries.
  6824. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6825. else
  6826. # We preserve .a as extension for shared libraries through AIX4.2
  6827. # and later when we are not doing run time linking.
  6828. library_names_spec='${libname}${release}.a $libname.a'
  6829. soname_spec='${libname}${release}${shared_ext}$major'
  6830. fi
  6831. shlibpath_var=LIBPATH
  6832. fi
  6833. ;;
  6834. amigaos*)
  6835. library_names_spec='$libname.ixlibrary $libname.a'
  6836. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  6837. 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'
  6838. ;;
  6839. beos*)
  6840. library_names_spec='${libname}${shared_ext}'
  6841. dynamic_linker="$host_os ld.so"
  6842. shlibpath_var=LIBRARY_PATH
  6843. ;;
  6844. bsdi[45]*)
  6845. version_type=linux
  6846. need_version=no
  6847. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  6848. soname_spec='${libname}${release}${shared_ext}$major'
  6849. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  6850. shlibpath_var=LD_LIBRARY_PATH
  6851. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  6852. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  6853. # the default ld.so.conf also contains /usr/contrib/lib and
  6854. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  6855. # libtool to hard-code these into programs
  6856. ;;
  6857. cygwin* | mingw* | pw32*)
  6858. version_type=windows
  6859. shrext_cmds=".dll"
  6860. need_version=no
  6861. need_lib_prefix=no
  6862. case $GCC,$host_os in
  6863. yes,cygwin* | yes,mingw* | yes,pw32*)
  6864. library_names_spec='$libname.dll.a'
  6865. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  6866. postinstall_cmds='base_file=`basename \${file}`~
  6867. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  6868. dldir=$destdir/`dirname \$dlpath`~
  6869. test -d \$dldir || mkdir -p \$dldir~
  6870. $install_prog $dir/$dlname \$dldir/$dlname~
  6871. chmod a+x \$dldir/$dlname'
  6872. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  6873. dlpath=$dir/\$dldll~
  6874. $rm \$dlpath'
  6875. shlibpath_overrides_runpath=yes
  6876. case $host_os in
  6877. cygwin*)
  6878. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  6879. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  6880. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  6881. ;;
  6882. mingw*)
  6883. # MinGW DLLs use traditional 'lib' prefix
  6884. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  6885. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  6886. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  6887. # It is most probably a Windows format PATH printed by
  6888. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  6889. # path with ; separators, and with drive letters. We can handle the
  6890. # drive letters (cygwin fileutils understands them), so leave them,
  6891. # especially as we might pass files found there to a mingw objdump,
  6892. # which wouldn't understand a cygwinified path. Ahh.
  6893. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  6894. else
  6895. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  6896. fi
  6897. ;;
  6898. pw32*)
  6899. # pw32 DLLs use 'pw' prefix rather than 'lib'
  6900. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  6901. ;;
  6902. esac
  6903. ;;
  6904. *)
  6905. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  6906. ;;
  6907. esac
  6908. dynamic_linker='Win32 ld.exe'
  6909. # FIXME: first we should search . and the directory the executable is in
  6910. shlibpath_var=PATH
  6911. ;;
  6912. darwin* | rhapsody*)
  6913. dynamic_linker="$host_os dyld"
  6914. version_type=darwin
  6915. need_lib_prefix=no
  6916. need_version=no
  6917. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  6918. soname_spec='${libname}${release}${major}$shared_ext'
  6919. shlibpath_overrides_runpath=yes
  6920. shlibpath_var=DYLD_LIBRARY_PATH
  6921. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  6922. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  6923. if test "$GCC" = yes; then
  6924. 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"`
  6925. else
  6926. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  6927. fi
  6928. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  6929. ;;
  6930. dgux*)
  6931. version_type=linux
  6932. need_lib_prefix=no
  6933. need_version=no
  6934. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  6935. soname_spec='${libname}${release}${shared_ext}$major'
  6936. shlibpath_var=LD_LIBRARY_PATH
  6937. ;;
  6938. freebsd1*)
  6939. dynamic_linker=no
  6940. ;;
  6941. kfreebsd*-gnu)
  6942. version_type=linux
  6943. need_lib_prefix=no
  6944. need_version=no
  6945. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  6946. soname_spec='${libname}${release}${shared_ext}$major'
  6947. shlibpath_var=LD_LIBRARY_PATH
  6948. shlibpath_overrides_runpath=no
  6949. hardcode_into_libs=yes
  6950. dynamic_linker='GNU ld.so'
  6951. ;;
  6952. freebsd* | dragonfly*)
  6953. # DragonFly does not have aout. When/if they implement a new
  6954. # versioning mechanism, adjust this.
  6955. if test -x /usr/bin/objformat; then
  6956. objformat=`/usr/bin/objformat`
  6957. else
  6958. case $host_os in
  6959. freebsd[123]*) objformat=aout ;;
  6960. *) objformat=elf ;;
  6961. esac
  6962. fi
  6963. version_type=freebsd-$objformat
  6964. case $version_type in
  6965. freebsd-elf*)
  6966. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  6967. need_version=no
  6968. need_lib_prefix=no
  6969. ;;
  6970. freebsd-*)
  6971. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  6972. need_version=yes
  6973. ;;
  6974. esac
  6975. shlibpath_var=LD_LIBRARY_PATH
  6976. case $host_os in
  6977. freebsd2*)
  6978. shlibpath_overrides_runpath=yes
  6979. ;;
  6980. freebsd3.[01]* | freebsdelf3.[01]*)
  6981. shlibpath_overrides_runpath=yes
  6982. hardcode_into_libs=yes
  6983. ;;
  6984. *) # from 3.2 on
  6985. shlibpath_overrides_runpath=no
  6986. hardcode_into_libs=yes
  6987. ;;
  6988. esac
  6989. ;;
  6990. gnu*)
  6991. version_type=linux
  6992. need_lib_prefix=no
  6993. need_version=no
  6994. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  6995. soname_spec='${libname}${release}${shared_ext}$major'
  6996. shlibpath_var=LD_LIBRARY_PATH
  6997. hardcode_into_libs=yes
  6998. ;;
  6999. hpux9* | hpux10* | hpux11*)
  7000. # Give a soname corresponding to the major version so that dld.sl refuses to
  7001. # link against other versions.
  7002. version_type=sunos
  7003. need_lib_prefix=no
  7004. need_version=no
  7005. case $host_cpu in
  7006. ia64*)
  7007. shrext_cmds='.so'
  7008. hardcode_into_libs=yes
  7009. dynamic_linker="$host_os dld.so"
  7010. shlibpath_var=LD_LIBRARY_PATH
  7011. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7012. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7013. soname_spec='${libname}${release}${shared_ext}$major'
  7014. if test "X$HPUX_IA64_MODE" = X32; then
  7015. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  7016. else
  7017. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  7018. fi
  7019. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7020. ;;
  7021. hppa*64*)
  7022. shrext_cmds='.sl'
  7023. hardcode_into_libs=yes
  7024. dynamic_linker="$host_os dld.sl"
  7025. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  7026. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  7027. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7028. soname_spec='${libname}${release}${shared_ext}$major'
  7029. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  7030. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  7031. ;;
  7032. *)
  7033. shrext_cmds='.sl'
  7034. dynamic_linker="$host_os dld.sl"
  7035. shlibpath_var=SHLIB_PATH
  7036. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7037. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7038. soname_spec='${libname}${release}${shared_ext}$major'
  7039. ;;
  7040. esac
  7041. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7042. postinstall_cmds='chmod 555 $lib'
  7043. ;;
  7044. irix5* | irix6* | nonstopux*)
  7045. case $host_os in
  7046. nonstopux*) version_type=nonstopux ;;
  7047. *)
  7048. if test "$lt_cv_prog_gnu_ld" = yes; then
  7049. version_type=linux
  7050. else
  7051. version_type=irix
  7052. fi ;;
  7053. esac
  7054. need_lib_prefix=no
  7055. need_version=no
  7056. soname_spec='${libname}${release}${shared_ext}$major'
  7057. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  7058. case $host_os in
  7059. irix5* | nonstopux*)
  7060. libsuff= shlibsuff=
  7061. ;;
  7062. *)
  7063. case $LD in # libtool.m4 will add one of these switches to LD
  7064. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  7065. libsuff= shlibsuff= libmagic=32-bit;;
  7066. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  7067. libsuff=32 shlibsuff=N32 libmagic=N32;;
  7068. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  7069. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  7070. *) libsuff= shlibsuff= libmagic=never-match;;
  7071. esac
  7072. ;;
  7073. esac
  7074. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  7075. shlibpath_overrides_runpath=no
  7076. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  7077. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  7078. hardcode_into_libs=yes
  7079. ;;
  7080. # No shared lib support for Linux oldld, aout, or coff.
  7081. linux*oldld* | linux*aout* | linux*coff*)
  7082. dynamic_linker=no
  7083. ;;
  7084. # This must be Linux ELF.
  7085. linux*)
  7086. version_type=linux
  7087. need_lib_prefix=no
  7088. need_version=no
  7089. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7090. soname_spec='${libname}${release}${shared_ext}$major'
  7091. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  7092. shlibpath_var=LD_LIBRARY_PATH
  7093. shlibpath_overrides_runpath=no
  7094. # This implies no fast_install, which is unacceptable.
  7095. # Some rework will be needed to allow for fast_install
  7096. # before this can be enabled.
  7097. hardcode_into_libs=yes
  7098. # Append ld.so.conf contents to the search path
  7099. if test -f /etc/ld.so.conf; then
  7100. 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' ' '`
  7101. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  7102. fi
  7103. # We used to test for /lib/ld.so.1 and disable shared libraries on
  7104. # powerpc, because MkLinux only supported shared libraries with the
  7105. # GNU dynamic linker. Since this was broken with cross compilers,
  7106. # most powerpc-linux boxes support dynamic linking these days and
  7107. # people can always --disable-shared, the test was removed, and we
  7108. # assume the GNU/Linux dynamic linker is in use.
  7109. dynamic_linker='GNU/Linux ld.so'
  7110. ;;
  7111. knetbsd*-gnu)
  7112. version_type=linux
  7113. need_lib_prefix=no
  7114. need_version=no
  7115. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7116. soname_spec='${libname}${release}${shared_ext}$major'
  7117. shlibpath_var=LD_LIBRARY_PATH
  7118. shlibpath_overrides_runpath=no
  7119. hardcode_into_libs=yes
  7120. dynamic_linker='GNU ld.so'
  7121. ;;
  7122. netbsd*)
  7123. version_type=sunos
  7124. need_lib_prefix=no
  7125. need_version=no
  7126. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7127. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7128. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7129. dynamic_linker='NetBSD (a.out) ld.so'
  7130. else
  7131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  7132. soname_spec='${libname}${release}${shared_ext}$major'
  7133. dynamic_linker='NetBSD ld.elf_so'
  7134. fi
  7135. shlibpath_var=LD_LIBRARY_PATH
  7136. shlibpath_overrides_runpath=yes
  7137. hardcode_into_libs=yes
  7138. ;;
  7139. newsos6)
  7140. version_type=linux
  7141. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7142. shlibpath_var=LD_LIBRARY_PATH
  7143. shlibpath_overrides_runpath=yes
  7144. ;;
  7145. nto-qnx*)
  7146. version_type=linux
  7147. need_lib_prefix=no
  7148. need_version=no
  7149. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7150. soname_spec='${libname}${release}${shared_ext}$major'
  7151. shlibpath_var=LD_LIBRARY_PATH
  7152. shlibpath_overrides_runpath=yes
  7153. ;;
  7154. openbsd*)
  7155. version_type=sunos
  7156. need_lib_prefix=no
  7157. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  7158. case $host_os in
  7159. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  7160. *) need_version=no ;;
  7161. esac
  7162. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7163. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7164. shlibpath_var=LD_LIBRARY_PATH
  7165. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7166. case $host_os in
  7167. openbsd2.[89] | openbsd2.[89].*)
  7168. shlibpath_overrides_runpath=no
  7169. ;;
  7170. *)
  7171. shlibpath_overrides_runpath=yes
  7172. ;;
  7173. esac
  7174. else
  7175. shlibpath_overrides_runpath=yes
  7176. fi
  7177. ;;
  7178. os2*)
  7179. libname_spec='$name'
  7180. shrext_cmds=".dll"
  7181. need_lib_prefix=no
  7182. library_names_spec='$libname${shared_ext} $libname.a'
  7183. dynamic_linker='OS/2 ld.exe'
  7184. shlibpath_var=LIBPATH
  7185. ;;
  7186. osf3* | osf4* | osf5*)
  7187. version_type=osf
  7188. need_lib_prefix=no
  7189. need_version=no
  7190. soname_spec='${libname}${release}${shared_ext}$major'
  7191. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7192. shlibpath_var=LD_LIBRARY_PATH
  7193. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  7194. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  7195. ;;
  7196. sco3.2v5*)
  7197. version_type=osf
  7198. soname_spec='${libname}${release}${shared_ext}$major'
  7199. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7200. shlibpath_var=LD_LIBRARY_PATH
  7201. ;;
  7202. solaris*)
  7203. version_type=linux
  7204. need_lib_prefix=no
  7205. need_version=no
  7206. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7207. soname_spec='${libname}${release}${shared_ext}$major'
  7208. shlibpath_var=LD_LIBRARY_PATH
  7209. shlibpath_overrides_runpath=yes
  7210. hardcode_into_libs=yes
  7211. # ldd complains unless libraries are executable
  7212. postinstall_cmds='chmod +x $lib'
  7213. ;;
  7214. sunos4*)
  7215. version_type=sunos
  7216. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  7217. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  7218. shlibpath_var=LD_LIBRARY_PATH
  7219. shlibpath_overrides_runpath=yes
  7220. if test "$with_gnu_ld" = yes; then
  7221. need_lib_prefix=no
  7222. fi
  7223. need_version=yes
  7224. ;;
  7225. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7226. version_type=linux
  7227. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7228. soname_spec='${libname}${release}${shared_ext}$major'
  7229. shlibpath_var=LD_LIBRARY_PATH
  7230. case $host_vendor in
  7231. sni)
  7232. shlibpath_overrides_runpath=no
  7233. need_lib_prefix=no
  7234. export_dynamic_flag_spec='${wl}-Blargedynsym'
  7235. runpath_var=LD_RUN_PATH
  7236. ;;
  7237. siemens)
  7238. need_lib_prefix=no
  7239. ;;
  7240. motorola)
  7241. need_lib_prefix=no
  7242. need_version=no
  7243. shlibpath_overrides_runpath=no
  7244. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  7245. ;;
  7246. esac
  7247. ;;
  7248. sysv4*MP*)
  7249. if test -d /usr/nec ;then
  7250. version_type=linux
  7251. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  7252. soname_spec='$libname${shared_ext}.$major'
  7253. shlibpath_var=LD_LIBRARY_PATH
  7254. fi
  7255. ;;
  7256. uts4*)
  7257. version_type=linux
  7258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  7259. soname_spec='${libname}${release}${shared_ext}$major'
  7260. shlibpath_var=LD_LIBRARY_PATH
  7261. ;;
  7262. *)
  7263. dynamic_linker=no
  7264. ;;
  7265. esac
  7266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  7267. $as_echo "$dynamic_linker" >&6; }
  7268. test "$dynamic_linker" = no && can_build_shared=no
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  7270. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  7271. hardcode_action=
  7272. if test -n "$hardcode_libdir_flag_spec" || \
  7273. test -n "$runpath_var" || \
  7274. test "X$hardcode_automatic" = "Xyes" ; then
  7275. # We can hardcode non-existant directories.
  7276. if test "$hardcode_direct" != no &&
  7277. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  7278. # have to relink, otherwise we might link with an installed library
  7279. # when we should be linking with a yet-to-be-installed one
  7280. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  7281. test "$hardcode_minus_L" != no; then
  7282. # Linking always hardcodes the temporary library directory.
  7283. hardcode_action=relink
  7284. else
  7285. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  7286. hardcode_action=immediate
  7287. fi
  7288. else
  7289. # We cannot hardcode anything, or else we can only hardcode existing
  7290. # directories.
  7291. hardcode_action=unsupported
  7292. fi
  7293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  7294. $as_echo "$hardcode_action" >&6; }
  7295. if test "$hardcode_action" = relink; then
  7296. # Fast installation is not supported
  7297. enable_fast_install=no
  7298. elif test "$shlibpath_overrides_runpath" = yes ||
  7299. test "$enable_shared" = no; then
  7300. # Fast installation is not necessary
  7301. enable_fast_install=needless
  7302. fi
  7303. striplib=
  7304. old_striplib=
  7305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  7306. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  7307. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  7308. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  7309. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  7310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7311. $as_echo "yes" >&6; }
  7312. else
  7313. # FIXME - insert some real tests, host_os isn't really good enough
  7314. case $host_os in
  7315. darwin*)
  7316. if test -n "$STRIP" ; then
  7317. striplib="$STRIP -x"
  7318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7319. $as_echo "yes" >&6; }
  7320. else
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7322. $as_echo "no" >&6; }
  7323. fi
  7324. ;;
  7325. *)
  7326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7327. $as_echo "no" >&6; }
  7328. ;;
  7329. esac
  7330. fi
  7331. if test "x$enable_dlopen" != xyes; then
  7332. enable_dlopen=unknown
  7333. enable_dlopen_self=unknown
  7334. enable_dlopen_self_static=unknown
  7335. else
  7336. lt_cv_dlopen=no
  7337. lt_cv_dlopen_libs=
  7338. case $host_os in
  7339. beos*)
  7340. lt_cv_dlopen="load_add_on"
  7341. lt_cv_dlopen_libs=
  7342. lt_cv_dlopen_self=yes
  7343. ;;
  7344. mingw* | pw32*)
  7345. lt_cv_dlopen="LoadLibrary"
  7346. lt_cv_dlopen_libs=
  7347. ;;
  7348. cygwin*)
  7349. lt_cv_dlopen="dlopen"
  7350. lt_cv_dlopen_libs=
  7351. ;;
  7352. darwin*)
  7353. # if libdl is installed we need to link against it
  7354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  7355. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  7356. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  7357. $as_echo_n "(cached) " >&6
  7358. else
  7359. ac_check_lib_save_LIBS=$LIBS
  7360. LIBS="-ldl $LIBS"
  7361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7362. /* end confdefs.h. */
  7363. /* Override any GCC internal prototype to avoid an error.
  7364. Use char because int might match the return type of a GCC
  7365. builtin and then its argument prototype would still apply. */
  7366. #ifdef __cplusplus
  7367. extern "C"
  7368. #endif
  7369. char dlopen ();
  7370. int
  7371. main ()
  7372. {
  7373. return dlopen ();
  7374. ;
  7375. return 0;
  7376. }
  7377. _ACEOF
  7378. if ac_fn_c_try_link "$LINENO"; then :
  7379. ac_cv_lib_dl_dlopen=yes
  7380. else
  7381. ac_cv_lib_dl_dlopen=no
  7382. fi
  7383. rm -f core conftest.err conftest.$ac_objext \
  7384. conftest$ac_exeext conftest.$ac_ext
  7385. LIBS=$ac_check_lib_save_LIBS
  7386. fi
  7387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  7388. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  7389. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  7390. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7391. else
  7392. lt_cv_dlopen="dyld"
  7393. lt_cv_dlopen_libs=
  7394. lt_cv_dlopen_self=yes
  7395. fi
  7396. ;;
  7397. *)
  7398. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  7399. if test "x$ac_cv_func_shl_load" = x""yes; then :
  7400. lt_cv_dlopen="shl_load"
  7401. else
  7402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  7403. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  7404. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  7405. $as_echo_n "(cached) " >&6
  7406. else
  7407. ac_check_lib_save_LIBS=$LIBS
  7408. LIBS="-ldld $LIBS"
  7409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7410. /* end confdefs.h. */
  7411. /* Override any GCC internal prototype to avoid an error.
  7412. Use char because int might match the return type of a GCC
  7413. builtin and then its argument prototype would still apply. */
  7414. #ifdef __cplusplus
  7415. extern "C"
  7416. #endif
  7417. char shl_load ();
  7418. int
  7419. main ()
  7420. {
  7421. return shl_load ();
  7422. ;
  7423. return 0;
  7424. }
  7425. _ACEOF
  7426. if ac_fn_c_try_link "$LINENO"; then :
  7427. ac_cv_lib_dld_shl_load=yes
  7428. else
  7429. ac_cv_lib_dld_shl_load=no
  7430. fi
  7431. rm -f core conftest.err conftest.$ac_objext \
  7432. conftest$ac_exeext conftest.$ac_ext
  7433. LIBS=$ac_check_lib_save_LIBS
  7434. fi
  7435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  7436. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  7437. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  7438. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  7439. else
  7440. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  7441. if test "x$ac_cv_func_dlopen" = x""yes; then :
  7442. lt_cv_dlopen="dlopen"
  7443. else
  7444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  7445. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  7446. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  7447. $as_echo_n "(cached) " >&6
  7448. else
  7449. ac_check_lib_save_LIBS=$LIBS
  7450. LIBS="-ldl $LIBS"
  7451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7452. /* end confdefs.h. */
  7453. /* Override any GCC internal prototype to avoid an error.
  7454. Use char because int might match the return type of a GCC
  7455. builtin and then its argument prototype would still apply. */
  7456. #ifdef __cplusplus
  7457. extern "C"
  7458. #endif
  7459. char dlopen ();
  7460. int
  7461. main ()
  7462. {
  7463. return dlopen ();
  7464. ;
  7465. return 0;
  7466. }
  7467. _ACEOF
  7468. if ac_fn_c_try_link "$LINENO"; then :
  7469. ac_cv_lib_dl_dlopen=yes
  7470. else
  7471. ac_cv_lib_dl_dlopen=no
  7472. fi
  7473. rm -f core conftest.err conftest.$ac_objext \
  7474. conftest$ac_exeext conftest.$ac_ext
  7475. LIBS=$ac_check_lib_save_LIBS
  7476. fi
  7477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  7478. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  7479. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  7480. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  7481. else
  7482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  7483. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  7484. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  7485. $as_echo_n "(cached) " >&6
  7486. else
  7487. ac_check_lib_save_LIBS=$LIBS
  7488. LIBS="-lsvld $LIBS"
  7489. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7490. /* end confdefs.h. */
  7491. /* Override any GCC internal prototype to avoid an error.
  7492. Use char because int might match the return type of a GCC
  7493. builtin and then its argument prototype would still apply. */
  7494. #ifdef __cplusplus
  7495. extern "C"
  7496. #endif
  7497. char dlopen ();
  7498. int
  7499. main ()
  7500. {
  7501. return dlopen ();
  7502. ;
  7503. return 0;
  7504. }
  7505. _ACEOF
  7506. if ac_fn_c_try_link "$LINENO"; then :
  7507. ac_cv_lib_svld_dlopen=yes
  7508. else
  7509. ac_cv_lib_svld_dlopen=no
  7510. fi
  7511. rm -f core conftest.err conftest.$ac_objext \
  7512. conftest$ac_exeext conftest.$ac_ext
  7513. LIBS=$ac_check_lib_save_LIBS
  7514. fi
  7515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  7516. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  7517. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  7518. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  7519. else
  7520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  7521. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  7522. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  7523. $as_echo_n "(cached) " >&6
  7524. else
  7525. ac_check_lib_save_LIBS=$LIBS
  7526. LIBS="-ldld $LIBS"
  7527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7528. /* end confdefs.h. */
  7529. /* Override any GCC internal prototype to avoid an error.
  7530. Use char because int might match the return type of a GCC
  7531. builtin and then its argument prototype would still apply. */
  7532. #ifdef __cplusplus
  7533. extern "C"
  7534. #endif
  7535. char dld_link ();
  7536. int
  7537. main ()
  7538. {
  7539. return dld_link ();
  7540. ;
  7541. return 0;
  7542. }
  7543. _ACEOF
  7544. if ac_fn_c_try_link "$LINENO"; then :
  7545. ac_cv_lib_dld_dld_link=yes
  7546. else
  7547. ac_cv_lib_dld_dld_link=no
  7548. fi
  7549. rm -f core conftest.err conftest.$ac_objext \
  7550. conftest$ac_exeext conftest.$ac_ext
  7551. LIBS=$ac_check_lib_save_LIBS
  7552. fi
  7553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  7554. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  7555. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  7556. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  7557. fi
  7558. fi
  7559. fi
  7560. fi
  7561. fi
  7562. fi
  7563. ;;
  7564. esac
  7565. if test "x$lt_cv_dlopen" != xno; then
  7566. enable_dlopen=yes
  7567. else
  7568. enable_dlopen=no
  7569. fi
  7570. case $lt_cv_dlopen in
  7571. dlopen)
  7572. save_CPPFLAGS="$CPPFLAGS"
  7573. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  7574. save_LDFLAGS="$LDFLAGS"
  7575. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  7576. save_LIBS="$LIBS"
  7577. LIBS="$lt_cv_dlopen_libs $LIBS"
  7578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  7579. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  7580. if test "${lt_cv_dlopen_self+set}" = set; then :
  7581. $as_echo_n "(cached) " >&6
  7582. else
  7583. if test "$cross_compiling" = yes; then :
  7584. lt_cv_dlopen_self=cross
  7585. else
  7586. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  7587. lt_status=$lt_dlunknown
  7588. cat > conftest.$ac_ext <<EOF
  7589. #line 8373 "configure"
  7590. #include "confdefs.h"
  7591. #if HAVE_DLFCN_H
  7592. #include <dlfcn.h>
  7593. #endif
  7594. #include <stdio.h>
  7595. #ifdef RTLD_GLOBAL
  7596. # define LT_DLGLOBAL RTLD_GLOBAL
  7597. #else
  7598. # ifdef DL_GLOBAL
  7599. # define LT_DLGLOBAL DL_GLOBAL
  7600. # else
  7601. # define LT_DLGLOBAL 0
  7602. # endif
  7603. #endif
  7604. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  7605. find out it does not work in some platform. */
  7606. #ifndef LT_DLLAZY_OR_NOW
  7607. # ifdef RTLD_LAZY
  7608. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  7609. # else
  7610. # ifdef DL_LAZY
  7611. # define LT_DLLAZY_OR_NOW DL_LAZY
  7612. # else
  7613. # ifdef RTLD_NOW
  7614. # define LT_DLLAZY_OR_NOW RTLD_NOW
  7615. # else
  7616. # ifdef DL_NOW
  7617. # define LT_DLLAZY_OR_NOW DL_NOW
  7618. # else
  7619. # define LT_DLLAZY_OR_NOW 0
  7620. # endif
  7621. # endif
  7622. # endif
  7623. # endif
  7624. #endif
  7625. #ifdef __cplusplus
  7626. extern "C" void exit (int);
  7627. #endif
  7628. void fnord() { int i=42;}
  7629. int main ()
  7630. {
  7631. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  7632. int status = $lt_dlunknown;
  7633. if (self)
  7634. {
  7635. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  7636. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  7637. /* dlclose (self); */
  7638. }
  7639. exit (status);
  7640. }
  7641. EOF
  7642. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  7643. (eval $ac_link) 2>&5
  7644. ac_status=$?
  7645. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7646. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  7647. (./conftest; exit; ) >&5 2>/dev/null
  7648. lt_status=$?
  7649. case x$lt_status in
  7650. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  7651. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  7652. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  7653. esac
  7654. else :
  7655. # compilation failed
  7656. lt_cv_dlopen_self=no
  7657. fi
  7658. fi
  7659. rm -fr conftest*
  7660. fi
  7661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  7662. $as_echo "$lt_cv_dlopen_self" >&6; }
  7663. if test "x$lt_cv_dlopen_self" = xyes; then
  7664. LDFLAGS="$LDFLAGS $link_static_flag"
  7665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  7666. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  7667. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  7668. $as_echo_n "(cached) " >&6
  7669. else
  7670. if test "$cross_compiling" = yes; then :
  7671. lt_cv_dlopen_self_static=cross
  7672. else
  7673. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  7674. lt_status=$lt_dlunknown
  7675. cat > conftest.$ac_ext <<EOF
  7676. #line 8471 "configure"
  7677. #include "confdefs.h"
  7678. #if HAVE_DLFCN_H
  7679. #include <dlfcn.h>
  7680. #endif
  7681. #include <stdio.h>
  7682. #ifdef RTLD_GLOBAL
  7683. # define LT_DLGLOBAL RTLD_GLOBAL
  7684. #else
  7685. # ifdef DL_GLOBAL
  7686. # define LT_DLGLOBAL DL_GLOBAL
  7687. # else
  7688. # define LT_DLGLOBAL 0
  7689. # endif
  7690. #endif
  7691. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  7692. find out it does not work in some platform. */
  7693. #ifndef LT_DLLAZY_OR_NOW
  7694. # ifdef RTLD_LAZY
  7695. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  7696. # else
  7697. # ifdef DL_LAZY
  7698. # define LT_DLLAZY_OR_NOW DL_LAZY
  7699. # else
  7700. # ifdef RTLD_NOW
  7701. # define LT_DLLAZY_OR_NOW RTLD_NOW
  7702. # else
  7703. # ifdef DL_NOW
  7704. # define LT_DLLAZY_OR_NOW DL_NOW
  7705. # else
  7706. # define LT_DLLAZY_OR_NOW 0
  7707. # endif
  7708. # endif
  7709. # endif
  7710. # endif
  7711. #endif
  7712. #ifdef __cplusplus
  7713. extern "C" void exit (int);
  7714. #endif
  7715. void fnord() { int i=42;}
  7716. int main ()
  7717. {
  7718. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  7719. int status = $lt_dlunknown;
  7720. if (self)
  7721. {
  7722. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  7723. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  7724. /* dlclose (self); */
  7725. }
  7726. exit (status);
  7727. }
  7728. EOF
  7729. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  7730. (eval $ac_link) 2>&5
  7731. ac_status=$?
  7732. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7733. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  7734. (./conftest; exit; ) >&5 2>/dev/null
  7735. lt_status=$?
  7736. case x$lt_status in
  7737. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  7738. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  7739. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  7740. esac
  7741. else :
  7742. # compilation failed
  7743. lt_cv_dlopen_self_static=no
  7744. fi
  7745. fi
  7746. rm -fr conftest*
  7747. fi
  7748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  7749. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  7750. fi
  7751. CPPFLAGS="$save_CPPFLAGS"
  7752. LDFLAGS="$save_LDFLAGS"
  7753. LIBS="$save_LIBS"
  7754. ;;
  7755. esac
  7756. case $lt_cv_dlopen_self in
  7757. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  7758. *) enable_dlopen_self=unknown ;;
  7759. esac
  7760. case $lt_cv_dlopen_self_static in
  7761. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  7762. *) enable_dlopen_self_static=unknown ;;
  7763. esac
  7764. fi
  7765. # Report which librarie types wil actually be built
  7766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  7767. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  7768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  7769. $as_echo "$can_build_shared" >&6; }
  7770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  7771. $as_echo_n "checking whether to build shared libraries... " >&6; }
  7772. test "$can_build_shared" = "no" && enable_shared=no
  7773. # On AIX, shared libraries and static libraries use the same namespace, and
  7774. # are all built from PIC.
  7775. case $host_os in
  7776. aix3*)
  7777. test "$enable_shared" = yes && enable_static=no
  7778. if test -n "$RANLIB"; then
  7779. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7780. postinstall_cmds='$RANLIB $lib'
  7781. fi
  7782. ;;
  7783. aix4* | aix5*)
  7784. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  7785. test "$enable_shared" = yes && enable_static=no
  7786. fi
  7787. ;;
  7788. esac
  7789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  7790. $as_echo "$enable_shared" >&6; }
  7791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  7792. $as_echo_n "checking whether to build static libraries... " >&6; }
  7793. # Make sure either enable_shared or enable_static is yes.
  7794. test "$enable_shared" = yes || enable_static=yes
  7795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  7796. $as_echo "$enable_static" >&6; }
  7797. # The else clause should only fire when bootstrapping the
  7798. # libtool distribution, otherwise you forgot to ship ltmain.sh
  7799. # with your package, and you will get complaints that there are
  7800. # no rules to generate ltmain.sh.
  7801. if test -f "$ltmain"; then
  7802. # See if we are running on zsh, and set the options which allow our commands through
  7803. # without removal of \ escapes.
  7804. if test -n "${ZSH_VERSION+set}" ; then
  7805. setopt NO_GLOB_SUBST
  7806. fi
  7807. # Now quote all the things that may contain metacharacters while being
  7808. # careful not to overquote the AC_SUBSTed values. We take copies of the
  7809. # variables and quote the copies for generation of the libtool script.
  7810. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  7811. SED SHELL STRIP \
  7812. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  7813. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  7814. deplibs_check_method reload_flag reload_cmds need_locks \
  7815. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  7816. lt_cv_sys_global_symbol_to_c_name_address \
  7817. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  7818. old_postinstall_cmds old_postuninstall_cmds \
  7819. compiler \
  7820. CC \
  7821. LD \
  7822. lt_prog_compiler_wl \
  7823. lt_prog_compiler_pic \
  7824. lt_prog_compiler_static \
  7825. lt_prog_compiler_no_builtin_flag \
  7826. export_dynamic_flag_spec \
  7827. thread_safe_flag_spec \
  7828. whole_archive_flag_spec \
  7829. enable_shared_with_static_runtimes \
  7830. old_archive_cmds \
  7831. old_archive_from_new_cmds \
  7832. predep_objects \
  7833. postdep_objects \
  7834. predeps \
  7835. postdeps \
  7836. compiler_lib_search_path \
  7837. archive_cmds \
  7838. archive_expsym_cmds \
  7839. postinstall_cmds \
  7840. postuninstall_cmds \
  7841. old_archive_from_expsyms_cmds \
  7842. allow_undefined_flag \
  7843. no_undefined_flag \
  7844. export_symbols_cmds \
  7845. hardcode_libdir_flag_spec \
  7846. hardcode_libdir_flag_spec_ld \
  7847. hardcode_libdir_separator \
  7848. hardcode_automatic \
  7849. module_cmds \
  7850. module_expsym_cmds \
  7851. lt_cv_prog_compiler_c_o \
  7852. exclude_expsyms \
  7853. include_expsyms; do
  7854. case $var in
  7855. old_archive_cmds | \
  7856. old_archive_from_new_cmds | \
  7857. archive_cmds | \
  7858. archive_expsym_cmds | \
  7859. module_cmds | \
  7860. module_expsym_cmds | \
  7861. old_archive_from_expsyms_cmds | \
  7862. export_symbols_cmds | \
  7863. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  7864. postinstall_cmds | postuninstall_cmds | \
  7865. old_postinstall_cmds | old_postuninstall_cmds | \
  7866. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  7867. # Double-quote double-evaled strings.
  7868. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  7869. ;;
  7870. *)
  7871. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  7872. ;;
  7873. esac
  7874. done
  7875. case $lt_echo in
  7876. *'\$0 --fallback-echo"')
  7877. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  7878. ;;
  7879. esac
  7880. cfgfile="${ofile}T"
  7881. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  7882. $rm -f "$cfgfile"
  7883. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
  7884. $as_echo "$as_me: creating $ofile" >&6;}
  7885. cat <<__EOF__ >> "$cfgfile"
  7886. #! $SHELL
  7887. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  7888. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  7889. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  7890. #
  7891. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  7892. # Free Software Foundation, Inc.
  7893. #
  7894. # This file is part of GNU Libtool:
  7895. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  7896. #
  7897. # This program is free software; you can redistribute it and/or modify
  7898. # it under the terms of the GNU General Public License as published by
  7899. # the Free Software Foundation; either version 2 of the License, or
  7900. # (at your option) any later version.
  7901. #
  7902. # This program is distributed in the hope that it will be useful, but
  7903. # WITHOUT ANY WARRANTY; without even the implied warranty of
  7904. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  7905. # General Public License for more details.
  7906. #
  7907. # You should have received a copy of the GNU General Public License
  7908. # along with this program; if not, write to the Free Software
  7909. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  7910. #
  7911. # As a special exception to the GNU General Public License, if you
  7912. # distribute this file as part of a program that contains a
  7913. # configuration script generated by Autoconf, you may include it under
  7914. # the same distribution terms that you use for the rest of that program.
  7915. # A sed program that does not truncate output.
  7916. SED=$lt_SED
  7917. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  7918. Xsed="$SED -e 1s/^X//"
  7919. # The HP-UX ksh and POSIX shell print the target directory to stdout
  7920. # if CDPATH is set.
  7921. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7922. # The names of the tagged configurations supported by this script.
  7923. available_tags=
  7924. # ### BEGIN LIBTOOL CONFIG
  7925. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  7926. # Shell to use when invoking shell scripts.
  7927. SHELL=$lt_SHELL
  7928. # Whether or not to build shared libraries.
  7929. build_libtool_libs=$enable_shared
  7930. # Whether or not to build static libraries.
  7931. build_old_libs=$enable_static
  7932. # Whether or not to add -lc for building shared libraries.
  7933. build_libtool_need_lc=$archive_cmds_need_lc
  7934. # Whether or not to disallow shared libs when runtime libs are static
  7935. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  7936. # Whether or not to optimize for fast installation.
  7937. fast_install=$enable_fast_install
  7938. # The host system.
  7939. host_alias=$host_alias
  7940. host=$host
  7941. host_os=$host_os
  7942. # The build system.
  7943. build_alias=$build_alias
  7944. build=$build
  7945. build_os=$build_os
  7946. # An echo program that does not interpret backslashes.
  7947. echo=$lt_echo
  7948. # The archiver.
  7949. AR=$lt_AR
  7950. AR_FLAGS=$lt_AR_FLAGS
  7951. # A C compiler.
  7952. LTCC=$lt_LTCC
  7953. # A language-specific compiler.
  7954. CC=$lt_compiler
  7955. # Is the compiler the GNU C compiler?
  7956. with_gcc=$GCC
  7957. # An ERE matcher.
  7958. EGREP=$lt_EGREP
  7959. # The linker used to build libraries.
  7960. LD=$lt_LD
  7961. # Whether we need hard or soft links.
  7962. LN_S=$lt_LN_S
  7963. # A BSD-compatible nm program.
  7964. NM=$lt_NM
  7965. # A symbol stripping program
  7966. STRIP=$lt_STRIP
  7967. # Used to examine libraries when file_magic_cmd begins "file"
  7968. MAGIC_CMD=$MAGIC_CMD
  7969. # Used on cygwin: DLL creation program.
  7970. DLLTOOL="$DLLTOOL"
  7971. # Used on cygwin: object dumper.
  7972. OBJDUMP="$OBJDUMP"
  7973. # Used on cygwin: assembler.
  7974. AS="$AS"
  7975. # The name of the directory that contains temporary libtool files.
  7976. objdir=$objdir
  7977. # How to create reloadable object files.
  7978. reload_flag=$lt_reload_flag
  7979. reload_cmds=$lt_reload_cmds
  7980. # How to pass a linker flag through the compiler.
  7981. wl=$lt_lt_prog_compiler_wl
  7982. # Object file suffix (normally "o").
  7983. objext="$ac_objext"
  7984. # Old archive suffix (normally "a").
  7985. libext="$libext"
  7986. # Shared library suffix (normally ".so").
  7987. shrext_cmds='$shrext_cmds'
  7988. # Executable file suffix (normally "").
  7989. exeext="$exeext"
  7990. # Additional compiler flags for building library objects.
  7991. pic_flag=$lt_lt_prog_compiler_pic
  7992. pic_mode=$pic_mode
  7993. # What is the maximum length of a command?
  7994. max_cmd_len=$lt_cv_sys_max_cmd_len
  7995. # Does compiler simultaneously support -c and -o options?
  7996. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  7997. # Must we lock files when doing compilation?
  7998. need_locks=$lt_need_locks
  7999. # Do we need the lib prefix for modules?
  8000. need_lib_prefix=$need_lib_prefix
  8001. # Do we need a version for libraries?
  8002. need_version=$need_version
  8003. # Whether dlopen is supported.
  8004. dlopen_support=$enable_dlopen
  8005. # Whether dlopen of programs is supported.
  8006. dlopen_self=$enable_dlopen_self
  8007. # Whether dlopen of statically linked programs is supported.
  8008. dlopen_self_static=$enable_dlopen_self_static
  8009. # Compiler flag to prevent dynamic linking.
  8010. link_static_flag=$lt_lt_prog_compiler_static
  8011. # Compiler flag to turn off builtin functions.
  8012. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  8013. # Compiler flag to allow reflexive dlopens.
  8014. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  8015. # Compiler flag to generate shared objects directly from archives.
  8016. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  8017. # Compiler flag to generate thread-safe objects.
  8018. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  8019. # Library versioning type.
  8020. version_type=$version_type
  8021. # Format of library name prefix.
  8022. libname_spec=$lt_libname_spec
  8023. # List of archive names. First name is the real one, the rest are links.
  8024. # The last name is the one that the linker finds with -lNAME.
  8025. library_names_spec=$lt_library_names_spec
  8026. # The coded name of the library, if different from the real name.
  8027. soname_spec=$lt_soname_spec
  8028. # Commands used to build and install an old-style archive.
  8029. RANLIB=$lt_RANLIB
  8030. old_archive_cmds=$lt_old_archive_cmds
  8031. old_postinstall_cmds=$lt_old_postinstall_cmds
  8032. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  8033. # Create an old-style archive from a shared archive.
  8034. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  8035. # Create a temporary old-style archive to link instead of a shared archive.
  8036. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  8037. # Commands used to build and install a shared archive.
  8038. archive_cmds=$lt_archive_cmds
  8039. archive_expsym_cmds=$lt_archive_expsym_cmds
  8040. postinstall_cmds=$lt_postinstall_cmds
  8041. postuninstall_cmds=$lt_postuninstall_cmds
  8042. # Commands used to build a loadable module (assumed same as above if empty)
  8043. module_cmds=$lt_module_cmds
  8044. module_expsym_cmds=$lt_module_expsym_cmds
  8045. # Commands to strip libraries.
  8046. old_striplib=$lt_old_striplib
  8047. striplib=$lt_striplib
  8048. # Dependencies to place before the objects being linked to create a
  8049. # shared library.
  8050. predep_objects=$lt_predep_objects
  8051. # Dependencies to place after the objects being linked to create a
  8052. # shared library.
  8053. postdep_objects=$lt_postdep_objects
  8054. # Dependencies to place before the objects being linked to create a
  8055. # shared library.
  8056. predeps=$lt_predeps
  8057. # Dependencies to place after the objects being linked to create a
  8058. # shared library.
  8059. postdeps=$lt_postdeps
  8060. # The library search path used internally by the compiler when linking
  8061. # a shared library.
  8062. compiler_lib_search_path=$lt_compiler_lib_search_path
  8063. # Method to check whether dependent libraries are shared objects.
  8064. deplibs_check_method=$lt_deplibs_check_method
  8065. # Command to use when deplibs_check_method == file_magic.
  8066. file_magic_cmd=$lt_file_magic_cmd
  8067. # Flag that allows shared libraries with undefined symbols to be built.
  8068. allow_undefined_flag=$lt_allow_undefined_flag
  8069. # Flag that forces no undefined symbols.
  8070. no_undefined_flag=$lt_no_undefined_flag
  8071. # Commands used to finish a libtool library installation in a directory.
  8072. finish_cmds=$lt_finish_cmds
  8073. # Same as above, but a single script fragment to be evaled but not shown.
  8074. finish_eval=$lt_finish_eval
  8075. # Take the output of nm and produce a listing of raw symbols and C names.
  8076. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8077. # Transform the output of nm in a proper C declaration
  8078. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8079. # Transform the output of nm in a C name address pair
  8080. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8081. # This is the shared library runtime path variable.
  8082. runpath_var=$runpath_var
  8083. # This is the shared library path variable.
  8084. shlibpath_var=$shlibpath_var
  8085. # Is shlibpath searched before the hard-coded library search path?
  8086. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8087. # How to hardcode a shared library path into an executable.
  8088. hardcode_action=$hardcode_action
  8089. # Whether we should hardcode library paths into libraries.
  8090. hardcode_into_libs=$hardcode_into_libs
  8091. # Flag to hardcode \$libdir into a binary during linking.
  8092. # This must work even if \$libdir does not exist.
  8093. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  8094. # If ld is used when linking, flag to hardcode \$libdir into
  8095. # a binary during linking. This must work even if \$libdir does
  8096. # not exist.
  8097. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  8098. # Whether we need a single -rpath flag with a separated argument.
  8099. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  8100. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8101. # resulting binary.
  8102. hardcode_direct=$hardcode_direct
  8103. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8104. # resulting binary.
  8105. hardcode_minus_L=$hardcode_minus_L
  8106. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8107. # the resulting binary.
  8108. hardcode_shlibpath_var=$hardcode_shlibpath_var
  8109. # Set to yes if building a shared library automatically hardcodes DIR into the library
  8110. # and all subsequent libraries and executables linked against it.
  8111. hardcode_automatic=$hardcode_automatic
  8112. # Variables whose values should be saved in libtool wrapper scripts and
  8113. # restored at relink time.
  8114. variables_saved_for_relink="$variables_saved_for_relink"
  8115. # Whether libtool must link a program against all its dependency libraries.
  8116. link_all_deplibs=$link_all_deplibs
  8117. # Compile-time system search path for libraries
  8118. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  8119. # Run-time system search path for libraries
  8120. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8121. # Fix the shell variable \$srcfile for the compiler.
  8122. fix_srcfile_path="$fix_srcfile_path"
  8123. # Set to yes if exported symbols are required.
  8124. always_export_symbols=$always_export_symbols
  8125. # The commands to list exported symbols.
  8126. export_symbols_cmds=$lt_export_symbols_cmds
  8127. # The commands to extract the exported symbol list from a shared archive.
  8128. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8129. # Symbols that should not be listed in the preloaded symbols.
  8130. exclude_expsyms=$lt_exclude_expsyms
  8131. # Symbols that must always be exported.
  8132. include_expsyms=$lt_include_expsyms
  8133. # ### END LIBTOOL CONFIG
  8134. __EOF__
  8135. case $host_os in
  8136. aix3*)
  8137. cat <<\EOF >> "$cfgfile"
  8138. # AIX sometimes has problems with the GCC collect2 program. For some
  8139. # reason, if we set the COLLECT_NAMES environment variable, the problems
  8140. # vanish in a puff of smoke.
  8141. if test "X${COLLECT_NAMES+set}" != Xset; then
  8142. COLLECT_NAMES=
  8143. export COLLECT_NAMES
  8144. fi
  8145. EOF
  8146. ;;
  8147. esac
  8148. # We use sed instead of cat because bash on DJGPP gets confused if
  8149. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  8150. # text mode, it properly converts lines to CR/LF. This bash problem
  8151. # is reportedly fixed, but why not run on old versions too?
  8152. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  8153. mv -f "$cfgfile" "$ofile" || \
  8154. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  8155. chmod +x "$ofile"
  8156. else
  8157. # If there is no Makefile yet, we rely on a make rule to execute
  8158. # `config.status --recheck' to rerun these tests and create the
  8159. # libtool script then.
  8160. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  8161. if test -f "$ltmain_in"; then
  8162. test -f Makefile && make "$ltmain"
  8163. fi
  8164. fi
  8165. ac_ext=c
  8166. ac_cpp='$CPP $CPPFLAGS'
  8167. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8168. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8169. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8170. CC="$lt_save_CC"
  8171. # Check whether --with-tags was given.
  8172. if test "${with_tags+set}" = set; then :
  8173. withval=$with_tags; tagnames="$withval"
  8174. fi
  8175. if test -f "$ltmain" && test -n "$tagnames"; then
  8176. if test ! -f "${ofile}"; then
  8177. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
  8178. $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  8179. fi
  8180. if test -z "$LTCC"; then
  8181. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  8182. if test -z "$LTCC"; then
  8183. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  8184. $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  8185. else
  8186. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  8187. $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  8188. fi
  8189. fi
  8190. # Extract list of available tagged configurations in $ofile.
  8191. # Note that this assumes the entire list is on one line.
  8192. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  8193. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  8194. for tagname in $tagnames; do
  8195. IFS="$lt_save_ifs"
  8196. # Check whether tagname contains only valid characters
  8197. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  8198. "") ;;
  8199. *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5
  8200. ;;
  8201. esac
  8202. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  8203. then
  8204. as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
  8205. fi
  8206. # Update the list of available tags.
  8207. if test -n "$tagname"; then
  8208. echo appending configuration tag \"$tagname\" to $ofile
  8209. case $tagname in
  8210. CXX)
  8211. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  8212. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  8213. (test "X$CXX" != "Xg++"))) ; then
  8214. :
  8215. else
  8216. tagname=""
  8217. fi
  8218. ;;
  8219. F77)
  8220. if test -n "$F77" && test "X$F77" != "Xno"; then
  8221. :
  8222. else
  8223. tagname=""
  8224. fi
  8225. ;;
  8226. GCJ)
  8227. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  8228. # Source file extension for Java test sources.
  8229. ac_ext=java
  8230. # Object file extension for compiled Java test sources.
  8231. objext=o
  8232. objext_GCJ=$objext
  8233. # Code to be used in simple compile tests
  8234. lt_simple_compile_test_code="class foo {}\n"
  8235. # Code to be used in simple link tests
  8236. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  8237. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8238. # If no C compiler was specified, use CC.
  8239. LTCC=${LTCC-"$CC"}
  8240. # Allow CC to be a program name with arguments.
  8241. compiler=$CC
  8242. # save warnings/boilerplate of simple test code
  8243. ac_outfile=conftest.$ac_objext
  8244. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  8245. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  8246. _lt_compiler_boilerplate=`cat conftest.err`
  8247. $rm conftest*
  8248. ac_outfile=conftest.$ac_objext
  8249. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  8250. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  8251. _lt_linker_boilerplate=`cat conftest.err`
  8252. $rm conftest*
  8253. # Allow CC to be a program name with arguments.
  8254. lt_save_CC="$CC"
  8255. CC=${GCJ-"gcj"}
  8256. compiler=$CC
  8257. compiler_GCJ=$CC
  8258. for cc_temp in $compiler""; do
  8259. case $cc_temp in
  8260. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8261. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8262. \-*) ;;
  8263. *) break;;
  8264. esac
  8265. done
  8266. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  8267. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  8268. archive_cmds_need_lc_GCJ=no
  8269. old_archive_cmds_GCJ=$old_archive_cmds
  8270. lt_prog_compiler_no_builtin_flag_GCJ=
  8271. if test "$GCC" = yes; then
  8272. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  8273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8274. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8275. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  8276. $as_echo_n "(cached) " >&6
  8277. else
  8278. lt_cv_prog_compiler_rtti_exceptions=no
  8279. ac_outfile=conftest.$ac_objext
  8280. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  8281. lt_compiler_flag="-fno-rtti -fno-exceptions"
  8282. # Insert the option either (1) after the last *FLAGS variable, or
  8283. # (2) before a word containing "conftest.", or (3) at the end.
  8284. # Note that $ac_compile itself does not contain backslashes and begins
  8285. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8286. # The option is referenced via a variable to avoid confusing sed.
  8287. lt_compile=`echo "$ac_compile" | $SED \
  8288. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8289. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8290. -e 's:$: $lt_compiler_flag:'`
  8291. (eval echo "\"\$as_me:9250: $lt_compile\"" >&5)
  8292. (eval "$lt_compile" 2>conftest.err)
  8293. ac_status=$?
  8294. cat conftest.err >&5
  8295. echo "$as_me:9254: \$? = $ac_status" >&5
  8296. if (exit $ac_status) && test -s "$ac_outfile"; then
  8297. # The compiler can only warn and ignore the option if not recognized
  8298. # So say no if there are warnings other than the usual output.
  8299. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  8300. $SED '/^$/d' conftest.err >conftest.er2
  8301. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  8302. lt_cv_prog_compiler_rtti_exceptions=yes
  8303. fi
  8304. fi
  8305. $rm conftest*
  8306. fi
  8307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8308. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8309. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8310. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  8311. else
  8312. :
  8313. fi
  8314. fi
  8315. lt_prog_compiler_wl_GCJ=
  8316. lt_prog_compiler_pic_GCJ=
  8317. lt_prog_compiler_static_GCJ=
  8318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8319. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8320. if test "$GCC" = yes; then
  8321. lt_prog_compiler_wl_GCJ='-Wl,'
  8322. lt_prog_compiler_static_GCJ='-static'
  8323. case $host_os in
  8324. aix*)
  8325. # All AIX code is PIC.
  8326. if test "$host_cpu" = ia64; then
  8327. # AIX 5 now supports IA64 processor
  8328. lt_prog_compiler_static_GCJ='-Bstatic'
  8329. fi
  8330. ;;
  8331. amigaos*)
  8332. # FIXME: we need at least 68020 code to build shared libraries, but
  8333. # adding the `-m68020' flag to GCC prevents building anything better,
  8334. # like `-m68040'.
  8335. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  8336. ;;
  8337. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8338. # PIC is the default for these OSes.
  8339. ;;
  8340. mingw* | pw32* | os2*)
  8341. # This hack is so that the source file can tell whether it is being
  8342. # built for inclusion in a dll (and should export symbols for example).
  8343. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  8344. ;;
  8345. darwin* | rhapsody*)
  8346. # PIC is the default on this platform
  8347. # Common symbols not allowed in MH_DYLIB files
  8348. lt_prog_compiler_pic_GCJ='-fno-common'
  8349. ;;
  8350. msdosdjgpp*)
  8351. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8352. # on systems that don't support them.
  8353. lt_prog_compiler_can_build_shared_GCJ=no
  8354. enable_shared=no
  8355. ;;
  8356. sysv4*MP*)
  8357. if test -d /usr/nec; then
  8358. lt_prog_compiler_pic_GCJ=-Kconform_pic
  8359. fi
  8360. ;;
  8361. hpux*)
  8362. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8363. # not for PA HP-UX.
  8364. case $host_cpu in
  8365. hppa*64*|ia64*)
  8366. # +Z the default
  8367. ;;
  8368. *)
  8369. lt_prog_compiler_pic_GCJ='-fPIC'
  8370. ;;
  8371. esac
  8372. ;;
  8373. *)
  8374. lt_prog_compiler_pic_GCJ='-fPIC'
  8375. ;;
  8376. esac
  8377. else
  8378. # PORTME Check for flag to pass linker flags through the system compiler.
  8379. case $host_os in
  8380. aix*)
  8381. lt_prog_compiler_wl_GCJ='-Wl,'
  8382. if test "$host_cpu" = ia64; then
  8383. # AIX 5 now supports IA64 processor
  8384. lt_prog_compiler_static_GCJ='-Bstatic'
  8385. else
  8386. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  8387. fi
  8388. ;;
  8389. darwin*)
  8390. # PIC is the default on this platform
  8391. # Common symbols not allowed in MH_DYLIB files
  8392. case $cc_basename in
  8393. xlc*)
  8394. lt_prog_compiler_pic_GCJ='-qnocommon'
  8395. lt_prog_compiler_wl_GCJ='-Wl,'
  8396. ;;
  8397. esac
  8398. ;;
  8399. mingw* | pw32* | os2*)
  8400. # This hack is so that the source file can tell whether it is being
  8401. # built for inclusion in a dll (and should export symbols for example).
  8402. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  8403. ;;
  8404. hpux9* | hpux10* | hpux11*)
  8405. lt_prog_compiler_wl_GCJ='-Wl,'
  8406. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8407. # not for PA HP-UX.
  8408. case $host_cpu in
  8409. hppa*64*|ia64*)
  8410. # +Z the default
  8411. ;;
  8412. *)
  8413. lt_prog_compiler_pic_GCJ='+Z'
  8414. ;;
  8415. esac
  8416. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8417. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  8418. ;;
  8419. irix5* | irix6* | nonstopux*)
  8420. lt_prog_compiler_wl_GCJ='-Wl,'
  8421. # PIC (with -KPIC) is the default.
  8422. lt_prog_compiler_static_GCJ='-non_shared'
  8423. ;;
  8424. newsos6)
  8425. lt_prog_compiler_pic_GCJ='-KPIC'
  8426. lt_prog_compiler_static_GCJ='-Bstatic'
  8427. ;;
  8428. linux*)
  8429. case $cc_basename in
  8430. icc* | ecc*)
  8431. lt_prog_compiler_wl_GCJ='-Wl,'
  8432. lt_prog_compiler_pic_GCJ='-KPIC'
  8433. lt_prog_compiler_static_GCJ='-static'
  8434. ;;
  8435. pgcc* | pgf77* | pgf90* | pgf95*)
  8436. # Portland Group compilers (*not* the Pentium gcc compiler,
  8437. # which looks to be a dead project)
  8438. lt_prog_compiler_wl_GCJ='-Wl,'
  8439. lt_prog_compiler_pic_GCJ='-fpic'
  8440. lt_prog_compiler_static_GCJ='-Bstatic'
  8441. ;;
  8442. ccc*)
  8443. lt_prog_compiler_wl_GCJ='-Wl,'
  8444. # All Alpha code is PIC.
  8445. lt_prog_compiler_static_GCJ='-non_shared'
  8446. ;;
  8447. esac
  8448. ;;
  8449. osf3* | osf4* | osf5*)
  8450. lt_prog_compiler_wl_GCJ='-Wl,'
  8451. # All OSF/1 code is PIC.
  8452. lt_prog_compiler_static_GCJ='-non_shared'
  8453. ;;
  8454. sco3.2v5*)
  8455. lt_prog_compiler_pic_GCJ='-Kpic'
  8456. lt_prog_compiler_static_GCJ='-dn'
  8457. ;;
  8458. solaris*)
  8459. lt_prog_compiler_pic_GCJ='-KPIC'
  8460. lt_prog_compiler_static_GCJ='-Bstatic'
  8461. case $cc_basename in
  8462. f77* | f90* | f95*)
  8463. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  8464. *)
  8465. lt_prog_compiler_wl_GCJ='-Wl,';;
  8466. esac
  8467. ;;
  8468. sunos4*)
  8469. lt_prog_compiler_wl_GCJ='-Qoption ld '
  8470. lt_prog_compiler_pic_GCJ='-PIC'
  8471. lt_prog_compiler_static_GCJ='-Bstatic'
  8472. ;;
  8473. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8474. lt_prog_compiler_wl_GCJ='-Wl,'
  8475. lt_prog_compiler_pic_GCJ='-KPIC'
  8476. lt_prog_compiler_static_GCJ='-Bstatic'
  8477. ;;
  8478. sysv4*MP*)
  8479. if test -d /usr/nec ;then
  8480. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  8481. lt_prog_compiler_static_GCJ='-Bstatic'
  8482. fi
  8483. ;;
  8484. unicos*)
  8485. lt_prog_compiler_wl_GCJ='-Wl,'
  8486. lt_prog_compiler_can_build_shared_GCJ=no
  8487. ;;
  8488. uts4*)
  8489. lt_prog_compiler_pic_GCJ='-pic'
  8490. lt_prog_compiler_static_GCJ='-Bstatic'
  8491. ;;
  8492. *)
  8493. lt_prog_compiler_can_build_shared_GCJ=no
  8494. ;;
  8495. esac
  8496. fi
  8497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
  8498. $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
  8499. #
  8500. # Check to make sure the PIC flag actually works.
  8501. #
  8502. if test -n "$lt_prog_compiler_pic_GCJ"; then
  8503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  8504. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
  8505. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then :
  8506. $as_echo_n "(cached) " >&6
  8507. else
  8508. lt_prog_compiler_pic_works_GCJ=no
  8509. ac_outfile=conftest.$ac_objext
  8510. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  8511. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  8512. # Insert the option either (1) after the last *FLAGS variable, or
  8513. # (2) before a word containing "conftest.", or (3) at the end.
  8514. # Note that $ac_compile itself does not contain backslashes and begins
  8515. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8516. # The option is referenced via a variable to avoid confusing sed.
  8517. lt_compile=`echo "$ac_compile" | $SED \
  8518. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8519. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8520. -e 's:$: $lt_compiler_flag:'`
  8521. (eval echo "\"\$as_me:9512: $lt_compile\"" >&5)
  8522. (eval "$lt_compile" 2>conftest.err)
  8523. ac_status=$?
  8524. cat conftest.err >&5
  8525. echo "$as_me:9516: \$? = $ac_status" >&5
  8526. if (exit $ac_status) && test -s "$ac_outfile"; then
  8527. # The compiler can only warn and ignore the option if not recognized
  8528. # So say no if there are warnings other than the usual output.
  8529. $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  8530. $SED '/^$/d' conftest.err >conftest.er2
  8531. if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  8532. lt_prog_compiler_pic_works_GCJ=yes
  8533. fi
  8534. fi
  8535. $rm conftest*
  8536. fi
  8537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
  8538. $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
  8539. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  8540. case $lt_prog_compiler_pic_GCJ in
  8541. "" | " "*) ;;
  8542. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  8543. esac
  8544. else
  8545. lt_prog_compiler_pic_GCJ=
  8546. lt_prog_compiler_can_build_shared_GCJ=no
  8547. fi
  8548. fi
  8549. case $host_os in
  8550. # For platforms which do not support PIC, -DPIC is meaningless:
  8551. *djgpp*)
  8552. lt_prog_compiler_pic_GCJ=
  8553. ;;
  8554. *)
  8555. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  8556. ;;
  8557. esac
  8558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8559. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8560. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
  8561. $as_echo_n "(cached) " >&6
  8562. else
  8563. lt_cv_prog_compiler_c_o_GCJ=no
  8564. $rm -r conftest 2>/dev/null
  8565. mkdir conftest
  8566. cd conftest
  8567. mkdir out
  8568. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  8569. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8570. # Insert the option either (1) after the last *FLAGS variable, or
  8571. # (2) before a word containing "conftest.", or (3) at the end.
  8572. # Note that $ac_compile itself does not contain backslashes and begins
  8573. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8574. lt_compile=`echo "$ac_compile" | $SED \
  8575. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8576. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8577. -e 's:$: $lt_compiler_flag:'`
  8578. (eval echo "\"\$as_me:9574: $lt_compile\"" >&5)
  8579. (eval "$lt_compile" 2>out/conftest.err)
  8580. ac_status=$?
  8581. cat out/conftest.err >&5
  8582. echo "$as_me:9578: \$? = $ac_status" >&5
  8583. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8584. then
  8585. # The compiler can only warn and ignore the option if not recognized
  8586. # So say no if there are warnings
  8587. $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  8588. $SED '/^$/d' out/conftest.err >out/conftest.er2
  8589. if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8590. lt_cv_prog_compiler_c_o_GCJ=yes
  8591. fi
  8592. fi
  8593. chmod u+w . 2>&5
  8594. $rm conftest*
  8595. # SGI C++ compiler will create directory out/ii_files/ for
  8596. # template instantiation
  8597. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  8598. $rm out/* && rmdir out
  8599. cd ..
  8600. rmdir conftest
  8601. $rm conftest*
  8602. fi
  8603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  8604. $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  8605. hard_links="nottested"
  8606. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  8607. # do not overwrite the value of need_locks provided by the user
  8608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8609. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8610. hard_links=yes
  8611. $rm conftest*
  8612. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8613. touch conftest.a
  8614. ln conftest.a conftest.b 2>&5 || hard_links=no
  8615. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8617. $as_echo "$hard_links" >&6; }
  8618. if test "$hard_links" = no; then
  8619. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8620. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8621. need_locks=warn
  8622. fi
  8623. else
  8624. need_locks=no
  8625. fi
  8626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8627. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8628. runpath_var=
  8629. allow_undefined_flag_GCJ=
  8630. enable_shared_with_static_runtimes_GCJ=no
  8631. archive_cmds_GCJ=
  8632. archive_expsym_cmds_GCJ=
  8633. old_archive_From_new_cmds_GCJ=
  8634. old_archive_from_expsyms_cmds_GCJ=
  8635. export_dynamic_flag_spec_GCJ=
  8636. whole_archive_flag_spec_GCJ=
  8637. thread_safe_flag_spec_GCJ=
  8638. hardcode_libdir_flag_spec_GCJ=
  8639. hardcode_libdir_flag_spec_ld_GCJ=
  8640. hardcode_libdir_separator_GCJ=
  8641. hardcode_direct_GCJ=no
  8642. hardcode_minus_L_GCJ=no
  8643. hardcode_shlibpath_var_GCJ=unsupported
  8644. link_all_deplibs_GCJ=unknown
  8645. hardcode_automatic_GCJ=no
  8646. module_cmds_GCJ=
  8647. module_expsym_cmds_GCJ=
  8648. always_export_symbols_GCJ=no
  8649. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8650. # include_expsyms should be a list of space-separated symbols to be *always*
  8651. # included in the symbol list
  8652. include_expsyms_GCJ=
  8653. # exclude_expsyms can be an extended regexp of symbols to exclude
  8654. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8655. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8656. # as well as any symbol that contains `d'.
  8657. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  8658. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8659. # platforms (ab)use it in PIC code, but their linkers get confused if
  8660. # the symbol is explicitly referenced. Since portable code cannot
  8661. # rely on this symbol name, it's probably fine to never include it in
  8662. # preloaded symbol tables.
  8663. extract_expsyms_cmds=
  8664. # Just being paranoid about ensuring that cc_basename is set.
  8665. for cc_temp in $compiler""; do
  8666. case $cc_temp in
  8667. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8668. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8669. \-*) ;;
  8670. *) break;;
  8671. esac
  8672. done
  8673. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  8674. case $host_os in
  8675. cygwin* | mingw* | pw32*)
  8676. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8677. # When not using gcc, we currently assume that we are using
  8678. # Microsoft Visual C++.
  8679. if test "$GCC" != yes; then
  8680. with_gnu_ld=no
  8681. fi
  8682. ;;
  8683. openbsd*)
  8684. with_gnu_ld=no
  8685. ;;
  8686. esac
  8687. ld_shlibs_GCJ=yes
  8688. if test "$with_gnu_ld" = yes; then
  8689. # If archive_cmds runs LD, not CC, wlarc should be empty
  8690. wlarc='${wl}'
  8691. # Set some defaults for GNU ld with shared library support. These
  8692. # are reset later if shared libraries are not supported. Putting them
  8693. # here allows them to be overridden if necessary.
  8694. runpath_var=LD_RUN_PATH
  8695. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  8696. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  8697. # ancient GNU ld didn't support --whole-archive et. al.
  8698. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  8699. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8700. else
  8701. whole_archive_flag_spec_GCJ=
  8702. fi
  8703. supports_anon_versioning=no
  8704. case `$LD -v 2>/dev/null` in
  8705. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8706. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8707. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8708. *\ 2.11.*) ;; # other 2.11 versions
  8709. *) supports_anon_versioning=yes ;;
  8710. esac
  8711. # See if GNU ld supports shared libraries.
  8712. case $host_os in
  8713. aix3* | aix4* | aix5*)
  8714. # On AIX/PPC, the GNU linker is very broken
  8715. if test "$host_cpu" != ia64; then
  8716. ld_shlibs_GCJ=no
  8717. cat <<EOF 1>&2
  8718. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8719. *** to be unable to reliably create shared libraries on AIX.
  8720. *** Therefore, libtool is disabling shared libraries support. If you
  8721. *** really care for shared libraries, you may want to modify your PATH
  8722. *** so that a non-GNU linker is found, and then restart.
  8723. EOF
  8724. fi
  8725. ;;
  8726. amigaos*)
  8727. 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)'
  8728. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  8729. hardcode_minus_L_GCJ=yes
  8730. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  8731. # that the semantics of dynamic libraries on AmigaOS, at least up
  8732. # to version 4, is to share data among multiple programs linked
  8733. # with the same dynamic library. Since this doesn't match the
  8734. # behavior of shared libraries on other platforms, we can't use
  8735. # them.
  8736. ld_shlibs_GCJ=no
  8737. ;;
  8738. beos*)
  8739. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8740. allow_undefined_flag_GCJ=unsupported
  8741. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8742. # support --undefined. This deserves some investigation. FIXME
  8743. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8744. else
  8745. ld_shlibs_GCJ=no
  8746. fi
  8747. ;;
  8748. cygwin* | mingw* | pw32*)
  8749. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  8750. # as there is no search path for DLLs.
  8751. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  8752. allow_undefined_flag_GCJ=unsupported
  8753. always_export_symbols_GCJ=no
  8754. enable_shared_with_static_runtimes_GCJ=yes
  8755. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  8756. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  8757. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  8758. # If the export-symbols file already is a .def file (1st line
  8759. # is EXPORTS), use it as is; otherwise, prepend...
  8760. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8761. cp $export_symbols $output_objdir/$soname.def;
  8762. else
  8763. echo EXPORTS > $output_objdir/$soname.def;
  8764. cat $export_symbols >> $output_objdir/$soname.def;
  8765. fi~
  8766. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  8767. else
  8768. ld_shlibs_GCJ=no
  8769. fi
  8770. ;;
  8771. linux*)
  8772. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8773. tmp_addflag=
  8774. case $cc_basename,$host_cpu in
  8775. pgcc*) # Portland Group C compiler
  8776. 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'
  8777. tmp_addflag=' $pic_flag'
  8778. ;;
  8779. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8780. 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'
  8781. tmp_addflag=' $pic_flag -Mnomain' ;;
  8782. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8783. tmp_addflag=' -i_dynamic' ;;
  8784. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8785. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8786. ifc* | ifort*) # Intel Fortran compiler
  8787. tmp_addflag=' -nofor_main' ;;
  8788. esac
  8789. archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8790. if test $supports_anon_versioning = yes; then
  8791. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  8792. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8793. $echo "local: *; };" >> $output_objdir/$libname.ver~
  8794. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8795. fi
  8796. else
  8797. ld_shlibs_GCJ=no
  8798. fi
  8799. ;;
  8800. netbsd*)
  8801. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8802. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8803. wlarc=
  8804. else
  8805. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8806. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8807. fi
  8808. ;;
  8809. solaris* | sysv5*)
  8810. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  8811. ld_shlibs_GCJ=no
  8812. cat <<EOF 1>&2
  8813. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8814. *** create shared libraries on Solaris systems. Therefore, libtool
  8815. *** is disabling shared libraries support. We urge you to upgrade GNU
  8816. *** binutils to release 2.9.1 or newer. Another option is to modify
  8817. *** your PATH or compiler configuration so that the native linker is
  8818. *** used, and then restart.
  8819. EOF
  8820. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8821. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8822. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8823. else
  8824. ld_shlibs_GCJ=no
  8825. fi
  8826. ;;
  8827. sunos4*)
  8828. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8829. wlarc=
  8830. hardcode_direct_GCJ=yes
  8831. hardcode_shlibpath_var_GCJ=no
  8832. ;;
  8833. *)
  8834. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8835. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8836. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8837. else
  8838. ld_shlibs_GCJ=no
  8839. fi
  8840. ;;
  8841. esac
  8842. if test "$ld_shlibs_GCJ" = no; then
  8843. runpath_var=
  8844. hardcode_libdir_flag_spec_GCJ=
  8845. export_dynamic_flag_spec_GCJ=
  8846. whole_archive_flag_spec_GCJ=
  8847. fi
  8848. else
  8849. # PORTME fill in a description of your system's linker (not GNU ld)
  8850. case $host_os in
  8851. aix3*)
  8852. allow_undefined_flag_GCJ=unsupported
  8853. always_export_symbols_GCJ=yes
  8854. 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'
  8855. # Note: this linker hardcodes the directories in LIBPATH if there
  8856. # are no directories specified by -L.
  8857. hardcode_minus_L_GCJ=yes
  8858. if test "$GCC" = yes && test -z "$link_static_flag"; then
  8859. # Neither direct hardcoding nor static linking is supported with a
  8860. # broken collect2.
  8861. hardcode_direct_GCJ=unsupported
  8862. fi
  8863. ;;
  8864. aix4* | aix5*)
  8865. if test "$host_cpu" = ia64; then
  8866. # On IA64, the linker does run time linking by default, so we don't
  8867. # have to do anything special.
  8868. aix_use_runtimelinking=no
  8869. exp_sym_flag='-Bexport'
  8870. no_entry_flag=""
  8871. else
  8872. # If we're using GNU nm, then we don't want the "-C" option.
  8873. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8874. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  8875. 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'
  8876. else
  8877. 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'
  8878. fi
  8879. aix_use_runtimelinking=no
  8880. # Test if we are trying to use run time linking or normal
  8881. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8882. # need to do runtime linking.
  8883. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  8884. for ld_flag in $LDFLAGS; do
  8885. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8886. aix_use_runtimelinking=yes
  8887. break
  8888. fi
  8889. done
  8890. esac
  8891. exp_sym_flag='-bexport'
  8892. no_entry_flag='-bnoentry'
  8893. fi
  8894. # When large executables or shared objects are built, AIX ld can
  8895. # have problems creating the table of contents. If linking a library
  8896. # or program results in "error TOC overflow" add -mminimal-toc to
  8897. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8898. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8899. archive_cmds_GCJ=''
  8900. hardcode_direct_GCJ=yes
  8901. hardcode_libdir_separator_GCJ=':'
  8902. link_all_deplibs_GCJ=yes
  8903. if test "$GCC" = yes; then
  8904. case $host_os in aix4.[012]|aix4.[012].*)
  8905. # We only want to do this on AIX 4.2 and lower, the check
  8906. # below for broken collect2 doesn't work under 4.3+
  8907. collect2name=`${CC} -print-prog-name=collect2`
  8908. if test -f "$collect2name" && \
  8909. strings "$collect2name" | grep resolve_lib_name >/dev/null
  8910. then
  8911. # We have reworked collect2
  8912. hardcode_direct_GCJ=yes
  8913. else
  8914. # We have old collect2
  8915. hardcode_direct_GCJ=unsupported
  8916. # It fails to find uninstalled libraries when the uninstalled
  8917. # path is not listed in the libpath. Setting hardcode_minus_L
  8918. # to unsupported forces relinking
  8919. hardcode_minus_L_GCJ=yes
  8920. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  8921. hardcode_libdir_separator_GCJ=
  8922. fi
  8923. esac
  8924. shared_flag='-shared'
  8925. if test "$aix_use_runtimelinking" = yes; then
  8926. shared_flag="$shared_flag "'${wl}-G'
  8927. fi
  8928. else
  8929. # not using gcc
  8930. if test "$host_cpu" = ia64; then
  8931. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8932. # chokes on -Wl,-G. The following line is correct:
  8933. shared_flag='-G'
  8934. else
  8935. if test "$aix_use_runtimelinking" = yes; then
  8936. shared_flag='${wl}-G'
  8937. else
  8938. shared_flag='${wl}-bM:SRE'
  8939. fi
  8940. fi
  8941. fi
  8942. # It seems that -bexpall does not export symbols beginning with
  8943. # underscore (_), so it is better to generate a list of symbols to export.
  8944. always_export_symbols_GCJ=yes
  8945. if test "$aix_use_runtimelinking" = yes; then
  8946. # Warning - without using the other runtime loading flags (-brtl),
  8947. # -berok will link without error, but may produce a broken library.
  8948. allow_undefined_flag_GCJ='-berok'
  8949. # Determine the default libpath from the value encoded in an empty executable.
  8950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8951. /* end confdefs.h. */
  8952. int
  8953. main ()
  8954. {
  8955. ;
  8956. return 0;
  8957. }
  8958. _ACEOF
  8959. if ac_fn_c_try_link "$LINENO"; then :
  8960. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8961. }'`
  8962. # Check for a 64-bit object if we didn't find anything.
  8963. 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; }
  8964. }'`; fi
  8965. fi
  8966. rm -f core conftest.err conftest.$ac_objext \
  8967. conftest$ac_exeext conftest.$ac_ext
  8968. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8969. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  8970. 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"
  8971. else
  8972. if test "$host_cpu" = ia64; then
  8973. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  8974. allow_undefined_flag_GCJ="-z nodefs"
  8975. 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"
  8976. else
  8977. # Determine the default libpath from the value encoded in an empty executable.
  8978. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8979. /* end confdefs.h. */
  8980. int
  8981. main ()
  8982. {
  8983. ;
  8984. return 0;
  8985. }
  8986. _ACEOF
  8987. if ac_fn_c_try_link "$LINENO"; then :
  8988. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8989. }'`
  8990. # Check for a 64-bit object if we didn't find anything.
  8991. 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; }
  8992. }'`; fi
  8993. fi
  8994. rm -f core conftest.err conftest.$ac_objext \
  8995. conftest$ac_exeext conftest.$ac_ext
  8996. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8997. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  8998. # Warning - without using the other run time loading flags,
  8999. # -berok will link without error, but may produce a broken library.
  9000. no_undefined_flag_GCJ=' ${wl}-bernotok'
  9001. allow_undefined_flag_GCJ=' ${wl}-berok'
  9002. # -bexpall does not export symbols beginning with underscore (_)
  9003. always_export_symbols_GCJ=yes
  9004. # Exported symbols can be pulled into shared objects from archives
  9005. whole_archive_flag_spec_GCJ=' '
  9006. archive_cmds_need_lc_GCJ=yes
  9007. # This is similar to how AIX traditionally builds its shared libraries.
  9008. 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'
  9009. fi
  9010. fi
  9011. ;;
  9012. amigaos*)
  9013. 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)'
  9014. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  9015. hardcode_minus_L_GCJ=yes
  9016. # see comment about different semantics on the GNU ld section
  9017. ld_shlibs_GCJ=no
  9018. ;;
  9019. bsdi[45]*)
  9020. export_dynamic_flag_spec_GCJ=-rdynamic
  9021. ;;
  9022. cygwin* | mingw* | pw32*)
  9023. # When not using gcc, we currently assume that we are using
  9024. # Microsoft Visual C++.
  9025. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9026. # no search path for DLLs.
  9027. hardcode_libdir_flag_spec_GCJ=' '
  9028. allow_undefined_flag_GCJ=unsupported
  9029. # Tell ltmain to make .lib files, not .a files.
  9030. libext=lib
  9031. # Tell ltmain to make .dll files, not .so files.
  9032. shrext_cmds=".dll"
  9033. # FIXME: Setting linknames here is a bad hack.
  9034. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  9035. # The linker will automatically build a .lib file if we build a DLL.
  9036. old_archive_From_new_cmds_GCJ='true'
  9037. # FIXME: Should let the user specify the lib program.
  9038. old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  9039. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  9040. enable_shared_with_static_runtimes_GCJ=yes
  9041. ;;
  9042. darwin* | rhapsody*)
  9043. case $host_os in
  9044. rhapsody* | darwin1.[012])
  9045. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  9046. ;;
  9047. *) # Darwin 1.3 on
  9048. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9049. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9050. else
  9051. case ${MACOSX_DEPLOYMENT_TARGET} in
  9052. 10.[012])
  9053. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9054. ;;
  9055. 10.*)
  9056. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  9057. ;;
  9058. esac
  9059. fi
  9060. ;;
  9061. esac
  9062. archive_cmds_need_lc_GCJ=no
  9063. hardcode_direct_GCJ=no
  9064. hardcode_automatic_GCJ=yes
  9065. hardcode_shlibpath_var_GCJ=unsupported
  9066. whole_archive_flag_spec_GCJ=''
  9067. link_all_deplibs_GCJ=yes
  9068. if test "$GCC" = yes ; then
  9069. output_verbose_link_cmd='echo'
  9070. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9071. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9072. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9073. 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}'
  9074. 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}'
  9075. else
  9076. case $cc_basename in
  9077. xlc*)
  9078. output_verbose_link_cmd='echo'
  9079. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  9080. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9081. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9082. 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}'
  9083. 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}'
  9084. ;;
  9085. *)
  9086. ld_shlibs_GCJ=no
  9087. ;;
  9088. esac
  9089. fi
  9090. ;;
  9091. dgux*)
  9092. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9093. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  9094. hardcode_shlibpath_var_GCJ=no
  9095. ;;
  9096. freebsd1*)
  9097. ld_shlibs_GCJ=no
  9098. ;;
  9099. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9100. # support. Future versions do this automatically, but an explicit c++rt0.o
  9101. # does not break anything, and helps significantly (at the cost of a little
  9102. # extra space).
  9103. freebsd2.2*)
  9104. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9105. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  9106. hardcode_direct_GCJ=yes
  9107. hardcode_shlibpath_var_GCJ=no
  9108. ;;
  9109. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9110. freebsd2*)
  9111. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9112. hardcode_direct_GCJ=yes
  9113. hardcode_minus_L_GCJ=yes
  9114. hardcode_shlibpath_var_GCJ=no
  9115. ;;
  9116. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9117. freebsd* | kfreebsd*-gnu | dragonfly*)
  9118. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  9119. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  9120. hardcode_direct_GCJ=yes
  9121. hardcode_shlibpath_var_GCJ=no
  9122. ;;
  9123. hpux9*)
  9124. if test "$GCC" = yes; then
  9125. 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'
  9126. else
  9127. 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'
  9128. fi
  9129. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  9130. hardcode_libdir_separator_GCJ=:
  9131. hardcode_direct_GCJ=yes
  9132. # hardcode_minus_L: Not really in the search PATH,
  9133. # but as the default location of the library.
  9134. hardcode_minus_L_GCJ=yes
  9135. export_dynamic_flag_spec_GCJ='${wl}-E'
  9136. ;;
  9137. hpux10* | hpux11*)
  9138. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  9139. case $host_cpu in
  9140. hppa*64*|ia64*)
  9141. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9142. ;;
  9143. *)
  9144. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9145. ;;
  9146. esac
  9147. else
  9148. case $host_cpu in
  9149. hppa*64*|ia64*)
  9150. archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  9151. ;;
  9152. *)
  9153. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9154. ;;
  9155. esac
  9156. fi
  9157. if test "$with_gnu_ld" = no; then
  9158. case $host_cpu in
  9159. hppa*64*)
  9160. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  9161. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  9162. hardcode_libdir_separator_GCJ=:
  9163. hardcode_direct_GCJ=no
  9164. hardcode_shlibpath_var_GCJ=no
  9165. ;;
  9166. ia64*)
  9167. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  9168. hardcode_direct_GCJ=no
  9169. hardcode_shlibpath_var_GCJ=no
  9170. # hardcode_minus_L: Not really in the search PATH,
  9171. # but as the default location of the library.
  9172. hardcode_minus_L_GCJ=yes
  9173. ;;
  9174. *)
  9175. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  9176. hardcode_libdir_separator_GCJ=:
  9177. hardcode_direct_GCJ=yes
  9178. export_dynamic_flag_spec_GCJ='${wl}-E'
  9179. # hardcode_minus_L: Not really in the search PATH,
  9180. # but as the default location of the library.
  9181. hardcode_minus_L_GCJ=yes
  9182. ;;
  9183. esac
  9184. fi
  9185. ;;
  9186. irix5* | irix6* | nonstopux*)
  9187. if test "$GCC" = yes; then
  9188. 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'
  9189. else
  9190. 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'
  9191. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  9192. fi
  9193. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  9194. hardcode_libdir_separator_GCJ=:
  9195. link_all_deplibs_GCJ=yes
  9196. ;;
  9197. netbsd*)
  9198. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9199. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9200. else
  9201. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9202. fi
  9203. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  9204. hardcode_direct_GCJ=yes
  9205. hardcode_shlibpath_var_GCJ=no
  9206. ;;
  9207. newsos6)
  9208. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9209. hardcode_direct_GCJ=yes
  9210. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  9211. hardcode_libdir_separator_GCJ=:
  9212. hardcode_shlibpath_var_GCJ=no
  9213. ;;
  9214. openbsd*)
  9215. hardcode_direct_GCJ=yes
  9216. hardcode_shlibpath_var_GCJ=no
  9217. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9218. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9219. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9220. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  9221. export_dynamic_flag_spec_GCJ='${wl}-E'
  9222. else
  9223. case $host_os in
  9224. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9225. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9226. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  9227. ;;
  9228. *)
  9229. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9230. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  9231. ;;
  9232. esac
  9233. fi
  9234. ;;
  9235. os2*)
  9236. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  9237. hardcode_minus_L_GCJ=yes
  9238. allow_undefined_flag_GCJ=unsupported
  9239. 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'
  9240. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9241. ;;
  9242. osf3*)
  9243. if test "$GCC" = yes; then
  9244. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  9245. 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'
  9246. else
  9247. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  9248. 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'
  9249. fi
  9250. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  9251. hardcode_libdir_separator_GCJ=:
  9252. ;;
  9253. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9254. if test "$GCC" = yes; then
  9255. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  9256. 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'
  9257. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  9258. else
  9259. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  9260. 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'
  9261. 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~
  9262. $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'
  9263. # Both c and cxx compiler support -rpath directly
  9264. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  9265. fi
  9266. hardcode_libdir_separator_GCJ=:
  9267. ;;
  9268. sco3.2v5*)
  9269. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9270. hardcode_shlibpath_var_GCJ=no
  9271. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  9272. runpath_var=LD_RUN_PATH
  9273. hardcode_runpath_var=yes
  9274. ;;
  9275. solaris*)
  9276. no_undefined_flag_GCJ=' -z text'
  9277. if test "$GCC" = yes; then
  9278. wlarc='${wl}'
  9279. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9280. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9281. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  9282. else
  9283. wlarc=''
  9284. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9285. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9286. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  9287. fi
  9288. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  9289. hardcode_shlibpath_var_GCJ=no
  9290. case $host_os in
  9291. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9292. *)
  9293. # The compiler driver will combine linker options so we
  9294. # cannot just pass the convience library names through
  9295. # without $wl, iff we do not link with $LD.
  9296. # Luckily, gcc supports the same syntax we need for Sun Studio.
  9297. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9298. case $wlarc in
  9299. '')
  9300. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  9301. *)
  9302. 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' ;;
  9303. esac ;;
  9304. esac
  9305. link_all_deplibs_GCJ=yes
  9306. ;;
  9307. sunos4*)
  9308. if test "x$host_vendor" = xsequent; then
  9309. # Use $CC to link under sequent, because it throws in some extra .o
  9310. # files that make .init and .fini sections work.
  9311. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9312. else
  9313. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9314. fi
  9315. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  9316. hardcode_direct_GCJ=yes
  9317. hardcode_minus_L_GCJ=yes
  9318. hardcode_shlibpath_var_GCJ=no
  9319. ;;
  9320. sysv4)
  9321. case $host_vendor in
  9322. sni)
  9323. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9324. hardcode_direct_GCJ=yes # is this really true???
  9325. ;;
  9326. siemens)
  9327. ## LD is ld it makes a PLAMLIB
  9328. ## CC just makes a GrossModule.
  9329. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9330. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  9331. hardcode_direct_GCJ=no
  9332. ;;
  9333. motorola)
  9334. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9335. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  9336. ;;
  9337. esac
  9338. runpath_var='LD_RUN_PATH'
  9339. hardcode_shlibpath_var_GCJ=no
  9340. ;;
  9341. sysv4.3*)
  9342. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9343. hardcode_shlibpath_var_GCJ=no
  9344. export_dynamic_flag_spec_GCJ='-Bexport'
  9345. ;;
  9346. sysv4*MP*)
  9347. if test -d /usr/nec; then
  9348. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9349. hardcode_shlibpath_var_GCJ=no
  9350. runpath_var=LD_RUN_PATH
  9351. hardcode_runpath_var=yes
  9352. ld_shlibs_GCJ=yes
  9353. fi
  9354. ;;
  9355. sysv4.2uw2*)
  9356. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9357. hardcode_direct_GCJ=yes
  9358. hardcode_minus_L_GCJ=no
  9359. hardcode_shlibpath_var_GCJ=no
  9360. hardcode_runpath_var=yes
  9361. runpath_var=LD_RUN_PATH
  9362. ;;
  9363. sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  9364. no_undefined_flag_GCJ='${wl}-z ${wl}text'
  9365. if test "$GCC" = yes; then
  9366. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9367. else
  9368. archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9369. fi
  9370. runpath_var='LD_RUN_PATH'
  9371. hardcode_shlibpath_var_GCJ=no
  9372. ;;
  9373. sysv5*)
  9374. no_undefined_flag_GCJ=' -z text'
  9375. # $CC -shared without GNU ld will not create a library from C++
  9376. # object files and a static libstdc++, better avoid it by now
  9377. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9378. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9379. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  9380. hardcode_libdir_flag_spec_GCJ=
  9381. hardcode_shlibpath_var_GCJ=no
  9382. runpath_var='LD_RUN_PATH'
  9383. ;;
  9384. uts4*)
  9385. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9386. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  9387. hardcode_shlibpath_var_GCJ=no
  9388. ;;
  9389. *)
  9390. ld_shlibs_GCJ=no
  9391. ;;
  9392. esac
  9393. fi
  9394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
  9395. $as_echo "$ld_shlibs_GCJ" >&6; }
  9396. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  9397. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9398. if test "$GCC" = yes; then
  9399. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9400. fi
  9401. #
  9402. # Do we need to explicitly link libc?
  9403. #
  9404. case "x$archive_cmds_need_lc_GCJ" in
  9405. x|xyes)
  9406. # Assume -lc should be added
  9407. archive_cmds_need_lc_GCJ=yes
  9408. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9409. case $archive_cmds_GCJ in
  9410. *'~'*)
  9411. # FIXME: we may have to deal with multi-command sequences.
  9412. ;;
  9413. '$CC '*)
  9414. # Test whether the compiler implicitly links with -lc since on some
  9415. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9416. # to ld, don't add -lc before -lgcc.
  9417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9418. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9419. $rm conftest*
  9420. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  9421. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9422. (eval $ac_compile) 2>&5
  9423. ac_status=$?
  9424. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9425. test $ac_status = 0; } 2>conftest.err; then
  9426. soname=conftest
  9427. lib=conftest
  9428. libobjs=conftest.$ac_objext
  9429. deplibs=
  9430. wl=$lt_prog_compiler_wl_GCJ
  9431. compiler_flags=-v
  9432. linker_flags=-v
  9433. verstring=
  9434. output_objdir=.
  9435. libname=conftest
  9436. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  9437. allow_undefined_flag_GCJ=
  9438. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9439. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9440. ac_status=$?
  9441. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9442. test $ac_status = 0; }
  9443. then
  9444. archive_cmds_need_lc_GCJ=no
  9445. else
  9446. archive_cmds_need_lc_GCJ=yes
  9447. fi
  9448. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  9449. else
  9450. cat conftest.err 1>&5
  9451. fi
  9452. $rm conftest*
  9453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
  9454. $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
  9455. ;;
  9456. esac
  9457. fi
  9458. ;;
  9459. esac
  9460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9461. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9462. library_names_spec=
  9463. libname_spec='lib$name'
  9464. soname_spec=
  9465. shrext_cmds=".so"
  9466. postinstall_cmds=
  9467. postuninstall_cmds=
  9468. finish_cmds=
  9469. finish_eval=
  9470. shlibpath_var=
  9471. shlibpath_overrides_runpath=unknown
  9472. version_type=none
  9473. dynamic_linker="$host_os ld.so"
  9474. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9475. if test "$GCC" = yes; then
  9476. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9477. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  9478. # if the path contains ";" then we assume it to be the separator
  9479. # otherwise default to the standard path separator (i.e. ":") - it is
  9480. # assumed that no part of a normal pathname contains ";" but that should
  9481. # okay in the real world where ";" in dirpaths is itself problematic.
  9482. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9483. else
  9484. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9485. fi
  9486. else
  9487. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9488. fi
  9489. need_lib_prefix=unknown
  9490. hardcode_into_libs=no
  9491. # when you set need_version to no, make sure it does not cause -set_version
  9492. # flags to be left without arguments
  9493. need_version=unknown
  9494. case $host_os in
  9495. aix3*)
  9496. version_type=linux
  9497. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9498. shlibpath_var=LIBPATH
  9499. # AIX 3 has no versioning support, so we append a major version to the name.
  9500. soname_spec='${libname}${release}${shared_ext}$major'
  9501. ;;
  9502. aix4* | aix5*)
  9503. version_type=linux
  9504. need_lib_prefix=no
  9505. need_version=no
  9506. hardcode_into_libs=yes
  9507. if test "$host_cpu" = ia64; then
  9508. # AIX 5 supports IA64
  9509. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9510. shlibpath_var=LD_LIBRARY_PATH
  9511. else
  9512. # With GCC up to 2.95.x, collect2 would create an import file
  9513. # for dependence libraries. The import file would start with
  9514. # the line `#! .'. This would cause the generated library to
  9515. # depend on `.', always an invalid library. This was fixed in
  9516. # development snapshots of GCC prior to 3.0.
  9517. case $host_os in
  9518. aix4 | aix4.[01] | aix4.[01].*)
  9519. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9520. echo ' yes '
  9521. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  9522. :
  9523. else
  9524. can_build_shared=no
  9525. fi
  9526. ;;
  9527. esac
  9528. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9529. # soname into executable. Probably we can add versioning support to
  9530. # collect2, so additional links can be useful in future.
  9531. if test "$aix_use_runtimelinking" = yes; then
  9532. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9533. # instead of lib<name>.a to let people know that these are not
  9534. # typical AIX shared libraries.
  9535. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9536. else
  9537. # We preserve .a as extension for shared libraries through AIX4.2
  9538. # and later when we are not doing run time linking.
  9539. library_names_spec='${libname}${release}.a $libname.a'
  9540. soname_spec='${libname}${release}${shared_ext}$major'
  9541. fi
  9542. shlibpath_var=LIBPATH
  9543. fi
  9544. ;;
  9545. amigaos*)
  9546. library_names_spec='$libname.ixlibrary $libname.a'
  9547. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9548. 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'
  9549. ;;
  9550. beos*)
  9551. library_names_spec='${libname}${shared_ext}'
  9552. dynamic_linker="$host_os ld.so"
  9553. shlibpath_var=LIBRARY_PATH
  9554. ;;
  9555. bsdi[45]*)
  9556. version_type=linux
  9557. need_version=no
  9558. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9559. soname_spec='${libname}${release}${shared_ext}$major'
  9560. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9561. shlibpath_var=LD_LIBRARY_PATH
  9562. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9563. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9564. # the default ld.so.conf also contains /usr/contrib/lib and
  9565. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9566. # libtool to hard-code these into programs
  9567. ;;
  9568. cygwin* | mingw* | pw32*)
  9569. version_type=windows
  9570. shrext_cmds=".dll"
  9571. need_version=no
  9572. need_lib_prefix=no
  9573. case $GCC,$host_os in
  9574. yes,cygwin* | yes,mingw* | yes,pw32*)
  9575. library_names_spec='$libname.dll.a'
  9576. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9577. postinstall_cmds='base_file=`basename \${file}`~
  9578. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  9579. dldir=$destdir/`dirname \$dlpath`~
  9580. test -d \$dldir || mkdir -p \$dldir~
  9581. $install_prog $dir/$dlname \$dldir/$dlname~
  9582. chmod a+x \$dldir/$dlname'
  9583. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9584. dlpath=$dir/\$dldll~
  9585. $rm \$dlpath'
  9586. shlibpath_overrides_runpath=yes
  9587. case $host_os in
  9588. cygwin*)
  9589. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9590. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9591. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9592. ;;
  9593. mingw*)
  9594. # MinGW DLLs use traditional 'lib' prefix
  9595. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9596. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9597. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  9598. # It is most probably a Windows format PATH printed by
  9599. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9600. # path with ; separators, and with drive letters. We can handle the
  9601. # drive letters (cygwin fileutils understands them), so leave them,
  9602. # especially as we might pass files found there to a mingw objdump,
  9603. # which wouldn't understand a cygwinified path. Ahh.
  9604. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9605. else
  9606. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9607. fi
  9608. ;;
  9609. pw32*)
  9610. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9611. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9612. ;;
  9613. esac
  9614. ;;
  9615. *)
  9616. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9617. ;;
  9618. esac
  9619. dynamic_linker='Win32 ld.exe'
  9620. # FIXME: first we should search . and the directory the executable is in
  9621. shlibpath_var=PATH
  9622. ;;
  9623. darwin* | rhapsody*)
  9624. dynamic_linker="$host_os dyld"
  9625. version_type=darwin
  9626. need_lib_prefix=no
  9627. need_version=no
  9628. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9629. soname_spec='${libname}${release}${major}$shared_ext'
  9630. shlibpath_overrides_runpath=yes
  9631. shlibpath_var=DYLD_LIBRARY_PATH
  9632. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9633. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  9634. if test "$GCC" = yes; then
  9635. 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"`
  9636. else
  9637. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  9638. fi
  9639. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9640. ;;
  9641. dgux*)
  9642. version_type=linux
  9643. need_lib_prefix=no
  9644. need_version=no
  9645. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9646. soname_spec='${libname}${release}${shared_ext}$major'
  9647. shlibpath_var=LD_LIBRARY_PATH
  9648. ;;
  9649. freebsd1*)
  9650. dynamic_linker=no
  9651. ;;
  9652. kfreebsd*-gnu)
  9653. version_type=linux
  9654. need_lib_prefix=no
  9655. need_version=no
  9656. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9657. soname_spec='${libname}${release}${shared_ext}$major'
  9658. shlibpath_var=LD_LIBRARY_PATH
  9659. shlibpath_overrides_runpath=no
  9660. hardcode_into_libs=yes
  9661. dynamic_linker='GNU ld.so'
  9662. ;;
  9663. freebsd* | dragonfly*)
  9664. # DragonFly does not have aout. When/if they implement a new
  9665. # versioning mechanism, adjust this.
  9666. if test -x /usr/bin/objformat; then
  9667. objformat=`/usr/bin/objformat`
  9668. else
  9669. case $host_os in
  9670. freebsd[123]*) objformat=aout ;;
  9671. *) objformat=elf ;;
  9672. esac
  9673. fi
  9674. version_type=freebsd-$objformat
  9675. case $version_type in
  9676. freebsd-elf*)
  9677. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9678. need_version=no
  9679. need_lib_prefix=no
  9680. ;;
  9681. freebsd-*)
  9682. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9683. need_version=yes
  9684. ;;
  9685. esac
  9686. shlibpath_var=LD_LIBRARY_PATH
  9687. case $host_os in
  9688. freebsd2*)
  9689. shlibpath_overrides_runpath=yes
  9690. ;;
  9691. freebsd3.[01]* | freebsdelf3.[01]*)
  9692. shlibpath_overrides_runpath=yes
  9693. hardcode_into_libs=yes
  9694. ;;
  9695. *) # from 3.2 on
  9696. shlibpath_overrides_runpath=no
  9697. hardcode_into_libs=yes
  9698. ;;
  9699. esac
  9700. ;;
  9701. gnu*)
  9702. version_type=linux
  9703. need_lib_prefix=no
  9704. need_version=no
  9705. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9706. soname_spec='${libname}${release}${shared_ext}$major'
  9707. shlibpath_var=LD_LIBRARY_PATH
  9708. hardcode_into_libs=yes
  9709. ;;
  9710. hpux9* | hpux10* | hpux11*)
  9711. # Give a soname corresponding to the major version so that dld.sl refuses to
  9712. # link against other versions.
  9713. version_type=sunos
  9714. need_lib_prefix=no
  9715. need_version=no
  9716. case $host_cpu in
  9717. ia64*)
  9718. shrext_cmds='.so'
  9719. hardcode_into_libs=yes
  9720. dynamic_linker="$host_os dld.so"
  9721. shlibpath_var=LD_LIBRARY_PATH
  9722. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9723. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9724. soname_spec='${libname}${release}${shared_ext}$major'
  9725. if test "X$HPUX_IA64_MODE" = X32; then
  9726. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9727. else
  9728. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9729. fi
  9730. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9731. ;;
  9732. hppa*64*)
  9733. shrext_cmds='.sl'
  9734. hardcode_into_libs=yes
  9735. dynamic_linker="$host_os dld.sl"
  9736. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9737. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9738. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9739. soname_spec='${libname}${release}${shared_ext}$major'
  9740. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9741. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9742. ;;
  9743. *)
  9744. shrext_cmds='.sl'
  9745. dynamic_linker="$host_os dld.sl"
  9746. shlibpath_var=SHLIB_PATH
  9747. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9748. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9749. soname_spec='${libname}${release}${shared_ext}$major'
  9750. ;;
  9751. esac
  9752. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9753. postinstall_cmds='chmod 555 $lib'
  9754. ;;
  9755. irix5* | irix6* | nonstopux*)
  9756. case $host_os in
  9757. nonstopux*) version_type=nonstopux ;;
  9758. *)
  9759. if test "$lt_cv_prog_gnu_ld" = yes; then
  9760. version_type=linux
  9761. else
  9762. version_type=irix
  9763. fi ;;
  9764. esac
  9765. need_lib_prefix=no
  9766. need_version=no
  9767. soname_spec='${libname}${release}${shared_ext}$major'
  9768. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9769. case $host_os in
  9770. irix5* | nonstopux*)
  9771. libsuff= shlibsuff=
  9772. ;;
  9773. *)
  9774. case $LD in # libtool.m4 will add one of these switches to LD
  9775. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9776. libsuff= shlibsuff= libmagic=32-bit;;
  9777. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9778. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9779. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9780. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9781. *) libsuff= shlibsuff= libmagic=never-match;;
  9782. esac
  9783. ;;
  9784. esac
  9785. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9786. shlibpath_overrides_runpath=no
  9787. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9788. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9789. hardcode_into_libs=yes
  9790. ;;
  9791. # No shared lib support for Linux oldld, aout, or coff.
  9792. linux*oldld* | linux*aout* | linux*coff*)
  9793. dynamic_linker=no
  9794. ;;
  9795. # This must be Linux ELF.
  9796. linux*)
  9797. version_type=linux
  9798. need_lib_prefix=no
  9799. need_version=no
  9800. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9801. soname_spec='${libname}${release}${shared_ext}$major'
  9802. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9803. shlibpath_var=LD_LIBRARY_PATH
  9804. shlibpath_overrides_runpath=no
  9805. # This implies no fast_install, which is unacceptable.
  9806. # Some rework will be needed to allow for fast_install
  9807. # before this can be enabled.
  9808. hardcode_into_libs=yes
  9809. # Append ld.so.conf contents to the search path
  9810. if test -f /etc/ld.so.conf; then
  9811. 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' ' '`
  9812. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9813. fi
  9814. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9815. # powerpc, because MkLinux only supported shared libraries with the
  9816. # GNU dynamic linker. Since this was broken with cross compilers,
  9817. # most powerpc-linux boxes support dynamic linking these days and
  9818. # people can always --disable-shared, the test was removed, and we
  9819. # assume the GNU/Linux dynamic linker is in use.
  9820. dynamic_linker='GNU/Linux ld.so'
  9821. ;;
  9822. knetbsd*-gnu)
  9823. version_type=linux
  9824. need_lib_prefix=no
  9825. need_version=no
  9826. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9827. soname_spec='${libname}${release}${shared_ext}$major'
  9828. shlibpath_var=LD_LIBRARY_PATH
  9829. shlibpath_overrides_runpath=no
  9830. hardcode_into_libs=yes
  9831. dynamic_linker='GNU ld.so'
  9832. ;;
  9833. netbsd*)
  9834. version_type=sunos
  9835. need_lib_prefix=no
  9836. need_version=no
  9837. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9838. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9839. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9840. dynamic_linker='NetBSD (a.out) ld.so'
  9841. else
  9842. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9843. soname_spec='${libname}${release}${shared_ext}$major'
  9844. dynamic_linker='NetBSD ld.elf_so'
  9845. fi
  9846. shlibpath_var=LD_LIBRARY_PATH
  9847. shlibpath_overrides_runpath=yes
  9848. hardcode_into_libs=yes
  9849. ;;
  9850. newsos6)
  9851. version_type=linux
  9852. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9853. shlibpath_var=LD_LIBRARY_PATH
  9854. shlibpath_overrides_runpath=yes
  9855. ;;
  9856. nto-qnx*)
  9857. version_type=linux
  9858. need_lib_prefix=no
  9859. need_version=no
  9860. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9861. soname_spec='${libname}${release}${shared_ext}$major'
  9862. shlibpath_var=LD_LIBRARY_PATH
  9863. shlibpath_overrides_runpath=yes
  9864. ;;
  9865. openbsd*)
  9866. version_type=sunos
  9867. need_lib_prefix=no
  9868. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9869. case $host_os in
  9870. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9871. *) need_version=no ;;
  9872. esac
  9873. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9874. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9875. shlibpath_var=LD_LIBRARY_PATH
  9876. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9877. case $host_os in
  9878. openbsd2.[89] | openbsd2.[89].*)
  9879. shlibpath_overrides_runpath=no
  9880. ;;
  9881. *)
  9882. shlibpath_overrides_runpath=yes
  9883. ;;
  9884. esac
  9885. else
  9886. shlibpath_overrides_runpath=yes
  9887. fi
  9888. ;;
  9889. os2*)
  9890. libname_spec='$name'
  9891. shrext_cmds=".dll"
  9892. need_lib_prefix=no
  9893. library_names_spec='$libname${shared_ext} $libname.a'
  9894. dynamic_linker='OS/2 ld.exe'
  9895. shlibpath_var=LIBPATH
  9896. ;;
  9897. osf3* | osf4* | osf5*)
  9898. version_type=osf
  9899. need_lib_prefix=no
  9900. need_version=no
  9901. soname_spec='${libname}${release}${shared_ext}$major'
  9902. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9903. shlibpath_var=LD_LIBRARY_PATH
  9904. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9905. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9906. ;;
  9907. sco3.2v5*)
  9908. version_type=osf
  9909. soname_spec='${libname}${release}${shared_ext}$major'
  9910. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9911. shlibpath_var=LD_LIBRARY_PATH
  9912. ;;
  9913. solaris*)
  9914. version_type=linux
  9915. need_lib_prefix=no
  9916. need_version=no
  9917. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9918. soname_spec='${libname}${release}${shared_ext}$major'
  9919. shlibpath_var=LD_LIBRARY_PATH
  9920. shlibpath_overrides_runpath=yes
  9921. hardcode_into_libs=yes
  9922. # ldd complains unless libraries are executable
  9923. postinstall_cmds='chmod +x $lib'
  9924. ;;
  9925. sunos4*)
  9926. version_type=sunos
  9927. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9928. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9929. shlibpath_var=LD_LIBRARY_PATH
  9930. shlibpath_overrides_runpath=yes
  9931. if test "$with_gnu_ld" = yes; then
  9932. need_lib_prefix=no
  9933. fi
  9934. need_version=yes
  9935. ;;
  9936. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9937. version_type=linux
  9938. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9939. soname_spec='${libname}${release}${shared_ext}$major'
  9940. shlibpath_var=LD_LIBRARY_PATH
  9941. case $host_vendor in
  9942. sni)
  9943. shlibpath_overrides_runpath=no
  9944. need_lib_prefix=no
  9945. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9946. runpath_var=LD_RUN_PATH
  9947. ;;
  9948. siemens)
  9949. need_lib_prefix=no
  9950. ;;
  9951. motorola)
  9952. need_lib_prefix=no
  9953. need_version=no
  9954. shlibpath_overrides_runpath=no
  9955. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9956. ;;
  9957. esac
  9958. ;;
  9959. sysv4*MP*)
  9960. if test -d /usr/nec ;then
  9961. version_type=linux
  9962. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9963. soname_spec='$libname${shared_ext}.$major'
  9964. shlibpath_var=LD_LIBRARY_PATH
  9965. fi
  9966. ;;
  9967. uts4*)
  9968. version_type=linux
  9969. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9970. soname_spec='${libname}${release}${shared_ext}$major'
  9971. shlibpath_var=LD_LIBRARY_PATH
  9972. ;;
  9973. *)
  9974. dynamic_linker=no
  9975. ;;
  9976. esac
  9977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9978. $as_echo "$dynamic_linker" >&6; }
  9979. test "$dynamic_linker" = no && can_build_shared=no
  9980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9981. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9982. hardcode_action_GCJ=
  9983. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  9984. test -n "$runpath_var_GCJ" || \
  9985. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  9986. # We can hardcode non-existant directories.
  9987. if test "$hardcode_direct_GCJ" != no &&
  9988. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9989. # have to relink, otherwise we might link with an installed library
  9990. # when we should be linking with a yet-to-be-installed one
  9991. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  9992. test "$hardcode_minus_L_GCJ" != no; then
  9993. # Linking always hardcodes the temporary library directory.
  9994. hardcode_action_GCJ=relink
  9995. else
  9996. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9997. hardcode_action_GCJ=immediate
  9998. fi
  9999. else
  10000. # We cannot hardcode anything, or else we can only hardcode existing
  10001. # directories.
  10002. hardcode_action_GCJ=unsupported
  10003. fi
  10004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
  10005. $as_echo "$hardcode_action_GCJ" >&6; }
  10006. if test "$hardcode_action_GCJ" = relink; then
  10007. # Fast installation is not supported
  10008. enable_fast_install=no
  10009. elif test "$shlibpath_overrides_runpath" = yes ||
  10010. test "$enable_shared" = no; then
  10011. # Fast installation is not necessary
  10012. enable_fast_install=needless
  10013. fi
  10014. striplib=
  10015. old_striplib=
  10016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10017. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10018. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  10019. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10020. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10022. $as_echo "yes" >&6; }
  10023. else
  10024. # FIXME - insert some real tests, host_os isn't really good enough
  10025. case $host_os in
  10026. darwin*)
  10027. if test -n "$STRIP" ; then
  10028. striplib="$STRIP -x"
  10029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10030. $as_echo "yes" >&6; }
  10031. else
  10032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10033. $as_echo "no" >&6; }
  10034. fi
  10035. ;;
  10036. *)
  10037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10038. $as_echo "no" >&6; }
  10039. ;;
  10040. esac
  10041. fi
  10042. if test "x$enable_dlopen" != xyes; then
  10043. enable_dlopen=unknown
  10044. enable_dlopen_self=unknown
  10045. enable_dlopen_self_static=unknown
  10046. else
  10047. lt_cv_dlopen=no
  10048. lt_cv_dlopen_libs=
  10049. case $host_os in
  10050. beos*)
  10051. lt_cv_dlopen="load_add_on"
  10052. lt_cv_dlopen_libs=
  10053. lt_cv_dlopen_self=yes
  10054. ;;
  10055. mingw* | pw32*)
  10056. lt_cv_dlopen="LoadLibrary"
  10057. lt_cv_dlopen_libs=
  10058. ;;
  10059. cygwin*)
  10060. lt_cv_dlopen="dlopen"
  10061. lt_cv_dlopen_libs=
  10062. ;;
  10063. darwin*)
  10064. # if libdl is installed we need to link against it
  10065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10066. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10067. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  10068. $as_echo_n "(cached) " >&6
  10069. else
  10070. ac_check_lib_save_LIBS=$LIBS
  10071. LIBS="-ldl $LIBS"
  10072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10073. /* end confdefs.h. */
  10074. /* Override any GCC internal prototype to avoid an error.
  10075. Use char because int might match the return type of a GCC
  10076. builtin and then its argument prototype would still apply. */
  10077. #ifdef __cplusplus
  10078. extern "C"
  10079. #endif
  10080. char dlopen ();
  10081. int
  10082. main ()
  10083. {
  10084. return dlopen ();
  10085. ;
  10086. return 0;
  10087. }
  10088. _ACEOF
  10089. if ac_fn_c_try_link "$LINENO"; then :
  10090. ac_cv_lib_dl_dlopen=yes
  10091. else
  10092. ac_cv_lib_dl_dlopen=no
  10093. fi
  10094. rm -f core conftest.err conftest.$ac_objext \
  10095. conftest$ac_exeext conftest.$ac_ext
  10096. LIBS=$ac_check_lib_save_LIBS
  10097. fi
  10098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10099. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10100. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  10101. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10102. else
  10103. lt_cv_dlopen="dyld"
  10104. lt_cv_dlopen_libs=
  10105. lt_cv_dlopen_self=yes
  10106. fi
  10107. ;;
  10108. *)
  10109. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10110. if test "x$ac_cv_func_shl_load" = x""yes; then :
  10111. lt_cv_dlopen="shl_load"
  10112. else
  10113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10114. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10115. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  10116. $as_echo_n "(cached) " >&6
  10117. else
  10118. ac_check_lib_save_LIBS=$LIBS
  10119. LIBS="-ldld $LIBS"
  10120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10121. /* end confdefs.h. */
  10122. /* Override any GCC internal prototype to avoid an error.
  10123. Use char because int might match the return type of a GCC
  10124. builtin and then its argument prototype would still apply. */
  10125. #ifdef __cplusplus
  10126. extern "C"
  10127. #endif
  10128. char shl_load ();
  10129. int
  10130. main ()
  10131. {
  10132. return shl_load ();
  10133. ;
  10134. return 0;
  10135. }
  10136. _ACEOF
  10137. if ac_fn_c_try_link "$LINENO"; then :
  10138. ac_cv_lib_dld_shl_load=yes
  10139. else
  10140. ac_cv_lib_dld_shl_load=no
  10141. fi
  10142. rm -f core conftest.err conftest.$ac_objext \
  10143. conftest$ac_exeext conftest.$ac_ext
  10144. LIBS=$ac_check_lib_save_LIBS
  10145. fi
  10146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10147. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10148. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  10149. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  10150. else
  10151. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10152. if test "x$ac_cv_func_dlopen" = x""yes; then :
  10153. lt_cv_dlopen="dlopen"
  10154. else
  10155. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10156. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10157. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  10158. $as_echo_n "(cached) " >&6
  10159. else
  10160. ac_check_lib_save_LIBS=$LIBS
  10161. LIBS="-ldl $LIBS"
  10162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10163. /* end confdefs.h. */
  10164. /* Override any GCC internal prototype to avoid an error.
  10165. Use char because int might match the return type of a GCC
  10166. builtin and then its argument prototype would still apply. */
  10167. #ifdef __cplusplus
  10168. extern "C"
  10169. #endif
  10170. char dlopen ();
  10171. int
  10172. main ()
  10173. {
  10174. return dlopen ();
  10175. ;
  10176. return 0;
  10177. }
  10178. _ACEOF
  10179. if ac_fn_c_try_link "$LINENO"; then :
  10180. ac_cv_lib_dl_dlopen=yes
  10181. else
  10182. ac_cv_lib_dl_dlopen=no
  10183. fi
  10184. rm -f core conftest.err conftest.$ac_objext \
  10185. conftest$ac_exeext conftest.$ac_ext
  10186. LIBS=$ac_check_lib_save_LIBS
  10187. fi
  10188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10189. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10190. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  10191. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10192. else
  10193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10194. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10195. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  10196. $as_echo_n "(cached) " >&6
  10197. else
  10198. ac_check_lib_save_LIBS=$LIBS
  10199. LIBS="-lsvld $LIBS"
  10200. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10201. /* end confdefs.h. */
  10202. /* Override any GCC internal prototype to avoid an error.
  10203. Use char because int might match the return type of a GCC
  10204. builtin and then its argument prototype would still apply. */
  10205. #ifdef __cplusplus
  10206. extern "C"
  10207. #endif
  10208. char dlopen ();
  10209. int
  10210. main ()
  10211. {
  10212. return dlopen ();
  10213. ;
  10214. return 0;
  10215. }
  10216. _ACEOF
  10217. if ac_fn_c_try_link "$LINENO"; then :
  10218. ac_cv_lib_svld_dlopen=yes
  10219. else
  10220. ac_cv_lib_svld_dlopen=no
  10221. fi
  10222. rm -f core conftest.err conftest.$ac_objext \
  10223. conftest$ac_exeext conftest.$ac_ext
  10224. LIBS=$ac_check_lib_save_LIBS
  10225. fi
  10226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10227. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10228. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  10229. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10230. else
  10231. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10232. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10233. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  10234. $as_echo_n "(cached) " >&6
  10235. else
  10236. ac_check_lib_save_LIBS=$LIBS
  10237. LIBS="-ldld $LIBS"
  10238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10239. /* end confdefs.h. */
  10240. /* Override any GCC internal prototype to avoid an error.
  10241. Use char because int might match the return type of a GCC
  10242. builtin and then its argument prototype would still apply. */
  10243. #ifdef __cplusplus
  10244. extern "C"
  10245. #endif
  10246. char dld_link ();
  10247. int
  10248. main ()
  10249. {
  10250. return dld_link ();
  10251. ;
  10252. return 0;
  10253. }
  10254. _ACEOF
  10255. if ac_fn_c_try_link "$LINENO"; then :
  10256. ac_cv_lib_dld_dld_link=yes
  10257. else
  10258. ac_cv_lib_dld_dld_link=no
  10259. fi
  10260. rm -f core conftest.err conftest.$ac_objext \
  10261. conftest$ac_exeext conftest.$ac_ext
  10262. LIBS=$ac_check_lib_save_LIBS
  10263. fi
  10264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10265. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10266. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  10267. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  10268. fi
  10269. fi
  10270. fi
  10271. fi
  10272. fi
  10273. fi
  10274. ;;
  10275. esac
  10276. if test "x$lt_cv_dlopen" != xno; then
  10277. enable_dlopen=yes
  10278. else
  10279. enable_dlopen=no
  10280. fi
  10281. case $lt_cv_dlopen in
  10282. dlopen)
  10283. save_CPPFLAGS="$CPPFLAGS"
  10284. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10285. save_LDFLAGS="$LDFLAGS"
  10286. eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10287. save_LIBS="$LIBS"
  10288. LIBS="$lt_cv_dlopen_libs $LIBS"
  10289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10290. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10291. if test "${lt_cv_dlopen_self+set}" = set; then :
  10292. $as_echo_n "(cached) " >&6
  10293. else
  10294. if test "$cross_compiling" = yes; then :
  10295. lt_cv_dlopen_self=cross
  10296. else
  10297. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10298. lt_status=$lt_dlunknown
  10299. cat > conftest.$ac_ext <<EOF
  10300. #line 11446 "configure"
  10301. #include "confdefs.h"
  10302. #if HAVE_DLFCN_H
  10303. #include <dlfcn.h>
  10304. #endif
  10305. #include <stdio.h>
  10306. #ifdef RTLD_GLOBAL
  10307. # define LT_DLGLOBAL RTLD_GLOBAL
  10308. #else
  10309. # ifdef DL_GLOBAL
  10310. # define LT_DLGLOBAL DL_GLOBAL
  10311. # else
  10312. # define LT_DLGLOBAL 0
  10313. # endif
  10314. #endif
  10315. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10316. find out it does not work in some platform. */
  10317. #ifndef LT_DLLAZY_OR_NOW
  10318. # ifdef RTLD_LAZY
  10319. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10320. # else
  10321. # ifdef DL_LAZY
  10322. # define LT_DLLAZY_OR_NOW DL_LAZY
  10323. # else
  10324. # ifdef RTLD_NOW
  10325. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10326. # else
  10327. # ifdef DL_NOW
  10328. # define LT_DLLAZY_OR_NOW DL_NOW
  10329. # else
  10330. # define LT_DLLAZY_OR_NOW 0
  10331. # endif
  10332. # endif
  10333. # endif
  10334. # endif
  10335. #endif
  10336. #ifdef __cplusplus
  10337. extern "C" void exit (int);
  10338. #endif
  10339. void fnord() { int i=42;}
  10340. int main ()
  10341. {
  10342. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10343. int status = $lt_dlunknown;
  10344. if (self)
  10345. {
  10346. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10347. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10348. /* dlclose (self); */
  10349. }
  10350. exit (status);
  10351. }
  10352. EOF
  10353. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10354. (eval $ac_link) 2>&5
  10355. ac_status=$?
  10356. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10357. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10358. (./conftest; exit; ) >&5 2>/dev/null
  10359. lt_status=$?
  10360. case x$lt_status in
  10361. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10362. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10363. x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  10364. esac
  10365. else :
  10366. # compilation failed
  10367. lt_cv_dlopen_self=no
  10368. fi
  10369. fi
  10370. rm -fr conftest*
  10371. fi
  10372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10373. $as_echo "$lt_cv_dlopen_self" >&6; }
  10374. if test "x$lt_cv_dlopen_self" = xyes; then
  10375. LDFLAGS="$LDFLAGS $link_static_flag"
  10376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10377. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10378. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  10379. $as_echo_n "(cached) " >&6
  10380. else
  10381. if test "$cross_compiling" = yes; then :
  10382. lt_cv_dlopen_self_static=cross
  10383. else
  10384. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10385. lt_status=$lt_dlunknown
  10386. cat > conftest.$ac_ext <<EOF
  10387. #line 11544 "configure"
  10388. #include "confdefs.h"
  10389. #if HAVE_DLFCN_H
  10390. #include <dlfcn.h>
  10391. #endif
  10392. #include <stdio.h>
  10393. #ifdef RTLD_GLOBAL
  10394. # define LT_DLGLOBAL RTLD_GLOBAL
  10395. #else
  10396. # ifdef DL_GLOBAL
  10397. # define LT_DLGLOBAL DL_GLOBAL
  10398. # else
  10399. # define LT_DLGLOBAL 0
  10400. # endif
  10401. #endif
  10402. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10403. find out it does not work in some platform. */
  10404. #ifndef LT_DLLAZY_OR_NOW
  10405. # ifdef RTLD_LAZY
  10406. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10407. # else
  10408. # ifdef DL_LAZY
  10409. # define LT_DLLAZY_OR_NOW DL_LAZY
  10410. # else
  10411. # ifdef RTLD_NOW
  10412. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10413. # else
  10414. # ifdef DL_NOW
  10415. # define LT_DLLAZY_OR_NOW DL_NOW
  10416. # else
  10417. # define LT_DLLAZY_OR_NOW 0
  10418. # endif
  10419. # endif
  10420. # endif
  10421. # endif
  10422. #endif
  10423. #ifdef __cplusplus
  10424. extern "C" void exit (int);
  10425. #endif
  10426. void fnord() { int i=42;}
  10427. int main ()
  10428. {
  10429. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10430. int status = $lt_dlunknown;
  10431. if (self)
  10432. {
  10433. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10434. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10435. /* dlclose (self); */
  10436. }
  10437. exit (status);
  10438. }
  10439. EOF
  10440. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10441. (eval $ac_link) 2>&5
  10442. ac_status=$?
  10443. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10444. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10445. (./conftest; exit; ) >&5 2>/dev/null
  10446. lt_status=$?
  10447. case x$lt_status in
  10448. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10449. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10450. x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  10451. esac
  10452. else :
  10453. # compilation failed
  10454. lt_cv_dlopen_self_static=no
  10455. fi
  10456. fi
  10457. rm -fr conftest*
  10458. fi
  10459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10460. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10461. fi
  10462. CPPFLAGS="$save_CPPFLAGS"
  10463. LDFLAGS="$save_LDFLAGS"
  10464. LIBS="$save_LIBS"
  10465. ;;
  10466. esac
  10467. case $lt_cv_dlopen_self in
  10468. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10469. *) enable_dlopen_self=unknown ;;
  10470. esac
  10471. case $lt_cv_dlopen_self_static in
  10472. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10473. *) enable_dlopen_self_static=unknown ;;
  10474. esac
  10475. fi
  10476. # The else clause should only fire when bootstrapping the
  10477. # libtool distribution, otherwise you forgot to ship ltmain.sh
  10478. # with your package, and you will get complaints that there are
  10479. # no rules to generate ltmain.sh.
  10480. if test -f "$ltmain"; then
  10481. # See if we are running on zsh, and set the options which allow our commands through
  10482. # without removal of \ escapes.
  10483. if test -n "${ZSH_VERSION+set}" ; then
  10484. setopt NO_GLOB_SUBST
  10485. fi
  10486. # Now quote all the things that may contain metacharacters while being
  10487. # careful not to overquote the AC_SUBSTed values. We take copies of the
  10488. # variables and quote the copies for generation of the libtool script.
  10489. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  10490. SED SHELL STRIP \
  10491. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  10492. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  10493. deplibs_check_method reload_flag reload_cmds need_locks \
  10494. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  10495. lt_cv_sys_global_symbol_to_c_name_address \
  10496. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  10497. old_postinstall_cmds old_postuninstall_cmds \
  10498. compiler_GCJ \
  10499. CC_GCJ \
  10500. LD_GCJ \
  10501. lt_prog_compiler_wl_GCJ \
  10502. lt_prog_compiler_pic_GCJ \
  10503. lt_prog_compiler_static_GCJ \
  10504. lt_prog_compiler_no_builtin_flag_GCJ \
  10505. export_dynamic_flag_spec_GCJ \
  10506. thread_safe_flag_spec_GCJ \
  10507. whole_archive_flag_spec_GCJ \
  10508. enable_shared_with_static_runtimes_GCJ \
  10509. old_archive_cmds_GCJ \
  10510. old_archive_from_new_cmds_GCJ \
  10511. predep_objects_GCJ \
  10512. postdep_objects_GCJ \
  10513. predeps_GCJ \
  10514. postdeps_GCJ \
  10515. compiler_lib_search_path_GCJ \
  10516. archive_cmds_GCJ \
  10517. archive_expsym_cmds_GCJ \
  10518. postinstall_cmds_GCJ \
  10519. postuninstall_cmds_GCJ \
  10520. old_archive_from_expsyms_cmds_GCJ \
  10521. allow_undefined_flag_GCJ \
  10522. no_undefined_flag_GCJ \
  10523. export_symbols_cmds_GCJ \
  10524. hardcode_libdir_flag_spec_GCJ \
  10525. hardcode_libdir_flag_spec_ld_GCJ \
  10526. hardcode_libdir_separator_GCJ \
  10527. hardcode_automatic_GCJ \
  10528. module_cmds_GCJ \
  10529. module_expsym_cmds_GCJ \
  10530. lt_cv_prog_compiler_c_o_GCJ \
  10531. exclude_expsyms_GCJ \
  10532. include_expsyms_GCJ; do
  10533. case $var in
  10534. old_archive_cmds_GCJ | \
  10535. old_archive_from_new_cmds_GCJ | \
  10536. archive_cmds_GCJ | \
  10537. archive_expsym_cmds_GCJ | \
  10538. module_cmds_GCJ | \
  10539. module_expsym_cmds_GCJ | \
  10540. old_archive_from_expsyms_cmds_GCJ | \
  10541. export_symbols_cmds_GCJ | \
  10542. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  10543. postinstall_cmds | postuninstall_cmds | \
  10544. old_postinstall_cmds | old_postuninstall_cmds | \
  10545. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  10546. # Double-quote double-evaled strings.
  10547. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  10548. ;;
  10549. *)
  10550. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  10551. ;;
  10552. esac
  10553. done
  10554. case $lt_echo in
  10555. *'\$0 --fallback-echo"')
  10556. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  10557. ;;
  10558. esac
  10559. cfgfile="$ofile"
  10560. cat <<__EOF__ >> "$cfgfile"
  10561. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  10562. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  10563. # Shell to use when invoking shell scripts.
  10564. SHELL=$lt_SHELL
  10565. # Whether or not to build shared libraries.
  10566. build_libtool_libs=$enable_shared
  10567. # Whether or not to build static libraries.
  10568. build_old_libs=$enable_static
  10569. # Whether or not to add -lc for building shared libraries.
  10570. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  10571. # Whether or not to disallow shared libs when runtime libs are static
  10572. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  10573. # Whether or not to optimize for fast installation.
  10574. fast_install=$enable_fast_install
  10575. # The host system.
  10576. host_alias=$host_alias
  10577. host=$host
  10578. host_os=$host_os
  10579. # The build system.
  10580. build_alias=$build_alias
  10581. build=$build
  10582. build_os=$build_os
  10583. # An echo program that does not interpret backslashes.
  10584. echo=$lt_echo
  10585. # The archiver.
  10586. AR=$lt_AR
  10587. AR_FLAGS=$lt_AR_FLAGS
  10588. # A C compiler.
  10589. LTCC=$lt_LTCC
  10590. # A language-specific compiler.
  10591. CC=$lt_compiler_GCJ
  10592. # Is the compiler the GNU C compiler?
  10593. with_gcc=$GCC_GCJ
  10594. # An ERE matcher.
  10595. EGREP=$lt_EGREP
  10596. # The linker used to build libraries.
  10597. LD=$lt_LD_GCJ
  10598. # Whether we need hard or soft links.
  10599. LN_S=$lt_LN_S
  10600. # A BSD-compatible nm program.
  10601. NM=$lt_NM
  10602. # A symbol stripping program
  10603. STRIP=$lt_STRIP
  10604. # Used to examine libraries when file_magic_cmd begins "file"
  10605. MAGIC_CMD=$MAGIC_CMD
  10606. # Used on cygwin: DLL creation program.
  10607. DLLTOOL="$DLLTOOL"
  10608. # Used on cygwin: object dumper.
  10609. OBJDUMP="$OBJDUMP"
  10610. # Used on cygwin: assembler.
  10611. AS="$AS"
  10612. # The name of the directory that contains temporary libtool files.
  10613. objdir=$objdir
  10614. # How to create reloadable object files.
  10615. reload_flag=$lt_reload_flag
  10616. reload_cmds=$lt_reload_cmds
  10617. # How to pass a linker flag through the compiler.
  10618. wl=$lt_lt_prog_compiler_wl_GCJ
  10619. # Object file suffix (normally "o").
  10620. objext="$ac_objext"
  10621. # Old archive suffix (normally "a").
  10622. libext="$libext"
  10623. # Shared library suffix (normally ".so").
  10624. shrext_cmds='$shrext_cmds'
  10625. # Executable file suffix (normally "").
  10626. exeext="$exeext"
  10627. # Additional compiler flags for building library objects.
  10628. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  10629. pic_mode=$pic_mode
  10630. # What is the maximum length of a command?
  10631. max_cmd_len=$lt_cv_sys_max_cmd_len
  10632. # Does compiler simultaneously support -c and -o options?
  10633. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  10634. # Must we lock files when doing compilation?
  10635. need_locks=$lt_need_locks
  10636. # Do we need the lib prefix for modules?
  10637. need_lib_prefix=$need_lib_prefix
  10638. # Do we need a version for libraries?
  10639. need_version=$need_version
  10640. # Whether dlopen is supported.
  10641. dlopen_support=$enable_dlopen
  10642. # Whether dlopen of programs is supported.
  10643. dlopen_self=$enable_dlopen_self
  10644. # Whether dlopen of statically linked programs is supported.
  10645. dlopen_self_static=$enable_dlopen_self_static
  10646. # Compiler flag to prevent dynamic linking.
  10647. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  10648. # Compiler flag to turn off builtin functions.
  10649. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  10650. # Compiler flag to allow reflexive dlopens.
  10651. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  10652. # Compiler flag to generate shared objects directly from archives.
  10653. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  10654. # Compiler flag to generate thread-safe objects.
  10655. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  10656. # Library versioning type.
  10657. version_type=$version_type
  10658. # Format of library name prefix.
  10659. libname_spec=$lt_libname_spec
  10660. # List of archive names. First name is the real one, the rest are links.
  10661. # The last name is the one that the linker finds with -lNAME.
  10662. library_names_spec=$lt_library_names_spec
  10663. # The coded name of the library, if different from the real name.
  10664. soname_spec=$lt_soname_spec
  10665. # Commands used to build and install an old-style archive.
  10666. RANLIB=$lt_RANLIB
  10667. old_archive_cmds=$lt_old_archive_cmds_GCJ
  10668. old_postinstall_cmds=$lt_old_postinstall_cmds
  10669. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  10670. # Create an old-style archive from a shared archive.
  10671. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  10672. # Create a temporary old-style archive to link instead of a shared archive.
  10673. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  10674. # Commands used to build and install a shared archive.
  10675. archive_cmds=$lt_archive_cmds_GCJ
  10676. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  10677. postinstall_cmds=$lt_postinstall_cmds
  10678. postuninstall_cmds=$lt_postuninstall_cmds
  10679. # Commands used to build a loadable module (assumed same as above if empty)
  10680. module_cmds=$lt_module_cmds_GCJ
  10681. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  10682. # Commands to strip libraries.
  10683. old_striplib=$lt_old_striplib
  10684. striplib=$lt_striplib
  10685. # Dependencies to place before the objects being linked to create a
  10686. # shared library.
  10687. predep_objects=$lt_predep_objects_GCJ
  10688. # Dependencies to place after the objects being linked to create a
  10689. # shared library.
  10690. postdep_objects=$lt_postdep_objects_GCJ
  10691. # Dependencies to place before the objects being linked to create a
  10692. # shared library.
  10693. predeps=$lt_predeps_GCJ
  10694. # Dependencies to place after the objects being linked to create a
  10695. # shared library.
  10696. postdeps=$lt_postdeps_GCJ
  10697. # The library search path used internally by the compiler when linking
  10698. # a shared library.
  10699. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  10700. # Method to check whether dependent libraries are shared objects.
  10701. deplibs_check_method=$lt_deplibs_check_method
  10702. # Command to use when deplibs_check_method == file_magic.
  10703. file_magic_cmd=$lt_file_magic_cmd
  10704. # Flag that allows shared libraries with undefined symbols to be built.
  10705. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  10706. # Flag that forces no undefined symbols.
  10707. no_undefined_flag=$lt_no_undefined_flag_GCJ
  10708. # Commands used to finish a libtool library installation in a directory.
  10709. finish_cmds=$lt_finish_cmds
  10710. # Same as above, but a single script fragment to be evaled but not shown.
  10711. finish_eval=$lt_finish_eval
  10712. # Take the output of nm and produce a listing of raw symbols and C names.
  10713. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  10714. # Transform the output of nm in a proper C declaration
  10715. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  10716. # Transform the output of nm in a C name address pair
  10717. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  10718. # This is the shared library runtime path variable.
  10719. runpath_var=$runpath_var
  10720. # This is the shared library path variable.
  10721. shlibpath_var=$shlibpath_var
  10722. # Is shlibpath searched before the hard-coded library search path?
  10723. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  10724. # How to hardcode a shared library path into an executable.
  10725. hardcode_action=$hardcode_action_GCJ
  10726. # Whether we should hardcode library paths into libraries.
  10727. hardcode_into_libs=$hardcode_into_libs
  10728. # Flag to hardcode \$libdir into a binary during linking.
  10729. # This must work even if \$libdir does not exist.
  10730. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  10731. # If ld is used when linking, flag to hardcode \$libdir into
  10732. # a binary during linking. This must work even if \$libdir does
  10733. # not exist.
  10734. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  10735. # Whether we need a single -rpath flag with a separated argument.
  10736. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  10737. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  10738. # resulting binary.
  10739. hardcode_direct=$hardcode_direct_GCJ
  10740. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  10741. # resulting binary.
  10742. hardcode_minus_L=$hardcode_minus_L_GCJ
  10743. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  10744. # the resulting binary.
  10745. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  10746. # Set to yes if building a shared library automatically hardcodes DIR into the library
  10747. # and all subsequent libraries and executables linked against it.
  10748. hardcode_automatic=$hardcode_automatic_GCJ
  10749. # Variables whose values should be saved in libtool wrapper scripts and
  10750. # restored at relink time.
  10751. variables_saved_for_relink="$variables_saved_for_relink"
  10752. # Whether libtool must link a program against all its dependency libraries.
  10753. link_all_deplibs=$link_all_deplibs_GCJ
  10754. # Compile-time system search path for libraries
  10755. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  10756. # Run-time system search path for libraries
  10757. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  10758. # Fix the shell variable \$srcfile for the compiler.
  10759. fix_srcfile_path="$fix_srcfile_path_GCJ"
  10760. # Set to yes if exported symbols are required.
  10761. always_export_symbols=$always_export_symbols_GCJ
  10762. # The commands to list exported symbols.
  10763. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  10764. # The commands to extract the exported symbol list from a shared archive.
  10765. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  10766. # Symbols that should not be listed in the preloaded symbols.
  10767. exclude_expsyms=$lt_exclude_expsyms_GCJ
  10768. # Symbols that must always be exported.
  10769. include_expsyms=$lt_include_expsyms_GCJ
  10770. # ### END LIBTOOL TAG CONFIG: $tagname
  10771. __EOF__
  10772. else
  10773. # If there is no Makefile yet, we rely on a make rule to execute
  10774. # `config.status --recheck' to rerun these tests and create the
  10775. # libtool script then.
  10776. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  10777. if test -f "$ltmain_in"; then
  10778. test -f Makefile && make "$ltmain"
  10779. fi
  10780. fi
  10781. ac_ext=c
  10782. ac_cpp='$CPP $CPPFLAGS'
  10783. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10784. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10785. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10786. CC="$lt_save_CC"
  10787. else
  10788. tagname=""
  10789. fi
  10790. ;;
  10791. RC)
  10792. # Source file extension for RC test sources.
  10793. ac_ext=rc
  10794. # Object file extension for compiled RC test sources.
  10795. objext=o
  10796. objext_RC=$objext
  10797. # Code to be used in simple compile tests
  10798. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  10799. # Code to be used in simple link tests
  10800. lt_simple_link_test_code="$lt_simple_compile_test_code"
  10801. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10802. # If no C compiler was specified, use CC.
  10803. LTCC=${LTCC-"$CC"}
  10804. # Allow CC to be a program name with arguments.
  10805. compiler=$CC
  10806. # save warnings/boilerplate of simple test code
  10807. ac_outfile=conftest.$ac_objext
  10808. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  10809. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  10810. _lt_compiler_boilerplate=`cat conftest.err`
  10811. $rm conftest*
  10812. ac_outfile=conftest.$ac_objext
  10813. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  10814. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  10815. _lt_linker_boilerplate=`cat conftest.err`
  10816. $rm conftest*
  10817. # Allow CC to be a program name with arguments.
  10818. lt_save_CC="$CC"
  10819. CC=${RC-"windres"}
  10820. compiler=$CC
  10821. compiler_RC=$CC
  10822. for cc_temp in $compiler""; do
  10823. case $cc_temp in
  10824. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10825. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10826. \-*) ;;
  10827. *) break;;
  10828. esac
  10829. done
  10830. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10831. lt_cv_prog_compiler_c_o_RC=yes
  10832. # The else clause should only fire when bootstrapping the
  10833. # libtool distribution, otherwise you forgot to ship ltmain.sh
  10834. # with your package, and you will get complaints that there are
  10835. # no rules to generate ltmain.sh.
  10836. if test -f "$ltmain"; then
  10837. # See if we are running on zsh, and set the options which allow our commands through
  10838. # without removal of \ escapes.
  10839. if test -n "${ZSH_VERSION+set}" ; then
  10840. setopt NO_GLOB_SUBST
  10841. fi
  10842. # Now quote all the things that may contain metacharacters while being
  10843. # careful not to overquote the AC_SUBSTed values. We take copies of the
  10844. # variables and quote the copies for generation of the libtool script.
  10845. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  10846. SED SHELL STRIP \
  10847. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  10848. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  10849. deplibs_check_method reload_flag reload_cmds need_locks \
  10850. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  10851. lt_cv_sys_global_symbol_to_c_name_address \
  10852. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  10853. old_postinstall_cmds old_postuninstall_cmds \
  10854. compiler_RC \
  10855. CC_RC \
  10856. LD_RC \
  10857. lt_prog_compiler_wl_RC \
  10858. lt_prog_compiler_pic_RC \
  10859. lt_prog_compiler_static_RC \
  10860. lt_prog_compiler_no_builtin_flag_RC \
  10861. export_dynamic_flag_spec_RC \
  10862. thread_safe_flag_spec_RC \
  10863. whole_archive_flag_spec_RC \
  10864. enable_shared_with_static_runtimes_RC \
  10865. old_archive_cmds_RC \
  10866. old_archive_from_new_cmds_RC \
  10867. predep_objects_RC \
  10868. postdep_objects_RC \
  10869. predeps_RC \
  10870. postdeps_RC \
  10871. compiler_lib_search_path_RC \
  10872. archive_cmds_RC \
  10873. archive_expsym_cmds_RC \
  10874. postinstall_cmds_RC \
  10875. postuninstall_cmds_RC \
  10876. old_archive_from_expsyms_cmds_RC \
  10877. allow_undefined_flag_RC \
  10878. no_undefined_flag_RC \
  10879. export_symbols_cmds_RC \
  10880. hardcode_libdir_flag_spec_RC \
  10881. hardcode_libdir_flag_spec_ld_RC \
  10882. hardcode_libdir_separator_RC \
  10883. hardcode_automatic_RC \
  10884. module_cmds_RC \
  10885. module_expsym_cmds_RC \
  10886. lt_cv_prog_compiler_c_o_RC \
  10887. exclude_expsyms_RC \
  10888. include_expsyms_RC; do
  10889. case $var in
  10890. old_archive_cmds_RC | \
  10891. old_archive_from_new_cmds_RC | \
  10892. archive_cmds_RC | \
  10893. archive_expsym_cmds_RC | \
  10894. module_cmds_RC | \
  10895. module_expsym_cmds_RC | \
  10896. old_archive_from_expsyms_cmds_RC | \
  10897. export_symbols_cmds_RC | \
  10898. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  10899. postinstall_cmds | postuninstall_cmds | \
  10900. old_postinstall_cmds | old_postuninstall_cmds | \
  10901. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  10902. # Double-quote double-evaled strings.
  10903. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  10904. ;;
  10905. *)
  10906. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  10907. ;;
  10908. esac
  10909. done
  10910. case $lt_echo in
  10911. *'\$0 --fallback-echo"')
  10912. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  10913. ;;
  10914. esac
  10915. cfgfile="$ofile"
  10916. cat <<__EOF__ >> "$cfgfile"
  10917. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  10918. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  10919. # Shell to use when invoking shell scripts.
  10920. SHELL=$lt_SHELL
  10921. # Whether or not to build shared libraries.
  10922. build_libtool_libs=$enable_shared
  10923. # Whether or not to build static libraries.
  10924. build_old_libs=$enable_static
  10925. # Whether or not to add -lc for building shared libraries.
  10926. build_libtool_need_lc=$archive_cmds_need_lc_RC
  10927. # Whether or not to disallow shared libs when runtime libs are static
  10928. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  10929. # Whether or not to optimize for fast installation.
  10930. fast_install=$enable_fast_install
  10931. # The host system.
  10932. host_alias=$host_alias
  10933. host=$host
  10934. host_os=$host_os
  10935. # The build system.
  10936. build_alias=$build_alias
  10937. build=$build
  10938. build_os=$build_os
  10939. # An echo program that does not interpret backslashes.
  10940. echo=$lt_echo
  10941. # The archiver.
  10942. AR=$lt_AR
  10943. AR_FLAGS=$lt_AR_FLAGS
  10944. # A C compiler.
  10945. LTCC=$lt_LTCC
  10946. # A language-specific compiler.
  10947. CC=$lt_compiler_RC
  10948. # Is the compiler the GNU C compiler?
  10949. with_gcc=$GCC_RC
  10950. # An ERE matcher.
  10951. EGREP=$lt_EGREP
  10952. # The linker used to build libraries.
  10953. LD=$lt_LD_RC
  10954. # Whether we need hard or soft links.
  10955. LN_S=$lt_LN_S
  10956. # A BSD-compatible nm program.
  10957. NM=$lt_NM
  10958. # A symbol stripping program
  10959. STRIP=$lt_STRIP
  10960. # Used to examine libraries when file_magic_cmd begins "file"
  10961. MAGIC_CMD=$MAGIC_CMD
  10962. # Used on cygwin: DLL creation program.
  10963. DLLTOOL="$DLLTOOL"
  10964. # Used on cygwin: object dumper.
  10965. OBJDUMP="$OBJDUMP"
  10966. # Used on cygwin: assembler.
  10967. AS="$AS"
  10968. # The name of the directory that contains temporary libtool files.
  10969. objdir=$objdir
  10970. # How to create reloadable object files.
  10971. reload_flag=$lt_reload_flag
  10972. reload_cmds=$lt_reload_cmds
  10973. # How to pass a linker flag through the compiler.
  10974. wl=$lt_lt_prog_compiler_wl_RC
  10975. # Object file suffix (normally "o").
  10976. objext="$ac_objext"
  10977. # Old archive suffix (normally "a").
  10978. libext="$libext"
  10979. # Shared library suffix (normally ".so").
  10980. shrext_cmds='$shrext_cmds'
  10981. # Executable file suffix (normally "").
  10982. exeext="$exeext"
  10983. # Additional compiler flags for building library objects.
  10984. pic_flag=$lt_lt_prog_compiler_pic_RC
  10985. pic_mode=$pic_mode
  10986. # What is the maximum length of a command?
  10987. max_cmd_len=$lt_cv_sys_max_cmd_len
  10988. # Does compiler simultaneously support -c and -o options?
  10989. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  10990. # Must we lock files when doing compilation?
  10991. need_locks=$lt_need_locks
  10992. # Do we need the lib prefix for modules?
  10993. need_lib_prefix=$need_lib_prefix
  10994. # Do we need a version for libraries?
  10995. need_version=$need_version
  10996. # Whether dlopen is supported.
  10997. dlopen_support=$enable_dlopen
  10998. # Whether dlopen of programs is supported.
  10999. dlopen_self=$enable_dlopen_self
  11000. # Whether dlopen of statically linked programs is supported.
  11001. dlopen_self_static=$enable_dlopen_self_static
  11002. # Compiler flag to prevent dynamic linking.
  11003. link_static_flag=$lt_lt_prog_compiler_static_RC
  11004. # Compiler flag to turn off builtin functions.
  11005. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  11006. # Compiler flag to allow reflexive dlopens.
  11007. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  11008. # Compiler flag to generate shared objects directly from archives.
  11009. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  11010. # Compiler flag to generate thread-safe objects.
  11011. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  11012. # Library versioning type.
  11013. version_type=$version_type
  11014. # Format of library name prefix.
  11015. libname_spec=$lt_libname_spec
  11016. # List of archive names. First name is the real one, the rest are links.
  11017. # The last name is the one that the linker finds with -lNAME.
  11018. library_names_spec=$lt_library_names_spec
  11019. # The coded name of the library, if different from the real name.
  11020. soname_spec=$lt_soname_spec
  11021. # Commands used to build and install an old-style archive.
  11022. RANLIB=$lt_RANLIB
  11023. old_archive_cmds=$lt_old_archive_cmds_RC
  11024. old_postinstall_cmds=$lt_old_postinstall_cmds
  11025. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11026. # Create an old-style archive from a shared archive.
  11027. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  11028. # Create a temporary old-style archive to link instead of a shared archive.
  11029. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  11030. # Commands used to build and install a shared archive.
  11031. archive_cmds=$lt_archive_cmds_RC
  11032. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  11033. postinstall_cmds=$lt_postinstall_cmds
  11034. postuninstall_cmds=$lt_postuninstall_cmds
  11035. # Commands used to build a loadable module (assumed same as above if empty)
  11036. module_cmds=$lt_module_cmds_RC
  11037. module_expsym_cmds=$lt_module_expsym_cmds_RC
  11038. # Commands to strip libraries.
  11039. old_striplib=$lt_old_striplib
  11040. striplib=$lt_striplib
  11041. # Dependencies to place before the objects being linked to create a
  11042. # shared library.
  11043. predep_objects=$lt_predep_objects_RC
  11044. # Dependencies to place after the objects being linked to create a
  11045. # shared library.
  11046. postdep_objects=$lt_postdep_objects_RC
  11047. # Dependencies to place before the objects being linked to create a
  11048. # shared library.
  11049. predeps=$lt_predeps_RC
  11050. # Dependencies to place after the objects being linked to create a
  11051. # shared library.
  11052. postdeps=$lt_postdeps_RC
  11053. # The library search path used internally by the compiler when linking
  11054. # a shared library.
  11055. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  11056. # Method to check whether dependent libraries are shared objects.
  11057. deplibs_check_method=$lt_deplibs_check_method
  11058. # Command to use when deplibs_check_method == file_magic.
  11059. file_magic_cmd=$lt_file_magic_cmd
  11060. # Flag that allows shared libraries with undefined symbols to be built.
  11061. allow_undefined_flag=$lt_allow_undefined_flag_RC
  11062. # Flag that forces no undefined symbols.
  11063. no_undefined_flag=$lt_no_undefined_flag_RC
  11064. # Commands used to finish a libtool library installation in a directory.
  11065. finish_cmds=$lt_finish_cmds
  11066. # Same as above, but a single script fragment to be evaled but not shown.
  11067. finish_eval=$lt_finish_eval
  11068. # Take the output of nm and produce a listing of raw symbols and C names.
  11069. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11070. # Transform the output of nm in a proper C declaration
  11071. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11072. # Transform the output of nm in a C name address pair
  11073. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11074. # This is the shared library runtime path variable.
  11075. runpath_var=$runpath_var
  11076. # This is the shared library path variable.
  11077. shlibpath_var=$shlibpath_var
  11078. # Is shlibpath searched before the hard-coded library search path?
  11079. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11080. # How to hardcode a shared library path into an executable.
  11081. hardcode_action=$hardcode_action_RC
  11082. # Whether we should hardcode library paths into libraries.
  11083. hardcode_into_libs=$hardcode_into_libs
  11084. # Flag to hardcode \$libdir into a binary during linking.
  11085. # This must work even if \$libdir does not exist.
  11086. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  11087. # If ld is used when linking, flag to hardcode \$libdir into
  11088. # a binary during linking. This must work even if \$libdir does
  11089. # not exist.
  11090. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  11091. # Whether we need a single -rpath flag with a separated argument.
  11092. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  11093. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  11094. # resulting binary.
  11095. hardcode_direct=$hardcode_direct_RC
  11096. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  11097. # resulting binary.
  11098. hardcode_minus_L=$hardcode_minus_L_RC
  11099. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  11100. # the resulting binary.
  11101. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  11102. # Set to yes if building a shared library automatically hardcodes DIR into the library
  11103. # and all subsequent libraries and executables linked against it.
  11104. hardcode_automatic=$hardcode_automatic_RC
  11105. # Variables whose values should be saved in libtool wrapper scripts and
  11106. # restored at relink time.
  11107. variables_saved_for_relink="$variables_saved_for_relink"
  11108. # Whether libtool must link a program against all its dependency libraries.
  11109. link_all_deplibs=$link_all_deplibs_RC
  11110. # Compile-time system search path for libraries
  11111. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11112. # Run-time system search path for libraries
  11113. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11114. # Fix the shell variable \$srcfile for the compiler.
  11115. fix_srcfile_path="$fix_srcfile_path_RC"
  11116. # Set to yes if exported symbols are required.
  11117. always_export_symbols=$always_export_symbols_RC
  11118. # The commands to list exported symbols.
  11119. export_symbols_cmds=$lt_export_symbols_cmds_RC
  11120. # The commands to extract the exported symbol list from a shared archive.
  11121. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11122. # Symbols that should not be listed in the preloaded symbols.
  11123. exclude_expsyms=$lt_exclude_expsyms_RC
  11124. # Symbols that must always be exported.
  11125. include_expsyms=$lt_include_expsyms_RC
  11126. # ### END LIBTOOL TAG CONFIG: $tagname
  11127. __EOF__
  11128. else
  11129. # If there is no Makefile yet, we rely on a make rule to execute
  11130. # `config.status --recheck' to rerun these tests and create the
  11131. # libtool script then.
  11132. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  11133. if test -f "$ltmain_in"; then
  11134. test -f Makefile && make "$ltmain"
  11135. fi
  11136. fi
  11137. ac_ext=c
  11138. ac_cpp='$CPP $CPPFLAGS'
  11139. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11140. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11141. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11142. CC="$lt_save_CC"
  11143. ;;
  11144. *)
  11145. as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
  11146. ;;
  11147. esac
  11148. # Append the new tag name to the list of available tags.
  11149. if test -n "$tagname" ; then
  11150. available_tags="$available_tags $tagname"
  11151. fi
  11152. fi
  11153. done
  11154. IFS="$lt_save_ifs"
  11155. # Now substitute the updated list of available tags.
  11156. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  11157. mv "${ofile}T" "$ofile"
  11158. chmod +x "$ofile"
  11159. else
  11160. rm -f "${ofile}T"
  11161. as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
  11162. fi
  11163. fi
  11164. # This can be used to rebuild libtool when needed
  11165. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  11166. # Always use our own libtool.
  11167. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  11168. # Prevent multiple expansion
  11169. # NTP has (so far) been relying on leading-edge autogen.
  11170. # Therefore, by default:
  11171. # - use the version we ship with
  11172. # - do not install it
  11173. # - build a static copy (AC_DISABLE_SHARED - done earlier)
  11174. case "${enable_local_libopts+set}" in
  11175. set) ;;
  11176. *) enable_local_libopts=yes ;;
  11177. esac
  11178. case "${enable_libopts_install+set}" in
  11179. set) ;;
  11180. *) enable_libopts_install=no ;;
  11181. esac
  11182. NEED_LIBOPTS_DIR=''
  11183. LIBOPTS_DIR=libopts
  11184. # Check whether --enable-local-libopts was given.
  11185. if test "${enable_local_libopts+set}" = set; then :
  11186. enableval=$enable_local_libopts;
  11187. if test x$enableval = xyes ; then
  11188. { $as_echo "$as_me:${as_lineno-$LINENO}: Using supplied libopts tearoff" >&5
  11189. $as_echo "$as_me: Using supplied libopts tearoff" >&6;}
  11190. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  11191. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  11192. NEED_LIBOPTS_DIR=true
  11193. fi
  11194. fi
  11195. # Check whether --enable-libopts-install was given.
  11196. if test "${enable_libopts_install+set}" = set; then :
  11197. enableval=$enable_libopts_install;
  11198. fi
  11199. if test "X${enable_libopts_install}" != Xno; then
  11200. INSTALL_LIBOPTS_TRUE=
  11201. INSTALL_LIBOPTS_FALSE='#'
  11202. else
  11203. INSTALL_LIBOPTS_TRUE='#'
  11204. INSTALL_LIBOPTS_FALSE=
  11205. fi
  11206. if test -z "${NEED_LIBOPTS_DIR}" ; then
  11207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config can be found" >&5
  11208. $as_echo_n "checking whether autoopts-config can be found... " >&6; }
  11209. # Check whether --with-autoopts-config was given.
  11210. if test "${with_autoopts_config+set}" = set; then :
  11211. withval=$with_autoopts_config; lo_cv_with_autoopts_config=${with_autoopts_config}
  11212. else
  11213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether autoopts-config is specified" >&5
  11214. $as_echo_n "checking whether autoopts-config is specified... " >&6; }
  11215. if test "${lo_cv_with_autoopts_config+set}" = set; then :
  11216. $as_echo_n "(cached) " >&6
  11217. else
  11218. if autoopts-config --help 2>/dev/null 1>&2
  11219. then lo_cv_with_autoopts_config=autoopts-config
  11220. elif libopts-config --help 2>/dev/null 1>&2
  11221. then lo_cv_with_autoopts_config=libopts-config
  11222. else lo_cv_with_autoopts_config=no ; fi
  11223. fi
  11224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lo_cv_with_autoopts_config" >&5
  11225. $as_echo "$lo_cv_with_autoopts_config" >&6; }
  11226. fi
  11227. # end of AC_ARG_WITH
  11228. if test "${lo_cv_test_autoopts+set}" = set; then :
  11229. $as_echo_n "(cached) " >&6
  11230. else
  11231. if test -z "${lo_cv_with_autoopts_config}" \
  11232. -o X"${lo_cv_with_autoopts_config}" = Xno
  11233. then
  11234. if autoopts-config --help 2>/dev/null 1>&2
  11235. then lo_cv_with_autoopts_config=autoopts-config
  11236. elif libopts-config --help 2>/dev/null 1>&2
  11237. then lo_cv_with_autoopts_config=libopts-config
  11238. else lo_cv_with_autoopts_config=false ; fi
  11239. fi
  11240. lo_cv_test_autoopts=`
  11241. ${lo_cv_with_autoopts_config} --libs` 2> /dev/null
  11242. if test $? -ne 0 -o -z "${lo_cv_test_autoopts}"
  11243. then lo_cv_test_autoopts=no ; fi
  11244. fi
  11245. # end of CACHE_VAL
  11246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lo_cv_test_autoopts}" >&5
  11247. $as_echo "${lo_cv_test_autoopts}" >&6; }
  11248. if test "X${lo_cv_test_autoopts}" != Xno
  11249. then
  11250. LIBOPTS_LDADD="${lo_cv_test_autoopts}"
  11251. LIBOPTS_CFLAGS="`${lo_cv_with_autoopts_config} --cflags`"
  11252. else
  11253. LIBOPTS_LDADD='$(top_builddir)/libopts/libopts.la'
  11254. LIBOPTS_CFLAGS='-I$(top_srcdir)/libopts'
  11255. NEED_LIBOPTS_DIR=true
  11256. fi
  11257. fi # end of if test -z "${NEED_LIBOPTS_DIR}"
  11258. if test -n "${NEED_LIBOPTS_DIR}"; then
  11259. NEED_LIBOPTS_TRUE=
  11260. NEED_LIBOPTS_FALSE='#'
  11261. else
  11262. NEED_LIBOPTS_TRUE='#'
  11263. NEED_LIBOPTS_FALSE=
  11264. fi
  11265. LIBOPTS_DIR=libopts
  11266. ac_config_files="$ac_config_files libopts/Makefile"
  11267. if test -n "${NEED_LIBOPTS_DIR}" ; then
  11268. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  11269. # =================
  11270. # AC_HEADER_STDC
  11271. # =================
  11272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  11273. $as_echo_n "checking for ANSI C header files... " >&6; }
  11274. if test "${ac_cv_header_stdc+set}" = set; then :
  11275. $as_echo_n "(cached) " >&6
  11276. else
  11277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11278. /* end confdefs.h. */
  11279. #include <stdlib.h>
  11280. #include <stdarg.h>
  11281. #include <string.h>
  11282. #include <float.h>
  11283. int
  11284. main ()
  11285. {
  11286. ;
  11287. return 0;
  11288. }
  11289. _ACEOF
  11290. if ac_fn_c_try_compile "$LINENO"; then :
  11291. ac_cv_header_stdc=yes
  11292. else
  11293. ac_cv_header_stdc=no
  11294. fi
  11295. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11296. if test $ac_cv_header_stdc = yes; then
  11297. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  11298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11299. /* end confdefs.h. */
  11300. #include <string.h>
  11301. _ACEOF
  11302. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11303. $EGREP "memchr" >/dev/null 2>&1; then :
  11304. else
  11305. ac_cv_header_stdc=no
  11306. fi
  11307. rm -f conftest*
  11308. fi
  11309. if test $ac_cv_header_stdc = yes; then
  11310. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  11311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11312. /* end confdefs.h. */
  11313. #include <stdlib.h>
  11314. _ACEOF
  11315. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11316. $EGREP "free" >/dev/null 2>&1; then :
  11317. else
  11318. ac_cv_header_stdc=no
  11319. fi
  11320. rm -f conftest*
  11321. fi
  11322. if test $ac_cv_header_stdc = yes; then
  11323. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  11324. if test "$cross_compiling" = yes; then :
  11325. :
  11326. else
  11327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11328. /* end confdefs.h. */
  11329. #include <ctype.h>
  11330. #include <stdlib.h>
  11331. #if ((' ' & 0x0FF) == 0x020)
  11332. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  11333. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  11334. #else
  11335. # define ISLOWER(c) \
  11336. (('a' <= (c) && (c) <= 'i') \
  11337. || ('j' <= (c) && (c) <= 'r') \
  11338. || ('s' <= (c) && (c) <= 'z'))
  11339. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  11340. #endif
  11341. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  11342. int
  11343. main ()
  11344. {
  11345. int i;
  11346. for (i = 0; i < 256; i++)
  11347. if (XOR (islower (i), ISLOWER (i))
  11348. || toupper (i) != TOUPPER (i))
  11349. return 2;
  11350. return 0;
  11351. }
  11352. _ACEOF
  11353. if ac_fn_c_try_run "$LINENO"; then :
  11354. else
  11355. ac_cv_header_stdc=no
  11356. fi
  11357. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11358. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11359. fi
  11360. fi
  11361. fi
  11362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  11363. $as_echo "$ac_cv_header_stdc" >&6; }
  11364. if test $ac_cv_header_stdc = yes; then
  11365. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  11366. fi
  11367. # =================
  11368. # AC_HEADER_DIRENT
  11369. # =================
  11370. ac_header_dirent=no
  11371. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  11372. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  11373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  11374. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  11375. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
  11376. $as_echo_n "(cached) " >&6
  11377. else
  11378. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11379. /* end confdefs.h. */
  11380. #include <sys/types.h>
  11381. #include <$ac_hdr>
  11382. int
  11383. main ()
  11384. {
  11385. if ((DIR *) 0)
  11386. return 0;
  11387. ;
  11388. return 0;
  11389. }
  11390. _ACEOF
  11391. if ac_fn_c_try_compile "$LINENO"; then :
  11392. eval "$as_ac_Header=yes"
  11393. else
  11394. eval "$as_ac_Header=no"
  11395. fi
  11396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11397. fi
  11398. eval ac_res=\$$as_ac_Header
  11399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11400. $as_echo "$ac_res" >&6; }
  11401. eval as_val=\$$as_ac_Header
  11402. if test "x$as_val" = x""yes; then :
  11403. cat >>confdefs.h <<_ACEOF
  11404. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  11405. _ACEOF
  11406. ac_header_dirent=$ac_hdr; break
  11407. fi
  11408. done
  11409. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  11410. if test $ac_header_dirent = dirent.h; then
  11411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  11412. $as_echo_n "checking for library containing opendir... " >&6; }
  11413. if test "${ac_cv_search_opendir+set}" = set; then :
  11414. $as_echo_n "(cached) " >&6
  11415. else
  11416. ac_func_search_save_LIBS=$LIBS
  11417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11418. /* end confdefs.h. */
  11419. /* Override any GCC internal prototype to avoid an error.
  11420. Use char because int might match the return type of a GCC
  11421. builtin and then its argument prototype would still apply. */
  11422. #ifdef __cplusplus
  11423. extern "C"
  11424. #endif
  11425. char opendir ();
  11426. int
  11427. main ()
  11428. {
  11429. return opendir ();
  11430. ;
  11431. return 0;
  11432. }
  11433. _ACEOF
  11434. for ac_lib in '' dir; do
  11435. if test -z "$ac_lib"; then
  11436. ac_res="none required"
  11437. else
  11438. ac_res=-l$ac_lib
  11439. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11440. fi
  11441. if ac_fn_c_try_link "$LINENO"; then :
  11442. ac_cv_search_opendir=$ac_res
  11443. fi
  11444. rm -f core conftest.err conftest.$ac_objext \
  11445. conftest$ac_exeext
  11446. if test "${ac_cv_search_opendir+set}" = set; then :
  11447. break
  11448. fi
  11449. done
  11450. if test "${ac_cv_search_opendir+set}" = set; then :
  11451. else
  11452. ac_cv_search_opendir=no
  11453. fi
  11454. rm conftest.$ac_ext
  11455. LIBS=$ac_func_search_save_LIBS
  11456. fi
  11457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  11458. $as_echo "$ac_cv_search_opendir" >&6; }
  11459. ac_res=$ac_cv_search_opendir
  11460. if test "$ac_res" != no; then :
  11461. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11462. fi
  11463. else
  11464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  11465. $as_echo_n "checking for library containing opendir... " >&6; }
  11466. if test "${ac_cv_search_opendir+set}" = set; then :
  11467. $as_echo_n "(cached) " >&6
  11468. else
  11469. ac_func_search_save_LIBS=$LIBS
  11470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11471. /* end confdefs.h. */
  11472. /* Override any GCC internal prototype to avoid an error.
  11473. Use char because int might match the return type of a GCC
  11474. builtin and then its argument prototype would still apply. */
  11475. #ifdef __cplusplus
  11476. extern "C"
  11477. #endif
  11478. char opendir ();
  11479. int
  11480. main ()
  11481. {
  11482. return opendir ();
  11483. ;
  11484. return 0;
  11485. }
  11486. _ACEOF
  11487. for ac_lib in '' x; do
  11488. if test -z "$ac_lib"; then
  11489. ac_res="none required"
  11490. else
  11491. ac_res=-l$ac_lib
  11492. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  11493. fi
  11494. if ac_fn_c_try_link "$LINENO"; then :
  11495. ac_cv_search_opendir=$ac_res
  11496. fi
  11497. rm -f core conftest.err conftest.$ac_objext \
  11498. conftest$ac_exeext
  11499. if test "${ac_cv_search_opendir+set}" = set; then :
  11500. break
  11501. fi
  11502. done
  11503. if test "${ac_cv_search_opendir+set}" = set; then :
  11504. else
  11505. ac_cv_search_opendir=no
  11506. fi
  11507. rm conftest.$ac_ext
  11508. LIBS=$ac_func_search_save_LIBS
  11509. fi
  11510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  11511. $as_echo "$ac_cv_search_opendir" >&6; }
  11512. ac_res=$ac_cv_search_opendir
  11513. if test "$ac_res" != no; then :
  11514. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  11515. fi
  11516. fi
  11517. # =================
  11518. # AC_CHECK_HEADERS
  11519. # =================
  11520. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  11521. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  11522. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
  11523. utime.h sysexits.h
  11524. do :
  11525. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11526. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11527. eval as_val=\$$as_ac_Header
  11528. if test "x$as_val" = x""yes; then :
  11529. cat >>confdefs.h <<_ACEOF
  11530. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11531. _ACEOF
  11532. fi
  11533. done
  11534. # --------------------------------------------
  11535. # Verify certain entries from AC_CHECK_HEADERS
  11536. # --------------------------------------------
  11537. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  11538. string errno stdlib memory setjmp
  11539. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  11540. test "${as_ac_var}" = set || \
  11541. as_fn_error "You must have ${f}.h on your system" "$LINENO" 5
  11542. done
  11543. # ================================================
  11544. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  11545. # if varargs.h is present define HAVE_VARARGS_H.
  11546. # ================================================
  11547. for ac_header in stdarg.h varargs.h
  11548. do :
  11549. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11550. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11551. eval as_val=\$$as_ac_Header
  11552. if test "x$as_val" = x""yes; then :
  11553. cat >>confdefs.h <<_ACEOF
  11554. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11555. _ACEOF
  11556. break
  11557. fi
  11558. done
  11559. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  11560. as_fn_error "You must have stdarg.h or varargs.h on your system" "$LINENO" 5
  11561. fi
  11562. # ================================================
  11563. # Similarly for the string.h and strings.h headers
  11564. # ================================================
  11565. for ac_header in string.h strings.h
  11566. do :
  11567. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11568. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11569. eval as_val=\$$as_ac_Header
  11570. if test "x$as_val" = x""yes; then :
  11571. cat >>confdefs.h <<_ACEOF
  11572. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11573. _ACEOF
  11574. break
  11575. fi
  11576. done
  11577. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  11578. as_fn_error "You must have string.h or strings.h on your system" "$LINENO" 5
  11579. fi
  11580. # =====================
  11581. # ...and limits headers
  11582. # =====================
  11583. for ac_header in limits.h sys/limits.h values.h
  11584. do :
  11585. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11586. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11587. eval as_val=\$$as_ac_Header
  11588. if test "x$as_val" = x""yes; then :
  11589. cat >>confdefs.h <<_ACEOF
  11590. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11591. _ACEOF
  11592. break
  11593. fi
  11594. done
  11595. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  11596. as_fn_error "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
  11597. fi
  11598. # ========================
  11599. # ...and int types headers
  11600. # ========================
  11601. for ac_header in stdint.h inttypes.h
  11602. do :
  11603. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11604. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  11605. eval as_val=\$$as_ac_Header
  11606. if test "x$as_val" = x""yes; then :
  11607. cat >>confdefs.h <<_ACEOF
  11608. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11609. _ACEOF
  11610. break
  11611. fi
  11612. done
  11613. ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
  11614. if test "x$ac_cv_type_int8_t" = x""yes; then :
  11615. cat >>confdefs.h <<_ACEOF
  11616. #define HAVE_INT8_T 1
  11617. _ACEOF
  11618. fi
  11619. ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
  11620. if test "x$ac_cv_type_uint8_t" = x""yes; then :
  11621. cat >>confdefs.h <<_ACEOF
  11622. #define HAVE_UINT8_T 1
  11623. _ACEOF
  11624. fi
  11625. ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
  11626. if test "x$ac_cv_type_int16_t" = x""yes; then :
  11627. cat >>confdefs.h <<_ACEOF
  11628. #define HAVE_INT16_T 1
  11629. _ACEOF
  11630. fi
  11631. ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  11632. if test "x$ac_cv_type_uint16_t" = x""yes; then :
  11633. cat >>confdefs.h <<_ACEOF
  11634. #define HAVE_UINT16_T 1
  11635. _ACEOF
  11636. fi
  11637. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  11638. if test "x$ac_cv_type_int32_t" = x""yes; then :
  11639. cat >>confdefs.h <<_ACEOF
  11640. #define HAVE_INT32_T 1
  11641. _ACEOF
  11642. fi
  11643. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  11644. if test "x$ac_cv_type_uint32_t" = x""yes; then :
  11645. cat >>confdefs.h <<_ACEOF
  11646. #define HAVE_UINT32_T 1
  11647. _ACEOF
  11648. fi
  11649. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  11650. if test "x$ac_cv_type_intptr_t" = x""yes; then :
  11651. cat >>confdefs.h <<_ACEOF
  11652. #define HAVE_INTPTR_T 1
  11653. _ACEOF
  11654. fi
  11655. ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
  11656. if test "x$ac_cv_type_uint_t" = x""yes; then :
  11657. cat >>confdefs.h <<_ACEOF
  11658. #define HAVE_UINT_T 1
  11659. _ACEOF
  11660. fi
  11661. # ====================
  11662. # uintptr type & sizes
  11663. # ====================
  11664. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  11665. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  11666. cat >>confdefs.h <<_ACEOF
  11667. #define HAVE_UINTPTR_T 1
  11668. _ACEOF
  11669. else
  11670. $as_echo "#define uintptr_t unsigned long" >>confdefs.h
  11671. fi
  11672. # The cast to long int works around a bug in the HP C Compiler
  11673. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11674. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11675. # This bug is HP SR number 8606223364.
  11676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
  11677. $as_echo_n "checking size of char*... " >&6; }
  11678. if test "${ac_cv_sizeof_charp+set}" = set; then :
  11679. $as_echo_n "(cached) " >&6
  11680. else
  11681. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
  11682. else
  11683. if test "$ac_cv_type_charp" = yes; then
  11684. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11685. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11686. { as_fn_set_status 77
  11687. as_fn_error "cannot compute sizeof (char*)
  11688. See \`config.log' for more details." "$LINENO" 5; }; }
  11689. else
  11690. ac_cv_sizeof_charp=0
  11691. fi
  11692. fi
  11693. fi
  11694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
  11695. $as_echo "$ac_cv_sizeof_charp" >&6; }
  11696. cat >>confdefs.h <<_ACEOF
  11697. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  11698. _ACEOF
  11699. # The cast to long int works around a bug in the HP C Compiler
  11700. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11701. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11702. # This bug is HP SR number 8606223364.
  11703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  11704. $as_echo_n "checking size of int... " >&6; }
  11705. if test "${ac_cv_sizeof_int+set}" = set; then :
  11706. $as_echo_n "(cached) " >&6
  11707. else
  11708. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  11709. else
  11710. if test "$ac_cv_type_int" = yes; then
  11711. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11712. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11713. { as_fn_set_status 77
  11714. as_fn_error "cannot compute sizeof (int)
  11715. See \`config.log' for more details." "$LINENO" 5; }; }
  11716. else
  11717. ac_cv_sizeof_int=0
  11718. fi
  11719. fi
  11720. fi
  11721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  11722. $as_echo "$ac_cv_sizeof_int" >&6; }
  11723. cat >>confdefs.h <<_ACEOF
  11724. #define SIZEOF_INT $ac_cv_sizeof_int
  11725. _ACEOF
  11726. # The cast to long int works around a bug in the HP C Compiler
  11727. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11728. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11729. # This bug is HP SR number 8606223364.
  11730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  11731. $as_echo_n "checking size of long... " >&6; }
  11732. if test "${ac_cv_sizeof_long+set}" = set; then :
  11733. $as_echo_n "(cached) " >&6
  11734. else
  11735. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  11736. else
  11737. if test "$ac_cv_type_long" = yes; then
  11738. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11739. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11740. { as_fn_set_status 77
  11741. as_fn_error "cannot compute sizeof (long)
  11742. See \`config.log' for more details." "$LINENO" 5; }; }
  11743. else
  11744. ac_cv_sizeof_long=0
  11745. fi
  11746. fi
  11747. fi
  11748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  11749. $as_echo "$ac_cv_sizeof_long" >&6; }
  11750. cat >>confdefs.h <<_ACEOF
  11751. #define SIZEOF_LONG $ac_cv_sizeof_long
  11752. _ACEOF
  11753. # The cast to long int works around a bug in the HP C Compiler
  11754. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  11755. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  11756. # This bug is HP SR number 8606223364.
  11757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  11758. $as_echo_n "checking size of short... " >&6; }
  11759. if test "${ac_cv_sizeof_short+set}" = set; then :
  11760. $as_echo_n "(cached) " >&6
  11761. else
  11762. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  11763. else
  11764. if test "$ac_cv_type_short" = yes; then
  11765. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11766. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11767. { as_fn_set_status 77
  11768. as_fn_error "cannot compute sizeof (short)
  11769. See \`config.log' for more details." "$LINENO" 5; }; }
  11770. else
  11771. ac_cv_sizeof_short=0
  11772. fi
  11773. fi
  11774. fi
  11775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  11776. $as_echo "$ac_cv_sizeof_short" >&6; }
  11777. cat >>confdefs.h <<_ACEOF
  11778. #define SIZEOF_SHORT $ac_cv_sizeof_short
  11779. _ACEOF
  11780. # ----------------------------------------------------------------------
  11781. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  11782. # ----------------------------------------------------------------------
  11783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
  11784. $as_echo_n "checking for pathfind in -lgen... " >&6; }
  11785. if test "${ac_cv_lib_gen_pathfind+set}" = set; then :
  11786. $as_echo_n "(cached) " >&6
  11787. else
  11788. ac_check_lib_save_LIBS=$LIBS
  11789. LIBS="-lgen $LIBS"
  11790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11791. /* end confdefs.h. */
  11792. /* Override any GCC internal prototype to avoid an error.
  11793. Use char because int might match the return type of a GCC
  11794. builtin and then its argument prototype would still apply. */
  11795. #ifdef __cplusplus
  11796. extern "C"
  11797. #endif
  11798. char pathfind ();
  11799. int
  11800. main ()
  11801. {
  11802. return pathfind ();
  11803. ;
  11804. return 0;
  11805. }
  11806. _ACEOF
  11807. if ac_fn_c_try_link "$LINENO"; then :
  11808. ac_cv_lib_gen_pathfind=yes
  11809. else
  11810. ac_cv_lib_gen_pathfind=no
  11811. fi
  11812. rm -f core conftest.err conftest.$ac_objext \
  11813. conftest$ac_exeext conftest.$ac_ext
  11814. LIBS=$ac_check_lib_save_LIBS
  11815. fi
  11816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
  11817. $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
  11818. if test "x$ac_cv_lib_gen_pathfind" = x""yes; then :
  11819. cat >>confdefs.h <<_ACEOF
  11820. #define HAVE_LIBGEN 1
  11821. _ACEOF
  11822. LIBS="-lgen $LIBS"
  11823. fi
  11824. for ac_func in vprintf
  11825. do :
  11826. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  11827. if test "x$ac_cv_func_vprintf" = x""yes; then :
  11828. cat >>confdefs.h <<_ACEOF
  11829. #define HAVE_VPRINTF 1
  11830. _ACEOF
  11831. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  11832. if test "x$ac_cv_func__doprnt" = x""yes; then :
  11833. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  11834. fi
  11835. fi
  11836. done
  11837. for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
  11838. do :
  11839. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11840. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  11841. eval as_val=\$$as_ac_var
  11842. if test "x$as_val" = x""yes; then :
  11843. cat >>confdefs.h <<_ACEOF
  11844. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11845. _ACEOF
  11846. fi
  11847. done
  11848. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  11849. fi
  11850. # Check to see if a reg expr header is specified.
  11851. # Check whether --with-regex-header was given.
  11852. if test "${with_regex_header+set}" = set; then :
  11853. withval=$with_regex_header; libopts_cv_with_regex_header=${with_regex_header}
  11854. else
  11855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a reg expr header is specified" >&5
  11856. $as_echo_n "checking whether a reg expr header is specified... " >&6; }
  11857. if test "${libopts_cv_with_regex_header+set}" = set; then :
  11858. $as_echo_n "(cached) " >&6
  11859. else
  11860. libopts_cv_with_regex_header=no
  11861. fi
  11862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_regex_header" >&5
  11863. $as_echo "$libopts_cv_with_regex_header" >&6; }
  11864. fi
  11865. # end of AC_ARG_WITH
  11866. if test "X${libopts_cv_with_regex_header}" != Xno
  11867. then
  11868. cat >>confdefs.h <<_ACEOF
  11869. #define REGEX_HEADER <${libopts_cv_with_regex_header}>
  11870. _ACEOF
  11871. else
  11872. $as_echo "#define REGEX_HEADER <regex.h>" >>confdefs.h
  11873. fi
  11874. # Check to see if a working libregex can be found.
  11875. # Check whether --with-libregex was given.
  11876. if test "${with_libregex+set}" = set; then :
  11877. withval=$with_libregex; libopts_cv_with_libregex_root=${with_libregex}
  11878. else
  11879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex was specified" >&5
  11880. $as_echo_n "checking whether with-libregex was specified... " >&6; }
  11881. if test "${libopts_cv_with_libregex_root+set}" = set; then :
  11882. $as_echo_n "(cached) " >&6
  11883. else
  11884. libopts_cv_with_libregex_root=no
  11885. fi
  11886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_root" >&5
  11887. $as_echo "$libopts_cv_with_libregex_root" >&6; }
  11888. fi
  11889. # end of AC_ARG_WITH libregex
  11890. if test "${with_libguile+set}" = set && \
  11891. test "${withval}" = no
  11892. then ## disabled by request
  11893. libopts_cv_with_libregex_root=no
  11894. libopts_cv_with_libregex_cflags=no
  11895. libopts_cv_with_libregex_libs=no
  11896. else
  11897. # Check whether --with-libregex-cflags was given.
  11898. if test "${with_libregex_cflags+set}" = set; then :
  11899. withval=$with_libregex_cflags; libopts_cv_with_libregex_cflags=${with_regex_cflags}
  11900. else
  11901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-cflags was specified" >&5
  11902. $as_echo_n "checking whether with-libregex-cflags was specified... " >&6; }
  11903. if test "${libopts_cv_with_libregex_cflags+set}" = set; then :
  11904. $as_echo_n "(cached) " >&6
  11905. else
  11906. libopts_cv_with_libregex_cflags=no
  11907. fi
  11908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_cflags" >&5
  11909. $as_echo "$libopts_cv_with_libregex_cflags" >&6; }
  11910. fi
  11911. # end of AC_ARG_WITH libregex-cflags
  11912. # Check whether --with-libregex-libs was given.
  11913. if test "${with_libregex_libs+set}" = set; then :
  11914. withval=$with_libregex_libs; libopts_cv_with_libregex_libs=${with_regex_libs}
  11915. else
  11916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether with-libregex-libs was specified" >&5
  11917. $as_echo_n "checking whether with-libregex-libs was specified... " >&6; }
  11918. if test "${libopts_cv_with_libregex_libs+set}" = set; then :
  11919. $as_echo_n "(cached) " >&6
  11920. else
  11921. libopts_cv_with_libregex_libs=no
  11922. fi
  11923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_with_libregex_libs" >&5
  11924. $as_echo "$libopts_cv_with_libregex_libs" >&6; }
  11925. fi
  11926. # end of AC_ARG_WITH libregex-libs
  11927. case "X${libopts_cv_with_libregex_cflags}" in
  11928. Xyes|Xno|X )
  11929. case "X${libopts_cv_with_libregex_root}" in
  11930. Xyes|Xno|X ) libopts_cv_with_libregex_cflags=no ;;
  11931. * ) libopts_cv_with_libregex_cflags=-I${libopts_cv_with_libregex_root}/include ;;
  11932. esac
  11933. esac
  11934. case "X${libopts_cv_with_libregex_libs}" in
  11935. Xyes|Xno|X )
  11936. case "X${libopts_cv_with_libregex_root}" in
  11937. Xyes|Xno|X ) libopts_cv_with_libregex_libs=no ;;
  11938. * ) libopts_cv_with_libregex_libs="-L${libopts_cv_with_libregex_root}/lib -lregex";;
  11939. esac
  11940. esac
  11941. libopts_save_CPPFLAGS="${CPPFLAGS}"
  11942. libopts_save_LIBS="${LIBS}"
  11943. fi ## disabled by request
  11944. case "X${libopts_cv_with_libregex_cflags}" in
  11945. Xyes|Xno|X )
  11946. libopts_cv_with_libregex_cflags="" ;;
  11947. * ) CPPFLAGS="${CPPFLAGS} ${libopts_cv_with_libregex_cflags}" ;;
  11948. esac
  11949. case "X${libopts_cv_with_libregex_libs}" in
  11950. Xyes|Xno|X )
  11951. libopts_cv_with_libregex_libs="" ;;
  11952. * )
  11953. LIBS="${LIBS} ${libopts_cv_with_libregex_libs}" ;;
  11954. esac
  11955. LIBREGEX_CFLAGS=""
  11956. LIBREGEX_LIBS=""
  11957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libregex functions properly" >&5
  11958. $as_echo_n "checking whether libregex functions properly... " >&6; }
  11959. if test "${libopts_cv_with_libregex+set}" = set; then :
  11960. $as_echo_n "(cached) " >&6
  11961. else
  11962. if test "$cross_compiling" = yes; then :
  11963. libopts_cv_with_libregex=no
  11964. else
  11965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11966. /* end confdefs.h. */
  11967. #include <stdio.h>
  11968. #include <stdlib.h>
  11969. #include <sys/types.h>
  11970. #include REGEX_HEADER
  11971. static regex_t re;
  11972. void comp_re( char const* pzPat ) {
  11973. int res = regcomp( &re, pzPat, REG_EXTENDED|REG_ICASE|REG_NEWLINE );
  11974. if (res == 0) return;
  11975. exit( res ); }
  11976. int main() {
  11977. regmatch_t m[2];
  11978. comp_re( "^.*\$" );
  11979. comp_re( "()|no.*" );
  11980. comp_re( "." );
  11981. if (regexec( &re, "X", 2, m, 0 ) != 0) return 1;
  11982. if ((m[0].rm_so != 0) || (m[0].rm_eo != 1)) {
  11983. fputs( "error: regex -->.<-- did not match\n", stderr );
  11984. return 1;
  11985. }
  11986. return 0; }
  11987. _ACEOF
  11988. if ac_fn_c_try_run "$LINENO"; then :
  11989. libopts_cv_with_libregex=yes
  11990. else
  11991. libopts_cv_with_libregex=no
  11992. fi
  11993. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11994. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11995. fi
  11996. # end of AC_TRY_RUN
  11997. fi
  11998. # end of AC_CACHE_VAL for libopts_cv_with_libregex
  11999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_with_libregex}" >&5
  12000. $as_echo "${libopts_cv_with_libregex}" >&6; }
  12001. if test "X${libopts_cv_with_libregex}" != Xno
  12002. then
  12003. $as_echo "#define WITH_LIBREGEX 1" >>confdefs.h
  12004. else
  12005. CPPFLAGS="${libopts_save_CPPFLAGS}"
  12006. LIBS="${libopts_save_LIBS}"
  12007. fi
  12008. # Check to see if pathfind(3) works.
  12009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pathfind(3) works" >&5
  12010. $as_echo_n "checking whether pathfind(3) works... " >&6; }
  12011. if test "${libopts_cv_run_pathfind+set}" = set; then :
  12012. $as_echo_n "(cached) " >&6
  12013. else
  12014. if test "$cross_compiling" = yes; then :
  12015. libopts_cv_run_pathfind=no
  12016. else
  12017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12018. /* end confdefs.h. */
  12019. #include <string.h>
  12020. #include <stdlib.h>
  12021. int main (int argc, char** argv) {
  12022. char* pz = pathfind( getenv( "PATH" ), "sh", "x" );
  12023. return (pz == 0) ? 1 : 0;
  12024. }
  12025. _ACEOF
  12026. if ac_fn_c_try_run "$LINENO"; then :
  12027. libopts_cv_run_pathfind=yes
  12028. else
  12029. libopts_cv_run_pathfind=no
  12030. fi
  12031. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12032. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12033. fi
  12034. # end of TRY_RUN
  12035. fi
  12036. # end of AC_CACHE_VAL for libopts_cv_run_pathfind
  12037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_pathfind}" >&5
  12038. $as_echo "${libopts_cv_run_pathfind}" >&6; }
  12039. if test "X${libopts_cv_run_pathfind}" != Xno
  12040. then
  12041. $as_echo "#define HAVE_PATHFIND 1" >>confdefs.h
  12042. fi
  12043. # Check to see if /dev/zero is readable device.
  12044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether /dev/zero is readable device" >&5
  12045. $as_echo_n "checking whether /dev/zero is readable device... " >&6; }
  12046. if test "${libopts_cv_test_dev_zero+set}" = set; then :
  12047. $as_echo_n "(cached) " >&6
  12048. else
  12049. libopts_cv_test_dev_zero=`exec 2> /dev/null
  12050. dzero=\`ls -lL /dev/zero | egrep ^c......r\`
  12051. test -z "${dzero}" && exit 1
  12052. echo ${dzero}`
  12053. if test $? -ne 0
  12054. then libopts_cv_test_dev_zero=no
  12055. elif test -z "$libopts_cv_test_dev_zero"
  12056. then libopts_cv_test_dev_zero=no
  12057. fi
  12058. fi
  12059. # end of CACHE_VAL of libopts_cv_test_dev_zero
  12060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_test_dev_zero}" >&5
  12061. $as_echo "${libopts_cv_test_dev_zero}" >&6; }
  12062. if test "X${libopts_cv_test_dev_zero}" != Xno
  12063. then
  12064. $as_echo "#define HAVE_DEV_ZERO 1" >>confdefs.h
  12065. fi
  12066. # Check to see if we have a functional realpath(3C).
  12067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a functional realpath(3C)" >&5
  12068. $as_echo_n "checking whether we have a functional realpath(3C)... " >&6; }
  12069. if test "${libopts_cv_run_realpath+set}" = set; then :
  12070. $as_echo_n "(cached) " >&6
  12071. else
  12072. if test "$cross_compiling" = yes; then :
  12073. libopts_cv_run_realpath=no
  12074. else
  12075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12076. /* end confdefs.h. */
  12077. #include <limits.h>
  12078. #include <stdlib.h>
  12079. int main (int argc, char** argv) {
  12080. #ifndef PATH_MAX
  12081. choke me!!
  12082. #else
  12083. char zPath[PATH_MAX+1];
  12084. #endif
  12085. char *pz = realpath(argv[0], zPath);
  12086. return (pz == zPath) ? 0 : 1;
  12087. }
  12088. _ACEOF
  12089. if ac_fn_c_try_run "$LINENO"; then :
  12090. libopts_cv_run_realpath=yes
  12091. else
  12092. libopts_cv_run_realpath=no
  12093. fi
  12094. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12095. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12096. fi
  12097. # end of TRY_RUN
  12098. fi
  12099. # end of AC_CACHE_VAL for libopts_cv_run_realpath
  12100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_realpath}" >&5
  12101. $as_echo "${libopts_cv_run_realpath}" >&6; }
  12102. if test "X${libopts_cv_run_realpath}" != Xno
  12103. then
  12104. $as_echo "#define HAVE_REALPATH 1" >>confdefs.h
  12105. fi
  12106. # Check to see if strftime() works.
  12107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strftime() works" >&5
  12108. $as_echo_n "checking whether strftime() works... " >&6; }
  12109. if test "${libopts_cv_run_strftime+set}" = set; then :
  12110. $as_echo_n "(cached) " >&6
  12111. else
  12112. if test "$cross_compiling" = yes; then :
  12113. libopts_cv_run_strftime=no
  12114. else
  12115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12116. /* end confdefs.h. */
  12117. #include <time.h>
  12118. #include <string.h>
  12119. char t_buf[ 64 ];
  12120. int main() {
  12121. static char const z[] = "Thursday Aug 28 240";
  12122. struct tm tm;
  12123. tm.tm_sec = 36; /* seconds after the minute [0, 61] */
  12124. tm.tm_min = 44; /* minutes after the hour [0, 59] */
  12125. tm.tm_hour = 12; /* hour since midnight [0, 23] */
  12126. tm.tm_mday = 28; /* day of the month [1, 31] */
  12127. tm.tm_mon = 7; /* months since January [0, 11] */
  12128. tm.tm_year = 86; /* years since 1900 */
  12129. tm.tm_wday = 4; /* days since Sunday [0, 6] */
  12130. tm.tm_yday = 239; /* days since January 1 [0, 365] */
  12131. tm.tm_isdst = 1; /* flag for daylight savings time */
  12132. strftime( t_buf, sizeof( t_buf ), "%A %b %d %j", &tm );
  12133. return (strcmp( t_buf, z ) != 0); }
  12134. _ACEOF
  12135. if ac_fn_c_try_run "$LINENO"; then :
  12136. libopts_cv_run_strftime=yes
  12137. else
  12138. libopts_cv_run_strftime=no
  12139. fi
  12140. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12141. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12142. fi
  12143. # end of TRY_RUN
  12144. fi
  12145. # end of AC_CACHE_VAL for libopts_cv_run_strftime
  12146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_strftime}" >&5
  12147. $as_echo "${libopts_cv_run_strftime}" >&6; }
  12148. if test "X${libopts_cv_run_strftime}" != Xno
  12149. then
  12150. $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
  12151. fi
  12152. # Check to see if fopen accepts "b" mode.
  12153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"b\" mode" >&5
  12154. $as_echo_n "checking whether fopen accepts \"b\" mode... " >&6; }
  12155. if test "${libopts_cv_run_fopen_binary+set}" = set; then :
  12156. $as_echo_n "(cached) " >&6
  12157. else
  12158. if test "$cross_compiling" = yes; then :
  12159. libopts_cv_run_fopen_binary=no
  12160. else
  12161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12162. /* end confdefs.h. */
  12163. #include <stdio.h>
  12164. int main (int argc, char** argv) {
  12165. FILE* fp = fopen("conftest.$ac_ext", "rb");
  12166. return (fp == NULL) ? 1 : fclose(fp); }
  12167. _ACEOF
  12168. if ac_fn_c_try_run "$LINENO"; then :
  12169. libopts_cv_run_fopen_binary=yes
  12170. else
  12171. libopts_cv_run_fopen_binary=no
  12172. fi
  12173. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12174. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12175. fi
  12176. # end of TRY_RUN
  12177. fi
  12178. # end of AC_CACHE_VAL for libopts_cv_run_fopen_binary
  12179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_binary}" >&5
  12180. $as_echo "${libopts_cv_run_fopen_binary}" >&6; }
  12181. if test "X${libopts_cv_run_fopen_binary}" != Xno
  12182. then
  12183. $as_echo "#define FOPEN_BINARY_FLAG \"b\"" >>confdefs.h
  12184. else
  12185. $as_echo "#define FOPEN_BINARY_FLAG \"\"" >>confdefs.h
  12186. fi
  12187. # Check to see if fopen accepts "t" mode.
  12188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fopen accepts \"t\" mode" >&5
  12189. $as_echo_n "checking whether fopen accepts \"t\" mode... " >&6; }
  12190. if test "${libopts_cv_run_fopen_text+set}" = set; then :
  12191. $as_echo_n "(cached) " >&6
  12192. else
  12193. if test "$cross_compiling" = yes; then :
  12194. libopts_cv_run_fopen_text=no
  12195. else
  12196. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12197. /* end confdefs.h. */
  12198. #include <stdio.h>
  12199. int main (int argc, char** argv) {
  12200. FILE* fp = fopen("conftest.$ac_ext", "rt");
  12201. return (fp == NULL) ? 1 : fclose(fp); }
  12202. _ACEOF
  12203. if ac_fn_c_try_run "$LINENO"; then :
  12204. libopts_cv_run_fopen_text=yes
  12205. else
  12206. libopts_cv_run_fopen_text=no
  12207. fi
  12208. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12209. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12210. fi
  12211. # end of TRY_RUN
  12212. fi
  12213. # end of AC_CACHE_VAL for libopts_cv_run_fopen_text
  12214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${libopts_cv_run_fopen_text}" >&5
  12215. $as_echo "${libopts_cv_run_fopen_text}" >&6; }
  12216. if test "X${libopts_cv_run_fopen_text}" != Xno
  12217. then
  12218. $as_echo "#define FOPEN_TEXT_FLAG \"t\"" >>confdefs.h
  12219. else
  12220. $as_echo "#define FOPEN_TEXT_FLAG \"\"" >>confdefs.h
  12221. fi
  12222. # Check to see if not wanting optional option args.
  12223. # Check whether --enable-optional-args was given.
  12224. if test "${enable_optional_args+set}" = set; then :
  12225. enableval=$enable_optional_args; libopts_cv_enable_optional_args=${enable_optional_args}
  12226. else
  12227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether not wanting optional option args" >&5
  12228. $as_echo_n "checking whether not wanting optional option args... " >&6; }
  12229. if test "${libopts_cv_enable_optional_args+set}" = set; then :
  12230. $as_echo_n "(cached) " >&6
  12231. else
  12232. libopts_cv_enable_optional_args=yes
  12233. fi
  12234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libopts_cv_enable_optional_args" >&5
  12235. $as_echo "$libopts_cv_enable_optional_args" >&6; }
  12236. fi
  12237. # end of AC_ARG_ENABLE
  12238. if test "X${libopts_cv_enable_optional_args}" = Xno
  12239. then
  12240. $as_echo "#define NO_OPTIONAL_OPT_ARGS 1" >>confdefs.h
  12241. fi
  12242. else
  12243. if test X${INVOKE_LIBOPTS_MACROS_FIRST_done} != Xyes ; then
  12244. # =================
  12245. # AC_HEADER_STDC
  12246. # =================
  12247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  12248. $as_echo_n "checking for ANSI C header files... " >&6; }
  12249. if test "${ac_cv_header_stdc+set}" = set; then :
  12250. $as_echo_n "(cached) " >&6
  12251. else
  12252. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12253. /* end confdefs.h. */
  12254. #include <stdlib.h>
  12255. #include <stdarg.h>
  12256. #include <string.h>
  12257. #include <float.h>
  12258. int
  12259. main ()
  12260. {
  12261. ;
  12262. return 0;
  12263. }
  12264. _ACEOF
  12265. if ac_fn_c_try_compile "$LINENO"; then :
  12266. ac_cv_header_stdc=yes
  12267. else
  12268. ac_cv_header_stdc=no
  12269. fi
  12270. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12271. if test $ac_cv_header_stdc = yes; then
  12272. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  12273. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12274. /* end confdefs.h. */
  12275. #include <string.h>
  12276. _ACEOF
  12277. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12278. $EGREP "memchr" >/dev/null 2>&1; then :
  12279. else
  12280. ac_cv_header_stdc=no
  12281. fi
  12282. rm -f conftest*
  12283. fi
  12284. if test $ac_cv_header_stdc = yes; then
  12285. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  12286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12287. /* end confdefs.h. */
  12288. #include <stdlib.h>
  12289. _ACEOF
  12290. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12291. $EGREP "free" >/dev/null 2>&1; then :
  12292. else
  12293. ac_cv_header_stdc=no
  12294. fi
  12295. rm -f conftest*
  12296. fi
  12297. if test $ac_cv_header_stdc = yes; then
  12298. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  12299. if test "$cross_compiling" = yes; then :
  12300. :
  12301. else
  12302. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12303. /* end confdefs.h. */
  12304. #include <ctype.h>
  12305. #include <stdlib.h>
  12306. #if ((' ' & 0x0FF) == 0x020)
  12307. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  12308. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  12309. #else
  12310. # define ISLOWER(c) \
  12311. (('a' <= (c) && (c) <= 'i') \
  12312. || ('j' <= (c) && (c) <= 'r') \
  12313. || ('s' <= (c) && (c) <= 'z'))
  12314. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  12315. #endif
  12316. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  12317. int
  12318. main ()
  12319. {
  12320. int i;
  12321. for (i = 0; i < 256; i++)
  12322. if (XOR (islower (i), ISLOWER (i))
  12323. || toupper (i) != TOUPPER (i))
  12324. return 2;
  12325. return 0;
  12326. }
  12327. _ACEOF
  12328. if ac_fn_c_try_run "$LINENO"; then :
  12329. else
  12330. ac_cv_header_stdc=no
  12331. fi
  12332. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12333. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12334. fi
  12335. fi
  12336. fi
  12337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  12338. $as_echo "$ac_cv_header_stdc" >&6; }
  12339. if test $ac_cv_header_stdc = yes; then
  12340. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  12341. fi
  12342. # =================
  12343. # AC_HEADER_DIRENT
  12344. # =================
  12345. ac_header_dirent=no
  12346. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  12347. as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  12348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
  12349. $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
  12350. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
  12351. $as_echo_n "(cached) " >&6
  12352. else
  12353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12354. /* end confdefs.h. */
  12355. #include <sys/types.h>
  12356. #include <$ac_hdr>
  12357. int
  12358. main ()
  12359. {
  12360. if ((DIR *) 0)
  12361. return 0;
  12362. ;
  12363. return 0;
  12364. }
  12365. _ACEOF
  12366. if ac_fn_c_try_compile "$LINENO"; then :
  12367. eval "$as_ac_Header=yes"
  12368. else
  12369. eval "$as_ac_Header=no"
  12370. fi
  12371. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12372. fi
  12373. eval ac_res=\$$as_ac_Header
  12374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12375. $as_echo "$ac_res" >&6; }
  12376. eval as_val=\$$as_ac_Header
  12377. if test "x$as_val" = x""yes; then :
  12378. cat >>confdefs.h <<_ACEOF
  12379. #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  12380. _ACEOF
  12381. ac_header_dirent=$ac_hdr; break
  12382. fi
  12383. done
  12384. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  12385. if test $ac_header_dirent = dirent.h; then
  12386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  12387. $as_echo_n "checking for library containing opendir... " >&6; }
  12388. if test "${ac_cv_search_opendir+set}" = set; then :
  12389. $as_echo_n "(cached) " >&6
  12390. else
  12391. ac_func_search_save_LIBS=$LIBS
  12392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12393. /* end confdefs.h. */
  12394. /* Override any GCC internal prototype to avoid an error.
  12395. Use char because int might match the return type of a GCC
  12396. builtin and then its argument prototype would still apply. */
  12397. #ifdef __cplusplus
  12398. extern "C"
  12399. #endif
  12400. char opendir ();
  12401. int
  12402. main ()
  12403. {
  12404. return opendir ();
  12405. ;
  12406. return 0;
  12407. }
  12408. _ACEOF
  12409. for ac_lib in '' dir; do
  12410. if test -z "$ac_lib"; then
  12411. ac_res="none required"
  12412. else
  12413. ac_res=-l$ac_lib
  12414. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12415. fi
  12416. if ac_fn_c_try_link "$LINENO"; then :
  12417. ac_cv_search_opendir=$ac_res
  12418. fi
  12419. rm -f core conftest.err conftest.$ac_objext \
  12420. conftest$ac_exeext
  12421. if test "${ac_cv_search_opendir+set}" = set; then :
  12422. break
  12423. fi
  12424. done
  12425. if test "${ac_cv_search_opendir+set}" = set; then :
  12426. else
  12427. ac_cv_search_opendir=no
  12428. fi
  12429. rm conftest.$ac_ext
  12430. LIBS=$ac_func_search_save_LIBS
  12431. fi
  12432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  12433. $as_echo "$ac_cv_search_opendir" >&6; }
  12434. ac_res=$ac_cv_search_opendir
  12435. if test "$ac_res" != no; then :
  12436. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12437. fi
  12438. else
  12439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
  12440. $as_echo_n "checking for library containing opendir... " >&6; }
  12441. if test "${ac_cv_search_opendir+set}" = set; then :
  12442. $as_echo_n "(cached) " >&6
  12443. else
  12444. ac_func_search_save_LIBS=$LIBS
  12445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12446. /* end confdefs.h. */
  12447. /* Override any GCC internal prototype to avoid an error.
  12448. Use char because int might match the return type of a GCC
  12449. builtin and then its argument prototype would still apply. */
  12450. #ifdef __cplusplus
  12451. extern "C"
  12452. #endif
  12453. char opendir ();
  12454. int
  12455. main ()
  12456. {
  12457. return opendir ();
  12458. ;
  12459. return 0;
  12460. }
  12461. _ACEOF
  12462. for ac_lib in '' x; do
  12463. if test -z "$ac_lib"; then
  12464. ac_res="none required"
  12465. else
  12466. ac_res=-l$ac_lib
  12467. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12468. fi
  12469. if ac_fn_c_try_link "$LINENO"; then :
  12470. ac_cv_search_opendir=$ac_res
  12471. fi
  12472. rm -f core conftest.err conftest.$ac_objext \
  12473. conftest$ac_exeext
  12474. if test "${ac_cv_search_opendir+set}" = set; then :
  12475. break
  12476. fi
  12477. done
  12478. if test "${ac_cv_search_opendir+set}" = set; then :
  12479. else
  12480. ac_cv_search_opendir=no
  12481. fi
  12482. rm conftest.$ac_ext
  12483. LIBS=$ac_func_search_save_LIBS
  12484. fi
  12485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
  12486. $as_echo "$ac_cv_search_opendir" >&6; }
  12487. ac_res=$ac_cv_search_opendir
  12488. if test "$ac_res" != no; then :
  12489. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12490. fi
  12491. fi
  12492. # =================
  12493. # AC_CHECK_HEADERS
  12494. # =================
  12495. for ac_header in dlfcn.h errno.h fcntl.h libgen.h memory.h netinet/in.h \
  12496. setjmp.h sys/mman.h sys/param.h sys/poll.h sys/procset.h sys/select.h \
  12497. sys/socket.h sys/stropts.h sys/time.h sys/un.h sys/wait.h unistd.h \
  12498. utime.h sysexits.h
  12499. do :
  12500. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12501. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12502. eval as_val=\$$as_ac_Header
  12503. if test "x$as_val" = x""yes; then :
  12504. cat >>confdefs.h <<_ACEOF
  12505. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12506. _ACEOF
  12507. fi
  12508. done
  12509. # --------------------------------------------
  12510. # Verify certain entries from AC_CHECK_HEADERS
  12511. # --------------------------------------------
  12512. for f in sys_types sys_mman sys_param sys_stat sys_wait \
  12513. string errno stdlib memory setjmp
  12514. do eval as_ac_var=\${ac_cv_header_${f}_h+set}
  12515. test "${as_ac_var}" = set || \
  12516. as_fn_error "You must have ${f}.h on your system" "$LINENO" 5
  12517. done
  12518. # ================================================
  12519. # AC_CHECK_HEADERS: stdarg.h is present define HAVE_STDARG_H, otherwise
  12520. # if varargs.h is present define HAVE_VARARGS_H.
  12521. # ================================================
  12522. for ac_header in stdarg.h varargs.h
  12523. do :
  12524. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12525. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12526. eval as_val=\$$as_ac_Header
  12527. if test "x$as_val" = x""yes; then :
  12528. cat >>confdefs.h <<_ACEOF
  12529. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12530. _ACEOF
  12531. break
  12532. fi
  12533. done
  12534. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  12535. as_fn_error "You must have stdarg.h or varargs.h on your system" "$LINENO" 5
  12536. fi
  12537. # ================================================
  12538. # Similarly for the string.h and strings.h headers
  12539. # ================================================
  12540. for ac_header in string.h strings.h
  12541. do :
  12542. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12543. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12544. eval as_val=\$$as_ac_Header
  12545. if test "x$as_val" = x""yes; then :
  12546. cat >>confdefs.h <<_ACEOF
  12547. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12548. _ACEOF
  12549. break
  12550. fi
  12551. done
  12552. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  12553. as_fn_error "You must have string.h or strings.h on your system" "$LINENO" 5
  12554. fi
  12555. # =====================
  12556. # ...and limits headers
  12557. # =====================
  12558. for ac_header in limits.h sys/limits.h values.h
  12559. do :
  12560. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12561. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12562. eval as_val=\$$as_ac_Header
  12563. if test "x$as_val" = x""yes; then :
  12564. cat >>confdefs.h <<_ACEOF
  12565. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12566. _ACEOF
  12567. break
  12568. fi
  12569. done
  12570. if test `eval echo '${'$as_ac_Header'}'` != yes; then
  12571. as_fn_error "You must have one of limits.h, sys/limits.h or values.h" "$LINENO" 5
  12572. fi
  12573. # ========================
  12574. # ...and int types headers
  12575. # ========================
  12576. for ac_header in stdint.h inttypes.h
  12577. do :
  12578. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12579. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12580. eval as_val=\$$as_ac_Header
  12581. if test "x$as_val" = x""yes; then :
  12582. cat >>confdefs.h <<_ACEOF
  12583. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12584. _ACEOF
  12585. break
  12586. fi
  12587. done
  12588. ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
  12589. if test "x$ac_cv_type_int8_t" = x""yes; then :
  12590. cat >>confdefs.h <<_ACEOF
  12591. #define HAVE_INT8_T 1
  12592. _ACEOF
  12593. fi
  12594. ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
  12595. if test "x$ac_cv_type_uint8_t" = x""yes; then :
  12596. cat >>confdefs.h <<_ACEOF
  12597. #define HAVE_UINT8_T 1
  12598. _ACEOF
  12599. fi
  12600. ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
  12601. if test "x$ac_cv_type_int16_t" = x""yes; then :
  12602. cat >>confdefs.h <<_ACEOF
  12603. #define HAVE_INT16_T 1
  12604. _ACEOF
  12605. fi
  12606. ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  12607. if test "x$ac_cv_type_uint16_t" = x""yes; then :
  12608. cat >>confdefs.h <<_ACEOF
  12609. #define HAVE_UINT16_T 1
  12610. _ACEOF
  12611. fi
  12612. ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
  12613. if test "x$ac_cv_type_int32_t" = x""yes; then :
  12614. cat >>confdefs.h <<_ACEOF
  12615. #define HAVE_INT32_T 1
  12616. _ACEOF
  12617. fi
  12618. ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
  12619. if test "x$ac_cv_type_uint32_t" = x""yes; then :
  12620. cat >>confdefs.h <<_ACEOF
  12621. #define HAVE_UINT32_T 1
  12622. _ACEOF
  12623. fi
  12624. ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
  12625. if test "x$ac_cv_type_intptr_t" = x""yes; then :
  12626. cat >>confdefs.h <<_ACEOF
  12627. #define HAVE_INTPTR_T 1
  12628. _ACEOF
  12629. fi
  12630. ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
  12631. if test "x$ac_cv_type_uint_t" = x""yes; then :
  12632. cat >>confdefs.h <<_ACEOF
  12633. #define HAVE_UINT_T 1
  12634. _ACEOF
  12635. fi
  12636. # ====================
  12637. # uintptr type & sizes
  12638. # ====================
  12639. ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
  12640. if test "x$ac_cv_type_uintptr_t" = x""yes; then :
  12641. cat >>confdefs.h <<_ACEOF
  12642. #define HAVE_UINTPTR_T 1
  12643. _ACEOF
  12644. else
  12645. $as_echo "#define uintptr_t unsigned long" >>confdefs.h
  12646. fi
  12647. # The cast to long int works around a bug in the HP C Compiler
  12648. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12649. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12650. # This bug is HP SR number 8606223364.
  12651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char*" >&5
  12652. $as_echo_n "checking size of char*... " >&6; }
  12653. if test "${ac_cv_sizeof_charp+set}" = set; then :
  12654. $as_echo_n "(cached) " >&6
  12655. else
  12656. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char*))" "ac_cv_sizeof_charp" "$ac_includes_default"; then :
  12657. else
  12658. if test "$ac_cv_type_charp" = yes; then
  12659. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12660. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12661. { as_fn_set_status 77
  12662. as_fn_error "cannot compute sizeof (char*)
  12663. See \`config.log' for more details." "$LINENO" 5; }; }
  12664. else
  12665. ac_cv_sizeof_charp=0
  12666. fi
  12667. fi
  12668. fi
  12669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_charp" >&5
  12670. $as_echo "$ac_cv_sizeof_charp" >&6; }
  12671. cat >>confdefs.h <<_ACEOF
  12672. #define SIZEOF_CHARP $ac_cv_sizeof_charp
  12673. _ACEOF
  12674. # The cast to long int works around a bug in the HP C Compiler
  12675. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12676. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12677. # This bug is HP SR number 8606223364.
  12678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  12679. $as_echo_n "checking size of int... " >&6; }
  12680. if test "${ac_cv_sizeof_int+set}" = set; then :
  12681. $as_echo_n "(cached) " >&6
  12682. else
  12683. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  12684. else
  12685. if test "$ac_cv_type_int" = yes; then
  12686. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12687. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12688. { as_fn_set_status 77
  12689. as_fn_error "cannot compute sizeof (int)
  12690. See \`config.log' for more details." "$LINENO" 5; }; }
  12691. else
  12692. ac_cv_sizeof_int=0
  12693. fi
  12694. fi
  12695. fi
  12696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  12697. $as_echo "$ac_cv_sizeof_int" >&6; }
  12698. cat >>confdefs.h <<_ACEOF
  12699. #define SIZEOF_INT $ac_cv_sizeof_int
  12700. _ACEOF
  12701. # The cast to long int works around a bug in the HP C Compiler
  12702. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12703. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12704. # This bug is HP SR number 8606223364.
  12705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  12706. $as_echo_n "checking size of long... " >&6; }
  12707. if test "${ac_cv_sizeof_long+set}" = set; then :
  12708. $as_echo_n "(cached) " >&6
  12709. else
  12710. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  12711. else
  12712. if test "$ac_cv_type_long" = yes; then
  12713. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12714. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12715. { as_fn_set_status 77
  12716. as_fn_error "cannot compute sizeof (long)
  12717. See \`config.log' for more details." "$LINENO" 5; }; }
  12718. else
  12719. ac_cv_sizeof_long=0
  12720. fi
  12721. fi
  12722. fi
  12723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  12724. $as_echo "$ac_cv_sizeof_long" >&6; }
  12725. cat >>confdefs.h <<_ACEOF
  12726. #define SIZEOF_LONG $ac_cv_sizeof_long
  12727. _ACEOF
  12728. # The cast to long int works around a bug in the HP C Compiler
  12729. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  12730. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  12731. # This bug is HP SR number 8606223364.
  12732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  12733. $as_echo_n "checking size of short... " >&6; }
  12734. if test "${ac_cv_sizeof_short+set}" = set; then :
  12735. $as_echo_n "(cached) " >&6
  12736. else
  12737. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  12738. else
  12739. if test "$ac_cv_type_short" = yes; then
  12740. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12741. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12742. { as_fn_set_status 77
  12743. as_fn_error "cannot compute sizeof (short)
  12744. See \`config.log' for more details." "$LINENO" 5; }; }
  12745. else
  12746. ac_cv_sizeof_short=0
  12747. fi
  12748. fi
  12749. fi
  12750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  12751. $as_echo "$ac_cv_sizeof_short" >&6; }
  12752. cat >>confdefs.h <<_ACEOF
  12753. #define SIZEOF_SHORT $ac_cv_sizeof_short
  12754. _ACEOF
  12755. # ----------------------------------------------------------------------
  12756. # AC_CHECK_LIB for SVR4 libgen, and use it if it defines pathfind.
  12757. # ----------------------------------------------------------------------
  12758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pathfind in -lgen" >&5
  12759. $as_echo_n "checking for pathfind in -lgen... " >&6; }
  12760. if test "${ac_cv_lib_gen_pathfind+set}" = set; then :
  12761. $as_echo_n "(cached) " >&6
  12762. else
  12763. ac_check_lib_save_LIBS=$LIBS
  12764. LIBS="-lgen $LIBS"
  12765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12766. /* end confdefs.h. */
  12767. /* Override any GCC internal prototype to avoid an error.
  12768. Use char because int might match the return type of a GCC
  12769. builtin and then its argument prototype would still apply. */
  12770. #ifdef __cplusplus
  12771. extern "C"
  12772. #endif
  12773. char pathfind ();
  12774. int
  12775. main ()
  12776. {
  12777. return pathfind ();
  12778. ;
  12779. return 0;
  12780. }
  12781. _ACEOF
  12782. if ac_fn_c_try_link "$LINENO"; then :
  12783. ac_cv_lib_gen_pathfind=yes
  12784. else
  12785. ac_cv_lib_gen_pathfind=no
  12786. fi
  12787. rm -f core conftest.err conftest.$ac_objext \
  12788. conftest$ac_exeext conftest.$ac_ext
  12789. LIBS=$ac_check_lib_save_LIBS
  12790. fi
  12791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_pathfind" >&5
  12792. $as_echo "$ac_cv_lib_gen_pathfind" >&6; }
  12793. if test "x$ac_cv_lib_gen_pathfind" = x""yes; then :
  12794. cat >>confdefs.h <<_ACEOF
  12795. #define HAVE_LIBGEN 1
  12796. _ACEOF
  12797. LIBS="-lgen $LIBS"
  12798. fi
  12799. for ac_func in vprintf
  12800. do :
  12801. ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
  12802. if test "x$ac_cv_func_vprintf" = x""yes; then :
  12803. cat >>confdefs.h <<_ACEOF
  12804. #define HAVE_VPRINTF 1
  12805. _ACEOF
  12806. ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
  12807. if test "x$ac_cv_func__doprnt" = x""yes; then :
  12808. $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
  12809. fi
  12810. fi
  12811. done
  12812. for ac_func in mmap canonicalize_file_name snprintf strdup strchr strrchr
  12813. do :
  12814. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12815. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  12816. eval as_val=\$$as_ac_var
  12817. if test "x$as_val" = x""yes; then :
  12818. cat >>confdefs.h <<_ACEOF
  12819. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12820. _ACEOF
  12821. fi
  12822. done
  12823. INVOKE_LIBOPTS_MACROS_FIRST_done=yes
  12824. fi
  12825. fi
  12826. # end of AC_DEFUN of LIBOPTS_CHECK
  12827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC can handle #warning" >&5
  12828. $as_echo_n "checking if $CC can handle #warning... " >&6; }
  12829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12830. /* end confdefs.h. */
  12831. int
  12832. main ()
  12833. {
  12834. #warning foo
  12835. ;
  12836. return 0;
  12837. }
  12838. _ACEOF
  12839. if ac_fn_c_try_compile "$LINENO"; then :
  12840. ac_cv_cpp_warning=yes
  12841. else
  12842. ac_cv_cpp_warning=no
  12843. fi
  12844. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_warning" >&5
  12846. $as_echo "$ac_cv_cpp_warning" >&6; }
  12847. case "$ac_cv_cpp_warning" in
  12848. no)
  12849. $as_echo "#define NO_OPTION_NAME_WARNINGS 1" >>confdefs.h
  12850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling NO_OPTION_NAME_WARNINGS as #warning does not work" >&5
  12851. $as_echo "Enabling NO_OPTION_NAME_WARNINGS as #warning does not work" >&6; }
  12852. ;;
  12853. esac
  12854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  12855. $as_echo_n "checking for inline... " >&6; }
  12856. if test "${ac_cv_c_inline+set}" = set; then :
  12857. $as_echo_n "(cached) " >&6
  12858. else
  12859. ac_cv_c_inline=no
  12860. for ac_kw in inline __inline__ __inline; do
  12861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12862. /* end confdefs.h. */
  12863. #ifndef __cplusplus
  12864. typedef int foo_t;
  12865. static $ac_kw foo_t static_foo () {return 0; }
  12866. $ac_kw foo_t foo () {return 0; }
  12867. #endif
  12868. _ACEOF
  12869. if ac_fn_c_try_compile "$LINENO"; then :
  12870. ac_cv_c_inline=$ac_kw
  12871. fi
  12872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12873. test "$ac_cv_c_inline" != no && break
  12874. done
  12875. fi
  12876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  12877. $as_echo "$ac_cv_c_inline" >&6; }
  12878. case $ac_cv_c_inline in
  12879. inline | yes) ;;
  12880. *)
  12881. case $ac_cv_c_inline in
  12882. no) ac_val=;;
  12883. *) ac_val=$ac_cv_c_inline;;
  12884. esac
  12885. cat >>confdefs.h <<_ACEOF
  12886. #ifndef __cplusplus
  12887. #define inline $ac_val
  12888. #endif
  12889. _ACEOF
  12890. ;;
  12891. esac
  12892. case "$ac_cv_c_inline" in
  12893. '')
  12894. ;;
  12895. *)
  12896. $as_echo "#define HAVE_INLINE 1" >>confdefs.h
  12897. esac
  12898. # Checks for libraries.
  12899. # Checks for header files.
  12900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  12901. $as_echo_n "checking for ANSI C header files... " >&6; }
  12902. if test "${ac_cv_header_stdc+set}" = set; then :
  12903. $as_echo_n "(cached) " >&6
  12904. else
  12905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12906. /* end confdefs.h. */
  12907. #include <stdlib.h>
  12908. #include <stdarg.h>
  12909. #include <string.h>
  12910. #include <float.h>
  12911. int
  12912. main ()
  12913. {
  12914. ;
  12915. return 0;
  12916. }
  12917. _ACEOF
  12918. if ac_fn_c_try_compile "$LINENO"; then :
  12919. ac_cv_header_stdc=yes
  12920. else
  12921. ac_cv_header_stdc=no
  12922. fi
  12923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12924. if test $ac_cv_header_stdc = yes; then
  12925. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  12926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12927. /* end confdefs.h. */
  12928. #include <string.h>
  12929. _ACEOF
  12930. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12931. $EGREP "memchr" >/dev/null 2>&1; then :
  12932. else
  12933. ac_cv_header_stdc=no
  12934. fi
  12935. rm -f conftest*
  12936. fi
  12937. if test $ac_cv_header_stdc = yes; then
  12938. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  12939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12940. /* end confdefs.h. */
  12941. #include <stdlib.h>
  12942. _ACEOF
  12943. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12944. $EGREP "free" >/dev/null 2>&1; then :
  12945. else
  12946. ac_cv_header_stdc=no
  12947. fi
  12948. rm -f conftest*
  12949. fi
  12950. if test $ac_cv_header_stdc = yes; then
  12951. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  12952. if test "$cross_compiling" = yes; then :
  12953. :
  12954. else
  12955. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12956. /* end confdefs.h. */
  12957. #include <ctype.h>
  12958. #include <stdlib.h>
  12959. #if ((' ' & 0x0FF) == 0x020)
  12960. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  12961. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  12962. #else
  12963. # define ISLOWER(c) \
  12964. (('a' <= (c) && (c) <= 'i') \
  12965. || ('j' <= (c) && (c) <= 'r') \
  12966. || ('s' <= (c) && (c) <= 'z'))
  12967. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  12968. #endif
  12969. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  12970. int
  12971. main ()
  12972. {
  12973. int i;
  12974. for (i = 0; i < 256; i++)
  12975. if (XOR (islower (i), ISLOWER (i))
  12976. || toupper (i) != TOUPPER (i))
  12977. return 2;
  12978. return 0;
  12979. }
  12980. _ACEOF
  12981. if ac_fn_c_try_run "$LINENO"; then :
  12982. else
  12983. ac_cv_header_stdc=no
  12984. fi
  12985. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  12986. conftest.$ac_objext conftest.beam conftest.$ac_ext
  12987. fi
  12988. fi
  12989. fi
  12990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  12991. $as_echo "$ac_cv_header_stdc" >&6; }
  12992. if test $ac_cv_header_stdc = yes; then
  12993. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  12994. fi
  12995. for ac_header in arpa/inet.h fcntl.h float.h limits.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h syslog.h unistd.h
  12996. do :
  12997. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12998. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  12999. eval as_val=\$$as_ac_Header
  13000. if test "x$as_val" = x""yes; then :
  13001. cat >>confdefs.h <<_ACEOF
  13002. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13003. _ACEOF
  13004. fi
  13005. done
  13006. # Checks for typedefs, structures, and compiler characteristics.
  13007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  13008. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  13009. if test "${ac_cv_c_const+set}" = set; then :
  13010. $as_echo_n "(cached) " >&6
  13011. else
  13012. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13013. /* end confdefs.h. */
  13014. int
  13015. main ()
  13016. {
  13017. /* FIXME: Include the comments suggested by Paul. */
  13018. #ifndef __cplusplus
  13019. /* Ultrix mips cc rejects this. */
  13020. typedef int charset[2];
  13021. const charset cs;
  13022. /* SunOS 4.1.1 cc rejects this. */
  13023. char const *const *pcpcc;
  13024. char **ppc;
  13025. /* NEC SVR4.0.2 mips cc rejects this. */
  13026. struct point {int x, y;};
  13027. static struct point const zero = {0,0};
  13028. /* AIX XL C 1.02.0.0 rejects this.
  13029. It does not let you subtract one const X* pointer from another in
  13030. an arm of an if-expression whose if-part is not a constant
  13031. expression */
  13032. const char *g = "string";
  13033. pcpcc = &g + (g ? g-g : 0);
  13034. /* HPUX 7.0 cc rejects these. */
  13035. ++pcpcc;
  13036. ppc = (char**) pcpcc;
  13037. pcpcc = (char const *const *) ppc;
  13038. { /* SCO 3.2v4 cc rejects this. */
  13039. char *t;
  13040. char const *s = 0 ? (char *) 0 : (char const *) 0;
  13041. *t++ = 0;
  13042. if (s) return 0;
  13043. }
  13044. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  13045. int x[] = {25, 17};
  13046. const int *foo = &x[0];
  13047. ++foo;
  13048. }
  13049. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  13050. typedef const int *iptr;
  13051. iptr p = 0;
  13052. ++p;
  13053. }
  13054. { /* AIX XL C 1.02.0.0 rejects this saying
  13055. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  13056. struct s { int j; const int *ap[3]; };
  13057. struct s *b; b->j = 5;
  13058. }
  13059. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  13060. const int foo = 10;
  13061. if (!foo) return 0;
  13062. }
  13063. return !cs[0] && !zero.x;
  13064. #endif
  13065. ;
  13066. return 0;
  13067. }
  13068. _ACEOF
  13069. if ac_fn_c_try_compile "$LINENO"; then :
  13070. ac_cv_c_const=yes
  13071. else
  13072. ac_cv_c_const=no
  13073. fi
  13074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13075. fi
  13076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  13077. $as_echo "$ac_cv_c_const" >&6; }
  13078. if test $ac_cv_c_const = no; then
  13079. $as_echo "#define const /**/" >>confdefs.h
  13080. fi
  13081. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  13082. if test "x$ac_cv_type_size_t" = x""yes; then :
  13083. else
  13084. cat >>confdefs.h <<_ACEOF
  13085. #define size_t unsigned int
  13086. _ACEOF
  13087. fi
  13088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  13089. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  13090. if test "${ac_cv_header_time+set}" = set; then :
  13091. $as_echo_n "(cached) " >&6
  13092. else
  13093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13094. /* end confdefs.h. */
  13095. #include <sys/types.h>
  13096. #include <sys/time.h>
  13097. #include <time.h>
  13098. int
  13099. main ()
  13100. {
  13101. if ((struct tm *) 0)
  13102. return 0;
  13103. ;
  13104. return 0;
  13105. }
  13106. _ACEOF
  13107. if ac_fn_c_try_compile "$LINENO"; then :
  13108. ac_cv_header_time=yes
  13109. else
  13110. ac_cv_header_time=no
  13111. fi
  13112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13113. fi
  13114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  13115. $as_echo "$ac_cv_header_time" >&6; }
  13116. if test $ac_cv_header_time = yes; then
  13117. $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  13118. fi
  13119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
  13120. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  13121. if test "${ac_cv_struct_tm+set}" = set; then :
  13122. $as_echo_n "(cached) " >&6
  13123. else
  13124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13125. /* end confdefs.h. */
  13126. #include <sys/types.h>
  13127. #include <time.h>
  13128. int
  13129. main ()
  13130. {
  13131. struct tm tm;
  13132. int *p = &tm.tm_sec;
  13133. return !p;
  13134. ;
  13135. return 0;
  13136. }
  13137. _ACEOF
  13138. if ac_fn_c_try_compile "$LINENO"; then :
  13139. ac_cv_struct_tm=time.h
  13140. else
  13141. ac_cv_struct_tm=sys/time.h
  13142. fi
  13143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13144. fi
  13145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
  13146. $as_echo "$ac_cv_struct_tm" >&6; }
  13147. if test $ac_cv_struct_tm = sys/time.h; then
  13148. $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
  13149. fi
  13150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ss_family field in struct sockaddr_storage" >&5
  13151. $as_echo_n "checking for ss_family field in struct sockaddr_storage... " >&6; }
  13152. if test "${ac_cv_have_ss_family_in_struct_ss+set}" = set; then :
  13153. $as_echo_n "(cached) " >&6
  13154. else
  13155. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13156. /* end confdefs.h. */
  13157. #include <sys/types.h>
  13158. #include <sys/socket.h>
  13159. int
  13160. main ()
  13161. {
  13162. struct sockaddr_storage s; s.ss_family = 1;
  13163. ;
  13164. return 0;
  13165. }
  13166. _ACEOF
  13167. if ac_fn_c_try_compile "$LINENO"; then :
  13168. ac_cv_have_ss_family_in_struct_ss="yes"
  13169. else
  13170. ac_cv_have_ss_family_in_struct_ss="no"
  13171. fi
  13172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13173. fi
  13174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ss_family_in_struct_ss" >&5
  13175. $as_echo "$ac_cv_have_ss_family_in_struct_ss" >&6; }
  13176. case "$ac_cv_have_ss_family_in_struct_ss" in
  13177. yes)
  13178. $as_echo "#define HAVE_SS_FAMILY_IN_SS 1" >>confdefs.h
  13179. ;;
  13180. esac
  13181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __ss_family field in struct sockaddr_storage" >&5
  13182. $as_echo_n "checking for __ss_family field in struct sockaddr_storage... " >&6; }
  13183. if test "${ac_cv_have___ss_family_in_struct_ss+set}" = set; then :
  13184. $as_echo_n "(cached) " >&6
  13185. else
  13186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13187. /* end confdefs.h. */
  13188. #include <sys/types.h>
  13189. #include <sys/socket.h>
  13190. int
  13191. main ()
  13192. {
  13193. struct sockaddr_storage s; s.__ss_family = 1;
  13194. ;
  13195. return 0;
  13196. }
  13197. _ACEOF
  13198. if ac_fn_c_try_compile "$LINENO"; then :
  13199. ac_cv_have___ss_family_in_struct_ss="yes"
  13200. else
  13201. ac_cv_have___ss_family_in_struct_ss="no"
  13202. fi
  13203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13204. fi
  13205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___ss_family_in_struct_ss" >&5
  13206. $as_echo "$ac_cv_have___ss_family_in_struct_ss" >&6; }
  13207. case "$ac_cv_have___ss_family_in_struct_ss" in
  13208. yes)
  13209. $as_echo "#define HAVE___SS_FAMILY_IN_SS 1" >>confdefs.h
  13210. ;;
  13211. esac
  13212. case "$ac_cv_have_ss_family_in_struct_ss$ac_cv_have___ss_family_in_struct_ss" in
  13213. noyes)
  13214. cat >>confdefs.h <<_ACEOF
  13215. #define ss_family __ss_family
  13216. _ACEOF
  13217. cat >>confdefs.h <<_ACEOF
  13218. #define ss_len __ss_len
  13219. _ACEOF
  13220. ;;
  13221. esac
  13222. # Checks for library functions.
  13223. #AC_FUNC_MEMCMP dnl HMS: we don't have a memcmp.c to use here, so why bother?
  13224. if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
  13225. $as_echo_n "(cached) " >&6
  13226. else
  13227. ac_cv_func_setvbuf_reversed=no
  13228. fi
  13229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  13230. $as_echo_n "checking return type of signal handlers... " >&6; }
  13231. if test "${ac_cv_type_signal+set}" = set; then :
  13232. $as_echo_n "(cached) " >&6
  13233. else
  13234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13235. /* end confdefs.h. */
  13236. #include <sys/types.h>
  13237. #include <signal.h>
  13238. int
  13239. main ()
  13240. {
  13241. return *(signal (0, 0)) (0) == 1;
  13242. ;
  13243. return 0;
  13244. }
  13245. _ACEOF
  13246. if ac_fn_c_try_compile "$LINENO"; then :
  13247. ac_cv_type_signal=int
  13248. else
  13249. ac_cv_type_signal=void
  13250. fi
  13251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13252. fi
  13253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  13254. $as_echo "$ac_cv_type_signal" >&6; }
  13255. cat >>confdefs.h <<_ACEOF
  13256. #define RETSIGTYPE $ac_cv_type_signal
  13257. _ACEOF
  13258. for ac_func in alarm
  13259. do :
  13260. ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm"
  13261. if test "x$ac_cv_func_alarm" = x""yes; then :
  13262. cat >>confdefs.h <<_ACEOF
  13263. #define HAVE_ALARM 1
  13264. _ACEOF
  13265. fi
  13266. done
  13267. ac_fn_c_check_func "$LINENO" "gethostent" "ac_cv_func_gethostent"
  13268. if test "x$ac_cv_func_gethostent" = x""yes; then :
  13269. else
  13270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostent" >&5
  13271. $as_echo_n "checking for library containing gethostent... " >&6; }
  13272. if test "${ac_cv_search_gethostent+set}" = set; then :
  13273. $as_echo_n "(cached) " >&6
  13274. else
  13275. ac_func_search_save_LIBS=$LIBS
  13276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13277. /* end confdefs.h. */
  13278. /* Override any GCC internal prototype to avoid an error.
  13279. Use char because int might match the return type of a GCC
  13280. builtin and then its argument prototype would still apply. */
  13281. #ifdef __cplusplus
  13282. extern "C"
  13283. #endif
  13284. char gethostent ();
  13285. int
  13286. main ()
  13287. {
  13288. return gethostent ();
  13289. ;
  13290. return 0;
  13291. }
  13292. _ACEOF
  13293. for ac_lib in '' nsl; do
  13294. if test -z "$ac_lib"; then
  13295. ac_res="none required"
  13296. else
  13297. ac_res=-l$ac_lib
  13298. LIBS="-l$ac_lib -lsocket $ac_func_search_save_LIBS"
  13299. fi
  13300. if ac_fn_c_try_link "$LINENO"; then :
  13301. ac_cv_search_gethostent=$ac_res
  13302. fi
  13303. rm -f core conftest.err conftest.$ac_objext \
  13304. conftest$ac_exeext
  13305. if test "${ac_cv_search_gethostent+set}" = set; then :
  13306. break
  13307. fi
  13308. done
  13309. if test "${ac_cv_search_gethostent+set}" = set; then :
  13310. else
  13311. ac_cv_search_gethostent=no
  13312. fi
  13313. rm conftest.$ac_ext
  13314. LIBS=$ac_func_search_save_LIBS
  13315. fi
  13316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostent" >&5
  13317. $as_echo "$ac_cv_search_gethostent" >&6; }
  13318. ac_res=$ac_cv_search_gethostent
  13319. if test "$ac_res" != no; then :
  13320. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13321. fi
  13322. fi
  13323. for ac_func in gettimeofday inet_ntoa memset
  13324. do :
  13325. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13326. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13327. eval as_val=\$$as_ac_var
  13328. if test "x$as_val" = x""yes; then :
  13329. cat >>confdefs.h <<_ACEOF
  13330. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13331. _ACEOF
  13332. fi
  13333. done
  13334. for ac_func in socket
  13335. do :
  13336. ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
  13337. if test "x$ac_cv_func_socket" = x""yes; then :
  13338. cat >>confdefs.h <<_ACEOF
  13339. #define HAVE_SOCKET 1
  13340. _ACEOF
  13341. else
  13342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  13343. $as_echo_n "checking for library containing socket... " >&6; }
  13344. if test "${ac_cv_search_socket+set}" = set; then :
  13345. $as_echo_n "(cached) " >&6
  13346. else
  13347. ac_func_search_save_LIBS=$LIBS
  13348. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13349. /* end confdefs.h. */
  13350. /* Override any GCC internal prototype to avoid an error.
  13351. Use char because int might match the return type of a GCC
  13352. builtin and then its argument prototype would still apply. */
  13353. #ifdef __cplusplus
  13354. extern "C"
  13355. #endif
  13356. char socket ();
  13357. int
  13358. main ()
  13359. {
  13360. return socket ();
  13361. ;
  13362. return 0;
  13363. }
  13364. _ACEOF
  13365. for ac_lib in '' socket; do
  13366. if test -z "$ac_lib"; then
  13367. ac_res="none required"
  13368. else
  13369. ac_res=-l$ac_lib
  13370. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13371. fi
  13372. if ac_fn_c_try_link "$LINENO"; then :
  13373. ac_cv_search_socket=$ac_res
  13374. fi
  13375. rm -f core conftest.err conftest.$ac_objext \
  13376. conftest$ac_exeext
  13377. if test "${ac_cv_search_socket+set}" = set; then :
  13378. break
  13379. fi
  13380. done
  13381. if test "${ac_cv_search_socket+set}" = set; then :
  13382. else
  13383. ac_cv_search_socket=no
  13384. fi
  13385. rm conftest.$ac_ext
  13386. LIBS=$ac_func_search_save_LIBS
  13387. fi
  13388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
  13389. $as_echo "$ac_cv_search_socket" >&6; }
  13390. ac_res=$ac_cv_search_socket
  13391. if test "$ac_res" != no; then :
  13392. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13393. fi
  13394. fi
  13395. done
  13396. for ac_func in sqrt
  13397. do :
  13398. ac_fn_c_check_func "$LINENO" "sqrt" "ac_cv_func_sqrt"
  13399. if test "x$ac_cv_func_sqrt" = x""yes; then :
  13400. cat >>confdefs.h <<_ACEOF
  13401. #define HAVE_SQRT 1
  13402. _ACEOF
  13403. else
  13404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
  13405. $as_echo_n "checking for library containing sqrt... " >&6; }
  13406. if test "${ac_cv_search_sqrt+set}" = set; then :
  13407. $as_echo_n "(cached) " >&6
  13408. else
  13409. ac_func_search_save_LIBS=$LIBS
  13410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13411. /* end confdefs.h. */
  13412. /* Override any GCC internal prototype to avoid an error.
  13413. Use char because int might match the return type of a GCC
  13414. builtin and then its argument prototype would still apply. */
  13415. #ifdef __cplusplus
  13416. extern "C"
  13417. #endif
  13418. char sqrt ();
  13419. int
  13420. main ()
  13421. {
  13422. return sqrt ();
  13423. ;
  13424. return 0;
  13425. }
  13426. _ACEOF
  13427. for ac_lib in '' m; do
  13428. if test -z "$ac_lib"; then
  13429. ac_res="none required"
  13430. else
  13431. ac_res=-l$ac_lib
  13432. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13433. fi
  13434. if ac_fn_c_try_link "$LINENO"; then :
  13435. ac_cv_search_sqrt=$ac_res
  13436. fi
  13437. rm -f core conftest.err conftest.$ac_objext \
  13438. conftest$ac_exeext
  13439. if test "${ac_cv_search_sqrt+set}" = set; then :
  13440. break
  13441. fi
  13442. done
  13443. if test "${ac_cv_search_sqrt+set}" = set; then :
  13444. else
  13445. ac_cv_search_sqrt=no
  13446. fi
  13447. rm conftest.$ac_ext
  13448. LIBS=$ac_func_search_save_LIBS
  13449. fi
  13450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
  13451. $as_echo "$ac_cv_search_sqrt" >&6; }
  13452. ac_res=$ac_cv_search_sqrt
  13453. if test "$ac_res" != no; then :
  13454. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13455. fi
  13456. fi
  13457. done
  13458. for ac_func in strrchr
  13459. do :
  13460. ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr"
  13461. if test "x$ac_cv_func_strrchr" = x""yes; then :
  13462. cat >>confdefs.h <<_ACEOF
  13463. #define HAVE_STRRCHR 1
  13464. _ACEOF
  13465. fi
  13466. done
  13467. case "$host" in
  13468. *-*-hpux10.*) # at least for hppa2.0-hp-hpux10.20
  13469. case "$GCC" in
  13470. yes)
  13471. ;;
  13472. *) CFLAGS="$CFLAGS -Wp,-H18816"
  13473. ;;
  13474. esac
  13475. ;;
  13476. *-*-linux*)
  13477. CFLAGS="$CFLAGS -DADJTIME_MISSING"
  13478. ;;
  13479. *-*-sunos*)
  13480. CFLAGS="$CFLAGS -DNONBLOCK_BROKEN"
  13481. ;;
  13482. esac
  13483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bin subdirectory" >&5
  13484. $as_echo_n "checking for bin subdirectory... " >&6; }
  13485. # Check whether --with-binsubdir was given.
  13486. if test "${with_binsubdir+set}" = set; then :
  13487. withval=$with_binsubdir; use_binsubdir="$withval"
  13488. else
  13489. use_binsubdir="bin"
  13490. fi
  13491. case "$use_binsubdir" in
  13492. bin)
  13493. ;;
  13494. sbin)
  13495. ;;
  13496. *)
  13497. as_fn_error "<$use_binsubdir> is illegal - must be \"bin\" or \"sbin\"" "$LINENO" 5
  13498. ;;
  13499. esac
  13500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_binsubdir" >&5
  13501. $as_echo "$use_binsubdir" >&6; }
  13502. BINSUBDIR=$use_binsubdir
  13503. ac_config_files="$ac_config_files Makefile"
  13504. cat >confcache <<\_ACEOF
  13505. # This file is a shell script that caches the results of configure
  13506. # tests run on this system so they can be shared between configure
  13507. # scripts and configure runs, see configure's option --config-cache.
  13508. # It is not useful on other systems. If it contains results you don't
  13509. # want to keep, you may remove or edit it.
  13510. #
  13511. # config.status only pays attention to the cache file if you give it
  13512. # the --recheck option to rerun configure.
  13513. #
  13514. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13515. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13516. # following values.
  13517. _ACEOF
  13518. # The following way of writing the cache mishandles newlines in values,
  13519. # but we know of no workaround that is simple, portable, and efficient.
  13520. # So, we kill variables containing newlines.
  13521. # Ultrix sh set writes to stderr and can't be redirected directly,
  13522. # and sets the high bit in the cache file unless we assign to the vars.
  13523. (
  13524. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13525. eval ac_val=\$$ac_var
  13526. case $ac_val in #(
  13527. *${as_nl}*)
  13528. case $ac_var in #(
  13529. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13530. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13531. esac
  13532. case $ac_var in #(
  13533. _ | IFS | as_nl) ;; #(
  13534. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13535. *) { eval $ac_var=; unset $ac_var;} ;;
  13536. esac ;;
  13537. esac
  13538. done
  13539. (set) 2>&1 |
  13540. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13541. *${as_nl}ac_space=\ *)
  13542. # `set' does not quote correctly, so add quotes: double-quote
  13543. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13544. sed -n \
  13545. "s/'/'\\\\''/g;
  13546. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13547. ;; #(
  13548. *)
  13549. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13550. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13551. ;;
  13552. esac |
  13553. sort
  13554. ) |
  13555. sed '
  13556. /^ac_cv_env_/b end
  13557. t clear
  13558. :clear
  13559. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13560. t end
  13561. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13562. :end' >>confcache
  13563. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13564. if test -w "$cache_file"; then
  13565. test "x$cache_file" != "x/dev/null" &&
  13566. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13567. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13568. cat confcache >$cache_file
  13569. else
  13570. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13571. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13572. fi
  13573. fi
  13574. rm -f confcache
  13575. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13576. # Let make expand exec_prefix.
  13577. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13578. DEFS=-DHAVE_CONFIG_H
  13579. ac_libobjs=
  13580. ac_ltlibobjs=
  13581. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13582. # 1. Remove the extension, and $U if already installed.
  13583. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13584. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13585. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13586. # will be set to the directory where LIBOBJS objects are built.
  13587. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13588. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13589. done
  13590. LIBOBJS=$ac_libobjs
  13591. LTLIBOBJS=$ac_ltlibobjs
  13592. if test -n "$EXEEXT"; then
  13593. am__EXEEXT_TRUE=
  13594. am__EXEEXT_FALSE='#'
  13595. else
  13596. am__EXEEXT_TRUE='#'
  13597. am__EXEEXT_FALSE=
  13598. fi
  13599. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13600. as_fn_error "conditional \"AMDEP\" was never defined.
  13601. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13602. fi
  13603. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13604. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  13605. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13606. fi
  13607. if test -z "${INSTALL_LIBOPTS_TRUE}" && test -z "${INSTALL_LIBOPTS_FALSE}"; then
  13608. as_fn_error "conditional \"INSTALL_LIBOPTS\" was never defined.
  13609. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13610. fi
  13611. if test -z "${NEED_LIBOPTS_TRUE}" && test -z "${NEED_LIBOPTS_FALSE}"; then
  13612. as_fn_error "conditional \"NEED_LIBOPTS\" was never defined.
  13613. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13614. fi
  13615. : ${CONFIG_STATUS=./config.status}
  13616. ac_write_fail=0
  13617. ac_clean_files_save=$ac_clean_files
  13618. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13619. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13620. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13621. as_write_fail=0
  13622. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13623. #! $SHELL
  13624. # Generated by $as_me.
  13625. # Run this file to recreate the current configuration.
  13626. # Compiler output produced by configure, useful for debugging
  13627. # configure, is in config.log if it exists.
  13628. debug=false
  13629. ac_cs_recheck=false
  13630. ac_cs_silent=false
  13631. SHELL=\${CONFIG_SHELL-$SHELL}
  13632. export SHELL
  13633. _ASEOF
  13634. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13635. ## -------------------- ##
  13636. ## M4sh Initialization. ##
  13637. ## -------------------- ##
  13638. # Be more Bourne compatible
  13639. DUALCASE=1; export DUALCASE # for MKS sh
  13640. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13641. emulate sh
  13642. NULLCMD=:
  13643. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13644. # is contrary to our usage. Disable this feature.
  13645. alias -g '${1+"$@"}'='"$@"'
  13646. setopt NO_GLOB_SUBST
  13647. else
  13648. case `(set -o) 2>/dev/null` in #(
  13649. *posix*) :
  13650. set -o posix ;; #(
  13651. *) :
  13652. ;;
  13653. esac
  13654. fi
  13655. as_nl='
  13656. '
  13657. export as_nl
  13658. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13659. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13660. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13661. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13662. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13663. # but without wasting forks for bash or zsh.
  13664. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13665. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13666. as_echo='print -r --'
  13667. as_echo_n='print -rn --'
  13668. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13669. as_echo='printf %s\n'
  13670. as_echo_n='printf %s'
  13671. else
  13672. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13673. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13674. as_echo_n='/usr/ucb/echo -n'
  13675. else
  13676. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13677. as_echo_n_body='eval
  13678. arg=$1;
  13679. case $arg in #(
  13680. *"$as_nl"*)
  13681. expr "X$arg" : "X\\(.*\\)$as_nl";
  13682. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13683. esac;
  13684. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13685. '
  13686. export as_echo_n_body
  13687. as_echo_n='sh -c $as_echo_n_body as_echo'
  13688. fi
  13689. export as_echo_body
  13690. as_echo='sh -c $as_echo_body as_echo'
  13691. fi
  13692. # The user is always right.
  13693. if test "${PATH_SEPARATOR+set}" != set; then
  13694. PATH_SEPARATOR=:
  13695. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13696. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13697. PATH_SEPARATOR=';'
  13698. }
  13699. fi
  13700. # IFS
  13701. # We need space, tab and new line, in precisely that order. Quoting is
  13702. # there to prevent editors from complaining about space-tab.
  13703. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13704. # splitting by setting IFS to empty value.)
  13705. IFS=" "" $as_nl"
  13706. # Find who we are. Look in the path if we contain no directory separator.
  13707. case $0 in #((
  13708. *[\\/]* ) as_myself=$0 ;;
  13709. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13710. for as_dir in $PATH
  13711. do
  13712. IFS=$as_save_IFS
  13713. test -z "$as_dir" && as_dir=.
  13714. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13715. done
  13716. IFS=$as_save_IFS
  13717. ;;
  13718. esac
  13719. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13720. # in which case we are not to be found in the path.
  13721. if test "x$as_myself" = x; then
  13722. as_myself=$0
  13723. fi
  13724. if test ! -f "$as_myself"; then
  13725. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13726. exit 1
  13727. fi
  13728. # Unset variables that we do not need and which cause bugs (e.g. in
  13729. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13730. # suppresses any "Segmentation fault" message there. '((' could
  13731. # trigger a bug in pdksh 5.2.14.
  13732. for as_var in BASH_ENV ENV MAIL MAILPATH
  13733. do eval test x\${$as_var+set} = xset \
  13734. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13735. done
  13736. PS1='$ '
  13737. PS2='> '
  13738. PS4='+ '
  13739. # NLS nuisances.
  13740. LC_ALL=C
  13741. export LC_ALL
  13742. LANGUAGE=C
  13743. export LANGUAGE
  13744. # CDPATH.
  13745. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13746. # as_fn_error ERROR [LINENO LOG_FD]
  13747. # ---------------------------------
  13748. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13749. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13750. # script with status $?, using 1 if that was 0.
  13751. as_fn_error ()
  13752. {
  13753. as_status=$?; test $as_status -eq 0 && as_status=1
  13754. if test "$3"; then
  13755. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13756. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13757. fi
  13758. $as_echo "$as_me: error: $1" >&2
  13759. as_fn_exit $as_status
  13760. } # as_fn_error
  13761. # as_fn_set_status STATUS
  13762. # -----------------------
  13763. # Set $? to STATUS, without forking.
  13764. as_fn_set_status ()
  13765. {
  13766. return $1
  13767. } # as_fn_set_status
  13768. # as_fn_exit STATUS
  13769. # -----------------
  13770. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13771. as_fn_exit ()
  13772. {
  13773. set +e
  13774. as_fn_set_status $1
  13775. exit $1
  13776. } # as_fn_exit
  13777. # as_fn_unset VAR
  13778. # ---------------
  13779. # Portably unset VAR.
  13780. as_fn_unset ()
  13781. {
  13782. { eval $1=; unset $1;}
  13783. }
  13784. as_unset=as_fn_unset
  13785. # as_fn_append VAR VALUE
  13786. # ----------------------
  13787. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13788. # advantage of any shell optimizations that allow amortized linear growth over
  13789. # repeated appends, instead of the typical quadratic growth present in naive
  13790. # implementations.
  13791. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13792. eval 'as_fn_append ()
  13793. {
  13794. eval $1+=\$2
  13795. }'
  13796. else
  13797. as_fn_append ()
  13798. {
  13799. eval $1=\$$1\$2
  13800. }
  13801. fi # as_fn_append
  13802. # as_fn_arith ARG...
  13803. # ------------------
  13804. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13805. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13806. # must be portable across $(()) and expr.
  13807. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13808. eval 'as_fn_arith ()
  13809. {
  13810. as_val=$(( $* ))
  13811. }'
  13812. else
  13813. as_fn_arith ()
  13814. {
  13815. as_val=`expr "$@" || test $? -eq 1`
  13816. }
  13817. fi # as_fn_arith
  13818. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13819. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13820. as_expr=expr
  13821. else
  13822. as_expr=false
  13823. fi
  13824. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13825. as_basename=basename
  13826. else
  13827. as_basename=false
  13828. fi
  13829. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13830. as_dirname=dirname
  13831. else
  13832. as_dirname=false
  13833. fi
  13834. as_me=`$as_basename -- "$0" ||
  13835. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13836. X"$0" : 'X\(//\)$' \| \
  13837. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13838. $as_echo X/"$0" |
  13839. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13840. s//\1/
  13841. q
  13842. }
  13843. /^X\/\(\/\/\)$/{
  13844. s//\1/
  13845. q
  13846. }
  13847. /^X\/\(\/\).*/{
  13848. s//\1/
  13849. q
  13850. }
  13851. s/.*/./; q'`
  13852. # Avoid depending upon Character Ranges.
  13853. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13854. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13855. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13856. as_cr_digits='0123456789'
  13857. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13858. ECHO_C= ECHO_N= ECHO_T=
  13859. case `echo -n x` in #(((((
  13860. -n*)
  13861. case `echo 'xy\c'` in
  13862. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13863. xy) ECHO_C='\c';;
  13864. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13865. ECHO_T=' ';;
  13866. esac;;
  13867. *)
  13868. ECHO_N='-n';;
  13869. esac
  13870. rm -f conf$$ conf$$.exe conf$$.file
  13871. if test -d conf$$.dir; then
  13872. rm -f conf$$.dir/conf$$.file
  13873. else
  13874. rm -f conf$$.dir
  13875. mkdir conf$$.dir 2>/dev/null
  13876. fi
  13877. if (echo >conf$$.file) 2>/dev/null; then
  13878. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13879. as_ln_s='ln -s'
  13880. # ... but there are two gotchas:
  13881. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13882. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13883. # In both cases, we have to default to `cp -p'.
  13884. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13885. as_ln_s='cp -p'
  13886. elif ln conf$$.file conf$$ 2>/dev/null; then
  13887. as_ln_s=ln
  13888. else
  13889. as_ln_s='cp -p'
  13890. fi
  13891. else
  13892. as_ln_s='cp -p'
  13893. fi
  13894. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13895. rmdir conf$$.dir 2>/dev/null
  13896. # as_fn_mkdir_p
  13897. # -------------
  13898. # Create "$as_dir" as a directory, including parents if necessary.
  13899. as_fn_mkdir_p ()
  13900. {
  13901. case $as_dir in #(
  13902. -*) as_dir=./$as_dir;;
  13903. esac
  13904. test -d "$as_dir" || eval $as_mkdir_p || {
  13905. as_dirs=
  13906. while :; do
  13907. case $as_dir in #(
  13908. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13909. *) as_qdir=$as_dir;;
  13910. esac
  13911. as_dirs="'$as_qdir' $as_dirs"
  13912. as_dir=`$as_dirname -- "$as_dir" ||
  13913. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13914. X"$as_dir" : 'X\(//\)[^/]' \| \
  13915. X"$as_dir" : 'X\(//\)$' \| \
  13916. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13917. $as_echo X"$as_dir" |
  13918. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13919. s//\1/
  13920. q
  13921. }
  13922. /^X\(\/\/\)[^/].*/{
  13923. s//\1/
  13924. q
  13925. }
  13926. /^X\(\/\/\)$/{
  13927. s//\1/
  13928. q
  13929. }
  13930. /^X\(\/\).*/{
  13931. s//\1/
  13932. q
  13933. }
  13934. s/.*/./; q'`
  13935. test -d "$as_dir" && break
  13936. done
  13937. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13938. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13939. } # as_fn_mkdir_p
  13940. if mkdir -p . 2>/dev/null; then
  13941. as_mkdir_p='mkdir -p "$as_dir"'
  13942. else
  13943. test -d ./-p && rmdir ./-p
  13944. as_mkdir_p=false
  13945. fi
  13946. if test -x / >/dev/null 2>&1; then
  13947. as_test_x='test -x'
  13948. else
  13949. if ls -dL / >/dev/null 2>&1; then
  13950. as_ls_L_option=L
  13951. else
  13952. as_ls_L_option=
  13953. fi
  13954. as_test_x='
  13955. eval sh -c '\''
  13956. if test -d "$1"; then
  13957. test -d "$1/.";
  13958. else
  13959. case $1 in #(
  13960. -*)set "./$1";;
  13961. esac;
  13962. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13963. ???[sx]*):;;*)false;;esac;fi
  13964. '\'' sh
  13965. '
  13966. fi
  13967. as_executable_p=$as_test_x
  13968. # Sed expression to map a string onto a valid CPP name.
  13969. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13970. # Sed expression to map a string onto a valid variable name.
  13971. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13972. exec 6>&1
  13973. ## ----------------------------------- ##
  13974. ## Main body of $CONFIG_STATUS script. ##
  13975. ## ----------------------------------- ##
  13976. _ASEOF
  13977. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13978. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13979. # Save the log message, to keep $0 and so on meaningful, and to
  13980. # report actual input values of CONFIG_FILES etc. instead of their
  13981. # values after options handling.
  13982. ac_log="
  13983. This file was extended by $as_me, which was
  13984. generated by GNU Autoconf 2.65. Invocation command line was
  13985. CONFIG_FILES = $CONFIG_FILES
  13986. CONFIG_HEADERS = $CONFIG_HEADERS
  13987. CONFIG_LINKS = $CONFIG_LINKS
  13988. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13989. $ $0 $@
  13990. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13991. "
  13992. _ACEOF
  13993. case $ac_config_files in *"
  13994. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13995. esac
  13996. case $ac_config_headers in *"
  13997. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13998. esac
  13999. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14000. # Files that config.status was made for.
  14001. config_files="$ac_config_files"
  14002. config_headers="$ac_config_headers"
  14003. config_commands="$ac_config_commands"
  14004. _ACEOF
  14005. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14006. ac_cs_usage="\
  14007. \`$as_me' instantiates files and other configuration actions
  14008. from templates according to the current configuration. Unless the files
  14009. and actions are specified as TAGs, all are instantiated by default.
  14010. Usage: $0 [OPTION]... [TAG]...
  14011. -h, --help print this help, then exit
  14012. -V, --version print version number and configuration settings, then exit
  14013. --config print configuration, then exit
  14014. -q, --quiet, --silent
  14015. do not print progress messages
  14016. -d, --debug don't remove temporary files
  14017. --recheck update $as_me by reconfiguring in the same conditions
  14018. --file=FILE[:TEMPLATE]
  14019. instantiate the configuration file FILE
  14020. --header=FILE[:TEMPLATE]
  14021. instantiate the configuration header FILE
  14022. Configuration files:
  14023. $config_files
  14024. Configuration headers:
  14025. $config_headers
  14026. Configuration commands:
  14027. $config_commands
  14028. Report bugs to the package provider."
  14029. _ACEOF
  14030. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14031. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14032. ac_cs_version="\\
  14033. config.status
  14034. configured by $0, generated by GNU Autoconf 2.65,
  14035. with options \\"\$ac_cs_config\\"
  14036. Copyright (C) 2009 Free Software Foundation, Inc.
  14037. This config.status script is free software; the Free Software Foundation
  14038. gives unlimited permission to copy, distribute and modify it."
  14039. ac_pwd='$ac_pwd'
  14040. srcdir='$srcdir'
  14041. INSTALL='$INSTALL'
  14042. MKDIR_P='$MKDIR_P'
  14043. AWK='$AWK'
  14044. test -n "\$AWK" || AWK=awk
  14045. _ACEOF
  14046. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14047. # The default lists apply if the user does not specify any file.
  14048. ac_need_defaults=:
  14049. while test $# != 0
  14050. do
  14051. case $1 in
  14052. --*=*)
  14053. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14054. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14055. ac_shift=:
  14056. ;;
  14057. *)
  14058. ac_option=$1
  14059. ac_optarg=$2
  14060. ac_shift=shift
  14061. ;;
  14062. esac
  14063. case $ac_option in
  14064. # Handling of the options.
  14065. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14066. ac_cs_recheck=: ;;
  14067. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14068. $as_echo "$ac_cs_version"; exit ;;
  14069. --config | --confi | --conf | --con | --co | --c )
  14070. $as_echo "$ac_cs_config"; exit ;;
  14071. --debug | --debu | --deb | --de | --d | -d )
  14072. debug=: ;;
  14073. --file | --fil | --fi | --f )
  14074. $ac_shift
  14075. case $ac_optarg in
  14076. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14077. esac
  14078. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14079. ac_need_defaults=false;;
  14080. --header | --heade | --head | --hea )
  14081. $ac_shift
  14082. case $ac_optarg in
  14083. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14084. esac
  14085. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14086. ac_need_defaults=false;;
  14087. --he | --h)
  14088. # Conflict between --help and --header
  14089. as_fn_error "ambiguous option: \`$1'
  14090. Try \`$0 --help' for more information.";;
  14091. --help | --hel | -h )
  14092. $as_echo "$ac_cs_usage"; exit ;;
  14093. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14094. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14095. ac_cs_silent=: ;;
  14096. # This is an error.
  14097. -*) as_fn_error "unrecognized option: \`$1'
  14098. Try \`$0 --help' for more information." ;;
  14099. *) as_fn_append ac_config_targets " $1"
  14100. ac_need_defaults=false ;;
  14101. esac
  14102. shift
  14103. done
  14104. ac_configure_extra_args=
  14105. if $ac_cs_silent; then
  14106. exec 6>/dev/null
  14107. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14108. fi
  14109. _ACEOF
  14110. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14111. if \$ac_cs_recheck; then
  14112. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14113. shift
  14114. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14115. CONFIG_SHELL='$SHELL'
  14116. export CONFIG_SHELL
  14117. exec "\$@"
  14118. fi
  14119. _ACEOF
  14120. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14121. exec 5>>config.log
  14122. {
  14123. echo
  14124. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14125. ## Running $as_me. ##
  14126. _ASBOX
  14127. $as_echo "$ac_log"
  14128. } >&5
  14129. _ACEOF
  14130. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14131. #
  14132. # INIT-COMMANDS
  14133. #
  14134. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14135. _ACEOF
  14136. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14137. # Handling of arguments.
  14138. for ac_config_target in $ac_config_targets
  14139. do
  14140. case $ac_config_target in
  14141. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  14142. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14143. "libopts/Makefile") CONFIG_FILES="$CONFIG_FILES libopts/Makefile" ;;
  14144. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14145. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14146. esac
  14147. done
  14148. # If the user did not use the arguments to specify the items to instantiate,
  14149. # then the envvar interface is used. Set only those that are not.
  14150. # We use the long form for the default assignment because of an extremely
  14151. # bizarre bug on SunOS 4.1.3.
  14152. if $ac_need_defaults; then
  14153. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14154. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  14155. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14156. fi
  14157. # Have a temporary directory for convenience. Make it in the build tree
  14158. # simply because there is no reason against having it here, and in addition,
  14159. # creating and moving files from /tmp can sometimes cause problems.
  14160. # Hook for its removal unless debugging.
  14161. # Note that there is a small window in which the directory will not be cleaned:
  14162. # after its creation but before its name has been assigned to `$tmp'.
  14163. $debug ||
  14164. {
  14165. tmp=
  14166. trap 'exit_status=$?
  14167. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14168. ' 0
  14169. trap 'as_fn_exit 1' 1 2 13 15
  14170. }
  14171. # Create a (secure) tmp directory for tmp files.
  14172. {
  14173. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14174. test -n "$tmp" && test -d "$tmp"
  14175. } ||
  14176. {
  14177. tmp=./conf$$-$RANDOM
  14178. (umask 077 && mkdir "$tmp")
  14179. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  14180. # Set up the scripts for CONFIG_FILES section.
  14181. # No need to generate them if there are no CONFIG_FILES.
  14182. # This happens for instance with `./config.status config.h'.
  14183. if test -n "$CONFIG_FILES"; then
  14184. ac_cr=`echo X | tr X '\015'`
  14185. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14186. # But we know of no other shell where ac_cr would be empty at this
  14187. # point, so we can use a bashism as a fallback.
  14188. if test "x$ac_cr" = x; then
  14189. eval ac_cr=\$\'\\r\'
  14190. fi
  14191. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14192. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14193. ac_cs_awk_cr='\r'
  14194. else
  14195. ac_cs_awk_cr=$ac_cr
  14196. fi
  14197. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14198. _ACEOF
  14199. {
  14200. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14201. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14202. echo "_ACEOF"
  14203. } >conf$$subs.sh ||
  14204. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14205. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14206. ac_delim='%!_!# '
  14207. for ac_last_try in false false false false false :; do
  14208. . ./conf$$subs.sh ||
  14209. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14210. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14211. if test $ac_delim_n = $ac_delim_num; then
  14212. break
  14213. elif $ac_last_try; then
  14214. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14215. else
  14216. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14217. fi
  14218. done
  14219. rm -f conf$$subs.sh
  14220. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14221. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14222. _ACEOF
  14223. sed -n '
  14224. h
  14225. s/^/S["/; s/!.*/"]=/
  14226. p
  14227. g
  14228. s/^[^!]*!//
  14229. :repl
  14230. t repl
  14231. s/'"$ac_delim"'$//
  14232. t delim
  14233. :nl
  14234. h
  14235. s/\(.\{148\}\)..*/\1/
  14236. t more1
  14237. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14238. p
  14239. n
  14240. b repl
  14241. :more1
  14242. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14243. p
  14244. g
  14245. s/.\{148\}//
  14246. t nl
  14247. :delim
  14248. h
  14249. s/\(.\{148\}\)..*/\1/
  14250. t more2
  14251. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14252. p
  14253. b
  14254. :more2
  14255. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14256. p
  14257. g
  14258. s/.\{148\}//
  14259. t delim
  14260. ' <conf$$subs.awk | sed '
  14261. /^[^""]/{
  14262. N
  14263. s/\n//
  14264. }
  14265. ' >>$CONFIG_STATUS || ac_write_fail=1
  14266. rm -f conf$$subs.awk
  14267. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14268. _ACAWK
  14269. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14270. for (key in S) S_is_set[key] = 1
  14271. FS = ""
  14272. }
  14273. {
  14274. line = $ 0
  14275. nfields = split(line, field, "@")
  14276. substed = 0
  14277. len = length(field[1])
  14278. for (i = 2; i < nfields; i++) {
  14279. key = field[i]
  14280. keylen = length(key)
  14281. if (S_is_set[key]) {
  14282. value = S[key]
  14283. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14284. len += length(value) + length(field[++i])
  14285. substed = 1
  14286. } else
  14287. len += 1 + keylen
  14288. }
  14289. print line
  14290. }
  14291. _ACAWK
  14292. _ACEOF
  14293. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14294. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14295. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14296. else
  14297. cat
  14298. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14299. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  14300. _ACEOF
  14301. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14302. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14303. # trailing colons and then remove the whole line if VPATH becomes empty
  14304. # (actually we leave an empty line to preserve line numbers).
  14305. if test "x$srcdir" = x.; then
  14306. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  14307. s/:*\$(srcdir):*/:/
  14308. s/:*\${srcdir}:*/:/
  14309. s/:*@srcdir@:*/:/
  14310. s/^\([^=]*=[ ]*\):*/\1/
  14311. s/:*$//
  14312. s/^[^=]*=[ ]*$//
  14313. }'
  14314. fi
  14315. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14316. fi # test -n "$CONFIG_FILES"
  14317. # Set up the scripts for CONFIG_HEADERS section.
  14318. # No need to generate them if there are no CONFIG_HEADERS.
  14319. # This happens for instance with `./config.status Makefile'.
  14320. if test -n "$CONFIG_HEADERS"; then
  14321. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14322. BEGIN {
  14323. _ACEOF
  14324. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14325. # here-document in config.status, that substitutes the proper values into
  14326. # config.h.in to produce config.h.
  14327. # Create a delimiter string that does not exist in confdefs.h, to ease
  14328. # handling of long lines.
  14329. ac_delim='%!_!# '
  14330. for ac_last_try in false false :; do
  14331. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14332. if test -