You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14745 lines
432KB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for jansson 2.10.
  4. #
  5. # Report bugs to <petri@digip.org>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, 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. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and petri@digip.org
  259. $0: about your system, including any error possibly output
  260. $0: before this message. Then install a modern shell, or
  261. $0: manually run the script under such a shell if you do
  262. $0: have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='jansson'
  542. PACKAGE_TARNAME='jansson'
  543. PACKAGE_VERSION='2.10'
  544. PACKAGE_STRING='jansson 2.10'
  545. PACKAGE_BUGREPORT='petri@digip.org'
  546. PACKAGE_URL=''
  547. ac_unique_file="src/value.c"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. LIBOBJS
  587. AM_CFLAGS
  588. json_have_localeconv
  589. json_have_long_long
  590. json_inline
  591. GCC_FALSE
  592. GCC_TRUE
  593. CPP
  594. LT_SYS_LIBRARY_PATH
  595. OTOOL64
  596. OTOOL
  597. LIPO
  598. NMEDIT
  599. DSYMUTIL
  600. MANIFEST_TOOL
  601. RANLIB
  602. ac_ct_AR
  603. AR
  604. DLLTOOL
  605. OBJDUMP
  606. LN_S
  607. NM
  608. ac_ct_DUMPBIN
  609. DUMPBIN
  610. LD
  611. FGREP
  612. EGREP
  613. GREP
  614. SED
  615. host_os
  616. host_vendor
  617. host_cpu
  618. host
  619. build_os
  620. build_vendor
  621. build_cpu
  622. build
  623. LIBTOOL
  624. am__fastdepCC_FALSE
  625. am__fastdepCC_TRUE
  626. CCDEPMODE
  627. am__nodep
  628. AMDEPBACKSLASH
  629. AMDEP_FALSE
  630. AMDEP_TRUE
  631. am__quote
  632. am__include
  633. DEPDIR
  634. OBJEXT
  635. EXEEXT
  636. ac_ct_CC
  637. CPPFLAGS
  638. LDFLAGS
  639. CFLAGS
  640. CC
  641. AM_BACKSLASH
  642. AM_DEFAULT_VERBOSITY
  643. AM_DEFAULT_V
  644. AM_V
  645. am__untar
  646. am__tar
  647. AMTAR
  648. am__leading_dot
  649. SET_MAKE
  650. AWK
  651. mkdir_p
  652. MKDIR_P
  653. INSTALL_STRIP_PROGRAM
  654. STRIP
  655. install_sh
  656. MAKEINFO
  657. AUTOHEADER
  658. AUTOMAKE
  659. AUTOCONF
  660. ACLOCAL
  661. VERSION
  662. PACKAGE
  663. CYGPATH_W
  664. am__isrc
  665. INSTALL_DATA
  666. INSTALL_SCRIPT
  667. INSTALL_PROGRAM
  668. target_alias
  669. host_alias
  670. build_alias
  671. LIBS
  672. ECHO_T
  673. ECHO_N
  674. ECHO_C
  675. DEFS
  676. mandir
  677. localedir
  678. libdir
  679. psdir
  680. pdfdir
  681. dvidir
  682. htmldir
  683. infodir
  684. docdir
  685. oldincludedir
  686. includedir
  687. localstatedir
  688. sharedstatedir
  689. sysconfdir
  690. datadir
  691. datarootdir
  692. libexecdir
  693. sbindir
  694. bindir
  695. program_transform_name
  696. prefix
  697. exec_prefix
  698. PACKAGE_URL
  699. PACKAGE_BUGREPORT
  700. PACKAGE_STRING
  701. PACKAGE_VERSION
  702. PACKAGE_TARNAME
  703. PACKAGE_NAME
  704. PATH_SEPARATOR
  705. SHELL'
  706. ac_subst_files=''
  707. ac_user_opts='
  708. enable_option_checking
  709. enable_silent_rules
  710. enable_dependency_tracking
  711. enable_shared
  712. enable_static
  713. with_pic
  714. enable_fast_install
  715. with_aix_soname
  716. with_gnu_ld
  717. with_sysroot
  718. enable_libtool_lock
  719. enable_urandom
  720. enable_windows_cryptoapi
  721. enable_initial_hashtable_order
  722. '
  723. ac_precious_vars='build_alias
  724. host_alias
  725. target_alias
  726. CC
  727. CFLAGS
  728. LDFLAGS
  729. LIBS
  730. CPPFLAGS
  731. LT_SYS_LIBRARY_PATH
  732. CPP'
  733. # Initialize some variables set by options.
  734. ac_init_help=
  735. ac_init_version=false
  736. ac_unrecognized_opts=
  737. ac_unrecognized_sep=
  738. # The variables have the same names as the options, with
  739. # dashes changed to underlines.
  740. cache_file=/dev/null
  741. exec_prefix=NONE
  742. no_create=
  743. no_recursion=
  744. prefix=NONE
  745. program_prefix=NONE
  746. program_suffix=NONE
  747. program_transform_name=s,x,x,
  748. silent=
  749. site=
  750. srcdir=
  751. verbose=
  752. x_includes=NONE
  753. x_libraries=NONE
  754. # Installation directory options.
  755. # These are left unexpanded so users can "make install exec_prefix=/foo"
  756. # and all the variables that are supposed to be based on exec_prefix
  757. # by default will actually change.
  758. # Use braces instead of parens because sh, perl, etc. also accept them.
  759. # (The list follows the same order as the GNU Coding Standards.)
  760. bindir='${exec_prefix}/bin'
  761. sbindir='${exec_prefix}/sbin'
  762. libexecdir='${exec_prefix}/libexec'
  763. datarootdir='${prefix}/share'
  764. datadir='${datarootdir}'
  765. sysconfdir='${prefix}/etc'
  766. sharedstatedir='${prefix}/com'
  767. localstatedir='${prefix}/var'
  768. includedir='${prefix}/include'
  769. oldincludedir='/usr/include'
  770. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  771. infodir='${datarootdir}/info'
  772. htmldir='${docdir}'
  773. dvidir='${docdir}'
  774. pdfdir='${docdir}'
  775. psdir='${docdir}'
  776. libdir='${exec_prefix}/lib'
  777. localedir='${datarootdir}/locale'
  778. mandir='${datarootdir}/man'
  779. ac_prev=
  780. ac_dashdash=
  781. for ac_option
  782. do
  783. # If the previous option needs an argument, assign it.
  784. if test -n "$ac_prev"; then
  785. eval $ac_prev=\$ac_option
  786. ac_prev=
  787. continue
  788. fi
  789. case $ac_option in
  790. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  791. *=) ac_optarg= ;;
  792. *) ac_optarg=yes ;;
  793. esac
  794. # Accept the important Cygnus configure options, so we can diagnose typos.
  795. case $ac_dashdash$ac_option in
  796. --)
  797. ac_dashdash=yes ;;
  798. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  799. ac_prev=bindir ;;
  800. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  801. bindir=$ac_optarg ;;
  802. -build | --build | --buil | --bui | --bu)
  803. ac_prev=build_alias ;;
  804. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  805. build_alias=$ac_optarg ;;
  806. -cache-file | --cache-file | --cache-fil | --cache-fi \
  807. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  808. ac_prev=cache_file ;;
  809. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  810. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  811. cache_file=$ac_optarg ;;
  812. --config-cache | -C)
  813. cache_file=config.cache ;;
  814. -datadir | --datadir | --datadi | --datad)
  815. ac_prev=datadir ;;
  816. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  817. datadir=$ac_optarg ;;
  818. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  819. | --dataroo | --dataro | --datar)
  820. ac_prev=datarootdir ;;
  821. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  822. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  823. datarootdir=$ac_optarg ;;
  824. -disable-* | --disable-*)
  825. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  826. # Reject names that are not valid shell variable names.
  827. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  828. as_fn_error $? "invalid feature name: $ac_useropt"
  829. ac_useropt_orig=$ac_useropt
  830. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  831. case $ac_user_opts in
  832. *"
  833. "enable_$ac_useropt"
  834. "*) ;;
  835. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  836. ac_unrecognized_sep=', ';;
  837. esac
  838. eval enable_$ac_useropt=no ;;
  839. -docdir | --docdir | --docdi | --doc | --do)
  840. ac_prev=docdir ;;
  841. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  842. docdir=$ac_optarg ;;
  843. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  844. ac_prev=dvidir ;;
  845. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  846. dvidir=$ac_optarg ;;
  847. -enable-* | --enable-*)
  848. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  849. # Reject names that are not valid shell variable names.
  850. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  851. as_fn_error $? "invalid feature name: $ac_useropt"
  852. ac_useropt_orig=$ac_useropt
  853. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  854. case $ac_user_opts in
  855. *"
  856. "enable_$ac_useropt"
  857. "*) ;;
  858. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  859. ac_unrecognized_sep=', ';;
  860. esac
  861. eval enable_$ac_useropt=\$ac_optarg ;;
  862. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  863. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  864. | --exec | --exe | --ex)
  865. ac_prev=exec_prefix ;;
  866. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  867. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  868. | --exec=* | --exe=* | --ex=*)
  869. exec_prefix=$ac_optarg ;;
  870. -gas | --gas | --ga | --g)
  871. # Obsolete; use --with-gas.
  872. with_gas=yes ;;
  873. -help | --help | --hel | --he | -h)
  874. ac_init_help=long ;;
  875. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  876. ac_init_help=recursive ;;
  877. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  878. ac_init_help=short ;;
  879. -host | --host | --hos | --ho)
  880. ac_prev=host_alias ;;
  881. -host=* | --host=* | --hos=* | --ho=*)
  882. host_alias=$ac_optarg ;;
  883. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  884. ac_prev=htmldir ;;
  885. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  886. | --ht=*)
  887. htmldir=$ac_optarg ;;
  888. -includedir | --includedir | --includedi | --included | --include \
  889. | --includ | --inclu | --incl | --inc)
  890. ac_prev=includedir ;;
  891. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  892. | --includ=* | --inclu=* | --incl=* | --inc=*)
  893. includedir=$ac_optarg ;;
  894. -infodir | --infodir | --infodi | --infod | --info | --inf)
  895. ac_prev=infodir ;;
  896. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  897. infodir=$ac_optarg ;;
  898. -libdir | --libdir | --libdi | --libd)
  899. ac_prev=libdir ;;
  900. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  901. libdir=$ac_optarg ;;
  902. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  903. | --libexe | --libex | --libe)
  904. ac_prev=libexecdir ;;
  905. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  906. | --libexe=* | --libex=* | --libe=*)
  907. libexecdir=$ac_optarg ;;
  908. -localedir | --localedir | --localedi | --localed | --locale)
  909. ac_prev=localedir ;;
  910. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  911. localedir=$ac_optarg ;;
  912. -localstatedir | --localstatedir | --localstatedi | --localstated \
  913. | --localstate | --localstat | --localsta | --localst | --locals)
  914. ac_prev=localstatedir ;;
  915. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  916. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  917. localstatedir=$ac_optarg ;;
  918. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  919. ac_prev=mandir ;;
  920. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  921. mandir=$ac_optarg ;;
  922. -nfp | --nfp | --nf)
  923. # Obsolete; use --without-fp.
  924. with_fp=no ;;
  925. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  926. | --no-cr | --no-c | -n)
  927. no_create=yes ;;
  928. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  929. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  930. no_recursion=yes ;;
  931. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  932. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  933. | --oldin | --oldi | --old | --ol | --o)
  934. ac_prev=oldincludedir ;;
  935. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  936. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  937. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  938. oldincludedir=$ac_optarg ;;
  939. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  940. ac_prev=prefix ;;
  941. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  942. prefix=$ac_optarg ;;
  943. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  944. | --program-pre | --program-pr | --program-p)
  945. ac_prev=program_prefix ;;
  946. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  947. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  948. program_prefix=$ac_optarg ;;
  949. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  950. | --program-suf | --program-su | --program-s)
  951. ac_prev=program_suffix ;;
  952. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  953. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  954. program_suffix=$ac_optarg ;;
  955. -program-transform-name | --program-transform-name \
  956. | --program-transform-nam | --program-transform-na \
  957. | --program-transform-n | --program-transform- \
  958. | --program-transform | --program-transfor \
  959. | --program-transfo | --program-transf \
  960. | --program-trans | --program-tran \
  961. | --progr-tra | --program-tr | --program-t)
  962. ac_prev=program_transform_name ;;
  963. -program-transform-name=* | --program-transform-name=* \
  964. | --program-transform-nam=* | --program-transform-na=* \
  965. | --program-transform-n=* | --program-transform-=* \
  966. | --program-transform=* | --program-transfor=* \
  967. | --program-transfo=* | --program-transf=* \
  968. | --program-trans=* | --program-tran=* \
  969. | --progr-tra=* | --program-tr=* | --program-t=*)
  970. program_transform_name=$ac_optarg ;;
  971. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  972. ac_prev=pdfdir ;;
  973. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  974. pdfdir=$ac_optarg ;;
  975. -psdir | --psdir | --psdi | --psd | --ps)
  976. ac_prev=psdir ;;
  977. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  978. psdir=$ac_optarg ;;
  979. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  980. | -silent | --silent | --silen | --sile | --sil)
  981. silent=yes ;;
  982. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  983. ac_prev=sbindir ;;
  984. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  985. | --sbi=* | --sb=*)
  986. sbindir=$ac_optarg ;;
  987. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  988. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  989. | --sharedst | --shareds | --shared | --share | --shar \
  990. | --sha | --sh)
  991. ac_prev=sharedstatedir ;;
  992. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  993. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  994. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  995. | --sha=* | --sh=*)
  996. sharedstatedir=$ac_optarg ;;
  997. -site | --site | --sit)
  998. ac_prev=site ;;
  999. -site=* | --site=* | --sit=*)
  1000. site=$ac_optarg ;;
  1001. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1002. ac_prev=srcdir ;;
  1003. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1004. srcdir=$ac_optarg ;;
  1005. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1006. | --syscon | --sysco | --sysc | --sys | --sy)
  1007. ac_prev=sysconfdir ;;
  1008. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1009. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1010. sysconfdir=$ac_optarg ;;
  1011. -target | --target | --targe | --targ | --tar | --ta | --t)
  1012. ac_prev=target_alias ;;
  1013. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1014. target_alias=$ac_optarg ;;
  1015. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1016. verbose=yes ;;
  1017. -version | --version | --versio | --versi | --vers | -V)
  1018. ac_init_version=: ;;
  1019. -with-* | --with-*)
  1020. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1021. # Reject names that are not valid shell variable names.
  1022. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1023. as_fn_error $? "invalid package name: $ac_useropt"
  1024. ac_useropt_orig=$ac_useropt
  1025. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1026. case $ac_user_opts in
  1027. *"
  1028. "with_$ac_useropt"
  1029. "*) ;;
  1030. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1031. ac_unrecognized_sep=', ';;
  1032. esac
  1033. eval with_$ac_useropt=\$ac_optarg ;;
  1034. -without-* | --without-*)
  1035. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1036. # Reject names that are not valid shell variable names.
  1037. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1038. as_fn_error $? "invalid package name: $ac_useropt"
  1039. ac_useropt_orig=$ac_useropt
  1040. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1041. case $ac_user_opts in
  1042. *"
  1043. "with_$ac_useropt"
  1044. "*) ;;
  1045. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1046. ac_unrecognized_sep=', ';;
  1047. esac
  1048. eval with_$ac_useropt=no ;;
  1049. --x)
  1050. # Obsolete; use --with-x.
  1051. with_x=yes ;;
  1052. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1053. | --x-incl | --x-inc | --x-in | --x-i)
  1054. ac_prev=x_includes ;;
  1055. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1056. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1057. x_includes=$ac_optarg ;;
  1058. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1059. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1060. ac_prev=x_libraries ;;
  1061. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1062. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1063. x_libraries=$ac_optarg ;;
  1064. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1065. Try \`$0 --help' for more information"
  1066. ;;
  1067. *=*)
  1068. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1069. # Reject names that are not valid shell variable names.
  1070. case $ac_envvar in #(
  1071. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1072. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1073. esac
  1074. eval $ac_envvar=\$ac_optarg
  1075. export $ac_envvar ;;
  1076. *)
  1077. # FIXME: should be removed in autoconf 3.0.
  1078. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1079. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1080. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1081. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1082. ;;
  1083. esac
  1084. done
  1085. if test -n "$ac_prev"; then
  1086. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1087. as_fn_error $? "missing argument to $ac_option"
  1088. fi
  1089. if test -n "$ac_unrecognized_opts"; then
  1090. case $enable_option_checking in
  1091. no) ;;
  1092. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1093. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1094. esac
  1095. fi
  1096. # Check all directory arguments for consistency.
  1097. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1098. datadir sysconfdir sharedstatedir localstatedir includedir \
  1099. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1100. libdir localedir mandir
  1101. do
  1102. eval ac_val=\$$ac_var
  1103. # Remove trailing slashes.
  1104. case $ac_val in
  1105. */ )
  1106. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1107. eval $ac_var=\$ac_val;;
  1108. esac
  1109. # Be sure to have absolute directory names.
  1110. case $ac_val in
  1111. [\\/$]* | ?:[\\/]* ) continue;;
  1112. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1113. esac
  1114. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1115. done
  1116. # There might be people who depend on the old broken behavior: `$host'
  1117. # used to hold the argument of --host etc.
  1118. # FIXME: To remove some day.
  1119. build=$build_alias
  1120. host=$host_alias
  1121. target=$target_alias
  1122. # FIXME: To remove some day.
  1123. if test "x$host_alias" != x; then
  1124. if test "x$build_alias" = x; then
  1125. cross_compiling=maybe
  1126. elif test "x$build_alias" != "x$host_alias"; then
  1127. cross_compiling=yes
  1128. fi
  1129. fi
  1130. ac_tool_prefix=
  1131. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1132. test "$silent" = yes && exec 6>/dev/null
  1133. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1134. ac_ls_di=`ls -di .` &&
  1135. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1136. as_fn_error $? "working directory cannot be determined"
  1137. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1138. as_fn_error $? "pwd does not report name of working directory"
  1139. # Find the source files, if location was not specified.
  1140. if test -z "$srcdir"; then
  1141. ac_srcdir_defaulted=yes
  1142. # Try the directory containing this script, then the parent directory.
  1143. ac_confdir=`$as_dirname -- "$as_myself" ||
  1144. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1145. X"$as_myself" : 'X\(//\)[^/]' \| \
  1146. X"$as_myself" : 'X\(//\)$' \| \
  1147. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1148. $as_echo X"$as_myself" |
  1149. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1150. s//\1/
  1151. q
  1152. }
  1153. /^X\(\/\/\)[^/].*/{
  1154. s//\1/
  1155. q
  1156. }
  1157. /^X\(\/\/\)$/{
  1158. s//\1/
  1159. q
  1160. }
  1161. /^X\(\/\).*/{
  1162. s//\1/
  1163. q
  1164. }
  1165. s/.*/./; q'`
  1166. srcdir=$ac_confdir
  1167. if test ! -r "$srcdir/$ac_unique_file"; then
  1168. srcdir=..
  1169. fi
  1170. else
  1171. ac_srcdir_defaulted=no
  1172. fi
  1173. if test ! -r "$srcdir/$ac_unique_file"; then
  1174. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1175. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1176. fi
  1177. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1178. ac_abs_confdir=`(
  1179. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1180. pwd)`
  1181. # When building in place, set srcdir=.
  1182. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1183. srcdir=.
  1184. fi
  1185. # Remove unnecessary trailing slashes from srcdir.
  1186. # Double slashes in file names in object file debugging info
  1187. # mess up M-x gdb in Emacs.
  1188. case $srcdir in
  1189. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1190. esac
  1191. for ac_var in $ac_precious_vars; do
  1192. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1193. eval ac_env_${ac_var}_value=\$${ac_var}
  1194. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1195. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1196. done
  1197. #
  1198. # Report the --help message.
  1199. #
  1200. if test "$ac_init_help" = "long"; then
  1201. # Omit some internal or obsolete options to make the list less imposing.
  1202. # This message is too long to be a string in the A/UX 3.1 sh.
  1203. cat <<_ACEOF
  1204. \`configure' configures jansson 2.10 to adapt to many kinds of systems.
  1205. Usage: $0 [OPTION]... [VAR=VALUE]...
  1206. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1207. VAR=VALUE. See below for descriptions of some of the useful variables.
  1208. Defaults for the options are specified in brackets.
  1209. Configuration:
  1210. -h, --help display this help and exit
  1211. --help=short display options specific to this package
  1212. --help=recursive display the short help of all the included packages
  1213. -V, --version display version information and exit
  1214. -q, --quiet, --silent do not print \`checking ...' messages
  1215. --cache-file=FILE cache test results in FILE [disabled]
  1216. -C, --config-cache alias for \`--cache-file=config.cache'
  1217. -n, --no-create do not create output files
  1218. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1219. Installation directories:
  1220. --prefix=PREFIX install architecture-independent files in PREFIX
  1221. [$ac_default_prefix]
  1222. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1223. [PREFIX]
  1224. By default, \`make install' will install all the files in
  1225. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1226. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1227. for instance \`--prefix=\$HOME'.
  1228. For better control, use the options below.
  1229. Fine tuning of the installation directories:
  1230. --bindir=DIR user executables [EPREFIX/bin]
  1231. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1232. --libexecdir=DIR program executables [EPREFIX/libexec]
  1233. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1234. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1235. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1236. --libdir=DIR object code libraries [EPREFIX/lib]
  1237. --includedir=DIR C header files [PREFIX/include]
  1238. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1239. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1240. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1241. --infodir=DIR info documentation [DATAROOTDIR/info]
  1242. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1243. --mandir=DIR man documentation [DATAROOTDIR/man]
  1244. --docdir=DIR documentation root [DATAROOTDIR/doc/jansson]
  1245. --htmldir=DIR html documentation [DOCDIR]
  1246. --dvidir=DIR dvi documentation [DOCDIR]
  1247. --pdfdir=DIR pdf documentation [DOCDIR]
  1248. --psdir=DIR ps documentation [DOCDIR]
  1249. _ACEOF
  1250. cat <<\_ACEOF
  1251. Program names:
  1252. --program-prefix=PREFIX prepend PREFIX to installed program names
  1253. --program-suffix=SUFFIX append SUFFIX to installed program names
  1254. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1255. System types:
  1256. --build=BUILD configure for building on BUILD [guessed]
  1257. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1258. _ACEOF
  1259. fi
  1260. if test -n "$ac_init_help"; then
  1261. case $ac_init_help in
  1262. short | recursive ) echo "Configuration of jansson 2.10:";;
  1263. esac
  1264. cat <<\_ACEOF
  1265. Optional Features:
  1266. --disable-option-checking ignore unrecognized --enable/--with options
  1267. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1268. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1269. --enable-silent-rules less verbose build output (undo: "make V=1")
  1270. --disable-silent-rules verbose build output (undo: "make V=0")
  1271. --enable-dependency-tracking
  1272. do not reject slow dependency extractors
  1273. --disable-dependency-tracking
  1274. speeds up one-time build
  1275. --enable-shared[=PKGS] build shared libraries [default=yes]
  1276. --enable-static[=PKGS] build static libraries [default=yes]
  1277. --enable-fast-install[=PKGS]
  1278. optimize for fast installation [default=yes]
  1279. --disable-libtool-lock avoid locking (might break parallel builds)
  1280. --disable-urandom Don't use /dev/urandom to seed the hash function
  1281. --disable-windows-cryptoapi
  1282. Don't use CryptGenRandom to seed the hash function
  1283. --enable-initial-hashtable-order=VAL
  1284. Number of buckets new object hashtables contain is 2
  1285. raised to this power. The default is 3, so empty
  1286. hashtables contain 2^3 = 8 buckets.
  1287. Optional Packages:
  1288. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1289. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1290. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1291. both]
  1292. --with-aix-soname=aix|svr4|both
  1293. shared library versioning (aka "SONAME") variant to
  1294. provide on AIX, [default=aix].
  1295. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1296. --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
  1297. compiler's sysroot if not specified).
  1298. Some influential environment variables:
  1299. CC C compiler command
  1300. CFLAGS C compiler flags
  1301. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1302. nonstandard directory <lib dir>
  1303. LIBS libraries to pass to the linker, e.g. -l<library>
  1304. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1305. you have headers in a nonstandard directory <include dir>
  1306. LT_SYS_LIBRARY_PATH
  1307. User-defined run-time library search path.
  1308. CPP C preprocessor
  1309. Use these variables to override the choices made by `configure' or to help
  1310. it to find libraries and programs with nonstandard names/locations.
  1311. Report bugs to <petri@digip.org>.
  1312. _ACEOF
  1313. ac_status=$?
  1314. fi
  1315. if test "$ac_init_help" = "recursive"; then
  1316. # If there are subdirs, report their specific --help.
  1317. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1318. test -d "$ac_dir" ||
  1319. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1320. continue
  1321. ac_builddir=.
  1322. case "$ac_dir" in
  1323. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1324. *)
  1325. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1326. # A ".." for each directory in $ac_dir_suffix.
  1327. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1328. case $ac_top_builddir_sub in
  1329. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1330. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1331. esac ;;
  1332. esac
  1333. ac_abs_top_builddir=$ac_pwd
  1334. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1335. # for backward compatibility:
  1336. ac_top_builddir=$ac_top_build_prefix
  1337. case $srcdir in
  1338. .) # We are building in place.
  1339. ac_srcdir=.
  1340. ac_top_srcdir=$ac_top_builddir_sub
  1341. ac_abs_top_srcdir=$ac_pwd ;;
  1342. [\\/]* | ?:[\\/]* ) # Absolute name.
  1343. ac_srcdir=$srcdir$ac_dir_suffix;
  1344. ac_top_srcdir=$srcdir
  1345. ac_abs_top_srcdir=$srcdir ;;
  1346. *) # Relative name.
  1347. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1348. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1349. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1350. esac
  1351. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1352. cd "$ac_dir" || { ac_status=$?; continue; }
  1353. # Check for guested configure.
  1354. if test -f "$ac_srcdir/configure.gnu"; then
  1355. echo &&
  1356. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1357. elif test -f "$ac_srcdir/configure"; then
  1358. echo &&
  1359. $SHELL "$ac_srcdir/configure" --help=recursive
  1360. else
  1361. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1362. fi || ac_status=$?
  1363. cd "$ac_pwd" || { ac_status=$?; break; }
  1364. done
  1365. fi
  1366. test -n "$ac_init_help" && exit $ac_status
  1367. if $ac_init_version; then
  1368. cat <<\_ACEOF
  1369. jansson configure 2.10
  1370. generated by GNU Autoconf 2.69
  1371. Copyright (C) 2012 Free Software Foundation, Inc.
  1372. This configure script is free software; the Free Software Foundation
  1373. gives unlimited permission to copy, distribute and modify it.
  1374. _ACEOF
  1375. exit
  1376. fi
  1377. ## ------------------------ ##
  1378. ## Autoconf initialization. ##
  1379. ## ------------------------ ##
  1380. # ac_fn_c_try_compile LINENO
  1381. # --------------------------
  1382. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1383. ac_fn_c_try_compile ()
  1384. {
  1385. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1386. rm -f conftest.$ac_objext
  1387. if { { ac_try="$ac_compile"
  1388. case "(($ac_try" in
  1389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1390. *) ac_try_echo=$ac_try;;
  1391. esac
  1392. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1393. $as_echo "$ac_try_echo"; } >&5
  1394. (eval "$ac_compile") 2>conftest.err
  1395. ac_status=$?
  1396. if test -s conftest.err; then
  1397. grep -v '^ *+' conftest.err >conftest.er1
  1398. cat conftest.er1 >&5
  1399. mv -f conftest.er1 conftest.err
  1400. fi
  1401. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1402. test $ac_status = 0; } && {
  1403. test -z "$ac_c_werror_flag" ||
  1404. test ! -s conftest.err
  1405. } && test -s conftest.$ac_objext; then :
  1406. ac_retval=0
  1407. else
  1408. $as_echo "$as_me: failed program was:" >&5
  1409. sed 's/^/| /' conftest.$ac_ext >&5
  1410. ac_retval=1
  1411. fi
  1412. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1413. as_fn_set_status $ac_retval
  1414. } # ac_fn_c_try_compile
  1415. # ac_fn_c_try_link LINENO
  1416. # -----------------------
  1417. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1418. ac_fn_c_try_link ()
  1419. {
  1420. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1421. rm -f conftest.$ac_objext conftest$ac_exeext
  1422. if { { ac_try="$ac_link"
  1423. case "(($ac_try" in
  1424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1425. *) ac_try_echo=$ac_try;;
  1426. esac
  1427. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1428. $as_echo "$ac_try_echo"; } >&5
  1429. (eval "$ac_link") 2>conftest.err
  1430. ac_status=$?
  1431. if test -s conftest.err; then
  1432. grep -v '^ *+' conftest.err >conftest.er1
  1433. cat conftest.er1 >&5
  1434. mv -f conftest.er1 conftest.err
  1435. fi
  1436. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1437. test $ac_status = 0; } && {
  1438. test -z "$ac_c_werror_flag" ||
  1439. test ! -s conftest.err
  1440. } && test -s conftest$ac_exeext && {
  1441. test "$cross_compiling" = yes ||
  1442. test -x conftest$ac_exeext
  1443. }; then :
  1444. ac_retval=0
  1445. else
  1446. $as_echo "$as_me: failed program was:" >&5
  1447. sed 's/^/| /' conftest.$ac_ext >&5
  1448. ac_retval=1
  1449. fi
  1450. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1451. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1452. # interfere with the next link command; also delete a directory that is
  1453. # left behind by Apple's compiler. We do this before executing the actions.
  1454. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1455. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1456. as_fn_set_status $ac_retval
  1457. } # ac_fn_c_try_link
  1458. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1459. # -------------------------------------------------------
  1460. # Tests whether HEADER exists and can be compiled using the include files in
  1461. # INCLUDES, setting the cache variable VAR accordingly.
  1462. ac_fn_c_check_header_compile ()
  1463. {
  1464. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1466. $as_echo_n "checking for $2... " >&6; }
  1467. if eval \${$3+:} false; then :
  1468. $as_echo_n "(cached) " >&6
  1469. else
  1470. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1471. /* end confdefs.h. */
  1472. $4
  1473. #include <$2>
  1474. _ACEOF
  1475. if ac_fn_c_try_compile "$LINENO"; then :
  1476. eval "$3=yes"
  1477. else
  1478. eval "$3=no"
  1479. fi
  1480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1481. fi
  1482. eval ac_res=\$$3
  1483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1484. $as_echo "$ac_res" >&6; }
  1485. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1486. } # ac_fn_c_check_header_compile
  1487. # ac_fn_c_try_cpp LINENO
  1488. # ----------------------
  1489. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1490. ac_fn_c_try_cpp ()
  1491. {
  1492. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1493. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1494. case "(($ac_try" in
  1495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1496. *) ac_try_echo=$ac_try;;
  1497. esac
  1498. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1499. $as_echo "$ac_try_echo"; } >&5
  1500. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1501. ac_status=$?
  1502. if test -s conftest.err; then
  1503. grep -v '^ *+' conftest.err >conftest.er1
  1504. cat conftest.er1 >&5
  1505. mv -f conftest.er1 conftest.err
  1506. fi
  1507. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1508. test $ac_status = 0; } > conftest.i && {
  1509. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1510. test ! -s conftest.err
  1511. }; then :
  1512. ac_retval=0
  1513. else
  1514. $as_echo "$as_me: failed program was:" >&5
  1515. sed 's/^/| /' conftest.$ac_ext >&5
  1516. ac_retval=1
  1517. fi
  1518. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1519. as_fn_set_status $ac_retval
  1520. } # ac_fn_c_try_cpp
  1521. # ac_fn_c_try_run LINENO
  1522. # ----------------------
  1523. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1524. # that executables *can* be run.
  1525. ac_fn_c_try_run ()
  1526. {
  1527. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1528. if { { ac_try="$ac_link"
  1529. case "(($ac_try" in
  1530. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1531. *) ac_try_echo=$ac_try;;
  1532. esac
  1533. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1534. $as_echo "$ac_try_echo"; } >&5
  1535. (eval "$ac_link") 2>&5
  1536. ac_status=$?
  1537. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1538. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  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_try") 2>&5
  1546. ac_status=$?
  1547. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1548. test $ac_status = 0; }; }; then :
  1549. ac_retval=0
  1550. else
  1551. $as_echo "$as_me: program exited with status $ac_status" >&5
  1552. $as_echo "$as_me: failed program was:" >&5
  1553. sed 's/^/| /' conftest.$ac_ext >&5
  1554. ac_retval=$ac_status
  1555. fi
  1556. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1557. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1558. as_fn_set_status $ac_retval
  1559. } # ac_fn_c_try_run
  1560. # ac_fn_c_check_func LINENO FUNC VAR
  1561. # ----------------------------------
  1562. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1563. ac_fn_c_check_func ()
  1564. {
  1565. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1567. $as_echo_n "checking for $2... " >&6; }
  1568. if eval \${$3+:} false; then :
  1569. $as_echo_n "(cached) " >&6
  1570. else
  1571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1572. /* end confdefs.h. */
  1573. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1574. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1575. #define $2 innocuous_$2
  1576. /* System header to define __stub macros and hopefully few prototypes,
  1577. which can conflict with char $2 (); below.
  1578. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1579. <limits.h> exists even on freestanding compilers. */
  1580. #ifdef __STDC__
  1581. # include <limits.h>
  1582. #else
  1583. # include <assert.h>
  1584. #endif
  1585. #undef $2
  1586. /* Override any GCC internal prototype to avoid an error.
  1587. Use char because int might match the return type of a GCC
  1588. builtin and then its argument prototype would still apply. */
  1589. #ifdef __cplusplus
  1590. extern "C"
  1591. #endif
  1592. char $2 ();
  1593. /* The GNU C library defines this for functions which it implements
  1594. to always fail with ENOSYS. Some functions are actually named
  1595. something starting with __ and the normal name is an alias. */
  1596. #if defined __stub_$2 || defined __stub___$2
  1597. choke me
  1598. #endif
  1599. int
  1600. main ()
  1601. {
  1602. return $2 ();
  1603. ;
  1604. return 0;
  1605. }
  1606. _ACEOF
  1607. if ac_fn_c_try_link "$LINENO"; then :
  1608. eval "$3=yes"
  1609. else
  1610. eval "$3=no"
  1611. fi
  1612. rm -f core conftest.err conftest.$ac_objext \
  1613. conftest$ac_exeext conftest.$ac_ext
  1614. fi
  1615. eval ac_res=\$$3
  1616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1617. $as_echo "$ac_res" >&6; }
  1618. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1619. } # ac_fn_c_check_func
  1620. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1621. # -------------------------------------------------------
  1622. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1623. # the include files in INCLUDES and setting the cache variable VAR
  1624. # accordingly.
  1625. ac_fn_c_check_header_mongrel ()
  1626. {
  1627. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1628. if eval \${$3+:} false; then :
  1629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1630. $as_echo_n "checking for $2... " >&6; }
  1631. if eval \${$3+:} false; then :
  1632. $as_echo_n "(cached) " >&6
  1633. fi
  1634. eval ac_res=\$$3
  1635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1636. $as_echo "$ac_res" >&6; }
  1637. else
  1638. # Is the header compilable?
  1639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1640. $as_echo_n "checking $2 usability... " >&6; }
  1641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1642. /* end confdefs.h. */
  1643. $4
  1644. #include <$2>
  1645. _ACEOF
  1646. if ac_fn_c_try_compile "$LINENO"; then :
  1647. ac_header_compiler=yes
  1648. else
  1649. ac_header_compiler=no
  1650. fi
  1651. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1653. $as_echo "$ac_header_compiler" >&6; }
  1654. # Is the header present?
  1655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1656. $as_echo_n "checking $2 presence... " >&6; }
  1657. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1658. /* end confdefs.h. */
  1659. #include <$2>
  1660. _ACEOF
  1661. if ac_fn_c_try_cpp "$LINENO"; then :
  1662. ac_header_preproc=yes
  1663. else
  1664. ac_header_preproc=no
  1665. fi
  1666. rm -f conftest.err conftest.i conftest.$ac_ext
  1667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1668. $as_echo "$ac_header_preproc" >&6; }
  1669. # So? What about this header?
  1670. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1671. yes:no: )
  1672. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1673. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1674. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1675. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1676. ;;
  1677. no:yes:* )
  1678. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1679. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1680. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1681. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1682. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1683. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1684. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1685. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1686. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1687. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1688. ( $as_echo "## ------------------------------ ##
  1689. ## Report this to petri@digip.org ##
  1690. ## ------------------------------ ##"
  1691. ) | sed "s/^/$as_me: WARNING: /" >&2
  1692. ;;
  1693. esac
  1694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1695. $as_echo_n "checking for $2... " >&6; }
  1696. if eval \${$3+:} false; then :
  1697. $as_echo_n "(cached) " >&6
  1698. else
  1699. eval "$3=\$ac_header_compiler"
  1700. fi
  1701. eval ac_res=\$$3
  1702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1703. $as_echo "$ac_res" >&6; }
  1704. fi
  1705. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1706. } # ac_fn_c_check_header_mongrel
  1707. # ac_fn_c_find_intX_t LINENO BITS VAR
  1708. # -----------------------------------
  1709. # Finds a signed integer type with width BITS, setting cache variable VAR
  1710. # accordingly.
  1711. ac_fn_c_find_intX_t ()
  1712. {
  1713. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1715. $as_echo_n "checking for int$2_t... " >&6; }
  1716. if eval \${$3+:} false; then :
  1717. $as_echo_n "(cached) " >&6
  1718. else
  1719. eval "$3=no"
  1720. # Order is important - never check a type that is potentially smaller
  1721. # than half of the expected target width.
  1722. for ac_type in int$2_t 'int' 'long int' \
  1723. 'long long int' 'short int' 'signed char'; do
  1724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1725. /* end confdefs.h. */
  1726. $ac_includes_default
  1727. enum { N = $2 / 2 - 1 };
  1728. int
  1729. main ()
  1730. {
  1731. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1732. test_array [0] = 0;
  1733. return test_array [0];
  1734. ;
  1735. return 0;
  1736. }
  1737. _ACEOF
  1738. if ac_fn_c_try_compile "$LINENO"; then :
  1739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1740. /* end confdefs.h. */
  1741. $ac_includes_default
  1742. enum { N = $2 / 2 - 1 };
  1743. int
  1744. main ()
  1745. {
  1746. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1747. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1748. test_array [0] = 0;
  1749. return test_array [0];
  1750. ;
  1751. return 0;
  1752. }
  1753. _ACEOF
  1754. if ac_fn_c_try_compile "$LINENO"; then :
  1755. else
  1756. case $ac_type in #(
  1757. int$2_t) :
  1758. eval "$3=yes" ;; #(
  1759. *) :
  1760. eval "$3=\$ac_type" ;;
  1761. esac
  1762. fi
  1763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1764. fi
  1765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1766. if eval test \"x\$"$3"\" = x"no"; then :
  1767. else
  1768. break
  1769. fi
  1770. done
  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; ${as_lineno_stack:+:} unset as_lineno
  1776. } # ac_fn_c_find_intX_t
  1777. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1778. # ------------------------------------
  1779. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1780. # accordingly.
  1781. ac_fn_c_find_uintX_t ()
  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 uint$2_t" >&5
  1785. $as_echo_n "checking for uint$2_t... " >&6; }
  1786. if eval \${$3+:} false; then :
  1787. $as_echo_n "(cached) " >&6
  1788. else
  1789. eval "$3=no"
  1790. # Order is important - never check a type that is potentially smaller
  1791. # than half of the expected target width.
  1792. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1793. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1795. /* end confdefs.h. */
  1796. $ac_includes_default
  1797. int
  1798. main ()
  1799. {
  1800. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1801. test_array [0] = 0;
  1802. return test_array [0];
  1803. ;
  1804. return 0;
  1805. }
  1806. _ACEOF
  1807. if ac_fn_c_try_compile "$LINENO"; then :
  1808. case $ac_type in #(
  1809. uint$2_t) :
  1810. eval "$3=yes" ;; #(
  1811. *) :
  1812. eval "$3=\$ac_type" ;;
  1813. esac
  1814. fi
  1815. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1816. if eval test \"x\$"$3"\" = x"no"; then :
  1817. else
  1818. break
  1819. fi
  1820. done
  1821. fi
  1822. eval ac_res=\$$3
  1823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1824. $as_echo "$ac_res" >&6; }
  1825. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1826. } # ac_fn_c_find_uintX_t
  1827. cat >config.log <<_ACEOF
  1828. This file contains any messages produced by compilers while
  1829. running configure, to aid debugging if configure makes a mistake.
  1830. It was created by jansson $as_me 2.10, which was
  1831. generated by GNU Autoconf 2.69. Invocation command line was
  1832. $ $0 $@
  1833. _ACEOF
  1834. exec 5>>config.log
  1835. {
  1836. cat <<_ASUNAME
  1837. ## --------- ##
  1838. ## Platform. ##
  1839. ## --------- ##
  1840. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1841. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1842. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1843. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1844. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1845. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1846. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1847. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1848. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1849. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1850. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1851. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1852. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1853. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1854. _ASUNAME
  1855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1856. for as_dir in $PATH
  1857. do
  1858. IFS=$as_save_IFS
  1859. test -z "$as_dir" && as_dir=.
  1860. $as_echo "PATH: $as_dir"
  1861. done
  1862. IFS=$as_save_IFS
  1863. } >&5
  1864. cat >&5 <<_ACEOF
  1865. ## ----------- ##
  1866. ## Core tests. ##
  1867. ## ----------- ##
  1868. _ACEOF
  1869. # Keep a trace of the command line.
  1870. # Strip out --no-create and --no-recursion so they do not pile up.
  1871. # Strip out --silent because we don't want to record it for future runs.
  1872. # Also quote any args containing shell meta-characters.
  1873. # Make two passes to allow for proper duplicate-argument suppression.
  1874. ac_configure_args=
  1875. ac_configure_args0=
  1876. ac_configure_args1=
  1877. ac_must_keep_next=false
  1878. for ac_pass in 1 2
  1879. do
  1880. for ac_arg
  1881. do
  1882. case $ac_arg in
  1883. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1884. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1885. | -silent | --silent | --silen | --sile | --sil)
  1886. continue ;;
  1887. *\'*)
  1888. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1889. esac
  1890. case $ac_pass in
  1891. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1892. 2)
  1893. as_fn_append ac_configure_args1 " '$ac_arg'"
  1894. if test $ac_must_keep_next = true; then
  1895. ac_must_keep_next=false # Got value, back to normal.
  1896. else
  1897. case $ac_arg in
  1898. *=* | --config-cache | -C | -disable-* | --disable-* \
  1899. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1900. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1901. | -with-* | --with-* | -without-* | --without-* | --x)
  1902. case "$ac_configure_args0 " in
  1903. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1904. esac
  1905. ;;
  1906. -* ) ac_must_keep_next=true ;;
  1907. esac
  1908. fi
  1909. as_fn_append ac_configure_args " '$ac_arg'"
  1910. ;;
  1911. esac
  1912. done
  1913. done
  1914. { ac_configure_args0=; unset ac_configure_args0;}
  1915. { ac_configure_args1=; unset ac_configure_args1;}
  1916. # When interrupted or exit'd, cleanup temporary files, and complete
  1917. # config.log. We remove comments because anyway the quotes in there
  1918. # would cause problems or look ugly.
  1919. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1920. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1921. trap 'exit_status=$?
  1922. # Save into config.log some information that might help in debugging.
  1923. {
  1924. echo
  1925. $as_echo "## ---------------- ##
  1926. ## Cache variables. ##
  1927. ## ---------------- ##"
  1928. echo
  1929. # The following way of writing the cache mishandles newlines in values,
  1930. (
  1931. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1932. eval ac_val=\$$ac_var
  1933. case $ac_val in #(
  1934. *${as_nl}*)
  1935. case $ac_var in #(
  1936. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1937. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1938. esac
  1939. case $ac_var in #(
  1940. _ | IFS | as_nl) ;; #(
  1941. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1942. *) { eval $ac_var=; unset $ac_var;} ;;
  1943. esac ;;
  1944. esac
  1945. done
  1946. (set) 2>&1 |
  1947. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1948. *${as_nl}ac_space=\ *)
  1949. sed -n \
  1950. "s/'\''/'\''\\\\'\'''\''/g;
  1951. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1952. ;; #(
  1953. *)
  1954. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1955. ;;
  1956. esac |
  1957. sort
  1958. )
  1959. echo
  1960. $as_echo "## ----------------- ##
  1961. ## Output variables. ##
  1962. ## ----------------- ##"
  1963. echo
  1964. for ac_var in $ac_subst_vars
  1965. do
  1966. eval ac_val=\$$ac_var
  1967. case $ac_val in
  1968. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1969. esac
  1970. $as_echo "$ac_var='\''$ac_val'\''"
  1971. done | sort
  1972. echo
  1973. if test -n "$ac_subst_files"; then
  1974. $as_echo "## ------------------- ##
  1975. ## File substitutions. ##
  1976. ## ------------------- ##"
  1977. echo
  1978. for ac_var in $ac_subst_files
  1979. do
  1980. eval ac_val=\$$ac_var
  1981. case $ac_val in
  1982. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1983. esac
  1984. $as_echo "$ac_var='\''$ac_val'\''"
  1985. done | sort
  1986. echo
  1987. fi
  1988. if test -s confdefs.h; then
  1989. $as_echo "## ----------- ##
  1990. ## confdefs.h. ##
  1991. ## ----------- ##"
  1992. echo
  1993. cat confdefs.h
  1994. echo
  1995. fi
  1996. test "$ac_signal" != 0 &&
  1997. $as_echo "$as_me: caught signal $ac_signal"
  1998. $as_echo "$as_me: exit $exit_status"
  1999. } >&5
  2000. rm -f core *.core core.conftest.* &&
  2001. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2002. exit $exit_status
  2003. ' 0
  2004. for ac_signal in 1 2 13 15; do
  2005. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2006. done
  2007. ac_signal=0
  2008. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2009. rm -f -r conftest* confdefs.h
  2010. $as_echo "/* confdefs.h */" > confdefs.h
  2011. # Predefined preprocessor variables.
  2012. cat >>confdefs.h <<_ACEOF
  2013. #define PACKAGE_NAME "$PACKAGE_NAME"
  2014. _ACEOF
  2015. cat >>confdefs.h <<_ACEOF
  2016. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2017. _ACEOF
  2018. cat >>confdefs.h <<_ACEOF
  2019. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2020. _ACEOF
  2021. cat >>confdefs.h <<_ACEOF
  2022. #define PACKAGE_STRING "$PACKAGE_STRING"
  2023. _ACEOF
  2024. cat >>confdefs.h <<_ACEOF
  2025. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2026. _ACEOF
  2027. cat >>confdefs.h <<_ACEOF
  2028. #define PACKAGE_URL "$PACKAGE_URL"
  2029. _ACEOF
  2030. # Let the site file select an alternate cache file if it wants to.
  2031. # Prefer an explicitly selected file to automatically selected ones.
  2032. ac_site_file1=NONE
  2033. ac_site_file2=NONE
  2034. if test -n "$CONFIG_SITE"; then
  2035. # We do not want a PATH search for config.site.
  2036. case $CONFIG_SITE in #((
  2037. -*) ac_site_file1=./$CONFIG_SITE;;
  2038. */*) ac_site_file1=$CONFIG_SITE;;
  2039. *) ac_site_file1=./$CONFIG_SITE;;
  2040. esac
  2041. elif test "x$prefix" != xNONE; then
  2042. ac_site_file1=$prefix/share/config.site
  2043. ac_site_file2=$prefix/etc/config.site
  2044. else
  2045. ac_site_file1=$ac_default_prefix/share/config.site
  2046. ac_site_file2=$ac_default_prefix/etc/config.site
  2047. fi
  2048. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2049. do
  2050. test "x$ac_site_file" = xNONE && continue
  2051. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2052. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2053. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2054. sed 's/^/| /' "$ac_site_file" >&5
  2055. . "$ac_site_file" \
  2056. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2057. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2058. as_fn_error $? "failed to load site script $ac_site_file
  2059. See \`config.log' for more details" "$LINENO" 5; }
  2060. fi
  2061. done
  2062. if test -r "$cache_file"; then
  2063. # Some versions of bash will fail to source /dev/null (special files
  2064. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2065. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2066. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2067. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2068. case $cache_file in
  2069. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2070. *) . "./$cache_file";;
  2071. esac
  2072. fi
  2073. else
  2074. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2075. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2076. >$cache_file
  2077. fi
  2078. # Check that the precious variables saved in the cache have kept the same
  2079. # value.
  2080. ac_cache_corrupted=false
  2081. for ac_var in $ac_precious_vars; do
  2082. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2083. eval ac_new_set=\$ac_env_${ac_var}_set
  2084. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2085. eval ac_new_val=\$ac_env_${ac_var}_value
  2086. case $ac_old_set,$ac_new_set in
  2087. set,)
  2088. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2089. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2090. ac_cache_corrupted=: ;;
  2091. ,set)
  2092. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2093. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2094. ac_cache_corrupted=: ;;
  2095. ,);;
  2096. *)
  2097. if test "x$ac_old_val" != "x$ac_new_val"; then
  2098. # differences in whitespace do not lead to failure.
  2099. ac_old_val_w=`echo x $ac_old_val`
  2100. ac_new_val_w=`echo x $ac_new_val`
  2101. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2102. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2103. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2104. ac_cache_corrupted=:
  2105. else
  2106. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2107. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2108. eval $ac_var=\$ac_old_val
  2109. fi
  2110. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2111. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2112. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2113. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2114. fi;;
  2115. esac
  2116. # Pass precious variables to config.status.
  2117. if test "$ac_new_set" = set; then
  2118. case $ac_new_val in
  2119. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2120. *) ac_arg=$ac_var=$ac_new_val ;;
  2121. esac
  2122. case " $ac_configure_args " in
  2123. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2124. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2125. esac
  2126. fi
  2127. done
  2128. if $ac_cache_corrupted; then
  2129. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2130. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2131. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2132. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2133. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2134. fi
  2135. ## -------------------- ##
  2136. ## Main body of script. ##
  2137. ## -------------------- ##
  2138. ac_ext=c
  2139. ac_cpp='$CPP $CPPFLAGS'
  2140. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2141. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2142. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2143. ac_aux_dir=
  2144. for ac_dir in . "$srcdir"/.; do
  2145. if test -f "$ac_dir/install-sh"; then
  2146. ac_aux_dir=$ac_dir
  2147. ac_install_sh="$ac_aux_dir/install-sh -c"
  2148. break
  2149. elif test -f "$ac_dir/install.sh"; then
  2150. ac_aux_dir=$ac_dir
  2151. ac_install_sh="$ac_aux_dir/install.sh -c"
  2152. break
  2153. elif test -f "$ac_dir/shtool"; then
  2154. ac_aux_dir=$ac_dir
  2155. ac_install_sh="$ac_aux_dir/shtool install -c"
  2156. break
  2157. fi
  2158. done
  2159. if test -z "$ac_aux_dir"; then
  2160. as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
  2161. fi
  2162. # These three variables are undocumented and unsupported,
  2163. # and are intended to be withdrawn in a future Autoconf release.
  2164. # They can cause serious problems if a builder's source tree is in a directory
  2165. # whose full name contains unusual characters.
  2166. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2167. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2168. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2169. am__api_version='1.15'
  2170. # Find a good install program. We prefer a C program (faster),
  2171. # so one script is as good as another. But avoid the broken or
  2172. # incompatible versions:
  2173. # SysV /etc/install, /usr/sbin/install
  2174. # SunOS /usr/etc/install
  2175. # IRIX /sbin/install
  2176. # AIX /bin/install
  2177. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2178. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2179. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2180. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2181. # OS/2's system install, which has a completely different semantic
  2182. # ./install, which can be erroneously created by make from ./install.sh.
  2183. # Reject install programs that cannot install multiple files.
  2184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2185. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2186. if test -z "$INSTALL"; then
  2187. if ${ac_cv_path_install+:} false; then :
  2188. $as_echo_n "(cached) " >&6
  2189. else
  2190. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2191. for as_dir in $PATH
  2192. do
  2193. IFS=$as_save_IFS
  2194. test -z "$as_dir" && as_dir=.
  2195. # Account for people who put trailing slashes in PATH elements.
  2196. case $as_dir/ in #((
  2197. ./ | .// | /[cC]/* | \
  2198. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2199. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2200. /usr/ucb/* ) ;;
  2201. *)
  2202. # OSF1 and SCO ODT 3.0 have their own names for install.
  2203. # Don't use installbsd from OSF since it installs stuff as root
  2204. # by default.
  2205. for ac_prog in ginstall scoinst install; do
  2206. for ac_exec_ext in '' $ac_executable_extensions; do
  2207. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2208. if test $ac_prog = install &&
  2209. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2210. # AIX install. It has an incompatible calling convention.
  2211. :
  2212. elif test $ac_prog = install &&
  2213. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2214. # program-specific install script used by HP pwplus--don't use.
  2215. :
  2216. else
  2217. rm -rf conftest.one conftest.two conftest.dir
  2218. echo one > conftest.one
  2219. echo two > conftest.two
  2220. mkdir conftest.dir
  2221. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2222. test -s conftest.one && test -s conftest.two &&
  2223. test -s conftest.dir/conftest.one &&
  2224. test -s conftest.dir/conftest.two
  2225. then
  2226. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2227. break 3
  2228. fi
  2229. fi
  2230. fi
  2231. done
  2232. done
  2233. ;;
  2234. esac
  2235. done
  2236. IFS=$as_save_IFS
  2237. rm -rf conftest.one conftest.two conftest.dir
  2238. fi
  2239. if test "${ac_cv_path_install+set}" = set; then
  2240. INSTALL=$ac_cv_path_install
  2241. else
  2242. # As a last resort, use the slow shell script. Don't cache a
  2243. # value for INSTALL within a source directory, because that will
  2244. # break other packages using the cache if that directory is
  2245. # removed, or if the value is a relative name.
  2246. INSTALL=$ac_install_sh
  2247. fi
  2248. fi
  2249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2250. $as_echo "$INSTALL" >&6; }
  2251. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2252. # It thinks the first close brace ends the variable substitution.
  2253. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2254. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2255. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2257. $as_echo_n "checking whether build environment is sane... " >&6; }
  2258. # Reject unsafe characters in $srcdir or the absolute working directory
  2259. # name. Accept space and tab only in the latter.
  2260. am_lf='
  2261. '
  2262. case `pwd` in
  2263. *[\\\"\#\$\&\'\`$am_lf]*)
  2264. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2265. esac
  2266. case $srcdir in
  2267. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2268. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2269. esac
  2270. # Do 'set' in a subshell so we don't clobber the current shell's
  2271. # arguments. Must try -L first in case configure is actually a
  2272. # symlink; some systems play weird games with the mod time of symlinks
  2273. # (eg FreeBSD returns the mod time of the symlink's containing
  2274. # directory).
  2275. if (
  2276. am_has_slept=no
  2277. for am_try in 1 2; do
  2278. echo "timestamp, slept: $am_has_slept" > conftest.file
  2279. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2280. if test "$*" = "X"; then
  2281. # -L didn't work.
  2282. set X `ls -t "$srcdir/configure" conftest.file`
  2283. fi
  2284. if test "$*" != "X $srcdir/configure conftest.file" \
  2285. && test "$*" != "X conftest.file $srcdir/configure"; then
  2286. # If neither matched, then we have a broken ls. This can happen
  2287. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2288. # broken ls alias from the environment. This has actually
  2289. # happened. Such a system could not be considered "sane".
  2290. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2291. alias in your environment" "$LINENO" 5
  2292. fi
  2293. if test "$2" = conftest.file || test $am_try -eq 2; then
  2294. break
  2295. fi
  2296. # Just in case.
  2297. sleep 1
  2298. am_has_slept=yes
  2299. done
  2300. test "$2" = conftest.file
  2301. )
  2302. then
  2303. # Ok.
  2304. :
  2305. else
  2306. as_fn_error $? "newly created file is older than distributed files!
  2307. Check your system clock" "$LINENO" 5
  2308. fi
  2309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2310. $as_echo "yes" >&6; }
  2311. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2312. # generated files are strictly newer.
  2313. am_sleep_pid=
  2314. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2315. ( sleep 1 ) &
  2316. am_sleep_pid=$!
  2317. fi
  2318. rm -f conftest.file
  2319. test "$program_prefix" != NONE &&
  2320. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2321. # Use a double $ so make ignores it.
  2322. test "$program_suffix" != NONE &&
  2323. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2324. # Double any \ or $.
  2325. # By default was `s,x,x', remove it if useless.
  2326. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2327. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2328. # Expand $ac_aux_dir to an absolute path.
  2329. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2330. if test x"${MISSING+set}" != xset; then
  2331. case $am_aux_dir in
  2332. *\ * | *\ *)
  2333. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2334. *)
  2335. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2336. esac
  2337. fi
  2338. # Use eval to expand $SHELL
  2339. if eval "$MISSING --is-lightweight"; then
  2340. am_missing_run="$MISSING "
  2341. else
  2342. am_missing_run=
  2343. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2344. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2345. fi
  2346. if test x"${install_sh+set}" != xset; then
  2347. case $am_aux_dir in
  2348. *\ * | *\ *)
  2349. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2350. *)
  2351. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2352. esac
  2353. fi
  2354. # Installed binaries are usually stripped using 'strip' when the user
  2355. # run "make install-strip". However 'strip' might not be the right
  2356. # tool to use in cross-compilation environments, therefore Automake
  2357. # will honor the 'STRIP' environment variable to overrule this program.
  2358. if test "$cross_compiling" != no; then
  2359. if test -n "$ac_tool_prefix"; then
  2360. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2361. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2363. $as_echo_n "checking for $ac_word... " >&6; }
  2364. if ${ac_cv_prog_STRIP+:} false; then :
  2365. $as_echo_n "(cached) " >&6
  2366. else
  2367. if test -n "$STRIP"; then
  2368. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2369. else
  2370. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2371. for as_dir in $PATH
  2372. do
  2373. IFS=$as_save_IFS
  2374. test -z "$as_dir" && as_dir=.
  2375. for ac_exec_ext in '' $ac_executable_extensions; do
  2376. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2377. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2378. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2379. break 2
  2380. fi
  2381. done
  2382. done
  2383. IFS=$as_save_IFS
  2384. fi
  2385. fi
  2386. STRIP=$ac_cv_prog_STRIP
  2387. if test -n "$STRIP"; then
  2388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2389. $as_echo "$STRIP" >&6; }
  2390. else
  2391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2392. $as_echo "no" >&6; }
  2393. fi
  2394. fi
  2395. if test -z "$ac_cv_prog_STRIP"; then
  2396. ac_ct_STRIP=$STRIP
  2397. # Extract the first word of "strip", so it can be a program name with args.
  2398. set dummy strip; ac_word=$2
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2400. $as_echo_n "checking for $ac_word... " >&6; }
  2401. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2402. $as_echo_n "(cached) " >&6
  2403. else
  2404. if test -n "$ac_ct_STRIP"; then
  2405. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2406. else
  2407. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2408. for as_dir in $PATH
  2409. do
  2410. IFS=$as_save_IFS
  2411. test -z "$as_dir" && as_dir=.
  2412. for ac_exec_ext in '' $ac_executable_extensions; do
  2413. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2414. ac_cv_prog_ac_ct_STRIP="strip"
  2415. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2416. break 2
  2417. fi
  2418. done
  2419. done
  2420. IFS=$as_save_IFS
  2421. fi
  2422. fi
  2423. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2424. if test -n "$ac_ct_STRIP"; then
  2425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2426. $as_echo "$ac_ct_STRIP" >&6; }
  2427. else
  2428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2429. $as_echo "no" >&6; }
  2430. fi
  2431. if test "x$ac_ct_STRIP" = x; then
  2432. STRIP=":"
  2433. else
  2434. case $cross_compiling:$ac_tool_warned in
  2435. yes:)
  2436. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2437. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2438. ac_tool_warned=yes ;;
  2439. esac
  2440. STRIP=$ac_ct_STRIP
  2441. fi
  2442. else
  2443. STRIP="$ac_cv_prog_STRIP"
  2444. fi
  2445. fi
  2446. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2448. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2449. if test -z "$MKDIR_P"; then
  2450. if ${ac_cv_path_mkdir+:} false; then :
  2451. $as_echo_n "(cached) " >&6
  2452. else
  2453. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2454. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2455. do
  2456. IFS=$as_save_IFS
  2457. test -z "$as_dir" && as_dir=.
  2458. for ac_prog in mkdir gmkdir; do
  2459. for ac_exec_ext in '' $ac_executable_extensions; do
  2460. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2461. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2462. 'mkdir (GNU coreutils) '* | \
  2463. 'mkdir (coreutils) '* | \
  2464. 'mkdir (fileutils) '4.1*)
  2465. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2466. break 3;;
  2467. esac
  2468. done
  2469. done
  2470. done
  2471. IFS=$as_save_IFS
  2472. fi
  2473. test -d ./--version && rmdir ./--version
  2474. if test "${ac_cv_path_mkdir+set}" = set; then
  2475. MKDIR_P="$ac_cv_path_mkdir -p"
  2476. else
  2477. # As a last resort, use the slow shell script. Don't cache a
  2478. # value for MKDIR_P within a source directory, because that will
  2479. # break other packages using the cache if that directory is
  2480. # removed, or if the value is a relative name.
  2481. MKDIR_P="$ac_install_sh -d"
  2482. fi
  2483. fi
  2484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2485. $as_echo "$MKDIR_P" >&6; }
  2486. for ac_prog in gawk mawk nawk awk
  2487. do
  2488. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2489. set dummy $ac_prog; ac_word=$2
  2490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2491. $as_echo_n "checking for $ac_word... " >&6; }
  2492. if ${ac_cv_prog_AWK+:} false; then :
  2493. $as_echo_n "(cached) " >&6
  2494. else
  2495. if test -n "$AWK"; then
  2496. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2497. else
  2498. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2499. for as_dir in $PATH
  2500. do
  2501. IFS=$as_save_IFS
  2502. test -z "$as_dir" && as_dir=.
  2503. for ac_exec_ext in '' $ac_executable_extensions; do
  2504. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2505. ac_cv_prog_AWK="$ac_prog"
  2506. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2507. break 2
  2508. fi
  2509. done
  2510. done
  2511. IFS=$as_save_IFS
  2512. fi
  2513. fi
  2514. AWK=$ac_cv_prog_AWK
  2515. if test -n "$AWK"; then
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2517. $as_echo "$AWK" >&6; }
  2518. else
  2519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2520. $as_echo "no" >&6; }
  2521. fi
  2522. test -n "$AWK" && break
  2523. done
  2524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2525. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2526. set x ${MAKE-make}
  2527. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2528. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2529. $as_echo_n "(cached) " >&6
  2530. else
  2531. cat >conftest.make <<\_ACEOF
  2532. SHELL = /bin/sh
  2533. all:
  2534. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2535. _ACEOF
  2536. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2537. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2538. *@@@%%%=?*=@@@%%%*)
  2539. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2540. *)
  2541. eval ac_cv_prog_make_${ac_make}_set=no;;
  2542. esac
  2543. rm -f conftest.make
  2544. fi
  2545. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2547. $as_echo "yes" >&6; }
  2548. SET_MAKE=
  2549. else
  2550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2551. $as_echo "no" >&6; }
  2552. SET_MAKE="MAKE=${MAKE-make}"
  2553. fi
  2554. rm -rf .tst 2>/dev/null
  2555. mkdir .tst 2>/dev/null
  2556. if test -d .tst; then
  2557. am__leading_dot=.
  2558. else
  2559. am__leading_dot=_
  2560. fi
  2561. rmdir .tst 2>/dev/null
  2562. # Check whether --enable-silent-rules was given.
  2563. if test "${enable_silent_rules+set}" = set; then :
  2564. enableval=$enable_silent_rules;
  2565. fi
  2566. case $enable_silent_rules in # (((
  2567. yes) AM_DEFAULT_VERBOSITY=0;;
  2568. no) AM_DEFAULT_VERBOSITY=1;;
  2569. *) AM_DEFAULT_VERBOSITY=1;;
  2570. esac
  2571. am_make=${MAKE-make}
  2572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2573. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2574. if ${am_cv_make_support_nested_variables+:} false; then :
  2575. $as_echo_n "(cached) " >&6
  2576. else
  2577. if $as_echo 'TRUE=$(BAR$(V))
  2578. BAR0=false
  2579. BAR1=true
  2580. V=1
  2581. am__doit:
  2582. @$(TRUE)
  2583. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2584. am_cv_make_support_nested_variables=yes
  2585. else
  2586. am_cv_make_support_nested_variables=no
  2587. fi
  2588. fi
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2590. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2591. if test $am_cv_make_support_nested_variables = yes; then
  2592. AM_V='$(V)'
  2593. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2594. else
  2595. AM_V=$AM_DEFAULT_VERBOSITY
  2596. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2597. fi
  2598. AM_BACKSLASH='\'
  2599. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2600. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2601. # is not polluted with repeated "-I."
  2602. am__isrc=' -I$(srcdir)'
  2603. # test to see if srcdir already configured
  2604. if test -f $srcdir/config.status; then
  2605. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2606. fi
  2607. fi
  2608. # test whether we have cygpath
  2609. if test -z "$CYGPATH_W"; then
  2610. if (cygpath --version) >/dev/null 2>/dev/null; then
  2611. CYGPATH_W='cygpath -w'
  2612. else
  2613. CYGPATH_W=echo
  2614. fi
  2615. fi
  2616. # Define the identity of the package.
  2617. PACKAGE='jansson'
  2618. VERSION='2.10'
  2619. cat >>confdefs.h <<_ACEOF
  2620. #define PACKAGE "$PACKAGE"
  2621. _ACEOF
  2622. cat >>confdefs.h <<_ACEOF
  2623. #define VERSION "$VERSION"
  2624. _ACEOF
  2625. # Some tools Automake needs.
  2626. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2627. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2628. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2629. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2630. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2631. # For better backward compatibility. To be removed once Automake 1.9.x
  2632. # dies out for good. For more background, see:
  2633. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2634. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2635. mkdir_p='$(MKDIR_P)'
  2636. # We need awk for the "check" target (and possibly the TAP driver). The
  2637. # system "awk" is bad on some platforms.
  2638. # Always define AMTAR for backward compatibility. Yes, it's still used
  2639. # in the wild :-( We should find a proper way to deprecate it ...
  2640. AMTAR='$${TAR-tar}'
  2641. # We'll loop over all known methods to create a tar archive until one works.
  2642. _am_tools='gnutar pax cpio none'
  2643. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2644. # POSIX will say in a future version that running "rm -f" with no argument
  2645. # is OK; and we want to be able to make that assumption in our Makefile
  2646. # recipes. So use an aggressive probe to check that the usage we want is
  2647. # actually supported "in the wild" to an acceptable degree.
  2648. # See automake bug#10828.
  2649. # To make any issue more visible, cause the running configure to be aborted
  2650. # by default if the 'rm' program in use doesn't match our expectations; the
  2651. # user can still override this though.
  2652. if rm -f && rm -fr && rm -rf; then : OK; else
  2653. cat >&2 <<'END'
  2654. Oops!
  2655. Your 'rm' program seems unable to run without file operands specified
  2656. on the command line, even when the '-f' option is present. This is contrary
  2657. to the behaviour of most rm programs out there, and not conforming with
  2658. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2659. Please tell bug-automake@gnu.org about your system, including the value
  2660. of your $PATH and any error possibly output before this message. This
  2661. can help us improve future automake versions.
  2662. END
  2663. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2664. echo 'Configuration will proceed anyway, since you have set the' >&2
  2665. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2666. echo >&2
  2667. else
  2668. cat >&2 <<'END'
  2669. Aborting the configuration process, to ensure you take notice of the issue.
  2670. You can download and install GNU coreutils to get an 'rm' implementation
  2671. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2672. If you want to complete the configuration process using your problematic
  2673. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2674. to "yes", and re-run configure.
  2675. END
  2676. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2677. fi
  2678. fi
  2679. ac_config_headers="$ac_config_headers jansson_private_config.h"
  2680. # Checks for programs.
  2681. ac_ext=c
  2682. ac_cpp='$CPP $CPPFLAGS'
  2683. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2684. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2685. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2686. if test -n "$ac_tool_prefix"; then
  2687. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2688. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2690. $as_echo_n "checking for $ac_word... " >&6; }
  2691. if ${ac_cv_prog_CC+:} false; then :
  2692. $as_echo_n "(cached) " >&6
  2693. else
  2694. if test -n "$CC"; then
  2695. ac_cv_prog_CC="$CC" # Let the user override the test.
  2696. else
  2697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2698. for as_dir in $PATH
  2699. do
  2700. IFS=$as_save_IFS
  2701. test -z "$as_dir" && as_dir=.
  2702. for ac_exec_ext in '' $ac_executable_extensions; do
  2703. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2704. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2705. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2706. break 2
  2707. fi
  2708. done
  2709. done
  2710. IFS=$as_save_IFS
  2711. fi
  2712. fi
  2713. CC=$ac_cv_prog_CC
  2714. if test -n "$CC"; then
  2715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2716. $as_echo "$CC" >&6; }
  2717. else
  2718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2719. $as_echo "no" >&6; }
  2720. fi
  2721. fi
  2722. if test -z "$ac_cv_prog_CC"; then
  2723. ac_ct_CC=$CC
  2724. # Extract the first word of "gcc", so it can be a program name with args.
  2725. set dummy gcc; ac_word=$2
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2727. $as_echo_n "checking for $ac_word... " >&6; }
  2728. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2729. $as_echo_n "(cached) " >&6
  2730. else
  2731. if test -n "$ac_ct_CC"; then
  2732. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2733. else
  2734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2735. for as_dir in $PATH
  2736. do
  2737. IFS=$as_save_IFS
  2738. test -z "$as_dir" && as_dir=.
  2739. for ac_exec_ext in '' $ac_executable_extensions; do
  2740. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2741. ac_cv_prog_ac_ct_CC="gcc"
  2742. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2743. break 2
  2744. fi
  2745. done
  2746. done
  2747. IFS=$as_save_IFS
  2748. fi
  2749. fi
  2750. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2751. if test -n "$ac_ct_CC"; then
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2753. $as_echo "$ac_ct_CC" >&6; }
  2754. else
  2755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2756. $as_echo "no" >&6; }
  2757. fi
  2758. if test "x$ac_ct_CC" = x; then
  2759. CC=""
  2760. else
  2761. case $cross_compiling:$ac_tool_warned in
  2762. yes:)
  2763. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2764. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2765. ac_tool_warned=yes ;;
  2766. esac
  2767. CC=$ac_ct_CC
  2768. fi
  2769. else
  2770. CC="$ac_cv_prog_CC"
  2771. fi
  2772. if test -z "$CC"; then
  2773. if test -n "$ac_tool_prefix"; then
  2774. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2775. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2777. $as_echo_n "checking for $ac_word... " >&6; }
  2778. if ${ac_cv_prog_CC+:} false; then :
  2779. $as_echo_n "(cached) " >&6
  2780. else
  2781. if test -n "$CC"; then
  2782. ac_cv_prog_CC="$CC" # Let the user override the test.
  2783. else
  2784. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2785. for as_dir in $PATH
  2786. do
  2787. IFS=$as_save_IFS
  2788. test -z "$as_dir" && as_dir=.
  2789. for ac_exec_ext in '' $ac_executable_extensions; do
  2790. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2791. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2792. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2793. break 2
  2794. fi
  2795. done
  2796. done
  2797. IFS=$as_save_IFS
  2798. fi
  2799. fi
  2800. CC=$ac_cv_prog_CC
  2801. if test -n "$CC"; then
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2803. $as_echo "$CC" >&6; }
  2804. else
  2805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2806. $as_echo "no" >&6; }
  2807. fi
  2808. fi
  2809. fi
  2810. if test -z "$CC"; then
  2811. # Extract the first word of "cc", so it can be a program name with args.
  2812. set dummy cc; ac_word=$2
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2814. $as_echo_n "checking for $ac_word... " >&6; }
  2815. if ${ac_cv_prog_CC+:} false; then :
  2816. $as_echo_n "(cached) " >&6
  2817. else
  2818. if test -n "$CC"; then
  2819. ac_cv_prog_CC="$CC" # Let the user override the test.
  2820. else
  2821. ac_prog_rejected=no
  2822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2823. for as_dir in $PATH
  2824. do
  2825. IFS=$as_save_IFS
  2826. test -z "$as_dir" && as_dir=.
  2827. for ac_exec_ext in '' $ac_executable_extensions; do
  2828. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2829. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2830. ac_prog_rejected=yes
  2831. continue
  2832. fi
  2833. ac_cv_prog_CC="cc"
  2834. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2835. break 2
  2836. fi
  2837. done
  2838. done
  2839. IFS=$as_save_IFS
  2840. if test $ac_prog_rejected = yes; then
  2841. # We found a bogon in the path, so make sure we never use it.
  2842. set dummy $ac_cv_prog_CC
  2843. shift
  2844. if test $# != 0; then
  2845. # We chose a different compiler from the bogus one.
  2846. # However, it has the same basename, so the bogon will be chosen
  2847. # first if we set CC to just the basename; use the full file name.
  2848. shift
  2849. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2850. fi
  2851. fi
  2852. fi
  2853. fi
  2854. CC=$ac_cv_prog_CC
  2855. if test -n "$CC"; then
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2857. $as_echo "$CC" >&6; }
  2858. else
  2859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2860. $as_echo "no" >&6; }
  2861. fi
  2862. fi
  2863. if test -z "$CC"; then
  2864. if test -n "$ac_tool_prefix"; then
  2865. for ac_prog in cl.exe
  2866. do
  2867. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2868. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2870. $as_echo_n "checking for $ac_word... " >&6; }
  2871. if ${ac_cv_prog_CC+:} false; then :
  2872. $as_echo_n "(cached) " >&6
  2873. else
  2874. if test -n "$CC"; then
  2875. ac_cv_prog_CC="$CC" # Let the user override the test.
  2876. else
  2877. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2878. for as_dir in $PATH
  2879. do
  2880. IFS=$as_save_IFS
  2881. test -z "$as_dir" && as_dir=.
  2882. for ac_exec_ext in '' $ac_executable_extensions; do
  2883. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2884. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2885. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2886. break 2
  2887. fi
  2888. done
  2889. done
  2890. IFS=$as_save_IFS
  2891. fi
  2892. fi
  2893. CC=$ac_cv_prog_CC
  2894. if test -n "$CC"; then
  2895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2896. $as_echo "$CC" >&6; }
  2897. else
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2899. $as_echo "no" >&6; }
  2900. fi
  2901. test -n "$CC" && break
  2902. done
  2903. fi
  2904. if test -z "$CC"; then
  2905. ac_ct_CC=$CC
  2906. for ac_prog in cl.exe
  2907. do
  2908. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2909. set dummy $ac_prog; ac_word=$2
  2910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2911. $as_echo_n "checking for $ac_word... " >&6; }
  2912. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2913. $as_echo_n "(cached) " >&6
  2914. else
  2915. if test -n "$ac_ct_CC"; then
  2916. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2917. else
  2918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2919. for as_dir in $PATH
  2920. do
  2921. IFS=$as_save_IFS
  2922. test -z "$as_dir" && as_dir=.
  2923. for ac_exec_ext in '' $ac_executable_extensions; do
  2924. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2925. ac_cv_prog_ac_ct_CC="$ac_prog"
  2926. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2927. break 2
  2928. fi
  2929. done
  2930. done
  2931. IFS=$as_save_IFS
  2932. fi
  2933. fi
  2934. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2935. if test -n "$ac_ct_CC"; then
  2936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2937. $as_echo "$ac_ct_CC" >&6; }
  2938. else
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2940. $as_echo "no" >&6; }
  2941. fi
  2942. test -n "$ac_ct_CC" && break
  2943. done
  2944. if test "x$ac_ct_CC" = x; then
  2945. CC=""
  2946. else
  2947. case $cross_compiling:$ac_tool_warned in
  2948. yes:)
  2949. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2950. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2951. ac_tool_warned=yes ;;
  2952. esac
  2953. CC=$ac_ct_CC
  2954. fi
  2955. fi
  2956. fi
  2957. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2958. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2959. as_fn_error $? "no acceptable C compiler found in \$PATH
  2960. See \`config.log' for more details" "$LINENO" 5; }
  2961. # Provide some information about the compiler.
  2962. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2963. set X $ac_compile
  2964. ac_compiler=$2
  2965. for ac_option in --version -v -V -qversion; do
  2966. { { ac_try="$ac_compiler $ac_option >&5"
  2967. case "(($ac_try" in
  2968. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2969. *) ac_try_echo=$ac_try;;
  2970. esac
  2971. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2972. $as_echo "$ac_try_echo"; } >&5
  2973. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2974. ac_status=$?
  2975. if test -s conftest.err; then
  2976. sed '10a\
  2977. ... rest of stderr output deleted ...
  2978. 10q' conftest.err >conftest.er1
  2979. cat conftest.er1 >&5
  2980. fi
  2981. rm -f conftest.er1 conftest.err
  2982. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2983. test $ac_status = 0; }
  2984. done
  2985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2986. /* end confdefs.h. */
  2987. int
  2988. main ()
  2989. {
  2990. ;
  2991. return 0;
  2992. }
  2993. _ACEOF
  2994. ac_clean_files_save=$ac_clean_files
  2995. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2996. # Try to create an executable without -o first, disregard a.out.
  2997. # It will help us diagnose broken compilers, and finding out an intuition
  2998. # of exeext.
  2999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3000. $as_echo_n "checking whether the C compiler works... " >&6; }
  3001. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3002. # The possible output files:
  3003. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3004. ac_rmfiles=
  3005. for ac_file in $ac_files
  3006. do
  3007. case $ac_file in
  3008. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3009. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3010. esac
  3011. done
  3012. rm -f $ac_rmfiles
  3013. if { { ac_try="$ac_link_default"
  3014. case "(($ac_try" in
  3015. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3016. *) ac_try_echo=$ac_try;;
  3017. esac
  3018. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3019. $as_echo "$ac_try_echo"; } >&5
  3020. (eval "$ac_link_default") 2>&5
  3021. ac_status=$?
  3022. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3023. test $ac_status = 0; }; then :
  3024. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3025. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3026. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3027. # so that the user can short-circuit this test for compilers unknown to
  3028. # Autoconf.
  3029. for ac_file in $ac_files ''
  3030. do
  3031. test -f "$ac_file" || continue
  3032. case $ac_file in
  3033. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3034. ;;
  3035. [ab].out )
  3036. # We found the default executable, but exeext='' is most
  3037. # certainly right.
  3038. break;;
  3039. *.* )
  3040. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3041. then :; else
  3042. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3043. fi
  3044. # We set ac_cv_exeext here because the later test for it is not
  3045. # safe: cross compilers may not add the suffix if given an `-o'
  3046. # argument, so we may need to know it at that point already.
  3047. # Even if this section looks crufty: it has the advantage of
  3048. # actually working.
  3049. break;;
  3050. * )
  3051. break;;
  3052. esac
  3053. done
  3054. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3055. else
  3056. ac_file=''
  3057. fi
  3058. if test -z "$ac_file"; then :
  3059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3060. $as_echo "no" >&6; }
  3061. $as_echo "$as_me: failed program was:" >&5
  3062. sed 's/^/| /' conftest.$ac_ext >&5
  3063. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3064. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3065. as_fn_error 77 "C compiler cannot create executables
  3066. See \`config.log' for more details" "$LINENO" 5; }
  3067. else
  3068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3069. $as_echo "yes" >&6; }
  3070. fi
  3071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3072. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3074. $as_echo "$ac_file" >&6; }
  3075. ac_exeext=$ac_cv_exeext
  3076. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3077. ac_clean_files=$ac_clean_files_save
  3078. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3079. $as_echo_n "checking for suffix of executables... " >&6; }
  3080. if { { ac_try="$ac_link"
  3081. case "(($ac_try" in
  3082. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3083. *) ac_try_echo=$ac_try;;
  3084. esac
  3085. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3086. $as_echo "$ac_try_echo"; } >&5
  3087. (eval "$ac_link") 2>&5
  3088. ac_status=$?
  3089. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3090. test $ac_status = 0; }; then :
  3091. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3092. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3093. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3094. # `rm'.
  3095. for ac_file in conftest.exe conftest conftest.*; do
  3096. test -f "$ac_file" || continue
  3097. case $ac_file in
  3098. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3099. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3100. break;;
  3101. * ) break;;
  3102. esac
  3103. done
  3104. else
  3105. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3106. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3107. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3108. See \`config.log' for more details" "$LINENO" 5; }
  3109. fi
  3110. rm -f conftest conftest$ac_cv_exeext
  3111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3112. $as_echo "$ac_cv_exeext" >&6; }
  3113. rm -f conftest.$ac_ext
  3114. EXEEXT=$ac_cv_exeext
  3115. ac_exeext=$EXEEXT
  3116. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3117. /* end confdefs.h. */
  3118. #include <stdio.h>
  3119. int
  3120. main ()
  3121. {
  3122. FILE *f = fopen ("conftest.out", "w");
  3123. return ferror (f) || fclose (f) != 0;
  3124. ;
  3125. return 0;
  3126. }
  3127. _ACEOF
  3128. ac_clean_files="$ac_clean_files conftest.out"
  3129. # Check that the compiler produces executables we can run. If not, either
  3130. # the compiler is broken, or we cross compile.
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3132. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3133. if test "$cross_compiling" != yes; then
  3134. { { ac_try="$ac_link"
  3135. case "(($ac_try" in
  3136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3137. *) ac_try_echo=$ac_try;;
  3138. esac
  3139. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3140. $as_echo "$ac_try_echo"; } >&5
  3141. (eval "$ac_link") 2>&5
  3142. ac_status=$?
  3143. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3144. test $ac_status = 0; }
  3145. if { ac_try='./conftest$ac_cv_exeext'
  3146. { { case "(($ac_try" in
  3147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3148. *) ac_try_echo=$ac_try;;
  3149. esac
  3150. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3151. $as_echo "$ac_try_echo"; } >&5
  3152. (eval "$ac_try") 2>&5
  3153. ac_status=$?
  3154. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3155. test $ac_status = 0; }; }; then
  3156. cross_compiling=no
  3157. else
  3158. if test "$cross_compiling" = maybe; then
  3159. cross_compiling=yes
  3160. else
  3161. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3162. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3163. as_fn_error $? "cannot run C compiled programs.
  3164. If you meant to cross compile, use \`--host'.
  3165. See \`config.log' for more details" "$LINENO" 5; }
  3166. fi
  3167. fi
  3168. fi
  3169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3170. $as_echo "$cross_compiling" >&6; }
  3171. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3172. ac_clean_files=$ac_clean_files_save
  3173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3174. $as_echo_n "checking for suffix of object files... " >&6; }
  3175. if ${ac_cv_objext+:} false; then :
  3176. $as_echo_n "(cached) " >&6
  3177. else
  3178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3179. /* end confdefs.h. */
  3180. int
  3181. main ()
  3182. {
  3183. ;
  3184. return 0;
  3185. }
  3186. _ACEOF
  3187. rm -f conftest.o conftest.obj
  3188. if { { ac_try="$ac_compile"
  3189. case "(($ac_try" in
  3190. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3191. *) ac_try_echo=$ac_try;;
  3192. esac
  3193. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3194. $as_echo "$ac_try_echo"; } >&5
  3195. (eval "$ac_compile") 2>&5
  3196. ac_status=$?
  3197. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3198. test $ac_status = 0; }; then :
  3199. for ac_file in conftest.o conftest.obj conftest.*; do
  3200. test -f "$ac_file" || continue;
  3201. case $ac_file in
  3202. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3203. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3204. break;;
  3205. esac
  3206. done
  3207. else
  3208. $as_echo "$as_me: failed program was:" >&5
  3209. sed 's/^/| /' conftest.$ac_ext >&5
  3210. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3211. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3212. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3213. See \`config.log' for more details" "$LINENO" 5; }
  3214. fi
  3215. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3216. fi
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3218. $as_echo "$ac_cv_objext" >&6; }
  3219. OBJEXT=$ac_cv_objext
  3220. ac_objext=$OBJEXT
  3221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3222. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3223. if ${ac_cv_c_compiler_gnu+:} false; then :
  3224. $as_echo_n "(cached) " >&6
  3225. else
  3226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3227. /* end confdefs.h. */
  3228. int
  3229. main ()
  3230. {
  3231. #ifndef __GNUC__
  3232. choke me
  3233. #endif
  3234. ;
  3235. return 0;
  3236. }
  3237. _ACEOF
  3238. if ac_fn_c_try_compile "$LINENO"; then :
  3239. ac_compiler_gnu=yes
  3240. else
  3241. ac_compiler_gnu=no
  3242. fi
  3243. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3244. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3245. fi
  3246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3247. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3248. if test $ac_compiler_gnu = yes; then
  3249. GCC=yes
  3250. else
  3251. GCC=
  3252. fi
  3253. ac_test_CFLAGS=${CFLAGS+set}
  3254. ac_save_CFLAGS=$CFLAGS
  3255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3256. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3257. if ${ac_cv_prog_cc_g+:} false; then :
  3258. $as_echo_n "(cached) " >&6
  3259. else
  3260. ac_save_c_werror_flag=$ac_c_werror_flag
  3261. ac_c_werror_flag=yes
  3262. ac_cv_prog_cc_g=no
  3263. CFLAGS="-g"
  3264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3265. /* end confdefs.h. */
  3266. int
  3267. main ()
  3268. {
  3269. ;
  3270. return 0;
  3271. }
  3272. _ACEOF
  3273. if ac_fn_c_try_compile "$LINENO"; then :
  3274. ac_cv_prog_cc_g=yes
  3275. else
  3276. CFLAGS=""
  3277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3278. /* end confdefs.h. */
  3279. int
  3280. main ()
  3281. {
  3282. ;
  3283. return 0;
  3284. }
  3285. _ACEOF
  3286. if ac_fn_c_try_compile "$LINENO"; then :
  3287. else
  3288. ac_c_werror_flag=$ac_save_c_werror_flag
  3289. CFLAGS="-g"
  3290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3291. /* end confdefs.h. */
  3292. int
  3293. main ()
  3294. {
  3295. ;
  3296. return 0;
  3297. }
  3298. _ACEOF
  3299. if ac_fn_c_try_compile "$LINENO"; then :
  3300. ac_cv_prog_cc_g=yes
  3301. fi
  3302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3303. fi
  3304. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3305. fi
  3306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3307. ac_c_werror_flag=$ac_save_c_werror_flag
  3308. fi
  3309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3310. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3311. if test "$ac_test_CFLAGS" = set; then
  3312. CFLAGS=$ac_save_CFLAGS
  3313. elif test $ac_cv_prog_cc_g = yes; then
  3314. if test "$GCC" = yes; then
  3315. CFLAGS="-g -O2"
  3316. else
  3317. CFLAGS="-g"
  3318. fi
  3319. else
  3320. if test "$GCC" = yes; then
  3321. CFLAGS="-O2"
  3322. else
  3323. CFLAGS=
  3324. fi
  3325. fi
  3326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3327. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3328. if ${ac_cv_prog_cc_c89+:} false; then :
  3329. $as_echo_n "(cached) " >&6
  3330. else
  3331. ac_cv_prog_cc_c89=no
  3332. ac_save_CC=$CC
  3333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3334. /* end confdefs.h. */
  3335. #include <stdarg.h>
  3336. #include <stdio.h>
  3337. struct stat;
  3338. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3339. struct buf { int x; };
  3340. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3341. static char *e (p, i)
  3342. char **p;
  3343. int i;
  3344. {
  3345. return p[i];
  3346. }
  3347. static char *f (char * (*g) (char **, int), char **p, ...)
  3348. {
  3349. char *s;
  3350. va_list v;
  3351. va_start (v,p);
  3352. s = g (p, va_arg (v,int));
  3353. va_end (v);
  3354. return s;
  3355. }
  3356. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3357. function prototypes and stuff, but not '\xHH' hex character constants.
  3358. These don't provoke an error unfortunately, instead are silently treated
  3359. as 'x'. The following induces an error, until -std is added to get
  3360. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3361. array size at least. It's necessary to write '\x00'==0 to get something
  3362. that's true only with -std. */
  3363. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3364. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3365. inside strings and character constants. */
  3366. #define FOO(x) 'x'
  3367. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3368. int test (int i, double x);
  3369. struct s1 {int (*f) (int a);};
  3370. struct s2 {int (*f) (double a);};
  3371. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3372. int argc;
  3373. char **argv;
  3374. int
  3375. main ()
  3376. {
  3377. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3378. ;
  3379. return 0;
  3380. }
  3381. _ACEOF
  3382. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3383. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3384. do
  3385. CC="$ac_save_CC $ac_arg"
  3386. if ac_fn_c_try_compile "$LINENO"; then :
  3387. ac_cv_prog_cc_c89=$ac_arg
  3388. fi
  3389. rm -f core conftest.err conftest.$ac_objext
  3390. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3391. done
  3392. rm -f conftest.$ac_ext
  3393. CC=$ac_save_CC
  3394. fi
  3395. # AC_CACHE_VAL
  3396. case "x$ac_cv_prog_cc_c89" in
  3397. x)
  3398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3399. $as_echo "none needed" >&6; } ;;
  3400. xno)
  3401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3402. $as_echo "unsupported" >&6; } ;;
  3403. *)
  3404. CC="$CC $ac_cv_prog_cc_c89"
  3405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3406. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3407. esac
  3408. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3409. fi
  3410. ac_ext=c
  3411. ac_cpp='$CPP $CPPFLAGS'
  3412. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3413. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3414. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3415. ac_ext=c
  3416. ac_cpp='$CPP $CPPFLAGS'
  3417. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3418. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3419. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3421. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3422. if ${am_cv_prog_cc_c_o+:} false; then :
  3423. $as_echo_n "(cached) " >&6
  3424. else
  3425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3426. /* end confdefs.h. */
  3427. int
  3428. main ()
  3429. {
  3430. ;
  3431. return 0;
  3432. }
  3433. _ACEOF
  3434. # Make sure it works both with $CC and with simple cc.
  3435. # Following AC_PROG_CC_C_O, we do the test twice because some
  3436. # compilers refuse to overwrite an existing .o file with -o,
  3437. # though they will create one.
  3438. am_cv_prog_cc_c_o=yes
  3439. for am_i in 1 2; do
  3440. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3441. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3442. ac_status=$?
  3443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3444. (exit $ac_status); } \
  3445. && test -f conftest2.$ac_objext; then
  3446. : OK
  3447. else
  3448. am_cv_prog_cc_c_o=no
  3449. break
  3450. fi
  3451. done
  3452. rm -f core conftest*
  3453. unset am_i
  3454. fi
  3455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3456. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3457. if test "$am_cv_prog_cc_c_o" != yes; then
  3458. # Losing compiler, so override with the script.
  3459. # FIXME: It is wrong to rewrite CC.
  3460. # But if we don't then we get into trouble of one sort or another.
  3461. # A longer-term fix would be to have automake use am__CC in this case,
  3462. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3463. CC="$am_aux_dir/compile $CC"
  3464. fi
  3465. ac_ext=c
  3466. ac_cpp='$CPP $CPPFLAGS'
  3467. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3468. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3469. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3470. DEPDIR="${am__leading_dot}deps"
  3471. ac_config_commands="$ac_config_commands depfiles"
  3472. am_make=${MAKE-make}
  3473. cat > confinc << 'END'
  3474. am__doit:
  3475. @echo this is the am__doit target
  3476. .PHONY: am__doit
  3477. END
  3478. # If we don't find an include directive, just comment out the code.
  3479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3480. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3481. am__include="#"
  3482. am__quote=
  3483. _am_result=none
  3484. # First try GNU make style include.
  3485. echo "include confinc" > confmf
  3486. # Ignore all kinds of additional output from 'make'.
  3487. case `$am_make -s -f confmf 2> /dev/null` in #(
  3488. *the\ am__doit\ target*)
  3489. am__include=include
  3490. am__quote=
  3491. _am_result=GNU
  3492. ;;
  3493. esac
  3494. # Now try BSD make style include.
  3495. if test "$am__include" = "#"; then
  3496. echo '.include "confinc"' > confmf
  3497. case `$am_make -s -f confmf 2> /dev/null` in #(
  3498. *the\ am__doit\ target*)
  3499. am__include=.include
  3500. am__quote="\""
  3501. _am_result=BSD
  3502. ;;
  3503. esac
  3504. fi
  3505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3506. $as_echo "$_am_result" >&6; }
  3507. rm -f confinc confmf
  3508. # Check whether --enable-dependency-tracking was given.
  3509. if test "${enable_dependency_tracking+set}" = set; then :
  3510. enableval=$enable_dependency_tracking;
  3511. fi
  3512. if test "x$enable_dependency_tracking" != xno; then
  3513. am_depcomp="$ac_aux_dir/depcomp"
  3514. AMDEPBACKSLASH='\'
  3515. am__nodep='_no'
  3516. fi
  3517. if test "x$enable_dependency_tracking" != xno; then
  3518. AMDEP_TRUE=
  3519. AMDEP_FALSE='#'
  3520. else
  3521. AMDEP_TRUE='#'
  3522. AMDEP_FALSE=
  3523. fi
  3524. depcc="$CC" am_compiler_list=
  3525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3526. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3527. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3528. $as_echo_n "(cached) " >&6
  3529. else
  3530. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3531. # We make a subdir and do the tests there. Otherwise we can end up
  3532. # making bogus files that we don't know about and never remove. For
  3533. # instance it was reported that on HP-UX the gcc test will end up
  3534. # making a dummy file named 'D' -- because '-MD' means "put the output
  3535. # in D".
  3536. rm -rf conftest.dir
  3537. mkdir conftest.dir
  3538. # Copy depcomp to subdir because otherwise we won't find it if we're
  3539. # using a relative directory.
  3540. cp "$am_depcomp" conftest.dir
  3541. cd conftest.dir
  3542. # We will build objects and dependencies in a subdirectory because
  3543. # it helps to detect inapplicable dependency modes. For instance
  3544. # both Tru64's cc and ICC support -MD to output dependencies as a
  3545. # side effect of compilation, but ICC will put the dependencies in
  3546. # the current directory while Tru64 will put them in the object
  3547. # directory.
  3548. mkdir sub
  3549. am_cv_CC_dependencies_compiler_type=none
  3550. if test "$am_compiler_list" = ""; then
  3551. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3552. fi
  3553. am__universal=false
  3554. case " $depcc " in #(
  3555. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3556. esac
  3557. for depmode in $am_compiler_list; do
  3558. # Setup a source with many dependencies, because some compilers
  3559. # like to wrap large dependency lists on column 80 (with \), and
  3560. # we should not choose a depcomp mode which is confused by this.
  3561. #
  3562. # We need to recreate these files for each test, as the compiler may
  3563. # overwrite some of them when testing with obscure command lines.
  3564. # This happens at least with the AIX C compiler.
  3565. : > sub/conftest.c
  3566. for i in 1 2 3 4 5 6; do
  3567. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3568. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3569. # Solaris 10 /bin/sh.
  3570. echo '/* dummy */' > sub/conftst$i.h
  3571. done
  3572. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3573. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3574. # mode. It turns out that the SunPro C++ compiler does not properly
  3575. # handle '-M -o', and we need to detect this. Also, some Intel
  3576. # versions had trouble with output in subdirs.
  3577. am__obj=sub/conftest.${OBJEXT-o}
  3578. am__minus_obj="-o $am__obj"
  3579. case $depmode in
  3580. gcc)
  3581. # This depmode causes a compiler race in universal mode.
  3582. test "$am__universal" = false || continue
  3583. ;;
  3584. nosideeffect)
  3585. # After this tag, mechanisms are not by side-effect, so they'll
  3586. # only be used when explicitly requested.
  3587. if test "x$enable_dependency_tracking" = xyes; then
  3588. continue
  3589. else
  3590. break
  3591. fi
  3592. ;;
  3593. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3594. # This compiler won't grok '-c -o', but also, the minuso test has
  3595. # not run yet. These depmodes are late enough in the game, and
  3596. # so weak that their functioning should not be impacted.
  3597. am__obj=conftest.${OBJEXT-o}
  3598. am__minus_obj=
  3599. ;;
  3600. none) break ;;
  3601. esac
  3602. if depmode=$depmode \
  3603. source=sub/conftest.c object=$am__obj \
  3604. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3605. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3606. >/dev/null 2>conftest.err &&
  3607. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3608. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3609. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3610. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3611. # icc doesn't choke on unknown options, it will just issue warnings
  3612. # or remarks (even with -Werror). So we grep stderr for any message
  3613. # that says an option was ignored or not supported.
  3614. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3615. # icc: Command line warning: ignoring option '-M'; no argument required
  3616. # The diagnosis changed in icc 8.0:
  3617. # icc: Command line remark: option '-MP' not supported
  3618. if (grep 'ignoring option' conftest.err ||
  3619. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3620. am_cv_CC_dependencies_compiler_type=$depmode
  3621. break
  3622. fi
  3623. fi
  3624. done
  3625. cd ..
  3626. rm -rf conftest.dir
  3627. else
  3628. am_cv_CC_dependencies_compiler_type=none
  3629. fi
  3630. fi
  3631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3632. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3633. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3634. if
  3635. test "x$enable_dependency_tracking" != xno \
  3636. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3637. am__fastdepCC_TRUE=
  3638. am__fastdepCC_FALSE='#'
  3639. else
  3640. am__fastdepCC_TRUE='#'
  3641. am__fastdepCC_FALSE=
  3642. fi
  3643. case `pwd` in
  3644. *\ * | *\ *)
  3645. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3646. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3647. esac
  3648. macro_version='2.4.6'
  3649. macro_revision='2.4.6'
  3650. ltmain=$ac_aux_dir/ltmain.sh
  3651. # Make sure we can run config.sub.
  3652. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3653. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3655. $as_echo_n "checking build system type... " >&6; }
  3656. if ${ac_cv_build+:} false; then :
  3657. $as_echo_n "(cached) " >&6
  3658. else
  3659. ac_build_alias=$build_alias
  3660. test "x$ac_build_alias" = x &&
  3661. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3662. test "x$ac_build_alias" = x &&
  3663. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3664. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3665. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3666. fi
  3667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3668. $as_echo "$ac_cv_build" >&6; }
  3669. case $ac_cv_build in
  3670. *-*-*) ;;
  3671. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3672. esac
  3673. build=$ac_cv_build
  3674. ac_save_IFS=$IFS; IFS='-'
  3675. set x $ac_cv_build
  3676. shift
  3677. build_cpu=$1
  3678. build_vendor=$2
  3679. shift; shift
  3680. # Remember, the first character of IFS is used to create $*,
  3681. # except with old shells:
  3682. build_os=$*
  3683. IFS=$ac_save_IFS
  3684. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3686. $as_echo_n "checking host system type... " >&6; }
  3687. if ${ac_cv_host+:} false; then :
  3688. $as_echo_n "(cached) " >&6
  3689. else
  3690. if test "x$host_alias" = x; then
  3691. ac_cv_host=$ac_cv_build
  3692. else
  3693. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3694. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3695. fi
  3696. fi
  3697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3698. $as_echo "$ac_cv_host" >&6; }
  3699. case $ac_cv_host in
  3700. *-*-*) ;;
  3701. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3702. esac
  3703. host=$ac_cv_host
  3704. ac_save_IFS=$IFS; IFS='-'
  3705. set x $ac_cv_host
  3706. shift
  3707. host_cpu=$1
  3708. host_vendor=$2
  3709. shift; shift
  3710. # Remember, the first character of IFS is used to create $*,
  3711. # except with old shells:
  3712. host_os=$*
  3713. IFS=$ac_save_IFS
  3714. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3715. # Backslashify metacharacters that are still active within
  3716. # double-quoted strings.
  3717. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3718. # Same as above, but do not quote variable references.
  3719. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3720. # Sed substitution to delay expansion of an escaped shell variable in a
  3721. # double_quote_subst'ed string.
  3722. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3723. # Sed substitution to delay expansion of an escaped single quote.
  3724. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3725. # Sed substitution to avoid accidental globbing in evaled expressions
  3726. no_glob_subst='s/\*/\\\*/g'
  3727. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3728. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3729. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3731. $as_echo_n "checking how to print strings... " >&6; }
  3732. # Test print first, because it will be a builtin if present.
  3733. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3734. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3735. ECHO='print -r --'
  3736. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3737. ECHO='printf %s\n'
  3738. else
  3739. # Use this function as a fallback that always works.
  3740. func_fallback_echo ()
  3741. {
  3742. eval 'cat <<_LTECHO_EOF
  3743. $1
  3744. _LTECHO_EOF'
  3745. }
  3746. ECHO='func_fallback_echo'
  3747. fi
  3748. # func_echo_all arg...
  3749. # Invoke $ECHO with all args, space-separated.
  3750. func_echo_all ()
  3751. {
  3752. $ECHO ""
  3753. }
  3754. case $ECHO in
  3755. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3756. $as_echo "printf" >&6; } ;;
  3757. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3758. $as_echo "print -r" >&6; } ;;
  3759. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3760. $as_echo "cat" >&6; } ;;
  3761. esac
  3762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3763. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3764. if ${ac_cv_path_SED+:} false; then :
  3765. $as_echo_n "(cached) " >&6
  3766. else
  3767. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3768. for ac_i in 1 2 3 4 5 6 7; do
  3769. ac_script="$ac_script$as_nl$ac_script"
  3770. done
  3771. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3772. { ac_script=; unset ac_script;}
  3773. if test -z "$SED"; then
  3774. ac_path_SED_found=false
  3775. # Loop through the user's path and test for each of PROGNAME-LIST
  3776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3777. for as_dir in $PATH
  3778. do
  3779. IFS=$as_save_IFS
  3780. test -z "$as_dir" && as_dir=.
  3781. for ac_prog in sed gsed; do
  3782. for ac_exec_ext in '' $ac_executable_extensions; do
  3783. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3784. as_fn_executable_p "$ac_path_SED" || continue
  3785. # Check for GNU ac_path_SED and select it if it is found.
  3786. # Check for GNU $ac_path_SED
  3787. case `"$ac_path_SED" --version 2>&1` in
  3788. *GNU*)
  3789. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3790. *)
  3791. ac_count=0
  3792. $as_echo_n 0123456789 >"conftest.in"
  3793. while :
  3794. do
  3795. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3796. mv "conftest.tmp" "conftest.in"
  3797. cp "conftest.in" "conftest.nl"
  3798. $as_echo '' >> "conftest.nl"
  3799. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3800. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3801. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3802. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3803. # Best one so far, save it but keep looking for a better one
  3804. ac_cv_path_SED="$ac_path_SED"
  3805. ac_path_SED_max=$ac_count
  3806. fi
  3807. # 10*(2^10) chars as input seems more than enough
  3808. test $ac_count -gt 10 && break
  3809. done
  3810. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3811. esac
  3812. $ac_path_SED_found && break 3
  3813. done
  3814. done
  3815. done
  3816. IFS=$as_save_IFS
  3817. if test -z "$ac_cv_path_SED"; then
  3818. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3819. fi
  3820. else
  3821. ac_cv_path_SED=$SED
  3822. fi
  3823. fi
  3824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3825. $as_echo "$ac_cv_path_SED" >&6; }
  3826. SED="$ac_cv_path_SED"
  3827. rm -f conftest.sed
  3828. test -z "$SED" && SED=sed
  3829. Xsed="$SED -e 1s/^X//"
  3830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3831. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3832. if ${ac_cv_path_GREP+:} false; then :
  3833. $as_echo_n "(cached) " >&6
  3834. else
  3835. if test -z "$GREP"; then
  3836. ac_path_GREP_found=false
  3837. # Loop through the user's path and test for each of PROGNAME-LIST
  3838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3839. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3840. do
  3841. IFS=$as_save_IFS
  3842. test -z "$as_dir" && as_dir=.
  3843. for ac_prog in grep ggrep; do
  3844. for ac_exec_ext in '' $ac_executable_extensions; do
  3845. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3846. as_fn_executable_p "$ac_path_GREP" || continue
  3847. # Check for GNU ac_path_GREP and select it if it is found.
  3848. # Check for GNU $ac_path_GREP
  3849. case `"$ac_path_GREP" --version 2>&1` in
  3850. *GNU*)
  3851. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3852. *)
  3853. ac_count=0
  3854. $as_echo_n 0123456789 >"conftest.in"
  3855. while :
  3856. do
  3857. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3858. mv "conftest.tmp" "conftest.in"
  3859. cp "conftest.in" "conftest.nl"
  3860. $as_echo 'GREP' >> "conftest.nl"
  3861. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3862. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3863. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3864. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3865. # Best one so far, save it but keep looking for a better one
  3866. ac_cv_path_GREP="$ac_path_GREP"
  3867. ac_path_GREP_max=$ac_count
  3868. fi
  3869. # 10*(2^10) chars as input seems more than enough
  3870. test $ac_count -gt 10 && break
  3871. done
  3872. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3873. esac
  3874. $ac_path_GREP_found && break 3
  3875. done
  3876. done
  3877. done
  3878. IFS=$as_save_IFS
  3879. if test -z "$ac_cv_path_GREP"; then
  3880. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3881. fi
  3882. else
  3883. ac_cv_path_GREP=$GREP
  3884. fi
  3885. fi
  3886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3887. $as_echo "$ac_cv_path_GREP" >&6; }
  3888. GREP="$ac_cv_path_GREP"
  3889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3890. $as_echo_n "checking for egrep... " >&6; }
  3891. if ${ac_cv_path_EGREP+:} false; then :
  3892. $as_echo_n "(cached) " >&6
  3893. else
  3894. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3895. then ac_cv_path_EGREP="$GREP -E"
  3896. else
  3897. if test -z "$EGREP"; then
  3898. ac_path_EGREP_found=false
  3899. # Loop through the user's path and test for each of PROGNAME-LIST
  3900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3901. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3902. do
  3903. IFS=$as_save_IFS
  3904. test -z "$as_dir" && as_dir=.
  3905. for ac_prog in egrep; do
  3906. for ac_exec_ext in '' $ac_executable_extensions; do
  3907. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3908. as_fn_executable_p "$ac_path_EGREP" || continue
  3909. # Check for GNU ac_path_EGREP and select it if it is found.
  3910. # Check for GNU $ac_path_EGREP
  3911. case `"$ac_path_EGREP" --version 2>&1` in
  3912. *GNU*)
  3913. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3914. *)
  3915. ac_count=0
  3916. $as_echo_n 0123456789 >"conftest.in"
  3917. while :
  3918. do
  3919. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3920. mv "conftest.tmp" "conftest.in"
  3921. cp "conftest.in" "conftest.nl"
  3922. $as_echo 'EGREP' >> "conftest.nl"
  3923. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3924. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3925. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3926. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3927. # Best one so far, save it but keep looking for a better one
  3928. ac_cv_path_EGREP="$ac_path_EGREP"
  3929. ac_path_EGREP_max=$ac_count
  3930. fi
  3931. # 10*(2^10) chars as input seems more than enough
  3932. test $ac_count -gt 10 && break
  3933. done
  3934. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3935. esac
  3936. $ac_path_EGREP_found && break 3
  3937. done
  3938. done
  3939. done
  3940. IFS=$as_save_IFS
  3941. if test -z "$ac_cv_path_EGREP"; then
  3942. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3943. fi
  3944. else
  3945. ac_cv_path_EGREP=$EGREP
  3946. fi
  3947. fi
  3948. fi
  3949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3950. $as_echo "$ac_cv_path_EGREP" >&6; }
  3951. EGREP="$ac_cv_path_EGREP"
  3952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3953. $as_echo_n "checking for fgrep... " >&6; }
  3954. if ${ac_cv_path_FGREP+:} false; then :
  3955. $as_echo_n "(cached) " >&6
  3956. else
  3957. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3958. then ac_cv_path_FGREP="$GREP -F"
  3959. else
  3960. if test -z "$FGREP"; then
  3961. ac_path_FGREP_found=false
  3962. # Loop through the user's path and test for each of PROGNAME-LIST
  3963. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3964. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3965. do
  3966. IFS=$as_save_IFS
  3967. test -z "$as_dir" && as_dir=.
  3968. for ac_prog in fgrep; do
  3969. for ac_exec_ext in '' $ac_executable_extensions; do
  3970. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3971. as_fn_executable_p "$ac_path_FGREP" || continue
  3972. # Check for GNU ac_path_FGREP and select it if it is found.
  3973. # Check for GNU $ac_path_FGREP
  3974. case `"$ac_path_FGREP" --version 2>&1` in
  3975. *GNU*)
  3976. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3977. *)
  3978. ac_count=0
  3979. $as_echo_n 0123456789 >"conftest.in"
  3980. while :
  3981. do
  3982. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3983. mv "conftest.tmp" "conftest.in"
  3984. cp "conftest.in" "conftest.nl"
  3985. $as_echo 'FGREP' >> "conftest.nl"
  3986. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3987. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3988. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3989. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3990. # Best one so far, save it but keep looking for a better one
  3991. ac_cv_path_FGREP="$ac_path_FGREP"
  3992. ac_path_FGREP_max=$ac_count
  3993. fi
  3994. # 10*(2^10) chars as input seems more than enough
  3995. test $ac_count -gt 10 && break
  3996. done
  3997. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3998. esac
  3999. $ac_path_FGREP_found && break 3
  4000. done
  4001. done
  4002. done
  4003. IFS=$as_save_IFS
  4004. if test -z "$ac_cv_path_FGREP"; then
  4005. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4006. fi
  4007. else
  4008. ac_cv_path_FGREP=$FGREP
  4009. fi
  4010. fi
  4011. fi
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4013. $as_echo "$ac_cv_path_FGREP" >&6; }
  4014. FGREP="$ac_cv_path_FGREP"
  4015. test -z "$GREP" && GREP=grep
  4016. # Check whether --with-gnu-ld was given.
  4017. if test "${with_gnu_ld+set}" = set; then :
  4018. withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
  4019. else
  4020. with_gnu_ld=no
  4021. fi
  4022. ac_prog=ld
  4023. if test yes = "$GCC"; then
  4024. # Check if gcc -print-prog-name=ld gives a path.
  4025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4026. $as_echo_n "checking for ld used by $CC... " >&6; }
  4027. case $host in
  4028. *-*-mingw*)
  4029. # gcc leaves a trailing carriage return, which upsets mingw
  4030. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4031. *)
  4032. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4033. esac
  4034. case $ac_prog in
  4035. # Accept absolute paths.
  4036. [\\/]* | ?:[\\/]*)
  4037. re_direlt='/[^/][^/]*/\.\./'
  4038. # Canonicalize the pathname of ld
  4039. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4040. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4041. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4042. done
  4043. test -z "$LD" && LD=$ac_prog
  4044. ;;
  4045. "")
  4046. # If it fails, then pretend we aren't using GCC.
  4047. ac_prog=ld
  4048. ;;
  4049. *)
  4050. # If it is relative, then search for the first ld in PATH.
  4051. with_gnu_ld=unknown
  4052. ;;
  4053. esac
  4054. elif test yes = "$with_gnu_ld"; then
  4055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4056. $as_echo_n "checking for GNU ld... " >&6; }
  4057. else
  4058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4059. $as_echo_n "checking for non-GNU ld... " >&6; }
  4060. fi
  4061. if ${lt_cv_path_LD+:} false; then :
  4062. $as_echo_n "(cached) " >&6
  4063. else
  4064. if test -z "$LD"; then
  4065. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4066. for ac_dir in $PATH; do
  4067. IFS=$lt_save_ifs
  4068. test -z "$ac_dir" && ac_dir=.
  4069. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4070. lt_cv_path_LD=$ac_dir/$ac_prog
  4071. # Check to see if the program is GNU ld. I'd rather use --version,
  4072. # but apparently some variants of GNU ld only accept -v.
  4073. # Break only if it was the GNU/non-GNU ld that we prefer.
  4074. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4075. *GNU* | *'with BFD'*)
  4076. test no != "$with_gnu_ld" && break
  4077. ;;
  4078. *)
  4079. test yes != "$with_gnu_ld" && break
  4080. ;;
  4081. esac
  4082. fi
  4083. done
  4084. IFS=$lt_save_ifs
  4085. else
  4086. lt_cv_path_LD=$LD # Let the user override the test with a path.
  4087. fi
  4088. fi
  4089. LD=$lt_cv_path_LD
  4090. if test -n "$LD"; then
  4091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4092. $as_echo "$LD" >&6; }
  4093. else
  4094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4095. $as_echo "no" >&6; }
  4096. fi
  4097. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4099. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4100. if ${lt_cv_prog_gnu_ld+:} false; then :
  4101. $as_echo_n "(cached) " >&6
  4102. else
  4103. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4104. case `$LD -v 2>&1 </dev/null` in
  4105. *GNU* | *'with BFD'*)
  4106. lt_cv_prog_gnu_ld=yes
  4107. ;;
  4108. *)
  4109. lt_cv_prog_gnu_ld=no
  4110. ;;
  4111. esac
  4112. fi
  4113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4114. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4115. with_gnu_ld=$lt_cv_prog_gnu_ld
  4116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4117. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4118. if ${lt_cv_path_NM+:} false; then :
  4119. $as_echo_n "(cached) " >&6
  4120. else
  4121. if test -n "$NM"; then
  4122. # Let the user override the test.
  4123. lt_cv_path_NM=$NM
  4124. else
  4125. lt_nm_to_check=${ac_tool_prefix}nm
  4126. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4127. lt_nm_to_check="$lt_nm_to_check nm"
  4128. fi
  4129. for lt_tmp_nm in $lt_nm_to_check; do
  4130. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  4131. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4132. IFS=$lt_save_ifs
  4133. test -z "$ac_dir" && ac_dir=.
  4134. tmp_nm=$ac_dir/$lt_tmp_nm
  4135. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  4136. # Check to see if the nm accepts a BSD-compat flag.
  4137. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  4138. # nm: unknown option "B" ignored
  4139. # Tru64's nm complains that /dev/null is an invalid object file
  4140. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  4141. case $build_os in
  4142. mingw*) lt_bad_file=conftest.nm/nofile ;;
  4143. *) lt_bad_file=/dev/null ;;
  4144. esac
  4145. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  4146. *$lt_bad_file* | *'Invalid file or object type'*)
  4147. lt_cv_path_NM="$tmp_nm -B"
  4148. break 2
  4149. ;;
  4150. *)
  4151. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4152. */dev/null*)
  4153. lt_cv_path_NM="$tmp_nm -p"
  4154. break 2
  4155. ;;
  4156. *)
  4157. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4158. continue # so that we can try to find one that supports BSD flags
  4159. ;;
  4160. esac
  4161. ;;
  4162. esac
  4163. fi
  4164. done
  4165. IFS=$lt_save_ifs
  4166. done
  4167. : ${lt_cv_path_NM=no}
  4168. fi
  4169. fi
  4170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4171. $as_echo "$lt_cv_path_NM" >&6; }
  4172. if test no != "$lt_cv_path_NM"; then
  4173. NM=$lt_cv_path_NM
  4174. else
  4175. # Didn't find any BSD compatible name lister, look for dumpbin.
  4176. if test -n "$DUMPBIN"; then :
  4177. # Let the user override the test.
  4178. else
  4179. if test -n "$ac_tool_prefix"; then
  4180. for ac_prog in dumpbin "link -dump"
  4181. do
  4182. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4183. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4185. $as_echo_n "checking for $ac_word... " >&6; }
  4186. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4187. $as_echo_n "(cached) " >&6
  4188. else
  4189. if test -n "$DUMPBIN"; then
  4190. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4191. else
  4192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4193. for as_dir in $PATH
  4194. do
  4195. IFS=$as_save_IFS
  4196. test -z "$as_dir" && as_dir=.
  4197. for ac_exec_ext in '' $ac_executable_extensions; do
  4198. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4199. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4200. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4201. break 2
  4202. fi
  4203. done
  4204. done
  4205. IFS=$as_save_IFS
  4206. fi
  4207. fi
  4208. DUMPBIN=$ac_cv_prog_DUMPBIN
  4209. if test -n "$DUMPBIN"; then
  4210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4211. $as_echo "$DUMPBIN" >&6; }
  4212. else
  4213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4214. $as_echo "no" >&6; }
  4215. fi
  4216. test -n "$DUMPBIN" && break
  4217. done
  4218. fi
  4219. if test -z "$DUMPBIN"; then
  4220. ac_ct_DUMPBIN=$DUMPBIN
  4221. for ac_prog in dumpbin "link -dump"
  4222. do
  4223. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4224. set dummy $ac_prog; ac_word=$2
  4225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4226. $as_echo_n "checking for $ac_word... " >&6; }
  4227. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4228. $as_echo_n "(cached) " >&6
  4229. else
  4230. if test -n "$ac_ct_DUMPBIN"; then
  4231. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4232. else
  4233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4234. for as_dir in $PATH
  4235. do
  4236. IFS=$as_save_IFS
  4237. test -z "$as_dir" && as_dir=.
  4238. for ac_exec_ext in '' $ac_executable_extensions; do
  4239. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4240. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4241. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4242. break 2
  4243. fi
  4244. done
  4245. done
  4246. IFS=$as_save_IFS
  4247. fi
  4248. fi
  4249. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4250. if test -n "$ac_ct_DUMPBIN"; then
  4251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4252. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4253. else
  4254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4255. $as_echo "no" >&6; }
  4256. fi
  4257. test -n "$ac_ct_DUMPBIN" && break
  4258. done
  4259. if test "x$ac_ct_DUMPBIN" = x; then
  4260. DUMPBIN=":"
  4261. else
  4262. case $cross_compiling:$ac_tool_warned in
  4263. yes:)
  4264. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4265. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4266. ac_tool_warned=yes ;;
  4267. esac
  4268. DUMPBIN=$ac_ct_DUMPBIN
  4269. fi
  4270. fi
  4271. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  4272. *COFF*)
  4273. DUMPBIN="$DUMPBIN -symbols -headers"
  4274. ;;
  4275. *)
  4276. DUMPBIN=:
  4277. ;;
  4278. esac
  4279. fi
  4280. if test : != "$DUMPBIN"; then
  4281. NM=$DUMPBIN
  4282. fi
  4283. fi
  4284. test -z "$NM" && NM=nm
  4285. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4286. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4287. if ${lt_cv_nm_interface+:} false; then :
  4288. $as_echo_n "(cached) " >&6
  4289. else
  4290. lt_cv_nm_interface="BSD nm"
  4291. echo "int some_variable = 0;" > conftest.$ac_ext
  4292. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4293. (eval "$ac_compile" 2>conftest.err)
  4294. cat conftest.err >&5
  4295. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4296. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4297. cat conftest.err >&5
  4298. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4299. cat conftest.out >&5
  4300. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4301. lt_cv_nm_interface="MS dumpbin"
  4302. fi
  4303. rm -f conftest*
  4304. fi
  4305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4306. $as_echo "$lt_cv_nm_interface" >&6; }
  4307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4308. $as_echo_n "checking whether ln -s works... " >&6; }
  4309. LN_S=$as_ln_s
  4310. if test "$LN_S" = "ln -s"; then
  4311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4312. $as_echo "yes" >&6; }
  4313. else
  4314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4315. $as_echo "no, using $LN_S" >&6; }
  4316. fi
  4317. # find the maximum length of command line arguments
  4318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4319. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4320. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4321. $as_echo_n "(cached) " >&6
  4322. else
  4323. i=0
  4324. teststring=ABCD
  4325. case $build_os in
  4326. msdosdjgpp*)
  4327. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4328. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4329. # during glob expansion). Even if it were fixed, the result of this
  4330. # check would be larger than it should be.
  4331. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4332. ;;
  4333. gnu*)
  4334. # Under GNU Hurd, this test is not required because there is
  4335. # no limit to the length of command line arguments.
  4336. # Libtool will interpret -1 as no limit whatsoever
  4337. lt_cv_sys_max_cmd_len=-1;
  4338. ;;
  4339. cygwin* | mingw* | cegcc*)
  4340. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4341. # about 5 minutes as the teststring grows exponentially.
  4342. # Worse, since 9x/ME are not pre-emptively multitasking,
  4343. # you end up with a "frozen" computer, even though with patience
  4344. # the test eventually succeeds (with a max line length of 256k).
  4345. # Instead, let's just punt: use the minimum linelength reported by
  4346. # all of the supported platforms: 8192 (on NT/2K/XP).
  4347. lt_cv_sys_max_cmd_len=8192;
  4348. ;;
  4349. mint*)
  4350. # On MiNT this can take a long time and run out of memory.
  4351. lt_cv_sys_max_cmd_len=8192;
  4352. ;;
  4353. amigaos*)
  4354. # On AmigaOS with pdksh, this test takes hours, literally.
  4355. # So we just punt and use a minimum line length of 8192.
  4356. lt_cv_sys_max_cmd_len=8192;
  4357. ;;
  4358. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  4359. # This has been around since 386BSD, at least. Likely further.
  4360. if test -x /sbin/sysctl; then
  4361. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4362. elif test -x /usr/sbin/sysctl; then
  4363. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4364. else
  4365. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4366. fi
  4367. # And add a safety zone
  4368. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4369. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4370. ;;
  4371. interix*)
  4372. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4373. lt_cv_sys_max_cmd_len=196608
  4374. ;;
  4375. os2*)
  4376. # The test takes a long time on OS/2.
  4377. lt_cv_sys_max_cmd_len=8192
  4378. ;;
  4379. osf*)
  4380. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4381. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4382. # nice to cause kernel panics so lets avoid the loop below.
  4383. # First set a reasonable default.
  4384. lt_cv_sys_max_cmd_len=16384
  4385. #
  4386. if test -x /sbin/sysconfig; then
  4387. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4388. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4389. esac
  4390. fi
  4391. ;;
  4392. sco3.2v5*)
  4393. lt_cv_sys_max_cmd_len=102400
  4394. ;;
  4395. sysv5* | sco5v6* | sysv4.2uw2*)
  4396. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4397. if test -n "$kargmax"; then
  4398. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4399. else
  4400. lt_cv_sys_max_cmd_len=32768
  4401. fi
  4402. ;;
  4403. *)
  4404. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4405. if test -n "$lt_cv_sys_max_cmd_len" && \
  4406. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4407. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4408. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4409. else
  4410. # Make teststring a little bigger before we do anything with it.
  4411. # a 1K string should be a reasonable start.
  4412. for i in 1 2 3 4 5 6 7 8; do
  4413. teststring=$teststring$teststring
  4414. done
  4415. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4416. # If test is not a shell built-in, we'll probably end up computing a
  4417. # maximum length that is only half of the actual maximum length, but
  4418. # we can't tell.
  4419. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  4420. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4421. test 17 != "$i" # 1/2 MB should be enough
  4422. do
  4423. i=`expr $i + 1`
  4424. teststring=$teststring$teststring
  4425. done
  4426. # Only check the string length outside the loop.
  4427. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4428. teststring=
  4429. # Add a significant safety factor because C++ compilers can tack on
  4430. # massive amounts of additional arguments before passing them to the
  4431. # linker. It appears as though 1/2 is a usable value.
  4432. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4433. fi
  4434. ;;
  4435. esac
  4436. fi
  4437. if test -n "$lt_cv_sys_max_cmd_len"; then
  4438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4439. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4440. else
  4441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4442. $as_echo "none" >&6; }
  4443. fi
  4444. max_cmd_len=$lt_cv_sys_max_cmd_len
  4445. : ${CP="cp -f"}
  4446. : ${MV="mv -f"}
  4447. : ${RM="rm -f"}
  4448. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4449. lt_unset=unset
  4450. else
  4451. lt_unset=false
  4452. fi
  4453. # test EBCDIC or ASCII
  4454. case `echo X|tr X '\101'` in
  4455. A) # ASCII based system
  4456. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4457. lt_SP2NL='tr \040 \012'
  4458. lt_NL2SP='tr \015\012 \040\040'
  4459. ;;
  4460. *) # EBCDIC based system
  4461. lt_SP2NL='tr \100 \n'
  4462. lt_NL2SP='tr \r\n \100\100'
  4463. ;;
  4464. esac
  4465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4466. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4467. if ${lt_cv_to_host_file_cmd+:} false; then :
  4468. $as_echo_n "(cached) " >&6
  4469. else
  4470. case $host in
  4471. *-*-mingw* )
  4472. case $build in
  4473. *-*-mingw* ) # actually msys
  4474. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4475. ;;
  4476. *-*-cygwin* )
  4477. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4478. ;;
  4479. * ) # otherwise, assume *nix
  4480. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4481. ;;
  4482. esac
  4483. ;;
  4484. *-*-cygwin* )
  4485. case $build in
  4486. *-*-mingw* ) # actually msys
  4487. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4488. ;;
  4489. *-*-cygwin* )
  4490. lt_cv_to_host_file_cmd=func_convert_file_noop
  4491. ;;
  4492. * ) # otherwise, assume *nix
  4493. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4494. ;;
  4495. esac
  4496. ;;
  4497. * ) # unhandled hosts (and "normal" native builds)
  4498. lt_cv_to_host_file_cmd=func_convert_file_noop
  4499. ;;
  4500. esac
  4501. fi
  4502. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4504. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4506. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4507. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4508. $as_echo_n "(cached) " >&6
  4509. else
  4510. #assume ordinary cross tools, or native build.
  4511. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4512. case $host in
  4513. *-*-mingw* )
  4514. case $build in
  4515. *-*-mingw* ) # actually msys
  4516. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4517. ;;
  4518. esac
  4519. ;;
  4520. esac
  4521. fi
  4522. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4524. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4526. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4527. if ${lt_cv_ld_reload_flag+:} false; then :
  4528. $as_echo_n "(cached) " >&6
  4529. else
  4530. lt_cv_ld_reload_flag='-r'
  4531. fi
  4532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4533. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4534. reload_flag=$lt_cv_ld_reload_flag
  4535. case $reload_flag in
  4536. "" | " "*) ;;
  4537. *) reload_flag=" $reload_flag" ;;
  4538. esac
  4539. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4540. case $host_os in
  4541. cygwin* | mingw* | pw32* | cegcc*)
  4542. if test yes != "$GCC"; then
  4543. reload_cmds=false
  4544. fi
  4545. ;;
  4546. darwin*)
  4547. if test yes = "$GCC"; then
  4548. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  4549. else
  4550. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4551. fi
  4552. ;;
  4553. esac
  4554. if test -n "$ac_tool_prefix"; then
  4555. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4556. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4558. $as_echo_n "checking for $ac_word... " >&6; }
  4559. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4560. $as_echo_n "(cached) " >&6
  4561. else
  4562. if test -n "$OBJDUMP"; then
  4563. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4564. else
  4565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4566. for as_dir in $PATH
  4567. do
  4568. IFS=$as_save_IFS
  4569. test -z "$as_dir" && as_dir=.
  4570. for ac_exec_ext in '' $ac_executable_extensions; do
  4571. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4572. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4573. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4574. break 2
  4575. fi
  4576. done
  4577. done
  4578. IFS=$as_save_IFS
  4579. fi
  4580. fi
  4581. OBJDUMP=$ac_cv_prog_OBJDUMP
  4582. if test -n "$OBJDUMP"; then
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4584. $as_echo "$OBJDUMP" >&6; }
  4585. else
  4586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4587. $as_echo "no" >&6; }
  4588. fi
  4589. fi
  4590. if test -z "$ac_cv_prog_OBJDUMP"; then
  4591. ac_ct_OBJDUMP=$OBJDUMP
  4592. # Extract the first word of "objdump", so it can be a program name with args.
  4593. set dummy objdump; ac_word=$2
  4594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4595. $as_echo_n "checking for $ac_word... " >&6; }
  4596. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4597. $as_echo_n "(cached) " >&6
  4598. else
  4599. if test -n "$ac_ct_OBJDUMP"; then
  4600. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4601. else
  4602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4603. for as_dir in $PATH
  4604. do
  4605. IFS=$as_save_IFS
  4606. test -z "$as_dir" && as_dir=.
  4607. for ac_exec_ext in '' $ac_executable_extensions; do
  4608. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4609. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4610. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4611. break 2
  4612. fi
  4613. done
  4614. done
  4615. IFS=$as_save_IFS
  4616. fi
  4617. fi
  4618. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4619. if test -n "$ac_ct_OBJDUMP"; then
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4621. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4622. else
  4623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4624. $as_echo "no" >&6; }
  4625. fi
  4626. if test "x$ac_ct_OBJDUMP" = x; then
  4627. OBJDUMP="false"
  4628. else
  4629. case $cross_compiling:$ac_tool_warned in
  4630. yes:)
  4631. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4632. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4633. ac_tool_warned=yes ;;
  4634. esac
  4635. OBJDUMP=$ac_ct_OBJDUMP
  4636. fi
  4637. else
  4638. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4639. fi
  4640. test -z "$OBJDUMP" && OBJDUMP=objdump
  4641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4642. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4643. if ${lt_cv_deplibs_check_method+:} false; then :
  4644. $as_echo_n "(cached) " >&6
  4645. else
  4646. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4647. lt_cv_file_magic_test_file=
  4648. lt_cv_deplibs_check_method='unknown'
  4649. # Need to set the preceding variable on all platforms that support
  4650. # interlibrary dependencies.
  4651. # 'none' -- dependencies not supported.
  4652. # 'unknown' -- same as none, but documents that we really don't know.
  4653. # 'pass_all' -- all dependencies passed with no checks.
  4654. # 'test_compile' -- check by making test program.
  4655. # 'file_magic [[regex]]' -- check by looking for files in library path
  4656. # that responds to the $file_magic_cmd with a given extended regex.
  4657. # If you have 'file' or equivalent on your system and you're not sure
  4658. # whether 'pass_all' will *always* work, you probably want this one.
  4659. case $host_os in
  4660. aix[4-9]*)
  4661. lt_cv_deplibs_check_method=pass_all
  4662. ;;
  4663. beos*)
  4664. lt_cv_deplibs_check_method=pass_all
  4665. ;;
  4666. bsdi[45]*)
  4667. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4668. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4669. lt_cv_file_magic_test_file=/shlib/libc.so
  4670. ;;
  4671. cygwin*)
  4672. # func_win32_libid is a shell function defined in ltmain.sh
  4673. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4674. lt_cv_file_magic_cmd='func_win32_libid'
  4675. ;;
  4676. mingw* | pw32*)
  4677. # Base MSYS/MinGW do not provide the 'file' command needed by
  4678. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4679. # unless we find 'file', for example because we are cross-compiling.
  4680. if ( file / ) >/dev/null 2>&1; then
  4681. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4682. lt_cv_file_magic_cmd='func_win32_libid'
  4683. else
  4684. # Keep this pattern in sync with the one in func_win32_libid.
  4685. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4686. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4687. fi
  4688. ;;
  4689. cegcc*)
  4690. # use the weaker test based on 'objdump'. See mingw*.
  4691. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4692. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4693. ;;
  4694. darwin* | rhapsody*)
  4695. lt_cv_deplibs_check_method=pass_all
  4696. ;;
  4697. freebsd* | dragonfly*)
  4698. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4699. case $host_cpu in
  4700. i*86 )
  4701. # Not sure whether the presence of OpenBSD here was a mistake.
  4702. # Let's accept both of them until this is cleared up.
  4703. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4704. lt_cv_file_magic_cmd=/usr/bin/file
  4705. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4706. ;;
  4707. esac
  4708. else
  4709. lt_cv_deplibs_check_method=pass_all
  4710. fi
  4711. ;;
  4712. haiku*)
  4713. lt_cv_deplibs_check_method=pass_all
  4714. ;;
  4715. hpux10.20* | hpux11*)
  4716. lt_cv_file_magic_cmd=/usr/bin/file
  4717. case $host_cpu in
  4718. ia64*)
  4719. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4720. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4721. ;;
  4722. hppa*64*)
  4723. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  4724. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4725. ;;
  4726. *)
  4727. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4728. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4729. ;;
  4730. esac
  4731. ;;
  4732. interix[3-9]*)
  4733. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4734. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4735. ;;
  4736. irix5* | irix6* | nonstopux*)
  4737. case $LD in
  4738. *-32|*"-32 ") libmagic=32-bit;;
  4739. *-n32|*"-n32 ") libmagic=N32;;
  4740. *-64|*"-64 ") libmagic=64-bit;;
  4741. *) libmagic=never-match;;
  4742. esac
  4743. lt_cv_deplibs_check_method=pass_all
  4744. ;;
  4745. # This must be glibc/ELF.
  4746. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4747. lt_cv_deplibs_check_method=pass_all
  4748. ;;
  4749. netbsd*)
  4750. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4751. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4752. else
  4753. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4754. fi
  4755. ;;
  4756. newos6*)
  4757. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4758. lt_cv_file_magic_cmd=/usr/bin/file
  4759. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4760. ;;
  4761. *nto* | *qnx*)
  4762. lt_cv_deplibs_check_method=pass_all
  4763. ;;
  4764. openbsd* | bitrig*)
  4765. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  4766. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4767. else
  4768. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4769. fi
  4770. ;;
  4771. osf3* | osf4* | osf5*)
  4772. lt_cv_deplibs_check_method=pass_all
  4773. ;;
  4774. rdos*)
  4775. lt_cv_deplibs_check_method=pass_all
  4776. ;;
  4777. solaris*)
  4778. lt_cv_deplibs_check_method=pass_all
  4779. ;;
  4780. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4781. lt_cv_deplibs_check_method=pass_all
  4782. ;;
  4783. sysv4 | sysv4.3*)
  4784. case $host_vendor in
  4785. motorola)
  4786. 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]'
  4787. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4788. ;;
  4789. ncr)
  4790. lt_cv_deplibs_check_method=pass_all
  4791. ;;
  4792. sequent)
  4793. lt_cv_file_magic_cmd='/bin/file'
  4794. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4795. ;;
  4796. sni)
  4797. lt_cv_file_magic_cmd='/bin/file'
  4798. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4799. lt_cv_file_magic_test_file=/lib/libc.so
  4800. ;;
  4801. siemens)
  4802. lt_cv_deplibs_check_method=pass_all
  4803. ;;
  4804. pc)
  4805. lt_cv_deplibs_check_method=pass_all
  4806. ;;
  4807. esac
  4808. ;;
  4809. tpf*)
  4810. lt_cv_deplibs_check_method=pass_all
  4811. ;;
  4812. os2*)
  4813. lt_cv_deplibs_check_method=pass_all
  4814. ;;
  4815. esac
  4816. fi
  4817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4818. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4819. file_magic_glob=
  4820. want_nocaseglob=no
  4821. if test "$build" = "$host"; then
  4822. case $host_os in
  4823. mingw* | pw32*)
  4824. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4825. want_nocaseglob=yes
  4826. else
  4827. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4828. fi
  4829. ;;
  4830. esac
  4831. fi
  4832. file_magic_cmd=$lt_cv_file_magic_cmd
  4833. deplibs_check_method=$lt_cv_deplibs_check_method
  4834. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4835. if test -n "$ac_tool_prefix"; then
  4836. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4837. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4839. $as_echo_n "checking for $ac_word... " >&6; }
  4840. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4841. $as_echo_n "(cached) " >&6
  4842. else
  4843. if test -n "$DLLTOOL"; then
  4844. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4845. else
  4846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4847. for as_dir in $PATH
  4848. do
  4849. IFS=$as_save_IFS
  4850. test -z "$as_dir" && as_dir=.
  4851. for ac_exec_ext in '' $ac_executable_extensions; do
  4852. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4853. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4854. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4855. break 2
  4856. fi
  4857. done
  4858. done
  4859. IFS=$as_save_IFS
  4860. fi
  4861. fi
  4862. DLLTOOL=$ac_cv_prog_DLLTOOL
  4863. if test -n "$DLLTOOL"; then
  4864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4865. $as_echo "$DLLTOOL" >&6; }
  4866. else
  4867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4868. $as_echo "no" >&6; }
  4869. fi
  4870. fi
  4871. if test -z "$ac_cv_prog_DLLTOOL"; then
  4872. ac_ct_DLLTOOL=$DLLTOOL
  4873. # Extract the first word of "dlltool", so it can be a program name with args.
  4874. set dummy dlltool; ac_word=$2
  4875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4876. $as_echo_n "checking for $ac_word... " >&6; }
  4877. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4878. $as_echo_n "(cached) " >&6
  4879. else
  4880. if test -n "$ac_ct_DLLTOOL"; then
  4881. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4882. else
  4883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4884. for as_dir in $PATH
  4885. do
  4886. IFS=$as_save_IFS
  4887. test -z "$as_dir" && as_dir=.
  4888. for ac_exec_ext in '' $ac_executable_extensions; do
  4889. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4890. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4891. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4892. break 2
  4893. fi
  4894. done
  4895. done
  4896. IFS=$as_save_IFS
  4897. fi
  4898. fi
  4899. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4900. if test -n "$ac_ct_DLLTOOL"; then
  4901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4902. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4903. else
  4904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4905. $as_echo "no" >&6; }
  4906. fi
  4907. if test "x$ac_ct_DLLTOOL" = x; then
  4908. DLLTOOL="false"
  4909. else
  4910. case $cross_compiling:$ac_tool_warned in
  4911. yes:)
  4912. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4913. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4914. ac_tool_warned=yes ;;
  4915. esac
  4916. DLLTOOL=$ac_ct_DLLTOOL
  4917. fi
  4918. else
  4919. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4920. fi
  4921. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4923. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4924. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4925. $as_echo_n "(cached) " >&6
  4926. else
  4927. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4928. case $host_os in
  4929. cygwin* | mingw* | pw32* | cegcc*)
  4930. # two different shell functions defined in ltmain.sh;
  4931. # decide which one to use based on capabilities of $DLLTOOL
  4932. case `$DLLTOOL --help 2>&1` in
  4933. *--identify-strict*)
  4934. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4935. ;;
  4936. *)
  4937. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4938. ;;
  4939. esac
  4940. ;;
  4941. *)
  4942. # fallback: assume linklib IS sharedlib
  4943. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  4944. ;;
  4945. esac
  4946. fi
  4947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4948. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4949. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4950. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4951. if test -n "$ac_tool_prefix"; then
  4952. for ac_prog in ar
  4953. do
  4954. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4955. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4957. $as_echo_n "checking for $ac_word... " >&6; }
  4958. if ${ac_cv_prog_AR+:} false; then :
  4959. $as_echo_n "(cached) " >&6
  4960. else
  4961. if test -n "$AR"; then
  4962. ac_cv_prog_AR="$AR" # Let the user override the test.
  4963. else
  4964. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4965. for as_dir in $PATH
  4966. do
  4967. IFS=$as_save_IFS
  4968. test -z "$as_dir" && as_dir=.
  4969. for ac_exec_ext in '' $ac_executable_extensions; do
  4970. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4971. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4972. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4973. break 2
  4974. fi
  4975. done
  4976. done
  4977. IFS=$as_save_IFS
  4978. fi
  4979. fi
  4980. AR=$ac_cv_prog_AR
  4981. if test -n "$AR"; then
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4983. $as_echo "$AR" >&6; }
  4984. else
  4985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4986. $as_echo "no" >&6; }
  4987. fi
  4988. test -n "$AR" && break
  4989. done
  4990. fi
  4991. if test -z "$AR"; then
  4992. ac_ct_AR=$AR
  4993. for ac_prog in ar
  4994. do
  4995. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4996. set dummy $ac_prog; ac_word=$2
  4997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4998. $as_echo_n "checking for $ac_word... " >&6; }
  4999. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5000. $as_echo_n "(cached) " >&6
  5001. else
  5002. if test -n "$ac_ct_AR"; then
  5003. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5004. else
  5005. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5006. for as_dir in $PATH
  5007. do
  5008. IFS=$as_save_IFS
  5009. test -z "$as_dir" && as_dir=.
  5010. for ac_exec_ext in '' $ac_executable_extensions; do
  5011. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5012. ac_cv_prog_ac_ct_AR="$ac_prog"
  5013. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5014. break 2
  5015. fi
  5016. done
  5017. done
  5018. IFS=$as_save_IFS
  5019. fi
  5020. fi
  5021. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5022. if test -n "$ac_ct_AR"; then
  5023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5024. $as_echo "$ac_ct_AR" >&6; }
  5025. else
  5026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5027. $as_echo "no" >&6; }
  5028. fi
  5029. test -n "$ac_ct_AR" && break
  5030. done
  5031. if test "x$ac_ct_AR" = x; then
  5032. AR="false"
  5033. else
  5034. case $cross_compiling:$ac_tool_warned in
  5035. yes:)
  5036. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5037. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5038. ac_tool_warned=yes ;;
  5039. esac
  5040. AR=$ac_ct_AR
  5041. fi
  5042. fi
  5043. : ${AR=ar}
  5044. : ${AR_FLAGS=cru}
  5045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5046. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5047. if ${lt_cv_ar_at_file+:} false; then :
  5048. $as_echo_n "(cached) " >&6
  5049. else
  5050. lt_cv_ar_at_file=no
  5051. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5052. /* end confdefs.h. */
  5053. int
  5054. main ()
  5055. {
  5056. ;
  5057. return 0;
  5058. }
  5059. _ACEOF
  5060. if ac_fn_c_try_compile "$LINENO"; then :
  5061. echo conftest.$ac_objext > conftest.lst
  5062. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5063. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5064. (eval $lt_ar_try) 2>&5
  5065. ac_status=$?
  5066. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5067. test $ac_status = 0; }
  5068. if test 0 -eq "$ac_status"; then
  5069. # Ensure the archiver fails upon bogus file names.
  5070. rm -f conftest.$ac_objext libconftest.a
  5071. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5072. (eval $lt_ar_try) 2>&5
  5073. ac_status=$?
  5074. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5075. test $ac_status = 0; }
  5076. if test 0 -ne "$ac_status"; then
  5077. lt_cv_ar_at_file=@
  5078. fi
  5079. fi
  5080. rm -f conftest.* libconftest.a
  5081. fi
  5082. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5083. fi
  5084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5085. $as_echo "$lt_cv_ar_at_file" >&6; }
  5086. if test no = "$lt_cv_ar_at_file"; then
  5087. archiver_list_spec=
  5088. else
  5089. archiver_list_spec=$lt_cv_ar_at_file
  5090. fi
  5091. if test -n "$ac_tool_prefix"; then
  5092. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5093. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5095. $as_echo_n "checking for $ac_word... " >&6; }
  5096. if ${ac_cv_prog_STRIP+:} false; then :
  5097. $as_echo_n "(cached) " >&6
  5098. else
  5099. if test -n "$STRIP"; then
  5100. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5101. else
  5102. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5103. for as_dir in $PATH
  5104. do
  5105. IFS=$as_save_IFS
  5106. test -z "$as_dir" && as_dir=.
  5107. for ac_exec_ext in '' $ac_executable_extensions; do
  5108. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5109. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5110. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5111. break 2
  5112. fi
  5113. done
  5114. done
  5115. IFS=$as_save_IFS
  5116. fi
  5117. fi
  5118. STRIP=$ac_cv_prog_STRIP
  5119. if test -n "$STRIP"; then
  5120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5121. $as_echo "$STRIP" >&6; }
  5122. else
  5123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5124. $as_echo "no" >&6; }
  5125. fi
  5126. fi
  5127. if test -z "$ac_cv_prog_STRIP"; then
  5128. ac_ct_STRIP=$STRIP
  5129. # Extract the first word of "strip", so it can be a program name with args.
  5130. set dummy strip; ac_word=$2
  5131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5132. $as_echo_n "checking for $ac_word... " >&6; }
  5133. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5134. $as_echo_n "(cached) " >&6
  5135. else
  5136. if test -n "$ac_ct_STRIP"; then
  5137. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5138. else
  5139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5140. for as_dir in $PATH
  5141. do
  5142. IFS=$as_save_IFS
  5143. test -z "$as_dir" && as_dir=.
  5144. for ac_exec_ext in '' $ac_executable_extensions; do
  5145. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5146. ac_cv_prog_ac_ct_STRIP="strip"
  5147. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5148. break 2
  5149. fi
  5150. done
  5151. done
  5152. IFS=$as_save_IFS
  5153. fi
  5154. fi
  5155. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5156. if test -n "$ac_ct_STRIP"; then
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5158. $as_echo "$ac_ct_STRIP" >&6; }
  5159. else
  5160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5161. $as_echo "no" >&6; }
  5162. fi
  5163. if test "x$ac_ct_STRIP" = x; then
  5164. STRIP=":"
  5165. else
  5166. case $cross_compiling:$ac_tool_warned in
  5167. yes:)
  5168. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5169. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5170. ac_tool_warned=yes ;;
  5171. esac
  5172. STRIP=$ac_ct_STRIP
  5173. fi
  5174. else
  5175. STRIP="$ac_cv_prog_STRIP"
  5176. fi
  5177. test -z "$STRIP" && STRIP=:
  5178. if test -n "$ac_tool_prefix"; then
  5179. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5180. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5182. $as_echo_n "checking for $ac_word... " >&6; }
  5183. if ${ac_cv_prog_RANLIB+:} false; then :
  5184. $as_echo_n "(cached) " >&6
  5185. else
  5186. if test -n "$RANLIB"; then
  5187. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5188. else
  5189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5190. for as_dir in $PATH
  5191. do
  5192. IFS=$as_save_IFS
  5193. test -z "$as_dir" && as_dir=.
  5194. for ac_exec_ext in '' $ac_executable_extensions; do
  5195. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5196. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5197. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5198. break 2
  5199. fi
  5200. done
  5201. done
  5202. IFS=$as_save_IFS
  5203. fi
  5204. fi
  5205. RANLIB=$ac_cv_prog_RANLIB
  5206. if test -n "$RANLIB"; then
  5207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5208. $as_echo "$RANLIB" >&6; }
  5209. else
  5210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5211. $as_echo "no" >&6; }
  5212. fi
  5213. fi
  5214. if test -z "$ac_cv_prog_RANLIB"; then
  5215. ac_ct_RANLIB=$RANLIB
  5216. # Extract the first word of "ranlib", so it can be a program name with args.
  5217. set dummy ranlib; ac_word=$2
  5218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5219. $as_echo_n "checking for $ac_word... " >&6; }
  5220. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5221. $as_echo_n "(cached) " >&6
  5222. else
  5223. if test -n "$ac_ct_RANLIB"; then
  5224. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5225. else
  5226. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5227. for as_dir in $PATH
  5228. do
  5229. IFS=$as_save_IFS
  5230. test -z "$as_dir" && as_dir=.
  5231. for ac_exec_ext in '' $ac_executable_extensions; do
  5232. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5233. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5234. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5235. break 2
  5236. fi
  5237. done
  5238. done
  5239. IFS=$as_save_IFS
  5240. fi
  5241. fi
  5242. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5243. if test -n "$ac_ct_RANLIB"; then
  5244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5245. $as_echo "$ac_ct_RANLIB" >&6; }
  5246. else
  5247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5248. $as_echo "no" >&6; }
  5249. fi
  5250. if test "x$ac_ct_RANLIB" = x; then
  5251. RANLIB=":"
  5252. else
  5253. case $cross_compiling:$ac_tool_warned in
  5254. yes:)
  5255. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5256. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5257. ac_tool_warned=yes ;;
  5258. esac
  5259. RANLIB=$ac_ct_RANLIB
  5260. fi
  5261. else
  5262. RANLIB="$ac_cv_prog_RANLIB"
  5263. fi
  5264. test -z "$RANLIB" && RANLIB=:
  5265. # Determine commands to create old-style static archives.
  5266. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5267. old_postinstall_cmds='chmod 644 $oldlib'
  5268. old_postuninstall_cmds=
  5269. if test -n "$RANLIB"; then
  5270. case $host_os in
  5271. bitrig* | openbsd*)
  5272. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5273. ;;
  5274. *)
  5275. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5276. ;;
  5277. esac
  5278. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5279. fi
  5280. case $host_os in
  5281. darwin*)
  5282. lock_old_archive_extraction=yes ;;
  5283. *)
  5284. lock_old_archive_extraction=no ;;
  5285. esac
  5286. # If no C compiler was specified, use CC.
  5287. LTCC=${LTCC-"$CC"}
  5288. # If no C compiler flags were specified, use CFLAGS.
  5289. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5290. # Allow CC to be a program name with arguments.
  5291. compiler=$CC
  5292. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5294. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5295. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5296. $as_echo_n "(cached) " >&6
  5297. else
  5298. # These are sane defaults that work on at least a few old systems.
  5299. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5300. # Character class describing NM global symbol codes.
  5301. symcode='[BCDEGRST]'
  5302. # Regexp to match symbols that can be accessed directly from C.
  5303. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5304. # Define system-specific variables.
  5305. case $host_os in
  5306. aix*)
  5307. symcode='[BCDT]'
  5308. ;;
  5309. cygwin* | mingw* | pw32* | cegcc*)
  5310. symcode='[ABCDGISTW]'
  5311. ;;
  5312. hpux*)
  5313. if test ia64 = "$host_cpu"; then
  5314. symcode='[ABCDEGRST]'
  5315. fi
  5316. ;;
  5317. irix* | nonstopux*)
  5318. symcode='[BCDEGRST]'
  5319. ;;
  5320. osf*)
  5321. symcode='[BCDEGQRST]'
  5322. ;;
  5323. solaris*)
  5324. symcode='[BDRT]'
  5325. ;;
  5326. sco3.2v5*)
  5327. symcode='[DT]'
  5328. ;;
  5329. sysv4.2uw2*)
  5330. symcode='[DT]'
  5331. ;;
  5332. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5333. symcode='[ABDT]'
  5334. ;;
  5335. sysv4)
  5336. symcode='[DFNSTU]'
  5337. ;;
  5338. esac
  5339. # If we're using GNU nm, then use its standard symbol codes.
  5340. case `$NM -V 2>&1` in
  5341. *GNU* | *'with BFD'*)
  5342. symcode='[ABCDGIRSTW]' ;;
  5343. esac
  5344. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5345. # Gets list of data symbols to import.
  5346. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  5347. # Adjust the below global symbol transforms to fixup imported variables.
  5348. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  5349. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  5350. lt_c_name_lib_hook="\
  5351. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  5352. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  5353. else
  5354. # Disable hooks by default.
  5355. lt_cv_sys_global_symbol_to_import=
  5356. lt_cdecl_hook=
  5357. lt_c_name_hook=
  5358. lt_c_name_lib_hook=
  5359. fi
  5360. # Transform an extracted symbol line into a proper C declaration.
  5361. # Some systems (esp. on ia64) link data and code symbols differently,
  5362. # so use this general approach.
  5363. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  5364. $lt_cdecl_hook\
  5365. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  5366. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  5367. # Transform an extracted symbol line into symbol name and symbol address
  5368. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  5369. $lt_c_name_hook\
  5370. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5371. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  5372. # Transform an extracted symbol line into symbol name with lib prefix and
  5373. # symbol address.
  5374. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  5375. $lt_c_name_lib_hook\
  5376. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  5377. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  5378. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  5379. # Handle CRLF in mingw tool chain
  5380. opt_cr=
  5381. case $build_os in
  5382. mingw*)
  5383. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5384. ;;
  5385. esac
  5386. # Try without a prefix underscore, then with it.
  5387. for ac_symprfx in "" "_"; do
  5388. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5389. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5390. # Write the raw and C identifiers.
  5391. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5392. # Fake it for dumpbin and say T for any non-static function,
  5393. # D for any global variable and I for any imported variable.
  5394. # Also find C++ and __fastcall symbols from MSVC++,
  5395. # which start with @ or ?.
  5396. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5397. " {last_section=section; section=\$ 3};"\
  5398. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5399. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5400. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  5401. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  5402. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  5403. " \$ 0!~/External *\|/{next};"\
  5404. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5405. " {if(hide[section]) next};"\
  5406. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  5407. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  5408. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  5409. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  5410. " ' prfx=^$ac_symprfx"
  5411. else
  5412. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5413. fi
  5414. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5415. # Check to see that the pipe works correctly.
  5416. pipe_works=no
  5417. rm -f conftest*
  5418. cat > conftest.$ac_ext <<_LT_EOF
  5419. #ifdef __cplusplus
  5420. extern "C" {
  5421. #endif
  5422. char nm_test_var;
  5423. void nm_test_func(void);
  5424. void nm_test_func(void){}
  5425. #ifdef __cplusplus
  5426. }
  5427. #endif
  5428. int main(){nm_test_var='a';nm_test_func();return(0);}
  5429. _LT_EOF
  5430. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5431. (eval $ac_compile) 2>&5
  5432. ac_status=$?
  5433. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5434. test $ac_status = 0; }; then
  5435. # Now try to grab the symbols.
  5436. nlist=conftest.nm
  5437. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5438. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5439. ac_status=$?
  5440. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5441. test $ac_status = 0; } && test -s "$nlist"; then
  5442. # Try sorting and uniquifying the output.
  5443. if sort "$nlist" | uniq > "$nlist"T; then
  5444. mv -f "$nlist"T "$nlist"
  5445. else
  5446. rm -f "$nlist"T
  5447. fi
  5448. # Make sure that we snagged all the symbols we need.
  5449. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5450. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5451. cat <<_LT_EOF > conftest.$ac_ext
  5452. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5453. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  5454. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  5455. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5456. # define LT_DLSYM_CONST
  5457. #elif defined __osf__
  5458. /* This system does not cope well with relocations in const data. */
  5459. # define LT_DLSYM_CONST
  5460. #else
  5461. # define LT_DLSYM_CONST const
  5462. #endif
  5463. #ifdef __cplusplus
  5464. extern "C" {
  5465. #endif
  5466. _LT_EOF
  5467. # Now generate the symbol file.
  5468. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5469. cat <<_LT_EOF >> conftest.$ac_ext
  5470. /* The mapping between symbol names and symbols. */
  5471. LT_DLSYM_CONST struct {
  5472. const char *name;
  5473. void *address;
  5474. }
  5475. lt__PROGRAM__LTX_preloaded_symbols[] =
  5476. {
  5477. { "@PROGRAM@", (void *) 0 },
  5478. _LT_EOF
  5479. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5480. cat <<\_LT_EOF >> conftest.$ac_ext
  5481. {0, (void *) 0}
  5482. };
  5483. /* This works around a problem in FreeBSD linker */
  5484. #ifdef FREEBSD_WORKAROUND
  5485. static const void *lt_preloaded_setup() {
  5486. return lt__PROGRAM__LTX_preloaded_symbols;
  5487. }
  5488. #endif
  5489. #ifdef __cplusplus
  5490. }
  5491. #endif
  5492. _LT_EOF
  5493. # Now try linking the two files.
  5494. mv conftest.$ac_objext conftstm.$ac_objext
  5495. lt_globsym_save_LIBS=$LIBS
  5496. lt_globsym_save_CFLAGS=$CFLAGS
  5497. LIBS=conftstm.$ac_objext
  5498. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5499. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5500. (eval $ac_link) 2>&5
  5501. ac_status=$?
  5502. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5503. test $ac_status = 0; } && test -s conftest$ac_exeext; then
  5504. pipe_works=yes
  5505. fi
  5506. LIBS=$lt_globsym_save_LIBS
  5507. CFLAGS=$lt_globsym_save_CFLAGS
  5508. else
  5509. echo "cannot find nm_test_func in $nlist" >&5
  5510. fi
  5511. else
  5512. echo "cannot find nm_test_var in $nlist" >&5
  5513. fi
  5514. else
  5515. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5516. fi
  5517. else
  5518. echo "$progname: failed program was:" >&5
  5519. cat conftest.$ac_ext >&5
  5520. fi
  5521. rm -rf conftest* conftst*
  5522. # Do not use the global_symbol_pipe unless it works.
  5523. if test yes = "$pipe_works"; then
  5524. break
  5525. else
  5526. lt_cv_sys_global_symbol_pipe=
  5527. fi
  5528. done
  5529. fi
  5530. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5531. lt_cv_sys_global_symbol_to_cdecl=
  5532. fi
  5533. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5535. $as_echo "failed" >&6; }
  5536. else
  5537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5538. $as_echo "ok" >&6; }
  5539. fi
  5540. # Response file support.
  5541. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5542. nm_file_list_spec='@'
  5543. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5544. nm_file_list_spec='@'
  5545. fi
  5546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5547. $as_echo_n "checking for sysroot... " >&6; }
  5548. # Check whether --with-sysroot was given.
  5549. if test "${with_sysroot+set}" = set; then :
  5550. withval=$with_sysroot;
  5551. else
  5552. with_sysroot=no
  5553. fi
  5554. lt_sysroot=
  5555. case $with_sysroot in #(
  5556. yes)
  5557. if test yes = "$GCC"; then
  5558. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5559. fi
  5560. ;; #(
  5561. /*)
  5562. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5563. ;; #(
  5564. no|'')
  5565. ;; #(
  5566. *)
  5567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
  5568. $as_echo "$with_sysroot" >&6; }
  5569. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5570. ;;
  5571. esac
  5572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5573. $as_echo "${lt_sysroot:-no}" >&6; }
  5574. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
  5575. $as_echo_n "checking for a working dd... " >&6; }
  5576. if ${ac_cv_path_lt_DD+:} false; then :
  5577. $as_echo_n "(cached) " >&6
  5578. else
  5579. printf 0123456789abcdef0123456789abcdef >conftest.i
  5580. cat conftest.i conftest.i >conftest2.i
  5581. : ${lt_DD:=$DD}
  5582. if test -z "$lt_DD"; then
  5583. ac_path_lt_DD_found=false
  5584. # Loop through the user's path and test for each of PROGNAME-LIST
  5585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5586. for as_dir in $PATH
  5587. do
  5588. IFS=$as_save_IFS
  5589. test -z "$as_dir" && as_dir=.
  5590. for ac_prog in dd; do
  5591. for ac_exec_ext in '' $ac_executable_extensions; do
  5592. ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
  5593. as_fn_executable_p "$ac_path_lt_DD" || continue
  5594. if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5595. cmp -s conftest.i conftest.out \
  5596. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  5597. fi
  5598. $ac_path_lt_DD_found && break 3
  5599. done
  5600. done
  5601. done
  5602. IFS=$as_save_IFS
  5603. if test -z "$ac_cv_path_lt_DD"; then
  5604. :
  5605. fi
  5606. else
  5607. ac_cv_path_lt_DD=$lt_DD
  5608. fi
  5609. rm -f conftest.i conftest2.i conftest.out
  5610. fi
  5611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
  5612. $as_echo "$ac_cv_path_lt_DD" >&6; }
  5613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
  5614. $as_echo_n "checking how to truncate binary pipes... " >&6; }
  5615. if ${lt_cv_truncate_bin+:} false; then :
  5616. $as_echo_n "(cached) " >&6
  5617. else
  5618. printf 0123456789abcdef0123456789abcdef >conftest.i
  5619. cat conftest.i conftest.i >conftest2.i
  5620. lt_cv_truncate_bin=
  5621. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  5622. cmp -s conftest.i conftest.out \
  5623. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  5624. fi
  5625. rm -f conftest.i conftest2.i conftest.out
  5626. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
  5627. fi
  5628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
  5629. $as_echo "$lt_cv_truncate_bin" >&6; }
  5630. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  5631. func_cc_basename ()
  5632. {
  5633. for cc_temp in $*""; do
  5634. case $cc_temp in
  5635. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  5636. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  5637. \-*) ;;
  5638. *) break;;
  5639. esac
  5640. done
  5641. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  5642. }
  5643. # Check whether --enable-libtool-lock was given.
  5644. if test "${enable_libtool_lock+set}" = set; then :
  5645. enableval=$enable_libtool_lock;
  5646. fi
  5647. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  5648. # Some flags need to be propagated to the compiler or linker for good
  5649. # libtool support.
  5650. case $host in
  5651. ia64-*-hpux*)
  5652. # Find out what ABI is being produced by ac_compile, and set mode
  5653. # options accordingly.
  5654. echo 'int i;' > conftest.$ac_ext
  5655. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5656. (eval $ac_compile) 2>&5
  5657. ac_status=$?
  5658. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5659. test $ac_status = 0; }; then
  5660. case `/usr/bin/file conftest.$ac_objext` in
  5661. *ELF-32*)
  5662. HPUX_IA64_MODE=32
  5663. ;;
  5664. *ELF-64*)
  5665. HPUX_IA64_MODE=64
  5666. ;;
  5667. esac
  5668. fi
  5669. rm -rf conftest*
  5670. ;;
  5671. *-*-irix6*)
  5672. # Find out what ABI is being produced by ac_compile, and set linker
  5673. # options accordingly.
  5674. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5675. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5676. (eval $ac_compile) 2>&5
  5677. ac_status=$?
  5678. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5679. test $ac_status = 0; }; then
  5680. if test yes = "$lt_cv_prog_gnu_ld"; then
  5681. case `/usr/bin/file conftest.$ac_objext` in
  5682. *32-bit*)
  5683. LD="${LD-ld} -melf32bsmip"
  5684. ;;
  5685. *N32*)
  5686. LD="${LD-ld} -melf32bmipn32"
  5687. ;;
  5688. *64-bit*)
  5689. LD="${LD-ld} -melf64bmip"
  5690. ;;
  5691. esac
  5692. else
  5693. case `/usr/bin/file conftest.$ac_objext` in
  5694. *32-bit*)
  5695. LD="${LD-ld} -32"
  5696. ;;
  5697. *N32*)
  5698. LD="${LD-ld} -n32"
  5699. ;;
  5700. *64-bit*)
  5701. LD="${LD-ld} -64"
  5702. ;;
  5703. esac
  5704. fi
  5705. fi
  5706. rm -rf conftest*
  5707. ;;
  5708. mips64*-*linux*)
  5709. # Find out what ABI is being produced by ac_compile, and set linker
  5710. # options accordingly.
  5711. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5712. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5713. (eval $ac_compile) 2>&5
  5714. ac_status=$?
  5715. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5716. test $ac_status = 0; }; then
  5717. emul=elf
  5718. case `/usr/bin/file conftest.$ac_objext` in
  5719. *32-bit*)
  5720. emul="${emul}32"
  5721. ;;
  5722. *64-bit*)
  5723. emul="${emul}64"
  5724. ;;
  5725. esac
  5726. case `/usr/bin/file conftest.$ac_objext` in
  5727. *MSB*)
  5728. emul="${emul}btsmip"
  5729. ;;
  5730. *LSB*)
  5731. emul="${emul}ltsmip"
  5732. ;;
  5733. esac
  5734. case `/usr/bin/file conftest.$ac_objext` in
  5735. *N32*)
  5736. emul="${emul}n32"
  5737. ;;
  5738. esac
  5739. LD="${LD-ld} -m $emul"
  5740. fi
  5741. rm -rf conftest*
  5742. ;;
  5743. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5744. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5745. # Find out what ABI is being produced by ac_compile, and set linker
  5746. # options accordingly. Note that the listed cases only cover the
  5747. # situations where additional linker options are needed (such as when
  5748. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  5749. # vice versa); the common cases where no linker options are needed do
  5750. # not appear in the list.
  5751. echo 'int i;' > conftest.$ac_ext
  5752. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5753. (eval $ac_compile) 2>&5
  5754. ac_status=$?
  5755. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5756. test $ac_status = 0; }; then
  5757. case `/usr/bin/file conftest.o` in
  5758. *32-bit*)
  5759. case $host in
  5760. x86_64-*kfreebsd*-gnu)
  5761. LD="${LD-ld} -m elf_i386_fbsd"
  5762. ;;
  5763. x86_64-*linux*)
  5764. case `/usr/bin/file conftest.o` in
  5765. *x86-64*)
  5766. LD="${LD-ld} -m elf32_x86_64"
  5767. ;;
  5768. *)
  5769. LD="${LD-ld} -m elf_i386"
  5770. ;;
  5771. esac
  5772. ;;
  5773. powerpc64le-*linux*)
  5774. LD="${LD-ld} -m elf32lppclinux"
  5775. ;;
  5776. powerpc64-*linux*)
  5777. LD="${LD-ld} -m elf32ppclinux"
  5778. ;;
  5779. s390x-*linux*)
  5780. LD="${LD-ld} -m elf_s390"
  5781. ;;
  5782. sparc64-*linux*)
  5783. LD="${LD-ld} -m elf32_sparc"
  5784. ;;
  5785. esac
  5786. ;;
  5787. *64-bit*)
  5788. case $host in
  5789. x86_64-*kfreebsd*-gnu)
  5790. LD="${LD-ld} -m elf_x86_64_fbsd"
  5791. ;;
  5792. x86_64-*linux*)
  5793. LD="${LD-ld} -m elf_x86_64"
  5794. ;;
  5795. powerpcle-*linux*)
  5796. LD="${LD-ld} -m elf64lppc"
  5797. ;;
  5798. powerpc-*linux*)
  5799. LD="${LD-ld} -m elf64ppc"
  5800. ;;
  5801. s390*-*linux*|s390*-*tpf*)
  5802. LD="${LD-ld} -m elf64_s390"
  5803. ;;
  5804. sparc*-*linux*)
  5805. LD="${LD-ld} -m elf64_sparc"
  5806. ;;
  5807. esac
  5808. ;;
  5809. esac
  5810. fi
  5811. rm -rf conftest*
  5812. ;;
  5813. *-*-sco3.2v5*)
  5814. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5815. SAVE_CFLAGS=$CFLAGS
  5816. CFLAGS="$CFLAGS -belf"
  5817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5818. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5819. if ${lt_cv_cc_needs_belf+:} false; then :
  5820. $as_echo_n "(cached) " >&6
  5821. else
  5822. ac_ext=c
  5823. ac_cpp='$CPP $CPPFLAGS'
  5824. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5825. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5826. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5828. /* end confdefs.h. */
  5829. int
  5830. main ()
  5831. {
  5832. ;
  5833. return 0;
  5834. }
  5835. _ACEOF
  5836. if ac_fn_c_try_link "$LINENO"; then :
  5837. lt_cv_cc_needs_belf=yes
  5838. else
  5839. lt_cv_cc_needs_belf=no
  5840. fi
  5841. rm -f core conftest.err conftest.$ac_objext \
  5842. conftest$ac_exeext conftest.$ac_ext
  5843. ac_ext=c
  5844. ac_cpp='$CPP $CPPFLAGS'
  5845. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5846. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5847. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5848. fi
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5850. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5851. if test yes != "$lt_cv_cc_needs_belf"; then
  5852. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5853. CFLAGS=$SAVE_CFLAGS
  5854. fi
  5855. ;;
  5856. *-*solaris*)
  5857. # Find out what ABI is being produced by ac_compile, and set linker
  5858. # options accordingly.
  5859. echo 'int i;' > conftest.$ac_ext
  5860. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5861. (eval $ac_compile) 2>&5
  5862. ac_status=$?
  5863. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5864. test $ac_status = 0; }; then
  5865. case `/usr/bin/file conftest.o` in
  5866. *64-bit*)
  5867. case $lt_cv_prog_gnu_ld in
  5868. yes*)
  5869. case $host in
  5870. i?86-*-solaris*|x86_64-*-solaris*)
  5871. LD="${LD-ld} -m elf_x86_64"
  5872. ;;
  5873. sparc*-*-solaris*)
  5874. LD="${LD-ld} -m elf64_sparc"
  5875. ;;
  5876. esac
  5877. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5878. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5879. LD=${LD-ld}_sol2
  5880. fi
  5881. ;;
  5882. *)
  5883. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5884. LD="${LD-ld} -64"
  5885. fi
  5886. ;;
  5887. esac
  5888. ;;
  5889. esac
  5890. fi
  5891. rm -rf conftest*
  5892. ;;
  5893. esac
  5894. need_locks=$enable_libtool_lock
  5895. if test -n "$ac_tool_prefix"; then
  5896. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5897. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5899. $as_echo_n "checking for $ac_word... " >&6; }
  5900. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5901. $as_echo_n "(cached) " >&6
  5902. else
  5903. if test -n "$MANIFEST_TOOL"; then
  5904. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5905. else
  5906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5907. for as_dir in $PATH
  5908. do
  5909. IFS=$as_save_IFS
  5910. test -z "$as_dir" && as_dir=.
  5911. for ac_exec_ext in '' $ac_executable_extensions; do
  5912. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5913. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5914. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5915. break 2
  5916. fi
  5917. done
  5918. done
  5919. IFS=$as_save_IFS
  5920. fi
  5921. fi
  5922. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5923. if test -n "$MANIFEST_TOOL"; then
  5924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5925. $as_echo "$MANIFEST_TOOL" >&6; }
  5926. else
  5927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5928. $as_echo "no" >&6; }
  5929. fi
  5930. fi
  5931. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5932. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5933. # Extract the first word of "mt", so it can be a program name with args.
  5934. set dummy mt; ac_word=$2
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5936. $as_echo_n "checking for $ac_word... " >&6; }
  5937. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5938. $as_echo_n "(cached) " >&6
  5939. else
  5940. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5941. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5942. else
  5943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5944. for as_dir in $PATH
  5945. do
  5946. IFS=$as_save_IFS
  5947. test -z "$as_dir" && as_dir=.
  5948. for ac_exec_ext in '' $ac_executable_extensions; do
  5949. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5950. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5951. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5952. break 2
  5953. fi
  5954. done
  5955. done
  5956. IFS=$as_save_IFS
  5957. fi
  5958. fi
  5959. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5960. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5962. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5963. else
  5964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5965. $as_echo "no" >&6; }
  5966. fi
  5967. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5968. MANIFEST_TOOL=":"
  5969. else
  5970. case $cross_compiling:$ac_tool_warned in
  5971. yes:)
  5972. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5973. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5974. ac_tool_warned=yes ;;
  5975. esac
  5976. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5977. fi
  5978. else
  5979. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5980. fi
  5981. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5983. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5984. if ${lt_cv_path_mainfest_tool+:} false; then :
  5985. $as_echo_n "(cached) " >&6
  5986. else
  5987. lt_cv_path_mainfest_tool=no
  5988. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5989. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5990. cat conftest.err >&5
  5991. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5992. lt_cv_path_mainfest_tool=yes
  5993. fi
  5994. rm -f conftest*
  5995. fi
  5996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5997. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5998. if test yes != "$lt_cv_path_mainfest_tool"; then
  5999. MANIFEST_TOOL=:
  6000. fi
  6001. case $host_os in
  6002. rhapsody* | darwin*)
  6003. if test -n "$ac_tool_prefix"; then
  6004. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6005. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6007. $as_echo_n "checking for $ac_word... " >&6; }
  6008. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6009. $as_echo_n "(cached) " >&6
  6010. else
  6011. if test -n "$DSYMUTIL"; then
  6012. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6013. else
  6014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6015. for as_dir in $PATH
  6016. do
  6017. IFS=$as_save_IFS
  6018. test -z "$as_dir" && as_dir=.
  6019. for ac_exec_ext in '' $ac_executable_extensions; do
  6020. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6021. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6022. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6023. break 2
  6024. fi
  6025. done
  6026. done
  6027. IFS=$as_save_IFS
  6028. fi
  6029. fi
  6030. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6031. if test -n "$DSYMUTIL"; then
  6032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6033. $as_echo "$DSYMUTIL" >&6; }
  6034. else
  6035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6036. $as_echo "no" >&6; }
  6037. fi
  6038. fi
  6039. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6040. ac_ct_DSYMUTIL=$DSYMUTIL
  6041. # Extract the first word of "dsymutil", so it can be a program name with args.
  6042. set dummy dsymutil; ac_word=$2
  6043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6044. $as_echo_n "checking for $ac_word... " >&6; }
  6045. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6046. $as_echo_n "(cached) " >&6
  6047. else
  6048. if test -n "$ac_ct_DSYMUTIL"; then
  6049. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6050. else
  6051. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6052. for as_dir in $PATH
  6053. do
  6054. IFS=$as_save_IFS
  6055. test -z "$as_dir" && as_dir=.
  6056. for ac_exec_ext in '' $ac_executable_extensions; do
  6057. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6058. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6059. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6060. break 2
  6061. fi
  6062. done
  6063. done
  6064. IFS=$as_save_IFS
  6065. fi
  6066. fi
  6067. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6068. if test -n "$ac_ct_DSYMUTIL"; then
  6069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6070. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6071. else
  6072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6073. $as_echo "no" >&6; }
  6074. fi
  6075. if test "x$ac_ct_DSYMUTIL" = x; then
  6076. DSYMUTIL=":"
  6077. else
  6078. case $cross_compiling:$ac_tool_warned in
  6079. yes:)
  6080. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6081. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6082. ac_tool_warned=yes ;;
  6083. esac
  6084. DSYMUTIL=$ac_ct_DSYMUTIL
  6085. fi
  6086. else
  6087. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6088. fi
  6089. if test -n "$ac_tool_prefix"; then
  6090. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6091. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6092. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6093. $as_echo_n "checking for $ac_word... " >&6; }
  6094. if ${ac_cv_prog_NMEDIT+:} false; then :
  6095. $as_echo_n "(cached) " >&6
  6096. else
  6097. if test -n "$NMEDIT"; then
  6098. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6099. else
  6100. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6101. for as_dir in $PATH
  6102. do
  6103. IFS=$as_save_IFS
  6104. test -z "$as_dir" && as_dir=.
  6105. for ac_exec_ext in '' $ac_executable_extensions; do
  6106. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6107. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6108. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6109. break 2
  6110. fi
  6111. done
  6112. done
  6113. IFS=$as_save_IFS
  6114. fi
  6115. fi
  6116. NMEDIT=$ac_cv_prog_NMEDIT
  6117. if test -n "$NMEDIT"; then
  6118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6119. $as_echo "$NMEDIT" >&6; }
  6120. else
  6121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6122. $as_echo "no" >&6; }
  6123. fi
  6124. fi
  6125. if test -z "$ac_cv_prog_NMEDIT"; then
  6126. ac_ct_NMEDIT=$NMEDIT
  6127. # Extract the first word of "nmedit", so it can be a program name with args.
  6128. set dummy nmedit; ac_word=$2
  6129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6130. $as_echo_n "checking for $ac_word... " >&6; }
  6131. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6132. $as_echo_n "(cached) " >&6
  6133. else
  6134. if test -n "$ac_ct_NMEDIT"; then
  6135. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6136. else
  6137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6138. for as_dir in $PATH
  6139. do
  6140. IFS=$as_save_IFS
  6141. test -z "$as_dir" && as_dir=.
  6142. for ac_exec_ext in '' $ac_executable_extensions; do
  6143. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6144. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6145. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6146. break 2
  6147. fi
  6148. done
  6149. done
  6150. IFS=$as_save_IFS
  6151. fi
  6152. fi
  6153. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6154. if test -n "$ac_ct_NMEDIT"; then
  6155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6156. $as_echo "$ac_ct_NMEDIT" >&6; }
  6157. else
  6158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6159. $as_echo "no" >&6; }
  6160. fi
  6161. if test "x$ac_ct_NMEDIT" = x; then
  6162. NMEDIT=":"
  6163. else
  6164. case $cross_compiling:$ac_tool_warned in
  6165. yes:)
  6166. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6167. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6168. ac_tool_warned=yes ;;
  6169. esac
  6170. NMEDIT=$ac_ct_NMEDIT
  6171. fi
  6172. else
  6173. NMEDIT="$ac_cv_prog_NMEDIT"
  6174. fi
  6175. if test -n "$ac_tool_prefix"; then
  6176. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6177. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6179. $as_echo_n "checking for $ac_word... " >&6; }
  6180. if ${ac_cv_prog_LIPO+:} false; then :
  6181. $as_echo_n "(cached) " >&6
  6182. else
  6183. if test -n "$LIPO"; then
  6184. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6185. else
  6186. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6187. for as_dir in $PATH
  6188. do
  6189. IFS=$as_save_IFS
  6190. test -z "$as_dir" && as_dir=.
  6191. for ac_exec_ext in '' $ac_executable_extensions; do
  6192. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6193. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6194. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6195. break 2
  6196. fi
  6197. done
  6198. done
  6199. IFS=$as_save_IFS
  6200. fi
  6201. fi
  6202. LIPO=$ac_cv_prog_LIPO
  6203. if test -n "$LIPO"; then
  6204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6205. $as_echo "$LIPO" >&6; }
  6206. else
  6207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6208. $as_echo "no" >&6; }
  6209. fi
  6210. fi
  6211. if test -z "$ac_cv_prog_LIPO"; then
  6212. ac_ct_LIPO=$LIPO
  6213. # Extract the first word of "lipo", so it can be a program name with args.
  6214. set dummy lipo; ac_word=$2
  6215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6216. $as_echo_n "checking for $ac_word... " >&6; }
  6217. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6218. $as_echo_n "(cached) " >&6
  6219. else
  6220. if test -n "$ac_ct_LIPO"; then
  6221. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6222. else
  6223. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6224. for as_dir in $PATH
  6225. do
  6226. IFS=$as_save_IFS
  6227. test -z "$as_dir" && as_dir=.
  6228. for ac_exec_ext in '' $ac_executable_extensions; do
  6229. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6230. ac_cv_prog_ac_ct_LIPO="lipo"
  6231. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6232. break 2
  6233. fi
  6234. done
  6235. done
  6236. IFS=$as_save_IFS
  6237. fi
  6238. fi
  6239. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6240. if test -n "$ac_ct_LIPO"; then
  6241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6242. $as_echo "$ac_ct_LIPO" >&6; }
  6243. else
  6244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6245. $as_echo "no" >&6; }
  6246. fi
  6247. if test "x$ac_ct_LIPO" = x; then
  6248. LIPO=":"
  6249. else
  6250. case $cross_compiling:$ac_tool_warned in
  6251. yes:)
  6252. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6253. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6254. ac_tool_warned=yes ;;
  6255. esac
  6256. LIPO=$ac_ct_LIPO
  6257. fi
  6258. else
  6259. LIPO="$ac_cv_prog_LIPO"
  6260. fi
  6261. if test -n "$ac_tool_prefix"; then
  6262. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6263. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6265. $as_echo_n "checking for $ac_word... " >&6; }
  6266. if ${ac_cv_prog_OTOOL+:} false; then :
  6267. $as_echo_n "(cached) " >&6
  6268. else
  6269. if test -n "$OTOOL"; then
  6270. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6271. else
  6272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6273. for as_dir in $PATH
  6274. do
  6275. IFS=$as_save_IFS
  6276. test -z "$as_dir" && as_dir=.
  6277. for ac_exec_ext in '' $ac_executable_extensions; do
  6278. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6279. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6280. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6281. break 2
  6282. fi
  6283. done
  6284. done
  6285. IFS=$as_save_IFS
  6286. fi
  6287. fi
  6288. OTOOL=$ac_cv_prog_OTOOL
  6289. if test -n "$OTOOL"; then
  6290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6291. $as_echo "$OTOOL" >&6; }
  6292. else
  6293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6294. $as_echo "no" >&6; }
  6295. fi
  6296. fi
  6297. if test -z "$ac_cv_prog_OTOOL"; then
  6298. ac_ct_OTOOL=$OTOOL
  6299. # Extract the first word of "otool", so it can be a program name with args.
  6300. set dummy otool; ac_word=$2
  6301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6302. $as_echo_n "checking for $ac_word... " >&6; }
  6303. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6304. $as_echo_n "(cached) " >&6
  6305. else
  6306. if test -n "$ac_ct_OTOOL"; then
  6307. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6308. else
  6309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6310. for as_dir in $PATH
  6311. do
  6312. IFS=$as_save_IFS
  6313. test -z "$as_dir" && as_dir=.
  6314. for ac_exec_ext in '' $ac_executable_extensions; do
  6315. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6316. ac_cv_prog_ac_ct_OTOOL="otool"
  6317. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6318. break 2
  6319. fi
  6320. done
  6321. done
  6322. IFS=$as_save_IFS
  6323. fi
  6324. fi
  6325. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6326. if test -n "$ac_ct_OTOOL"; then
  6327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6328. $as_echo "$ac_ct_OTOOL" >&6; }
  6329. else
  6330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6331. $as_echo "no" >&6; }
  6332. fi
  6333. if test "x$ac_ct_OTOOL" = x; then
  6334. OTOOL=":"
  6335. else
  6336. case $cross_compiling:$ac_tool_warned in
  6337. yes:)
  6338. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6339. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6340. ac_tool_warned=yes ;;
  6341. esac
  6342. OTOOL=$ac_ct_OTOOL
  6343. fi
  6344. else
  6345. OTOOL="$ac_cv_prog_OTOOL"
  6346. fi
  6347. if test -n "$ac_tool_prefix"; then
  6348. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6349. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6351. $as_echo_n "checking for $ac_word... " >&6; }
  6352. if ${ac_cv_prog_OTOOL64+:} false; then :
  6353. $as_echo_n "(cached) " >&6
  6354. else
  6355. if test -n "$OTOOL64"; then
  6356. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6357. else
  6358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6359. for as_dir in $PATH
  6360. do
  6361. IFS=$as_save_IFS
  6362. test -z "$as_dir" && as_dir=.
  6363. for ac_exec_ext in '' $ac_executable_extensions; do
  6364. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6365. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6366. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6367. break 2
  6368. fi
  6369. done
  6370. done
  6371. IFS=$as_save_IFS
  6372. fi
  6373. fi
  6374. OTOOL64=$ac_cv_prog_OTOOL64
  6375. if test -n "$OTOOL64"; then
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6377. $as_echo "$OTOOL64" >&6; }
  6378. else
  6379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6380. $as_echo "no" >&6; }
  6381. fi
  6382. fi
  6383. if test -z "$ac_cv_prog_OTOOL64"; then
  6384. ac_ct_OTOOL64=$OTOOL64
  6385. # Extract the first word of "otool64", so it can be a program name with args.
  6386. set dummy otool64; ac_word=$2
  6387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6388. $as_echo_n "checking for $ac_word... " >&6; }
  6389. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6390. $as_echo_n "(cached) " >&6
  6391. else
  6392. if test -n "$ac_ct_OTOOL64"; then
  6393. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6394. else
  6395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6396. for as_dir in $PATH
  6397. do
  6398. IFS=$as_save_IFS
  6399. test -z "$as_dir" && as_dir=.
  6400. for ac_exec_ext in '' $ac_executable_extensions; do
  6401. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6402. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6403. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6404. break 2
  6405. fi
  6406. done
  6407. done
  6408. IFS=$as_save_IFS
  6409. fi
  6410. fi
  6411. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6412. if test -n "$ac_ct_OTOOL64"; then
  6413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6414. $as_echo "$ac_ct_OTOOL64" >&6; }
  6415. else
  6416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6417. $as_echo "no" >&6; }
  6418. fi
  6419. if test "x$ac_ct_OTOOL64" = x; then
  6420. OTOOL64=":"
  6421. else
  6422. case $cross_compiling:$ac_tool_warned in
  6423. yes:)
  6424. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6425. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6426. ac_tool_warned=yes ;;
  6427. esac
  6428. OTOOL64=$ac_ct_OTOOL64
  6429. fi
  6430. else
  6431. OTOOL64="$ac_cv_prog_OTOOL64"
  6432. fi
  6433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6434. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6435. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6436. $as_echo_n "(cached) " >&6
  6437. else
  6438. lt_cv_apple_cc_single_mod=no
  6439. if test -z "$LT_MULTI_MODULE"; then
  6440. # By default we will add the -single_module flag. You can override
  6441. # by either setting the environment variable LT_MULTI_MODULE
  6442. # non-empty at configure time, or by adding -multi_module to the
  6443. # link flags.
  6444. rm -rf libconftest.dylib*
  6445. echo "int foo(void){return 1;}" > conftest.c
  6446. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6447. -dynamiclib -Wl,-single_module conftest.c" >&5
  6448. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6449. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6450. _lt_result=$?
  6451. # If there is a non-empty error log, and "single_module"
  6452. # appears in it, assume the flag caused a linker warning
  6453. if test -s conftest.err && $GREP single_module conftest.err; then
  6454. cat conftest.err >&5
  6455. # Otherwise, if the output was created with a 0 exit code from
  6456. # the compiler, it worked.
  6457. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  6458. lt_cv_apple_cc_single_mod=yes
  6459. else
  6460. cat conftest.err >&5
  6461. fi
  6462. rm -rf libconftest.dylib*
  6463. rm -f conftest.*
  6464. fi
  6465. fi
  6466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6467. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6469. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6470. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6471. $as_echo_n "(cached) " >&6
  6472. else
  6473. lt_cv_ld_exported_symbols_list=no
  6474. save_LDFLAGS=$LDFLAGS
  6475. echo "_main" > conftest.sym
  6476. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6478. /* end confdefs.h. */
  6479. int
  6480. main ()
  6481. {
  6482. ;
  6483. return 0;
  6484. }
  6485. _ACEOF
  6486. if ac_fn_c_try_link "$LINENO"; then :
  6487. lt_cv_ld_exported_symbols_list=yes
  6488. else
  6489. lt_cv_ld_exported_symbols_list=no
  6490. fi
  6491. rm -f core conftest.err conftest.$ac_objext \
  6492. conftest$ac_exeext conftest.$ac_ext
  6493. LDFLAGS=$save_LDFLAGS
  6494. fi
  6495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6496. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6498. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6499. if ${lt_cv_ld_force_load+:} false; then :
  6500. $as_echo_n "(cached) " >&6
  6501. else
  6502. lt_cv_ld_force_load=no
  6503. cat > conftest.c << _LT_EOF
  6504. int forced_loaded() { return 2;}
  6505. _LT_EOF
  6506. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6507. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6508. echo "$AR cru libconftest.a conftest.o" >&5
  6509. $AR cru libconftest.a conftest.o 2>&5
  6510. echo "$RANLIB libconftest.a" >&5
  6511. $RANLIB libconftest.a 2>&5
  6512. cat > conftest.c << _LT_EOF
  6513. int main() { return 0;}
  6514. _LT_EOF
  6515. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6516. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6517. _lt_result=$?
  6518. if test -s conftest.err && $GREP force_load conftest.err; then
  6519. cat conftest.err >&5
  6520. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  6521. lt_cv_ld_force_load=yes
  6522. else
  6523. cat conftest.err >&5
  6524. fi
  6525. rm -f conftest.err libconftest.a conftest conftest.c
  6526. rm -rf conftest.dSYM
  6527. fi
  6528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6529. $as_echo "$lt_cv_ld_force_load" >&6; }
  6530. case $host_os in
  6531. rhapsody* | darwin1.[012])
  6532. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  6533. darwin1.*)
  6534. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6535. darwin*) # darwin 5.x on
  6536. # if running on 10.5 or later, the deployment target defaults
  6537. # to the OS version, if on x86, and 10.4, the deployment
  6538. # target defaults to 10.4. Don't you love it?
  6539. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6540. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6541. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6542. 10.[012][,.]*)
  6543. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  6544. 10.*)
  6545. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  6546. esac
  6547. ;;
  6548. esac
  6549. if test yes = "$lt_cv_apple_cc_single_mod"; then
  6550. _lt_dar_single_mod='$single_module'
  6551. fi
  6552. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  6553. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  6554. else
  6555. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  6556. fi
  6557. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  6558. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6559. else
  6560. _lt_dsymutil=
  6561. fi
  6562. ;;
  6563. esac
  6564. # func_munge_path_list VARIABLE PATH
  6565. # -----------------------------------
  6566. # VARIABLE is name of variable containing _space_ separated list of
  6567. # directories to be munged by the contents of PATH, which is string
  6568. # having a format:
  6569. # "DIR[:DIR]:"
  6570. # string "DIR[ DIR]" will be prepended to VARIABLE
  6571. # ":DIR[:DIR]"
  6572. # string "DIR[ DIR]" will be appended to VARIABLE
  6573. # "DIRP[:DIRP]::[DIRA:]DIRA"
  6574. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  6575. # "DIRA[ DIRA]" will be appended to VARIABLE
  6576. # "DIR[:DIR]"
  6577. # VARIABLE will be replaced by "DIR[ DIR]"
  6578. func_munge_path_list ()
  6579. {
  6580. case x$2 in
  6581. x)
  6582. ;;
  6583. *:)
  6584. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  6585. ;;
  6586. x:*)
  6587. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  6588. ;;
  6589. *::*)
  6590. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  6591. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  6592. ;;
  6593. *)
  6594. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  6595. ;;
  6596. esac
  6597. }
  6598. ac_ext=c
  6599. ac_cpp='$CPP $CPPFLAGS'
  6600. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6601. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6602. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6604. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6605. # On Suns, sometimes $CPP names a directory.
  6606. if test -n "$CPP" && test -d "$CPP"; then
  6607. CPP=
  6608. fi
  6609. if test -z "$CPP"; then
  6610. if ${ac_cv_prog_CPP+:} false; then :
  6611. $as_echo_n "(cached) " >&6
  6612. else
  6613. # Double quotes because CPP needs to be expanded
  6614. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6615. do
  6616. ac_preproc_ok=false
  6617. for ac_c_preproc_warn_flag in '' yes
  6618. do
  6619. # Use a header file that comes with gcc, so configuring glibc
  6620. # with a fresh cross-compiler works.
  6621. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6622. # <limits.h> exists even on freestanding compilers.
  6623. # On the NeXT, cc -E runs the code through the compiler's parser,
  6624. # not just through cpp. "Syntax error" is here to catch this case.
  6625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6626. /* end confdefs.h. */
  6627. #ifdef __STDC__
  6628. # include <limits.h>
  6629. #else
  6630. # include <assert.h>
  6631. #endif
  6632. Syntax error
  6633. _ACEOF
  6634. if ac_fn_c_try_cpp "$LINENO"; then :
  6635. else
  6636. # Broken: fails on valid input.
  6637. continue
  6638. fi
  6639. rm -f conftest.err conftest.i conftest.$ac_ext
  6640. # OK, works on sane cases. Now check whether nonexistent headers
  6641. # can be detected and how.
  6642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6643. /* end confdefs.h. */
  6644. #include <ac_nonexistent.h>
  6645. _ACEOF
  6646. if ac_fn_c_try_cpp "$LINENO"; then :
  6647. # Broken: success on invalid input.
  6648. continue
  6649. else
  6650. # Passes both tests.
  6651. ac_preproc_ok=:
  6652. break
  6653. fi
  6654. rm -f conftest.err conftest.i conftest.$ac_ext
  6655. done
  6656. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6657. rm -f conftest.i conftest.err conftest.$ac_ext
  6658. if $ac_preproc_ok; then :
  6659. break
  6660. fi
  6661. done
  6662. ac_cv_prog_CPP=$CPP
  6663. fi
  6664. CPP=$ac_cv_prog_CPP
  6665. else
  6666. ac_cv_prog_CPP=$CPP
  6667. fi
  6668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6669. $as_echo "$CPP" >&6; }
  6670. ac_preproc_ok=false
  6671. for ac_c_preproc_warn_flag in '' yes
  6672. do
  6673. # Use a header file that comes with gcc, so configuring glibc
  6674. # with a fresh cross-compiler works.
  6675. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6676. # <limits.h> exists even on freestanding compilers.
  6677. # On the NeXT, cc -E runs the code through the compiler's parser,
  6678. # not just through cpp. "Syntax error" is here to catch this case.
  6679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6680. /* end confdefs.h. */
  6681. #ifdef __STDC__
  6682. # include <limits.h>
  6683. #else
  6684. # include <assert.h>
  6685. #endif
  6686. Syntax error
  6687. _ACEOF
  6688. if ac_fn_c_try_cpp "$LINENO"; then :
  6689. else
  6690. # Broken: fails on valid input.
  6691. continue
  6692. fi
  6693. rm -f conftest.err conftest.i conftest.$ac_ext
  6694. # OK, works on sane cases. Now check whether nonexistent headers
  6695. # can be detected and how.
  6696. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6697. /* end confdefs.h. */
  6698. #include <ac_nonexistent.h>
  6699. _ACEOF
  6700. if ac_fn_c_try_cpp "$LINENO"; then :
  6701. # Broken: success on invalid input.
  6702. continue
  6703. else
  6704. # Passes both tests.
  6705. ac_preproc_ok=:
  6706. break
  6707. fi
  6708. rm -f conftest.err conftest.i conftest.$ac_ext
  6709. done
  6710. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6711. rm -f conftest.i conftest.err conftest.$ac_ext
  6712. if $ac_preproc_ok; then :
  6713. else
  6714. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6715. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6716. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6717. See \`config.log' for more details" "$LINENO" 5; }
  6718. fi
  6719. ac_ext=c
  6720. ac_cpp='$CPP $CPPFLAGS'
  6721. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6722. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6723. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6725. $as_echo_n "checking for ANSI C header files... " >&6; }
  6726. if ${ac_cv_header_stdc+:} false; then :
  6727. $as_echo_n "(cached) " >&6
  6728. else
  6729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6730. /* end confdefs.h. */
  6731. #include <stdlib.h>
  6732. #include <stdarg.h>
  6733. #include <string.h>
  6734. #include <float.h>
  6735. int
  6736. main ()
  6737. {
  6738. ;
  6739. return 0;
  6740. }
  6741. _ACEOF
  6742. if ac_fn_c_try_compile "$LINENO"; then :
  6743. ac_cv_header_stdc=yes
  6744. else
  6745. ac_cv_header_stdc=no
  6746. fi
  6747. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6748. if test $ac_cv_header_stdc = yes; then
  6749. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6751. /* end confdefs.h. */
  6752. #include <string.h>
  6753. _ACEOF
  6754. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6755. $EGREP "memchr" >/dev/null 2>&1; then :
  6756. else
  6757. ac_cv_header_stdc=no
  6758. fi
  6759. rm -f conftest*
  6760. fi
  6761. if test $ac_cv_header_stdc = yes; then
  6762. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6764. /* end confdefs.h. */
  6765. #include <stdlib.h>
  6766. _ACEOF
  6767. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6768. $EGREP "free" >/dev/null 2>&1; then :
  6769. else
  6770. ac_cv_header_stdc=no
  6771. fi
  6772. rm -f conftest*
  6773. fi
  6774. if test $ac_cv_header_stdc = yes; then
  6775. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6776. if test "$cross_compiling" = yes; then :
  6777. :
  6778. else
  6779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6780. /* end confdefs.h. */
  6781. #include <ctype.h>
  6782. #include <stdlib.h>
  6783. #if ((' ' & 0x0FF) == 0x020)
  6784. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6785. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6786. #else
  6787. # define ISLOWER(c) \
  6788. (('a' <= (c) && (c) <= 'i') \
  6789. || ('j' <= (c) && (c) <= 'r') \
  6790. || ('s' <= (c) && (c) <= 'z'))
  6791. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6792. #endif
  6793. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6794. int
  6795. main ()
  6796. {
  6797. int i;
  6798. for (i = 0; i < 256; i++)
  6799. if (XOR (islower (i), ISLOWER (i))
  6800. || toupper (i) != TOUPPER (i))
  6801. return 2;
  6802. return 0;
  6803. }
  6804. _ACEOF
  6805. if ac_fn_c_try_run "$LINENO"; then :
  6806. else
  6807. ac_cv_header_stdc=no
  6808. fi
  6809. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6810. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6811. fi
  6812. fi
  6813. fi
  6814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6815. $as_echo "$ac_cv_header_stdc" >&6; }
  6816. if test $ac_cv_header_stdc = yes; then
  6817. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6818. fi
  6819. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6820. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6821. inttypes.h stdint.h unistd.h
  6822. do :
  6823. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6824. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6825. "
  6826. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6827. cat >>confdefs.h <<_ACEOF
  6828. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6829. _ACEOF
  6830. fi
  6831. done
  6832. for ac_header in dlfcn.h
  6833. do :
  6834. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6835. "
  6836. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6837. cat >>confdefs.h <<_ACEOF
  6838. #define HAVE_DLFCN_H 1
  6839. _ACEOF
  6840. fi
  6841. done
  6842. # Set options
  6843. enable_dlopen=no
  6844. enable_win32_dll=no
  6845. # Check whether --enable-shared was given.
  6846. if test "${enable_shared+set}" = set; then :
  6847. enableval=$enable_shared; p=${PACKAGE-default}
  6848. case $enableval in
  6849. yes) enable_shared=yes ;;
  6850. no) enable_shared=no ;;
  6851. *)
  6852. enable_shared=no
  6853. # Look at the argument we got. We use all the common list separators.
  6854. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6855. for pkg in $enableval; do
  6856. IFS=$lt_save_ifs
  6857. if test "X$pkg" = "X$p"; then
  6858. enable_shared=yes
  6859. fi
  6860. done
  6861. IFS=$lt_save_ifs
  6862. ;;
  6863. esac
  6864. else
  6865. enable_shared=yes
  6866. fi
  6867. # Check whether --enable-static was given.
  6868. if test "${enable_static+set}" = set; then :
  6869. enableval=$enable_static; p=${PACKAGE-default}
  6870. case $enableval in
  6871. yes) enable_static=yes ;;
  6872. no) enable_static=no ;;
  6873. *)
  6874. enable_static=no
  6875. # Look at the argument we got. We use all the common list separators.
  6876. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6877. for pkg in $enableval; do
  6878. IFS=$lt_save_ifs
  6879. if test "X$pkg" = "X$p"; then
  6880. enable_static=yes
  6881. fi
  6882. done
  6883. IFS=$lt_save_ifs
  6884. ;;
  6885. esac
  6886. else
  6887. enable_static=yes
  6888. fi
  6889. # Check whether --with-pic was given.
  6890. if test "${with_pic+set}" = set; then :
  6891. withval=$with_pic; lt_p=${PACKAGE-default}
  6892. case $withval in
  6893. yes|no) pic_mode=$withval ;;
  6894. *)
  6895. pic_mode=default
  6896. # Look at the argument we got. We use all the common list separators.
  6897. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6898. for lt_pkg in $withval; do
  6899. IFS=$lt_save_ifs
  6900. if test "X$lt_pkg" = "X$lt_p"; then
  6901. pic_mode=yes
  6902. fi
  6903. done
  6904. IFS=$lt_save_ifs
  6905. ;;
  6906. esac
  6907. else
  6908. pic_mode=default
  6909. fi
  6910. # Check whether --enable-fast-install was given.
  6911. if test "${enable_fast_install+set}" = set; then :
  6912. enableval=$enable_fast_install; p=${PACKAGE-default}
  6913. case $enableval in
  6914. yes) enable_fast_install=yes ;;
  6915. no) enable_fast_install=no ;;
  6916. *)
  6917. enable_fast_install=no
  6918. # Look at the argument we got. We use all the common list separators.
  6919. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  6920. for pkg in $enableval; do
  6921. IFS=$lt_save_ifs
  6922. if test "X$pkg" = "X$p"; then
  6923. enable_fast_install=yes
  6924. fi
  6925. done
  6926. IFS=$lt_save_ifs
  6927. ;;
  6928. esac
  6929. else
  6930. enable_fast_install=yes
  6931. fi
  6932. shared_archive_member_spec=
  6933. case $host,$enable_shared in
  6934. power*-*-aix[5-9]*,yes)
  6935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
  6936. $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
  6937. # Check whether --with-aix-soname was given.
  6938. if test "${with_aix_soname+set}" = set; then :
  6939. withval=$with_aix_soname; case $withval in
  6940. aix|svr4|both)
  6941. ;;
  6942. *)
  6943. as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
  6944. ;;
  6945. esac
  6946. lt_cv_with_aix_soname=$with_aix_soname
  6947. else
  6948. if ${lt_cv_with_aix_soname+:} false; then :
  6949. $as_echo_n "(cached) " >&6
  6950. else
  6951. lt_cv_with_aix_soname=aix
  6952. fi
  6953. with_aix_soname=$lt_cv_with_aix_soname
  6954. fi
  6955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
  6956. $as_echo "$with_aix_soname" >&6; }
  6957. if test aix != "$with_aix_soname"; then
  6958. # For the AIX way of multilib, we name the shared archive member
  6959. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  6960. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  6961. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  6962. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  6963. if test 64 = "${OBJECT_MODE-32}"; then
  6964. shared_archive_member_spec=shr_64
  6965. else
  6966. shared_archive_member_spec=shr
  6967. fi
  6968. fi
  6969. ;;
  6970. *)
  6971. with_aix_soname=aix
  6972. ;;
  6973. esac
  6974. # This can be used to rebuild libtool when needed
  6975. LIBTOOL_DEPS=$ltmain
  6976. # Always use our own libtool.
  6977. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6978. test -z "$LN_S" && LN_S="ln -s"
  6979. if test -n "${ZSH_VERSION+set}"; then
  6980. setopt NO_GLOB_SUBST
  6981. fi
  6982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6983. $as_echo_n "checking for objdir... " >&6; }
  6984. if ${lt_cv_objdir+:} false; then :
  6985. $as_echo_n "(cached) " >&6
  6986. else
  6987. rm -f .libs 2>/dev/null
  6988. mkdir .libs 2>/dev/null
  6989. if test -d .libs; then
  6990. lt_cv_objdir=.libs
  6991. else
  6992. # MS-DOS does not allow filenames that begin with a dot.
  6993. lt_cv_objdir=_libs
  6994. fi
  6995. rmdir .libs 2>/dev/null
  6996. fi
  6997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6998. $as_echo "$lt_cv_objdir" >&6; }
  6999. objdir=$lt_cv_objdir
  7000. cat >>confdefs.h <<_ACEOF
  7001. #define LT_OBJDIR "$lt_cv_objdir/"
  7002. _ACEOF
  7003. case $host_os in
  7004. aix3*)
  7005. # AIX sometimes has problems with the GCC collect2 program. For some
  7006. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7007. # vanish in a puff of smoke.
  7008. if test set != "${COLLECT_NAMES+set}"; then
  7009. COLLECT_NAMES=
  7010. export COLLECT_NAMES
  7011. fi
  7012. ;;
  7013. esac
  7014. # Global variables:
  7015. ofile=libtool
  7016. can_build_shared=yes
  7017. # All known linkers require a '.a' archive for static linking (except MSVC,
  7018. # which needs '.lib').
  7019. libext=a
  7020. with_gnu_ld=$lt_cv_prog_gnu_ld
  7021. old_CC=$CC
  7022. old_CFLAGS=$CFLAGS
  7023. # Set sane defaults for various variables
  7024. test -z "$CC" && CC=cc
  7025. test -z "$LTCC" && LTCC=$CC
  7026. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7027. test -z "$LD" && LD=ld
  7028. test -z "$ac_objext" && ac_objext=o
  7029. func_cc_basename $compiler
  7030. cc_basename=$func_cc_basename_result
  7031. # Only perform the check for file, if the check method requires it
  7032. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7033. case $deplibs_check_method in
  7034. file_magic*)
  7035. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7037. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7038. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7039. $as_echo_n "(cached) " >&6
  7040. else
  7041. case $MAGIC_CMD in
  7042. [\\/*] | ?:[\\/]*)
  7043. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7044. ;;
  7045. *)
  7046. lt_save_MAGIC_CMD=$MAGIC_CMD
  7047. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7048. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7049. for ac_dir in $ac_dummy; do
  7050. IFS=$lt_save_ifs
  7051. test -z "$ac_dir" && ac_dir=.
  7052. if test -f "$ac_dir/${ac_tool_prefix}file"; then
  7053. lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
  7054. if test -n "$file_magic_test_file"; then
  7055. case $deplibs_check_method in
  7056. "file_magic "*)
  7057. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7058. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7059. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7060. $EGREP "$file_magic_regex" > /dev/null; then
  7061. :
  7062. else
  7063. cat <<_LT_EOF 1>&2
  7064. *** Warning: the command libtool uses to detect shared libraries,
  7065. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7066. *** The result is that libtool may fail to recognize shared libraries
  7067. *** as such. This will affect the creation of libtool libraries that
  7068. *** depend on shared libraries, but programs linked with such libtool
  7069. *** libraries will work regardless of this problem. Nevertheless, you
  7070. *** may want to report the problem to your system manager and/or to
  7071. *** bug-libtool@gnu.org
  7072. _LT_EOF
  7073. fi ;;
  7074. esac
  7075. fi
  7076. break
  7077. fi
  7078. done
  7079. IFS=$lt_save_ifs
  7080. MAGIC_CMD=$lt_save_MAGIC_CMD
  7081. ;;
  7082. esac
  7083. fi
  7084. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7085. if test -n "$MAGIC_CMD"; then
  7086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7087. $as_echo "$MAGIC_CMD" >&6; }
  7088. else
  7089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7090. $as_echo "no" >&6; }
  7091. fi
  7092. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7093. if test -n "$ac_tool_prefix"; then
  7094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7095. $as_echo_n "checking for file... " >&6; }
  7096. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7097. $as_echo_n "(cached) " >&6
  7098. else
  7099. case $MAGIC_CMD in
  7100. [\\/*] | ?:[\\/]*)
  7101. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  7102. ;;
  7103. *)
  7104. lt_save_MAGIC_CMD=$MAGIC_CMD
  7105. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  7106. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7107. for ac_dir in $ac_dummy; do
  7108. IFS=$lt_save_ifs
  7109. test -z "$ac_dir" && ac_dir=.
  7110. if test -f "$ac_dir/file"; then
  7111. lt_cv_path_MAGIC_CMD=$ac_dir/"file"
  7112. if test -n "$file_magic_test_file"; then
  7113. case $deplibs_check_method in
  7114. "file_magic "*)
  7115. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7116. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7117. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7118. $EGREP "$file_magic_regex" > /dev/null; then
  7119. :
  7120. else
  7121. cat <<_LT_EOF 1>&2
  7122. *** Warning: the command libtool uses to detect shared libraries,
  7123. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7124. *** The result is that libtool may fail to recognize shared libraries
  7125. *** as such. This will affect the creation of libtool libraries that
  7126. *** depend on shared libraries, but programs linked with such libtool
  7127. *** libraries will work regardless of this problem. Nevertheless, you
  7128. *** may want to report the problem to your system manager and/or to
  7129. *** bug-libtool@gnu.org
  7130. _LT_EOF
  7131. fi ;;
  7132. esac
  7133. fi
  7134. break
  7135. fi
  7136. done
  7137. IFS=$lt_save_ifs
  7138. MAGIC_CMD=$lt_save_MAGIC_CMD
  7139. ;;
  7140. esac
  7141. fi
  7142. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  7143. if test -n "$MAGIC_CMD"; then
  7144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7145. $as_echo "$MAGIC_CMD" >&6; }
  7146. else
  7147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7148. $as_echo "no" >&6; }
  7149. fi
  7150. else
  7151. MAGIC_CMD=:
  7152. fi
  7153. fi
  7154. fi
  7155. ;;
  7156. esac
  7157. # Use C for the default configuration in the libtool script
  7158. lt_save_CC=$CC
  7159. ac_ext=c
  7160. ac_cpp='$CPP $CPPFLAGS'
  7161. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7162. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7163. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7164. # Source file extension for C test sources.
  7165. ac_ext=c
  7166. # Object file extension for compiled C test sources.
  7167. objext=o
  7168. objext=$objext
  7169. # Code to be used in simple compile tests
  7170. lt_simple_compile_test_code="int some_variable = 0;"
  7171. # Code to be used in simple link tests
  7172. lt_simple_link_test_code='int main(){return(0);}'
  7173. # If no C compiler was specified, use CC.
  7174. LTCC=${LTCC-"$CC"}
  7175. # If no C compiler flags were specified, use CFLAGS.
  7176. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7177. # Allow CC to be a program name with arguments.
  7178. compiler=$CC
  7179. # Save the default compiler, since it gets overwritten when the other
  7180. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7181. compiler_DEFAULT=$CC
  7182. # save warnings/boilerplate of simple test code
  7183. ac_outfile=conftest.$ac_objext
  7184. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7185. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7186. _lt_compiler_boilerplate=`cat conftest.err`
  7187. $RM conftest*
  7188. ac_outfile=conftest.$ac_objext
  7189. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7190. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7191. _lt_linker_boilerplate=`cat conftest.err`
  7192. $RM -r conftest*
  7193. if test -n "$compiler"; then
  7194. lt_prog_compiler_no_builtin_flag=
  7195. if test yes = "$GCC"; then
  7196. case $cc_basename in
  7197. nvcc*)
  7198. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7199. *)
  7200. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7201. esac
  7202. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7203. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7204. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7205. $as_echo_n "(cached) " >&6
  7206. else
  7207. lt_cv_prog_compiler_rtti_exceptions=no
  7208. ac_outfile=conftest.$ac_objext
  7209. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7210. lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
  7211. # Insert the option either (1) after the last *FLAGS variable, or
  7212. # (2) before a word containing "conftest.", or (3) at the end.
  7213. # Note that $ac_compile itself does not contain backslashes and begins
  7214. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7215. # The option is referenced via a variable to avoid confusing sed.
  7216. lt_compile=`echo "$ac_compile" | $SED \
  7217. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7218. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7219. -e 's:$: $lt_compiler_flag:'`
  7220. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7221. (eval "$lt_compile" 2>conftest.err)
  7222. ac_status=$?
  7223. cat conftest.err >&5
  7224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7225. if (exit $ac_status) && test -s "$ac_outfile"; then
  7226. # The compiler can only warn and ignore the option if not recognized
  7227. # So say no if there are warnings other than the usual output.
  7228. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7229. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7230. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7231. lt_cv_prog_compiler_rtti_exceptions=yes
  7232. fi
  7233. fi
  7234. $RM conftest*
  7235. fi
  7236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7237. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7238. if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
  7239. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7240. else
  7241. :
  7242. fi
  7243. fi
  7244. lt_prog_compiler_wl=
  7245. lt_prog_compiler_pic=
  7246. lt_prog_compiler_static=
  7247. if test yes = "$GCC"; then
  7248. lt_prog_compiler_wl='-Wl,'
  7249. lt_prog_compiler_static='-static'
  7250. case $host_os in
  7251. aix*)
  7252. # All AIX code is PIC.
  7253. if test ia64 = "$host_cpu"; then
  7254. # AIX 5 now supports IA64 processor
  7255. lt_prog_compiler_static='-Bstatic'
  7256. fi
  7257. lt_prog_compiler_pic='-fPIC'
  7258. ;;
  7259. amigaos*)
  7260. case $host_cpu in
  7261. powerpc)
  7262. # see comment about AmigaOS4 .so support
  7263. lt_prog_compiler_pic='-fPIC'
  7264. ;;
  7265. m68k)
  7266. # FIXME: we need at least 68020 code to build shared libraries, but
  7267. # adding the '-m68020' flag to GCC prevents building anything better,
  7268. # like '-m68040'.
  7269. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7270. ;;
  7271. esac
  7272. ;;
  7273. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7274. # PIC is the default for these OSes.
  7275. ;;
  7276. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7277. # This hack is so that the source file can tell whether it is being
  7278. # built for inclusion in a dll (and should export symbols for example).
  7279. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7280. # (--disable-auto-import) libraries
  7281. lt_prog_compiler_pic='-DDLL_EXPORT'
  7282. case $host_os in
  7283. os2*)
  7284. lt_prog_compiler_static='$wl-static'
  7285. ;;
  7286. esac
  7287. ;;
  7288. darwin* | rhapsody*)
  7289. # PIC is the default on this platform
  7290. # Common symbols not allowed in MH_DYLIB files
  7291. lt_prog_compiler_pic='-fno-common'
  7292. ;;
  7293. haiku*)
  7294. # PIC is the default for Haiku.
  7295. # The "-static" flag exists, but is broken.
  7296. lt_prog_compiler_static=
  7297. ;;
  7298. hpux*)
  7299. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7300. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7301. # sets the default TLS model and affects inlining.
  7302. case $host_cpu in
  7303. hppa*64*)
  7304. # +Z the default
  7305. ;;
  7306. *)
  7307. lt_prog_compiler_pic='-fPIC'
  7308. ;;
  7309. esac
  7310. ;;
  7311. interix[3-9]*)
  7312. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7313. # Instead, we relocate shared libraries at runtime.
  7314. ;;
  7315. msdosdjgpp*)
  7316. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7317. # on systems that don't support them.
  7318. lt_prog_compiler_can_build_shared=no
  7319. enable_shared=no
  7320. ;;
  7321. *nto* | *qnx*)
  7322. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7323. # it will coredump.
  7324. lt_prog_compiler_pic='-fPIC -shared'
  7325. ;;
  7326. sysv4*MP*)
  7327. if test -d /usr/nec; then
  7328. lt_prog_compiler_pic=-Kconform_pic
  7329. fi
  7330. ;;
  7331. *)
  7332. lt_prog_compiler_pic='-fPIC'
  7333. ;;
  7334. esac
  7335. case $cc_basename in
  7336. nvcc*) # Cuda Compiler Driver 2.2
  7337. lt_prog_compiler_wl='-Xlinker '
  7338. if test -n "$lt_prog_compiler_pic"; then
  7339. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7340. fi
  7341. ;;
  7342. esac
  7343. else
  7344. # PORTME Check for flag to pass linker flags through the system compiler.
  7345. case $host_os in
  7346. aix*)
  7347. lt_prog_compiler_wl='-Wl,'
  7348. if test ia64 = "$host_cpu"; then
  7349. # AIX 5 now supports IA64 processor
  7350. lt_prog_compiler_static='-Bstatic'
  7351. else
  7352. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7353. fi
  7354. ;;
  7355. darwin* | rhapsody*)
  7356. # PIC is the default on this platform
  7357. # Common symbols not allowed in MH_DYLIB files
  7358. lt_prog_compiler_pic='-fno-common'
  7359. case $cc_basename in
  7360. nagfor*)
  7361. # NAG Fortran compiler
  7362. lt_prog_compiler_wl='-Wl,-Wl,,'
  7363. lt_prog_compiler_pic='-PIC'
  7364. lt_prog_compiler_static='-Bstatic'
  7365. ;;
  7366. esac
  7367. ;;
  7368. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7369. # This hack is so that the source file can tell whether it is being
  7370. # built for inclusion in a dll (and should export symbols for example).
  7371. lt_prog_compiler_pic='-DDLL_EXPORT'
  7372. case $host_os in
  7373. os2*)
  7374. lt_prog_compiler_static='$wl-static'
  7375. ;;
  7376. esac
  7377. ;;
  7378. hpux9* | hpux10* | hpux11*)
  7379. lt_prog_compiler_wl='-Wl,'
  7380. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7381. # not for PA HP-UX.
  7382. case $host_cpu in
  7383. hppa*64*|ia64*)
  7384. # +Z the default
  7385. ;;
  7386. *)
  7387. lt_prog_compiler_pic='+Z'
  7388. ;;
  7389. esac
  7390. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7391. lt_prog_compiler_static='$wl-a ${wl}archive'
  7392. ;;
  7393. irix5* | irix6* | nonstopux*)
  7394. lt_prog_compiler_wl='-Wl,'
  7395. # PIC (with -KPIC) is the default.
  7396. lt_prog_compiler_static='-non_shared'
  7397. ;;
  7398. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  7399. case $cc_basename in
  7400. # old Intel for x86_64, which still supported -KPIC.
  7401. ecc*)
  7402. lt_prog_compiler_wl='-Wl,'
  7403. lt_prog_compiler_pic='-KPIC'
  7404. lt_prog_compiler_static='-static'
  7405. ;;
  7406. # icc used to be incompatible with GCC.
  7407. # ICC 10 doesn't accept -KPIC any more.
  7408. icc* | ifort*)
  7409. lt_prog_compiler_wl='-Wl,'
  7410. lt_prog_compiler_pic='-fPIC'
  7411. lt_prog_compiler_static='-static'
  7412. ;;
  7413. # Lahey Fortran 8.1.
  7414. lf95*)
  7415. lt_prog_compiler_wl='-Wl,'
  7416. lt_prog_compiler_pic='--shared'
  7417. lt_prog_compiler_static='--static'
  7418. ;;
  7419. nagfor*)
  7420. # NAG Fortran compiler
  7421. lt_prog_compiler_wl='-Wl,-Wl,,'
  7422. lt_prog_compiler_pic='-PIC'
  7423. lt_prog_compiler_static='-Bstatic'
  7424. ;;
  7425. tcc*)
  7426. # Fabrice Bellard et al's Tiny C Compiler
  7427. lt_prog_compiler_wl='-Wl,'
  7428. lt_prog_compiler_pic='-fPIC'
  7429. lt_prog_compiler_static='-static'
  7430. ;;
  7431. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7432. # Portland Group compilers (*not* the Pentium gcc compiler,
  7433. # which looks to be a dead project)
  7434. lt_prog_compiler_wl='-Wl,'
  7435. lt_prog_compiler_pic='-fpic'
  7436. lt_prog_compiler_static='-Bstatic'
  7437. ;;
  7438. ccc*)
  7439. lt_prog_compiler_wl='-Wl,'
  7440. # All Alpha code is PIC.
  7441. lt_prog_compiler_static='-non_shared'
  7442. ;;
  7443. xl* | bgxl* | bgf* | mpixl*)
  7444. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7445. lt_prog_compiler_wl='-Wl,'
  7446. lt_prog_compiler_pic='-qpic'
  7447. lt_prog_compiler_static='-qstaticlink'
  7448. ;;
  7449. *)
  7450. case `$CC -V 2>&1 | sed 5q` in
  7451. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7452. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7453. lt_prog_compiler_pic='-KPIC'
  7454. lt_prog_compiler_static='-Bstatic'
  7455. lt_prog_compiler_wl=''
  7456. ;;
  7457. *Sun\ F* | *Sun*Fortran*)
  7458. lt_prog_compiler_pic='-KPIC'
  7459. lt_prog_compiler_static='-Bstatic'
  7460. lt_prog_compiler_wl='-Qoption ld '
  7461. ;;
  7462. *Sun\ C*)
  7463. # Sun C 5.9
  7464. lt_prog_compiler_pic='-KPIC'
  7465. lt_prog_compiler_static='-Bstatic'
  7466. lt_prog_compiler_wl='-Wl,'
  7467. ;;
  7468. *Intel*\ [CF]*Compiler*)
  7469. lt_prog_compiler_wl='-Wl,'
  7470. lt_prog_compiler_pic='-fPIC'
  7471. lt_prog_compiler_static='-static'
  7472. ;;
  7473. *Portland\ Group*)
  7474. lt_prog_compiler_wl='-Wl,'
  7475. lt_prog_compiler_pic='-fpic'
  7476. lt_prog_compiler_static='-Bstatic'
  7477. ;;
  7478. esac
  7479. ;;
  7480. esac
  7481. ;;
  7482. newsos6)
  7483. lt_prog_compiler_pic='-KPIC'
  7484. lt_prog_compiler_static='-Bstatic'
  7485. ;;
  7486. *nto* | *qnx*)
  7487. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7488. # it will coredump.
  7489. lt_prog_compiler_pic='-fPIC -shared'
  7490. ;;
  7491. osf3* | osf4* | osf5*)
  7492. lt_prog_compiler_wl='-Wl,'
  7493. # All OSF/1 code is PIC.
  7494. lt_prog_compiler_static='-non_shared'
  7495. ;;
  7496. rdos*)
  7497. lt_prog_compiler_static='-non_shared'
  7498. ;;
  7499. solaris*)
  7500. lt_prog_compiler_pic='-KPIC'
  7501. lt_prog_compiler_static='-Bstatic'
  7502. case $cc_basename in
  7503. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7504. lt_prog_compiler_wl='-Qoption ld ';;
  7505. *)
  7506. lt_prog_compiler_wl='-Wl,';;
  7507. esac
  7508. ;;
  7509. sunos4*)
  7510. lt_prog_compiler_wl='-Qoption ld '
  7511. lt_prog_compiler_pic='-PIC'
  7512. lt_prog_compiler_static='-Bstatic'
  7513. ;;
  7514. sysv4 | sysv4.2uw2* | sysv4.3*)
  7515. lt_prog_compiler_wl='-Wl,'
  7516. lt_prog_compiler_pic='-KPIC'
  7517. lt_prog_compiler_static='-Bstatic'
  7518. ;;
  7519. sysv4*MP*)
  7520. if test -d /usr/nec; then
  7521. lt_prog_compiler_pic='-Kconform_pic'
  7522. lt_prog_compiler_static='-Bstatic'
  7523. fi
  7524. ;;
  7525. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7526. lt_prog_compiler_wl='-Wl,'
  7527. lt_prog_compiler_pic='-KPIC'
  7528. lt_prog_compiler_static='-Bstatic'
  7529. ;;
  7530. unicos*)
  7531. lt_prog_compiler_wl='-Wl,'
  7532. lt_prog_compiler_can_build_shared=no
  7533. ;;
  7534. uts4*)
  7535. lt_prog_compiler_pic='-pic'
  7536. lt_prog_compiler_static='-Bstatic'
  7537. ;;
  7538. *)
  7539. lt_prog_compiler_can_build_shared=no
  7540. ;;
  7541. esac
  7542. fi
  7543. case $host_os in
  7544. # For platforms that do not support PIC, -DPIC is meaningless:
  7545. *djgpp*)
  7546. lt_prog_compiler_pic=
  7547. ;;
  7548. *)
  7549. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7550. ;;
  7551. esac
  7552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7553. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7554. if ${lt_cv_prog_compiler_pic+:} false; then :
  7555. $as_echo_n "(cached) " >&6
  7556. else
  7557. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7558. fi
  7559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7560. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7561. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7562. #
  7563. # Check to make sure the PIC flag actually works.
  7564. #
  7565. if test -n "$lt_prog_compiler_pic"; then
  7566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7567. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7568. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7569. $as_echo_n "(cached) " >&6
  7570. else
  7571. lt_cv_prog_compiler_pic_works=no
  7572. ac_outfile=conftest.$ac_objext
  7573. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7574. lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
  7575. # Insert the option either (1) after the last *FLAGS variable, or
  7576. # (2) before a word containing "conftest.", or (3) at the end.
  7577. # Note that $ac_compile itself does not contain backslashes and begins
  7578. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7579. # The option is referenced via a variable to avoid confusing sed.
  7580. lt_compile=`echo "$ac_compile" | $SED \
  7581. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7582. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7583. -e 's:$: $lt_compiler_flag:'`
  7584. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7585. (eval "$lt_compile" 2>conftest.err)
  7586. ac_status=$?
  7587. cat conftest.err >&5
  7588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7589. if (exit $ac_status) && test -s "$ac_outfile"; then
  7590. # The compiler can only warn and ignore the option if not recognized
  7591. # So say no if there are warnings other than the usual output.
  7592. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7593. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7594. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7595. lt_cv_prog_compiler_pic_works=yes
  7596. fi
  7597. fi
  7598. $RM conftest*
  7599. fi
  7600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7601. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7602. if test yes = "$lt_cv_prog_compiler_pic_works"; then
  7603. case $lt_prog_compiler_pic in
  7604. "" | " "*) ;;
  7605. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7606. esac
  7607. else
  7608. lt_prog_compiler_pic=
  7609. lt_prog_compiler_can_build_shared=no
  7610. fi
  7611. fi
  7612. #
  7613. # Check to make sure the static flag actually works.
  7614. #
  7615. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7617. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7618. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7619. $as_echo_n "(cached) " >&6
  7620. else
  7621. lt_cv_prog_compiler_static_works=no
  7622. save_LDFLAGS=$LDFLAGS
  7623. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7624. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7625. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7626. # The linker can only warn and ignore the option if not recognized
  7627. # So say no if there are warnings
  7628. if test -s conftest.err; then
  7629. # Append any errors to the config.log.
  7630. cat conftest.err 1>&5
  7631. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7632. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7633. if diff conftest.exp conftest.er2 >/dev/null; then
  7634. lt_cv_prog_compiler_static_works=yes
  7635. fi
  7636. else
  7637. lt_cv_prog_compiler_static_works=yes
  7638. fi
  7639. fi
  7640. $RM -r conftest*
  7641. LDFLAGS=$save_LDFLAGS
  7642. fi
  7643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7644. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7645. if test yes = "$lt_cv_prog_compiler_static_works"; then
  7646. :
  7647. else
  7648. lt_prog_compiler_static=
  7649. fi
  7650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7651. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7652. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7653. $as_echo_n "(cached) " >&6
  7654. else
  7655. lt_cv_prog_compiler_c_o=no
  7656. $RM -r conftest 2>/dev/null
  7657. mkdir conftest
  7658. cd conftest
  7659. mkdir out
  7660. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7661. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7662. # Insert the option either (1) after the last *FLAGS variable, or
  7663. # (2) before a word containing "conftest.", or (3) at the end.
  7664. # Note that $ac_compile itself does not contain backslashes and begins
  7665. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7666. lt_compile=`echo "$ac_compile" | $SED \
  7667. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7668. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7669. -e 's:$: $lt_compiler_flag:'`
  7670. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7671. (eval "$lt_compile" 2>out/conftest.err)
  7672. ac_status=$?
  7673. cat out/conftest.err >&5
  7674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7675. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7676. then
  7677. # The compiler can only warn and ignore the option if not recognized
  7678. # So say no if there are warnings
  7679. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7680. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7681. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7682. lt_cv_prog_compiler_c_o=yes
  7683. fi
  7684. fi
  7685. chmod u+w . 2>&5
  7686. $RM conftest*
  7687. # SGI C++ compiler will create directory out/ii_files/ for
  7688. # template instantiation
  7689. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7690. $RM out/* && rmdir out
  7691. cd ..
  7692. $RM -r conftest
  7693. $RM conftest*
  7694. fi
  7695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7696. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7698. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7699. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7700. $as_echo_n "(cached) " >&6
  7701. else
  7702. lt_cv_prog_compiler_c_o=no
  7703. $RM -r conftest 2>/dev/null
  7704. mkdir conftest
  7705. cd conftest
  7706. mkdir out
  7707. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7708. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7709. # Insert the option either (1) after the last *FLAGS variable, or
  7710. # (2) before a word containing "conftest.", or (3) at the end.
  7711. # Note that $ac_compile itself does not contain backslashes and begins
  7712. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7713. lt_compile=`echo "$ac_compile" | $SED \
  7714. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7715. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7716. -e 's:$: $lt_compiler_flag:'`
  7717. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7718. (eval "$lt_compile" 2>out/conftest.err)
  7719. ac_status=$?
  7720. cat out/conftest.err >&5
  7721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7722. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7723. then
  7724. # The compiler can only warn and ignore the option if not recognized
  7725. # So say no if there are warnings
  7726. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7727. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7728. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7729. lt_cv_prog_compiler_c_o=yes
  7730. fi
  7731. fi
  7732. chmod u+w . 2>&5
  7733. $RM conftest*
  7734. # SGI C++ compiler will create directory out/ii_files/ for
  7735. # template instantiation
  7736. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7737. $RM out/* && rmdir out
  7738. cd ..
  7739. $RM -r conftest
  7740. $RM conftest*
  7741. fi
  7742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7743. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7744. hard_links=nottested
  7745. if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
  7746. # do not overwrite the value of need_locks provided by the user
  7747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7748. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7749. hard_links=yes
  7750. $RM conftest*
  7751. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7752. touch conftest.a
  7753. ln conftest.a conftest.b 2>&5 || hard_links=no
  7754. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7756. $as_echo "$hard_links" >&6; }
  7757. if test no = "$hard_links"; then
  7758. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
  7759. $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
  7760. need_locks=warn
  7761. fi
  7762. else
  7763. need_locks=no
  7764. fi
  7765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7766. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7767. runpath_var=
  7768. allow_undefined_flag=
  7769. always_export_symbols=no
  7770. archive_cmds=
  7771. archive_expsym_cmds=
  7772. compiler_needs_object=no
  7773. enable_shared_with_static_runtimes=no
  7774. export_dynamic_flag_spec=
  7775. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7776. hardcode_automatic=no
  7777. hardcode_direct=no
  7778. hardcode_direct_absolute=no
  7779. hardcode_libdir_flag_spec=
  7780. hardcode_libdir_separator=
  7781. hardcode_minus_L=no
  7782. hardcode_shlibpath_var=unsupported
  7783. inherit_rpath=no
  7784. link_all_deplibs=unknown
  7785. module_cmds=
  7786. module_expsym_cmds=
  7787. old_archive_from_new_cmds=
  7788. old_archive_from_expsyms_cmds=
  7789. thread_safe_flag_spec=
  7790. whole_archive_flag_spec=
  7791. # include_expsyms should be a list of space-separated symbols to be *always*
  7792. # included in the symbol list
  7793. include_expsyms=
  7794. # exclude_expsyms can be an extended regexp of symbols to exclude
  7795. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  7796. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  7797. # as well as any symbol that contains 'd'.
  7798. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7799. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7800. # platforms (ab)use it in PIC code, but their linkers get confused if
  7801. # the symbol is explicitly referenced. Since portable code cannot
  7802. # rely on this symbol name, it's probably fine to never include it in
  7803. # preloaded symbol tables.
  7804. # Exclude shared library initialization/finalization symbols.
  7805. extract_expsyms_cmds=
  7806. case $host_os in
  7807. cygwin* | mingw* | pw32* | cegcc*)
  7808. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7809. # When not using gcc, we currently assume that we are using
  7810. # Microsoft Visual C++.
  7811. if test yes != "$GCC"; then
  7812. with_gnu_ld=no
  7813. fi
  7814. ;;
  7815. interix*)
  7816. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7817. with_gnu_ld=yes
  7818. ;;
  7819. openbsd* | bitrig*)
  7820. with_gnu_ld=no
  7821. ;;
  7822. esac
  7823. ld_shlibs=yes
  7824. # On some targets, GNU ld is compatible enough with the native linker
  7825. # that we're better off using the native interface for both.
  7826. lt_use_gnu_ld_interface=no
  7827. if test yes = "$with_gnu_ld"; then
  7828. case $host_os in
  7829. aix*)
  7830. # The AIX port of GNU ld has always aspired to compatibility
  7831. # with the native linker. However, as the warning in the GNU ld
  7832. # block says, versions before 2.19.5* couldn't really create working
  7833. # shared libraries, regardless of the interface used.
  7834. case `$LD -v 2>&1` in
  7835. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7836. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7837. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7838. *)
  7839. lt_use_gnu_ld_interface=yes
  7840. ;;
  7841. esac
  7842. ;;
  7843. *)
  7844. lt_use_gnu_ld_interface=yes
  7845. ;;
  7846. esac
  7847. fi
  7848. if test yes = "$lt_use_gnu_ld_interface"; then
  7849. # If archive_cmds runs LD, not CC, wlarc should be empty
  7850. wlarc='$wl'
  7851. # Set some defaults for GNU ld with shared library support. These
  7852. # are reset later if shared libraries are not supported. Putting them
  7853. # here allows them to be overridden if necessary.
  7854. runpath_var=LD_RUN_PATH
  7855. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  7856. export_dynamic_flag_spec='$wl--export-dynamic'
  7857. # ancient GNU ld didn't support --whole-archive et. al.
  7858. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7859. whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  7860. else
  7861. whole_archive_flag_spec=
  7862. fi
  7863. supports_anon_versioning=no
  7864. case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
  7865. *GNU\ gold*) supports_anon_versioning=yes ;;
  7866. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7867. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7868. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7869. *\ 2.11.*) ;; # other 2.11 versions
  7870. *) supports_anon_versioning=yes ;;
  7871. esac
  7872. # See if GNU ld supports shared libraries.
  7873. case $host_os in
  7874. aix[3-9]*)
  7875. # On AIX/PPC, the GNU linker is very broken
  7876. if test ia64 != "$host_cpu"; then
  7877. ld_shlibs=no
  7878. cat <<_LT_EOF 1>&2
  7879. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7880. *** to be unable to reliably create shared libraries on AIX.
  7881. *** Therefore, libtool is disabling shared libraries support. If you
  7882. *** really care for shared libraries, you may want to install binutils
  7883. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7884. *** You will then need to restart the configuration process.
  7885. _LT_EOF
  7886. fi
  7887. ;;
  7888. amigaos*)
  7889. case $host_cpu in
  7890. powerpc)
  7891. # see comment about AmigaOS4 .so support
  7892. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7893. archive_expsym_cmds=''
  7894. ;;
  7895. m68k)
  7896. 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)'
  7897. hardcode_libdir_flag_spec='-L$libdir'
  7898. hardcode_minus_L=yes
  7899. ;;
  7900. esac
  7901. ;;
  7902. beos*)
  7903. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7904. allow_undefined_flag=unsupported
  7905. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7906. # support --undefined. This deserves some investigation. FIXME
  7907. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7908. else
  7909. ld_shlibs=no
  7910. fi
  7911. ;;
  7912. cygwin* | mingw* | pw32* | cegcc*)
  7913. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7914. # as there is no search path for DLLs.
  7915. hardcode_libdir_flag_spec='-L$libdir'
  7916. export_dynamic_flag_spec='$wl--export-all-symbols'
  7917. allow_undefined_flag=unsupported
  7918. always_export_symbols=no
  7919. enable_shared_with_static_runtimes=yes
  7920. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  7921. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7922. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7923. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7924. # If the export-symbols file already is a .def file, use it as
  7925. # is; otherwise, prepend EXPORTS...
  7926. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  7927. cp $export_symbols $output_objdir/$soname.def;
  7928. else
  7929. echo EXPORTS > $output_objdir/$soname.def;
  7930. cat $export_symbols >> $output_objdir/$soname.def;
  7931. fi~
  7932. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7933. else
  7934. ld_shlibs=no
  7935. fi
  7936. ;;
  7937. haiku*)
  7938. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  7939. link_all_deplibs=yes
  7940. ;;
  7941. os2*)
  7942. hardcode_libdir_flag_spec='-L$libdir'
  7943. hardcode_minus_L=yes
  7944. allow_undefined_flag=unsupported
  7945. shrext_cmds=.dll
  7946. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7947. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7948. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7949. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7950. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  7951. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7952. emximp -o $lib $output_objdir/$libname.def'
  7953. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  7954. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  7955. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  7956. $ECHO EXPORTS >> $output_objdir/$libname.def~
  7957. prefix_cmds="$SED"~
  7958. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  7959. prefix_cmds="$prefix_cmds -e 1d";
  7960. fi~
  7961. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  7962. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  7963. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  7964. emximp -o $lib $output_objdir/$libname.def'
  7965. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  7966. enable_shared_with_static_runtimes=yes
  7967. ;;
  7968. interix[3-9]*)
  7969. hardcode_direct=no
  7970. hardcode_shlibpath_var=no
  7971. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  7972. export_dynamic_flag_spec='$wl-E'
  7973. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7974. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7975. # default) and relocated if they conflict, which is a slow very memory
  7976. # consuming and fragmenting process. To avoid this, we pick a random,
  7977. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7978. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7979. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7980. archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7981. ;;
  7982. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7983. tmp_diet=no
  7984. if test linux-dietlibc = "$host_os"; then
  7985. case $cc_basename in
  7986. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7987. esac
  7988. fi
  7989. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7990. && test no = "$tmp_diet"
  7991. then
  7992. tmp_addflag=' $pic_flag'
  7993. tmp_sharedflag='-shared'
  7994. case $cc_basename,$host_cpu in
  7995. pgcc*) # Portland Group C compiler
  7996. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  7997. tmp_addflag=' $pic_flag'
  7998. ;;
  7999. pgf77* | pgf90* | pgf95* | pgfortran*)
  8000. # Portland Group f77 and f90 compilers
  8001. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8002. tmp_addflag=' $pic_flag -Mnomain' ;;
  8003. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8004. tmp_addflag=' -i_dynamic' ;;
  8005. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8006. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8007. ifc* | ifort*) # Intel Fortran compiler
  8008. tmp_addflag=' -nofor_main' ;;
  8009. lf95*) # Lahey Fortran 8.1
  8010. whole_archive_flag_spec=
  8011. tmp_sharedflag='--shared' ;;
  8012. nagfor*) # NAGFOR 5.3
  8013. tmp_sharedflag='-Wl,-shared' ;;
  8014. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8015. tmp_sharedflag='-qmkshrobj'
  8016. tmp_addflag= ;;
  8017. nvcc*) # Cuda Compiler Driver 2.2
  8018. whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8019. compiler_needs_object=yes
  8020. ;;
  8021. esac
  8022. case `$CC -V 2>&1 | sed 5q` in
  8023. *Sun\ C*) # Sun C 5.9
  8024. whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
  8025. compiler_needs_object=yes
  8026. tmp_sharedflag='-G' ;;
  8027. *Sun\ F*) # Sun Fortran 8.3
  8028. tmp_sharedflag='-G' ;;
  8029. esac
  8030. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8031. if test yes = "$supports_anon_versioning"; then
  8032. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8033. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8034. echo "local: *; };" >> $output_objdir/$libname.ver~
  8035. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  8036. fi
  8037. case $cc_basename in
  8038. tcc*)
  8039. export_dynamic_flag_spec='-rdynamic'
  8040. ;;
  8041. xlf* | bgf* | bgxlf* | mpixlf*)
  8042. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8043. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8044. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8045. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8046. if test yes = "$supports_anon_versioning"; then
  8047. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8048. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8049. echo "local: *; };" >> $output_objdir/$libname.ver~
  8050. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8051. fi
  8052. ;;
  8053. esac
  8054. else
  8055. ld_shlibs=no
  8056. fi
  8057. ;;
  8058. netbsd*)
  8059. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8060. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8061. wlarc=
  8062. else
  8063. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8064. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8065. fi
  8066. ;;
  8067. solaris*)
  8068. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8069. ld_shlibs=no
  8070. cat <<_LT_EOF 1>&2
  8071. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8072. *** create shared libraries on Solaris systems. Therefore, libtool
  8073. *** is disabling shared libraries support. We urge you to upgrade GNU
  8074. *** binutils to release 2.9.1 or newer. Another option is to modify
  8075. *** your PATH or compiler configuration so that the native linker is
  8076. *** used, and then restart.
  8077. _LT_EOF
  8078. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8079. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8080. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8081. else
  8082. ld_shlibs=no
  8083. fi
  8084. ;;
  8085. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8086. case `$LD -v 2>&1` in
  8087. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8088. ld_shlibs=no
  8089. cat <<_LT_EOF 1>&2
  8090. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  8091. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8092. *** is disabling shared libraries support. We urge you to upgrade GNU
  8093. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8094. *** your PATH or compiler configuration so that the native linker is
  8095. *** used, and then restart.
  8096. _LT_EOF
  8097. ;;
  8098. *)
  8099. # For security reasons, it is highly recommended that you always
  8100. # use absolute paths for naming shared libraries, and exclude the
  8101. # DT_RUNPATH tag from executables and libraries. But doing so
  8102. # requires that you compile everything twice, which is a pain.
  8103. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8104. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8105. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8106. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8107. else
  8108. ld_shlibs=no
  8109. fi
  8110. ;;
  8111. esac
  8112. ;;
  8113. sunos4*)
  8114. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8115. wlarc=
  8116. hardcode_direct=yes
  8117. hardcode_shlibpath_var=no
  8118. ;;
  8119. *)
  8120. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8121. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8122. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
  8123. else
  8124. ld_shlibs=no
  8125. fi
  8126. ;;
  8127. esac
  8128. if test no = "$ld_shlibs"; then
  8129. runpath_var=
  8130. hardcode_libdir_flag_spec=
  8131. export_dynamic_flag_spec=
  8132. whole_archive_flag_spec=
  8133. fi
  8134. else
  8135. # PORTME fill in a description of your system's linker (not GNU ld)
  8136. case $host_os in
  8137. aix3*)
  8138. allow_undefined_flag=unsupported
  8139. always_export_symbols=yes
  8140. 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'
  8141. # Note: this linker hardcodes the directories in LIBPATH if there
  8142. # are no directories specified by -L.
  8143. hardcode_minus_L=yes
  8144. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  8145. # Neither direct hardcoding nor static linking is supported with a
  8146. # broken collect2.
  8147. hardcode_direct=unsupported
  8148. fi
  8149. ;;
  8150. aix[4-9]*)
  8151. if test ia64 = "$host_cpu"; then
  8152. # On IA64, the linker does run time linking by default, so we don't
  8153. # have to do anything special.
  8154. aix_use_runtimelinking=no
  8155. exp_sym_flag='-Bexport'
  8156. no_entry_flag=
  8157. else
  8158. # If we're using GNU nm, then we don't want the "-C" option.
  8159. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  8160. # Without the "-l" option, or with the "-B" option, AIX nm treats
  8161. # weak defined symbols like other global defined symbols, whereas
  8162. # GNU nm marks them as "W".
  8163. # While the 'weak' keyword is ignored in the Export File, we need
  8164. # it in the Import File for the 'aix-soname' feature, so we have
  8165. # to replace the "-B" option with "-P" for AIX nm.
  8166. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8167. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  8168. else
  8169. export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  8170. fi
  8171. aix_use_runtimelinking=no
  8172. # Test if we are trying to use run time linking or normal
  8173. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8174. # have runtime linking enabled, and use it for executables.
  8175. # For shared libraries, we enable/disable runtime linking
  8176. # depending on the kind of the shared library created -
  8177. # when "with_aix_soname,aix_use_runtimelinking" is:
  8178. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  8179. # "aix,yes" lib.so shared, rtl:yes, for executables
  8180. # lib.a static archive
  8181. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  8182. # lib.a(lib.so.V) shared, rtl:no, for executables
  8183. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  8184. # lib.a(lib.so.V) shared, rtl:no
  8185. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  8186. # lib.a static archive
  8187. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8188. for ld_flag in $LDFLAGS; do
  8189. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  8190. aix_use_runtimelinking=yes
  8191. break
  8192. fi
  8193. done
  8194. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  8195. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  8196. # so we don't have lib.a shared libs to link our executables.
  8197. # We have to force runtime linking in this case.
  8198. aix_use_runtimelinking=yes
  8199. LDFLAGS="$LDFLAGS -Wl,-brtl"
  8200. fi
  8201. ;;
  8202. esac
  8203. exp_sym_flag='-bexport'
  8204. no_entry_flag='-bnoentry'
  8205. fi
  8206. # When large executables or shared objects are built, AIX ld can
  8207. # have problems creating the table of contents. If linking a library
  8208. # or program results in "error TOC overflow" add -mminimal-toc to
  8209. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8210. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8211. archive_cmds=''
  8212. hardcode_direct=yes
  8213. hardcode_direct_absolute=yes
  8214. hardcode_libdir_separator=':'
  8215. link_all_deplibs=yes
  8216. file_list_spec='$wl-f,'
  8217. case $with_aix_soname,$aix_use_runtimelinking in
  8218. aix,*) ;; # traditional, no import file
  8219. svr4,* | *,yes) # use import file
  8220. # The Import File defines what to hardcode.
  8221. hardcode_direct=no
  8222. hardcode_direct_absolute=no
  8223. ;;
  8224. esac
  8225. if test yes = "$GCC"; then
  8226. case $host_os in aix4.[012]|aix4.[012].*)
  8227. # We only want to do this on AIX 4.2 and lower, the check
  8228. # below for broken collect2 doesn't work under 4.3+
  8229. collect2name=`$CC -print-prog-name=collect2`
  8230. if test -f "$collect2name" &&
  8231. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8232. then
  8233. # We have reworked collect2
  8234. :
  8235. else
  8236. # We have old collect2
  8237. hardcode_direct=unsupported
  8238. # It fails to find uninstalled libraries when the uninstalled
  8239. # path is not listed in the libpath. Setting hardcode_minus_L
  8240. # to unsupported forces relinking
  8241. hardcode_minus_L=yes
  8242. hardcode_libdir_flag_spec='-L$libdir'
  8243. hardcode_libdir_separator=
  8244. fi
  8245. ;;
  8246. esac
  8247. shared_flag='-shared'
  8248. if test yes = "$aix_use_runtimelinking"; then
  8249. shared_flag="$shared_flag "'$wl-G'
  8250. fi
  8251. # Need to ensure runtime linking is disabled for the traditional
  8252. # shared library, or the linker may eventually find shared libraries
  8253. # /with/ Import File - we do not want to mix them.
  8254. shared_flag_aix='-shared'
  8255. shared_flag_svr4='-shared $wl-G'
  8256. else
  8257. # not using gcc
  8258. if test ia64 = "$host_cpu"; then
  8259. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8260. # chokes on -Wl,-G. The following line is correct:
  8261. shared_flag='-G'
  8262. else
  8263. if test yes = "$aix_use_runtimelinking"; then
  8264. shared_flag='$wl-G'
  8265. else
  8266. shared_flag='$wl-bM:SRE'
  8267. fi
  8268. shared_flag_aix='$wl-bM:SRE'
  8269. shared_flag_svr4='$wl-G'
  8270. fi
  8271. fi
  8272. export_dynamic_flag_spec='$wl-bexpall'
  8273. # It seems that -bexpall does not export symbols beginning with
  8274. # underscore (_), so it is better to generate a list of symbols to export.
  8275. always_export_symbols=yes
  8276. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  8277. # Warning - without using the other runtime loading flags (-brtl),
  8278. # -berok will link without error, but may produce a broken library.
  8279. allow_undefined_flag='-berok'
  8280. # Determine the default libpath from the value encoded in an
  8281. # empty executable.
  8282. if test set = "${lt_cv_aix_libpath+set}"; then
  8283. aix_libpath=$lt_cv_aix_libpath
  8284. else
  8285. if ${lt_cv_aix_libpath_+:} false; then :
  8286. $as_echo_n "(cached) " >&6
  8287. else
  8288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8289. /* end confdefs.h. */
  8290. int
  8291. main ()
  8292. {
  8293. ;
  8294. return 0;
  8295. }
  8296. _ACEOF
  8297. if ac_fn_c_try_link "$LINENO"; then :
  8298. lt_aix_libpath_sed='
  8299. /Import File Strings/,/^$/ {
  8300. /^0/ {
  8301. s/^0 *\([^ ]*\) *$/\1/
  8302. p
  8303. }
  8304. }'
  8305. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8306. # Check for a 64-bit object if we didn't find anything.
  8307. if test -z "$lt_cv_aix_libpath_"; then
  8308. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8309. fi
  8310. fi
  8311. rm -f core conftest.err conftest.$ac_objext \
  8312. conftest$ac_exeext conftest.$ac_ext
  8313. if test -z "$lt_cv_aix_libpath_"; then
  8314. lt_cv_aix_libpath_=/usr/lib:/lib
  8315. fi
  8316. fi
  8317. aix_libpath=$lt_cv_aix_libpath_
  8318. fi
  8319. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8320. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  8321. else
  8322. if test ia64 = "$host_cpu"; then
  8323. hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
  8324. allow_undefined_flag="-z nodefs"
  8325. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
  8326. else
  8327. # Determine the default libpath from the value encoded in an
  8328. # empty executable.
  8329. if test set = "${lt_cv_aix_libpath+set}"; then
  8330. aix_libpath=$lt_cv_aix_libpath
  8331. else
  8332. if ${lt_cv_aix_libpath_+:} false; then :
  8333. $as_echo_n "(cached) " >&6
  8334. else
  8335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8336. /* end confdefs.h. */
  8337. int
  8338. main ()
  8339. {
  8340. ;
  8341. return 0;
  8342. }
  8343. _ACEOF
  8344. if ac_fn_c_try_link "$LINENO"; then :
  8345. lt_aix_libpath_sed='
  8346. /Import File Strings/,/^$/ {
  8347. /^0/ {
  8348. s/^0 *\([^ ]*\) *$/\1/
  8349. p
  8350. }
  8351. }'
  8352. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8353. # Check for a 64-bit object if we didn't find anything.
  8354. if test -z "$lt_cv_aix_libpath_"; then
  8355. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8356. fi
  8357. fi
  8358. rm -f core conftest.err conftest.$ac_objext \
  8359. conftest$ac_exeext conftest.$ac_ext
  8360. if test -z "$lt_cv_aix_libpath_"; then
  8361. lt_cv_aix_libpath_=/usr/lib:/lib
  8362. fi
  8363. fi
  8364. aix_libpath=$lt_cv_aix_libpath_
  8365. fi
  8366. hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
  8367. # Warning - without using the other run time loading flags,
  8368. # -berok will link without error, but may produce a broken library.
  8369. no_undefined_flag=' $wl-bernotok'
  8370. allow_undefined_flag=' $wl-berok'
  8371. if test yes = "$with_gnu_ld"; then
  8372. # We only use this code for GNU lds that support --whole-archive.
  8373. whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
  8374. else
  8375. # Exported symbols can be pulled into shared objects from archives
  8376. whole_archive_flag_spec='$convenience'
  8377. fi
  8378. archive_cmds_need_lc=yes
  8379. archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  8380. # -brtl affects multiple linker settings, -berok does not and is overridden later
  8381. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
  8382. if test svr4 != "$with_aix_soname"; then
  8383. # This is similar to how AIX traditionally builds its shared libraries.
  8384. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  8385. fi
  8386. if test aix != "$with_aix_soname"; then
  8387. archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  8388. else
  8389. # used by -dlpreopen to get the symbols
  8390. archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  8391. fi
  8392. archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
  8393. fi
  8394. fi
  8395. ;;
  8396. amigaos*)
  8397. case $host_cpu in
  8398. powerpc)
  8399. # see comment about AmigaOS4 .so support
  8400. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  8401. archive_expsym_cmds=''
  8402. ;;
  8403. m68k)
  8404. 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)'
  8405. hardcode_libdir_flag_spec='-L$libdir'
  8406. hardcode_minus_L=yes
  8407. ;;
  8408. esac
  8409. ;;
  8410. bsdi[45]*)
  8411. export_dynamic_flag_spec=-rdynamic
  8412. ;;
  8413. cygwin* | mingw* | pw32* | cegcc*)
  8414. # When not using gcc, we currently assume that we are using
  8415. # Microsoft Visual C++.
  8416. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8417. # no search path for DLLs.
  8418. case $cc_basename in
  8419. cl*)
  8420. # Native MSVC
  8421. hardcode_libdir_flag_spec=' '
  8422. allow_undefined_flag=unsupported
  8423. always_export_symbols=yes
  8424. file_list_spec='@'
  8425. # Tell ltmain to make .lib files, not .a files.
  8426. libext=lib
  8427. # Tell ltmain to make .dll files, not .so files.
  8428. shrext_cmds=.dll
  8429. # FIXME: Setting linknames here is a bad hack.
  8430. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  8431. archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
  8432. cp "$export_symbols" "$output_objdir/$soname.def";
  8433. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  8434. else
  8435. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  8436. fi~
  8437. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8438. linknames='
  8439. # The linker will not automatically build a static lib if we build a DLL.
  8440. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8441. enable_shared_with_static_runtimes=yes
  8442. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8443. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8444. # Don't use ranlib
  8445. old_postinstall_cmds='chmod 644 $oldlib'
  8446. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8447. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8448. case $lt_outputfile in
  8449. *.exe|*.EXE) ;;
  8450. *)
  8451. lt_outputfile=$lt_outputfile.exe
  8452. lt_tool_outputfile=$lt_tool_outputfile.exe
  8453. ;;
  8454. esac~
  8455. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  8456. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8457. $RM "$lt_outputfile.manifest";
  8458. fi'
  8459. ;;
  8460. *)
  8461. # Assume MSVC wrapper
  8462. hardcode_libdir_flag_spec=' '
  8463. allow_undefined_flag=unsupported
  8464. # Tell ltmain to make .lib files, not .a files.
  8465. libext=lib
  8466. # Tell ltmain to make .dll files, not .so files.
  8467. shrext_cmds=.dll
  8468. # FIXME: Setting linknames here is a bad hack.
  8469. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8470. # The linker will automatically build a .lib file if we build a DLL.
  8471. old_archive_from_new_cmds='true'
  8472. # FIXME: Should let the user specify the lib program.
  8473. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8474. enable_shared_with_static_runtimes=yes
  8475. ;;
  8476. esac
  8477. ;;
  8478. darwin* | rhapsody*)
  8479. archive_cmds_need_lc=no
  8480. hardcode_direct=no
  8481. hardcode_automatic=yes
  8482. hardcode_shlibpath_var=unsupported
  8483. if test yes = "$lt_cv_ld_force_load"; then
  8484. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8485. else
  8486. whole_archive_flag_spec=''
  8487. fi
  8488. link_all_deplibs=yes
  8489. allow_undefined_flag=$_lt_dar_allow_undefined
  8490. case $cc_basename in
  8491. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  8492. *) _lt_dar_can_shared=$GCC ;;
  8493. esac
  8494. if test yes = "$_lt_dar_can_shared"; then
  8495. output_verbose_link_cmd=func_echo_all
  8496. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
  8497. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  8498. archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
  8499. module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
  8500. else
  8501. ld_shlibs=no
  8502. fi
  8503. ;;
  8504. dgux*)
  8505. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8506. hardcode_libdir_flag_spec='-L$libdir'
  8507. hardcode_shlibpath_var=no
  8508. ;;
  8509. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8510. # support. Future versions do this automatically, but an explicit c++rt0.o
  8511. # does not break anything, and helps significantly (at the cost of a little
  8512. # extra space).
  8513. freebsd2.2*)
  8514. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8515. hardcode_libdir_flag_spec='-R$libdir'
  8516. hardcode_direct=yes
  8517. hardcode_shlibpath_var=no
  8518. ;;
  8519. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8520. freebsd2.*)
  8521. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8522. hardcode_direct=yes
  8523. hardcode_minus_L=yes
  8524. hardcode_shlibpath_var=no
  8525. ;;
  8526. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8527. freebsd* | dragonfly*)
  8528. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8529. hardcode_libdir_flag_spec='-R$libdir'
  8530. hardcode_direct=yes
  8531. hardcode_shlibpath_var=no
  8532. ;;
  8533. hpux9*)
  8534. if test yes = "$GCC"; then
  8535. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8536. else
  8537. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  8538. fi
  8539. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8540. hardcode_libdir_separator=:
  8541. hardcode_direct=yes
  8542. # hardcode_minus_L: Not really in the search PATH,
  8543. # but as the default location of the library.
  8544. hardcode_minus_L=yes
  8545. export_dynamic_flag_spec='$wl-E'
  8546. ;;
  8547. hpux10*)
  8548. if test yes,no = "$GCC,$with_gnu_ld"; then
  8549. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8550. else
  8551. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8552. fi
  8553. if test no = "$with_gnu_ld"; then
  8554. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8555. hardcode_libdir_separator=:
  8556. hardcode_direct=yes
  8557. hardcode_direct_absolute=yes
  8558. export_dynamic_flag_spec='$wl-E'
  8559. # hardcode_minus_L: Not really in the search PATH,
  8560. # but as the default location of the library.
  8561. hardcode_minus_L=yes
  8562. fi
  8563. ;;
  8564. hpux11*)
  8565. if test yes,no = "$GCC,$with_gnu_ld"; then
  8566. case $host_cpu in
  8567. hppa*64*)
  8568. archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8569. ;;
  8570. ia64*)
  8571. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8572. ;;
  8573. *)
  8574. archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8575. ;;
  8576. esac
  8577. else
  8578. case $host_cpu in
  8579. hppa*64*)
  8580. archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8581. ;;
  8582. ia64*)
  8583. archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8584. ;;
  8585. *)
  8586. # Older versions of the 11.00 compiler do not understand -b yet
  8587. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8589. $as_echo_n "checking if $CC understands -b... " >&6; }
  8590. if ${lt_cv_prog_compiler__b+:} false; then :
  8591. $as_echo_n "(cached) " >&6
  8592. else
  8593. lt_cv_prog_compiler__b=no
  8594. save_LDFLAGS=$LDFLAGS
  8595. LDFLAGS="$LDFLAGS -b"
  8596. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8597. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8598. # The linker can only warn and ignore the option if not recognized
  8599. # So say no if there are warnings
  8600. if test -s conftest.err; then
  8601. # Append any errors to the config.log.
  8602. cat conftest.err 1>&5
  8603. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8604. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8605. if diff conftest.exp conftest.er2 >/dev/null; then
  8606. lt_cv_prog_compiler__b=yes
  8607. fi
  8608. else
  8609. lt_cv_prog_compiler__b=yes
  8610. fi
  8611. fi
  8612. $RM -r conftest*
  8613. LDFLAGS=$save_LDFLAGS
  8614. fi
  8615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8616. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8617. if test yes = "$lt_cv_prog_compiler__b"; then
  8618. archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8619. else
  8620. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8621. fi
  8622. ;;
  8623. esac
  8624. fi
  8625. if test no = "$with_gnu_ld"; then
  8626. hardcode_libdir_flag_spec='$wl+b $wl$libdir'
  8627. hardcode_libdir_separator=:
  8628. case $host_cpu in
  8629. hppa*64*|ia64*)
  8630. hardcode_direct=no
  8631. hardcode_shlibpath_var=no
  8632. ;;
  8633. *)
  8634. hardcode_direct=yes
  8635. hardcode_direct_absolute=yes
  8636. export_dynamic_flag_spec='$wl-E'
  8637. # hardcode_minus_L: Not really in the search PATH,
  8638. # but as the default location of the library.
  8639. hardcode_minus_L=yes
  8640. ;;
  8641. esac
  8642. fi
  8643. ;;
  8644. irix5* | irix6* | nonstopux*)
  8645. if test yes = "$GCC"; then
  8646. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  8647. # Try to use the -exported_symbol ld option, if it does not
  8648. # work, assume that -exports_file does not work either and
  8649. # implicitly export all symbols.
  8650. # This should be the same for all languages, so no per-tag cache variable.
  8651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8652. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8653. if ${lt_cv_irix_exported_symbol+:} false; then :
  8654. $as_echo_n "(cached) " >&6
  8655. else
  8656. save_LDFLAGS=$LDFLAGS
  8657. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  8658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8659. /* end confdefs.h. */
  8660. int foo (void) { return 0; }
  8661. _ACEOF
  8662. if ac_fn_c_try_link "$LINENO"; then :
  8663. lt_cv_irix_exported_symbol=yes
  8664. else
  8665. lt_cv_irix_exported_symbol=no
  8666. fi
  8667. rm -f core conftest.err conftest.$ac_objext \
  8668. conftest$ac_exeext conftest.$ac_ext
  8669. LDFLAGS=$save_LDFLAGS
  8670. fi
  8671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8672. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8673. if test yes = "$lt_cv_irix_exported_symbol"; then
  8674. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
  8675. fi
  8676. else
  8677. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  8678. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
  8679. fi
  8680. archive_cmds_need_lc='no'
  8681. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8682. hardcode_libdir_separator=:
  8683. inherit_rpath=yes
  8684. link_all_deplibs=yes
  8685. ;;
  8686. linux*)
  8687. case $cc_basename in
  8688. tcc*)
  8689. # Fabrice Bellard et al's Tiny C Compiler
  8690. ld_shlibs=yes
  8691. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8692. ;;
  8693. esac
  8694. ;;
  8695. netbsd*)
  8696. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8697. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8698. else
  8699. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8700. fi
  8701. hardcode_libdir_flag_spec='-R$libdir'
  8702. hardcode_direct=yes
  8703. hardcode_shlibpath_var=no
  8704. ;;
  8705. newsos6)
  8706. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8707. hardcode_direct=yes
  8708. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8709. hardcode_libdir_separator=:
  8710. hardcode_shlibpath_var=no
  8711. ;;
  8712. *nto* | *qnx*)
  8713. ;;
  8714. openbsd* | bitrig*)
  8715. if test -f /usr/libexec/ld.so; then
  8716. hardcode_direct=yes
  8717. hardcode_shlibpath_var=no
  8718. hardcode_direct_absolute=yes
  8719. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  8720. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8721. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  8722. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8723. export_dynamic_flag_spec='$wl-E'
  8724. else
  8725. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8726. hardcode_libdir_flag_spec='$wl-rpath,$libdir'
  8727. fi
  8728. else
  8729. ld_shlibs=no
  8730. fi
  8731. ;;
  8732. os2*)
  8733. hardcode_libdir_flag_spec='-L$libdir'
  8734. hardcode_minus_L=yes
  8735. allow_undefined_flag=unsupported
  8736. shrext_cmds=.dll
  8737. archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8738. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8739. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8740. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8741. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  8742. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8743. emximp -o $lib $output_objdir/$libname.def'
  8744. archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  8745. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  8746. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  8747. $ECHO EXPORTS >> $output_objdir/$libname.def~
  8748. prefix_cmds="$SED"~
  8749. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  8750. prefix_cmds="$prefix_cmds -e 1d";
  8751. fi~
  8752. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  8753. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  8754. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  8755. emximp -o $lib $output_objdir/$libname.def'
  8756. old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  8757. enable_shared_with_static_runtimes=yes
  8758. ;;
  8759. osf3*)
  8760. if test yes = "$GCC"; then
  8761. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8762. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  8763. else
  8764. allow_undefined_flag=' -expect_unresolved \*'
  8765. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  8766. fi
  8767. archive_cmds_need_lc='no'
  8768. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8769. hardcode_libdir_separator=:
  8770. ;;
  8771. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8772. if test yes = "$GCC"; then
  8773. allow_undefined_flag=' $wl-expect_unresolved $wl\*'
  8774. archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
  8775. hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
  8776. else
  8777. allow_undefined_flag=' -expect_unresolved \*'
  8778. archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
  8779. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  8780. $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
  8781. # Both c and cxx compiler support -rpath directly
  8782. hardcode_libdir_flag_spec='-rpath $libdir'
  8783. fi
  8784. archive_cmds_need_lc='no'
  8785. hardcode_libdir_separator=:
  8786. ;;
  8787. solaris*)
  8788. no_undefined_flag=' -z defs'
  8789. if test yes = "$GCC"; then
  8790. wlarc='$wl'
  8791. archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  8792. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8793. $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8794. else
  8795. case `$CC -V 2>&1` in
  8796. *"Compilers 5.0"*)
  8797. wlarc=''
  8798. archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8799. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8800. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8801. ;;
  8802. *)
  8803. wlarc='$wl'
  8804. archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8805. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8806. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8807. ;;
  8808. esac
  8809. fi
  8810. hardcode_libdir_flag_spec='-R$libdir'
  8811. hardcode_shlibpath_var=no
  8812. case $host_os in
  8813. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8814. *)
  8815. # The compiler driver will combine and reorder linker options,
  8816. # but understands '-z linker_flag'. GCC discards it without '$wl',
  8817. # but is careful enough not to reorder.
  8818. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8819. if test yes = "$GCC"; then
  8820. whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  8821. else
  8822. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8823. fi
  8824. ;;
  8825. esac
  8826. link_all_deplibs=yes
  8827. ;;
  8828. sunos4*)
  8829. if test sequent = "$host_vendor"; then
  8830. # Use $CC to link under sequent, because it throws in some extra .o
  8831. # files that make .init and .fini sections work.
  8832. archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8833. else
  8834. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8835. fi
  8836. hardcode_libdir_flag_spec='-L$libdir'
  8837. hardcode_direct=yes
  8838. hardcode_minus_L=yes
  8839. hardcode_shlibpath_var=no
  8840. ;;
  8841. sysv4)
  8842. case $host_vendor in
  8843. sni)
  8844. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8845. hardcode_direct=yes # is this really true???
  8846. ;;
  8847. siemens)
  8848. ## LD is ld it makes a PLAMLIB
  8849. ## CC just makes a GrossModule.
  8850. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8851. reload_cmds='$CC -r -o $output$reload_objs'
  8852. hardcode_direct=no
  8853. ;;
  8854. motorola)
  8855. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8856. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8857. ;;
  8858. esac
  8859. runpath_var='LD_RUN_PATH'
  8860. hardcode_shlibpath_var=no
  8861. ;;
  8862. sysv4.3*)
  8863. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8864. hardcode_shlibpath_var=no
  8865. export_dynamic_flag_spec='-Bexport'
  8866. ;;
  8867. sysv4*MP*)
  8868. if test -d /usr/nec; then
  8869. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8870. hardcode_shlibpath_var=no
  8871. runpath_var=LD_RUN_PATH
  8872. hardcode_runpath_var=yes
  8873. ld_shlibs=yes
  8874. fi
  8875. ;;
  8876. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8877. no_undefined_flag='$wl-z,text'
  8878. archive_cmds_need_lc=no
  8879. hardcode_shlibpath_var=no
  8880. runpath_var='LD_RUN_PATH'
  8881. if test yes = "$GCC"; then
  8882. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8883. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8884. else
  8885. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8886. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8887. fi
  8888. ;;
  8889. sysv5* | sco3.2v5* | sco5v6*)
  8890. # Note: We CANNOT use -z defs as we might desire, because we do not
  8891. # link with -lc, and that would cause any symbols used from libc to
  8892. # always be unresolved, which means just about no library would
  8893. # ever link correctly. If we're not using GNU ld we use -z text
  8894. # though, which does catch some bad symbols but isn't as heavy-handed
  8895. # as -z defs.
  8896. no_undefined_flag='$wl-z,text'
  8897. allow_undefined_flag='$wl-z,nodefs'
  8898. archive_cmds_need_lc=no
  8899. hardcode_shlibpath_var=no
  8900. hardcode_libdir_flag_spec='$wl-R,$libdir'
  8901. hardcode_libdir_separator=':'
  8902. link_all_deplibs=yes
  8903. export_dynamic_flag_spec='$wl-Bexport'
  8904. runpath_var='LD_RUN_PATH'
  8905. if test yes = "$GCC"; then
  8906. archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8907. archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8908. else
  8909. archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8910. archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8911. fi
  8912. ;;
  8913. uts4*)
  8914. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8915. hardcode_libdir_flag_spec='-L$libdir'
  8916. hardcode_shlibpath_var=no
  8917. ;;
  8918. *)
  8919. ld_shlibs=no
  8920. ;;
  8921. esac
  8922. if test sni = "$host_vendor"; then
  8923. case $host in
  8924. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8925. export_dynamic_flag_spec='$wl-Blargedynsym'
  8926. ;;
  8927. esac
  8928. fi
  8929. fi
  8930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8931. $as_echo "$ld_shlibs" >&6; }
  8932. test no = "$ld_shlibs" && can_build_shared=no
  8933. with_gnu_ld=$with_gnu_ld
  8934. #
  8935. # Do we need to explicitly link libc?
  8936. #
  8937. case "x$archive_cmds_need_lc" in
  8938. x|xyes)
  8939. # Assume -lc should be added
  8940. archive_cmds_need_lc=yes
  8941. if test yes,yes = "$GCC,$enable_shared"; then
  8942. case $archive_cmds in
  8943. *'~'*)
  8944. # FIXME: we may have to deal with multi-command sequences.
  8945. ;;
  8946. '$CC '*)
  8947. # Test whether the compiler implicitly links with -lc since on some
  8948. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8949. # to ld, don't add -lc before -lgcc.
  8950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8951. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8952. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8953. $as_echo_n "(cached) " >&6
  8954. else
  8955. $RM conftest*
  8956. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8957. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8958. (eval $ac_compile) 2>&5
  8959. ac_status=$?
  8960. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8961. test $ac_status = 0; } 2>conftest.err; then
  8962. soname=conftest
  8963. lib=conftest
  8964. libobjs=conftest.$ac_objext
  8965. deplibs=
  8966. wl=$lt_prog_compiler_wl
  8967. pic_flag=$lt_prog_compiler_pic
  8968. compiler_flags=-v
  8969. linker_flags=-v
  8970. verstring=
  8971. output_objdir=.
  8972. libname=conftest
  8973. lt_save_allow_undefined_flag=$allow_undefined_flag
  8974. allow_undefined_flag=
  8975. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8976. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8977. ac_status=$?
  8978. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8979. test $ac_status = 0; }
  8980. then
  8981. lt_cv_archive_cmds_need_lc=no
  8982. else
  8983. lt_cv_archive_cmds_need_lc=yes
  8984. fi
  8985. allow_undefined_flag=$lt_save_allow_undefined_flag
  8986. else
  8987. cat conftest.err 1>&5
  8988. fi
  8989. $RM conftest*
  8990. fi
  8991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8992. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8993. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8994. ;;
  8995. esac
  8996. fi
  8997. ;;
  8998. esac
  8999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9000. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9001. if test yes = "$GCC"; then
  9002. case $host_os in
  9003. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  9004. *) lt_awk_arg='/^libraries:/' ;;
  9005. esac
  9006. case $host_os in
  9007. mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
  9008. *) lt_sed_strip_eq='s|=/|/|g' ;;
  9009. esac
  9010. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9011. case $lt_search_path_spec in
  9012. *\;*)
  9013. # if the path contains ";" then we assume it to be the separator
  9014. # otherwise default to the standard path separator (i.e. ":") - it is
  9015. # assumed that no part of a normal pathname contains ";" but that should
  9016. # okay in the real world where ";" in dirpaths is itself problematic.
  9017. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9018. ;;
  9019. *)
  9020. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9021. ;;
  9022. esac
  9023. # Ok, now we have the path, separated by spaces, we can step through it
  9024. # and add multilib dir if necessary...
  9025. lt_tmp_lt_search_path_spec=
  9026. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9027. # ...but if some path component already ends with the multilib dir we assume
  9028. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  9029. case "$lt_multi_os_dir; $lt_search_path_spec " in
  9030. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  9031. lt_multi_os_dir=
  9032. ;;
  9033. esac
  9034. for lt_sys_path in $lt_search_path_spec; do
  9035. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  9036. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  9037. elif test -n "$lt_multi_os_dir"; then
  9038. test -d "$lt_sys_path" && \
  9039. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9040. fi
  9041. done
  9042. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9043. BEGIN {RS = " "; FS = "/|\n";} {
  9044. lt_foo = "";
  9045. lt_count = 0;
  9046. for (lt_i = NF; lt_i > 0; lt_i--) {
  9047. if ($lt_i != "" && $lt_i != ".") {
  9048. if ($lt_i == "..") {
  9049. lt_count++;
  9050. } else {
  9051. if (lt_count == 0) {
  9052. lt_foo = "/" $lt_i lt_foo;
  9053. } else {
  9054. lt_count--;
  9055. }
  9056. }
  9057. }
  9058. }
  9059. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9060. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9061. }'`
  9062. # AWK program above erroneously prepends '/' to C:/dos/paths
  9063. # for these hosts.
  9064. case $host_os in
  9065. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9066. $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
  9067. esac
  9068. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9069. else
  9070. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9071. fi
  9072. library_names_spec=
  9073. libname_spec='lib$name'
  9074. soname_spec=
  9075. shrext_cmds=.so
  9076. postinstall_cmds=
  9077. postuninstall_cmds=
  9078. finish_cmds=
  9079. finish_eval=
  9080. shlibpath_var=
  9081. shlibpath_overrides_runpath=unknown
  9082. version_type=none
  9083. dynamic_linker="$host_os ld.so"
  9084. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9085. need_lib_prefix=unknown
  9086. hardcode_into_libs=no
  9087. # when you set need_version to no, make sure it does not cause -set_version
  9088. # flags to be left without arguments
  9089. need_version=unknown
  9090. case $host_os in
  9091. aix3*)
  9092. version_type=linux # correct to gnu/linux during the next big refactor
  9093. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  9094. shlibpath_var=LIBPATH
  9095. # AIX 3 has no versioning support, so we append a major version to the name.
  9096. soname_spec='$libname$release$shared_ext$major'
  9097. ;;
  9098. aix[4-9]*)
  9099. version_type=linux # correct to gnu/linux during the next big refactor
  9100. need_lib_prefix=no
  9101. need_version=no
  9102. hardcode_into_libs=yes
  9103. if test ia64 = "$host_cpu"; then
  9104. # AIX 5 supports IA64
  9105. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  9106. shlibpath_var=LD_LIBRARY_PATH
  9107. else
  9108. # With GCC up to 2.95.x, collect2 would create an import file
  9109. # for dependence libraries. The import file would start with
  9110. # the line '#! .'. This would cause the generated library to
  9111. # depend on '.', always an invalid library. This was fixed in
  9112. # development snapshots of GCC prior to 3.0.
  9113. case $host_os in
  9114. aix4 | aix4.[01] | aix4.[01].*)
  9115. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9116. echo ' yes '
  9117. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  9118. :
  9119. else
  9120. can_build_shared=no
  9121. fi
  9122. ;;
  9123. esac
  9124. # Using Import Files as archive members, it is possible to support
  9125. # filename-based versioning of shared library archives on AIX. While
  9126. # this would work for both with and without runtime linking, it will
  9127. # prevent static linking of such archives. So we do filename-based
  9128. # shared library versioning with .so extension only, which is used
  9129. # when both runtime linking and shared linking is enabled.
  9130. # Unfortunately, runtime linking may impact performance, so we do
  9131. # not want this to be the default eventually. Also, we use the
  9132. # versioned .so libs for executables only if there is the -brtl
  9133. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  9134. # To allow for filename-based versioning support, we need to create
  9135. # libNAME.so.V as an archive file, containing:
  9136. # *) an Import File, referring to the versioned filename of the
  9137. # archive as well as the shared archive member, telling the
  9138. # bitwidth (32 or 64) of that shared object, and providing the
  9139. # list of exported symbols of that shared object, eventually
  9140. # decorated with the 'weak' keyword
  9141. # *) the shared object with the F_LOADONLY flag set, to really avoid
  9142. # it being seen by the linker.
  9143. # At run time we better use the real file rather than another symlink,
  9144. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  9145. case $with_aix_soname,$aix_use_runtimelinking in
  9146. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  9147. # soname into executable. Probably we can add versioning support to
  9148. # collect2, so additional links can be useful in future.
  9149. aix,yes) # traditional libtool
  9150. dynamic_linker='AIX unversionable lib.so'
  9151. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9152. # instead of lib<name>.a to let people know that these are not
  9153. # typical AIX shared libraries.
  9154. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9155. ;;
  9156. aix,no) # traditional AIX only
  9157. dynamic_linker='AIX lib.a(lib.so.V)'
  9158. # We preserve .a as extension for shared libraries through AIX4.2
  9159. # and later when we are not doing run time linking.
  9160. library_names_spec='$libname$release.a $libname.a'
  9161. soname_spec='$libname$release$shared_ext$major'
  9162. ;;
  9163. svr4,*) # full svr4 only
  9164. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
  9165. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9166. # We do not specify a path in Import Files, so LIBPATH fires.
  9167. shlibpath_overrides_runpath=yes
  9168. ;;
  9169. *,yes) # both, prefer svr4
  9170. dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
  9171. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  9172. # unpreferred sharedlib libNAME.a needs extra handling
  9173. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  9174. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  9175. # We do not specify a path in Import Files, so LIBPATH fires.
  9176. shlibpath_overrides_runpath=yes
  9177. ;;
  9178. *,no) # both, prefer aix
  9179. dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
  9180. library_names_spec='$libname$release.a $libname.a'
  9181. soname_spec='$libname$release$shared_ext$major'
  9182. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  9183. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  9184. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  9185. ;;
  9186. esac
  9187. shlibpath_var=LIBPATH
  9188. fi
  9189. ;;
  9190. amigaos*)
  9191. case $host_cpu in
  9192. powerpc)
  9193. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9194. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9195. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9196. ;;
  9197. m68k)
  9198. library_names_spec='$libname.ixlibrary $libname.a'
  9199. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9200. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
  9201. ;;
  9202. esac
  9203. ;;
  9204. beos*)
  9205. library_names_spec='$libname$shared_ext'
  9206. dynamic_linker="$host_os ld.so"
  9207. shlibpath_var=LIBRARY_PATH
  9208. ;;
  9209. bsdi[45]*)
  9210. version_type=linux # correct to gnu/linux during the next big refactor
  9211. need_version=no
  9212. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9213. soname_spec='$libname$release$shared_ext$major'
  9214. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9215. shlibpath_var=LD_LIBRARY_PATH
  9216. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9217. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9218. # the default ld.so.conf also contains /usr/contrib/lib and
  9219. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9220. # libtool to hard-code these into programs
  9221. ;;
  9222. cygwin* | mingw* | pw32* | cegcc*)
  9223. version_type=windows
  9224. shrext_cmds=.dll
  9225. need_version=no
  9226. need_lib_prefix=no
  9227. case $GCC,$cc_basename in
  9228. yes,*)
  9229. # gcc
  9230. library_names_spec='$libname.dll.a'
  9231. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9232. postinstall_cmds='base_file=`basename \$file`~
  9233. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9234. dldir=$destdir/`dirname \$dlpath`~
  9235. test -d \$dldir || mkdir -p \$dldir~
  9236. $install_prog $dir/$dlname \$dldir/$dlname~
  9237. chmod a+x \$dldir/$dlname~
  9238. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9239. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9240. fi'
  9241. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9242. dlpath=$dir/\$dldll~
  9243. $RM \$dlpath'
  9244. shlibpath_overrides_runpath=yes
  9245. case $host_os in
  9246. cygwin*)
  9247. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9248. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9249. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9250. ;;
  9251. mingw* | cegcc*)
  9252. # MinGW DLLs use traditional 'lib' prefix
  9253. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9254. ;;
  9255. pw32*)
  9256. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9257. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9258. ;;
  9259. esac
  9260. dynamic_linker='Win32 ld.exe'
  9261. ;;
  9262. *,cl*)
  9263. # Native MSVC
  9264. libname_spec='$name'
  9265. soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
  9266. library_names_spec='$libname.dll.lib'
  9267. case $build_os in
  9268. mingw*)
  9269. sys_lib_search_path_spec=
  9270. lt_save_ifs=$IFS
  9271. IFS=';'
  9272. for lt_path in $LIB
  9273. do
  9274. IFS=$lt_save_ifs
  9275. # Let DOS variable expansion print the short 8.3 style file name.
  9276. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9277. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9278. done
  9279. IFS=$lt_save_ifs
  9280. # Convert to MSYS style.
  9281. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9282. ;;
  9283. cygwin*)
  9284. # Convert to unix form, then to dos form, then back to unix form
  9285. # but this time dos style (no spaces!) so that the unix form looks
  9286. # like /cygdrive/c/PROGRA~1:/cygdr...
  9287. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9288. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9289. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9290. ;;
  9291. *)
  9292. sys_lib_search_path_spec=$LIB
  9293. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9294. # It is most probably a Windows format PATH.
  9295. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9296. else
  9297. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9298. fi
  9299. # FIXME: find the short name or the path components, as spaces are
  9300. # common. (e.g. "Program Files" -> "PROGRA~1")
  9301. ;;
  9302. esac
  9303. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9304. postinstall_cmds='base_file=`basename \$file`~
  9305. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  9306. dldir=$destdir/`dirname \$dlpath`~
  9307. test -d \$dldir || mkdir -p \$dldir~
  9308. $install_prog $dir/$dlname \$dldir/$dlname'
  9309. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9310. dlpath=$dir/\$dldll~
  9311. $RM \$dlpath'
  9312. shlibpath_overrides_runpath=yes
  9313. dynamic_linker='Win32 link.exe'
  9314. ;;
  9315. *)
  9316. # Assume MSVC wrapper
  9317. library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
  9318. dynamic_linker='Win32 ld.exe'
  9319. ;;
  9320. esac
  9321. # FIXME: first we should search . and the directory the executable is in
  9322. shlibpath_var=PATH
  9323. ;;
  9324. darwin* | rhapsody*)
  9325. dynamic_linker="$host_os dyld"
  9326. version_type=darwin
  9327. need_lib_prefix=no
  9328. need_version=no
  9329. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  9330. soname_spec='$libname$release$major$shared_ext'
  9331. shlibpath_overrides_runpath=yes
  9332. shlibpath_var=DYLD_LIBRARY_PATH
  9333. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9334. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9335. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9336. ;;
  9337. dgux*)
  9338. version_type=linux # correct to gnu/linux during the next big refactor
  9339. need_lib_prefix=no
  9340. need_version=no
  9341. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9342. soname_spec='$libname$release$shared_ext$major'
  9343. shlibpath_var=LD_LIBRARY_PATH
  9344. ;;
  9345. freebsd* | dragonfly*)
  9346. # DragonFly does not have aout. When/if they implement a new
  9347. # versioning mechanism, adjust this.
  9348. if test -x /usr/bin/objformat; then
  9349. objformat=`/usr/bin/objformat`
  9350. else
  9351. case $host_os in
  9352. freebsd[23].*) objformat=aout ;;
  9353. *) objformat=elf ;;
  9354. esac
  9355. fi
  9356. version_type=freebsd-$objformat
  9357. case $version_type in
  9358. freebsd-elf*)
  9359. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9360. soname_spec='$libname$release$shared_ext$major'
  9361. need_version=no
  9362. need_lib_prefix=no
  9363. ;;
  9364. freebsd-*)
  9365. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9366. need_version=yes
  9367. ;;
  9368. esac
  9369. shlibpath_var=LD_LIBRARY_PATH
  9370. case $host_os in
  9371. freebsd2.*)
  9372. shlibpath_overrides_runpath=yes
  9373. ;;
  9374. freebsd3.[01]* | freebsdelf3.[01]*)
  9375. shlibpath_overrides_runpath=yes
  9376. hardcode_into_libs=yes
  9377. ;;
  9378. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9379. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9380. shlibpath_overrides_runpath=no
  9381. hardcode_into_libs=yes
  9382. ;;
  9383. *) # from 4.6 on, and DragonFly
  9384. shlibpath_overrides_runpath=yes
  9385. hardcode_into_libs=yes
  9386. ;;
  9387. esac
  9388. ;;
  9389. haiku*)
  9390. version_type=linux # correct to gnu/linux during the next big refactor
  9391. need_lib_prefix=no
  9392. need_version=no
  9393. dynamic_linker="$host_os runtime_loader"
  9394. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9395. soname_spec='$libname$release$shared_ext$major'
  9396. shlibpath_var=LIBRARY_PATH
  9397. shlibpath_overrides_runpath=no
  9398. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9399. hardcode_into_libs=yes
  9400. ;;
  9401. hpux9* | hpux10* | hpux11*)
  9402. # Give a soname corresponding to the major version so that dld.sl refuses to
  9403. # link against other versions.
  9404. version_type=sunos
  9405. need_lib_prefix=no
  9406. need_version=no
  9407. case $host_cpu in
  9408. ia64*)
  9409. shrext_cmds='.so'
  9410. hardcode_into_libs=yes
  9411. dynamic_linker="$host_os dld.so"
  9412. shlibpath_var=LD_LIBRARY_PATH
  9413. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9414. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9415. soname_spec='$libname$release$shared_ext$major'
  9416. if test 32 = "$HPUX_IA64_MODE"; then
  9417. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9418. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  9419. else
  9420. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9421. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  9422. fi
  9423. ;;
  9424. hppa*64*)
  9425. shrext_cmds='.sl'
  9426. hardcode_into_libs=yes
  9427. dynamic_linker="$host_os dld.sl"
  9428. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9429. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9430. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9431. soname_spec='$libname$release$shared_ext$major'
  9432. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9433. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9434. ;;
  9435. *)
  9436. shrext_cmds='.sl'
  9437. dynamic_linker="$host_os dld.sl"
  9438. shlibpath_var=SHLIB_PATH
  9439. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9440. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9441. soname_spec='$libname$release$shared_ext$major'
  9442. ;;
  9443. esac
  9444. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9445. postinstall_cmds='chmod 555 $lib'
  9446. # or fails outright, so override atomically:
  9447. install_override_mode=555
  9448. ;;
  9449. interix[3-9]*)
  9450. version_type=linux # correct to gnu/linux during the next big refactor
  9451. need_lib_prefix=no
  9452. need_version=no
  9453. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9454. soname_spec='$libname$release$shared_ext$major'
  9455. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9456. shlibpath_var=LD_LIBRARY_PATH
  9457. shlibpath_overrides_runpath=no
  9458. hardcode_into_libs=yes
  9459. ;;
  9460. irix5* | irix6* | nonstopux*)
  9461. case $host_os in
  9462. nonstopux*) version_type=nonstopux ;;
  9463. *)
  9464. if test yes = "$lt_cv_prog_gnu_ld"; then
  9465. version_type=linux # correct to gnu/linux during the next big refactor
  9466. else
  9467. version_type=irix
  9468. fi ;;
  9469. esac
  9470. need_lib_prefix=no
  9471. need_version=no
  9472. soname_spec='$libname$release$shared_ext$major'
  9473. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  9474. case $host_os in
  9475. irix5* | nonstopux*)
  9476. libsuff= shlibsuff=
  9477. ;;
  9478. *)
  9479. case $LD in # libtool.m4 will add one of these switches to LD
  9480. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9481. libsuff= shlibsuff= libmagic=32-bit;;
  9482. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9483. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9484. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9485. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9486. *) libsuff= shlibsuff= libmagic=never-match;;
  9487. esac
  9488. ;;
  9489. esac
  9490. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9491. shlibpath_overrides_runpath=no
  9492. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  9493. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  9494. hardcode_into_libs=yes
  9495. ;;
  9496. # No shared lib support for Linux oldld, aout, or coff.
  9497. linux*oldld* | linux*aout* | linux*coff*)
  9498. dynamic_linker=no
  9499. ;;
  9500. linux*android*)
  9501. version_type=none # Android doesn't support versioned libraries.
  9502. need_lib_prefix=no
  9503. need_version=no
  9504. library_names_spec='$libname$release$shared_ext'
  9505. soname_spec='$libname$release$shared_ext'
  9506. finish_cmds=
  9507. shlibpath_var=LD_LIBRARY_PATH
  9508. shlibpath_overrides_runpath=yes
  9509. # This implies no fast_install, which is unacceptable.
  9510. # Some rework will be needed to allow for fast_install
  9511. # before this can be enabled.
  9512. hardcode_into_libs=yes
  9513. dynamic_linker='Android linker'
  9514. # Don't embed -rpath directories since the linker doesn't support them.
  9515. hardcode_libdir_flag_spec='-L$libdir'
  9516. ;;
  9517. # This must be glibc/ELF.
  9518. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  9519. version_type=linux # correct to gnu/linux during the next big refactor
  9520. need_lib_prefix=no
  9521. need_version=no
  9522. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9523. soname_spec='$libname$release$shared_ext$major'
  9524. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9525. shlibpath_var=LD_LIBRARY_PATH
  9526. shlibpath_overrides_runpath=no
  9527. # Some binutils ld are patched to set DT_RUNPATH
  9528. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9529. $as_echo_n "(cached) " >&6
  9530. else
  9531. lt_cv_shlibpath_overrides_runpath=no
  9532. save_LDFLAGS=$LDFLAGS
  9533. save_libdir=$libdir
  9534. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9535. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9537. /* end confdefs.h. */
  9538. int
  9539. main ()
  9540. {
  9541. ;
  9542. return 0;
  9543. }
  9544. _ACEOF
  9545. if ac_fn_c_try_link "$LINENO"; then :
  9546. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9547. lt_cv_shlibpath_overrides_runpath=yes
  9548. fi
  9549. fi
  9550. rm -f core conftest.err conftest.$ac_objext \
  9551. conftest$ac_exeext conftest.$ac_ext
  9552. LDFLAGS=$save_LDFLAGS
  9553. libdir=$save_libdir
  9554. fi
  9555. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9556. # This implies no fast_install, which is unacceptable.
  9557. # Some rework will be needed to allow for fast_install
  9558. # before this can be enabled.
  9559. hardcode_into_libs=yes
  9560. # Ideally, we could use ldconfig to report *all* directores which are
  9561. # searched for libraries, however this is still not possible. Aside from not
  9562. # being certain /sbin/ldconfig is available, command
  9563. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  9564. # even though it is searched at run-time. Try to do the best guess by
  9565. # appending ld.so.conf contents (and includes) to the search path.
  9566. if test -f /etc/ld.so.conf; then
  9567. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  9568. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9569. fi
  9570. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9571. # powerpc, because MkLinux only supported shared libraries with the
  9572. # GNU dynamic linker. Since this was broken with cross compilers,
  9573. # most powerpc-linux boxes support dynamic linking these days and
  9574. # people can always --disable-shared, the test was removed, and we
  9575. # assume the GNU/Linux dynamic linker is in use.
  9576. dynamic_linker='GNU/Linux ld.so'
  9577. ;;
  9578. netbsd*)
  9579. version_type=sunos
  9580. need_lib_prefix=no
  9581. need_version=no
  9582. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9583. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9584. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9585. dynamic_linker='NetBSD (a.out) ld.so'
  9586. else
  9587. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9588. soname_spec='$libname$release$shared_ext$major'
  9589. dynamic_linker='NetBSD ld.elf_so'
  9590. fi
  9591. shlibpath_var=LD_LIBRARY_PATH
  9592. shlibpath_overrides_runpath=yes
  9593. hardcode_into_libs=yes
  9594. ;;
  9595. newsos6)
  9596. version_type=linux # correct to gnu/linux during the next big refactor
  9597. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9598. shlibpath_var=LD_LIBRARY_PATH
  9599. shlibpath_overrides_runpath=yes
  9600. ;;
  9601. *nto* | *qnx*)
  9602. version_type=qnx
  9603. need_lib_prefix=no
  9604. need_version=no
  9605. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9606. soname_spec='$libname$release$shared_ext$major'
  9607. shlibpath_var=LD_LIBRARY_PATH
  9608. shlibpath_overrides_runpath=no
  9609. hardcode_into_libs=yes
  9610. dynamic_linker='ldqnx.so'
  9611. ;;
  9612. openbsd* | bitrig*)
  9613. version_type=sunos
  9614. sys_lib_dlsearch_path_spec=/usr/lib
  9615. need_lib_prefix=no
  9616. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  9617. need_version=no
  9618. else
  9619. need_version=yes
  9620. fi
  9621. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9622. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9623. shlibpath_var=LD_LIBRARY_PATH
  9624. shlibpath_overrides_runpath=yes
  9625. ;;
  9626. os2*)
  9627. libname_spec='$name'
  9628. version_type=windows
  9629. shrext_cmds=.dll
  9630. need_version=no
  9631. need_lib_prefix=no
  9632. # OS/2 can only load a DLL with a base name of 8 characters or less.
  9633. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  9634. v=$($ECHO $release$versuffix | tr -d .-);
  9635. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  9636. $ECHO $n$v`$shared_ext'
  9637. library_names_spec='${libname}_dll.$libext'
  9638. dynamic_linker='OS/2 ld.exe'
  9639. shlibpath_var=BEGINLIBPATH
  9640. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9641. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9642. postinstall_cmds='base_file=`basename \$file`~
  9643. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  9644. dldir=$destdir/`dirname \$dlpath`~
  9645. test -d \$dldir || mkdir -p \$dldir~
  9646. $install_prog $dir/$dlname \$dldir/$dlname~
  9647. chmod a+x \$dldir/$dlname~
  9648. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9649. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9650. fi'
  9651. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  9652. dlpath=$dir/\$dldll~
  9653. $RM \$dlpath'
  9654. ;;
  9655. osf3* | osf4* | osf5*)
  9656. version_type=osf
  9657. need_lib_prefix=no
  9658. need_version=no
  9659. soname_spec='$libname$release$shared_ext$major'
  9660. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9661. shlibpath_var=LD_LIBRARY_PATH
  9662. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9663. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9664. ;;
  9665. rdos*)
  9666. dynamic_linker=no
  9667. ;;
  9668. solaris*)
  9669. version_type=linux # correct to gnu/linux during the next big refactor
  9670. need_lib_prefix=no
  9671. need_version=no
  9672. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9673. soname_spec='$libname$release$shared_ext$major'
  9674. shlibpath_var=LD_LIBRARY_PATH
  9675. shlibpath_overrides_runpath=yes
  9676. hardcode_into_libs=yes
  9677. # ldd complains unless libraries are executable
  9678. postinstall_cmds='chmod +x $lib'
  9679. ;;
  9680. sunos4*)
  9681. version_type=sunos
  9682. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  9683. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9684. shlibpath_var=LD_LIBRARY_PATH
  9685. shlibpath_overrides_runpath=yes
  9686. if test yes = "$with_gnu_ld"; then
  9687. need_lib_prefix=no
  9688. fi
  9689. need_version=yes
  9690. ;;
  9691. sysv4 | sysv4.3*)
  9692. version_type=linux # correct to gnu/linux during the next big refactor
  9693. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9694. soname_spec='$libname$release$shared_ext$major'
  9695. shlibpath_var=LD_LIBRARY_PATH
  9696. case $host_vendor in
  9697. sni)
  9698. shlibpath_overrides_runpath=no
  9699. need_lib_prefix=no
  9700. runpath_var=LD_RUN_PATH
  9701. ;;
  9702. siemens)
  9703. need_lib_prefix=no
  9704. ;;
  9705. motorola)
  9706. need_lib_prefix=no
  9707. need_version=no
  9708. shlibpath_overrides_runpath=no
  9709. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9710. ;;
  9711. esac
  9712. ;;
  9713. sysv4*MP*)
  9714. if test -d /usr/nec; then
  9715. version_type=linux # correct to gnu/linux during the next big refactor
  9716. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  9717. soname_spec='$libname$shared_ext.$major'
  9718. shlibpath_var=LD_LIBRARY_PATH
  9719. fi
  9720. ;;
  9721. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9722. version_type=sco
  9723. need_lib_prefix=no
  9724. need_version=no
  9725. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  9726. soname_spec='$libname$release$shared_ext$major'
  9727. shlibpath_var=LD_LIBRARY_PATH
  9728. shlibpath_overrides_runpath=yes
  9729. hardcode_into_libs=yes
  9730. if test yes = "$with_gnu_ld"; then
  9731. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9732. else
  9733. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9734. case $host_os in
  9735. sco3.2v5*)
  9736. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9737. ;;
  9738. esac
  9739. fi
  9740. sys_lib_dlsearch_path_spec='/usr/lib'
  9741. ;;
  9742. tpf*)
  9743. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9744. version_type=linux # correct to gnu/linux during the next big refactor
  9745. need_lib_prefix=no
  9746. need_version=no
  9747. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9748. shlibpath_var=LD_LIBRARY_PATH
  9749. shlibpath_overrides_runpath=no
  9750. hardcode_into_libs=yes
  9751. ;;
  9752. uts4*)
  9753. version_type=linux # correct to gnu/linux during the next big refactor
  9754. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  9755. soname_spec='$libname$release$shared_ext$major'
  9756. shlibpath_var=LD_LIBRARY_PATH
  9757. ;;
  9758. *)
  9759. dynamic_linker=no
  9760. ;;
  9761. esac
  9762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9763. $as_echo "$dynamic_linker" >&6; }
  9764. test no = "$dynamic_linker" && can_build_shared=no
  9765. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9766. if test yes = "$GCC"; then
  9767. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9768. fi
  9769. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  9770. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  9771. fi
  9772. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  9773. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  9774. fi
  9775. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  9776. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  9777. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  9778. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  9779. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  9780. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  9781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9782. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9783. hardcode_action=
  9784. if test -n "$hardcode_libdir_flag_spec" ||
  9785. test -n "$runpath_var" ||
  9786. test yes = "$hardcode_automatic"; then
  9787. # We can hardcode non-existent directories.
  9788. if test no != "$hardcode_direct" &&
  9789. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9790. # have to relink, otherwise we might link with an installed library
  9791. # when we should be linking with a yet-to-be-installed one
  9792. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
  9793. test no != "$hardcode_minus_L"; then
  9794. # Linking always hardcodes the temporary library directory.
  9795. hardcode_action=relink
  9796. else
  9797. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9798. hardcode_action=immediate
  9799. fi
  9800. else
  9801. # We cannot hardcode anything, or else we can only hardcode existing
  9802. # directories.
  9803. hardcode_action=unsupported
  9804. fi
  9805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9806. $as_echo "$hardcode_action" >&6; }
  9807. if test relink = "$hardcode_action" ||
  9808. test yes = "$inherit_rpath"; then
  9809. # Fast installation is not supported
  9810. enable_fast_install=no
  9811. elif test yes = "$shlibpath_overrides_runpath" ||
  9812. test no = "$enable_shared"; then
  9813. # Fast installation is not necessary
  9814. enable_fast_install=needless
  9815. fi
  9816. if test yes != "$enable_dlopen"; then
  9817. enable_dlopen=unknown
  9818. enable_dlopen_self=unknown
  9819. enable_dlopen_self_static=unknown
  9820. else
  9821. lt_cv_dlopen=no
  9822. lt_cv_dlopen_libs=
  9823. case $host_os in
  9824. beos*)
  9825. lt_cv_dlopen=load_add_on
  9826. lt_cv_dlopen_libs=
  9827. lt_cv_dlopen_self=yes
  9828. ;;
  9829. mingw* | pw32* | cegcc*)
  9830. lt_cv_dlopen=LoadLibrary
  9831. lt_cv_dlopen_libs=
  9832. ;;
  9833. cygwin*)
  9834. lt_cv_dlopen=dlopen
  9835. lt_cv_dlopen_libs=
  9836. ;;
  9837. darwin*)
  9838. # if libdl is installed we need to link against it
  9839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9840. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9841. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9842. $as_echo_n "(cached) " >&6
  9843. else
  9844. ac_check_lib_save_LIBS=$LIBS
  9845. LIBS="-ldl $LIBS"
  9846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9847. /* end confdefs.h. */
  9848. /* Override any GCC internal prototype to avoid an error.
  9849. Use char because int might match the return type of a GCC
  9850. builtin and then its argument prototype would still apply. */
  9851. #ifdef __cplusplus
  9852. extern "C"
  9853. #endif
  9854. char dlopen ();
  9855. int
  9856. main ()
  9857. {
  9858. return dlopen ();
  9859. ;
  9860. return 0;
  9861. }
  9862. _ACEOF
  9863. if ac_fn_c_try_link "$LINENO"; then :
  9864. ac_cv_lib_dl_dlopen=yes
  9865. else
  9866. ac_cv_lib_dl_dlopen=no
  9867. fi
  9868. rm -f core conftest.err conftest.$ac_objext \
  9869. conftest$ac_exeext conftest.$ac_ext
  9870. LIBS=$ac_check_lib_save_LIBS
  9871. fi
  9872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9873. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9874. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9875. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9876. else
  9877. lt_cv_dlopen=dyld
  9878. lt_cv_dlopen_libs=
  9879. lt_cv_dlopen_self=yes
  9880. fi
  9881. ;;
  9882. tpf*)
  9883. # Don't try to run any link tests for TPF. We know it's impossible
  9884. # because TPF is a cross-compiler, and we know how we open DSOs.
  9885. lt_cv_dlopen=dlopen
  9886. lt_cv_dlopen_libs=
  9887. lt_cv_dlopen_self=no
  9888. ;;
  9889. *)
  9890. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9891. if test "x$ac_cv_func_shl_load" = xyes; then :
  9892. lt_cv_dlopen=shl_load
  9893. else
  9894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9895. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9896. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9897. $as_echo_n "(cached) " >&6
  9898. else
  9899. ac_check_lib_save_LIBS=$LIBS
  9900. LIBS="-ldld $LIBS"
  9901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9902. /* end confdefs.h. */
  9903. /* Override any GCC internal prototype to avoid an error.
  9904. Use char because int might match the return type of a GCC
  9905. builtin and then its argument prototype would still apply. */
  9906. #ifdef __cplusplus
  9907. extern "C"
  9908. #endif
  9909. char shl_load ();
  9910. int
  9911. main ()
  9912. {
  9913. return shl_load ();
  9914. ;
  9915. return 0;
  9916. }
  9917. _ACEOF
  9918. if ac_fn_c_try_link "$LINENO"; then :
  9919. ac_cv_lib_dld_shl_load=yes
  9920. else
  9921. ac_cv_lib_dld_shl_load=no
  9922. fi
  9923. rm -f core conftest.err conftest.$ac_objext \
  9924. conftest$ac_exeext conftest.$ac_ext
  9925. LIBS=$ac_check_lib_save_LIBS
  9926. fi
  9927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9928. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9929. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9930. lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
  9931. else
  9932. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9933. if test "x$ac_cv_func_dlopen" = xyes; then :
  9934. lt_cv_dlopen=dlopen
  9935. else
  9936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9937. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9938. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9939. $as_echo_n "(cached) " >&6
  9940. else
  9941. ac_check_lib_save_LIBS=$LIBS
  9942. LIBS="-ldl $LIBS"
  9943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9944. /* end confdefs.h. */
  9945. /* Override any GCC internal prototype to avoid an error.
  9946. Use char because int might match the return type of a GCC
  9947. builtin and then its argument prototype would still apply. */
  9948. #ifdef __cplusplus
  9949. extern "C"
  9950. #endif
  9951. char dlopen ();
  9952. int
  9953. main ()
  9954. {
  9955. return dlopen ();
  9956. ;
  9957. return 0;
  9958. }
  9959. _ACEOF
  9960. if ac_fn_c_try_link "$LINENO"; then :
  9961. ac_cv_lib_dl_dlopen=yes
  9962. else
  9963. ac_cv_lib_dl_dlopen=no
  9964. fi
  9965. rm -f core conftest.err conftest.$ac_objext \
  9966. conftest$ac_exeext conftest.$ac_ext
  9967. LIBS=$ac_check_lib_save_LIBS
  9968. fi
  9969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9970. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9971. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9972. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
  9973. else
  9974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9975. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9976. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9977. $as_echo_n "(cached) " >&6
  9978. else
  9979. ac_check_lib_save_LIBS=$LIBS
  9980. LIBS="-lsvld $LIBS"
  9981. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9982. /* end confdefs.h. */
  9983. /* Override any GCC internal prototype to avoid an error.
  9984. Use char because int might match the return type of a GCC
  9985. builtin and then its argument prototype would still apply. */
  9986. #ifdef __cplusplus
  9987. extern "C"
  9988. #endif
  9989. char dlopen ();
  9990. int
  9991. main ()
  9992. {
  9993. return dlopen ();
  9994. ;
  9995. return 0;
  9996. }
  9997. _ACEOF
  9998. if ac_fn_c_try_link "$LINENO"; then :
  9999. ac_cv_lib_svld_dlopen=yes
  10000. else
  10001. ac_cv_lib_svld_dlopen=no
  10002. fi
  10003. rm -f core conftest.err conftest.$ac_objext \
  10004. conftest$ac_exeext conftest.$ac_ext
  10005. LIBS=$ac_check_lib_save_LIBS
  10006. fi
  10007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10008. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10009. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10010. lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
  10011. else
  10012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10013. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10014. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10015. $as_echo_n "(cached) " >&6
  10016. else
  10017. ac_check_lib_save_LIBS=$LIBS
  10018. LIBS="-ldld $LIBS"
  10019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10020. /* end confdefs.h. */
  10021. /* Override any GCC internal prototype to avoid an error.
  10022. Use char because int might match the return type of a GCC
  10023. builtin and then its argument prototype would still apply. */
  10024. #ifdef __cplusplus
  10025. extern "C"
  10026. #endif
  10027. char dld_link ();
  10028. int
  10029. main ()
  10030. {
  10031. return dld_link ();
  10032. ;
  10033. return 0;
  10034. }
  10035. _ACEOF
  10036. if ac_fn_c_try_link "$LINENO"; then :
  10037. ac_cv_lib_dld_dld_link=yes
  10038. else
  10039. ac_cv_lib_dld_dld_link=no
  10040. fi
  10041. rm -f core conftest.err conftest.$ac_objext \
  10042. conftest$ac_exeext conftest.$ac_ext
  10043. LIBS=$ac_check_lib_save_LIBS
  10044. fi
  10045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10046. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10047. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10048. lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
  10049. fi
  10050. fi
  10051. fi
  10052. fi
  10053. fi
  10054. fi
  10055. ;;
  10056. esac
  10057. if test no = "$lt_cv_dlopen"; then
  10058. enable_dlopen=no
  10059. else
  10060. enable_dlopen=yes
  10061. fi
  10062. case $lt_cv_dlopen in
  10063. dlopen)
  10064. save_CPPFLAGS=$CPPFLAGS
  10065. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10066. save_LDFLAGS=$LDFLAGS
  10067. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10068. save_LIBS=$LIBS
  10069. LIBS="$lt_cv_dlopen_libs $LIBS"
  10070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10071. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10072. if ${lt_cv_dlopen_self+:} false; then :
  10073. $as_echo_n "(cached) " >&6
  10074. else
  10075. if test yes = "$cross_compiling"; then :
  10076. lt_cv_dlopen_self=cross
  10077. else
  10078. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10079. lt_status=$lt_dlunknown
  10080. cat > conftest.$ac_ext <<_LT_EOF
  10081. #line $LINENO "configure"
  10082. #include "confdefs.h"
  10083. #if HAVE_DLFCN_H
  10084. #include <dlfcn.h>
  10085. #endif
  10086. #include <stdio.h>
  10087. #ifdef RTLD_GLOBAL
  10088. # define LT_DLGLOBAL RTLD_GLOBAL
  10089. #else
  10090. # ifdef DL_GLOBAL
  10091. # define LT_DLGLOBAL DL_GLOBAL
  10092. # else
  10093. # define LT_DLGLOBAL 0
  10094. # endif
  10095. #endif
  10096. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10097. find out it does not work in some platform. */
  10098. #ifndef LT_DLLAZY_OR_NOW
  10099. # ifdef RTLD_LAZY
  10100. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10101. # else
  10102. # ifdef DL_LAZY
  10103. # define LT_DLLAZY_OR_NOW DL_LAZY
  10104. # else
  10105. # ifdef RTLD_NOW
  10106. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10107. # else
  10108. # ifdef DL_NOW
  10109. # define LT_DLLAZY_OR_NOW DL_NOW
  10110. # else
  10111. # define LT_DLLAZY_OR_NOW 0
  10112. # endif
  10113. # endif
  10114. # endif
  10115. # endif
  10116. #endif
  10117. /* When -fvisibility=hidden is used, assume the code has been annotated
  10118. correspondingly for the symbols needed. */
  10119. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10120. int fnord () __attribute__((visibility("default")));
  10121. #endif
  10122. int fnord () { return 42; }
  10123. int main ()
  10124. {
  10125. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10126. int status = $lt_dlunknown;
  10127. if (self)
  10128. {
  10129. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10130. else
  10131. {
  10132. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10133. else puts (dlerror ());
  10134. }
  10135. /* dlclose (self); */
  10136. }
  10137. else
  10138. puts (dlerror ());
  10139. return status;
  10140. }
  10141. _LT_EOF
  10142. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10143. (eval $ac_link) 2>&5
  10144. ac_status=$?
  10145. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10146. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10147. (./conftest; exit; ) >&5 2>/dev/null
  10148. lt_status=$?
  10149. case x$lt_status in
  10150. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10151. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10152. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10153. esac
  10154. else :
  10155. # compilation failed
  10156. lt_cv_dlopen_self=no
  10157. fi
  10158. fi
  10159. rm -fr conftest*
  10160. fi
  10161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10162. $as_echo "$lt_cv_dlopen_self" >&6; }
  10163. if test yes = "$lt_cv_dlopen_self"; then
  10164. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10166. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10167. if ${lt_cv_dlopen_self_static+:} false; then :
  10168. $as_echo_n "(cached) " >&6
  10169. else
  10170. if test yes = "$cross_compiling"; then :
  10171. lt_cv_dlopen_self_static=cross
  10172. else
  10173. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10174. lt_status=$lt_dlunknown
  10175. cat > conftest.$ac_ext <<_LT_EOF
  10176. #line $LINENO "configure"
  10177. #include "confdefs.h"
  10178. #if HAVE_DLFCN_H
  10179. #include <dlfcn.h>
  10180. #endif
  10181. #include <stdio.h>
  10182. #ifdef RTLD_GLOBAL
  10183. # define LT_DLGLOBAL RTLD_GLOBAL
  10184. #else
  10185. # ifdef DL_GLOBAL
  10186. # define LT_DLGLOBAL DL_GLOBAL
  10187. # else
  10188. # define LT_DLGLOBAL 0
  10189. # endif
  10190. #endif
  10191. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10192. find out it does not work in some platform. */
  10193. #ifndef LT_DLLAZY_OR_NOW
  10194. # ifdef RTLD_LAZY
  10195. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10196. # else
  10197. # ifdef DL_LAZY
  10198. # define LT_DLLAZY_OR_NOW DL_LAZY
  10199. # else
  10200. # ifdef RTLD_NOW
  10201. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10202. # else
  10203. # ifdef DL_NOW
  10204. # define LT_DLLAZY_OR_NOW DL_NOW
  10205. # else
  10206. # define LT_DLLAZY_OR_NOW 0
  10207. # endif
  10208. # endif
  10209. # endif
  10210. # endif
  10211. #endif
  10212. /* When -fvisibility=hidden is used, assume the code has been annotated
  10213. correspondingly for the symbols needed. */
  10214. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10215. int fnord () __attribute__((visibility("default")));
  10216. #endif
  10217. int fnord () { return 42; }
  10218. int main ()
  10219. {
  10220. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10221. int status = $lt_dlunknown;
  10222. if (self)
  10223. {
  10224. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10225. else
  10226. {
  10227. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10228. else puts (dlerror ());
  10229. }
  10230. /* dlclose (self); */
  10231. }
  10232. else
  10233. puts (dlerror ());
  10234. return status;
  10235. }
  10236. _LT_EOF
  10237. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10238. (eval $ac_link) 2>&5
  10239. ac_status=$?
  10240. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10241. test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
  10242. (./conftest; exit; ) >&5 2>/dev/null
  10243. lt_status=$?
  10244. case x$lt_status in
  10245. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10246. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10247. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10248. esac
  10249. else :
  10250. # compilation failed
  10251. lt_cv_dlopen_self_static=no
  10252. fi
  10253. fi
  10254. rm -fr conftest*
  10255. fi
  10256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10257. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10258. fi
  10259. CPPFLAGS=$save_CPPFLAGS
  10260. LDFLAGS=$save_LDFLAGS
  10261. LIBS=$save_LIBS
  10262. ;;
  10263. esac
  10264. case $lt_cv_dlopen_self in
  10265. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10266. *) enable_dlopen_self=unknown ;;
  10267. esac
  10268. case $lt_cv_dlopen_self_static in
  10269. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10270. *) enable_dlopen_self_static=unknown ;;
  10271. esac
  10272. fi
  10273. striplib=
  10274. old_striplib=
  10275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10276. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10277. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10278. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10279. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10281. $as_echo "yes" >&6; }
  10282. else
  10283. # FIXME - insert some real tests, host_os isn't really good enough
  10284. case $host_os in
  10285. darwin*)
  10286. if test -n "$STRIP"; then
  10287. striplib="$STRIP -x"
  10288. old_striplib="$STRIP -S"
  10289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10290. $as_echo "yes" >&6; }
  10291. else
  10292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10293. $as_echo "no" >&6; }
  10294. fi
  10295. ;;
  10296. *)
  10297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10298. $as_echo "no" >&6; }
  10299. ;;
  10300. esac
  10301. fi
  10302. # Report what library types will actually be built
  10303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10304. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10306. $as_echo "$can_build_shared" >&6; }
  10307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10308. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10309. test no = "$can_build_shared" && enable_shared=no
  10310. # On AIX, shared libraries and static libraries use the same namespace, and
  10311. # are all built from PIC.
  10312. case $host_os in
  10313. aix3*)
  10314. test yes = "$enable_shared" && enable_static=no
  10315. if test -n "$RANLIB"; then
  10316. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10317. postinstall_cmds='$RANLIB $lib'
  10318. fi
  10319. ;;
  10320. aix[4-9]*)
  10321. if test ia64 != "$host_cpu"; then
  10322. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  10323. yes,aix,yes) ;; # shared object as lib.so file only
  10324. yes,svr4,*) ;; # shared object as lib.so archive member only
  10325. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  10326. esac
  10327. fi
  10328. ;;
  10329. esac
  10330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10331. $as_echo "$enable_shared" >&6; }
  10332. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10333. $as_echo_n "checking whether to build static libraries... " >&6; }
  10334. # Make sure either enable_shared or enable_static is yes.
  10335. test yes = "$enable_shared" || enable_static=yes
  10336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10337. $as_echo "$enable_static" >&6; }
  10338. fi
  10339. ac_ext=c
  10340. ac_cpp='$CPP $CPPFLAGS'
  10341. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10342. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10343. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10344. CC=$lt_save_CC
  10345. ac_config_commands="$ac_config_commands libtool"
  10346. # Only expand once:
  10347. if test x$GCC = xyes; then
  10348. GCC_TRUE=
  10349. GCC_FALSE='#'
  10350. else
  10351. GCC_TRUE='#'
  10352. GCC_FALSE=
  10353. fi
  10354. # Checks for libraries.
  10355. # Checks for header files.
  10356. for ac_header in endian.h fcntl.h locale.h sched.h unistd.h sys/param.h sys/stat.h sys/time.h sys/types.h
  10357. do :
  10358. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10359. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  10360. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  10361. cat >>confdefs.h <<_ACEOF
  10362. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10363. _ACEOF
  10364. fi
  10365. done
  10366. # Checks for typedefs, structures, and compiler characteristics.
  10367. ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
  10368. case $ac_cv_c_int32_t in #(
  10369. no|yes) ;; #(
  10370. *)
  10371. cat >>confdefs.h <<_ACEOF
  10372. #define int32_t $ac_cv_c_int32_t
  10373. _ACEOF
  10374. ;;
  10375. esac
  10376. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  10377. case $ac_cv_c_uint32_t in #(
  10378. no|yes) ;; #(
  10379. *)
  10380. $as_echo "#define _UINT32_T 1" >>confdefs.h
  10381. cat >>confdefs.h <<_ACEOF
  10382. #define uint32_t $ac_cv_c_uint32_t
  10383. _ACEOF
  10384. ;;
  10385. esac
  10386. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  10387. case $ac_cv_c_uint16_t in #(
  10388. no|yes) ;; #(
  10389. *)
  10390. cat >>confdefs.h <<_ACEOF
  10391. #define uint16_t $ac_cv_c_uint16_t
  10392. _ACEOF
  10393. ;;
  10394. esac
  10395. ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
  10396. case $ac_cv_c_uint8_t in #(
  10397. no|yes) ;; #(
  10398. *)
  10399. $as_echo "#define _UINT8_T 1" >>confdefs.h
  10400. cat >>confdefs.h <<_ACEOF
  10401. #define uint8_t $ac_cv_c_uint8_t
  10402. _ACEOF
  10403. ;;
  10404. esac
  10405. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
  10406. $as_echo_n "checking for unsigned long long int... " >&6; }
  10407. if ${ac_cv_type_unsigned_long_long_int+:} false; then :
  10408. $as_echo_n "(cached) " >&6
  10409. else
  10410. ac_cv_type_unsigned_long_long_int=yes
  10411. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  10412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10413. /* end confdefs.h. */
  10414. /* For now, do not test the preprocessor; as of 2007 there are too many
  10415. implementations with broken preprocessors. Perhaps this can
  10416. be revisited in 2012. In the meantime, code should not expect
  10417. #if to work with literals wider than 32 bits. */
  10418. /* Test literals. */
  10419. long long int ll = 9223372036854775807ll;
  10420. long long int nll = -9223372036854775807LL;
  10421. unsigned long long int ull = 18446744073709551615ULL;
  10422. /* Test constant expressions. */
  10423. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10424. ? 1 : -1)];
  10425. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10426. ? 1 : -1)];
  10427. int i = 63;
  10428. int
  10429. main ()
  10430. {
  10431. /* Test availability of runtime routines for shift and division. */
  10432. long long int llmax = 9223372036854775807ll;
  10433. unsigned long long int ullmax = 18446744073709551615ull;
  10434. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10435. | (llmax / ll) | (llmax % ll)
  10436. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10437. | (ullmax / ull) | (ullmax % ull));
  10438. ;
  10439. return 0;
  10440. }
  10441. _ACEOF
  10442. if ac_fn_c_try_link "$LINENO"; then :
  10443. else
  10444. ac_cv_type_unsigned_long_long_int=no
  10445. fi
  10446. rm -f core conftest.err conftest.$ac_objext \
  10447. conftest$ac_exeext conftest.$ac_ext
  10448. fi
  10449. fi
  10450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
  10451. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  10452. if test $ac_cv_type_unsigned_long_long_int = yes; then
  10453. $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
  10454. fi
  10455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
  10456. $as_echo_n "checking for long long int... " >&6; }
  10457. if ${ac_cv_type_long_long_int+:} false; then :
  10458. $as_echo_n "(cached) " >&6
  10459. else
  10460. ac_cv_type_long_long_int=yes
  10461. if test "x${ac_cv_prog_cc_c99-no}" = xno; then
  10462. ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
  10463. if test $ac_cv_type_long_long_int = yes; then
  10464. if test "$cross_compiling" = yes; then :
  10465. :
  10466. else
  10467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10468. /* end confdefs.h. */
  10469. #include <limits.h>
  10470. #ifndef LLONG_MAX
  10471. # define HALF \
  10472. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  10473. # define LLONG_MAX (HALF - 1 + HALF)
  10474. #endif
  10475. int
  10476. main ()
  10477. {
  10478. long long int n = 1;
  10479. int i;
  10480. for (i = 0; ; i++)
  10481. {
  10482. long long int m = n << i;
  10483. if (m >> i != n)
  10484. return 1;
  10485. if (LLONG_MAX / 2 < m)
  10486. break;
  10487. }
  10488. return 0;
  10489. ;
  10490. return 0;
  10491. }
  10492. _ACEOF
  10493. if ac_fn_c_try_run "$LINENO"; then :
  10494. else
  10495. ac_cv_type_long_long_int=no
  10496. fi
  10497. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10498. conftest.$ac_objext conftest.beam conftest.$ac_ext
  10499. fi
  10500. fi
  10501. fi
  10502. fi
  10503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
  10504. $as_echo "$ac_cv_type_long_long_int" >&6; }
  10505. if test $ac_cv_type_long_long_int = yes; then
  10506. $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
  10507. fi
  10508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  10509. $as_echo_n "checking for inline... " >&6; }
  10510. if ${ac_cv_c_inline+:} false; then :
  10511. $as_echo_n "(cached) " >&6
  10512. else
  10513. ac_cv_c_inline=no
  10514. for ac_kw in inline __inline__ __inline; do
  10515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10516. /* end confdefs.h. */
  10517. #ifndef __cplusplus
  10518. typedef int foo_t;
  10519. static $ac_kw foo_t static_foo () {return 0; }
  10520. $ac_kw foo_t foo () {return 0; }
  10521. #endif
  10522. _ACEOF
  10523. if ac_fn_c_try_compile "$LINENO"; then :
  10524. ac_cv_c_inline=$ac_kw
  10525. fi
  10526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10527. test "$ac_cv_c_inline" != no && break
  10528. done
  10529. fi
  10530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  10531. $as_echo "$ac_cv_c_inline" >&6; }
  10532. case $ac_cv_c_inline in
  10533. inline | yes) ;;
  10534. *)
  10535. case $ac_cv_c_inline in
  10536. no) ac_val=;;
  10537. *) ac_val=$ac_cv_c_inline;;
  10538. esac
  10539. cat >>confdefs.h <<_ACEOF
  10540. #ifndef __cplusplus
  10541. #define inline $ac_val
  10542. #endif
  10543. _ACEOF
  10544. ;;
  10545. esac
  10546. case $ac_cv_c_inline in
  10547. yes) json_inline=inline;;
  10548. no) json_inline=;;
  10549. *) json_inline=$ac_cv_c_inline;;
  10550. esac
  10551. # Checks for library functions.
  10552. for ac_func in close getpid gettimeofday localeconv open read sched_yield strtoll
  10553. do :
  10554. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10555. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  10556. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  10557. cat >>confdefs.h <<_ACEOF
  10558. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10559. _ACEOF
  10560. fi
  10561. done
  10562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc __sync builtins" >&5
  10563. $as_echo_n "checking for gcc __sync builtins... " >&6; }
  10564. have_sync_builtins=no
  10565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10566. /* end confdefs.h. */
  10567. int
  10568. main ()
  10569. {
  10570. unsigned long val; __sync_bool_compare_and_swap(&val, 0, 1);
  10571. ;
  10572. return 0;
  10573. }
  10574. _ACEOF
  10575. if ac_fn_c_try_link "$LINENO"; then :
  10576. have_sync_builtins=yes
  10577. fi
  10578. rm -f core conftest.err conftest.$ac_objext \
  10579. conftest$ac_exeext conftest.$ac_ext
  10580. if test "x$have_sync_builtins" = "xyes"; then
  10581. $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
  10582. fi
  10583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sync_builtins" >&5
  10584. $as_echo "$have_sync_builtins" >&6; }
  10585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc __atomic builtins" >&5
  10586. $as_echo_n "checking for gcc __atomic builtins... " >&6; }
  10587. have_atomic_builtins=no
  10588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10589. /* end confdefs.h. */
  10590. int
  10591. main ()
  10592. {
  10593. char l; unsigned long v; __atomic_test_and_set(&l, __ATOMIC_RELAXED); __atomic_store_n(&v, 1, __ATOMIC_RELEASE); __atomic_load_n(&v, __ATOMIC_ACQUIRE);
  10594. ;
  10595. return 0;
  10596. }
  10597. _ACEOF
  10598. if ac_fn_c_try_link "$LINENO"; then :
  10599. have_atomic_builtins=yes
  10600. fi
  10601. rm -f core conftest.err conftest.$ac_objext \
  10602. conftest$ac_exeext conftest.$ac_ext
  10603. if test "x$have_atomic_builtins" = "xyes"; then
  10604. $as_echo "#define HAVE_ATOMIC_BUILTINS 1" >>confdefs.h
  10605. fi
  10606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_atomic_builtins" >&5
  10607. $as_echo "$have_atomic_builtins" >&6; }
  10608. case "$ac_cv_type_long_long_int$ac_cv_func_strtoll" in
  10609. yesyes) json_have_long_long=1;;
  10610. *) json_have_long_long=0;;
  10611. esac
  10612. case "$ac_cv_header_locale_h$ac_cv_func_localeconv" in
  10613. yesyes) json_have_localeconv=1;;
  10614. *) json_have_localeconv=0;;
  10615. esac
  10616. # Features
  10617. # Check whether --enable-urandom was given.
  10618. if test "${enable_urandom+set}" = set; then :
  10619. enableval=$enable_urandom; use_urandom=$enableval
  10620. else
  10621. use_urandom=yes
  10622. fi
  10623. if test "x$use_urandom" = xyes; then
  10624. $as_echo "#define USE_URANDOM 1" >>confdefs.h
  10625. fi
  10626. # Check whether --enable-windows-cryptoapi was given.
  10627. if test "${enable_windows_cryptoapi+set}" = set; then :
  10628. enableval=$enable_windows_cryptoapi; use_windows_cryptoapi=$enableval
  10629. else
  10630. use_windows_cryptoapi=yes
  10631. fi
  10632. if test "x$use_windows_cryptoapi" = xyes; then
  10633. $as_echo "#define USE_WINDOWS_CRYPTOAPI 1" >>confdefs.h
  10634. fi
  10635. # Check whether --enable-initial-hashtable-order was given.
  10636. if test "${enable_initial_hashtable_order+set}" = set; then :
  10637. enableval=$enable_initial_hashtable_order; initial_hashtable_order=$enableval
  10638. else
  10639. initial_hashtable_order=3
  10640. fi
  10641. cat >>confdefs.h <<_ACEOF
  10642. #define INITIAL_HASHTABLE_ORDER $initial_hashtable_order
  10643. _ACEOF
  10644. if test x$GCC = xyes; then
  10645. AM_CFLAGS="-Wall -Wextra -Wdeclaration-after-statement"
  10646. fi
  10647. ac_config_files="$ac_config_files jansson.pc Makefile doc/Makefile src/Makefile src/jansson_config.h test/Makefile test/bin/Makefile test/suites/Makefile test/suites/api/Makefile"
  10648. cat >confcache <<\_ACEOF
  10649. # This file is a shell script that caches the results of configure
  10650. # tests run on this system so they can be shared between configure
  10651. # scripts and configure runs, see configure's option --config-cache.
  10652. # It is not useful on other systems. If it contains results you don't
  10653. # want to keep, you may remove or edit it.
  10654. #
  10655. # config.status only pays attention to the cache file if you give it
  10656. # the --recheck option to rerun configure.
  10657. #
  10658. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10659. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10660. # following values.
  10661. _ACEOF
  10662. # The following way of writing the cache mishandles newlines in values,
  10663. # but we know of no workaround that is simple, portable, and efficient.
  10664. # So, we kill variables containing newlines.
  10665. # Ultrix sh set writes to stderr and can't be redirected directly,
  10666. # and sets the high bit in the cache file unless we assign to the vars.
  10667. (
  10668. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10669. eval ac_val=\$$ac_var
  10670. case $ac_val in #(
  10671. *${as_nl}*)
  10672. case $ac_var in #(
  10673. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10674. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10675. esac
  10676. case $ac_var in #(
  10677. _ | IFS | as_nl) ;; #(
  10678. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10679. *) { eval $ac_var=; unset $ac_var;} ;;
  10680. esac ;;
  10681. esac
  10682. done
  10683. (set) 2>&1 |
  10684. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10685. *${as_nl}ac_space=\ *)
  10686. # `set' does not quote correctly, so add quotes: double-quote
  10687. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10688. sed -n \
  10689. "s/'/'\\\\''/g;
  10690. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10691. ;; #(
  10692. *)
  10693. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10694. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10695. ;;
  10696. esac |
  10697. sort
  10698. ) |
  10699. sed '
  10700. /^ac_cv_env_/b end
  10701. t clear
  10702. :clear
  10703. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10704. t end
  10705. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10706. :end' >>confcache
  10707. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10708. if test -w "$cache_file"; then
  10709. if test "x$cache_file" != "x/dev/null"; then
  10710. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10711. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10712. if test ! -f "$cache_file" || test -h "$cache_file"; then
  10713. cat confcache >"$cache_file"
  10714. else
  10715. case $cache_file in #(
  10716. */* | ?:*)
  10717. mv -f confcache "$cache_file"$$ &&
  10718. mv -f "$cache_file"$$ "$cache_file" ;; #(
  10719. *)
  10720. mv -f confcache "$cache_file" ;;
  10721. esac
  10722. fi
  10723. fi
  10724. else
  10725. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10726. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10727. fi
  10728. fi
  10729. rm -f confcache
  10730. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10731. # Let make expand exec_prefix.
  10732. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10733. DEFS=-DHAVE_CONFIG_H
  10734. ac_libobjs=
  10735. ac_ltlibobjs=
  10736. U=
  10737. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10738. # 1. Remove the extension, and $U if already installed.
  10739. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10740. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10741. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10742. # will be set to the directory where LIBOBJS objects are built.
  10743. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10744. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10745. done
  10746. LIBOBJS=$ac_libobjs
  10747. LTLIBOBJS=$ac_ltlibobjs
  10748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  10749. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  10750. if test -n "$am_sleep_pid"; then
  10751. # Hide warnings about reused PIDs.
  10752. wait $am_sleep_pid 2>/dev/null
  10753. fi
  10754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  10755. $as_echo "done" >&6; }
  10756. if test -n "$EXEEXT"; then
  10757. am__EXEEXT_TRUE=
  10758. am__EXEEXT_FALSE='#'
  10759. else
  10760. am__EXEEXT_TRUE='#'
  10761. am__EXEEXT_FALSE=
  10762. fi
  10763. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10764. as_fn_error $? "conditional \"AMDEP\" was never defined.
  10765. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10766. fi
  10767. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10768. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10769. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10770. fi
  10771. if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
  10772. as_fn_error $? "conditional \"GCC\" was never defined.
  10773. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10774. fi
  10775. : "${CONFIG_STATUS=./config.status}"
  10776. ac_write_fail=0
  10777. ac_clean_files_save=$ac_clean_files
  10778. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10779. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10780. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10781. as_write_fail=0
  10782. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10783. #! $SHELL
  10784. # Generated by $as_me.
  10785. # Run this file to recreate the current configuration.
  10786. # Compiler output produced by configure, useful for debugging
  10787. # configure, is in config.log if it exists.
  10788. debug=false
  10789. ac_cs_recheck=false
  10790. ac_cs_silent=false
  10791. SHELL=\${CONFIG_SHELL-$SHELL}
  10792. export SHELL
  10793. _ASEOF
  10794. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10795. ## -------------------- ##
  10796. ## M4sh Initialization. ##
  10797. ## -------------------- ##
  10798. # Be more Bourne compatible
  10799. DUALCASE=1; export DUALCASE # for MKS sh
  10800. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10801. emulate sh
  10802. NULLCMD=:
  10803. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10804. # is contrary to our usage. Disable this feature.
  10805. alias -g '${1+"$@"}'='"$@"'
  10806. setopt NO_GLOB_SUBST
  10807. else
  10808. case `(set -o) 2>/dev/null` in #(
  10809. *posix*) :
  10810. set -o posix ;; #(
  10811. *) :
  10812. ;;
  10813. esac
  10814. fi
  10815. as_nl='
  10816. '
  10817. export as_nl
  10818. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10819. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10820. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10821. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10822. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10823. # but without wasting forks for bash or zsh.
  10824. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10825. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10826. as_echo='print -r --'
  10827. as_echo_n='print -rn --'
  10828. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10829. as_echo='printf %s\n'
  10830. as_echo_n='printf %s'
  10831. else
  10832. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10833. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10834. as_echo_n='/usr/ucb/echo -n'
  10835. else
  10836. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10837. as_echo_n_body='eval
  10838. arg=$1;
  10839. case $arg in #(
  10840. *"$as_nl"*)
  10841. expr "X$arg" : "X\\(.*\\)$as_nl";
  10842. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10843. esac;
  10844. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10845. '
  10846. export as_echo_n_body
  10847. as_echo_n='sh -c $as_echo_n_body as_echo'
  10848. fi
  10849. export as_echo_body
  10850. as_echo='sh -c $as_echo_body as_echo'
  10851. fi
  10852. # The user is always right.
  10853. if test "${PATH_SEPARATOR+set}" != set; then
  10854. PATH_SEPARATOR=:
  10855. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10856. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10857. PATH_SEPARATOR=';'
  10858. }
  10859. fi
  10860. # IFS
  10861. # We need space, tab and new line, in precisely that order. Quoting is
  10862. # there to prevent editors from complaining about space-tab.
  10863. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10864. # splitting by setting IFS to empty value.)
  10865. IFS=" "" $as_nl"
  10866. # Find who we are. Look in the path if we contain no directory separator.
  10867. as_myself=
  10868. case $0 in #((
  10869. *[\\/]* ) as_myself=$0 ;;
  10870. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10871. for as_dir in $PATH
  10872. do
  10873. IFS=$as_save_IFS
  10874. test -z "$as_dir" && as_dir=.
  10875. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10876. done
  10877. IFS=$as_save_IFS
  10878. ;;
  10879. esac
  10880. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10881. # in which case we are not to be found in the path.
  10882. if test "x$as_myself" = x; then
  10883. as_myself=$0
  10884. fi
  10885. if test ! -f "$as_myself"; then
  10886. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10887. exit 1
  10888. fi
  10889. # Unset variables that we do not need and which cause bugs (e.g. in
  10890. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10891. # suppresses any "Segmentation fault" message there. '((' could
  10892. # trigger a bug in pdksh 5.2.14.
  10893. for as_var in BASH_ENV ENV MAIL MAILPATH
  10894. do eval test x\${$as_var+set} = xset \
  10895. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10896. done
  10897. PS1='$ '
  10898. PS2='> '
  10899. PS4='+ '
  10900. # NLS nuisances.
  10901. LC_ALL=C
  10902. export LC_ALL
  10903. LANGUAGE=C
  10904. export LANGUAGE
  10905. # CDPATH.
  10906. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10907. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  10908. # ----------------------------------------
  10909. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10910. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10911. # script with STATUS, using 1 if that was 0.
  10912. as_fn_error ()
  10913. {
  10914. as_status=$1; test $as_status -eq 0 && as_status=1
  10915. if test "$4"; then
  10916. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10917. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10918. fi
  10919. $as_echo "$as_me: error: $2" >&2
  10920. as_fn_exit $as_status
  10921. } # as_fn_error
  10922. # as_fn_set_status STATUS
  10923. # -----------------------
  10924. # Set $? to STATUS, without forking.
  10925. as_fn_set_status ()
  10926. {
  10927. return $1
  10928. } # as_fn_set_status
  10929. # as_fn_exit STATUS
  10930. # -----------------
  10931. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10932. as_fn_exit ()
  10933. {
  10934. set +e
  10935. as_fn_set_status $1
  10936. exit $1
  10937. } # as_fn_exit
  10938. # as_fn_unset VAR
  10939. # ---------------
  10940. # Portably unset VAR.
  10941. as_fn_unset ()
  10942. {
  10943. { eval $1=; unset $1;}
  10944. }
  10945. as_unset=as_fn_unset
  10946. # as_fn_append VAR VALUE
  10947. # ----------------------
  10948. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10949. # advantage of any shell optimizations that allow amortized linear growth over
  10950. # repeated appends, instead of the typical quadratic growth present in naive
  10951. # implementations.
  10952. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10953. eval 'as_fn_append ()
  10954. {
  10955. eval $1+=\$2
  10956. }'
  10957. else
  10958. as_fn_append ()
  10959. {
  10960. eval $1=\$$1\$2
  10961. }
  10962. fi # as_fn_append
  10963. # as_fn_arith ARG...
  10964. # ------------------
  10965. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10966. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10967. # must be portable across $(()) and expr.
  10968. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10969. eval 'as_fn_arith ()
  10970. {
  10971. as_val=$(( $* ))
  10972. }'
  10973. else
  10974. as_fn_arith ()
  10975. {
  10976. as_val=`expr "$@" || test $? -eq 1`
  10977. }
  10978. fi # as_fn_arith
  10979. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10980. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10981. as_expr=expr
  10982. else
  10983. as_expr=false
  10984. fi
  10985. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10986. as_basename=basename
  10987. else
  10988. as_basename=false
  10989. fi
  10990. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10991. as_dirname=dirname
  10992. else
  10993. as_dirname=false
  10994. fi
  10995. as_me=`$as_basename -- "$0" ||
  10996. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10997. X"$0" : 'X\(//\)$' \| \
  10998. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10999. $as_echo X/"$0" |
  11000. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11001. s//\1/
  11002. q
  11003. }
  11004. /^X\/\(\/\/\)$/{
  11005. s//\1/
  11006. q
  11007. }
  11008. /^X\/\(\/\).*/{
  11009. s//\1/
  11010. q
  11011. }
  11012. s/.*/./; q'`
  11013. # Avoid depending upon Character Ranges.
  11014. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11015. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11016. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11017. as_cr_digits='0123456789'
  11018. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11019. ECHO_C= ECHO_N= ECHO_T=
  11020. case `echo -n x` in #(((((
  11021. -n*)
  11022. case `echo 'xy\c'` in
  11023. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11024. xy) ECHO_C='\c';;
  11025. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11026. ECHO_T=' ';;
  11027. esac;;
  11028. *)
  11029. ECHO_N='-n';;
  11030. esac
  11031. rm -f conf$$ conf$$.exe conf$$.file
  11032. if test -d conf$$.dir; then
  11033. rm -f conf$$.dir/conf$$.file
  11034. else
  11035. rm -f conf$$.dir
  11036. mkdir conf$$.dir 2>/dev/null
  11037. fi
  11038. if (echo >conf$$.file) 2>/dev/null; then
  11039. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11040. as_ln_s='ln -s'
  11041. # ... but there are two gotchas:
  11042. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11043. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11044. # In both cases, we have to default to `cp -pR'.
  11045. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11046. as_ln_s='cp -pR'
  11047. elif ln conf$$.file conf$$ 2>/dev/null; then
  11048. as_ln_s=ln
  11049. else
  11050. as_ln_s='cp -pR'
  11051. fi
  11052. else
  11053. as_ln_s='cp -pR'
  11054. fi
  11055. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11056. rmdir conf$$.dir 2>/dev/null
  11057. # as_fn_mkdir_p
  11058. # -------------
  11059. # Create "$as_dir" as a directory, including parents if necessary.
  11060. as_fn_mkdir_p ()
  11061. {
  11062. case $as_dir in #(
  11063. -*) as_dir=./$as_dir;;
  11064. esac
  11065. test -d "$as_dir" || eval $as_mkdir_p || {
  11066. as_dirs=
  11067. while :; do
  11068. case $as_dir in #(
  11069. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11070. *) as_qdir=$as_dir;;
  11071. esac
  11072. as_dirs="'$as_qdir' $as_dirs"
  11073. as_dir=`$as_dirname -- "$as_dir" ||
  11074. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11075. X"$as_dir" : 'X\(//\)[^/]' \| \
  11076. X"$as_dir" : 'X\(//\)$' \| \
  11077. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11078. $as_echo X"$as_dir" |
  11079. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11080. s//\1/
  11081. q
  11082. }
  11083. /^X\(\/\/\)[^/].*/{
  11084. s//\1/
  11085. q
  11086. }
  11087. /^X\(\/\/\)$/{
  11088. s//\1/
  11089. q
  11090. }
  11091. /^X\(\/\).*/{
  11092. s//\1/
  11093. q
  11094. }
  11095. s/.*/./; q'`
  11096. test -d "$as_dir" && break
  11097. done
  11098. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11099. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  11100. } # as_fn_mkdir_p
  11101. if mkdir -p . 2>/dev/null; then
  11102. as_mkdir_p='mkdir -p "$as_dir"'
  11103. else
  11104. test -d ./-p && rmdir ./-p
  11105. as_mkdir_p=false
  11106. fi
  11107. # as_fn_executable_p FILE
  11108. # -----------------------
  11109. # Test if FILE is an executable regular file.
  11110. as_fn_executable_p ()
  11111. {
  11112. test -f "$1" && test -x "$1"
  11113. } # as_fn_executable_p
  11114. as_test_x='test -x'
  11115. as_executable_p=as_fn_executable_p
  11116. # Sed expression to map a string onto a valid CPP name.
  11117. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11118. # Sed expression to map a string onto a valid variable name.
  11119. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11120. exec 6>&1
  11121. ## ----------------------------------- ##
  11122. ## Main body of $CONFIG_STATUS script. ##
  11123. ## ----------------------------------- ##
  11124. _ASEOF
  11125. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11126. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11127. # Save the log message, to keep $0 and so on meaningful, and to
  11128. # report actual input values of CONFIG_FILES etc. instead of their
  11129. # values after options handling.
  11130. ac_log="
  11131. This file was extended by jansson $as_me 2.10, which was
  11132. generated by GNU Autoconf 2.69. Invocation command line was
  11133. CONFIG_FILES = $CONFIG_FILES
  11134. CONFIG_HEADERS = $CONFIG_HEADERS
  11135. CONFIG_LINKS = $CONFIG_LINKS
  11136. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11137. $ $0 $@
  11138. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11139. "
  11140. _ACEOF
  11141. case $ac_config_files in *"
  11142. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11143. esac
  11144. case $ac_config_headers in *"
  11145. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11146. esac
  11147. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11148. # Files that config.status was made for.
  11149. config_files="$ac_config_files"
  11150. config_headers="$ac_config_headers"
  11151. config_commands="$ac_config_commands"
  11152. _ACEOF
  11153. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11154. ac_cs_usage="\
  11155. \`$as_me' instantiates files and other configuration actions
  11156. from templates according to the current configuration. Unless the files
  11157. and actions are specified as TAGs, all are instantiated by default.
  11158. Usage: $0 [OPTION]... [TAG]...
  11159. -h, --help print this help, then exit
  11160. -V, --version print version number and configuration settings, then exit
  11161. --config print configuration, then exit
  11162. -q, --quiet, --silent
  11163. do not print progress messages
  11164. -d, --debug don't remove temporary files
  11165. --recheck update $as_me by reconfiguring in the same conditions
  11166. --file=FILE[:TEMPLATE]
  11167. instantiate the configuration file FILE
  11168. --header=FILE[:TEMPLATE]
  11169. instantiate the configuration header FILE
  11170. Configuration files:
  11171. $config_files
  11172. Configuration headers:
  11173. $config_headers
  11174. Configuration commands:
  11175. $config_commands
  11176. Report bugs to <petri@digip.org>."
  11177. _ACEOF
  11178. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11179. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  11180. ac_cs_version="\\
  11181. jansson config.status 2.10
  11182. configured by $0, generated by GNU Autoconf 2.69,
  11183. with options \\"\$ac_cs_config\\"
  11184. Copyright (C) 2012 Free Software Foundation, Inc.
  11185. This config.status script is free software; the Free Software Foundation
  11186. gives unlimited permission to copy, distribute and modify it."
  11187. ac_pwd='$ac_pwd'
  11188. srcdir='$srcdir'
  11189. INSTALL='$INSTALL'
  11190. MKDIR_P='$MKDIR_P'
  11191. AWK='$AWK'
  11192. test -n "\$AWK" || AWK=awk
  11193. _ACEOF
  11194. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11195. # The default lists apply if the user does not specify any file.
  11196. ac_need_defaults=:
  11197. while test $# != 0
  11198. do
  11199. case $1 in
  11200. --*=?*)
  11201. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11202. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11203. ac_shift=:
  11204. ;;
  11205. --*=)
  11206. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11207. ac_optarg=
  11208. ac_shift=:
  11209. ;;
  11210. *)
  11211. ac_option=$1
  11212. ac_optarg=$2
  11213. ac_shift=shift
  11214. ;;
  11215. esac
  11216. case $ac_option in
  11217. # Handling of the options.
  11218. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11219. ac_cs_recheck=: ;;
  11220. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11221. $as_echo "$ac_cs_version"; exit ;;
  11222. --config | --confi | --conf | --con | --co | --c )
  11223. $as_echo "$ac_cs_config"; exit ;;
  11224. --debug | --debu | --deb | --de | --d | -d )
  11225. debug=: ;;
  11226. --file | --fil | --fi | --f )
  11227. $ac_shift
  11228. case $ac_optarg in
  11229. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11230. '') as_fn_error $? "missing file argument" ;;
  11231. esac
  11232. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11233. ac_need_defaults=false;;
  11234. --header | --heade | --head | --hea )
  11235. $ac_shift
  11236. case $ac_optarg in
  11237. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11238. esac
  11239. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11240. ac_need_defaults=false;;
  11241. --he | --h)
  11242. # Conflict between --help and --header
  11243. as_fn_error $? "ambiguous option: \`$1'
  11244. Try \`$0 --help' for more information.";;
  11245. --help | --hel | -h )
  11246. $as_echo "$ac_cs_usage"; exit ;;
  11247. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11248. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11249. ac_cs_silent=: ;;
  11250. # This is an error.
  11251. -*) as_fn_error $? "unrecognized option: \`$1'
  11252. Try \`$0 --help' for more information." ;;
  11253. *) as_fn_append ac_config_targets " $1"
  11254. ac_need_defaults=false ;;
  11255. esac
  11256. shift
  11257. done
  11258. ac_configure_extra_args=
  11259. if $ac_cs_silent; then
  11260. exec 6>/dev/null
  11261. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11262. fi
  11263. _ACEOF
  11264. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11265. if \$ac_cs_recheck; then
  11266. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11267. shift
  11268. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11269. CONFIG_SHELL='$SHELL'
  11270. export CONFIG_SHELL
  11271. exec "\$@"
  11272. fi
  11273. _ACEOF
  11274. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11275. exec 5>>config.log
  11276. {
  11277. echo
  11278. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11279. ## Running $as_me. ##
  11280. _ASBOX
  11281. $as_echo "$ac_log"
  11282. } >&5
  11283. _ACEOF
  11284. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11285. #
  11286. # INIT-COMMANDS
  11287. #
  11288. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11289. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11290. # if CDPATH is set.
  11291. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11292. sed_quote_subst='$sed_quote_subst'
  11293. double_quote_subst='$double_quote_subst'
  11294. delay_variable_subst='$delay_variable_subst'
  11295. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11296. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11297. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11298. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11299. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11300. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11301. shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
  11302. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11303. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11304. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  11305. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11306. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11307. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11308. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11309. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11310. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11311. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11312. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11313. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11314. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11315. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11316. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11317. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11318. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11319. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  11320. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  11321. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  11322. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  11323. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  11324. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  11325. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  11326. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  11327. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  11328. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  11329. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  11330. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  11331. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11332. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  11333. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  11334. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  11335. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  11336. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11337. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11338. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  11339. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11340. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11341. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11342. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11343. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11344. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11345. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11346. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11347. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11348. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11349. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11350. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11351. lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
  11352. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11353. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11354. lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
  11355. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  11356. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  11357. lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
  11358. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11359. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11360. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11361. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11362. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11363. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11364. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11365. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11366. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  11367. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11368. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11369. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11370. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11371. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11372. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11373. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11374. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11375. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11376. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11377. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11378. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11379. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11380. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11381. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11382. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11383. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11384. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11385. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11386. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11387. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11388. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11389. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11390. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11391. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11392. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11393. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11394. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11395. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11396. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11397. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11398. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11399. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11400. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11401. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11402. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11403. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  11404. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11405. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11406. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11407. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11408. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11409. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11410. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11411. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11412. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11413. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11414. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11415. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11416. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11417. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11418. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11419. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11420. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11421. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11422. configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
  11423. configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
  11424. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11425. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11426. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11427. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11428. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11429. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11430. LTCC='$LTCC'
  11431. LTCFLAGS='$LTCFLAGS'
  11432. compiler='$compiler_DEFAULT'
  11433. # A function that is used when there is no print builtin or printf.
  11434. func_fallback_echo ()
  11435. {
  11436. eval 'cat <<_LTECHO_EOF
  11437. \$1
  11438. _LTECHO_EOF'
  11439. }
  11440. # Quote evaled strings.
  11441. for var in SHELL \
  11442. ECHO \
  11443. PATH_SEPARATOR \
  11444. SED \
  11445. GREP \
  11446. EGREP \
  11447. FGREP \
  11448. LD \
  11449. NM \
  11450. LN_S \
  11451. lt_SP2NL \
  11452. lt_NL2SP \
  11453. reload_flag \
  11454. OBJDUMP \
  11455. deplibs_check_method \
  11456. file_magic_cmd \
  11457. file_magic_glob \
  11458. want_nocaseglob \
  11459. DLLTOOL \
  11460. sharedlib_from_linklib_cmd \
  11461. AR \
  11462. AR_FLAGS \
  11463. archiver_list_spec \
  11464. STRIP \
  11465. RANLIB \
  11466. CC \
  11467. CFLAGS \
  11468. compiler \
  11469. lt_cv_sys_global_symbol_pipe \
  11470. lt_cv_sys_global_symbol_to_cdecl \
  11471. lt_cv_sys_global_symbol_to_import \
  11472. lt_cv_sys_global_symbol_to_c_name_address \
  11473. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11474. lt_cv_nm_interface \
  11475. nm_file_list_spec \
  11476. lt_cv_truncate_bin \
  11477. lt_prog_compiler_no_builtin_flag \
  11478. lt_prog_compiler_pic \
  11479. lt_prog_compiler_wl \
  11480. lt_prog_compiler_static \
  11481. lt_cv_prog_compiler_c_o \
  11482. need_locks \
  11483. MANIFEST_TOOL \
  11484. DSYMUTIL \
  11485. NMEDIT \
  11486. LIPO \
  11487. OTOOL \
  11488. OTOOL64 \
  11489. shrext_cmds \
  11490. export_dynamic_flag_spec \
  11491. whole_archive_flag_spec \
  11492. compiler_needs_object \
  11493. with_gnu_ld \
  11494. allow_undefined_flag \
  11495. no_undefined_flag \
  11496. hardcode_libdir_flag_spec \
  11497. hardcode_libdir_separator \
  11498. exclude_expsyms \
  11499. include_expsyms \
  11500. file_list_spec \
  11501. variables_saved_for_relink \
  11502. libname_spec \
  11503. library_names_spec \
  11504. soname_spec \
  11505. install_override_mode \
  11506. finish_eval \
  11507. old_striplib \
  11508. striplib; do
  11509. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11510. *[\\\\\\\`\\"\\\$]*)
  11511. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  11512. ;;
  11513. *)
  11514. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11515. ;;
  11516. esac
  11517. done
  11518. # Double-quote double-evaled strings.
  11519. for var in reload_cmds \
  11520. old_postinstall_cmds \
  11521. old_postuninstall_cmds \
  11522. old_archive_cmds \
  11523. extract_expsyms_cmds \
  11524. old_archive_from_new_cmds \
  11525. old_archive_from_expsyms_cmds \
  11526. archive_cmds \
  11527. archive_expsym_cmds \
  11528. module_cmds \
  11529. module_expsym_cmds \
  11530. export_symbols_cmds \
  11531. prelink_cmds \
  11532. postlink_cmds \
  11533. postinstall_cmds \
  11534. postuninstall_cmds \
  11535. finish_cmds \
  11536. sys_lib_search_path_spec \
  11537. configure_time_dlsearch_path \
  11538. configure_time_lt_sys_library_path; do
  11539. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11540. *[\\\\\\\`\\"\\\$]*)
  11541. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  11542. ;;
  11543. *)
  11544. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11545. ;;
  11546. esac
  11547. done
  11548. ac_aux_dir='$ac_aux_dir'
  11549. # See if we are running on zsh, and set the options that allow our
  11550. # commands through without removal of \ escapes INIT.
  11551. if test -n "\${ZSH_VERSION+set}"; then
  11552. setopt NO_GLOB_SUBST
  11553. fi
  11554. PACKAGE='$PACKAGE'
  11555. VERSION='$VERSION'
  11556. RM='$RM'
  11557. ofile='$ofile'
  11558. _ACEOF
  11559. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11560. # Handling of arguments.
  11561. for ac_config_target in $ac_config_targets
  11562. do
  11563. case $ac_config_target in
  11564. "jansson_private_config.h") CONFIG_HEADERS="$CONFIG_HEADERS jansson_private_config.h" ;;
  11565. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11566. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11567. "jansson.pc") CONFIG_FILES="$CONFIG_FILES jansson.pc" ;;
  11568. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11569. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  11570. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11571. "src/jansson_config.h") CONFIG_FILES="$CONFIG_FILES src/jansson_config.h" ;;
  11572. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  11573. "test/bin/Makefile") CONFIG_FILES="$CONFIG_FILES test/bin/Makefile" ;;
  11574. "test/suites/Makefile") CONFIG_FILES="$CONFIG_FILES test/suites/Makefile" ;;
  11575. "test/suites/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/suites/api/Makefile" ;;
  11576. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11577. esac
  11578. done
  11579. # If the user did not use the arguments to specify the items to instantiate,
  11580. # then the envvar interface is used. Set only those that are not.
  11581. # We use the long form for the default assignment because of an extremely
  11582. # bizarre bug on SunOS 4.1.3.
  11583. if $ac_need_defaults; then
  11584. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11585. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11586. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11587. fi
  11588. # Have a temporary directory for convenience. Make it in the build tree
  11589. # simply because there is no reason against having it here, and in addition,
  11590. # creating and moving files from /tmp can sometimes cause problems.
  11591. # Hook for its removal unless debugging.
  11592. # Note that there is a small window in which the directory will not be cleaned:
  11593. # after its creation but before its name has been assigned to `$tmp'.
  11594. $debug ||
  11595. {
  11596. tmp= ac_tmp=
  11597. trap 'exit_status=$?
  11598. : "${ac_tmp:=$tmp}"
  11599. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  11600. ' 0
  11601. trap 'as_fn_exit 1' 1 2 13 15
  11602. }
  11603. # Create a (secure) tmp directory for tmp files.
  11604. {
  11605. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11606. test -d "$tmp"
  11607. } ||
  11608. {
  11609. tmp=./conf$$-$RANDOM
  11610. (umask 077 && mkdir "$tmp")
  11611. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  11612. ac_tmp=$tmp
  11613. # Set up the scripts for CONFIG_FILES section.
  11614. # No need to generate them if there are no CONFIG_FILES.
  11615. # This happens for instance with `./config.status config.h'.
  11616. if test -n "$CONFIG_FILES"; then
  11617. ac_cr=`echo X | tr X '\015'`
  11618. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11619. # But we know of no other shell where ac_cr would be empty at this
  11620. # point, so we can use a bashism as a fallback.
  11621. if test "x$ac_cr" = x; then
  11622. eval ac_cr=\$\'\\r\'
  11623. fi
  11624. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11625. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11626. ac_cs_awk_cr='\\r'
  11627. else
  11628. ac_cs_awk_cr=$ac_cr
  11629. fi
  11630. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  11631. _ACEOF
  11632. {
  11633. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11634. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11635. echo "_ACEOF"
  11636. } >conf$$subs.sh ||
  11637. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11638. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  11639. ac_delim='%!_!# '
  11640. for ac_last_try in false false false false false :; do
  11641. . ./conf$$subs.sh ||
  11642. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11643. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11644. if test $ac_delim_n = $ac_delim_num; then
  11645. break
  11646. elif $ac_last_try; then
  11647. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11648. else
  11649. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11650. fi
  11651. done
  11652. rm -f conf$$subs.sh
  11653. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11654. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  11655. _ACEOF
  11656. sed -n '
  11657. h
  11658. s/^/S["/; s/!.*/"]=/
  11659. p
  11660. g
  11661. s/^[^!]*!//
  11662. :repl
  11663. t repl
  11664. s/'"$ac_delim"'$//
  11665. t delim
  11666. :nl
  11667. h
  11668. s/\(.\{148\}\)..*/\1/
  11669. t more1
  11670. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11671. p
  11672. n
  11673. b repl
  11674. :more1
  11675. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11676. p
  11677. g
  11678. s/.\{148\}//
  11679. t nl
  11680. :delim
  11681. h
  11682. s/\(.\{148\}\)..*/\1/
  11683. t more2
  11684. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11685. p
  11686. b
  11687. :more2
  11688. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11689. p
  11690. g
  11691. s/.\{148\}//
  11692. t delim
  11693. ' <conf$$subs.awk | sed '
  11694. /^[^""]/{
  11695. N
  11696. s/\n//
  11697. }
  11698. ' >>$CONFIG_STATUS || ac_write_fail=1
  11699. rm -f conf$$subs.awk
  11700. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11701. _ACAWK
  11702. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  11703. for (key in S) S_is_set[key] = 1
  11704. FS = ""
  11705. }
  11706. {
  11707. line = $ 0
  11708. nfields = split(line, field, "@")
  11709. substed = 0
  11710. len = length(field[1])
  11711. for (i = 2; i < nfields; i++) {
  11712. key = field[i]
  11713. keylen = length(key)
  11714. if (S_is_set[key]) {
  11715. value = S[key]
  11716. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11717. len += length(value) + length(field[++i])
  11718. substed = 1
  11719. } else
  11720. len += 1 + keylen
  11721. }
  11722. print line
  11723. }
  11724. _ACAWK
  11725. _ACEOF
  11726. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11727. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11728. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11729. else
  11730. cat
  11731. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  11732. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  11733. _ACEOF
  11734. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  11735. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  11736. # trailing colons and then remove the whole line if VPATH becomes empty
  11737. # (actually we leave an empty line to preserve line numbers).
  11738. if test "x$srcdir" = x.; then
  11739. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  11740. h
  11741. s///
  11742. s/^/:/
  11743. s/[ ]*$/:/
  11744. s/:\$(srcdir):/:/g
  11745. s/:\${srcdir}:/:/g
  11746. s/:@srcdir@:/:/g
  11747. s/^:*//
  11748. s/:*$//
  11749. x
  11750. s/\(=[ ]*\).*/\1/
  11751. G
  11752. s/\n//
  11753. s/^[^=]*=[ ]*$//
  11754. }'
  11755. fi
  11756. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11757. fi # test -n "$CONFIG_FILES"
  11758. # Set up the scripts for CONFIG_HEADERS section.
  11759. # No need to generate them if there are no CONFIG_HEADERS.
  11760. # This happens for instance with `./config.status Makefile'.
  11761. if test -n "$CONFIG_HEADERS"; then
  11762. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  11763. BEGIN {
  11764. _ACEOF
  11765. # Transform confdefs.h into an awk script `defines.awk', embedded as
  11766. # here-document in config.status, that substitutes the proper values into
  11767. # config.h.in to produce config.h.
  11768. # Create a delimiter string that does not exist in confdefs.h, to ease
  11769. # handling of long lines.
  11770. ac_delim='%!_!# '
  11771. for ac_last_try in false false :; do
  11772. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  11773. if test -z "$ac_tt"; then
  11774. break
  11775. elif $ac_last_try; then
  11776. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  11777. else
  11778. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11779. fi
  11780. done
  11781. # For the awk script, D is an array of macro values keyed by name,
  11782. # likewise P contains macro parameters if any. Preserve backslash
  11783. # newline sequences.
  11784. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11785. sed -n '
  11786. s/.\{148\}/&'"$ac_delim"'/g
  11787. t rset
  11788. :rset
  11789. s/^[ ]*#[ ]*define[ ][ ]*/ /
  11790. t def
  11791. d
  11792. :def
  11793. s/\\$//
  11794. t bsnl
  11795. s/["\\]/\\&/g
  11796. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11797. D["\1"]=" \3"/p
  11798. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  11799. d
  11800. :bsnl
  11801. s/["\\]/\\&/g
  11802. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11803. D["\1"]=" \3\\\\\\n"\\/p
  11804. t cont
  11805. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  11806. t cont
  11807. d
  11808. :cont
  11809. n
  11810. s/.\{148\}/&'"$ac_delim"'/g
  11811. t clear
  11812. :clear
  11813. s/\\$//
  11814. t bsnlc
  11815. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  11816. d
  11817. :bsnlc
  11818. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  11819. b cont
  11820. ' <confdefs.h | sed '
  11821. s/'"$ac_delim"'/"\\\
  11822. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  11823. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11824. for (key in D) D_is_set[key] = 1
  11825. FS = ""
  11826. }
  11827. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  11828. line = \$ 0
  11829. split(line, arg, " ")
  11830. if (arg[1] == "#") {
  11831. defundef = arg[2]
  11832. mac1 = arg[3]
  11833. } else {
  11834. defundef = substr(arg[1], 2)
  11835. mac1 = arg[2]
  11836. }
  11837. split(mac1, mac2, "(") #)
  11838. macro = mac2[1]
  11839. prefix = substr(line, 1, index(line, defundef) - 1)
  11840. if (D_is_set[macro]) {
  11841. # Preserve the white space surrounding the "#".
  11842. print prefix "define", macro P[macro] D[macro]
  11843. next
  11844. } else {
  11845. # Replace #undef with comments. This is necessary, for example,
  11846. # in the case of _POSIX_SOURCE, which is predefined and required
  11847. # on some systems where configure will not decide to define it.
  11848. if (defundef == "undef") {
  11849. print "/*", prefix defundef, macro, "*/"
  11850. next
  11851. }
  11852. }
  11853. }
  11854. { print }
  11855. _ACAWK
  11856. _ACEOF
  11857. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11858. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  11859. fi # test -n "$CONFIG_HEADERS"
  11860. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  11861. shift
  11862. for ac_tag
  11863. do
  11864. case $ac_tag in
  11865. :[FHLC]) ac_mode=$ac_tag; continue;;
  11866. esac
  11867. case $ac_mode$ac_tag in
  11868. :[FHL]*:*);;
  11869. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11870. :[FH]-) ac_tag=-:-;;
  11871. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11872. esac
  11873. ac_save_IFS=$IFS
  11874. IFS=:
  11875. set x $ac_tag
  11876. IFS=$ac_save_IFS
  11877. shift
  11878. ac_file=$1
  11879. shift
  11880. case $ac_mode in
  11881. :L) ac_source=$1;;
  11882. :[FH])
  11883. ac_file_inputs=
  11884. for ac_f
  11885. do
  11886. case $ac_f in
  11887. -) ac_f="$ac_tmp/stdin";;
  11888. *) # Look for the file first in the build tree, then in the source tree
  11889. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11890. # because $ac_f cannot contain `:'.
  11891. test -f "$ac_f" ||
  11892. case $ac_f in
  11893. [\\/$]*) false;;
  11894. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11895. esac ||
  11896. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11897. esac
  11898. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11899. as_fn_append ac_file_inputs " '$ac_f'"
  11900. done
  11901. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11902. # use $as_me), people would be surprised to read:
  11903. # /* config.h. Generated by config.status. */
  11904. configure_input='Generated from '`
  11905. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11906. `' by configure.'
  11907. if test x"$ac_file" != x-; then
  11908. configure_input="$ac_file. $configure_input"
  11909. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11910. $as_echo "$as_me: creating $ac_file" >&6;}
  11911. fi
  11912. # Neutralize special characters interpreted by sed in replacement strings.
  11913. case $configure_input in #(
  11914. *\&* | *\|* | *\\* )
  11915. ac_sed_conf_input=`$as_echo "$configure_input" |
  11916. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11917. *) ac_sed_conf_input=$configure_input;;
  11918. esac
  11919. case $ac_tag in
  11920. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  11921. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  11922. esac
  11923. ;;
  11924. esac
  11925. ac_dir=`$as_dirname -- "$ac_file" ||
  11926. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11927. X"$ac_file" : 'X\(//\)[^/]' \| \
  11928. X"$ac_file" : 'X\(//\)$' \| \
  11929. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11930. $as_echo X"$ac_file" |
  11931. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11932. s//\1/
  11933. q
  11934. }
  11935. /^X\(\/\/\)[^/].*/{
  11936. s//\1/
  11937. q
  11938. }
  11939. /^X\(\/\/\)$/{
  11940. s//\1/
  11941. q
  11942. }
  11943. /^X\(\/\).*/{
  11944. s//\1/
  11945. q
  11946. }
  11947. s/.*/./; q'`
  11948. as_dir="$ac_dir"; as_fn_mkdir_p
  11949. ac_builddir=.
  11950. case "$ac_dir" in
  11951. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11952. *)
  11953. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11954. # A ".." for each directory in $ac_dir_suffix.
  11955. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11956. case $ac_top_builddir_sub in
  11957. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11958. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11959. esac ;;
  11960. esac
  11961. ac_abs_top_builddir=$ac_pwd
  11962. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11963. # for backward compatibility:
  11964. ac_top_builddir=$ac_top_build_prefix
  11965. case $srcdir in
  11966. .) # We are building in place.
  11967. ac_srcdir=.
  11968. ac_top_srcdir=$ac_top_builddir_sub
  11969. ac_abs_top_srcdir=$ac_pwd ;;
  11970. [\\/]* | ?:[\\/]* ) # Absolute name.
  11971. ac_srcdir=$srcdir$ac_dir_suffix;
  11972. ac_top_srcdir=$srcdir
  11973. ac_abs_top_srcdir=$srcdir ;;
  11974. *) # Relative name.
  11975. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11976. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11977. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11978. esac
  11979. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11980. case $ac_mode in
  11981. :F)
  11982. #
  11983. # CONFIG_FILE
  11984. #
  11985. case $INSTALL in
  11986. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11987. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11988. esac
  11989. ac_MKDIR_P=$MKDIR_P
  11990. case $MKDIR_P in
  11991. [\\/$]* | ?:[\\/]* ) ;;
  11992. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11993. esac
  11994. _ACEOF
  11995. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11996. # If the template does not know about datarootdir, expand it.
  11997. # FIXME: This hack should be removed a few years after 2.60.
  11998. ac_datarootdir_hack=; ac_datarootdir_seen=
  11999. ac_sed_dataroot='
  12000. /datarootdir/ {
  12001. p
  12002. q
  12003. }
  12004. /@datadir@/p
  12005. /@docdir@/p
  12006. /@infodir@/p
  12007. /@localedir@/p
  12008. /@mandir@/p'
  12009. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12010. *datarootdir*) ac_datarootdir_seen=yes;;
  12011. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12012. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12013. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12014. _ACEOF
  12015. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12016. ac_datarootdir_hack='
  12017. s&@datadir@&$datadir&g
  12018. s&@docdir@&$docdir&g
  12019. s&@infodir@&$infodir&g
  12020. s&@localedir@&$localedir&g
  12021. s&@mandir@&$mandir&g
  12022. s&\\\${datarootdir}&$datarootdir&g' ;;
  12023. esac
  12024. _ACEOF
  12025. # Neutralize VPATH when `$srcdir' = `.'.
  12026. # Shell code in configure.ac might set extrasub.
  12027. # FIXME: do we really want to maintain this feature?
  12028. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12029. ac_sed_extra="$ac_vpsub
  12030. $extrasub
  12031. _ACEOF
  12032. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12033. :t
  12034. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12035. s|@configure_input@|$ac_sed_conf_input|;t t
  12036. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12037. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12038. s&@srcdir@&$ac_srcdir&;t t
  12039. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12040. s&@top_srcdir@&$ac_top_srcdir&;t t
  12041. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12042. s&@builddir@&$ac_builddir&;t t
  12043. s&@abs_builddir@&$ac_abs_builddir&;t t
  12044. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12045. s&@INSTALL@&$ac_INSTALL&;t t
  12046. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12047. $ac_datarootdir_hack
  12048. "
  12049. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  12050. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12051. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12052. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  12053. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  12054. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  12055. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12056. which seems to be undefined. Please make sure it is defined" >&5
  12057. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12058. which seems to be undefined. Please make sure it is defined" >&2;}
  12059. rm -f "$ac_tmp/stdin"
  12060. case $ac_file in
  12061. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  12062. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  12063. esac \
  12064. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12065. ;;
  12066. :H)
  12067. #
  12068. # CONFIG_HEADER
  12069. #
  12070. if test x"$ac_file" != x-; then
  12071. {
  12072. $as_echo "/* $configure_input */" \
  12073. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  12074. } >"$ac_tmp/config.h" \
  12075. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12076. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  12077. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12078. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12079. else
  12080. rm -f "$ac_file"
  12081. mv "$ac_tmp/config.h" "$ac_file" \
  12082. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12083. fi
  12084. else
  12085. $as_echo "/* $configure_input */" \
  12086. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  12087. || as_fn_error $? "could not create -" "$LINENO" 5
  12088. fi
  12089. # Compute "$ac_file"'s index in $config_headers.
  12090. _am_arg="$ac_file"
  12091. _am_stamp_count=1
  12092. for _am_header in $config_headers :; do
  12093. case $_am_header in
  12094. $_am_arg | $_am_arg:* )
  12095. break ;;
  12096. * )
  12097. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12098. esac
  12099. done
  12100. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  12101. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12102. X"$_am_arg" : 'X\(//\)[^/]' \| \
  12103. X"$_am_arg" : 'X\(//\)$' \| \
  12104. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  12105. $as_echo X"$_am_arg" |
  12106. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12107. s//\1/
  12108. q
  12109. }
  12110. /^X\(\/\/\)[^/].*/{
  12111. s//\1/
  12112. q
  12113. }
  12114. /^X\(\/\/\)$/{
  12115. s//\1/
  12116. q
  12117. }
  12118. /^X\(\/\).*/{
  12119. s//\1/
  12120. q
  12121. }
  12122. s/.*/./; q'`/stamp-h$_am_stamp_count
  12123. ;;
  12124. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12125. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12126. ;;
  12127. esac
  12128. case $ac_file$ac_mode in
  12129. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12130. # Older Autoconf quotes --file arguments for eval, but not when files
  12131. # are listed without --file. Let's play safe and only enable the eval
  12132. # if we detect the quoting.
  12133. case $CONFIG_FILES in
  12134. *\'*) eval set x "$CONFIG_FILES" ;;
  12135. *) set x $CONFIG_FILES ;;
  12136. esac
  12137. shift
  12138. for mf
  12139. do
  12140. # Strip MF so we end up with the name of the file.
  12141. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12142. # Check whether this is an Automake generated Makefile or not.
  12143. # We used to match only the files named 'Makefile.in', but
  12144. # some people rename them; so instead we look at the file content.
  12145. # Grep'ing the first line is not enough: some people post-process
  12146. # each Makefile.in and add a new line on top of each file to say so.
  12147. # Grep'ing the whole file is not good either: AIX grep has a line
  12148. # limit of 2048, but all sed's we know have understand at least 4000.
  12149. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12150. dirpart=`$as_dirname -- "$mf" ||
  12151. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12152. X"$mf" : 'X\(//\)[^/]' \| \
  12153. X"$mf" : 'X\(//\)$' \| \
  12154. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12155. $as_echo X"$mf" |
  12156. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12157. s//\1/
  12158. q
  12159. }
  12160. /^X\(\/\/\)[^/].*/{
  12161. s//\1/
  12162. q
  12163. }
  12164. /^X\(\/\/\)$/{
  12165. s//\1/
  12166. q
  12167. }
  12168. /^X\(\/\).*/{
  12169. s//\1/
  12170. q
  12171. }
  12172. s/.*/./; q'`
  12173. else
  12174. continue
  12175. fi
  12176. # Extract the definition of DEPDIR, am__include, and am__quote
  12177. # from the Makefile without running 'make'.
  12178. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12179. test -z "$DEPDIR" && continue
  12180. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12181. test -z "$am__include" && continue
  12182. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12183. # Find all dependency output files, they are included files with
  12184. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12185. # simplest approach to changing $(DEPDIR) to its actual value in the
  12186. # expansion.
  12187. for file in `sed -n "
  12188. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12189. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  12190. # Make sure the directory exists.
  12191. test -f "$dirpart/$file" && continue
  12192. fdir=`$as_dirname -- "$file" ||
  12193. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12194. X"$file" : 'X\(//\)[^/]' \| \
  12195. X"$file" : 'X\(//\)$' \| \
  12196. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12197. $as_echo X"$file" |
  12198. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12199. s//\1/
  12200. q
  12201. }
  12202. /^X\(\/\/\)[^/].*/{
  12203. s//\1/
  12204. q
  12205. }
  12206. /^X\(\/\/\)$/{
  12207. s//\1/
  12208. q
  12209. }
  12210. /^X\(\/\).*/{
  12211. s//\1/
  12212. q
  12213. }
  12214. s/.*/./; q'`
  12215. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  12216. # echo "creating $dirpart/$file"
  12217. echo '# dummy' > "$dirpart/$file"
  12218. done
  12219. done
  12220. }
  12221. ;;
  12222. "libtool":C)
  12223. # See if we are running on zsh, and set the options that allow our
  12224. # commands through without removal of \ escapes.
  12225. if test -n "${ZSH_VERSION+set}"; then
  12226. setopt NO_GLOB_SUBST
  12227. fi
  12228. cfgfile=${ofile}T
  12229. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12230. $RM "$cfgfile"
  12231. cat <<_LT_EOF >> "$cfgfile"
  12232. #! $SHELL
  12233. # Generated automatically by $as_me ($PACKAGE) $VERSION
  12234. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12235. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12236. # Provide generalized library-building support services.
  12237. # Written by Gordon Matzigkeit, 1996
  12238. # Copyright (C) 2014 Free Software Foundation, Inc.
  12239. # This is free software; see the source for copying conditions. There is NO
  12240. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12241. # GNU Libtool is free software; you can redistribute it and/or modify
  12242. # it under the terms of the GNU General Public License as published by
  12243. # the Free Software Foundation; either version 2 of of the License, or
  12244. # (at your option) any later version.
  12245. #
  12246. # As a special exception to the GNU General Public License, if you
  12247. # distribute this file as part of a program or library that is built
  12248. # using GNU Libtool, you may include this file under the same
  12249. # distribution terms that you use for the rest of that program.
  12250. #
  12251. # GNU Libtool is distributed in the hope that it will be useful, but
  12252. # WITHOUT ANY WARRANTY; without even the implied warranty of
  12253. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12254. # GNU General Public License for more details.
  12255. #
  12256. # You should have received a copy of the GNU General Public License
  12257. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  12258. # The names of the tagged configurations supported by this script.
  12259. available_tags=''
  12260. # Configured defaults for sys_lib_dlsearch_path munging.
  12261. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  12262. # ### BEGIN LIBTOOL CONFIG
  12263. # Which release of libtool.m4 was used?
  12264. macro_version=$macro_version
  12265. macro_revision=$macro_revision
  12266. # Whether or not to build shared libraries.
  12267. build_libtool_libs=$enable_shared
  12268. # Whether or not to build static libraries.
  12269. build_old_libs=$enable_static
  12270. # What type of objects to build.
  12271. pic_mode=$pic_mode
  12272. # Whether or not to optimize for fast installation.
  12273. fast_install=$enable_fast_install
  12274. # Shared archive member basename,for filename based shared library versioning on AIX.
  12275. shared_archive_member_spec=$shared_archive_member_spec
  12276. # Shell to use when invoking shell scripts.
  12277. SHELL=$lt_SHELL
  12278. # An echo program that protects backslashes.
  12279. ECHO=$lt_ECHO
  12280. # The PATH separator for the build system.
  12281. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  12282. # The host system.
  12283. host_alias=$host_alias
  12284. host=$host
  12285. host_os=$host_os
  12286. # The build system.
  12287. build_alias=$build_alias
  12288. build=$build
  12289. build_os=$build_os
  12290. # A sed program that does not truncate output.
  12291. SED=$lt_SED
  12292. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12293. Xsed="\$SED -e 1s/^X//"
  12294. # A grep program that handles long lines.
  12295. GREP=$lt_GREP
  12296. # An ERE matcher.
  12297. EGREP=$lt_EGREP
  12298. # A literal string matcher.
  12299. FGREP=$lt_FGREP
  12300. # A BSD- or MS-compatible name lister.
  12301. NM=$lt_NM
  12302. # Whether we need soft or hard links.
  12303. LN_S=$lt_LN_S
  12304. # What is the maximum length of a command?
  12305. max_cmd_len=$max_cmd_len
  12306. # Object file suffix (normally "o").
  12307. objext=$ac_objext
  12308. # Executable file suffix (normally "").
  12309. exeext=$exeext
  12310. # whether the shell understands "unset".
  12311. lt_unset=$lt_unset
  12312. # turn spaces into newlines.
  12313. SP2NL=$lt_lt_SP2NL
  12314. # turn newlines into spaces.
  12315. NL2SP=$lt_lt_NL2SP
  12316. # convert \$build file names to \$host format.
  12317. to_host_file_cmd=$lt_cv_to_host_file_cmd
  12318. # convert \$build files to toolchain format.
  12319. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  12320. # An object symbol dumper.
  12321. OBJDUMP=$lt_OBJDUMP
  12322. # Method to check whether dependent libraries are shared objects.
  12323. deplibs_check_method=$lt_deplibs_check_method
  12324. # Command to use when deplibs_check_method = "file_magic".
  12325. file_magic_cmd=$lt_file_magic_cmd
  12326. # How to find potential files when deplibs_check_method = "file_magic".
  12327. file_magic_glob=$lt_file_magic_glob
  12328. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  12329. want_nocaseglob=$lt_want_nocaseglob
  12330. # DLL creation program.
  12331. DLLTOOL=$lt_DLLTOOL
  12332. # Command to associate shared and link libraries.
  12333. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  12334. # The archiver.
  12335. AR=$lt_AR
  12336. # Flags to create an archive.
  12337. AR_FLAGS=$lt_AR_FLAGS
  12338. # How to feed a file listing to the archiver.
  12339. archiver_list_spec=$lt_archiver_list_spec
  12340. # A symbol stripping program.
  12341. STRIP=$lt_STRIP
  12342. # Commands used to install an old-style archive.
  12343. RANLIB=$lt_RANLIB
  12344. old_postinstall_cmds=$lt_old_postinstall_cmds
  12345. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12346. # Whether to use a lock for old archive extraction.
  12347. lock_old_archive_extraction=$lock_old_archive_extraction
  12348. # A C compiler.
  12349. LTCC=$lt_CC
  12350. # LTCC compiler flags.
  12351. LTCFLAGS=$lt_CFLAGS
  12352. # Take the output of nm and produce a listing of raw symbols and C names.
  12353. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12354. # Transform the output of nm in a proper C declaration.
  12355. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12356. # Transform the output of nm into a list of symbols to manually relocate.
  12357. global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
  12358. # Transform the output of nm in a C name address pair.
  12359. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12360. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12361. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12362. # The name lister interface.
  12363. nm_interface=$lt_lt_cv_nm_interface
  12364. # Specify filename containing input files for \$NM.
  12365. nm_file_list_spec=$lt_nm_file_list_spec
  12366. # The root where to search for dependent libraries,and where our libraries should be installed.
  12367. lt_sysroot=$lt_sysroot
  12368. # Command to truncate a binary pipe.
  12369. lt_truncate_bin=$lt_lt_cv_truncate_bin
  12370. # The name of the directory that contains temporary libtool files.
  12371. objdir=$objdir
  12372. # Used to examine libraries when file_magic_cmd begins with "file".
  12373. MAGIC_CMD=$MAGIC_CMD
  12374. # Must we lock files when doing compilation?
  12375. need_locks=$lt_need_locks
  12376. # Manifest tool.
  12377. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  12378. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12379. DSYMUTIL=$lt_DSYMUTIL
  12380. # Tool to change global to local symbols on Mac OS X.
  12381. NMEDIT=$lt_NMEDIT
  12382. # Tool to manipulate fat objects and archives on Mac OS X.
  12383. LIPO=$lt_LIPO
  12384. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12385. OTOOL=$lt_OTOOL
  12386. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12387. OTOOL64=$lt_OTOOL64
  12388. # Old archive suffix (normally "a").
  12389. libext=$libext
  12390. # Shared library suffix (normally ".so").
  12391. shrext_cmds=$lt_shrext_cmds
  12392. # The commands to extract the exported symbol list from a shared archive.
  12393. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12394. # Variables whose values should be saved in libtool wrapper scripts and
  12395. # restored at link time.
  12396. variables_saved_for_relink=$lt_variables_saved_for_relink
  12397. # Do we need the "lib" prefix for modules?
  12398. need_lib_prefix=$need_lib_prefix
  12399. # Do we need a version for libraries?
  12400. need_version=$need_version
  12401. # Library versioning type.
  12402. version_type=$version_type
  12403. # Shared library runtime path variable.
  12404. runpath_var=$runpath_var
  12405. # Shared library path variable.
  12406. shlibpath_var=$shlibpath_var
  12407. # Is shlibpath searched before the hard-coded library search path?
  12408. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12409. # Format of library name prefix.
  12410. libname_spec=$lt_libname_spec
  12411. # List of archive names. First name is the real one, the rest are links.
  12412. # The last name is the one that the linker finds with -lNAME
  12413. library_names_spec=$lt_library_names_spec
  12414. # The coded name of the library, if different from the real name.
  12415. soname_spec=$lt_soname_spec
  12416. # Permission mode override for installation of shared libraries.
  12417. install_override_mode=$lt_install_override_mode
  12418. # Command to use after installation of a shared archive.
  12419. postinstall_cmds=$lt_postinstall_cmds
  12420. # Command to use after uninstallation of a shared archive.
  12421. postuninstall_cmds=$lt_postuninstall_cmds
  12422. # Commands used to finish a libtool library installation in a directory.
  12423. finish_cmds=$lt_finish_cmds
  12424. # As "finish_cmds", except a single script fragment to be evaled but
  12425. # not shown.
  12426. finish_eval=$lt_finish_eval
  12427. # Whether we should hardcode library paths into libraries.
  12428. hardcode_into_libs=$hardcode_into_libs
  12429. # Compile-time system search path for libraries.
  12430. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12431. # Detected run-time system search path for libraries.
  12432. sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
  12433. # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
  12434. configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
  12435. # Whether dlopen is supported.
  12436. dlopen_support=$enable_dlopen
  12437. # Whether dlopen of programs is supported.
  12438. dlopen_self=$enable_dlopen_self
  12439. # Whether dlopen of statically linked programs is supported.
  12440. dlopen_self_static=$enable_dlopen_self_static
  12441. # Commands to strip libraries.
  12442. old_striplib=$lt_old_striplib
  12443. striplib=$lt_striplib
  12444. # The linker used to build libraries.
  12445. LD=$lt_LD
  12446. # How to create reloadable object files.
  12447. reload_flag=$lt_reload_flag
  12448. reload_cmds=$lt_reload_cmds
  12449. # Commands used to build an old-style archive.
  12450. old_archive_cmds=$lt_old_archive_cmds
  12451. # A language specific compiler.
  12452. CC=$lt_compiler
  12453. # Is the compiler the GNU compiler?
  12454. with_gcc=$GCC
  12455. # Compiler flag to turn off builtin functions.
  12456. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12457. # Additional compiler flags for building library objects.
  12458. pic_flag=$lt_lt_prog_compiler_pic
  12459. # How to pass a linker flag through the compiler.
  12460. wl=$lt_lt_prog_compiler_wl
  12461. # Compiler flag to prevent dynamic linking.
  12462. link_static_flag=$lt_lt_prog_compiler_static
  12463. # Does compiler simultaneously support -c and -o options?
  12464. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12465. # Whether or not to add -lc for building shared libraries.
  12466. build_libtool_need_lc=$archive_cmds_need_lc
  12467. # Whether or not to disallow shared libs when runtime libs are static.
  12468. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12469. # Compiler flag to allow reflexive dlopens.
  12470. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12471. # Compiler flag to generate shared objects directly from archives.
  12472. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12473. # Whether the compiler copes with passing no objects directly.
  12474. compiler_needs_object=$lt_compiler_needs_object
  12475. # Create an old-style archive from a shared archive.
  12476. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12477. # Create a temporary old-style archive to link instead of a shared archive.
  12478. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12479. # Commands used to build a shared archive.
  12480. archive_cmds=$lt_archive_cmds
  12481. archive_expsym_cmds=$lt_archive_expsym_cmds
  12482. # Commands used to build a loadable module if different from building
  12483. # a shared archive.
  12484. module_cmds=$lt_module_cmds
  12485. module_expsym_cmds=$lt_module_expsym_cmds
  12486. # Whether we are building with GNU ld or not.
  12487. with_gnu_ld=$lt_with_gnu_ld
  12488. # Flag that allows shared libraries with undefined symbols to be built.
  12489. allow_undefined_flag=$lt_allow_undefined_flag
  12490. # Flag that enforces no undefined symbols.
  12491. no_undefined_flag=$lt_no_undefined_flag
  12492. # Flag to hardcode \$libdir into a binary during linking.
  12493. # This must work even if \$libdir does not exist
  12494. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12495. # Whether we need a single "-rpath" flag with a separated argument.
  12496. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12497. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  12498. # DIR into the resulting binary.
  12499. hardcode_direct=$hardcode_direct
  12500. # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
  12501. # DIR into the resulting binary and the resulting library dependency is
  12502. # "absolute",i.e impossible to change by setting \$shlibpath_var if the
  12503. # library is relocated.
  12504. hardcode_direct_absolute=$hardcode_direct_absolute
  12505. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12506. # into the resulting binary.
  12507. hardcode_minus_L=$hardcode_minus_L
  12508. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12509. # into the resulting binary.
  12510. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12511. # Set to "yes" if building a shared library automatically hardcodes DIR
  12512. # into the library and all subsequent libraries and executables linked
  12513. # against it.
  12514. hardcode_automatic=$hardcode_automatic
  12515. # Set to yes if linker adds runtime paths of dependent libraries
  12516. # to runtime path list.
  12517. inherit_rpath=$inherit_rpath
  12518. # Whether libtool must link a program against all its dependency libraries.
  12519. link_all_deplibs=$link_all_deplibs
  12520. # Set to "yes" if exported symbols are required.
  12521. always_export_symbols=$always_export_symbols
  12522. # The commands to list exported symbols.
  12523. export_symbols_cmds=$lt_export_symbols_cmds
  12524. # Symbols that should not be listed in the preloaded symbols.
  12525. exclude_expsyms=$lt_exclude_expsyms
  12526. # Symbols that must always be exported.
  12527. include_expsyms=$lt_include_expsyms
  12528. # Commands necessary for linking programs (against libraries) with templates.
  12529. prelink_cmds=$lt_prelink_cmds
  12530. # Commands necessary for finishing linking programs.
  12531. postlink_cmds=$lt_postlink_cmds
  12532. # Specify filename containing input files.
  12533. file_list_spec=$lt_file_list_spec
  12534. # How to hardcode a shared library path into an executable.
  12535. hardcode_action=$hardcode_action
  12536. # ### END LIBTOOL CONFIG
  12537. _LT_EOF
  12538. cat <<'_LT_EOF' >> "$cfgfile"
  12539. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  12540. # func_munge_path_list VARIABLE PATH
  12541. # -----------------------------------
  12542. # VARIABLE is name of variable containing _space_ separated list of
  12543. # directories to be munged by the contents of PATH, which is string
  12544. # having a format:
  12545. # "DIR[:DIR]:"
  12546. # string "DIR[ DIR]" will be prepended to VARIABLE
  12547. # ":DIR[:DIR]"
  12548. # string "DIR[ DIR]" will be appended to VARIABLE
  12549. # "DIRP[:DIRP]::[DIRA:]DIRA"
  12550. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  12551. # "DIRA[ DIRA]" will be appended to VARIABLE
  12552. # "DIR[:DIR]"
  12553. # VARIABLE will be replaced by "DIR[ DIR]"
  12554. func_munge_path_list ()
  12555. {
  12556. case x$2 in
  12557. x)
  12558. ;;
  12559. *:)
  12560. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
  12561. ;;
  12562. x:*)
  12563. eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
  12564. ;;
  12565. *::*)
  12566. eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  12567. eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
  12568. ;;
  12569. *)
  12570. eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
  12571. ;;
  12572. esac
  12573. }
  12574. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  12575. func_cc_basename ()
  12576. {
  12577. for cc_temp in $*""; do
  12578. case $cc_temp in
  12579. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12580. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12581. \-*) ;;
  12582. *) break;;
  12583. esac
  12584. done
  12585. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  12586. }
  12587. # ### END FUNCTIONS SHARED WITH CONFIGURE
  12588. _LT_EOF
  12589. case $host_os in
  12590. aix3*)
  12591. cat <<\_LT_EOF >> "$cfgfile"
  12592. # AIX sometimes has problems with the GCC collect2 program. For some
  12593. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12594. # vanish in a puff of smoke.
  12595. if test set != "${COLLECT_NAMES+set}"; then
  12596. COLLECT_NAMES=
  12597. export COLLECT_NAMES
  12598. fi
  12599. _LT_EOF
  12600. ;;
  12601. esac
  12602. ltmain=$ac_aux_dir/ltmain.sh
  12603. # We use sed instead of cat because bash on DJGPP gets confused if
  12604. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12605. # text mode, it properly converts lines to CR/LF. This bash problem
  12606. # is reportedly fixed, but why not run on old versions too?
  12607. sed '$q' "$ltmain" >> "$cfgfile" \
  12608. || (rm -f "$cfgfile"; exit 1)
  12609. mv -f "$cfgfile" "$ofile" ||
  12610. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12611. chmod +x "$ofile"
  12612. ;;
  12613. esac
  12614. done # for ac_tag
  12615. as_fn_exit 0
  12616. _ACEOF
  12617. ac_clean_files=$ac_clean_files_save
  12618. test $ac_write_fail = 0 ||
  12619. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12620. # configure is writing to config.log, and then calls config.status.
  12621. # config.status does its own redirection, appending to config.log.
  12622. # Unfortunately, on DOS this fails, as config.log is still kept open
  12623. # by configure, so config.status won't be able to write to it; its
  12624. # output is simply discarded. So we exec the FD to /dev/null,
  12625. # effectively closing config.log, so it can be properly (re)opened and
  12626. # appended to by config.status. When coming back to configure, we
  12627. # need to make the FD available again.
  12628. if test "$no_create" != yes; then
  12629. ac_cs_success=:
  12630. ac_config_status_args=
  12631. test "$silent" = yes &&
  12632. ac_config_status_args="$ac_config_status_args --quiet"
  12633. exec 5>/dev/null
  12634. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12635. exec 5>>config.log
  12636. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12637. # would make configure fail if this is the last instruction.
  12638. $ac_cs_success || as_fn_exit 1
  12639. fi
  12640. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12641. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12642. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12643. fi