PageRenderTime 134ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 2ms

/lib/libmicrohttpd/configure

http://github.com/xbmc/xbmc
Shell | 15095 lines | 14648 code | 190 blank | 257 comment | 252 complexity | 6d748add5650f61e926b149c90012b00 MD5 | raw file
Possible License(s): GPL-3.0, CC-BY-SA-3.0, LGPL-2.0, 0BSD, Unlicense, GPL-2.0, AGPL-1.0, BSD-3-Clause, LGPL-2.1, LGPL-3.0
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for libmicrohttpd 0.4.5.
  4. #
  5. # Report bugs to <libmicrohttpd@gnu.org>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  9. # Foundation, Inc.
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  214. $0: libmicrohttpd@gnu.org about your system, including any
  215. $0: error possibly output before this message. Then install
  216. $0: a modern shell, or manually run the script under such a
  217. $0: shell if you do have one."
  218. fi
  219. exit 1
  220. fi
  221. fi
  222. fi
  223. SHELL=${CONFIG_SHELL-/bin/sh}
  224. export SHELL
  225. # Unset more variables known to interfere with behavior of common tools.
  226. CLICOLOR_FORCE= GREP_OPTIONS=
  227. unset CLICOLOR_FORCE GREP_OPTIONS
  228. ## --------------------- ##
  229. ## M4sh Shell Functions. ##
  230. ## --------------------- ##
  231. # as_fn_unset VAR
  232. # ---------------
  233. # Portably unset VAR.
  234. as_fn_unset ()
  235. {
  236. { eval $1=; unset $1;}
  237. }
  238. as_unset=as_fn_unset
  239. # as_fn_set_status STATUS
  240. # -----------------------
  241. # Set $? to STATUS, without forking.
  242. as_fn_set_status ()
  243. {
  244. return $1
  245. } # as_fn_set_status
  246. # as_fn_exit STATUS
  247. # -----------------
  248. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  249. as_fn_exit ()
  250. {
  251. set +e
  252. as_fn_set_status $1
  253. exit $1
  254. } # as_fn_exit
  255. # as_fn_mkdir_p
  256. # -------------
  257. # Create "$as_dir" as a directory, including parents if necessary.
  258. as_fn_mkdir_p ()
  259. {
  260. case $as_dir in #(
  261. -*) as_dir=./$as_dir;;
  262. esac
  263. test -d "$as_dir" || eval $as_mkdir_p || {
  264. as_dirs=
  265. while :; do
  266. case $as_dir in #(
  267. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  268. *) as_qdir=$as_dir;;
  269. esac
  270. as_dirs="'$as_qdir' $as_dirs"
  271. as_dir=`$as_dirname -- "$as_dir" ||
  272. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  273. X"$as_dir" : 'X\(//\)[^/]' \| \
  274. X"$as_dir" : 'X\(//\)$' \| \
  275. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  276. $as_echo X"$as_dir" |
  277. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  278. s//\1/
  279. q
  280. }
  281. /^X\(\/\/\)[^/].*/{
  282. s//\1/
  283. q
  284. }
  285. /^X\(\/\/\)$/{
  286. s//\1/
  287. q
  288. }
  289. /^X\(\/\).*/{
  290. s//\1/
  291. q
  292. }
  293. s/.*/./; q'`
  294. test -d "$as_dir" && break
  295. done
  296. test -z "$as_dirs" || eval "mkdir $as_dirs"
  297. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  298. } # as_fn_mkdir_p
  299. # as_fn_append VAR VALUE
  300. # ----------------------
  301. # Append the text in VALUE to the end of the definition contained in VAR. Take
  302. # advantage of any shell optimizations that allow amortized linear growth over
  303. # repeated appends, instead of the typical quadratic growth present in naive
  304. # implementations.
  305. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  306. eval 'as_fn_append ()
  307. {
  308. eval $1+=\$2
  309. }'
  310. else
  311. as_fn_append ()
  312. {
  313. eval $1=\$$1\$2
  314. }
  315. fi # as_fn_append
  316. # as_fn_arith ARG...
  317. # ------------------
  318. # Perform arithmetic evaluation on the ARGs, and store the result in the
  319. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  320. # must be portable across $(()) and expr.
  321. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  322. eval 'as_fn_arith ()
  323. {
  324. as_val=$(( $* ))
  325. }'
  326. else
  327. as_fn_arith ()
  328. {
  329. as_val=`expr "$@" || test $? -eq 1`
  330. }
  331. fi # as_fn_arith
  332. # as_fn_error ERROR [LINENO LOG_FD]
  333. # ---------------------------------
  334. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  335. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  336. # script with status $?, using 1 if that was 0.
  337. as_fn_error ()
  338. {
  339. as_status=$?; test $as_status -eq 0 && as_status=1
  340. if test "$3"; then
  341. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  342. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  343. fi
  344. $as_echo "$as_me: error: $1" >&2
  345. as_fn_exit $as_status
  346. } # as_fn_error
  347. if expr a : '\(a\)' >/dev/null 2>&1 &&
  348. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  349. as_expr=expr
  350. else
  351. as_expr=false
  352. fi
  353. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  354. as_basename=basename
  355. else
  356. as_basename=false
  357. fi
  358. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  359. as_dirname=dirname
  360. else
  361. as_dirname=false
  362. fi
  363. as_me=`$as_basename -- "$0" ||
  364. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  365. X"$0" : 'X\(//\)$' \| \
  366. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  367. $as_echo X/"$0" |
  368. sed '/^.*\/\([^/][^/]*\)\/*$/{
  369. s//\1/
  370. q
  371. }
  372. /^X\/\(\/\/\)$/{
  373. s//\1/
  374. q
  375. }
  376. /^X\/\(\/\).*/{
  377. s//\1/
  378. q
  379. }
  380. s/.*/./; q'`
  381. # Avoid depending upon Character Ranges.
  382. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  383. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  384. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  385. as_cr_digits='0123456789'
  386. as_cr_alnum=$as_cr_Letters$as_cr_digits
  387. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  388. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  389. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  390. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  391. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  392. sed -n '
  393. p
  394. /[$]LINENO/=
  395. ' <$as_myself |
  396. sed '
  397. s/[$]LINENO.*/&-/
  398. t lineno
  399. b
  400. :lineno
  401. N
  402. :loop
  403. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  404. t loop
  405. s/-\n.*//
  406. ' >$as_me.lineno &&
  407. chmod +x "$as_me.lineno" ||
  408. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  409. # Don't try to exec as it changes $[0], causing all sort of problems
  410. # (the dirname of $[0] is not the place where we might find the
  411. # original and so on. Autoconf is especially sensitive to this).
  412. . "./$as_me.lineno"
  413. # Exit status is that of the last command.
  414. exit
  415. }
  416. ECHO_C= ECHO_N= ECHO_T=
  417. case `echo -n x` in #(((((
  418. -n*)
  419. case `echo 'xy\c'` in
  420. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  421. xy) ECHO_C='\c';;
  422. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  423. ECHO_T=' ';;
  424. esac;;
  425. *)
  426. ECHO_N='-n';;
  427. esac
  428. rm -f conf$$ conf$$.exe conf$$.file
  429. if test -d conf$$.dir; then
  430. rm -f conf$$.dir/conf$$.file
  431. else
  432. rm -f conf$$.dir
  433. mkdir conf$$.dir 2>/dev/null
  434. fi
  435. if (echo >conf$$.file) 2>/dev/null; then
  436. if ln -s conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s='ln -s'
  438. # ... but there are two gotchas:
  439. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  440. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  441. # In both cases, we have to default to `cp -p'.
  442. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  443. as_ln_s='cp -p'
  444. elif ln conf$$.file conf$$ 2>/dev/null; then
  445. as_ln_s=ln
  446. else
  447. as_ln_s='cp -p'
  448. fi
  449. else
  450. as_ln_s='cp -p'
  451. fi
  452. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  453. rmdir conf$$.dir 2>/dev/null
  454. if mkdir -p . 2>/dev/null; then
  455. as_mkdir_p='mkdir -p "$as_dir"'
  456. else
  457. test -d ./-p && rmdir ./-p
  458. as_mkdir_p=false
  459. fi
  460. if test -x / >/dev/null 2>&1; then
  461. as_test_x='test -x'
  462. else
  463. if ls -dL / >/dev/null 2>&1; then
  464. as_ls_L_option=L
  465. else
  466. as_ls_L_option=
  467. fi
  468. as_test_x='
  469. eval sh -c '\''
  470. if test -d "$1"; then
  471. test -d "$1/.";
  472. else
  473. case $1 in #(
  474. -*)set "./$1";;
  475. esac;
  476. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  477. ???[sx]*):;;*)false;;esac;fi
  478. '\'' sh
  479. '
  480. fi
  481. as_executable_p=$as_test_x
  482. # Sed expression to map a string onto a valid CPP name.
  483. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  484. # Sed expression to map a string onto a valid variable name.
  485. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  486. # Check that we are running under the correct shell.
  487. SHELL=${CONFIG_SHELL-/bin/sh}
  488. case X$lt_ECHO in
  489. X*--fallback-echo)
  490. # Remove one level of quotation (which was required for Make).
  491. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  492. ;;
  493. esac
  494. ECHO=${lt_ECHO-echo}
  495. if test "X$1" = X--no-reexec; then
  496. # Discard the --no-reexec flag, and continue.
  497. shift
  498. elif test "X$1" = X--fallback-echo; then
  499. # Avoid inline document here, it may be left over
  500. :
  501. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  502. # Yippee, $ECHO works!
  503. :
  504. else
  505. # Restart under the correct shell.
  506. exec $SHELL "$0" --no-reexec ${1+"$@"}
  507. fi
  508. if test "X$1" = X--fallback-echo; then
  509. # used as fallback echo
  510. shift
  511. cat <<_LT_EOF
  512. $*
  513. _LT_EOF
  514. exit 0
  515. fi
  516. # The HP-UX ksh and POSIX shell print the target directory to stdout
  517. # if CDPATH is set.
  518. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  519. if test -z "$lt_ECHO"; then
  520. if test "X${echo_test_string+set}" != Xset; then
  521. # find a string as large as possible, as long as the shell can cope with it
  522. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  523. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  524. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  525. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  526. then
  527. break
  528. fi
  529. done
  530. fi
  531. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  532. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  533. test "X$echo_testing_string" = "X$echo_test_string"; then
  534. :
  535. else
  536. # The Solaris, AIX, and Digital Unix default echo programs unquote
  537. # backslashes. This makes it impossible to quote backslashes using
  538. # echo "$something" | sed 's/\\/\\\\/g'
  539. #
  540. # So, first we look for a working echo in the user's PATH.
  541. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  542. for dir in $PATH /usr/ucb; do
  543. IFS="$lt_save_ifs"
  544. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  545. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  546. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  547. test "X$echo_testing_string" = "X$echo_test_string"; then
  548. ECHO="$dir/echo"
  549. break
  550. fi
  551. done
  552. IFS="$lt_save_ifs"
  553. if test "X$ECHO" = Xecho; then
  554. # We didn't find a better echo, so look for alternatives.
  555. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  556. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  557. test "X$echo_testing_string" = "X$echo_test_string"; then
  558. # This shell has a builtin print -r that does the trick.
  559. ECHO='print -r'
  560. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  561. test "X$CONFIG_SHELL" != X/bin/ksh; then
  562. # If we have ksh, try running configure again with it.
  563. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  564. export ORIGINAL_CONFIG_SHELL
  565. CONFIG_SHELL=/bin/ksh
  566. export CONFIG_SHELL
  567. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  568. else
  569. # Try using printf.
  570. ECHO='printf %s\n'
  571. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  572. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  573. test "X$echo_testing_string" = "X$echo_test_string"; then
  574. # Cool, printf works
  575. :
  576. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  577. test "X$echo_testing_string" = 'X\t' &&
  578. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  579. test "X$echo_testing_string" = "X$echo_test_string"; then
  580. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  581. export CONFIG_SHELL
  582. SHELL="$CONFIG_SHELL"
  583. export SHELL
  584. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  585. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  586. test "X$echo_testing_string" = 'X\t' &&
  587. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  588. test "X$echo_testing_string" = "X$echo_test_string"; then
  589. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  590. else
  591. # maybe with a smaller string...
  592. prev=:
  593. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  594. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  595. then
  596. break
  597. fi
  598. prev="$cmd"
  599. done
  600. if test "$prev" != 'sed 50q "$0"'; then
  601. echo_test_string=`eval $prev`
  602. export echo_test_string
  603. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  604. else
  605. # Oops. We lost completely, so just stick with echo.
  606. ECHO=echo
  607. fi
  608. fi
  609. fi
  610. fi
  611. fi
  612. fi
  613. # Copy echo and quote the copy suitably for passing to libtool from
  614. # the Makefile, instead of quoting the original, which is used later.
  615. lt_ECHO=$ECHO
  616. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  617. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  618. fi
  619. exec 7<&0 </dev/null 6>&1
  620. # Name of the host.
  621. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  622. # so uname gets run too.
  623. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  624. #
  625. # Initializations.
  626. #
  627. ac_default_prefix=/usr/local
  628. ac_clean_files=
  629. ac_config_libobj_dir=.
  630. LIBOBJS=
  631. cross_compiling=no
  632. subdirs=
  633. MFLAGS=
  634. MAKEFLAGS=
  635. # Identity of this package.
  636. PACKAGE_NAME='libmicrohttpd'
  637. PACKAGE_TARNAME='libmicrohttpd'
  638. PACKAGE_VERSION='0.4.5'
  639. PACKAGE_STRING='libmicrohttpd 0.4.5'
  640. PACKAGE_BUGREPORT='libmicrohttpd@gnu.org'
  641. PACKAGE_URL=''
  642. # Factoring default headers for most tests.
  643. ac_includes_default="\
  644. #include <stdio.h>
  645. #ifdef HAVE_SYS_TYPES_H
  646. # include <sys/types.h>
  647. #endif
  648. #ifdef HAVE_SYS_STAT_H
  649. # include <sys/stat.h>
  650. #endif
  651. #ifdef STDC_HEADERS
  652. # include <stdlib.h>
  653. # include <stddef.h>
  654. #else
  655. # ifdef HAVE_STDLIB_H
  656. # include <stdlib.h>
  657. # endif
  658. #endif
  659. #ifdef HAVE_STRING_H
  660. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  661. # include <memory.h>
  662. # endif
  663. # include <string.h>
  664. #endif
  665. #ifdef HAVE_STRINGS_H
  666. # include <strings.h>
  667. #endif
  668. #ifdef HAVE_INTTYPES_H
  669. # include <inttypes.h>
  670. #endif
  671. #ifdef HAVE_STDINT_H
  672. # include <stdint.h>
  673. #endif
  674. #ifdef HAVE_UNISTD_H
  675. # include <unistd.h>
  676. #endif"
  677. ac_subst_vars='HAVE_LD_VERSION_SCRIPT_FALSE
  678. HAVE_LD_VERSION_SCRIPT_TRUE
  679. HAVE_LD_OUTPUT_DEF_FALSE
  680. HAVE_LD_OUTPUT_DEF_TRUE
  681. ENABLE_OPENSSL_FALSE
  682. ENABLE_OPENSSL_TRUE
  683. ENABLE_MINITASN1_FALSE
  684. ENABLE_MINITASN1_TRUE
  685. am__EXEEXT_FALSE
  686. am__EXEEXT_TRUE
  687. LTLIBOBJS
  688. LIBOBJS
  689. EXT_LIBS
  690. EXT_LIB_PATH
  691. MHD_LIBDEPS
  692. MHD_LIB_LDFLAGS
  693. USE_COVERAGE_FALSE
  694. USE_COVERAGE_TRUE
  695. MHD_DEBUG_TLS_FALSE
  696. MHD_DEBUG_TLS_TRUE
  697. ENABLE_HTTPS_FALSE
  698. ENABLE_HTTPS_TRUE
  699. LIBGCRYPT_LIBS
  700. LIBGCRYPT_CFLAGS
  701. LIBGCRYPT_CONFIG
  702. HAVE_SOCAT_FALSE
  703. HAVE_SOCAT_TRUE
  704. HAVE_ZZUF_FALSE
  705. HAVE_ZZUF_TRUE
  706. HAVE_SOCAT
  707. HAVE_ZZUF
  708. HAVE_CURL_FALSE
  709. HAVE_CURL_TRUE
  710. LIBCURL
  711. LIBCURL_CPPFLAGS
  712. _libcurl_config
  713. PTHREAD_CPPFLAGS
  714. PTHREAD_LDFLAGS
  715. PTHREAD_LIBS
  716. HAVE_GNU_LD_FALSE
  717. HAVE_GNU_LD_TRUE
  718. CPP
  719. OTOOL64
  720. OTOOL
  721. LIPO
  722. NMEDIT
  723. DSYMUTIL
  724. lt_ECHO
  725. RANLIB
  726. AR
  727. NM
  728. ac_ct_DUMPBIN
  729. DUMPBIN
  730. LD
  731. FGREP
  732. EGREP
  733. GREP
  734. SED
  735. LIBTOOL
  736. OBJDUMP
  737. DLLTOOL
  738. AS
  739. am__fastdepCC_FALSE
  740. am__fastdepCC_TRUE
  741. CCDEPMODE
  742. AMDEPBACKSLASH
  743. AMDEP_FALSE
  744. AMDEP_TRUE
  745. am__quote
  746. am__include
  747. DEPDIR
  748. OBJEXT
  749. EXEEXT
  750. ac_ct_CC
  751. CPPFLAGS
  752. LDFLAGS
  753. CFLAGS
  754. CC
  755. host_os
  756. host_vendor
  757. host_cpu
  758. host
  759. build_os
  760. build_vendor
  761. build_cpu
  762. build
  763. LN_S
  764. LIB_VERSION_AGE
  765. LIB_VERSION_REVISION
  766. LIB_VERSION_CURRENT
  767. am__untar
  768. am__tar
  769. AMTAR
  770. am__leading_dot
  771. SET_MAKE
  772. AWK
  773. mkdir_p
  774. MKDIR_P
  775. INSTALL_STRIP_PROGRAM
  776. STRIP
  777. install_sh
  778. MAKEINFO
  779. AUTOHEADER
  780. AUTOMAKE
  781. AUTOCONF
  782. ACLOCAL
  783. VERSION
  784. PACKAGE
  785. CYGPATH_W
  786. am__isrc
  787. INSTALL_DATA
  788. INSTALL_SCRIPT
  789. INSTALL_PROGRAM
  790. target_alias
  791. host_alias
  792. build_alias
  793. LIBS
  794. ECHO_T
  795. ECHO_N
  796. ECHO_C
  797. DEFS
  798. mandir
  799. localedir
  800. libdir
  801. psdir
  802. pdfdir
  803. dvidir
  804. htmldir
  805. infodir
  806. docdir
  807. oldincludedir
  808. includedir
  809. localstatedir
  810. sharedstatedir
  811. sysconfdir
  812. datadir
  813. datarootdir
  814. libexecdir
  815. sbindir
  816. bindir
  817. program_transform_name
  818. prefix
  819. exec_prefix
  820. PACKAGE_URL
  821. PACKAGE_BUGREPORT
  822. PACKAGE_STRING
  823. PACKAGE_VERSION
  824. PACKAGE_TARNAME
  825. PACKAGE_NAME
  826. PATH_SEPARATOR
  827. SHELL'
  828. ac_subst_files=''
  829. ac_user_opts='
  830. enable_option_checking
  831. enable_dependency_tracking
  832. enable_shared
  833. enable_static
  834. with_pic
  835. enable_fast_install
  836. with_gnu_ld
  837. enable_libtool_lock
  838. enable_curl
  839. with_libcurl
  840. enable_largefile
  841. enable_messages
  842. with_libgcrypt_prefix
  843. enable_https
  844. enable_client_side
  845. enable_coverage
  846. '
  847. ac_precious_vars='build_alias
  848. host_alias
  849. target_alias
  850. CC
  851. CFLAGS
  852. LDFLAGS
  853. LIBS
  854. CPPFLAGS
  855. CPP'
  856. # Initialize some variables set by options.
  857. ac_init_help=
  858. ac_init_version=false
  859. ac_unrecognized_opts=
  860. ac_unrecognized_sep=
  861. # The variables have the same names as the options, with
  862. # dashes changed to underlines.
  863. cache_file=/dev/null
  864. exec_prefix=NONE
  865. no_create=
  866. no_recursion=
  867. prefix=NONE
  868. program_prefix=NONE
  869. program_suffix=NONE
  870. program_transform_name=s,x,x,
  871. silent=
  872. site=
  873. srcdir=
  874. verbose=
  875. x_includes=NONE
  876. x_libraries=NONE
  877. # Installation directory options.
  878. # These are left unexpanded so users can "make install exec_prefix=/foo"
  879. # and all the variables that are supposed to be based on exec_prefix
  880. # by default will actually change.
  881. # Use braces instead of parens because sh, perl, etc. also accept them.
  882. # (The list follows the same order as the GNU Coding Standards.)
  883. bindir='${exec_prefix}/bin'
  884. sbindir='${exec_prefix}/sbin'
  885. libexecdir='${exec_prefix}/libexec'
  886. datarootdir='${prefix}/share'
  887. datadir='${datarootdir}'
  888. sysconfdir='${prefix}/etc'
  889. sharedstatedir='${prefix}/com'
  890. localstatedir='${prefix}/var'
  891. includedir='${prefix}/include'
  892. oldincludedir='/usr/include'
  893. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  894. infodir='${datarootdir}/info'
  895. htmldir='${docdir}'
  896. dvidir='${docdir}'
  897. pdfdir='${docdir}'
  898. psdir='${docdir}'
  899. libdir='${exec_prefix}/lib'
  900. localedir='${datarootdir}/locale'
  901. mandir='${datarootdir}/man'
  902. ac_prev=
  903. ac_dashdash=
  904. for ac_option
  905. do
  906. # If the previous option needs an argument, assign it.
  907. if test -n "$ac_prev"; then
  908. eval $ac_prev=\$ac_option
  909. ac_prev=
  910. continue
  911. fi
  912. case $ac_option in
  913. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  914. *) ac_optarg=yes ;;
  915. esac
  916. # Accept the important Cygnus configure options, so we can diagnose typos.
  917. case $ac_dashdash$ac_option in
  918. --)
  919. ac_dashdash=yes ;;
  920. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  921. ac_prev=bindir ;;
  922. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  923. bindir=$ac_optarg ;;
  924. -build | --build | --buil | --bui | --bu)
  925. ac_prev=build_alias ;;
  926. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  927. build_alias=$ac_optarg ;;
  928. -cache-file | --cache-file | --cache-fil | --cache-fi \
  929. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  930. ac_prev=cache_file ;;
  931. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  932. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  933. cache_file=$ac_optarg ;;
  934. --config-cache | -C)
  935. cache_file=config.cache ;;
  936. -datadir | --datadir | --datadi | --datad)
  937. ac_prev=datadir ;;
  938. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  939. datadir=$ac_optarg ;;
  940. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  941. | --dataroo | --dataro | --datar)
  942. ac_prev=datarootdir ;;
  943. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  944. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  945. datarootdir=$ac_optarg ;;
  946. -disable-* | --disable-*)
  947. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  948. # Reject names that are not valid shell variable names.
  949. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  950. as_fn_error "invalid feature name: $ac_useropt"
  951. ac_useropt_orig=$ac_useropt
  952. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  953. case $ac_user_opts in
  954. *"
  955. "enable_$ac_useropt"
  956. "*) ;;
  957. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  958. ac_unrecognized_sep=', ';;
  959. esac
  960. eval enable_$ac_useropt=no ;;
  961. -docdir | --docdir | --docdi | --doc | --do)
  962. ac_prev=docdir ;;
  963. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  964. docdir=$ac_optarg ;;
  965. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  966. ac_prev=dvidir ;;
  967. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  968. dvidir=$ac_optarg ;;
  969. -enable-* | --enable-*)
  970. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  971. # Reject names that are not valid shell variable names.
  972. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  973. as_fn_error "invalid feature name: $ac_useropt"
  974. ac_useropt_orig=$ac_useropt
  975. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  976. case $ac_user_opts in
  977. *"
  978. "enable_$ac_useropt"
  979. "*) ;;
  980. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  981. ac_unrecognized_sep=', ';;
  982. esac
  983. eval enable_$ac_useropt=\$ac_optarg ;;
  984. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  985. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  986. | --exec | --exe | --ex)
  987. ac_prev=exec_prefix ;;
  988. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  989. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  990. | --exec=* | --exe=* | --ex=*)
  991. exec_prefix=$ac_optarg ;;
  992. -gas | --gas | --ga | --g)
  993. # Obsolete; use --with-gas.
  994. with_gas=yes ;;
  995. -help | --help | --hel | --he | -h)
  996. ac_init_help=long ;;
  997. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  998. ac_init_help=recursive ;;
  999. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1000. ac_init_help=short ;;
  1001. -host | --host | --hos | --ho)
  1002. ac_prev=host_alias ;;
  1003. -host=* | --host=* | --hos=* | --ho=*)
  1004. host_alias=$ac_optarg ;;
  1005. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1006. ac_prev=htmldir ;;
  1007. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1008. | --ht=*)
  1009. htmldir=$ac_optarg ;;
  1010. -includedir | --includedir | --includedi | --included | --include \
  1011. | --includ | --inclu | --incl | --inc)
  1012. ac_prev=includedir ;;
  1013. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1014. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1015. includedir=$ac_optarg ;;
  1016. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1017. ac_prev=infodir ;;
  1018. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1019. infodir=$ac_optarg ;;
  1020. -libdir | --libdir | --libdi | --libd)
  1021. ac_prev=libdir ;;
  1022. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1023. libdir=$ac_optarg ;;
  1024. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1025. | --libexe | --libex | --libe)
  1026. ac_prev=libexecdir ;;
  1027. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1028. | --libexe=* | --libex=* | --libe=*)
  1029. libexecdir=$ac_optarg ;;
  1030. -localedir | --localedir | --localedi | --localed | --locale)
  1031. ac_prev=localedir ;;
  1032. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1033. localedir=$ac_optarg ;;
  1034. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1035. | --localstate | --localstat | --localsta | --localst | --locals)
  1036. ac_prev=localstatedir ;;
  1037. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1038. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1039. localstatedir=$ac_optarg ;;
  1040. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1041. ac_prev=mandir ;;
  1042. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1043. mandir=$ac_optarg ;;
  1044. -nfp | --nfp | --nf)
  1045. # Obsolete; use --without-fp.
  1046. with_fp=no ;;
  1047. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1048. | --no-cr | --no-c | -n)
  1049. no_create=yes ;;
  1050. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1051. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1052. no_recursion=yes ;;
  1053. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1054. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1055. | --oldin | --oldi | --old | --ol | --o)
  1056. ac_prev=oldincludedir ;;
  1057. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1058. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1059. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1060. oldincludedir=$ac_optarg ;;
  1061. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1062. ac_prev=prefix ;;
  1063. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1064. prefix=$ac_optarg ;;
  1065. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1066. | --program-pre | --program-pr | --program-p)
  1067. ac_prev=program_prefix ;;
  1068. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1069. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1070. program_prefix=$ac_optarg ;;
  1071. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1072. | --program-suf | --program-su | --program-s)
  1073. ac_prev=program_suffix ;;
  1074. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1075. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1076. program_suffix=$ac_optarg ;;
  1077. -program-transform-name | --program-transform-name \
  1078. | --program-transform-nam | --program-transform-na \
  1079. | --program-transform-n | --program-transform- \
  1080. | --program-transform | --program-transfor \
  1081. | --program-transfo | --program-transf \
  1082. | --program-trans | --program-tran \
  1083. | --progr-tra | --program-tr | --program-t)
  1084. ac_prev=program_transform_name ;;
  1085. -program-transform-name=* | --program-transform-name=* \
  1086. | --program-transform-nam=* | --program-transform-na=* \
  1087. | --program-transform-n=* | --program-transform-=* \
  1088. | --program-transform=* | --program-transfor=* \
  1089. | --program-transfo=* | --program-transf=* \
  1090. | --program-trans=* | --program-tran=* \
  1091. | --progr-tra=* | --program-tr=* | --program-t=*)
  1092. program_transform_name=$ac_optarg ;;
  1093. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1094. ac_prev=pdfdir ;;
  1095. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1096. pdfdir=$ac_optarg ;;
  1097. -psdir | --psdir | --psdi | --psd | --ps)
  1098. ac_prev=psdir ;;
  1099. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1100. psdir=$ac_optarg ;;
  1101. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1102. | -silent | --silent | --silen | --sile | --sil)
  1103. silent=yes ;;
  1104. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1105. ac_prev=sbindir ;;
  1106. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1107. | --sbi=* | --sb=*)
  1108. sbindir=$ac_optarg ;;
  1109. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1110. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1111. | --sharedst | --shareds | --shared | --share | --shar \
  1112. | --sha | --sh)
  1113. ac_prev=sharedstatedir ;;
  1114. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1115. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1116. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1117. | --sha=* | --sh=*)
  1118. sharedstatedir=$ac_optarg ;;
  1119. -site | --site | --sit)
  1120. ac_prev=site ;;
  1121. -site=* | --site=* | --sit=*)
  1122. site=$ac_optarg ;;
  1123. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1124. ac_prev=srcdir ;;
  1125. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1126. srcdir=$ac_optarg ;;
  1127. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1128. | --syscon | --sysco | --sysc | --sys | --sy)
  1129. ac_prev=sysconfdir ;;
  1130. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1131. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1132. sysconfdir=$ac_optarg ;;
  1133. -target | --target | --targe | --targ | --tar | --ta | --t)
  1134. ac_prev=target_alias ;;
  1135. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1136. target_alias=$ac_optarg ;;
  1137. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1138. verbose=yes ;;
  1139. -version | --version | --versio | --versi | --vers | -V)
  1140. ac_init_version=: ;;
  1141. -with-* | --with-*)
  1142. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1143. # Reject names that are not valid shell variable names.
  1144. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1145. as_fn_error "invalid package name: $ac_useropt"
  1146. ac_useropt_orig=$ac_useropt
  1147. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1148. case $ac_user_opts in
  1149. *"
  1150. "with_$ac_useropt"
  1151. "*) ;;
  1152. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1153. ac_unrecognized_sep=', ';;
  1154. esac
  1155. eval with_$ac_useropt=\$ac_optarg ;;
  1156. -without-* | --without-*)
  1157. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1158. # Reject names that are not valid shell variable names.
  1159. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1160. as_fn_error "invalid package name: $ac_useropt"
  1161. ac_useropt_orig=$ac_useropt
  1162. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1163. case $ac_user_opts in
  1164. *"
  1165. "with_$ac_useropt"
  1166. "*) ;;
  1167. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1168. ac_unrecognized_sep=', ';;
  1169. esac
  1170. eval with_$ac_useropt=no ;;
  1171. --x)
  1172. # Obsolete; use --with-x.
  1173. with_x=yes ;;
  1174. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1175. | --x-incl | --x-inc | --x-in | --x-i)
  1176. ac_prev=x_includes ;;
  1177. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1178. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1179. x_includes=$ac_optarg ;;
  1180. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1181. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1182. ac_prev=x_libraries ;;
  1183. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1184. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1185. x_libraries=$ac_optarg ;;
  1186. -*) as_fn_error "unrecognized option: \`$ac_option'
  1187. Try \`$0 --help' for more information."
  1188. ;;
  1189. *=*)
  1190. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1191. # Reject names that are not valid shell variable names.
  1192. case $ac_envvar in #(
  1193. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1194. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1195. esac
  1196. eval $ac_envvar=\$ac_optarg
  1197. export $ac_envvar ;;
  1198. *)
  1199. # FIXME: should be removed in autoconf 3.0.
  1200. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1201. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1202. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1203. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1204. ;;
  1205. esac
  1206. done
  1207. if test -n "$ac_prev"; then
  1208. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1209. as_fn_error "missing argument to $ac_option"
  1210. fi
  1211. if test -n "$ac_unrecognized_opts"; then
  1212. case $enable_option_checking in
  1213. no) ;;
  1214. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1215. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1216. esac
  1217. fi
  1218. # Check all directory arguments for consistency.
  1219. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1220. datadir sysconfdir sharedstatedir localstatedir includedir \
  1221. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1222. libdir localedir mandir
  1223. do
  1224. eval ac_val=\$$ac_var
  1225. # Remove trailing slashes.
  1226. case $ac_val in
  1227. */ )
  1228. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1229. eval $ac_var=\$ac_val;;
  1230. esac
  1231. # Be sure to have absolute directory names.
  1232. case $ac_val in
  1233. [\\/$]* | ?:[\\/]* ) continue;;
  1234. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1235. esac
  1236. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1237. done
  1238. # There might be people who depend on the old broken behavior: `$host'
  1239. # used to hold the argument of --host etc.
  1240. # FIXME: To remove some day.
  1241. build=$build_alias
  1242. host=$host_alias
  1243. target=$target_alias
  1244. # FIXME: To remove some day.
  1245. if test "x$host_alias" != x; then
  1246. if test "x$build_alias" = x; then
  1247. cross_compiling=maybe
  1248. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1249. If a cross compiler is detected then cross compile mode will be used." >&2
  1250. elif test "x$build_alias" != "x$host_alias"; then
  1251. cross_compiling=yes
  1252. fi
  1253. fi
  1254. ac_tool_prefix=
  1255. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1256. test "$silent" = yes && exec 6>/dev/null
  1257. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1258. ac_ls_di=`ls -di .` &&
  1259. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1260. as_fn_error "working directory cannot be determined"
  1261. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1262. as_fn_error "pwd does not report name of working directory"
  1263. # Find the source files, if location was not specified.
  1264. if test -z "$srcdir"; then
  1265. ac_srcdir_defaulted=yes
  1266. # Try the directory containing this script, then the parent directory.
  1267. ac_confdir=`$as_dirname -- "$as_myself" ||
  1268. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1269. X"$as_myself" : 'X\(//\)[^/]' \| \
  1270. X"$as_myself" : 'X\(//\)$' \| \
  1271. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1272. $as_echo X"$as_myself" |
  1273. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1274. s//\1/
  1275. q
  1276. }
  1277. /^X\(\/\/\)[^/].*/{
  1278. s//\1/
  1279. q
  1280. }
  1281. /^X\(\/\/\)$/{
  1282. s//\1/
  1283. q
  1284. }
  1285. /^X\(\/\).*/{
  1286. s//\1/
  1287. q
  1288. }
  1289. s/.*/./; q'`
  1290. srcdir=$ac_confdir
  1291. if test ! -r "$srcdir/$ac_unique_file"; then
  1292. srcdir=..
  1293. fi
  1294. else
  1295. ac_srcdir_defaulted=no
  1296. fi
  1297. if test ! -r "$srcdir/$ac_unique_file"; then
  1298. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1299. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1300. fi
  1301. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1302. ac_abs_confdir=`(
  1303. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1304. pwd)`
  1305. # When building in place, set srcdir=.
  1306. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1307. srcdir=.
  1308. fi
  1309. # Remove unnecessary trailing slashes from srcdir.
  1310. # Double slashes in file names in object file debugging info
  1311. # mess up M-x gdb in Emacs.
  1312. case $srcdir in
  1313. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1314. esac
  1315. for ac_var in $ac_precious_vars; do
  1316. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1317. eval ac_env_${ac_var}_value=\$${ac_var}
  1318. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1319. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1320. done
  1321. #
  1322. # Report the --help message.
  1323. #
  1324. if test "$ac_init_help" = "long"; then
  1325. # Omit some internal or obsolete options to make the list less imposing.
  1326. # This message is too long to be a string in the A/UX 3.1 sh.
  1327. cat <<_ACEOF
  1328. \`configure' configures libmicrohttpd 0.4.5 to adapt to many kinds of systems.
  1329. Usage: $0 [OPTION]... [VAR=VALUE]...
  1330. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1331. VAR=VALUE. See below for descriptions of some of the useful variables.
  1332. Defaults for the options are specified in brackets.
  1333. Configuration:
  1334. -h, --help display this help and exit
  1335. --help=short display options specific to this package
  1336. --help=recursive display the short help of all the included packages
  1337. -V, --version display version information and exit
  1338. -q, --quiet, --silent do not print \`checking...' messages
  1339. --cache-file=FILE cache test results in FILE [disabled]
  1340. -C, --config-cache alias for \`--cache-file=config.cache'
  1341. -n, --no-create do not create output files
  1342. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1343. Installation directories:
  1344. --prefix=PREFIX install architecture-independent files in PREFIX
  1345. [$ac_default_prefix]
  1346. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1347. [PREFIX]
  1348. By default, \`make install' will install all the files in
  1349. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1350. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1351. for instance \`--prefix=\$HOME'.
  1352. For better control, use the options below.
  1353. Fine tuning of the installation directories:
  1354. --bindir=DIR user executables [EPREFIX/bin]
  1355. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1356. --libexecdir=DIR program executables [EPREFIX/libexec]
  1357. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1358. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1359. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1360. --libdir=DIR object code libraries [EPREFIX/lib]
  1361. --includedir=DIR C header files [PREFIX/include]
  1362. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1363. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1364. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1365. --infodir=DIR info documentation [DATAROOTDIR/info]
  1366. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1367. --mandir=DIR man documentation [DATAROOTDIR/man]
  1368. --docdir=DIR documentation root [DATAROOTDIR/doc/libmicrohttpd]
  1369. --htmldir=DIR html documentation [DOCDIR]
  1370. --dvidir=DIR dvi documentation [DOCDIR]
  1371. --pdfdir=DIR pdf documentation [DOCDIR]
  1372. --psdir=DIR ps documentation [DOCDIR]
  1373. _ACEOF
  1374. cat <<\_ACEOF
  1375. Program names:
  1376. --program-prefix=PREFIX prepend PREFIX to installed program names
  1377. --program-suffix=SUFFIX append SUFFIX to installed program names
  1378. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1379. System types:
  1380. --build=BUILD configure for building on BUILD [guessed]
  1381. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1382. _ACEOF
  1383. fi
  1384. if test -n "$ac_init_help"; then
  1385. case $ac_init_help in
  1386. short | recursive ) echo "Configuration of libmicrohttpd 0.4.5:";;
  1387. esac
  1388. cat <<\_ACEOF
  1389. Optional Features:
  1390. --disable-option-checking ignore unrecognized --enable/--with options
  1391. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1392. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1393. --disable-dependency-tracking speeds up one-time build
  1394. --enable-dependency-tracking do not reject slow dependency extractors
  1395. --enable-shared[=PKGS] build shared libraries [default=yes]
  1396. --enable-static[=PKGS] build static libraries [default=yes]
  1397. --enable-fast-install[=PKGS]
  1398. optimize for fast installation [default=yes]
  1399. --disable-libtool-lock avoid locking (might break parallel builds)
  1400. --enable-curl support cURL based testcases
  1401. --disable-largefile omit support for large files
  1402. --enable-messages enable MHD error messages
  1403. --enable-https enable HTTPS support (default is yes)
  1404. --enable-client-side compile client side code
  1405. --enable-coverage compile the library with code coverage support
  1406. (default is NO)
  1407. Optional Packages:
  1408. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1409. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1410. --with-pic try to use only PIC/non-PIC objects [default=use
  1411. both]
  1412. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1413. --with-libcurl=DIR look for the curl library in DIR
  1414. --with-libgcrypt-prefix=PFX
  1415. prefix where LIBGCRYPT is installed (optional)
  1416. Some influential environment variables:
  1417. CC C compiler command
  1418. CFLAGS C compiler flags
  1419. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1420. nonstandard directory <lib dir>
  1421. LIBS libraries to pass to the linker, e.g. -l<library>
  1422. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1423. you have headers in a nonstandard directory <include dir>
  1424. CPP C preprocessor
  1425. Use these variables to override the choices made by `configure' or to help
  1426. it to find libraries and programs with nonstandard names/locations.
  1427. Report bugs to <libmicrohttpd@gnu.org>.
  1428. _ACEOF
  1429. ac_status=$?
  1430. fi
  1431. if test "$ac_init_help" = "recursive"; then
  1432. # If there are subdirs, report their specific --help.
  1433. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1434. test -d "$ac_dir" ||
  1435. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1436. continue
  1437. ac_builddir=.
  1438. case "$ac_dir" in
  1439. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1440. *)
  1441. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1442. # A ".." for each directory in $ac_dir_suffix.
  1443. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1444. case $ac_top_builddir_sub in
  1445. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1446. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1447. esac ;;
  1448. esac
  1449. ac_abs_top_builddir=$ac_pwd
  1450. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1451. # for backward compatibility:
  1452. ac_top_builddir=$ac_top_build_prefix
  1453. case $srcdir in
  1454. .) # We are building in place.
  1455. ac_srcdir=.
  1456. ac_top_srcdir=$ac_top_builddir_sub
  1457. ac_abs_top_srcdir=$ac_pwd ;;
  1458. [\\/]* | ?:[\\/]* ) # Absolute name.
  1459. ac_srcdir=$srcdir$ac_dir_suffix;
  1460. ac_top_srcdir=$srcdir
  1461. ac_abs_top_srcdir=$srcdir ;;
  1462. *) # Relative name.
  1463. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1464. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1465. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1466. esac
  1467. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1468. cd "$ac_dir" || { ac_status=$?; continue; }
  1469. # Check for guested configure.
  1470. if test -f "$ac_srcdir/configure.gnu"; then
  1471. echo &&
  1472. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1473. elif test -f "$ac_srcdir/configure"; then
  1474. echo &&
  1475. $SHELL "$ac_srcdir/configure" --help=recursive
  1476. else
  1477. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1478. fi || ac_status=$?
  1479. cd "$ac_pwd" || { ac_status=$?; break; }
  1480. done
  1481. fi
  1482. test -n "$ac_init_help" && exit $ac_status
  1483. if $ac_init_version; then
  1484. cat <<\_ACEOF
  1485. libmicrohttpd configure 0.4.5
  1486. generated by GNU Autoconf 2.64
  1487. Copyright (C) 2009 Free Software Foundation, Inc.
  1488. This configure script is free software; the Free Software Foundation
  1489. gives unlimited permission to copy, distribute and modify it.
  1490. _ACEOF
  1491. exit
  1492. fi
  1493. ## ------------------------ ##
  1494. ## Autoconf initialization. ##
  1495. ## ------------------------ ##
  1496. # ac_fn_c_try_compile LINENO
  1497. # --------------------------
  1498. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1499. ac_fn_c_try_compile ()
  1500. {
  1501. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1502. rm -f conftest.$ac_objext
  1503. if { { ac_try="$ac_compile"
  1504. case "(($ac_try" in
  1505. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1506. *) ac_try_echo=$ac_try;;
  1507. esac
  1508. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1509. $as_echo "$ac_try_echo"; } >&5
  1510. (eval "$ac_compile") 2>conftest.err
  1511. ac_status=$?
  1512. if test -s conftest.err; then
  1513. grep -v '^ *+' conftest.err >conftest.er1
  1514. cat conftest.er1 >&5
  1515. mv -f conftest.er1 conftest.err
  1516. fi
  1517. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1518. test $ac_status = 0; } && {
  1519. test -z "$ac_c_werror_flag" ||
  1520. test ! -s conftest.err
  1521. } && test -s conftest.$ac_objext; then :
  1522. ac_retval=0
  1523. else
  1524. $as_echo "$as_me: failed program was:" >&5
  1525. sed 's/^/| /' conftest.$ac_ext >&5
  1526. ac_retval=1
  1527. fi
  1528. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1529. return $ac_retval
  1530. } # ac_fn_c_try_compile
  1531. # ac_fn_c_try_link LINENO
  1532. # -----------------------
  1533. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1534. ac_fn_c_try_link ()
  1535. {
  1536. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1537. rm -f conftest.$ac_objext conftest$ac_exeext
  1538. if { { ac_try="$ac_link"
  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_link") 2>conftest.err
  1546. ac_status=$?
  1547. if test -s conftest.err; then
  1548. grep -v '^ *+' conftest.err >conftest.er1
  1549. cat conftest.er1 >&5
  1550. mv -f conftest.er1 conftest.err
  1551. fi
  1552. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1553. test $ac_status = 0; } && {
  1554. test -z "$ac_c_werror_flag" ||
  1555. test ! -s conftest.err
  1556. } && test -s conftest$ac_exeext && {
  1557. test "$cross_compiling" = yes ||
  1558. $as_test_x conftest$ac_exeext
  1559. }; then :
  1560. ac_retval=0
  1561. else
  1562. $as_echo "$as_me: failed program was:" >&5
  1563. sed 's/^/| /' conftest.$ac_ext >&5
  1564. ac_retval=1
  1565. fi
  1566. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1567. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1568. # interfere with the next link command; also delete a directory that is
  1569. # left behind by Apple's compiler. We do this before executing the actions.
  1570. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1571. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1572. return $ac_retval
  1573. } # ac_fn_c_try_link
  1574. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1575. # -------------------------------------------------------
  1576. # Tests whether HEADER exists and can be compiled using the include files in
  1577. # INCLUDES, setting the cache variable VAR accordingly.
  1578. ac_fn_c_check_header_compile ()
  1579. {
  1580. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1582. $as_echo_n "checking for $2... " >&6; }
  1583. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1584. $as_echo_n "(cached) " >&6
  1585. else
  1586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1587. /* end confdefs.h. */
  1588. $4
  1589. #include <$2>
  1590. _ACEOF
  1591. if ac_fn_c_try_compile "$LINENO"; then :
  1592. eval "$3=yes"
  1593. else
  1594. eval "$3=no"
  1595. fi
  1596. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1597. fi
  1598. eval ac_res=\$$3
  1599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1600. $as_echo "$ac_res" >&6; }
  1601. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1602. } # ac_fn_c_check_header_compile
  1603. # ac_fn_c_try_cpp LINENO
  1604. # ----------------------
  1605. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1606. ac_fn_c_try_cpp ()
  1607. {
  1608. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1609. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1610. case "(($ac_try" in
  1611. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1612. *) ac_try_echo=$ac_try;;
  1613. esac
  1614. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1615. $as_echo "$ac_try_echo"; } >&5
  1616. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1617. ac_status=$?
  1618. if test -s conftest.err; then
  1619. grep -v '^ *+' conftest.err >conftest.er1
  1620. cat conftest.er1 >&5
  1621. mv -f conftest.er1 conftest.err
  1622. fi
  1623. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1624. test $ac_status = 0; } >/dev/null && {
  1625. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1626. test ! -s conftest.err
  1627. }; then :
  1628. ac_retval=0
  1629. else
  1630. $as_echo "$as_me: failed program was:" >&5
  1631. sed 's/^/| /' conftest.$ac_ext >&5
  1632. ac_retval=1
  1633. fi
  1634. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1635. return $ac_retval
  1636. } # ac_fn_c_try_cpp
  1637. # ac_fn_c_try_run LINENO
  1638. # ----------------------
  1639. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1640. # that executables *can* be run.
  1641. ac_fn_c_try_run ()
  1642. {
  1643. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1644. if { { ac_try="$ac_link"
  1645. case "(($ac_try" in
  1646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1647. *) ac_try_echo=$ac_try;;
  1648. esac
  1649. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1650. $as_echo "$ac_try_echo"; } >&5
  1651. (eval "$ac_link") 2>&5
  1652. ac_status=$?
  1653. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1654. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1655. { { case "(($ac_try" in
  1656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1657. *) ac_try_echo=$ac_try;;
  1658. esac
  1659. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1660. $as_echo "$ac_try_echo"; } >&5
  1661. (eval "$ac_try") 2>&5
  1662. ac_status=$?
  1663. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1664. test $ac_status = 0; }; }; then :
  1665. ac_retval=0
  1666. else
  1667. $as_echo "$as_me: program exited with status $ac_status" >&5
  1668. $as_echo "$as_me: failed program was:" >&5
  1669. sed 's/^/| /' conftest.$ac_ext >&5
  1670. ac_retval=$ac_status
  1671. fi
  1672. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1673. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1674. return $ac_retval
  1675. } # ac_fn_c_try_run
  1676. # ac_fn_c_check_func LINENO FUNC VAR
  1677. # ----------------------------------
  1678. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1679. ac_fn_c_check_func ()
  1680. {
  1681. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1683. $as_echo_n "checking for $2... " >&6; }
  1684. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1685. $as_echo_n "(cached) " >&6
  1686. else
  1687. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1688. /* end confdefs.h. */
  1689. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1690. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1691. #define $2 innocuous_$2
  1692. /* System header to define __stub macros and hopefully few prototypes,
  1693. which can conflict with char $2 (); below.
  1694. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1695. <limits.h> exists even on freestanding compilers. */
  1696. #ifdef __STDC__
  1697. # include <limits.h>
  1698. #else
  1699. # include <assert.h>
  1700. #endif
  1701. #undef $2
  1702. /* Override any GCC internal prototype to avoid an error.
  1703. Use char because int might match the return type of a GCC
  1704. builtin and then its argument prototype would still apply. */
  1705. #ifdef __cplusplus
  1706. extern "C"
  1707. #endif
  1708. char $2 ();
  1709. /* The GNU C library defines this for functions which it implements
  1710. to always fail with ENOSYS. Some functions are actually named
  1711. something starting with __ and the normal name is an alias. */
  1712. #if defined __stub_$2 || defined __stub___$2
  1713. choke me
  1714. #endif
  1715. int
  1716. main ()
  1717. {
  1718. return $2 ();
  1719. ;
  1720. return 0;
  1721. }
  1722. _ACEOF
  1723. if ac_fn_c_try_link "$LINENO"; then :
  1724. eval "$3=yes"
  1725. else
  1726. eval "$3=no"
  1727. fi
  1728. rm -f core conftest.err conftest.$ac_objext \
  1729. conftest$ac_exeext conftest.$ac_ext
  1730. fi
  1731. eval ac_res=\$$3
  1732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1733. $as_echo "$ac_res" >&6; }
  1734. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1735. } # ac_fn_c_check_func
  1736. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1737. # -------------------------------------------------------
  1738. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1739. # the include files in INCLUDES and setting the cache variable VAR
  1740. # accordingly.
  1741. ac_fn_c_check_header_mongrel ()
  1742. {
  1743. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1744. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1746. $as_echo_n "checking for $2... " >&6; }
  1747. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1748. $as_echo_n "(cached) " >&6
  1749. fi
  1750. eval ac_res=\$$3
  1751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1752. $as_echo "$ac_res" >&6; }
  1753. else
  1754. # Is the header compilable?
  1755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1756. $as_echo_n "checking $2 usability... " >&6; }
  1757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1758. /* end confdefs.h. */
  1759. $4
  1760. #include <$2>
  1761. _ACEOF
  1762. if ac_fn_c_try_compile "$LINENO"; then :
  1763. ac_header_compiler=yes
  1764. else
  1765. ac_header_compiler=no
  1766. fi
  1767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1769. $as_echo "$ac_header_compiler" >&6; }
  1770. # Is the header present?
  1771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1772. $as_echo_n "checking $2 presence... " >&6; }
  1773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1774. /* end confdefs.h. */
  1775. #include <$2>
  1776. _ACEOF
  1777. if ac_fn_c_try_cpp "$LINENO"; then :
  1778. ac_header_preproc=yes
  1779. else
  1780. ac_header_preproc=no
  1781. fi
  1782. rm -f conftest.err conftest.$ac_ext
  1783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1784. $as_echo "$ac_header_preproc" >&6; }
  1785. # So? What about this header?
  1786. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1787. yes:no: )
  1788. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1789. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1790. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1791. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1792. ;;
  1793. no:yes:* )
  1794. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1795. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1796. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1797. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1798. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1799. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1800. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1801. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1802. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1803. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1804. ( cat <<\_ASBOX
  1805. ## ------------------------------------ ##
  1806. ## Report this to libmicrohttpd@gnu.org ##
  1807. ## ------------------------------------ ##
  1808. _ASBOX
  1809. ) | sed "s/^/$as_me: WARNING: /" >&2
  1810. ;;
  1811. esac
  1812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1813. $as_echo_n "checking for $2... " >&6; }
  1814. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1815. $as_echo_n "(cached) " >&6
  1816. else
  1817. eval "$3=\$ac_header_compiler"
  1818. fi
  1819. eval ac_res=\$$3
  1820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1821. $as_echo "$ac_res" >&6; }
  1822. fi
  1823. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1824. } # ac_fn_c_check_header_mongrel
  1825. # ac_fn_c_check_decl LINENO SYMBOL VAR
  1826. # ------------------------------------
  1827. # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  1828. ac_fn_c_check_decl ()
  1829. {
  1830. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
  1832. $as_echo_n "checking whether $2 is declared... " >&6; }
  1833. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1834. $as_echo_n "(cached) " >&6
  1835. else
  1836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1837. /* end confdefs.h. */
  1838. $4
  1839. int
  1840. main ()
  1841. {
  1842. #ifndef $2
  1843. (void) $2;
  1844. #endif
  1845. ;
  1846. return 0;
  1847. }
  1848. _ACEOF
  1849. if ac_fn_c_try_compile "$LINENO"; then :
  1850. eval "$3=yes"
  1851. else
  1852. eval "$3=no"
  1853. fi
  1854. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1855. fi
  1856. eval ac_res=\$$3
  1857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1858. $as_echo "$ac_res" >&6; }
  1859. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1860. } # ac_fn_c_check_decl
  1861. cat >config.log <<_ACEOF
  1862. This file contains any messages produced by compilers while
  1863. running configure, to aid debugging if configure makes a mistake.
  1864. It was created by libmicrohttpd $as_me 0.4.5, which was
  1865. generated by GNU Autoconf 2.64. Invocation command line was
  1866. $ $0 $@
  1867. _ACEOF
  1868. exec 5>>config.log
  1869. {
  1870. cat <<_ASUNAME
  1871. ## --------- ##
  1872. ## Platform. ##
  1873. ## --------- ##
  1874. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1875. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1876. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1877. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1878. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1879. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1880. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1881. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1882. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1883. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1884. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1885. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1886. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1887. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1888. _ASUNAME
  1889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1890. for as_dir in $PATH
  1891. do
  1892. IFS=$as_save_IFS
  1893. test -z "$as_dir" && as_dir=.
  1894. $as_echo "PATH: $as_dir"
  1895. done
  1896. IFS=$as_save_IFS
  1897. } >&5
  1898. cat >&5 <<_ACEOF
  1899. ## ----------- ##
  1900. ## Core tests. ##
  1901. ## ----------- ##
  1902. _ACEOF
  1903. # Keep a trace of the command line.
  1904. # Strip out --no-create and --no-recursion so they do not pile up.
  1905. # Strip out --silent because we don't want to record it for future runs.
  1906. # Also quote any args containing shell meta-characters.
  1907. # Make two passes to allow for proper duplicate-argument suppression.
  1908. ac_configure_args=
  1909. ac_configure_args0=
  1910. ac_configure_args1=
  1911. ac_must_keep_next=false
  1912. for ac_pass in 1 2
  1913. do
  1914. for ac_arg
  1915. do
  1916. case $ac_arg in
  1917. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1918. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1919. | -silent | --silent | --silen | --sile | --sil)
  1920. continue ;;
  1921. *\'*)
  1922. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1923. esac
  1924. case $ac_pass in
  1925. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1926. 2)
  1927. as_fn_append ac_configure_args1 " '$ac_arg'"
  1928. if test $ac_must_keep_next = true; then
  1929. ac_must_keep_next=false # Got value, back to normal.
  1930. else
  1931. case $ac_arg in
  1932. *=* | --config-cache | -C | -disable-* | --disable-* \
  1933. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1934. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1935. | -with-* | --with-* | -without-* | --without-* | --x)
  1936. case "$ac_configure_args0 " in
  1937. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1938. esac
  1939. ;;
  1940. -* ) ac_must_keep_next=true ;;
  1941. esac
  1942. fi
  1943. as_fn_append ac_configure_args " '$ac_arg'"
  1944. ;;
  1945. esac
  1946. done
  1947. done
  1948. { ac_configure_args0=; unset ac_configure_args0;}
  1949. { ac_configure_args1=; unset ac_configure_args1;}
  1950. # When interrupted or exit'd, cleanup temporary files, and complete
  1951. # config.log. We remove comments because anyway the quotes in there
  1952. # would cause problems or look ugly.
  1953. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1954. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1955. trap 'exit_status=$?
  1956. # Save into config.log some information that might help in debugging.
  1957. {
  1958. echo
  1959. cat <<\_ASBOX
  1960. ## ---------------- ##
  1961. ## Cache variables. ##
  1962. ## ---------------- ##
  1963. _ASBOX
  1964. echo
  1965. # The following way of writing the cache mishandles newlines in values,
  1966. (
  1967. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1968. eval ac_val=\$$ac_var
  1969. case $ac_val in #(
  1970. *${as_nl}*)
  1971. case $ac_var in #(
  1972. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1973. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1974. esac
  1975. case $ac_var in #(
  1976. _ | IFS | as_nl) ;; #(
  1977. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1978. *) { eval $ac_var=; unset $ac_var;} ;;
  1979. esac ;;
  1980. esac
  1981. done
  1982. (set) 2>&1 |
  1983. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1984. *${as_nl}ac_space=\ *)
  1985. sed -n \
  1986. "s/'\''/'\''\\\\'\'''\''/g;
  1987. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1988. ;; #(
  1989. *)
  1990. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1991. ;;
  1992. esac |
  1993. sort
  1994. )
  1995. echo
  1996. cat <<\_ASBOX
  1997. ## ----------------- ##
  1998. ## Output variables. ##
  1999. ## ----------------- ##
  2000. _ASBOX
  2001. echo
  2002. for ac_var in $ac_subst_vars
  2003. do
  2004. eval ac_val=\$$ac_var
  2005. case $ac_val in
  2006. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2007. esac
  2008. $as_echo "$ac_var='\''$ac_val'\''"
  2009. done | sort
  2010. echo
  2011. if test -n "$ac_subst_files"; then
  2012. cat <<\_ASBOX
  2013. ## ------------------- ##
  2014. ## File substitutions. ##
  2015. ## ------------------- ##
  2016. _ASBOX
  2017. echo
  2018. for ac_var in $ac_subst_files
  2019. do
  2020. eval ac_val=\$$ac_var
  2021. case $ac_val in
  2022. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2023. esac
  2024. $as_echo "$ac_var='\''$ac_val'\''"
  2025. done | sort
  2026. echo
  2027. fi
  2028. if test -s confdefs.h; then
  2029. cat <<\_ASBOX
  2030. ## ----------- ##
  2031. ## confdefs.h. ##
  2032. ## ----------- ##
  2033. _ASBOX
  2034. echo
  2035. cat confdefs.h
  2036. echo
  2037. fi
  2038. test "$ac_signal" != 0 &&
  2039. $as_echo "$as_me: caught signal $ac_signal"
  2040. $as_echo "$as_me: exit $exit_status"
  2041. } >&5
  2042. rm -f core *.core core.conftest.* &&
  2043. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2044. exit $exit_status
  2045. ' 0
  2046. for ac_signal in 1 2 13 15; do
  2047. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2048. done
  2049. ac_signal=0
  2050. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2051. rm -f -r conftest* confdefs.h
  2052. $as_echo "/* confdefs.h */" > confdefs.h
  2053. # Predefined preprocessor variables.
  2054. cat >>confdefs.h <<_ACEOF
  2055. #define PACKAGE_NAME "$PACKAGE_NAME"
  2056. _ACEOF
  2057. cat >>confdefs.h <<_ACEOF
  2058. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2059. _ACEOF
  2060. cat >>confdefs.h <<_ACEOF
  2061. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2062. _ACEOF
  2063. cat >>confdefs.h <<_ACEOF
  2064. #define PACKAGE_STRING "$PACKAGE_STRING"
  2065. _ACEOF
  2066. cat >>confdefs.h <<_ACEOF
  2067. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2068. _ACEOF
  2069. cat >>confdefs.h <<_ACEOF
  2070. #define PACKAGE_URL "$PACKAGE_URL"
  2071. _ACEOF
  2072. # Let the site file select an alternate cache file if it wants to.
  2073. # Prefer an explicitly selected file to automatically selected ones.
  2074. ac_site_file1=NONE
  2075. ac_site_file2=NONE
  2076. if test -n "$CONFIG_SITE"; then
  2077. ac_site_file1=$CONFIG_SITE
  2078. elif test "x$prefix" != xNONE; then
  2079. ac_site_file1=$prefix/share/config.site
  2080. ac_site_file2=$prefix/etc/config.site
  2081. else
  2082. ac_site_file1=$ac_default_prefix/share/config.site
  2083. ac_site_file2=$ac_default_prefix/etc/config.site
  2084. fi
  2085. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2086. do
  2087. test "x$ac_site_file" = xNONE && continue
  2088. if test -r "$ac_site_file"; then
  2089. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2090. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2091. sed 's/^/| /' "$ac_site_file" >&5
  2092. . "$ac_site_file"
  2093. fi
  2094. done
  2095. if test -r "$cache_file"; then
  2096. # Some versions of bash will fail to source /dev/null (special
  2097. # files actually), so we avoid doing that.
  2098. if test -f "$cache_file"; then
  2099. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2100. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2101. case $cache_file in
  2102. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2103. *) . "./$cache_file";;
  2104. esac
  2105. fi
  2106. else
  2107. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2108. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2109. >$cache_file
  2110. fi
  2111. # Check that the precious variables saved in the cache have kept the same
  2112. # value.
  2113. ac_cache_corrupted=false
  2114. for ac_var in $ac_precious_vars; do
  2115. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2116. eval ac_new_set=\$ac_env_${ac_var}_set
  2117. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2118. eval ac_new_val=\$ac_env_${ac_var}_value
  2119. case $ac_old_set,$ac_new_set in
  2120. set,)
  2121. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2122. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2123. ac_cache_corrupted=: ;;
  2124. ,set)
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2126. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2127. ac_cache_corrupted=: ;;
  2128. ,);;
  2129. *)
  2130. if test "x$ac_old_val" != "x$ac_new_val"; then
  2131. # differences in whitespace do not lead to failure.
  2132. ac_old_val_w=`echo x $ac_old_val`
  2133. ac_new_val_w=`echo x $ac_new_val`
  2134. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2135. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2136. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2137. ac_cache_corrupted=:
  2138. else
  2139. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2140. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2141. eval $ac_var=\$ac_old_val
  2142. fi
  2143. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2144. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2145. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2146. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2147. fi;;
  2148. esac
  2149. # Pass precious variables to config.status.
  2150. if test "$ac_new_set" = set; then
  2151. case $ac_new_val in
  2152. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2153. *) ac_arg=$ac_var=$ac_new_val ;;
  2154. esac
  2155. case " $ac_configure_args " in
  2156. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2157. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2158. esac
  2159. fi
  2160. done
  2161. if $ac_cache_corrupted; then
  2162. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2163. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2164. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2165. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2166. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2167. fi
  2168. ## -------------------- ##
  2169. ## Main body of script. ##
  2170. ## -------------------- ##
  2171. ac_ext=c
  2172. ac_cpp='$CPP $CPPFLAGS'
  2173. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2174. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2175. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2176. am__api_version='1.11'
  2177. ac_aux_dir=
  2178. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2179. for ac_t in install-sh install.sh shtool; do
  2180. if test -f "$ac_dir/$ac_t"; then
  2181. ac_aux_dir=$ac_dir
  2182. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2183. break 2
  2184. fi
  2185. done
  2186. done
  2187. if test -z "$ac_aux_dir"; then
  2188. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2189. fi
  2190. # These three variables are undocumented and unsupported,
  2191. # and are intended to be withdrawn in a future Autoconf release.
  2192. # They can cause serious problems if a builder's source tree is in a directory
  2193. # whose full name contains unusual characters.
  2194. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2195. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2196. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2197. # Find a good install program. We prefer a C program (faster),
  2198. # so one script is as good as another. But avoid the broken or
  2199. # incompatible versions:
  2200. # SysV /etc/install, /usr/sbin/install
  2201. # SunOS /usr/etc/install
  2202. # IRIX /sbin/install
  2203. # AIX /bin/install
  2204. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2205. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2206. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2207. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2208. # OS/2's system install, which has a completely different semantic
  2209. # ./install, which can be erroneously created by make from ./install.sh.
  2210. # Reject install programs that cannot install multiple files.
  2211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2212. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2213. if test -z "$INSTALL"; then
  2214. if test "${ac_cv_path_install+set}" = set; then :
  2215. $as_echo_n "(cached) " >&6
  2216. else
  2217. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2218. for as_dir in $PATH
  2219. do
  2220. IFS=$as_save_IFS
  2221. test -z "$as_dir" && as_dir=.
  2222. # Account for people who put trailing slashes in PATH elements.
  2223. case $as_dir/ in #((
  2224. ./ | .// | /[cC]/* | \
  2225. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2226. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2227. /usr/ucb/* ) ;;
  2228. *)
  2229. # OSF1 and SCO ODT 3.0 have their own names for install.
  2230. # Don't use installbsd from OSF since it installs stuff as root
  2231. # by default.
  2232. for ac_prog in ginstall scoinst install; do
  2233. for ac_exec_ext in '' $ac_executable_extensions; do
  2234. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2235. if test $ac_prog = install &&
  2236. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2237. # AIX install. It has an incompatible calling convention.
  2238. :
  2239. elif test $ac_prog = install &&
  2240. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2241. # program-specific install script used by HP pwplus--don't use.
  2242. :
  2243. else
  2244. rm -rf conftest.one conftest.two conftest.dir
  2245. echo one > conftest.one
  2246. echo two > conftest.two
  2247. mkdir conftest.dir
  2248. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2249. test -s conftest.one && test -s conftest.two &&
  2250. test -s conftest.dir/conftest.one &&
  2251. test -s conftest.dir/conftest.two
  2252. then
  2253. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2254. break 3
  2255. fi
  2256. fi
  2257. fi
  2258. done
  2259. done
  2260. ;;
  2261. esac
  2262. done
  2263. IFS=$as_save_IFS
  2264. rm -rf conftest.one conftest.two conftest.dir
  2265. fi
  2266. if test "${ac_cv_path_install+set}" = set; then
  2267. INSTALL=$ac_cv_path_install
  2268. else
  2269. # As a last resort, use the slow shell script. Don't cache a
  2270. # value for INSTALL within a source directory, because that will
  2271. # break other packages using the cache if that directory is
  2272. # removed, or if the value is a relative name.
  2273. INSTALL=$ac_install_sh
  2274. fi
  2275. fi
  2276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2277. $as_echo "$INSTALL" >&6; }
  2278. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2279. # It thinks the first close brace ends the variable substitution.
  2280. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2281. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2282. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2284. $as_echo_n "checking whether build environment is sane... " >&6; }
  2285. # Just in case
  2286. sleep 1
  2287. echo timestamp > conftest.file
  2288. # Reject unsafe characters in $srcdir or the absolute working directory
  2289. # name. Accept space and tab only in the latter.
  2290. am_lf='
  2291. '
  2292. case `pwd` in
  2293. *[\\\"\#\$\&\'\`$am_lf]*)
  2294. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2295. esac
  2296. case $srcdir in
  2297. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2298. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2299. esac
  2300. # Do `set' in a subshell so we don't clobber the current shell's
  2301. # arguments. Must try -L first in case configure is actually a
  2302. # symlink; some systems play weird games with the mod time of symlinks
  2303. # (eg FreeBSD returns the mod time of the symlink's containing
  2304. # directory).
  2305. if (
  2306. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2307. if test "$*" = "X"; then
  2308. # -L didn't work.
  2309. set X `ls -t "$srcdir/configure" conftest.file`
  2310. fi
  2311. rm -f conftest.file
  2312. if test "$*" != "X $srcdir/configure conftest.file" \
  2313. && test "$*" != "X conftest.file $srcdir/configure"; then
  2314. # If neither matched, then we have a broken ls. This can happen
  2315. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2316. # broken ls alias from the environment. This has actually
  2317. # happened. Such a system could not be considered "sane".
  2318. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2319. alias in your environment" "$LINENO" 5
  2320. fi
  2321. test "$2" = conftest.file
  2322. )
  2323. then
  2324. # Ok.
  2325. :
  2326. else
  2327. as_fn_error "newly created file is older than distributed files!
  2328. Check your system clock" "$LINENO" 5
  2329. fi
  2330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2331. $as_echo "yes" >&6; }
  2332. test "$program_prefix" != NONE &&
  2333. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2334. # Use a double $ so make ignores it.
  2335. test "$program_suffix" != NONE &&
  2336. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2337. # Double any \ or $.
  2338. # By default was `s,x,x', remove it if useless.
  2339. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2340. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2341. # expand $ac_aux_dir to an absolute path
  2342. am_aux_dir=`cd $ac_aux_dir && pwd`
  2343. if test x"${MISSING+set}" != xset; then
  2344. case $am_aux_dir in
  2345. *\ * | *\ *)
  2346. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2347. *)
  2348. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2349. esac
  2350. fi
  2351. # Use eval to expand $SHELL
  2352. if eval "$MISSING --run true"; then
  2353. am_missing_run="$MISSING --run "
  2354. else
  2355. am_missing_run=
  2356. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2357. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2358. fi
  2359. if test x"${install_sh}" != xset; then
  2360. case $am_aux_dir in
  2361. *\ * | *\ *)
  2362. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2363. *)
  2364. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2365. esac
  2366. fi
  2367. # Installed binaries are usually stripped using `strip' when the user
  2368. # run `make install-strip'. However `strip' might not be the right
  2369. # tool to use in cross-compilation environments, therefore Automake
  2370. # will honor the `STRIP' environment variable to overrule this program.
  2371. if test "$cross_compiling" != no; then
  2372. if test -n "$ac_tool_prefix"; then
  2373. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2374. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2376. $as_echo_n "checking for $ac_word... " >&6; }
  2377. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2378. $as_echo_n "(cached) " >&6
  2379. else
  2380. if test -n "$STRIP"; then
  2381. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2382. else
  2383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2384. for as_dir in $PATH
  2385. do
  2386. IFS=$as_save_IFS
  2387. test -z "$as_dir" && as_dir=.
  2388. for ac_exec_ext in '' $ac_executable_extensions; do
  2389. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2390. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2391. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2392. break 2
  2393. fi
  2394. done
  2395. done
  2396. IFS=$as_save_IFS
  2397. fi
  2398. fi
  2399. STRIP=$ac_cv_prog_STRIP
  2400. if test -n "$STRIP"; then
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2402. $as_echo "$STRIP" >&6; }
  2403. else
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2405. $as_echo "no" >&6; }
  2406. fi
  2407. fi
  2408. if test -z "$ac_cv_prog_STRIP"; then
  2409. ac_ct_STRIP=$STRIP
  2410. # Extract the first word of "strip", so it can be a program name with args.
  2411. set dummy strip; ac_word=$2
  2412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2413. $as_echo_n "checking for $ac_word... " >&6; }
  2414. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2415. $as_echo_n "(cached) " >&6
  2416. else
  2417. if test -n "$ac_ct_STRIP"; then
  2418. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2419. else
  2420. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2421. for as_dir in $PATH
  2422. do
  2423. IFS=$as_save_IFS
  2424. test -z "$as_dir" && as_dir=.
  2425. for ac_exec_ext in '' $ac_executable_extensions; do
  2426. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2427. ac_cv_prog_ac_ct_STRIP="strip"
  2428. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2429. break 2
  2430. fi
  2431. done
  2432. done
  2433. IFS=$as_save_IFS
  2434. fi
  2435. fi
  2436. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2437. if test -n "$ac_ct_STRIP"; then
  2438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2439. $as_echo "$ac_ct_STRIP" >&6; }
  2440. else
  2441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2442. $as_echo "no" >&6; }
  2443. fi
  2444. if test "x$ac_ct_STRIP" = x; then
  2445. STRIP=":"
  2446. else
  2447. case $cross_compiling:$ac_tool_warned in
  2448. yes:)
  2449. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2450. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2451. ac_tool_warned=yes ;;
  2452. esac
  2453. STRIP=$ac_ct_STRIP
  2454. fi
  2455. else
  2456. STRIP="$ac_cv_prog_STRIP"
  2457. fi
  2458. fi
  2459. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2461. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2462. if test -z "$MKDIR_P"; then
  2463. if test "${ac_cv_path_mkdir+set}" = set; then :
  2464. $as_echo_n "(cached) " >&6
  2465. else
  2466. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2467. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2468. do
  2469. IFS=$as_save_IFS
  2470. test -z "$as_dir" && as_dir=.
  2471. for ac_prog in mkdir gmkdir; do
  2472. for ac_exec_ext in '' $ac_executable_extensions; do
  2473. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2474. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2475. 'mkdir (GNU coreutils) '* | \
  2476. 'mkdir (coreutils) '* | \
  2477. 'mkdir (fileutils) '4.1*)
  2478. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2479. break 3;;
  2480. esac
  2481. done
  2482. done
  2483. done
  2484. IFS=$as_save_IFS
  2485. fi
  2486. if test "${ac_cv_path_mkdir+set}" = set; then
  2487. MKDIR_P="$ac_cv_path_mkdir -p"
  2488. else
  2489. # As a last resort, use the slow shell script. Don't cache a
  2490. # value for MKDIR_P within a source directory, because that will
  2491. # break other packages using the cache if that directory is
  2492. # removed, or if the value is a relative name.
  2493. test -d ./--version && rmdir ./--version
  2494. MKDIR_P="$ac_install_sh -d"
  2495. fi
  2496. fi
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2498. $as_echo "$MKDIR_P" >&6; }
  2499. mkdir_p="$MKDIR_P"
  2500. case $mkdir_p in
  2501. [\\/$]* | ?:[\\/]*) ;;
  2502. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2503. esac
  2504. for ac_prog in gawk mawk nawk awk
  2505. do
  2506. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2507. set dummy $ac_prog; ac_word=$2
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2509. $as_echo_n "checking for $ac_word... " >&6; }
  2510. if test "${ac_cv_prog_AWK+set}" = set; then :
  2511. $as_echo_n "(cached) " >&6
  2512. else
  2513. if test -n "$AWK"; then
  2514. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2515. else
  2516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2517. for as_dir in $PATH
  2518. do
  2519. IFS=$as_save_IFS
  2520. test -z "$as_dir" && as_dir=.
  2521. for ac_exec_ext in '' $ac_executable_extensions; do
  2522. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2523. ac_cv_prog_AWK="$ac_prog"
  2524. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2525. break 2
  2526. fi
  2527. done
  2528. done
  2529. IFS=$as_save_IFS
  2530. fi
  2531. fi
  2532. AWK=$ac_cv_prog_AWK
  2533. if test -n "$AWK"; then
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2535. $as_echo "$AWK" >&6; }
  2536. else
  2537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2538. $as_echo "no" >&6; }
  2539. fi
  2540. test -n "$AWK" && break
  2541. done
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2543. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2544. set x ${MAKE-make}
  2545. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2546. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2547. $as_echo_n "(cached) " >&6
  2548. else
  2549. cat >conftest.make <<\_ACEOF
  2550. SHELL = /bin/sh
  2551. all:
  2552. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2553. _ACEOF
  2554. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2555. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2556. *@@@%%%=?*=@@@%%%*)
  2557. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2558. *)
  2559. eval ac_cv_prog_make_${ac_make}_set=no;;
  2560. esac
  2561. rm -f conftest.make
  2562. fi
  2563. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2565. $as_echo "yes" >&6; }
  2566. SET_MAKE=
  2567. else
  2568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2569. $as_echo "no" >&6; }
  2570. SET_MAKE="MAKE=${MAKE-make}"
  2571. fi
  2572. rm -rf .tst 2>/dev/null
  2573. mkdir .tst 2>/dev/null
  2574. if test -d .tst; then
  2575. am__leading_dot=.
  2576. else
  2577. am__leading_dot=_
  2578. fi
  2579. rmdir .tst 2>/dev/null
  2580. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2581. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2582. # is not polluted with repeated "-I."
  2583. am__isrc=' -I$(srcdir)'
  2584. # test to see if srcdir already configured
  2585. if test -f $srcdir/config.status; then
  2586. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2587. fi
  2588. fi
  2589. # test whether we have cygpath
  2590. if test -z "$CYGPATH_W"; then
  2591. if (cygpath --version) >/dev/null 2>/dev/null; then
  2592. CYGPATH_W='cygpath -w'
  2593. else
  2594. CYGPATH_W=echo
  2595. fi
  2596. fi
  2597. # Define the identity of the package.
  2598. PACKAGE=libmicrohttpd
  2599. VERSION=0.4.5
  2600. cat >>confdefs.h <<_ACEOF
  2601. #define PACKAGE "$PACKAGE"
  2602. _ACEOF
  2603. cat >>confdefs.h <<_ACEOF
  2604. #define VERSION "$VERSION"
  2605. _ACEOF
  2606. # Some tools Automake needs.
  2607. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2608. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2609. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2610. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2611. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2612. # We need awk for the "check" target. The system "awk" is bad on
  2613. # some platforms.
  2614. # Always define AMTAR for backward compatibility.
  2615. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2616. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2617. ac_config_headers="$ac_config_headers MHD_config.h"
  2618. LIB_VERSION_CURRENT=7
  2619. LIB_VERSION_REVISION=0
  2620. LIB_VERSION_AGE=2
  2621. if test `uname -s` = "OS/390"
  2622. then
  2623. # configure binaries for z/OS
  2624. if test -z "$CC"
  2625. then
  2626. CC=`pwd`"/contrib/xcc"
  2627. chmod +x $CC || true
  2628. fi
  2629. if test -z "$CPP"
  2630. then
  2631. CPP="c89 -E"
  2632. fi
  2633. if test -z "$CXXCPP"
  2634. then
  2635. CXXCPP="c++ -E -+"
  2636. fi
  2637. # _CCC_CCMODE=1
  2638. # _C89_CCMODE=1
  2639. fi
  2640. # Checks for programs.
  2641. for ac_prog in gawk mawk nawk awk
  2642. do
  2643. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2644. set dummy $ac_prog; ac_word=$2
  2645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2646. $as_echo_n "checking for $ac_word... " >&6; }
  2647. if test "${ac_cv_prog_AWK+set}" = set; then :
  2648. $as_echo_n "(cached) " >&6
  2649. else
  2650. if test -n "$AWK"; then
  2651. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2652. else
  2653. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2654. for as_dir in $PATH
  2655. do
  2656. IFS=$as_save_IFS
  2657. test -z "$as_dir" && as_dir=.
  2658. for ac_exec_ext in '' $ac_executable_extensions; do
  2659. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2660. ac_cv_prog_AWK="$ac_prog"
  2661. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2662. break 2
  2663. fi
  2664. done
  2665. done
  2666. IFS=$as_save_IFS
  2667. fi
  2668. fi
  2669. AWK=$ac_cv_prog_AWK
  2670. if test -n "$AWK"; then
  2671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2672. $as_echo "$AWK" >&6; }
  2673. else
  2674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2675. $as_echo "no" >&6; }
  2676. fi
  2677. test -n "$AWK" && break
  2678. done
  2679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  2680. $as_echo_n "checking whether ln -s works... " >&6; }
  2681. LN_S=$as_ln_s
  2682. if test "$LN_S" = "ln -s"; then
  2683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2684. $as_echo "yes" >&6; }
  2685. else
  2686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  2687. $as_echo "no, using $LN_S" >&6; }
  2688. fi
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2690. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2691. set x ${MAKE-make}
  2692. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2693. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2694. $as_echo_n "(cached) " >&6
  2695. else
  2696. cat >conftest.make <<\_ACEOF
  2697. SHELL = /bin/sh
  2698. all:
  2699. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2700. _ACEOF
  2701. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2702. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2703. *@@@%%%=?*=@@@%%%*)
  2704. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2705. *)
  2706. eval ac_cv_prog_make_${ac_make}_set=no;;
  2707. esac
  2708. rm -f conftest.make
  2709. fi
  2710. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2712. $as_echo "yes" >&6; }
  2713. SET_MAKE=
  2714. else
  2715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2716. $as_echo "no" >&6; }
  2717. SET_MAKE="MAKE=${MAKE-make}"
  2718. fi
  2719. # Make sure we can run config.sub.
  2720. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2721. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2723. $as_echo_n "checking build system type... " >&6; }
  2724. if test "${ac_cv_build+set}" = set; then :
  2725. $as_echo_n "(cached) " >&6
  2726. else
  2727. ac_build_alias=$build_alias
  2728. test "x$ac_build_alias" = x &&
  2729. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2730. test "x$ac_build_alias" = x &&
  2731. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  2732. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2733. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2734. fi
  2735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2736. $as_echo "$ac_cv_build" >&6; }
  2737. case $ac_cv_build in
  2738. *-*-*) ;;
  2739. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  2740. esac
  2741. build=$ac_cv_build
  2742. ac_save_IFS=$IFS; IFS='-'
  2743. set x $ac_cv_build
  2744. shift
  2745. build_cpu=$1
  2746. build_vendor=$2
  2747. shift; shift
  2748. # Remember, the first character of IFS is used to create $*,
  2749. # except with old shells:
  2750. build_os=$*
  2751. IFS=$ac_save_IFS
  2752. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2754. $as_echo_n "checking host system type... " >&6; }
  2755. if test "${ac_cv_host+set}" = set; then :
  2756. $as_echo_n "(cached) " >&6
  2757. else
  2758. if test "x$host_alias" = x; then
  2759. ac_cv_host=$ac_cv_build
  2760. else
  2761. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2762. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2763. fi
  2764. fi
  2765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2766. $as_echo "$ac_cv_host" >&6; }
  2767. case $ac_cv_host in
  2768. *-*-*) ;;
  2769. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  2770. esac
  2771. host=$ac_cv_host
  2772. ac_save_IFS=$IFS; IFS='-'
  2773. set x $ac_cv_host
  2774. shift
  2775. host_cpu=$1
  2776. host_vendor=$2
  2777. shift; shift
  2778. # Remember, the first character of IFS is used to create $*,
  2779. # except with old shells:
  2780. host_os=$*
  2781. IFS=$ac_save_IFS
  2782. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2783. DEPDIR="${am__leading_dot}deps"
  2784. ac_config_commands="$ac_config_commands depfiles"
  2785. am_make=${MAKE-make}
  2786. cat > confinc << 'END'
  2787. am__doit:
  2788. @echo this is the am__doit target
  2789. .PHONY: am__doit
  2790. END
  2791. # If we don't find an include directive, just comment out the code.
  2792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2793. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2794. am__include="#"
  2795. am__quote=
  2796. _am_result=none
  2797. # First try GNU make style include.
  2798. echo "include confinc" > confmf
  2799. # Ignore all kinds of additional output from `make'.
  2800. case `$am_make -s -f confmf 2> /dev/null` in #(
  2801. *the\ am__doit\ target*)
  2802. am__include=include
  2803. am__quote=
  2804. _am_result=GNU
  2805. ;;
  2806. esac
  2807. # Now try BSD make style include.
  2808. if test "$am__include" = "#"; then
  2809. echo '.include "confinc"' > confmf
  2810. case `$am_make -s -f confmf 2> /dev/null` in #(
  2811. *the\ am__doit\ target*)
  2812. am__include=.include
  2813. am__quote="\""
  2814. _am_result=BSD
  2815. ;;
  2816. esac
  2817. fi
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2819. $as_echo "$_am_result" >&6; }
  2820. rm -f confinc confmf
  2821. # Check whether --enable-dependency-tracking was given.
  2822. if test "${enable_dependency_tracking+set}" = set; then :
  2823. enableval=$enable_dependency_tracking;
  2824. fi
  2825. if test "x$enable_dependency_tracking" != xno; then
  2826. am_depcomp="$ac_aux_dir/depcomp"
  2827. AMDEPBACKSLASH='\'
  2828. fi
  2829. if test "x$enable_dependency_tracking" != xno; then
  2830. AMDEP_TRUE=
  2831. AMDEP_FALSE='#'
  2832. else
  2833. AMDEP_TRUE='#'
  2834. AMDEP_FALSE=
  2835. fi
  2836. ac_ext=c
  2837. ac_cpp='$CPP $CPPFLAGS'
  2838. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2839. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2840. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2841. if test -n "$ac_tool_prefix"; then
  2842. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2843. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2845. $as_echo_n "checking for $ac_word... " >&6; }
  2846. if test "${ac_cv_prog_CC+set}" = set; then :
  2847. $as_echo_n "(cached) " >&6
  2848. else
  2849. if test -n "$CC"; then
  2850. ac_cv_prog_CC="$CC" # Let the user override the test.
  2851. else
  2852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2853. for as_dir in $PATH
  2854. do
  2855. IFS=$as_save_IFS
  2856. test -z "$as_dir" && as_dir=.
  2857. for ac_exec_ext in '' $ac_executable_extensions; do
  2858. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2859. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2860. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2861. break 2
  2862. fi
  2863. done
  2864. done
  2865. IFS=$as_save_IFS
  2866. fi
  2867. fi
  2868. CC=$ac_cv_prog_CC
  2869. if test -n "$CC"; then
  2870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2871. $as_echo "$CC" >&6; }
  2872. else
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2874. $as_echo "no" >&6; }
  2875. fi
  2876. fi
  2877. if test -z "$ac_cv_prog_CC"; then
  2878. ac_ct_CC=$CC
  2879. # Extract the first word of "gcc", so it can be a program name with args.
  2880. set dummy gcc; ac_word=$2
  2881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2882. $as_echo_n "checking for $ac_word... " >&6; }
  2883. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2884. $as_echo_n "(cached) " >&6
  2885. else
  2886. if test -n "$ac_ct_CC"; then
  2887. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2888. else
  2889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2890. for as_dir in $PATH
  2891. do
  2892. IFS=$as_save_IFS
  2893. test -z "$as_dir" && as_dir=.
  2894. for ac_exec_ext in '' $ac_executable_extensions; do
  2895. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2896. ac_cv_prog_ac_ct_CC="gcc"
  2897. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2898. break 2
  2899. fi
  2900. done
  2901. done
  2902. IFS=$as_save_IFS
  2903. fi
  2904. fi
  2905. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2906. if test -n "$ac_ct_CC"; then
  2907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2908. $as_echo "$ac_ct_CC" >&6; }
  2909. else
  2910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2911. $as_echo "no" >&6; }
  2912. fi
  2913. if test "x$ac_ct_CC" = x; then
  2914. CC=""
  2915. else
  2916. case $cross_compiling:$ac_tool_warned in
  2917. yes:)
  2918. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2919. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2920. ac_tool_warned=yes ;;
  2921. esac
  2922. CC=$ac_ct_CC
  2923. fi
  2924. else
  2925. CC="$ac_cv_prog_CC"
  2926. fi
  2927. if test -z "$CC"; then
  2928. if test -n "$ac_tool_prefix"; then
  2929. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2930. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2931. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2932. $as_echo_n "checking for $ac_word... " >&6; }
  2933. if test "${ac_cv_prog_CC+set}" = set; then :
  2934. $as_echo_n "(cached) " >&6
  2935. else
  2936. if test -n "$CC"; then
  2937. ac_cv_prog_CC="$CC" # Let the user override the test.
  2938. else
  2939. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2940. for as_dir in $PATH
  2941. do
  2942. IFS=$as_save_IFS
  2943. test -z "$as_dir" && as_dir=.
  2944. for ac_exec_ext in '' $ac_executable_extensions; do
  2945. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2946. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2947. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2948. break 2
  2949. fi
  2950. done
  2951. done
  2952. IFS=$as_save_IFS
  2953. fi
  2954. fi
  2955. CC=$ac_cv_prog_CC
  2956. if test -n "$CC"; then
  2957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2958. $as_echo "$CC" >&6; }
  2959. else
  2960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2961. $as_echo "no" >&6; }
  2962. fi
  2963. fi
  2964. fi
  2965. if test -z "$CC"; then
  2966. # Extract the first word of "cc", so it can be a program name with args.
  2967. set dummy cc; ac_word=$2
  2968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2969. $as_echo_n "checking for $ac_word... " >&6; }
  2970. if test "${ac_cv_prog_CC+set}" = set; then :
  2971. $as_echo_n "(cached) " >&6
  2972. else
  2973. if test -n "$CC"; then
  2974. ac_cv_prog_CC="$CC" # Let the user override the test.
  2975. else
  2976. ac_prog_rejected=no
  2977. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2978. for as_dir in $PATH
  2979. do
  2980. IFS=$as_save_IFS
  2981. test -z "$as_dir" && as_dir=.
  2982. for ac_exec_ext in '' $ac_executable_extensions; do
  2983. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2984. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2985. ac_prog_rejected=yes
  2986. continue
  2987. fi
  2988. ac_cv_prog_CC="cc"
  2989. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2990. break 2
  2991. fi
  2992. done
  2993. done
  2994. IFS=$as_save_IFS
  2995. if test $ac_prog_rejected = yes; then
  2996. # We found a bogon in the path, so make sure we never use it.
  2997. set dummy $ac_cv_prog_CC
  2998. shift
  2999. if test $# != 0; then
  3000. # We chose a different compiler from the bogus one.
  3001. # However, it has the same basename, so the bogon will be chosen
  3002. # first if we set CC to just the basename; use the full file name.
  3003. shift
  3004. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3005. fi
  3006. fi
  3007. fi
  3008. fi
  3009. CC=$ac_cv_prog_CC
  3010. if test -n "$CC"; then
  3011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3012. $as_echo "$CC" >&6; }
  3013. else
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3015. $as_echo "no" >&6; }
  3016. fi
  3017. fi
  3018. if test -z "$CC"; then
  3019. if test -n "$ac_tool_prefix"; then
  3020. for ac_prog in cl.exe
  3021. do
  3022. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3023. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3025. $as_echo_n "checking for $ac_word... " >&6; }
  3026. if test "${ac_cv_prog_CC+set}" = set; then :
  3027. $as_echo_n "(cached) " >&6
  3028. else
  3029. if test -n "$CC"; then
  3030. ac_cv_prog_CC="$CC" # Let the user override the test.
  3031. else
  3032. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3033. for as_dir in $PATH
  3034. do
  3035. IFS=$as_save_IFS
  3036. test -z "$as_dir" && as_dir=.
  3037. for ac_exec_ext in '' $ac_executable_extensions; do
  3038. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3039. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3040. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3041. break 2
  3042. fi
  3043. done
  3044. done
  3045. IFS=$as_save_IFS
  3046. fi
  3047. fi
  3048. CC=$ac_cv_prog_CC
  3049. if test -n "$CC"; then
  3050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3051. $as_echo "$CC" >&6; }
  3052. else
  3053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3054. $as_echo "no" >&6; }
  3055. fi
  3056. test -n "$CC" && break
  3057. done
  3058. fi
  3059. if test -z "$CC"; then
  3060. ac_ct_CC=$CC
  3061. for ac_prog in cl.exe
  3062. do
  3063. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3064. set dummy $ac_prog; ac_word=$2
  3065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3066. $as_echo_n "checking for $ac_word... " >&6; }
  3067. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3068. $as_echo_n "(cached) " >&6
  3069. else
  3070. if test -n "$ac_ct_CC"; then
  3071. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3072. else
  3073. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3074. for as_dir in $PATH
  3075. do
  3076. IFS=$as_save_IFS
  3077. test -z "$as_dir" && as_dir=.
  3078. for ac_exec_ext in '' $ac_executable_extensions; do
  3079. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3080. ac_cv_prog_ac_ct_CC="$ac_prog"
  3081. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3082. break 2
  3083. fi
  3084. done
  3085. done
  3086. IFS=$as_save_IFS
  3087. fi
  3088. fi
  3089. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3090. if test -n "$ac_ct_CC"; then
  3091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3092. $as_echo "$ac_ct_CC" >&6; }
  3093. else
  3094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3095. $as_echo "no" >&6; }
  3096. fi
  3097. test -n "$ac_ct_CC" && break
  3098. done
  3099. if test "x$ac_ct_CC" = x; then
  3100. CC=""
  3101. else
  3102. case $cross_compiling:$ac_tool_warned in
  3103. yes:)
  3104. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3105. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3106. ac_tool_warned=yes ;;
  3107. esac
  3108. CC=$ac_ct_CC
  3109. fi
  3110. fi
  3111. fi
  3112. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3113. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3114. as_fn_error "no acceptable C compiler found in \$PATH
  3115. See \`config.log' for more details." "$LINENO" 5; }
  3116. # Provide some information about the compiler.
  3117. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3118. set X $ac_compile
  3119. ac_compiler=$2
  3120. for ac_option in --version -v -V -qversion; do
  3121. { { ac_try="$ac_compiler $ac_option >&5"
  3122. case "(($ac_try" in
  3123. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3124. *) ac_try_echo=$ac_try;;
  3125. esac
  3126. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3127. $as_echo "$ac_try_echo"; } >&5
  3128. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3129. ac_status=$?
  3130. if test -s conftest.err; then
  3131. sed '10a\
  3132. ... rest of stderr output deleted ...
  3133. 10q' conftest.err >conftest.er1
  3134. cat conftest.er1 >&5
  3135. rm -f conftest.er1 conftest.err
  3136. fi
  3137. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3138. test $ac_status = 0; }
  3139. done
  3140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3141. /* end confdefs.h. */
  3142. #include <stdio.h>
  3143. int
  3144. main ()
  3145. {
  3146. FILE *f = fopen ("conftest.out", "w");
  3147. return ferror (f) || fclose (f) != 0;
  3148. ;
  3149. return 0;
  3150. }
  3151. _ACEOF
  3152. ac_clean_files_save=$ac_clean_files
  3153. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  3154. # Try to create an executable without -o first, disregard a.out.
  3155. # It will help us diagnose broken compilers, and finding out an intuition
  3156. # of exeext.
  3157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3158. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3159. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3160. # The possible output files:
  3161. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3162. ac_rmfiles=
  3163. for ac_file in $ac_files
  3164. do
  3165. case $ac_file in
  3166. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3167. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3168. esac
  3169. done
  3170. rm -f $ac_rmfiles
  3171. if { { ac_try="$ac_link_default"
  3172. case "(($ac_try" in
  3173. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3174. *) ac_try_echo=$ac_try;;
  3175. esac
  3176. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3177. $as_echo "$ac_try_echo"; } >&5
  3178. (eval "$ac_link_default") 2>&5
  3179. ac_status=$?
  3180. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3181. test $ac_status = 0; }; then :
  3182. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3183. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3184. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3185. # so that the user can short-circuit this test for compilers unknown to
  3186. # Autoconf.
  3187. for ac_file in $ac_files ''
  3188. do
  3189. test -f "$ac_file" || continue
  3190. case $ac_file in
  3191. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3192. ;;
  3193. [ab].out )
  3194. # We found the default executable, but exeext='' is most
  3195. # certainly right.
  3196. break;;
  3197. *.* )
  3198. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3199. then :; else
  3200. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3201. fi
  3202. # We set ac_cv_exeext here because the later test for it is not
  3203. # safe: cross compilers may not add the suffix if given an `-o'
  3204. # argument, so we may need to know it at that point already.
  3205. # Even if this section looks crufty: it has the advantage of
  3206. # actually working.
  3207. break;;
  3208. * )
  3209. break;;
  3210. esac
  3211. done
  3212. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3213. else
  3214. ac_file=''
  3215. fi
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3217. $as_echo "$ac_file" >&6; }
  3218. if test -z "$ac_file"; then :
  3219. $as_echo "$as_me: failed program was:" >&5
  3220. sed 's/^/| /' conftest.$ac_ext >&5
  3221. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3222. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3223. { as_fn_set_status 77
  3224. as_fn_error "C compiler cannot create executables
  3225. See \`config.log' for more details." "$LINENO" 5; }; }
  3226. fi
  3227. ac_exeext=$ac_cv_exeext
  3228. # Check that the compiler produces executables we can run. If not, either
  3229. # the compiler is broken, or we cross compile.
  3230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3231. $as_echo_n "checking whether the C compiler works... " >&6; }
  3232. # If not cross compiling, check that we can run a simple program.
  3233. if test "$cross_compiling" != yes; then
  3234. if { ac_try='./$ac_file'
  3235. { { case "(($ac_try" in
  3236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3237. *) ac_try_echo=$ac_try;;
  3238. esac
  3239. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3240. $as_echo "$ac_try_echo"; } >&5
  3241. (eval "$ac_try") 2>&5
  3242. ac_status=$?
  3243. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3244. test $ac_status = 0; }; }; then
  3245. cross_compiling=no
  3246. else
  3247. if test "$cross_compiling" = maybe; then
  3248. cross_compiling=yes
  3249. else
  3250. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3251. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3252. as_fn_error "cannot run C compiled programs.
  3253. If you meant to cross compile, use \`--host'.
  3254. See \`config.log' for more details." "$LINENO" 5; }
  3255. fi
  3256. fi
  3257. fi
  3258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3259. $as_echo "yes" >&6; }
  3260. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3261. ac_clean_files=$ac_clean_files_save
  3262. # Check that the compiler produces executables we can run. If not, either
  3263. # the compiler is broken, or we cross compile.
  3264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3265. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3267. $as_echo "$cross_compiling" >&6; }
  3268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3269. $as_echo_n "checking for suffix of executables... " >&6; }
  3270. if { { ac_try="$ac_link"
  3271. case "(($ac_try" in
  3272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3273. *) ac_try_echo=$ac_try;;
  3274. esac
  3275. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3276. $as_echo "$ac_try_echo"; } >&5
  3277. (eval "$ac_link") 2>&5
  3278. ac_status=$?
  3279. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3280. test $ac_status = 0; }; then :
  3281. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3282. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3283. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3284. # `rm'.
  3285. for ac_file in conftest.exe conftest conftest.*; do
  3286. test -f "$ac_file" || continue
  3287. case $ac_file in
  3288. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3289. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3290. break;;
  3291. * ) break;;
  3292. esac
  3293. done
  3294. else
  3295. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3296. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3297. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3298. See \`config.log' for more details." "$LINENO" 5; }
  3299. fi
  3300. rm -f conftest$ac_cv_exeext
  3301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3302. $as_echo "$ac_cv_exeext" >&6; }
  3303. rm -f conftest.$ac_ext
  3304. EXEEXT=$ac_cv_exeext
  3305. ac_exeext=$EXEEXT
  3306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3307. $as_echo_n "checking for suffix of object files... " >&6; }
  3308. if test "${ac_cv_objext+set}" = set; then :
  3309. $as_echo_n "(cached) " >&6
  3310. else
  3311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3312. /* end confdefs.h. */
  3313. int
  3314. main ()
  3315. {
  3316. ;
  3317. return 0;
  3318. }
  3319. _ACEOF
  3320. rm -f conftest.o conftest.obj
  3321. if { { ac_try="$ac_compile"
  3322. case "(($ac_try" in
  3323. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3324. *) ac_try_echo=$ac_try;;
  3325. esac
  3326. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3327. $as_echo "$ac_try_echo"; } >&5
  3328. (eval "$ac_compile") 2>&5
  3329. ac_status=$?
  3330. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3331. test $ac_status = 0; }; then :
  3332. for ac_file in conftest.o conftest.obj conftest.*; do
  3333. test -f "$ac_file" || continue;
  3334. case $ac_file in
  3335. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3336. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3337. break;;
  3338. esac
  3339. done
  3340. else
  3341. $as_echo "$as_me: failed program was:" >&5
  3342. sed 's/^/| /' conftest.$ac_ext >&5
  3343. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3344. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3345. as_fn_error "cannot compute suffix of object files: cannot compile
  3346. See \`config.log' for more details." "$LINENO" 5; }
  3347. fi
  3348. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3349. fi
  3350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3351. $as_echo "$ac_cv_objext" >&6; }
  3352. OBJEXT=$ac_cv_objext
  3353. ac_objext=$OBJEXT
  3354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3355. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3356. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3357. $as_echo_n "(cached) " >&6
  3358. else
  3359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3360. /* end confdefs.h. */
  3361. int
  3362. main ()
  3363. {
  3364. #ifndef __GNUC__
  3365. choke me
  3366. #endif
  3367. ;
  3368. return 0;
  3369. }
  3370. _ACEOF
  3371. if ac_fn_c_try_compile "$LINENO"; then :
  3372. ac_compiler_gnu=yes
  3373. else
  3374. ac_compiler_gnu=no
  3375. fi
  3376. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3377. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3378. fi
  3379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3380. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3381. if test $ac_compiler_gnu = yes; then
  3382. GCC=yes
  3383. else
  3384. GCC=
  3385. fi
  3386. ac_test_CFLAGS=${CFLAGS+set}
  3387. ac_save_CFLAGS=$CFLAGS
  3388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3389. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3390. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3391. $as_echo_n "(cached) " >&6
  3392. else
  3393. ac_save_c_werror_flag=$ac_c_werror_flag
  3394. ac_c_werror_flag=yes
  3395. ac_cv_prog_cc_g=no
  3396. CFLAGS="-g"
  3397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3398. /* end confdefs.h. */
  3399. int
  3400. main ()
  3401. {
  3402. ;
  3403. return 0;
  3404. }
  3405. _ACEOF
  3406. if ac_fn_c_try_compile "$LINENO"; then :
  3407. ac_cv_prog_cc_g=yes
  3408. else
  3409. CFLAGS=""
  3410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3411. /* end confdefs.h. */
  3412. int
  3413. main ()
  3414. {
  3415. ;
  3416. return 0;
  3417. }
  3418. _ACEOF
  3419. if ac_fn_c_try_compile "$LINENO"; then :
  3420. else
  3421. ac_c_werror_flag=$ac_save_c_werror_flag
  3422. CFLAGS="-g"
  3423. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3424. /* end confdefs.h. */
  3425. int
  3426. main ()
  3427. {
  3428. ;
  3429. return 0;
  3430. }
  3431. _ACEOF
  3432. if ac_fn_c_try_compile "$LINENO"; then :
  3433. ac_cv_prog_cc_g=yes
  3434. fi
  3435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3436. fi
  3437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3438. fi
  3439. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3440. ac_c_werror_flag=$ac_save_c_werror_flag
  3441. fi
  3442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3443. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3444. if test "$ac_test_CFLAGS" = set; then
  3445. CFLAGS=$ac_save_CFLAGS
  3446. elif test $ac_cv_prog_cc_g = yes; then
  3447. if test "$GCC" = yes; then
  3448. CFLAGS="-g -O2"
  3449. else
  3450. CFLAGS="-g"
  3451. fi
  3452. else
  3453. if test "$GCC" = yes; then
  3454. CFLAGS="-O2"
  3455. else
  3456. CFLAGS=
  3457. fi
  3458. fi
  3459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3460. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3461. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3462. $as_echo_n "(cached) " >&6
  3463. else
  3464. ac_cv_prog_cc_c89=no
  3465. ac_save_CC=$CC
  3466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3467. /* end confdefs.h. */
  3468. #include <stdarg.h>
  3469. #include <stdio.h>
  3470. #include <sys/types.h>
  3471. #include <sys/stat.h>
  3472. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3473. struct buf { int x; };
  3474. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3475. static char *e (p, i)
  3476. char **p;
  3477. int i;
  3478. {
  3479. return p[i];
  3480. }
  3481. static char *f (char * (*g) (char **, int), char **p, ...)
  3482. {
  3483. char *s;
  3484. va_list v;
  3485. va_start (v,p);
  3486. s = g (p, va_arg (v,int));
  3487. va_end (v);
  3488. return s;
  3489. }
  3490. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3491. function prototypes and stuff, but not '\xHH' hex character constants.
  3492. These don't provoke an error unfortunately, instead are silently treated
  3493. as 'x'. The following induces an error, until -std is added to get
  3494. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3495. array size at least. It's necessary to write '\x00'==0 to get something
  3496. that's true only with -std. */
  3497. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3498. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3499. inside strings and character constants. */
  3500. #define FOO(x) 'x'
  3501. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3502. int test (int i, double x);
  3503. struct s1 {int (*f) (int a);};
  3504. struct s2 {int (*f) (double a);};
  3505. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3506. int argc;
  3507. char **argv;
  3508. int
  3509. main ()
  3510. {
  3511. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3512. ;
  3513. return 0;
  3514. }
  3515. _ACEOF
  3516. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3517. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3518. do
  3519. CC="$ac_save_CC $ac_arg"
  3520. if ac_fn_c_try_compile "$LINENO"; then :
  3521. ac_cv_prog_cc_c89=$ac_arg
  3522. fi
  3523. rm -f core conftest.err conftest.$ac_objext
  3524. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3525. done
  3526. rm -f conftest.$ac_ext
  3527. CC=$ac_save_CC
  3528. fi
  3529. # AC_CACHE_VAL
  3530. case "x$ac_cv_prog_cc_c89" in
  3531. x)
  3532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3533. $as_echo "none needed" >&6; } ;;
  3534. xno)
  3535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3536. $as_echo "unsupported" >&6; } ;;
  3537. *)
  3538. CC="$CC $ac_cv_prog_cc_c89"
  3539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3540. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3541. esac
  3542. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3543. fi
  3544. ac_ext=c
  3545. ac_cpp='$CPP $CPPFLAGS'
  3546. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3547. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3548. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3549. depcc="$CC" am_compiler_list=
  3550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3551. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3552. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3553. $as_echo_n "(cached) " >&6
  3554. else
  3555. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3556. # We make a subdir and do the tests there. Otherwise we can end up
  3557. # making bogus files that we don't know about and never remove. For
  3558. # instance it was reported that on HP-UX the gcc test will end up
  3559. # making a dummy file named `D' -- because `-MD' means `put the output
  3560. # in D'.
  3561. mkdir conftest.dir
  3562. # Copy depcomp to subdir because otherwise we won't find it if we're
  3563. # using a relative directory.
  3564. cp "$am_depcomp" conftest.dir
  3565. cd conftest.dir
  3566. # We will build objects and dependencies in a subdirectory because
  3567. # it helps to detect inapplicable dependency modes. For instance
  3568. # both Tru64's cc and ICC support -MD to output dependencies as a
  3569. # side effect of compilation, but ICC will put the dependencies in
  3570. # the current directory while Tru64 will put them in the object
  3571. # directory.
  3572. mkdir sub
  3573. am_cv_CC_dependencies_compiler_type=none
  3574. if test "$am_compiler_list" = ""; then
  3575. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3576. fi
  3577. am__universal=false
  3578. case " $depcc " in #(
  3579. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3580. esac
  3581. for depmode in $am_compiler_list; do
  3582. # Setup a source with many dependencies, because some compilers
  3583. # like to wrap large dependency lists on column 80 (with \), and
  3584. # we should not choose a depcomp mode which is confused by this.
  3585. #
  3586. # We need to recreate these files for each test, as the compiler may
  3587. # overwrite some of them when testing with obscure command lines.
  3588. # This happens at least with the AIX C compiler.
  3589. : > sub/conftest.c
  3590. for i in 1 2 3 4 5 6; do
  3591. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3592. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3593. # Solaris 8's {/usr,}/bin/sh.
  3594. touch sub/conftst$i.h
  3595. done
  3596. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3597. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3598. # mode. It turns out that the SunPro C++ compiler does not properly
  3599. # handle `-M -o', and we need to detect this. Also, some Intel
  3600. # versions had trouble with output in subdirs
  3601. am__obj=sub/conftest.${OBJEXT-o}
  3602. am__minus_obj="-o $am__obj"
  3603. case $depmode in
  3604. gcc)
  3605. # This depmode causes a compiler race in universal mode.
  3606. test "$am__universal" = false || continue
  3607. ;;
  3608. nosideeffect)
  3609. # after this tag, mechanisms are not by side-effect, so they'll
  3610. # only be used when explicitly requested
  3611. if test "x$enable_dependency_tracking" = xyes; then
  3612. continue
  3613. else
  3614. break
  3615. fi
  3616. ;;
  3617. msvisualcpp | msvcmsys)
  3618. # This compiler won't grok `-c -o', but also, the minuso test has
  3619. # not run yet. These depmodes are late enough in the game, and
  3620. # so weak that their functioning should not be impacted.
  3621. am__obj=conftest.${OBJEXT-o}
  3622. am__minus_obj=
  3623. ;;
  3624. none) break ;;
  3625. esac
  3626. if depmode=$depmode \
  3627. source=sub/conftest.c object=$am__obj \
  3628. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3629. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3630. >/dev/null 2>conftest.err &&
  3631. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3632. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3633. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3634. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3635. # icc doesn't choke on unknown options, it will just issue warnings
  3636. # or remarks (even with -Werror). So we grep stderr for any message
  3637. # that says an option was ignored or not supported.
  3638. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3639. # icc: Command line warning: ignoring option '-M'; no argument required
  3640. # The diagnosis changed in icc 8.0:
  3641. # icc: Command line remark: option '-MP' not supported
  3642. if (grep 'ignoring option' conftest.err ||
  3643. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3644. am_cv_CC_dependencies_compiler_type=$depmode
  3645. break
  3646. fi
  3647. fi
  3648. done
  3649. cd ..
  3650. rm -rf conftest.dir
  3651. else
  3652. am_cv_CC_dependencies_compiler_type=none
  3653. fi
  3654. fi
  3655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3656. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3657. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3658. if
  3659. test "x$enable_dependency_tracking" != xno \
  3660. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3661. am__fastdepCC_TRUE=
  3662. am__fastdepCC_FALSE='#'
  3663. else
  3664. am__fastdepCC_TRUE='#'
  3665. am__fastdepCC_FALSE=
  3666. fi
  3667. if test "x$CC" != xcc; then
  3668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  3669. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  3670. else
  3671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  3672. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  3673. fi
  3674. set dummy $CC; ac_cc=`$as_echo "$2" |
  3675. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3676. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
  3677. $as_echo_n "(cached) " >&6
  3678. else
  3679. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3680. /* end confdefs.h. */
  3681. int
  3682. main ()
  3683. {
  3684. ;
  3685. return 0;
  3686. }
  3687. _ACEOF
  3688. # Make sure it works both with $CC and with simple cc.
  3689. # We do the test twice because some compilers refuse to overwrite an
  3690. # existing .o file with -o, though they will create one.
  3691. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3692. rm -f conftest2.*
  3693. if { { case "(($ac_try" in
  3694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3695. *) ac_try_echo=$ac_try;;
  3696. esac
  3697. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3698. $as_echo "$ac_try_echo"; } >&5
  3699. (eval "$ac_try") 2>&5
  3700. ac_status=$?
  3701. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3702. test $ac_status = 0; } &&
  3703. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  3704. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3705. *) ac_try_echo=$ac_try;;
  3706. esac
  3707. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3708. $as_echo "$ac_try_echo"; } >&5
  3709. (eval "$ac_try") 2>&5
  3710. ac_status=$?
  3711. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3712. test $ac_status = 0; };
  3713. then
  3714. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3715. if test "x$CC" != xcc; then
  3716. # Test first that cc exists at all.
  3717. if { ac_try='cc -c conftest.$ac_ext >&5'
  3718. { { case "(($ac_try" in
  3719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3720. *) ac_try_echo=$ac_try;;
  3721. esac
  3722. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3723. $as_echo "$ac_try_echo"; } >&5
  3724. (eval "$ac_try") 2>&5
  3725. ac_status=$?
  3726. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3727. test $ac_status = 0; }; }; then
  3728. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3729. rm -f conftest2.*
  3730. if { { case "(($ac_try" in
  3731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3732. *) ac_try_echo=$ac_try;;
  3733. esac
  3734. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3735. $as_echo "$ac_try_echo"; } >&5
  3736. (eval "$ac_try") 2>&5
  3737. ac_status=$?
  3738. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3739. test $ac_status = 0; } &&
  3740. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  3741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3742. *) ac_try_echo=$ac_try;;
  3743. esac
  3744. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3745. $as_echo "$ac_try_echo"; } >&5
  3746. (eval "$ac_try") 2>&5
  3747. ac_status=$?
  3748. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3749. test $ac_status = 0; };
  3750. then
  3751. # cc works too.
  3752. :
  3753. else
  3754. # cc exists but doesn't like -o.
  3755. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3756. fi
  3757. fi
  3758. fi
  3759. else
  3760. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3761. fi
  3762. rm -f core conftest*
  3763. fi
  3764. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  3765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3766. $as_echo "yes" >&6; }
  3767. else
  3768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3769. $as_echo "no" >&6; }
  3770. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  3771. fi
  3772. # FIXME: we rely on the cache variable name because
  3773. # there is no other way.
  3774. set dummy $CC
  3775. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3776. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  3777. if test "$am_t" != yes; then
  3778. # Losing compiler, so override with the script.
  3779. # FIXME: It is wrong to rewrite CC.
  3780. # But if we don't then we get into trouble of one sort or another.
  3781. # A longer-term fix would be to have automake use am__CC in this case,
  3782. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3783. CC="$am_aux_dir/compile $CC"
  3784. fi
  3785. enable_win32_dll=yes
  3786. case $host in
  3787. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  3788. if test -n "$ac_tool_prefix"; then
  3789. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  3790. set dummy ${ac_tool_prefix}as; ac_word=$2
  3791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3792. $as_echo_n "checking for $ac_word... " >&6; }
  3793. if test "${ac_cv_prog_AS+set}" = set; then :
  3794. $as_echo_n "(cached) " >&6
  3795. else
  3796. if test -n "$AS"; then
  3797. ac_cv_prog_AS="$AS" # Let the user override the test.
  3798. else
  3799. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3800. for as_dir in $PATH
  3801. do
  3802. IFS=$as_save_IFS
  3803. test -z "$as_dir" && as_dir=.
  3804. for ac_exec_ext in '' $ac_executable_extensions; do
  3805. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3806. ac_cv_prog_AS="${ac_tool_prefix}as"
  3807. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3808. break 2
  3809. fi
  3810. done
  3811. done
  3812. IFS=$as_save_IFS
  3813. fi
  3814. fi
  3815. AS=$ac_cv_prog_AS
  3816. if test -n "$AS"; then
  3817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  3818. $as_echo "$AS" >&6; }
  3819. else
  3820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3821. $as_echo "no" >&6; }
  3822. fi
  3823. fi
  3824. if test -z "$ac_cv_prog_AS"; then
  3825. ac_ct_AS=$AS
  3826. # Extract the first word of "as", so it can be a program name with args.
  3827. set dummy as; ac_word=$2
  3828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3829. $as_echo_n "checking for $ac_word... " >&6; }
  3830. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
  3831. $as_echo_n "(cached) " >&6
  3832. else
  3833. if test -n "$ac_ct_AS"; then
  3834. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  3835. else
  3836. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3837. for as_dir in $PATH
  3838. do
  3839. IFS=$as_save_IFS
  3840. test -z "$as_dir" && as_dir=.
  3841. for ac_exec_ext in '' $ac_executable_extensions; do
  3842. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3843. ac_cv_prog_ac_ct_AS="as"
  3844. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3845. break 2
  3846. fi
  3847. done
  3848. done
  3849. IFS=$as_save_IFS
  3850. fi
  3851. fi
  3852. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  3853. if test -n "$ac_ct_AS"; then
  3854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  3855. $as_echo "$ac_ct_AS" >&6; }
  3856. else
  3857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3858. $as_echo "no" >&6; }
  3859. fi
  3860. if test "x$ac_ct_AS" = x; then
  3861. AS="false"
  3862. else
  3863. case $cross_compiling:$ac_tool_warned in
  3864. yes:)
  3865. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3866. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3867. ac_tool_warned=yes ;;
  3868. esac
  3869. AS=$ac_ct_AS
  3870. fi
  3871. else
  3872. AS="$ac_cv_prog_AS"
  3873. fi
  3874. if test -n "$ac_tool_prefix"; then
  3875. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  3876. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  3877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3878. $as_echo_n "checking for $ac_word... " >&6; }
  3879. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  3880. $as_echo_n "(cached) " >&6
  3881. else
  3882. if test -n "$DLLTOOL"; then
  3883. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  3884. else
  3885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3886. for as_dir in $PATH
  3887. do
  3888. IFS=$as_save_IFS
  3889. test -z "$as_dir" && as_dir=.
  3890. for ac_exec_ext in '' $ac_executable_extensions; do
  3891. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3892. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  3893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3894. break 2
  3895. fi
  3896. done
  3897. done
  3898. IFS=$as_save_IFS
  3899. fi
  3900. fi
  3901. DLLTOOL=$ac_cv_prog_DLLTOOL
  3902. if test -n "$DLLTOOL"; then
  3903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  3904. $as_echo "$DLLTOOL" >&6; }
  3905. else
  3906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3907. $as_echo "no" >&6; }
  3908. fi
  3909. fi
  3910. if test -z "$ac_cv_prog_DLLTOOL"; then
  3911. ac_ct_DLLTOOL=$DLLTOOL
  3912. # Extract the first word of "dlltool", so it can be a program name with args.
  3913. set dummy dlltool; ac_word=$2
  3914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3915. $as_echo_n "checking for $ac_word... " >&6; }
  3916. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
  3917. $as_echo_n "(cached) " >&6
  3918. else
  3919. if test -n "$ac_ct_DLLTOOL"; then
  3920. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  3921. else
  3922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3923. for as_dir in $PATH
  3924. do
  3925. IFS=$as_save_IFS
  3926. test -z "$as_dir" && as_dir=.
  3927. for ac_exec_ext in '' $ac_executable_extensions; do
  3928. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3929. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  3930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3931. break 2
  3932. fi
  3933. done
  3934. done
  3935. IFS=$as_save_IFS
  3936. fi
  3937. fi
  3938. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  3939. if test -n "$ac_ct_DLLTOOL"; then
  3940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  3941. $as_echo "$ac_ct_DLLTOOL" >&6; }
  3942. else
  3943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3944. $as_echo "no" >&6; }
  3945. fi
  3946. if test "x$ac_ct_DLLTOOL" = x; then
  3947. DLLTOOL="false"
  3948. else
  3949. case $cross_compiling:$ac_tool_warned in
  3950. yes:)
  3951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3952. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3953. ac_tool_warned=yes ;;
  3954. esac
  3955. DLLTOOL=$ac_ct_DLLTOOL
  3956. fi
  3957. else
  3958. DLLTOOL="$ac_cv_prog_DLLTOOL"
  3959. fi
  3960. if test -n "$ac_tool_prefix"; then
  3961. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  3962. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  3963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3964. $as_echo_n "checking for $ac_word... " >&6; }
  3965. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  3966. $as_echo_n "(cached) " >&6
  3967. else
  3968. if test -n "$OBJDUMP"; then
  3969. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  3970. else
  3971. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3972. for as_dir in $PATH
  3973. do
  3974. IFS=$as_save_IFS
  3975. test -z "$as_dir" && as_dir=.
  3976. for ac_exec_ext in '' $ac_executable_extensions; do
  3977. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3978. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  3979. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3980. break 2
  3981. fi
  3982. done
  3983. done
  3984. IFS=$as_save_IFS
  3985. fi
  3986. fi
  3987. OBJDUMP=$ac_cv_prog_OBJDUMP
  3988. if test -n "$OBJDUMP"; then
  3989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  3990. $as_echo "$OBJDUMP" >&6; }
  3991. else
  3992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3993. $as_echo "no" >&6; }
  3994. fi
  3995. fi
  3996. if test -z "$ac_cv_prog_OBJDUMP"; then
  3997. ac_ct_OBJDUMP=$OBJDUMP
  3998. # Extract the first word of "objdump", so it can be a program name with args.
  3999. set dummy objdump; ac_word=$2
  4000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4001. $as_echo_n "checking for $ac_word... " >&6; }
  4002. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4003. $as_echo_n "(cached) " >&6
  4004. else
  4005. if test -n "$ac_ct_OBJDUMP"; then
  4006. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4007. else
  4008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4009. for as_dir in $PATH
  4010. do
  4011. IFS=$as_save_IFS
  4012. test -z "$as_dir" && as_dir=.
  4013. for ac_exec_ext in '' $ac_executable_extensions; do
  4014. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4015. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4016. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4017. break 2
  4018. fi
  4019. done
  4020. done
  4021. IFS=$as_save_IFS
  4022. fi
  4023. fi
  4024. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4025. if test -n "$ac_ct_OBJDUMP"; then
  4026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4027. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4028. else
  4029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4030. $as_echo "no" >&6; }
  4031. fi
  4032. if test "x$ac_ct_OBJDUMP" = x; then
  4033. OBJDUMP="false"
  4034. else
  4035. case $cross_compiling:$ac_tool_warned in
  4036. yes:)
  4037. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4038. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4039. ac_tool_warned=yes ;;
  4040. esac
  4041. OBJDUMP=$ac_ct_OBJDUMP
  4042. fi
  4043. else
  4044. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4045. fi
  4046. ;;
  4047. esac
  4048. test -z "$AS" && AS=as
  4049. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4050. test -z "$OBJDUMP" && OBJDUMP=objdump
  4051. case `pwd` in
  4052. *\ * | *\ *)
  4053. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4054. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4055. esac
  4056. macro_version='2.2.6'
  4057. macro_revision='1.3012'
  4058. ltmain="$ac_aux_dir/ltmain.sh"
  4059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4060. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4061. if test "${ac_cv_path_SED+set}" = set; then :
  4062. $as_echo_n "(cached) " >&6
  4063. else
  4064. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4065. for ac_i in 1 2 3 4 5 6 7; do
  4066. ac_script="$ac_script$as_nl$ac_script"
  4067. done
  4068. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4069. { ac_script=; unset ac_script;}
  4070. if test -z "$SED"; then
  4071. ac_path_SED_found=false
  4072. # Loop through the user's path and test for each of PROGNAME-LIST
  4073. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4074. for as_dir in $PATH
  4075. do
  4076. IFS=$as_save_IFS
  4077. test -z "$as_dir" && as_dir=.
  4078. for ac_prog in sed gsed; do
  4079. for ac_exec_ext in '' $ac_executable_extensions; do
  4080. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4081. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4082. # Check for GNU ac_path_SED and select it if it is found.
  4083. # Check for GNU $ac_path_SED
  4084. case `"$ac_path_SED" --version 2>&1` in
  4085. *GNU*)
  4086. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4087. *)
  4088. ac_count=0
  4089. $as_echo_n 0123456789 >"conftest.in"
  4090. while :
  4091. do
  4092. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4093. mv "conftest.tmp" "conftest.in"
  4094. cp "conftest.in" "conftest.nl"
  4095. $as_echo '' >> "conftest.nl"
  4096. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4097. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4098. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4099. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4100. # Best one so far, save it but keep looking for a better one
  4101. ac_cv_path_SED="$ac_path_SED"
  4102. ac_path_SED_max=$ac_count
  4103. fi
  4104. # 10*(2^10) chars as input seems more than enough
  4105. test $ac_count -gt 10 && break
  4106. done
  4107. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4108. esac
  4109. $ac_path_SED_found && break 3
  4110. done
  4111. done
  4112. done
  4113. IFS=$as_save_IFS
  4114. if test -z "$ac_cv_path_SED"; then
  4115. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4116. fi
  4117. else
  4118. ac_cv_path_SED=$SED
  4119. fi
  4120. fi
  4121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4122. $as_echo "$ac_cv_path_SED" >&6; }
  4123. SED="$ac_cv_path_SED"
  4124. rm -f conftest.sed
  4125. test -z "$SED" && SED=sed
  4126. Xsed="$SED -e 1s/^X//"
  4127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4128. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4129. if test "${ac_cv_path_GREP+set}" = set; then :
  4130. $as_echo_n "(cached) " >&6
  4131. else
  4132. if test -z "$GREP"; then
  4133. ac_path_GREP_found=false
  4134. # Loop through the user's path and test for each of PROGNAME-LIST
  4135. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4136. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4137. do
  4138. IFS=$as_save_IFS
  4139. test -z "$as_dir" && as_dir=.
  4140. for ac_prog in grep ggrep; do
  4141. for ac_exec_ext in '' $ac_executable_extensions; do
  4142. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4143. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4144. # Check for GNU ac_path_GREP and select it if it is found.
  4145. # Check for GNU $ac_path_GREP
  4146. case `"$ac_path_GREP" --version 2>&1` in
  4147. *GNU*)
  4148. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4149. *)
  4150. ac_count=0
  4151. $as_echo_n 0123456789 >"conftest.in"
  4152. while :
  4153. do
  4154. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4155. mv "conftest.tmp" "conftest.in"
  4156. cp "conftest.in" "conftest.nl"
  4157. $as_echo 'GREP' >> "conftest.nl"
  4158. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4159. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4160. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4161. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4162. # Best one so far, save it but keep looking for a better one
  4163. ac_cv_path_GREP="$ac_path_GREP"
  4164. ac_path_GREP_max=$ac_count
  4165. fi
  4166. # 10*(2^10) chars as input seems more than enough
  4167. test $ac_count -gt 10 && break
  4168. done
  4169. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4170. esac
  4171. $ac_path_GREP_found && break 3
  4172. done
  4173. done
  4174. done
  4175. IFS=$as_save_IFS
  4176. if test -z "$ac_cv_path_GREP"; then
  4177. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4178. fi
  4179. else
  4180. ac_cv_path_GREP=$GREP
  4181. fi
  4182. fi
  4183. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4184. $as_echo "$ac_cv_path_GREP" >&6; }
  4185. GREP="$ac_cv_path_GREP"
  4186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4187. $as_echo_n "checking for egrep... " >&6; }
  4188. if test "${ac_cv_path_EGREP+set}" = set; then :
  4189. $as_echo_n "(cached) " >&6
  4190. else
  4191. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4192. then ac_cv_path_EGREP="$GREP -E"
  4193. else
  4194. if test -z "$EGREP"; then
  4195. ac_path_EGREP_found=false
  4196. # Loop through the user's path and test for each of PROGNAME-LIST
  4197. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4198. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4199. do
  4200. IFS=$as_save_IFS
  4201. test -z "$as_dir" && as_dir=.
  4202. for ac_prog in egrep; do
  4203. for ac_exec_ext in '' $ac_executable_extensions; do
  4204. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4205. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4206. # Check for GNU ac_path_EGREP and select it if it is found.
  4207. # Check for GNU $ac_path_EGREP
  4208. case `"$ac_path_EGREP" --version 2>&1` in
  4209. *GNU*)
  4210. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4211. *)
  4212. ac_count=0
  4213. $as_echo_n 0123456789 >"conftest.in"
  4214. while :
  4215. do
  4216. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4217. mv "conftest.tmp" "conftest.in"
  4218. cp "conftest.in" "conftest.nl"
  4219. $as_echo 'EGREP' >> "conftest.nl"
  4220. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4221. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4222. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4223. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4224. # Best one so far, save it but keep looking for a better one
  4225. ac_cv_path_EGREP="$ac_path_EGREP"
  4226. ac_path_EGREP_max=$ac_count
  4227. fi
  4228. # 10*(2^10) chars as input seems more than enough
  4229. test $ac_count -gt 10 && break
  4230. done
  4231. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4232. esac
  4233. $ac_path_EGREP_found && break 3
  4234. done
  4235. done
  4236. done
  4237. IFS=$as_save_IFS
  4238. if test -z "$ac_cv_path_EGREP"; then
  4239. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4240. fi
  4241. else
  4242. ac_cv_path_EGREP=$EGREP
  4243. fi
  4244. fi
  4245. fi
  4246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4247. $as_echo "$ac_cv_path_EGREP" >&6; }
  4248. EGREP="$ac_cv_path_EGREP"
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4250. $as_echo_n "checking for fgrep... " >&6; }
  4251. if test "${ac_cv_path_FGREP+set}" = set; then :
  4252. $as_echo_n "(cached) " >&6
  4253. else
  4254. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4255. then ac_cv_path_FGREP="$GREP -F"
  4256. else
  4257. if test -z "$FGREP"; then
  4258. ac_path_FGREP_found=false
  4259. # Loop through the user's path and test for each of PROGNAME-LIST
  4260. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4261. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4262. do
  4263. IFS=$as_save_IFS
  4264. test -z "$as_dir" && as_dir=.
  4265. for ac_prog in fgrep; do
  4266. for ac_exec_ext in '' $ac_executable_extensions; do
  4267. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4268. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4269. # Check for GNU ac_path_FGREP and select it if it is found.
  4270. # Check for GNU $ac_path_FGREP
  4271. case `"$ac_path_FGREP" --version 2>&1` in
  4272. *GNU*)
  4273. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4274. *)
  4275. ac_count=0
  4276. $as_echo_n 0123456789 >"conftest.in"
  4277. while :
  4278. do
  4279. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4280. mv "conftest.tmp" "conftest.in"
  4281. cp "conftest.in" "conftest.nl"
  4282. $as_echo 'FGREP' >> "conftest.nl"
  4283. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4284. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4285. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4286. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4287. # Best one so far, save it but keep looking for a better one
  4288. ac_cv_path_FGREP="$ac_path_FGREP"
  4289. ac_path_FGREP_max=$ac_count
  4290. fi
  4291. # 10*(2^10) chars as input seems more than enough
  4292. test $ac_count -gt 10 && break
  4293. done
  4294. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4295. esac
  4296. $ac_path_FGREP_found && break 3
  4297. done
  4298. done
  4299. done
  4300. IFS=$as_save_IFS
  4301. if test -z "$ac_cv_path_FGREP"; then
  4302. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4303. fi
  4304. else
  4305. ac_cv_path_FGREP=$FGREP
  4306. fi
  4307. fi
  4308. fi
  4309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4310. $as_echo "$ac_cv_path_FGREP" >&6; }
  4311. FGREP="$ac_cv_path_FGREP"
  4312. test -z "$GREP" && GREP=grep
  4313. # Check whether --with-gnu-ld was given.
  4314. if test "${with_gnu_ld+set}" = set; then :
  4315. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4316. else
  4317. with_gnu_ld=no
  4318. fi
  4319. ac_prog=ld
  4320. if test "$GCC" = yes; then
  4321. # Check if gcc -print-prog-name=ld gives a path.
  4322. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4323. $as_echo_n "checking for ld used by $CC... " >&6; }
  4324. case $host in
  4325. *-*-mingw*)
  4326. # gcc leaves a trailing carriage return which upsets mingw
  4327. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4328. *)
  4329. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4330. esac
  4331. case $ac_prog in
  4332. # Accept absolute paths.
  4333. [\\/]* | ?:[\\/]*)
  4334. re_direlt='/[^/][^/]*/\.\./'
  4335. # Canonicalize the pathname of ld
  4336. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4337. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4338. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4339. done
  4340. test -z "$LD" && LD="$ac_prog"
  4341. ;;
  4342. "")
  4343. # If it fails, then pretend we aren't using GCC.
  4344. ac_prog=ld
  4345. ;;
  4346. *)
  4347. # If it is relative, then search for the first ld in PATH.
  4348. with_gnu_ld=unknown
  4349. ;;
  4350. esac
  4351. elif test "$with_gnu_ld" = yes; then
  4352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4353. $as_echo_n "checking for GNU ld... " >&6; }
  4354. else
  4355. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4356. $as_echo_n "checking for non-GNU ld... " >&6; }
  4357. fi
  4358. if test "${lt_cv_path_LD+set}" = set; then :
  4359. $as_echo_n "(cached) " >&6
  4360. else
  4361. if test -z "$LD"; then
  4362. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4363. for ac_dir in $PATH; do
  4364. IFS="$lt_save_ifs"
  4365. test -z "$ac_dir" && ac_dir=.
  4366. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4367. lt_cv_path_LD="$ac_dir/$ac_prog"
  4368. # Check to see if the program is GNU ld. I'd rather use --version,
  4369. # but apparently some variants of GNU ld only accept -v.
  4370. # Break only if it was the GNU/non-GNU ld that we prefer.
  4371. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4372. *GNU* | *'with BFD'*)
  4373. test "$with_gnu_ld" != no && break
  4374. ;;
  4375. *)
  4376. test "$with_gnu_ld" != yes && break
  4377. ;;
  4378. esac
  4379. fi
  4380. done
  4381. IFS="$lt_save_ifs"
  4382. else
  4383. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4384. fi
  4385. fi
  4386. LD="$lt_cv_path_LD"
  4387. if test -n "$LD"; then
  4388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4389. $as_echo "$LD" >&6; }
  4390. else
  4391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4392. $as_echo "no" >&6; }
  4393. fi
  4394. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4396. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4397. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4398. $as_echo_n "(cached) " >&6
  4399. else
  4400. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4401. case `$LD -v 2>&1 </dev/null` in
  4402. *GNU* | *'with BFD'*)
  4403. lt_cv_prog_gnu_ld=yes
  4404. ;;
  4405. *)
  4406. lt_cv_prog_gnu_ld=no
  4407. ;;
  4408. esac
  4409. fi
  4410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4411. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4412. with_gnu_ld=$lt_cv_prog_gnu_ld
  4413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4414. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4415. if test "${lt_cv_path_NM+set}" = set; then :
  4416. $as_echo_n "(cached) " >&6
  4417. else
  4418. if test -n "$NM"; then
  4419. # Let the user override the test.
  4420. lt_cv_path_NM="$NM"
  4421. else
  4422. lt_nm_to_check="${ac_tool_prefix}nm"
  4423. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4424. lt_nm_to_check="$lt_nm_to_check nm"
  4425. fi
  4426. for lt_tmp_nm in $lt_nm_to_check; do
  4427. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4428. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4429. IFS="$lt_save_ifs"
  4430. test -z "$ac_dir" && ac_dir=.
  4431. tmp_nm="$ac_dir/$lt_tmp_nm"
  4432. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4433. # Check to see if the nm accepts a BSD-compat flag.
  4434. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4435. # nm: unknown option "B" ignored
  4436. # Tru64's nm complains that /dev/null is an invalid object file
  4437. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4438. */dev/null* | *'Invalid file or object type'*)
  4439. lt_cv_path_NM="$tmp_nm -B"
  4440. break
  4441. ;;
  4442. *)
  4443. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4444. */dev/null*)
  4445. lt_cv_path_NM="$tmp_nm -p"
  4446. break
  4447. ;;
  4448. *)
  4449. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4450. continue # so that we can try to find one that supports BSD flags
  4451. ;;
  4452. esac
  4453. ;;
  4454. esac
  4455. fi
  4456. done
  4457. IFS="$lt_save_ifs"
  4458. done
  4459. : ${lt_cv_path_NM=no}
  4460. fi
  4461. fi
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4463. $as_echo "$lt_cv_path_NM" >&6; }
  4464. if test "$lt_cv_path_NM" != "no"; then
  4465. NM="$lt_cv_path_NM"
  4466. else
  4467. # Didn't find any BSD compatible name lister, look for dumpbin.
  4468. if test -n "$ac_tool_prefix"; then
  4469. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4470. do
  4471. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4472. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4474. $as_echo_n "checking for $ac_word... " >&6; }
  4475. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4476. $as_echo_n "(cached) " >&6
  4477. else
  4478. if test -n "$DUMPBIN"; then
  4479. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4480. else
  4481. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4482. for as_dir in $PATH
  4483. do
  4484. IFS=$as_save_IFS
  4485. test -z "$as_dir" && as_dir=.
  4486. for ac_exec_ext in '' $ac_executable_extensions; do
  4487. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4488. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4489. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4490. break 2
  4491. fi
  4492. done
  4493. done
  4494. IFS=$as_save_IFS
  4495. fi
  4496. fi
  4497. DUMPBIN=$ac_cv_prog_DUMPBIN
  4498. if test -n "$DUMPBIN"; then
  4499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4500. $as_echo "$DUMPBIN" >&6; }
  4501. else
  4502. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4503. $as_echo "no" >&6; }
  4504. fi
  4505. test -n "$DUMPBIN" && break
  4506. done
  4507. fi
  4508. if test -z "$DUMPBIN"; then
  4509. ac_ct_DUMPBIN=$DUMPBIN
  4510. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4511. do
  4512. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4513. set dummy $ac_prog; ac_word=$2
  4514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4515. $as_echo_n "checking for $ac_word... " >&6; }
  4516. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4517. $as_echo_n "(cached) " >&6
  4518. else
  4519. if test -n "$ac_ct_DUMPBIN"; then
  4520. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4521. else
  4522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4523. for as_dir in $PATH
  4524. do
  4525. IFS=$as_save_IFS
  4526. test -z "$as_dir" && as_dir=.
  4527. for ac_exec_ext in '' $ac_executable_extensions; do
  4528. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4529. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4530. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4531. break 2
  4532. fi
  4533. done
  4534. done
  4535. IFS=$as_save_IFS
  4536. fi
  4537. fi
  4538. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4539. if test -n "$ac_ct_DUMPBIN"; then
  4540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4541. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4542. else
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4544. $as_echo "no" >&6; }
  4545. fi
  4546. test -n "$ac_ct_DUMPBIN" && break
  4547. done
  4548. if test "x$ac_ct_DUMPBIN" = x; then
  4549. DUMPBIN=":"
  4550. else
  4551. case $cross_compiling:$ac_tool_warned in
  4552. yes:)
  4553. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4554. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4555. ac_tool_warned=yes ;;
  4556. esac
  4557. DUMPBIN=$ac_ct_DUMPBIN
  4558. fi
  4559. fi
  4560. if test "$DUMPBIN" != ":"; then
  4561. NM="$DUMPBIN"
  4562. fi
  4563. fi
  4564. test -z "$NM" && NM=nm
  4565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4566. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4567. if test "${lt_cv_nm_interface+set}" = set; then :
  4568. $as_echo_n "(cached) " >&6
  4569. else
  4570. lt_cv_nm_interface="BSD nm"
  4571. echo "int some_variable = 0;" > conftest.$ac_ext
  4572. (eval echo "\"\$as_me:5082: $ac_compile\"" >&5)
  4573. (eval "$ac_compile" 2>conftest.err)
  4574. cat conftest.err >&5
  4575. (eval echo "\"\$as_me:5085: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4576. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4577. cat conftest.err >&5
  4578. (eval echo "\"\$as_me:5088: output\"" >&5)
  4579. cat conftest.out >&5
  4580. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4581. lt_cv_nm_interface="MS dumpbin"
  4582. fi
  4583. rm -f conftest*
  4584. fi
  4585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4586. $as_echo "$lt_cv_nm_interface" >&6; }
  4587. # find the maximum length of command line arguments
  4588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4589. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4590. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4591. $as_echo_n "(cached) " >&6
  4592. else
  4593. i=0
  4594. teststring="ABCD"
  4595. case $build_os in
  4596. msdosdjgpp*)
  4597. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4598. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4599. # during glob expansion). Even if it were fixed, the result of this
  4600. # check would be larger than it should be.
  4601. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4602. ;;
  4603. gnu*)
  4604. # Under GNU Hurd, this test is not required because there is
  4605. # no limit to the length of command line arguments.
  4606. # Libtool will interpret -1 as no limit whatsoever
  4607. lt_cv_sys_max_cmd_len=-1;
  4608. ;;
  4609. cygwin* | mingw* | cegcc*)
  4610. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4611. # about 5 minutes as the teststring grows exponentially.
  4612. # Worse, since 9x/ME are not pre-emptively multitasking,
  4613. # you end up with a "frozen" computer, even though with patience
  4614. # the test eventually succeeds (with a max line length of 256k).
  4615. # Instead, let's just punt: use the minimum linelength reported by
  4616. # all of the supported platforms: 8192 (on NT/2K/XP).
  4617. lt_cv_sys_max_cmd_len=8192;
  4618. ;;
  4619. amigaos*)
  4620. # On AmigaOS with pdksh, this test takes hours, literally.
  4621. # So we just punt and use a minimum line length of 8192.
  4622. lt_cv_sys_max_cmd_len=8192;
  4623. ;;
  4624. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4625. # This has been around since 386BSD, at least. Likely further.
  4626. if test -x /sbin/sysctl; then
  4627. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4628. elif test -x /usr/sbin/sysctl; then
  4629. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4630. else
  4631. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4632. fi
  4633. # And add a safety zone
  4634. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4635. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4636. ;;
  4637. interix*)
  4638. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4639. lt_cv_sys_max_cmd_len=196608
  4640. ;;
  4641. osf*)
  4642. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4643. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4644. # nice to cause kernel panics so lets avoid the loop below.
  4645. # First set a reasonable default.
  4646. lt_cv_sys_max_cmd_len=16384
  4647. #
  4648. if test -x /sbin/sysconfig; then
  4649. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4650. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4651. esac
  4652. fi
  4653. ;;
  4654. sco3.2v5*)
  4655. lt_cv_sys_max_cmd_len=102400
  4656. ;;
  4657. sysv5* | sco5v6* | sysv4.2uw2*)
  4658. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4659. if test -n "$kargmax"; then
  4660. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4661. else
  4662. lt_cv_sys_max_cmd_len=32768
  4663. fi
  4664. ;;
  4665. *)
  4666. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4667. if test -n "$lt_cv_sys_max_cmd_len"; then
  4668. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4669. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4670. else
  4671. # Make teststring a little bigger before we do anything with it.
  4672. # a 1K string should be a reasonable start.
  4673. for i in 1 2 3 4 5 6 7 8 ; do
  4674. teststring=$teststring$teststring
  4675. done
  4676. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4677. # If test is not a shell built-in, we'll probably end up computing a
  4678. # maximum length that is only half of the actual maximum length, but
  4679. # we can't tell.
  4680. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4681. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4682. test $i != 17 # 1/2 MB should be enough
  4683. do
  4684. i=`expr $i + 1`
  4685. teststring=$teststring$teststring
  4686. done
  4687. # Only check the string length outside the loop.
  4688. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4689. teststring=
  4690. # Add a significant safety factor because C++ compilers can tack on
  4691. # massive amounts of additional arguments before passing them to the
  4692. # linker. It appears as though 1/2 is a usable value.
  4693. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4694. fi
  4695. ;;
  4696. esac
  4697. fi
  4698. if test -n $lt_cv_sys_max_cmd_len ; then
  4699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4700. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4701. else
  4702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4703. $as_echo "none" >&6; }
  4704. fi
  4705. max_cmd_len=$lt_cv_sys_max_cmd_len
  4706. : ${CP="cp -f"}
  4707. : ${MV="mv -f"}
  4708. : ${RM="rm -f"}
  4709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4710. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4711. # Try some XSI features
  4712. xsi_shell=no
  4713. ( _lt_dummy="a/b/c"
  4714. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4715. = c,a/b,, \
  4716. && eval 'test $(( 1 + 1 )) -eq 2 \
  4717. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4718. && xsi_shell=yes
  4719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4720. $as_echo "$xsi_shell" >&6; }
  4721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4722. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4723. lt_shell_append=no
  4724. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4725. >/dev/null 2>&1 \
  4726. && lt_shell_append=yes
  4727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4728. $as_echo "$lt_shell_append" >&6; }
  4729. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4730. lt_unset=unset
  4731. else
  4732. lt_unset=false
  4733. fi
  4734. # test EBCDIC or ASCII
  4735. case `echo X|tr X '\101'` in
  4736. A) # ASCII based system
  4737. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4738. lt_SP2NL='tr \040 \012'
  4739. lt_NL2SP='tr \015\012 \040\040'
  4740. ;;
  4741. *) # EBCDIC based system
  4742. lt_SP2NL='tr \100 \n'
  4743. lt_NL2SP='tr \r\n \100\100'
  4744. ;;
  4745. esac
  4746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4747. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4748. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4749. $as_echo_n "(cached) " >&6
  4750. else
  4751. lt_cv_ld_reload_flag='-r'
  4752. fi
  4753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4754. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4755. reload_flag=$lt_cv_ld_reload_flag
  4756. case $reload_flag in
  4757. "" | " "*) ;;
  4758. *) reload_flag=" $reload_flag" ;;
  4759. esac
  4760. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4761. case $host_os in
  4762. darwin*)
  4763. if test "$GCC" = yes; then
  4764. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4765. else
  4766. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4767. fi
  4768. ;;
  4769. esac
  4770. if test -n "$ac_tool_prefix"; then
  4771. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4772. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4774. $as_echo_n "checking for $ac_word... " >&6; }
  4775. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4776. $as_echo_n "(cached) " >&6
  4777. else
  4778. if test -n "$OBJDUMP"; then
  4779. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4780. else
  4781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4782. for as_dir in $PATH
  4783. do
  4784. IFS=$as_save_IFS
  4785. test -z "$as_dir" && as_dir=.
  4786. for ac_exec_ext in '' $ac_executable_extensions; do
  4787. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4788. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4789. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4790. break 2
  4791. fi
  4792. done
  4793. done
  4794. IFS=$as_save_IFS
  4795. fi
  4796. fi
  4797. OBJDUMP=$ac_cv_prog_OBJDUMP
  4798. if test -n "$OBJDUMP"; then
  4799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4800. $as_echo "$OBJDUMP" >&6; }
  4801. else
  4802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4803. $as_echo "no" >&6; }
  4804. fi
  4805. fi
  4806. if test -z "$ac_cv_prog_OBJDUMP"; then
  4807. ac_ct_OBJDUMP=$OBJDUMP
  4808. # Extract the first word of "objdump", so it can be a program name with args.
  4809. set dummy objdump; ac_word=$2
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4811. $as_echo_n "checking for $ac_word... " >&6; }
  4812. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4813. $as_echo_n "(cached) " >&6
  4814. else
  4815. if test -n "$ac_ct_OBJDUMP"; then
  4816. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4817. else
  4818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4819. for as_dir in $PATH
  4820. do
  4821. IFS=$as_save_IFS
  4822. test -z "$as_dir" && as_dir=.
  4823. for ac_exec_ext in '' $ac_executable_extensions; do
  4824. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4825. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4826. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4827. break 2
  4828. fi
  4829. done
  4830. done
  4831. IFS=$as_save_IFS
  4832. fi
  4833. fi
  4834. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4835. if test -n "$ac_ct_OBJDUMP"; then
  4836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4837. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4838. else
  4839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4840. $as_echo "no" >&6; }
  4841. fi
  4842. if test "x$ac_ct_OBJDUMP" = x; then
  4843. OBJDUMP="false"
  4844. else
  4845. case $cross_compiling:$ac_tool_warned in
  4846. yes:)
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4848. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4849. ac_tool_warned=yes ;;
  4850. esac
  4851. OBJDUMP=$ac_ct_OBJDUMP
  4852. fi
  4853. else
  4854. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4855. fi
  4856. test -z "$OBJDUMP" && OBJDUMP=objdump
  4857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4858. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4859. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4860. $as_echo_n "(cached) " >&6
  4861. else
  4862. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4863. lt_cv_file_magic_test_file=
  4864. lt_cv_deplibs_check_method='unknown'
  4865. # Need to set the preceding variable on all platforms that support
  4866. # interlibrary dependencies.
  4867. # 'none' -- dependencies not supported.
  4868. # `unknown' -- same as none, but documents that we really don't know.
  4869. # 'pass_all' -- all dependencies passed with no checks.
  4870. # 'test_compile' -- check by making test program.
  4871. # 'file_magic [[regex]]' -- check by looking for files in library path
  4872. # which responds to the $file_magic_cmd with a given extended regex.
  4873. # If you have `file' or equivalent on your system and you're not sure
  4874. # whether `pass_all' will *always* work, you probably want this one.
  4875. case $host_os in
  4876. aix[4-9]*)
  4877. lt_cv_deplibs_check_method=pass_all
  4878. ;;
  4879. beos*)
  4880. lt_cv_deplibs_check_method=pass_all
  4881. ;;
  4882. bsdi[45]*)
  4883. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4884. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4885. lt_cv_file_magic_test_file=/shlib/libc.so
  4886. ;;
  4887. cygwin*)
  4888. # func_win32_libid is a shell function defined in ltmain.sh
  4889. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4890. lt_cv_file_magic_cmd='func_win32_libid'
  4891. ;;
  4892. mingw* | pw32*)
  4893. # Base MSYS/MinGW do not provide the 'file' command needed by
  4894. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4895. # unless we find 'file', for example because we are cross-compiling.
  4896. if ( file / ) >/dev/null 2>&1; then
  4897. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4898. lt_cv_file_magic_cmd='func_win32_libid'
  4899. else
  4900. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4901. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4902. fi
  4903. ;;
  4904. cegcc)
  4905. # use the weaker test based on 'objdump'. See mingw*.
  4906. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4907. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4908. ;;
  4909. darwin* | rhapsody*)
  4910. lt_cv_deplibs_check_method=pass_all
  4911. ;;
  4912. freebsd* | dragonfly*)
  4913. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4914. case $host_cpu in
  4915. i*86 )
  4916. # Not sure whether the presence of OpenBSD here was a mistake.
  4917. # Let's accept both of them until this is cleared up.
  4918. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4919. lt_cv_file_magic_cmd=/usr/bin/file
  4920. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4921. ;;
  4922. esac
  4923. else
  4924. lt_cv_deplibs_check_method=pass_all
  4925. fi
  4926. ;;
  4927. gnu*)
  4928. lt_cv_deplibs_check_method=pass_all
  4929. ;;
  4930. hpux10.20* | hpux11*)
  4931. lt_cv_file_magic_cmd=/usr/bin/file
  4932. case $host_cpu in
  4933. ia64*)
  4934. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4935. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4936. ;;
  4937. hppa*64*)
  4938. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  4939. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4940. ;;
  4941. *)
  4942. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4943. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4944. ;;
  4945. esac
  4946. ;;
  4947. interix[3-9]*)
  4948. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4949. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4950. ;;
  4951. irix5* | irix6* | nonstopux*)
  4952. case $LD in
  4953. *-32|*"-32 ") libmagic=32-bit;;
  4954. *-n32|*"-n32 ") libmagic=N32;;
  4955. *-64|*"-64 ") libmagic=64-bit;;
  4956. *) libmagic=never-match;;
  4957. esac
  4958. lt_cv_deplibs_check_method=pass_all
  4959. ;;
  4960. # This must be Linux ELF.
  4961. linux* | k*bsd*-gnu)
  4962. lt_cv_deplibs_check_method=pass_all
  4963. ;;
  4964. netbsd* | netbsdelf*-gnu)
  4965. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4966. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4967. else
  4968. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4969. fi
  4970. ;;
  4971. newos6*)
  4972. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4973. lt_cv_file_magic_cmd=/usr/bin/file
  4974. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4975. ;;
  4976. *nto* | *qnx*)
  4977. lt_cv_deplibs_check_method=pass_all
  4978. ;;
  4979. openbsd*)
  4980. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4981. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4982. else
  4983. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4984. fi
  4985. ;;
  4986. osf3* | osf4* | osf5*)
  4987. lt_cv_deplibs_check_method=pass_all
  4988. ;;
  4989. rdos*)
  4990. lt_cv_deplibs_check_method=pass_all
  4991. ;;
  4992. solaris*)
  4993. lt_cv_deplibs_check_method=pass_all
  4994. ;;
  4995. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4996. lt_cv_deplibs_check_method=pass_all
  4997. ;;
  4998. sysv4 | sysv4.3*)
  4999. case $host_vendor in
  5000. motorola)
  5001. 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]'
  5002. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5003. ;;
  5004. ncr)
  5005. lt_cv_deplibs_check_method=pass_all
  5006. ;;
  5007. sequent)
  5008. lt_cv_file_magic_cmd='/bin/file'
  5009. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5010. ;;
  5011. sni)
  5012. lt_cv_file_magic_cmd='/bin/file'
  5013. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5014. lt_cv_file_magic_test_file=/lib/libc.so
  5015. ;;
  5016. siemens)
  5017. lt_cv_deplibs_check_method=pass_all
  5018. ;;
  5019. pc)
  5020. lt_cv_deplibs_check_method=pass_all
  5021. ;;
  5022. esac
  5023. ;;
  5024. tpf*)
  5025. lt_cv_deplibs_check_method=pass_all
  5026. ;;
  5027. esac
  5028. fi
  5029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5030. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5031. file_magic_cmd=$lt_cv_file_magic_cmd
  5032. deplibs_check_method=$lt_cv_deplibs_check_method
  5033. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5034. if test -n "$ac_tool_prefix"; then
  5035. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5036. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5038. $as_echo_n "checking for $ac_word... " >&6; }
  5039. if test "${ac_cv_prog_AR+set}" = set; then :
  5040. $as_echo_n "(cached) " >&6
  5041. else
  5042. if test -n "$AR"; then
  5043. ac_cv_prog_AR="$AR" # Let the user override the test.
  5044. else
  5045. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5046. for as_dir in $PATH
  5047. do
  5048. IFS=$as_save_IFS
  5049. test -z "$as_dir" && as_dir=.
  5050. for ac_exec_ext in '' $ac_executable_extensions; do
  5051. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5052. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5053. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5054. break 2
  5055. fi
  5056. done
  5057. done
  5058. IFS=$as_save_IFS
  5059. fi
  5060. fi
  5061. AR=$ac_cv_prog_AR
  5062. if test -n "$AR"; then
  5063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5064. $as_echo "$AR" >&6; }
  5065. else
  5066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5067. $as_echo "no" >&6; }
  5068. fi
  5069. fi
  5070. if test -z "$ac_cv_prog_AR"; then
  5071. ac_ct_AR=$AR
  5072. # Extract the first word of "ar", so it can be a program name with args.
  5073. set dummy ar; ac_word=$2
  5074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5075. $as_echo_n "checking for $ac_word... " >&6; }
  5076. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5077. $as_echo_n "(cached) " >&6
  5078. else
  5079. if test -n "$ac_ct_AR"; then
  5080. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5081. else
  5082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5083. for as_dir in $PATH
  5084. do
  5085. IFS=$as_save_IFS
  5086. test -z "$as_dir" && as_dir=.
  5087. for ac_exec_ext in '' $ac_executable_extensions; do
  5088. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5089. ac_cv_prog_ac_ct_AR="ar"
  5090. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5091. break 2
  5092. fi
  5093. done
  5094. done
  5095. IFS=$as_save_IFS
  5096. fi
  5097. fi
  5098. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5099. if test -n "$ac_ct_AR"; then
  5100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5101. $as_echo "$ac_ct_AR" >&6; }
  5102. else
  5103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5104. $as_echo "no" >&6; }
  5105. fi
  5106. if test "x$ac_ct_AR" = x; then
  5107. AR="false"
  5108. else
  5109. case $cross_compiling:$ac_tool_warned in
  5110. yes:)
  5111. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5112. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5113. ac_tool_warned=yes ;;
  5114. esac
  5115. AR=$ac_ct_AR
  5116. fi
  5117. else
  5118. AR="$ac_cv_prog_AR"
  5119. fi
  5120. test -z "$AR" && AR=ar
  5121. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5122. if test -n "$ac_tool_prefix"; then
  5123. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5124. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5126. $as_echo_n "checking for $ac_word... " >&6; }
  5127. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5128. $as_echo_n "(cached) " >&6
  5129. else
  5130. if test -n "$STRIP"; then
  5131. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5132. else
  5133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5134. for as_dir in $PATH
  5135. do
  5136. IFS=$as_save_IFS
  5137. test -z "$as_dir" && as_dir=.
  5138. for ac_exec_ext in '' $ac_executable_extensions; do
  5139. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5140. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5141. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5142. break 2
  5143. fi
  5144. done
  5145. done
  5146. IFS=$as_save_IFS
  5147. fi
  5148. fi
  5149. STRIP=$ac_cv_prog_STRIP
  5150. if test -n "$STRIP"; then
  5151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5152. $as_echo "$STRIP" >&6; }
  5153. else
  5154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5155. $as_echo "no" >&6; }
  5156. fi
  5157. fi
  5158. if test -z "$ac_cv_prog_STRIP"; then
  5159. ac_ct_STRIP=$STRIP
  5160. # Extract the first word of "strip", so it can be a program name with args.
  5161. set dummy strip; ac_word=$2
  5162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5163. $as_echo_n "checking for $ac_word... " >&6; }
  5164. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5165. $as_echo_n "(cached) " >&6
  5166. else
  5167. if test -n "$ac_ct_STRIP"; then
  5168. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5169. else
  5170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5171. for as_dir in $PATH
  5172. do
  5173. IFS=$as_save_IFS
  5174. test -z "$as_dir" && as_dir=.
  5175. for ac_exec_ext in '' $ac_executable_extensions; do
  5176. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5177. ac_cv_prog_ac_ct_STRIP="strip"
  5178. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5179. break 2
  5180. fi
  5181. done
  5182. done
  5183. IFS=$as_save_IFS
  5184. fi
  5185. fi
  5186. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5187. if test -n "$ac_ct_STRIP"; then
  5188. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5189. $as_echo "$ac_ct_STRIP" >&6; }
  5190. else
  5191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5192. $as_echo "no" >&6; }
  5193. fi
  5194. if test "x$ac_ct_STRIP" = x; then
  5195. STRIP=":"
  5196. else
  5197. case $cross_compiling:$ac_tool_warned in
  5198. yes:)
  5199. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5200. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5201. ac_tool_warned=yes ;;
  5202. esac
  5203. STRIP=$ac_ct_STRIP
  5204. fi
  5205. else
  5206. STRIP="$ac_cv_prog_STRIP"
  5207. fi
  5208. test -z "$STRIP" && STRIP=:
  5209. if test -n "$ac_tool_prefix"; then
  5210. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5211. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5213. $as_echo_n "checking for $ac_word... " >&6; }
  5214. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5215. $as_echo_n "(cached) " >&6
  5216. else
  5217. if test -n "$RANLIB"; then
  5218. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5219. else
  5220. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5221. for as_dir in $PATH
  5222. do
  5223. IFS=$as_save_IFS
  5224. test -z "$as_dir" && as_dir=.
  5225. for ac_exec_ext in '' $ac_executable_extensions; do
  5226. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5227. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5228. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5229. break 2
  5230. fi
  5231. done
  5232. done
  5233. IFS=$as_save_IFS
  5234. fi
  5235. fi
  5236. RANLIB=$ac_cv_prog_RANLIB
  5237. if test -n "$RANLIB"; then
  5238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5239. $as_echo "$RANLIB" >&6; }
  5240. else
  5241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5242. $as_echo "no" >&6; }
  5243. fi
  5244. fi
  5245. if test -z "$ac_cv_prog_RANLIB"; then
  5246. ac_ct_RANLIB=$RANLIB
  5247. # Extract the first word of "ranlib", so it can be a program name with args.
  5248. set dummy ranlib; ac_word=$2
  5249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5250. $as_echo_n "checking for $ac_word... " >&6; }
  5251. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5252. $as_echo_n "(cached) " >&6
  5253. else
  5254. if test -n "$ac_ct_RANLIB"; then
  5255. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5256. else
  5257. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5258. for as_dir in $PATH
  5259. do
  5260. IFS=$as_save_IFS
  5261. test -z "$as_dir" && as_dir=.
  5262. for ac_exec_ext in '' $ac_executable_extensions; do
  5263. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5264. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5265. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5266. break 2
  5267. fi
  5268. done
  5269. done
  5270. IFS=$as_save_IFS
  5271. fi
  5272. fi
  5273. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5274. if test -n "$ac_ct_RANLIB"; then
  5275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5276. $as_echo "$ac_ct_RANLIB" >&6; }
  5277. else
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5279. $as_echo "no" >&6; }
  5280. fi
  5281. if test "x$ac_ct_RANLIB" = x; then
  5282. RANLIB=":"
  5283. else
  5284. case $cross_compiling:$ac_tool_warned in
  5285. yes:)
  5286. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5287. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5288. ac_tool_warned=yes ;;
  5289. esac
  5290. RANLIB=$ac_ct_RANLIB
  5291. fi
  5292. else
  5293. RANLIB="$ac_cv_prog_RANLIB"
  5294. fi
  5295. test -z "$RANLIB" && RANLIB=:
  5296. # Determine commands to create old-style static archives.
  5297. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5298. old_postinstall_cmds='chmod 644 $oldlib'
  5299. old_postuninstall_cmds=
  5300. if test -n "$RANLIB"; then
  5301. case $host_os in
  5302. openbsd*)
  5303. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5304. ;;
  5305. *)
  5306. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5307. ;;
  5308. esac
  5309. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5310. fi
  5311. # If no C compiler was specified, use CC.
  5312. LTCC=${LTCC-"$CC"}
  5313. # If no C compiler flags were specified, use CFLAGS.
  5314. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5315. # Allow CC to be a program name with arguments.
  5316. compiler=$CC
  5317. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5318. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5319. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5320. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5321. $as_echo_n "(cached) " >&6
  5322. else
  5323. # These are sane defaults that work on at least a few old systems.
  5324. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5325. # Character class describing NM global symbol codes.
  5326. symcode='[BCDEGRST]'
  5327. # Regexp to match symbols that can be accessed directly from C.
  5328. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5329. # Define system-specific variables.
  5330. case $host_os in
  5331. aix*)
  5332. symcode='[BCDT]'
  5333. ;;
  5334. cygwin* | mingw* | pw32* | cegcc*)
  5335. symcode='[ABCDGISTW]'
  5336. ;;
  5337. hpux*)
  5338. if test "$host_cpu" = ia64; then
  5339. symcode='[ABCDEGRST]'
  5340. fi
  5341. ;;
  5342. irix* | nonstopux*)
  5343. symcode='[BCDEGRST]'
  5344. ;;
  5345. osf*)
  5346. symcode='[BCDEGQRST]'
  5347. ;;
  5348. solaris*)
  5349. symcode='[BDRT]'
  5350. ;;
  5351. sco3.2v5*)
  5352. symcode='[DT]'
  5353. ;;
  5354. sysv4.2uw2*)
  5355. symcode='[DT]'
  5356. ;;
  5357. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5358. symcode='[ABDT]'
  5359. ;;
  5360. sysv4)
  5361. symcode='[DFNSTU]'
  5362. ;;
  5363. esac
  5364. # If we're using GNU nm, then use its standard symbol codes.
  5365. case `$NM -V 2>&1` in
  5366. *GNU* | *'with BFD'*)
  5367. symcode='[ABCDGIRSTW]' ;;
  5368. esac
  5369. # Transform an extracted symbol line into a proper C declaration.
  5370. # Some systems (esp. on ia64) link data and code symbols differently,
  5371. # so use this general approach.
  5372. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5373. # Transform an extracted symbol line into symbol name and symbol address
  5374. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5375. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5376. # Handle CRLF in mingw tool chain
  5377. opt_cr=
  5378. case $build_os in
  5379. mingw*)
  5380. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5381. ;;
  5382. esac
  5383. # Try without a prefix underscore, then with it.
  5384. for ac_symprfx in "" "_"; do
  5385. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5386. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5387. # Write the raw and C identifiers.
  5388. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5389. # Fake it for dumpbin and say T for any non-static function
  5390. # and D for any global variable.
  5391. # Also find C++ and __fastcall symbols from MSVC++,
  5392. # which start with @ or ?.
  5393. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5394. " {last_section=section; section=\$ 3};"\
  5395. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5396. " \$ 0!~/External *\|/{next};"\
  5397. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5398. " {if(hide[section]) next};"\
  5399. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5400. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5401. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5402. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5403. " ' prfx=^$ac_symprfx"
  5404. else
  5405. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5406. fi
  5407. # Check to see that the pipe works correctly.
  5408. pipe_works=no
  5409. rm -f conftest*
  5410. cat > conftest.$ac_ext <<_LT_EOF
  5411. #ifdef __cplusplus
  5412. extern "C" {
  5413. #endif
  5414. char nm_test_var;
  5415. void nm_test_func(void);
  5416. void nm_test_func(void){}
  5417. #ifdef __cplusplus
  5418. }
  5419. #endif
  5420. int main(){nm_test_var='a';nm_test_func();return(0);}
  5421. _LT_EOF
  5422. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5423. (eval $ac_compile) 2>&5
  5424. ac_status=$?
  5425. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5426. test $ac_status = 0; }; then
  5427. # Now try to grab the symbols.
  5428. nlist=conftest.nm
  5429. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  5430. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5431. ac_status=$?
  5432. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5433. test $ac_status = 0; } && test -s "$nlist"; then
  5434. # Try sorting and uniquifying the output.
  5435. if sort "$nlist" | uniq > "$nlist"T; then
  5436. mv -f "$nlist"T "$nlist"
  5437. else
  5438. rm -f "$nlist"T
  5439. fi
  5440. # Make sure that we snagged all the symbols we need.
  5441. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5442. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5443. cat <<_LT_EOF > conftest.$ac_ext
  5444. #ifdef __cplusplus
  5445. extern "C" {
  5446. #endif
  5447. _LT_EOF
  5448. # Now generate the symbol file.
  5449. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5450. cat <<_LT_EOF >> conftest.$ac_ext
  5451. /* The mapping between symbol names and symbols. */
  5452. const struct {
  5453. const char *name;
  5454. void *address;
  5455. }
  5456. lt__PROGRAM__LTX_preloaded_symbols[] =
  5457. {
  5458. { "@PROGRAM@", (void *) 0 },
  5459. _LT_EOF
  5460. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5461. cat <<\_LT_EOF >> conftest.$ac_ext
  5462. {0, (void *) 0}
  5463. };
  5464. /* This works around a problem in FreeBSD linker */
  5465. #ifdef FREEBSD_WORKAROUND
  5466. static const void *lt_preloaded_setup() {
  5467. return lt__PROGRAM__LTX_preloaded_symbols;
  5468. }
  5469. #endif
  5470. #ifdef __cplusplus
  5471. }
  5472. #endif
  5473. _LT_EOF
  5474. # Now try linking the two files.
  5475. mv conftest.$ac_objext conftstm.$ac_objext
  5476. lt_save_LIBS="$LIBS"
  5477. lt_save_CFLAGS="$CFLAGS"
  5478. LIBS="conftstm.$ac_objext"
  5479. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5480. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5481. (eval $ac_link) 2>&5
  5482. ac_status=$?
  5483. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5484. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5485. pipe_works=yes
  5486. fi
  5487. LIBS="$lt_save_LIBS"
  5488. CFLAGS="$lt_save_CFLAGS"
  5489. else
  5490. echo "cannot find nm_test_func in $nlist" >&5
  5491. fi
  5492. else
  5493. echo "cannot find nm_test_var in $nlist" >&5
  5494. fi
  5495. else
  5496. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5497. fi
  5498. else
  5499. echo "$progname: failed program was:" >&5
  5500. cat conftest.$ac_ext >&5
  5501. fi
  5502. rm -rf conftest* conftst*
  5503. # Do not use the global_symbol_pipe unless it works.
  5504. if test "$pipe_works" = yes; then
  5505. break
  5506. else
  5507. lt_cv_sys_global_symbol_pipe=
  5508. fi
  5509. done
  5510. fi
  5511. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5512. lt_cv_sys_global_symbol_to_cdecl=
  5513. fi
  5514. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5516. $as_echo "failed" >&6; }
  5517. else
  5518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5519. $as_echo "ok" >&6; }
  5520. fi
  5521. # Check whether --enable-libtool-lock was given.
  5522. if test "${enable_libtool_lock+set}" = set; then :
  5523. enableval=$enable_libtool_lock;
  5524. fi
  5525. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5526. # Some flags need to be propagated to the compiler or linker for good
  5527. # libtool support.
  5528. case $host in
  5529. ia64-*-hpux*)
  5530. # Find out which ABI we are using.
  5531. echo 'int i;' > conftest.$ac_ext
  5532. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5533. (eval $ac_compile) 2>&5
  5534. ac_status=$?
  5535. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5536. test $ac_status = 0; }; then
  5537. case `/usr/bin/file conftest.$ac_objext` in
  5538. *ELF-32*)
  5539. HPUX_IA64_MODE="32"
  5540. ;;
  5541. *ELF-64*)
  5542. HPUX_IA64_MODE="64"
  5543. ;;
  5544. esac
  5545. fi
  5546. rm -rf conftest*
  5547. ;;
  5548. *-*-irix6*)
  5549. # Find out which ABI we are using.
  5550. echo '#line 6280 "configure"' > conftest.$ac_ext
  5551. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5552. (eval $ac_compile) 2>&5
  5553. ac_status=$?
  5554. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5555. test $ac_status = 0; }; then
  5556. if test "$lt_cv_prog_gnu_ld" = yes; then
  5557. case `/usr/bin/file conftest.$ac_objext` in
  5558. *32-bit*)
  5559. LD="${LD-ld} -melf32bsmip"
  5560. ;;
  5561. *N32*)
  5562. LD="${LD-ld} -melf32bmipn32"
  5563. ;;
  5564. *64-bit*)
  5565. LD="${LD-ld} -melf64bmip"
  5566. ;;
  5567. esac
  5568. else
  5569. case `/usr/bin/file conftest.$ac_objext` in
  5570. *32-bit*)
  5571. LD="${LD-ld} -32"
  5572. ;;
  5573. *N32*)
  5574. LD="${LD-ld} -n32"
  5575. ;;
  5576. *64-bit*)
  5577. LD="${LD-ld} -64"
  5578. ;;
  5579. esac
  5580. fi
  5581. fi
  5582. rm -rf conftest*
  5583. ;;
  5584. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5585. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5586. # Find out which ABI we are using.
  5587. echo 'int i;' > conftest.$ac_ext
  5588. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5589. (eval $ac_compile) 2>&5
  5590. ac_status=$?
  5591. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5592. test $ac_status = 0; }; then
  5593. case `/usr/bin/file conftest.o` in
  5594. *32-bit*)
  5595. case $host in
  5596. x86_64-*kfreebsd*-gnu)
  5597. LD="${LD-ld} -m elf_i386_fbsd"
  5598. ;;
  5599. x86_64-*linux*)
  5600. LD="${LD-ld} -m elf_i386"
  5601. ;;
  5602. ppc64-*linux*|powerpc64-*linux*)
  5603. LD="${LD-ld} -m elf32ppclinux"
  5604. ;;
  5605. s390x-*linux*)
  5606. LD="${LD-ld} -m elf_s390"
  5607. ;;
  5608. sparc64-*linux*)
  5609. LD="${LD-ld} -m elf32_sparc"
  5610. ;;
  5611. esac
  5612. ;;
  5613. *64-bit*)
  5614. case $host in
  5615. x86_64-*kfreebsd*-gnu)
  5616. LD="${LD-ld} -m elf_x86_64_fbsd"
  5617. ;;
  5618. x86_64-*linux*)
  5619. LD="${LD-ld} -m elf_x86_64"
  5620. ;;
  5621. ppc*-*linux*|powerpc*-*linux*)
  5622. LD="${LD-ld} -m elf64ppc"
  5623. ;;
  5624. s390*-*linux*|s390*-*tpf*)
  5625. LD="${LD-ld} -m elf64_s390"
  5626. ;;
  5627. sparc*-*linux*)
  5628. LD="${LD-ld} -m elf64_sparc"
  5629. ;;
  5630. esac
  5631. ;;
  5632. esac
  5633. fi
  5634. rm -rf conftest*
  5635. ;;
  5636. *-*-sco3.2v5*)
  5637. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5638. SAVE_CFLAGS="$CFLAGS"
  5639. CFLAGS="$CFLAGS -belf"
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5641. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5642. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5643. $as_echo_n "(cached) " >&6
  5644. else
  5645. ac_ext=c
  5646. ac_cpp='$CPP $CPPFLAGS'
  5647. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5648. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5649. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5651. /* end confdefs.h. */
  5652. int
  5653. main ()
  5654. {
  5655. ;
  5656. return 0;
  5657. }
  5658. _ACEOF
  5659. if ac_fn_c_try_link "$LINENO"; then :
  5660. lt_cv_cc_needs_belf=yes
  5661. else
  5662. lt_cv_cc_needs_belf=no
  5663. fi
  5664. rm -f core conftest.err conftest.$ac_objext \
  5665. conftest$ac_exeext conftest.$ac_ext
  5666. ac_ext=c
  5667. ac_cpp='$CPP $CPPFLAGS'
  5668. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5669. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5670. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5671. fi
  5672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5673. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5674. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5675. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5676. CFLAGS="$SAVE_CFLAGS"
  5677. fi
  5678. ;;
  5679. sparc*-*solaris*)
  5680. # Find out which ABI we are using.
  5681. echo 'int i;' > conftest.$ac_ext
  5682. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5683. (eval $ac_compile) 2>&5
  5684. ac_status=$?
  5685. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5686. test $ac_status = 0; }; then
  5687. case `/usr/bin/file conftest.o` in
  5688. *64-bit*)
  5689. case $lt_cv_prog_gnu_ld in
  5690. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5691. *)
  5692. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5693. LD="${LD-ld} -64"
  5694. fi
  5695. ;;
  5696. esac
  5697. ;;
  5698. esac
  5699. fi
  5700. rm -rf conftest*
  5701. ;;
  5702. esac
  5703. need_locks="$enable_libtool_lock"
  5704. case $host_os in
  5705. rhapsody* | darwin*)
  5706. if test -n "$ac_tool_prefix"; then
  5707. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5708. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5710. $as_echo_n "checking for $ac_word... " >&6; }
  5711. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5712. $as_echo_n "(cached) " >&6
  5713. else
  5714. if test -n "$DSYMUTIL"; then
  5715. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5716. else
  5717. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5718. for as_dir in $PATH
  5719. do
  5720. IFS=$as_save_IFS
  5721. test -z "$as_dir" && as_dir=.
  5722. for ac_exec_ext in '' $ac_executable_extensions; do
  5723. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5724. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5725. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5726. break 2
  5727. fi
  5728. done
  5729. done
  5730. IFS=$as_save_IFS
  5731. fi
  5732. fi
  5733. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5734. if test -n "$DSYMUTIL"; then
  5735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5736. $as_echo "$DSYMUTIL" >&6; }
  5737. else
  5738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5739. $as_echo "no" >&6; }
  5740. fi
  5741. fi
  5742. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5743. ac_ct_DSYMUTIL=$DSYMUTIL
  5744. # Extract the first word of "dsymutil", so it can be a program name with args.
  5745. set dummy dsymutil; ac_word=$2
  5746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5747. $as_echo_n "checking for $ac_word... " >&6; }
  5748. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5749. $as_echo_n "(cached) " >&6
  5750. else
  5751. if test -n "$ac_ct_DSYMUTIL"; then
  5752. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5753. else
  5754. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5755. for as_dir in $PATH
  5756. do
  5757. IFS=$as_save_IFS
  5758. test -z "$as_dir" && as_dir=.
  5759. for ac_exec_ext in '' $ac_executable_extensions; do
  5760. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5761. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5762. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5763. break 2
  5764. fi
  5765. done
  5766. done
  5767. IFS=$as_save_IFS
  5768. fi
  5769. fi
  5770. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5771. if test -n "$ac_ct_DSYMUTIL"; then
  5772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5773. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5774. else
  5775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5776. $as_echo "no" >&6; }
  5777. fi
  5778. if test "x$ac_ct_DSYMUTIL" = x; then
  5779. DSYMUTIL=":"
  5780. else
  5781. case $cross_compiling:$ac_tool_warned in
  5782. yes:)
  5783. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5784. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5785. ac_tool_warned=yes ;;
  5786. esac
  5787. DSYMUTIL=$ac_ct_DSYMUTIL
  5788. fi
  5789. else
  5790. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5791. fi
  5792. if test -n "$ac_tool_prefix"; then
  5793. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5794. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5796. $as_echo_n "checking for $ac_word... " >&6; }
  5797. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5798. $as_echo_n "(cached) " >&6
  5799. else
  5800. if test -n "$NMEDIT"; then
  5801. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5802. else
  5803. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5804. for as_dir in $PATH
  5805. do
  5806. IFS=$as_save_IFS
  5807. test -z "$as_dir" && as_dir=.
  5808. for ac_exec_ext in '' $ac_executable_extensions; do
  5809. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5810. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5811. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5812. break 2
  5813. fi
  5814. done
  5815. done
  5816. IFS=$as_save_IFS
  5817. fi
  5818. fi
  5819. NMEDIT=$ac_cv_prog_NMEDIT
  5820. if test -n "$NMEDIT"; then
  5821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5822. $as_echo "$NMEDIT" >&6; }
  5823. else
  5824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5825. $as_echo "no" >&6; }
  5826. fi
  5827. fi
  5828. if test -z "$ac_cv_prog_NMEDIT"; then
  5829. ac_ct_NMEDIT=$NMEDIT
  5830. # Extract the first word of "nmedit", so it can be a program name with args.
  5831. set dummy nmedit; ac_word=$2
  5832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5833. $as_echo_n "checking for $ac_word... " >&6; }
  5834. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5835. $as_echo_n "(cached) " >&6
  5836. else
  5837. if test -n "$ac_ct_NMEDIT"; then
  5838. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5839. else
  5840. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5841. for as_dir in $PATH
  5842. do
  5843. IFS=$as_save_IFS
  5844. test -z "$as_dir" && as_dir=.
  5845. for ac_exec_ext in '' $ac_executable_extensions; do
  5846. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5847. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5848. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5849. break 2
  5850. fi
  5851. done
  5852. done
  5853. IFS=$as_save_IFS
  5854. fi
  5855. fi
  5856. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5857. if test -n "$ac_ct_NMEDIT"; then
  5858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5859. $as_echo "$ac_ct_NMEDIT" >&6; }
  5860. else
  5861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5862. $as_echo "no" >&6; }
  5863. fi
  5864. if test "x$ac_ct_NMEDIT" = x; then
  5865. NMEDIT=":"
  5866. else
  5867. case $cross_compiling:$ac_tool_warned in
  5868. yes:)
  5869. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5870. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5871. ac_tool_warned=yes ;;
  5872. esac
  5873. NMEDIT=$ac_ct_NMEDIT
  5874. fi
  5875. else
  5876. NMEDIT="$ac_cv_prog_NMEDIT"
  5877. fi
  5878. if test -n "$ac_tool_prefix"; then
  5879. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5880. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5882. $as_echo_n "checking for $ac_word... " >&6; }
  5883. if test "${ac_cv_prog_LIPO+set}" = set; then :
  5884. $as_echo_n "(cached) " >&6
  5885. else
  5886. if test -n "$LIPO"; then
  5887. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5888. else
  5889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5890. for as_dir in $PATH
  5891. do
  5892. IFS=$as_save_IFS
  5893. test -z "$as_dir" && as_dir=.
  5894. for ac_exec_ext in '' $ac_executable_extensions; do
  5895. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5896. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5897. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5898. break 2
  5899. fi
  5900. done
  5901. done
  5902. IFS=$as_save_IFS
  5903. fi
  5904. fi
  5905. LIPO=$ac_cv_prog_LIPO
  5906. if test -n "$LIPO"; then
  5907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5908. $as_echo "$LIPO" >&6; }
  5909. else
  5910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5911. $as_echo "no" >&6; }
  5912. fi
  5913. fi
  5914. if test -z "$ac_cv_prog_LIPO"; then
  5915. ac_ct_LIPO=$LIPO
  5916. # Extract the first word of "lipo", so it can be a program name with args.
  5917. set dummy lipo; ac_word=$2
  5918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5919. $as_echo_n "checking for $ac_word... " >&6; }
  5920. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  5921. $as_echo_n "(cached) " >&6
  5922. else
  5923. if test -n "$ac_ct_LIPO"; then
  5924. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5925. else
  5926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5927. for as_dir in $PATH
  5928. do
  5929. IFS=$as_save_IFS
  5930. test -z "$as_dir" && as_dir=.
  5931. for ac_exec_ext in '' $ac_executable_extensions; do
  5932. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5933. ac_cv_prog_ac_ct_LIPO="lipo"
  5934. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5935. break 2
  5936. fi
  5937. done
  5938. done
  5939. IFS=$as_save_IFS
  5940. fi
  5941. fi
  5942. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5943. if test -n "$ac_ct_LIPO"; then
  5944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5945. $as_echo "$ac_ct_LIPO" >&6; }
  5946. else
  5947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5948. $as_echo "no" >&6; }
  5949. fi
  5950. if test "x$ac_ct_LIPO" = x; then
  5951. LIPO=":"
  5952. else
  5953. case $cross_compiling:$ac_tool_warned in
  5954. yes:)
  5955. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5956. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5957. ac_tool_warned=yes ;;
  5958. esac
  5959. LIPO=$ac_ct_LIPO
  5960. fi
  5961. else
  5962. LIPO="$ac_cv_prog_LIPO"
  5963. fi
  5964. if test -n "$ac_tool_prefix"; then
  5965. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5966. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5968. $as_echo_n "checking for $ac_word... " >&6; }
  5969. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  5970. $as_echo_n "(cached) " >&6
  5971. else
  5972. if test -n "$OTOOL"; then
  5973. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5974. else
  5975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5976. for as_dir in $PATH
  5977. do
  5978. IFS=$as_save_IFS
  5979. test -z "$as_dir" && as_dir=.
  5980. for ac_exec_ext in '' $ac_executable_extensions; do
  5981. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5982. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5983. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5984. break 2
  5985. fi
  5986. done
  5987. done
  5988. IFS=$as_save_IFS
  5989. fi
  5990. fi
  5991. OTOOL=$ac_cv_prog_OTOOL
  5992. if test -n "$OTOOL"; then
  5993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5994. $as_echo "$OTOOL" >&6; }
  5995. else
  5996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5997. $as_echo "no" >&6; }
  5998. fi
  5999. fi
  6000. if test -z "$ac_cv_prog_OTOOL"; then
  6001. ac_ct_OTOOL=$OTOOL
  6002. # Extract the first word of "otool", so it can be a program name with args.
  6003. set dummy otool; ac_word=$2
  6004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6005. $as_echo_n "checking for $ac_word... " >&6; }
  6006. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6007. $as_echo_n "(cached) " >&6
  6008. else
  6009. if test -n "$ac_ct_OTOOL"; then
  6010. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6011. else
  6012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6013. for as_dir in $PATH
  6014. do
  6015. IFS=$as_save_IFS
  6016. test -z "$as_dir" && as_dir=.
  6017. for ac_exec_ext in '' $ac_executable_extensions; do
  6018. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6019. ac_cv_prog_ac_ct_OTOOL="otool"
  6020. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6021. break 2
  6022. fi
  6023. done
  6024. done
  6025. IFS=$as_save_IFS
  6026. fi
  6027. fi
  6028. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6029. if test -n "$ac_ct_OTOOL"; then
  6030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6031. $as_echo "$ac_ct_OTOOL" >&6; }
  6032. else
  6033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6034. $as_echo "no" >&6; }
  6035. fi
  6036. if test "x$ac_ct_OTOOL" = x; then
  6037. OTOOL=":"
  6038. else
  6039. case $cross_compiling:$ac_tool_warned in
  6040. yes:)
  6041. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6042. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6043. ac_tool_warned=yes ;;
  6044. esac
  6045. OTOOL=$ac_ct_OTOOL
  6046. fi
  6047. else
  6048. OTOOL="$ac_cv_prog_OTOOL"
  6049. fi
  6050. if test -n "$ac_tool_prefix"; then
  6051. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6052. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6054. $as_echo_n "checking for $ac_word... " >&6; }
  6055. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6056. $as_echo_n "(cached) " >&6
  6057. else
  6058. if test -n "$OTOOL64"; then
  6059. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6060. else
  6061. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6062. for as_dir in $PATH
  6063. do
  6064. IFS=$as_save_IFS
  6065. test -z "$as_dir" && as_dir=.
  6066. for ac_exec_ext in '' $ac_executable_extensions; do
  6067. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6068. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6069. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6070. break 2
  6071. fi
  6072. done
  6073. done
  6074. IFS=$as_save_IFS
  6075. fi
  6076. fi
  6077. OTOOL64=$ac_cv_prog_OTOOL64
  6078. if test -n "$OTOOL64"; then
  6079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6080. $as_echo "$OTOOL64" >&6; }
  6081. else
  6082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6083. $as_echo "no" >&6; }
  6084. fi
  6085. fi
  6086. if test -z "$ac_cv_prog_OTOOL64"; then
  6087. ac_ct_OTOOL64=$OTOOL64
  6088. # Extract the first word of "otool64", so it can be a program name with args.
  6089. set dummy otool64; ac_word=$2
  6090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6091. $as_echo_n "checking for $ac_word... " >&6; }
  6092. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6093. $as_echo_n "(cached) " >&6
  6094. else
  6095. if test -n "$ac_ct_OTOOL64"; then
  6096. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6097. else
  6098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6099. for as_dir in $PATH
  6100. do
  6101. IFS=$as_save_IFS
  6102. test -z "$as_dir" && as_dir=.
  6103. for ac_exec_ext in '' $ac_executable_extensions; do
  6104. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6105. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6106. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6107. break 2
  6108. fi
  6109. done
  6110. done
  6111. IFS=$as_save_IFS
  6112. fi
  6113. fi
  6114. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6115. if test -n "$ac_ct_OTOOL64"; then
  6116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6117. $as_echo "$ac_ct_OTOOL64" >&6; }
  6118. else
  6119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6120. $as_echo "no" >&6; }
  6121. fi
  6122. if test "x$ac_ct_OTOOL64" = x; then
  6123. OTOOL64=":"
  6124. else
  6125. case $cross_compiling:$ac_tool_warned in
  6126. yes:)
  6127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6128. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6129. ac_tool_warned=yes ;;
  6130. esac
  6131. OTOOL64=$ac_ct_OTOOL64
  6132. fi
  6133. else
  6134. OTOOL64="$ac_cv_prog_OTOOL64"
  6135. fi
  6136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6137. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6138. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6139. $as_echo_n "(cached) " >&6
  6140. else
  6141. lt_cv_apple_cc_single_mod=no
  6142. if test -z "${LT_MULTI_MODULE}"; then
  6143. # By default we will add the -single_module flag. You can override
  6144. # by either setting the environment variable LT_MULTI_MODULE
  6145. # non-empty at configure time, or by adding -multi_module to the
  6146. # link flags.
  6147. rm -rf libconftest.dylib*
  6148. echo "int foo(void){return 1;}" > conftest.c
  6149. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6150. -dynamiclib -Wl,-single_module conftest.c" >&5
  6151. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6152. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6153. _lt_result=$?
  6154. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6155. lt_cv_apple_cc_single_mod=yes
  6156. else
  6157. cat conftest.err >&5
  6158. fi
  6159. rm -rf libconftest.dylib*
  6160. rm -f conftest.*
  6161. fi
  6162. fi
  6163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6164. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6166. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6167. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6168. $as_echo_n "(cached) " >&6
  6169. else
  6170. lt_cv_ld_exported_symbols_list=no
  6171. save_LDFLAGS=$LDFLAGS
  6172. echo "_main" > conftest.sym
  6173. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6174. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6175. /* end confdefs.h. */
  6176. int
  6177. main ()
  6178. {
  6179. ;
  6180. return 0;
  6181. }
  6182. _ACEOF
  6183. if ac_fn_c_try_link "$LINENO"; then :
  6184. lt_cv_ld_exported_symbols_list=yes
  6185. else
  6186. lt_cv_ld_exported_symbols_list=no
  6187. fi
  6188. rm -f core conftest.err conftest.$ac_objext \
  6189. conftest$ac_exeext conftest.$ac_ext
  6190. LDFLAGS="$save_LDFLAGS"
  6191. fi
  6192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6193. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6194. case $host_os in
  6195. rhapsody* | darwin1.[012])
  6196. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6197. darwin1.*)
  6198. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6199. darwin*) # darwin 5.x on
  6200. # if running on 10.5 or later, the deployment target defaults
  6201. # to the OS version, if on x86, and 10.4, the deployment
  6202. # target defaults to 10.4. Don't you love it?
  6203. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6204. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6205. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6206. 10.[012]*)
  6207. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6208. 10.*)
  6209. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6210. esac
  6211. ;;
  6212. esac
  6213. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6214. _lt_dar_single_mod='$single_module'
  6215. fi
  6216. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6217. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6218. else
  6219. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6220. fi
  6221. if test "$DSYMUTIL" != ":"; then
  6222. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6223. else
  6224. _lt_dsymutil=
  6225. fi
  6226. ;;
  6227. esac
  6228. ac_ext=c
  6229. ac_cpp='$CPP $CPPFLAGS'
  6230. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6231. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6232. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6234. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6235. # On Suns, sometimes $CPP names a directory.
  6236. if test -n "$CPP" && test -d "$CPP"; then
  6237. CPP=
  6238. fi
  6239. if test -z "$CPP"; then
  6240. if test "${ac_cv_prog_CPP+set}" = set; then :
  6241. $as_echo_n "(cached) " >&6
  6242. else
  6243. # Double quotes because CPP needs to be expanded
  6244. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6245. do
  6246. ac_preproc_ok=false
  6247. for ac_c_preproc_warn_flag in '' yes
  6248. do
  6249. # Use a header file that comes with gcc, so configuring glibc
  6250. # with a fresh cross-compiler works.
  6251. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6252. # <limits.h> exists even on freestanding compilers.
  6253. # On the NeXT, cc -E runs the code through the compiler's parser,
  6254. # not just through cpp. "Syntax error" is here to catch this case.
  6255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6256. /* end confdefs.h. */
  6257. #ifdef __STDC__
  6258. # include <limits.h>
  6259. #else
  6260. # include <assert.h>
  6261. #endif
  6262. Syntax error
  6263. _ACEOF
  6264. if ac_fn_c_try_cpp "$LINENO"; then :
  6265. else
  6266. # Broken: fails on valid input.
  6267. continue
  6268. fi
  6269. rm -f conftest.err conftest.$ac_ext
  6270. # OK, works on sane cases. Now check whether nonexistent headers
  6271. # can be detected and how.
  6272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6273. /* end confdefs.h. */
  6274. #include <ac_nonexistent.h>
  6275. _ACEOF
  6276. if ac_fn_c_try_cpp "$LINENO"; then :
  6277. # Broken: success on invalid input.
  6278. continue
  6279. else
  6280. # Passes both tests.
  6281. ac_preproc_ok=:
  6282. break
  6283. fi
  6284. rm -f conftest.err conftest.$ac_ext
  6285. done
  6286. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6287. rm -f conftest.err conftest.$ac_ext
  6288. if $ac_preproc_ok; then :
  6289. break
  6290. fi
  6291. done
  6292. ac_cv_prog_CPP=$CPP
  6293. fi
  6294. CPP=$ac_cv_prog_CPP
  6295. else
  6296. ac_cv_prog_CPP=$CPP
  6297. fi
  6298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6299. $as_echo "$CPP" >&6; }
  6300. ac_preproc_ok=false
  6301. for ac_c_preproc_warn_flag in '' yes
  6302. do
  6303. # Use a header file that comes with gcc, so configuring glibc
  6304. # with a fresh cross-compiler works.
  6305. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6306. # <limits.h> exists even on freestanding compilers.
  6307. # On the NeXT, cc -E runs the code through the compiler's parser,
  6308. # not just through cpp. "Syntax error" is here to catch this case.
  6309. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6310. /* end confdefs.h. */
  6311. #ifdef __STDC__
  6312. # include <limits.h>
  6313. #else
  6314. # include <assert.h>
  6315. #endif
  6316. Syntax error
  6317. _ACEOF
  6318. if ac_fn_c_try_cpp "$LINENO"; then :
  6319. else
  6320. # Broken: fails on valid input.
  6321. continue
  6322. fi
  6323. rm -f conftest.err conftest.$ac_ext
  6324. # OK, works on sane cases. Now check whether nonexistent headers
  6325. # can be detected and how.
  6326. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6327. /* end confdefs.h. */
  6328. #include <ac_nonexistent.h>
  6329. _ACEOF
  6330. if ac_fn_c_try_cpp "$LINENO"; then :
  6331. # Broken: success on invalid input.
  6332. continue
  6333. else
  6334. # Passes both tests.
  6335. ac_preproc_ok=:
  6336. break
  6337. fi
  6338. rm -f conftest.err conftest.$ac_ext
  6339. done
  6340. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6341. rm -f conftest.err conftest.$ac_ext
  6342. if $ac_preproc_ok; then :
  6343. else
  6344. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6345. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6346. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6347. See \`config.log' for more details." "$LINENO" 5; }
  6348. fi
  6349. ac_ext=c
  6350. ac_cpp='$CPP $CPPFLAGS'
  6351. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6352. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6353. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6355. $as_echo_n "checking for ANSI C header files... " >&6; }
  6356. if test "${ac_cv_header_stdc+set}" = set; then :
  6357. $as_echo_n "(cached) " >&6
  6358. else
  6359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6360. /* end confdefs.h. */
  6361. #include <stdlib.h>
  6362. #include <stdarg.h>
  6363. #include <string.h>
  6364. #include <float.h>
  6365. int
  6366. main ()
  6367. {
  6368. ;
  6369. return 0;
  6370. }
  6371. _ACEOF
  6372. if ac_fn_c_try_compile "$LINENO"; then :
  6373. ac_cv_header_stdc=yes
  6374. else
  6375. ac_cv_header_stdc=no
  6376. fi
  6377. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6378. if test $ac_cv_header_stdc = yes; then
  6379. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6380. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6381. /* end confdefs.h. */
  6382. #include <string.h>
  6383. _ACEOF
  6384. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6385. $EGREP "memchr" >/dev/null 2>&1; then :
  6386. else
  6387. ac_cv_header_stdc=no
  6388. fi
  6389. rm -f conftest*
  6390. fi
  6391. if test $ac_cv_header_stdc = yes; then
  6392. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6394. /* end confdefs.h. */
  6395. #include <stdlib.h>
  6396. _ACEOF
  6397. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6398. $EGREP "free" >/dev/null 2>&1; then :
  6399. else
  6400. ac_cv_header_stdc=no
  6401. fi
  6402. rm -f conftest*
  6403. fi
  6404. if test $ac_cv_header_stdc = yes; then
  6405. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6406. if test "$cross_compiling" = yes; then :
  6407. :
  6408. else
  6409. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6410. /* end confdefs.h. */
  6411. #include <ctype.h>
  6412. #include <stdlib.h>
  6413. #if ((' ' & 0x0FF) == 0x020)
  6414. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6415. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6416. #else
  6417. # define ISLOWER(c) \
  6418. (('a' <= (c) && (c) <= 'i') \
  6419. || ('j' <= (c) && (c) <= 'r') \
  6420. || ('s' <= (c) && (c) <= 'z'))
  6421. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6422. #endif
  6423. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6424. int
  6425. main ()
  6426. {
  6427. int i;
  6428. for (i = 0; i < 256; i++)
  6429. if (XOR (islower (i), ISLOWER (i))
  6430. || toupper (i) != TOUPPER (i))
  6431. return 2;
  6432. return 0;
  6433. }
  6434. _ACEOF
  6435. if ac_fn_c_try_run "$LINENO"; then :
  6436. else
  6437. ac_cv_header_stdc=no
  6438. fi
  6439. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6440. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6441. fi
  6442. fi
  6443. fi
  6444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6445. $as_echo "$ac_cv_header_stdc" >&6; }
  6446. if test $ac_cv_header_stdc = yes; then
  6447. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6448. fi
  6449. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6450. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6451. inttypes.h stdint.h unistd.h
  6452. do :
  6453. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6454. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6455. "
  6456. eval as_val=\$$as_ac_Header
  6457. if test "x$as_val" = x""yes; then :
  6458. cat >>confdefs.h <<_ACEOF
  6459. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6460. _ACEOF
  6461. fi
  6462. done
  6463. for ac_header in dlfcn.h
  6464. do :
  6465. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6466. "
  6467. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6468. cat >>confdefs.h <<_ACEOF
  6469. #define HAVE_DLFCN_H 1
  6470. _ACEOF
  6471. fi
  6472. done
  6473. # Set options
  6474. enable_dlopen=no
  6475. # Check whether --enable-shared was given.
  6476. if test "${enable_shared+set}" = set; then :
  6477. enableval=$enable_shared; p=${PACKAGE-default}
  6478. case $enableval in
  6479. yes) enable_shared=yes ;;
  6480. no) enable_shared=no ;;
  6481. *)
  6482. enable_shared=no
  6483. # Look at the argument we got. We use all the common list separators.
  6484. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6485. for pkg in $enableval; do
  6486. IFS="$lt_save_ifs"
  6487. if test "X$pkg" = "X$p"; then
  6488. enable_shared=yes
  6489. fi
  6490. done
  6491. IFS="$lt_save_ifs"
  6492. ;;
  6493. esac
  6494. else
  6495. enable_shared=yes
  6496. fi
  6497. # Check whether --enable-static was given.
  6498. if test "${enable_static+set}" = set; then :
  6499. enableval=$enable_static; p=${PACKAGE-default}
  6500. case $enableval in
  6501. yes) enable_static=yes ;;
  6502. no) enable_static=no ;;
  6503. *)
  6504. enable_static=no
  6505. # Look at the argument we got. We use all the common list separators.
  6506. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6507. for pkg in $enableval; do
  6508. IFS="$lt_save_ifs"
  6509. if test "X$pkg" = "X$p"; then
  6510. enable_static=yes
  6511. fi
  6512. done
  6513. IFS="$lt_save_ifs"
  6514. ;;
  6515. esac
  6516. else
  6517. enable_static=yes
  6518. fi
  6519. # Check whether --with-pic was given.
  6520. if test "${with_pic+set}" = set; then :
  6521. withval=$with_pic; pic_mode="$withval"
  6522. else
  6523. pic_mode=default
  6524. fi
  6525. test -z "$pic_mode" && pic_mode=default
  6526. # Check whether --enable-fast-install was given.
  6527. if test "${enable_fast_install+set}" = set; then :
  6528. enableval=$enable_fast_install; p=${PACKAGE-default}
  6529. case $enableval in
  6530. yes) enable_fast_install=yes ;;
  6531. no) enable_fast_install=no ;;
  6532. *)
  6533. enable_fast_install=no
  6534. # Look at the argument we got. We use all the common list separators.
  6535. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6536. for pkg in $enableval; do
  6537. IFS="$lt_save_ifs"
  6538. if test "X$pkg" = "X$p"; then
  6539. enable_fast_install=yes
  6540. fi
  6541. done
  6542. IFS="$lt_save_ifs"
  6543. ;;
  6544. esac
  6545. else
  6546. enable_fast_install=yes
  6547. fi
  6548. # This can be used to rebuild libtool when needed
  6549. LIBTOOL_DEPS="$ltmain"
  6550. # Always use our own libtool.
  6551. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6552. test -z "$LN_S" && LN_S="ln -s"
  6553. if test -n "${ZSH_VERSION+set}" ; then
  6554. setopt NO_GLOB_SUBST
  6555. fi
  6556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6557. $as_echo_n "checking for objdir... " >&6; }
  6558. if test "${lt_cv_objdir+set}" = set; then :
  6559. $as_echo_n "(cached) " >&6
  6560. else
  6561. rm -f .libs 2>/dev/null
  6562. mkdir .libs 2>/dev/null
  6563. if test -d .libs; then
  6564. lt_cv_objdir=.libs
  6565. else
  6566. # MS-DOS does not allow filenames that begin with a dot.
  6567. lt_cv_objdir=_libs
  6568. fi
  6569. rmdir .libs 2>/dev/null
  6570. fi
  6571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6572. $as_echo "$lt_cv_objdir" >&6; }
  6573. objdir=$lt_cv_objdir
  6574. cat >>confdefs.h <<_ACEOF
  6575. #define LT_OBJDIR "$lt_cv_objdir/"
  6576. _ACEOF
  6577. case $host_os in
  6578. aix3*)
  6579. # AIX sometimes has problems with the GCC collect2 program. For some
  6580. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6581. # vanish in a puff of smoke.
  6582. if test "X${COLLECT_NAMES+set}" != Xset; then
  6583. COLLECT_NAMES=
  6584. export COLLECT_NAMES
  6585. fi
  6586. ;;
  6587. esac
  6588. # Sed substitution that helps us do robust quoting. It backslashifies
  6589. # metacharacters that are still active within double-quoted strings.
  6590. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6591. # Same as above, but do not quote variable references.
  6592. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6593. # Sed substitution to delay expansion of an escaped shell variable in a
  6594. # double_quote_subst'ed string.
  6595. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6596. # Sed substitution to delay expansion of an escaped single quote.
  6597. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6598. # Sed substitution to avoid accidental globbing in evaled expressions
  6599. no_glob_subst='s/\*/\\\*/g'
  6600. # Global variables:
  6601. ofile=libtool
  6602. can_build_shared=yes
  6603. # All known linkers require a `.a' archive for static linking (except MSVC,
  6604. # which needs '.lib').
  6605. libext=a
  6606. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6607. old_CC="$CC"
  6608. old_CFLAGS="$CFLAGS"
  6609. # Set sane defaults for various variables
  6610. test -z "$CC" && CC=cc
  6611. test -z "$LTCC" && LTCC=$CC
  6612. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6613. test -z "$LD" && LD=ld
  6614. test -z "$ac_objext" && ac_objext=o
  6615. for cc_temp in $compiler""; do
  6616. case $cc_temp in
  6617. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6618. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6619. \-*) ;;
  6620. *) break;;
  6621. esac
  6622. done
  6623. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6624. # Only perform the check for file, if the check method requires it
  6625. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6626. case $deplibs_check_method in
  6627. file_magic*)
  6628. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6630. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6631. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6632. $as_echo_n "(cached) " >&6
  6633. else
  6634. case $MAGIC_CMD in
  6635. [\\/*] | ?:[\\/]*)
  6636. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6637. ;;
  6638. *)
  6639. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6640. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6641. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6642. for ac_dir in $ac_dummy; do
  6643. IFS="$lt_save_ifs"
  6644. test -z "$ac_dir" && ac_dir=.
  6645. if test -f $ac_dir/${ac_tool_prefix}file; then
  6646. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6647. if test -n "$file_magic_test_file"; then
  6648. case $deplibs_check_method in
  6649. "file_magic "*)
  6650. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6651. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6652. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6653. $EGREP "$file_magic_regex" > /dev/null; then
  6654. :
  6655. else
  6656. cat <<_LT_EOF 1>&2
  6657. *** Warning: the command libtool uses to detect shared libraries,
  6658. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6659. *** The result is that libtool may fail to recognize shared libraries
  6660. *** as such. This will affect the creation of libtool libraries that
  6661. *** depend on shared libraries, but programs linked with such libtool
  6662. *** libraries will work regardless of this problem. Nevertheless, you
  6663. *** may want to report the problem to your system manager and/or to
  6664. *** bug-libtool@gnu.org
  6665. _LT_EOF
  6666. fi ;;
  6667. esac
  6668. fi
  6669. break
  6670. fi
  6671. done
  6672. IFS="$lt_save_ifs"
  6673. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6674. ;;
  6675. esac
  6676. fi
  6677. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6678. if test -n "$MAGIC_CMD"; then
  6679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6680. $as_echo "$MAGIC_CMD" >&6; }
  6681. else
  6682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6683. $as_echo "no" >&6; }
  6684. fi
  6685. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6686. if test -n "$ac_tool_prefix"; then
  6687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6688. $as_echo_n "checking for file... " >&6; }
  6689. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6690. $as_echo_n "(cached) " >&6
  6691. else
  6692. case $MAGIC_CMD in
  6693. [\\/*] | ?:[\\/]*)
  6694. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6695. ;;
  6696. *)
  6697. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6698. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6699. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6700. for ac_dir in $ac_dummy; do
  6701. IFS="$lt_save_ifs"
  6702. test -z "$ac_dir" && ac_dir=.
  6703. if test -f $ac_dir/file; then
  6704. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6705. if test -n "$file_magic_test_file"; then
  6706. case $deplibs_check_method in
  6707. "file_magic "*)
  6708. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6709. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6710. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6711. $EGREP "$file_magic_regex" > /dev/null; then
  6712. :
  6713. else
  6714. cat <<_LT_EOF 1>&2
  6715. *** Warning: the command libtool uses to detect shared libraries,
  6716. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6717. *** The result is that libtool may fail to recognize shared libraries
  6718. *** as such. This will affect the creation of libtool libraries that
  6719. *** depend on shared libraries, but programs linked with such libtool
  6720. *** libraries will work regardless of this problem. Nevertheless, you
  6721. *** may want to report the problem to your system manager and/or to
  6722. *** bug-libtool@gnu.org
  6723. _LT_EOF
  6724. fi ;;
  6725. esac
  6726. fi
  6727. break
  6728. fi
  6729. done
  6730. IFS="$lt_save_ifs"
  6731. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6732. ;;
  6733. esac
  6734. fi
  6735. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6736. if test -n "$MAGIC_CMD"; then
  6737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6738. $as_echo "$MAGIC_CMD" >&6; }
  6739. else
  6740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6741. $as_echo "no" >&6; }
  6742. fi
  6743. else
  6744. MAGIC_CMD=:
  6745. fi
  6746. fi
  6747. fi
  6748. ;;
  6749. esac
  6750. # Use C for the default configuration in the libtool script
  6751. lt_save_CC="$CC"
  6752. ac_ext=c
  6753. ac_cpp='$CPP $CPPFLAGS'
  6754. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6755. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6756. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6757. # Source file extension for C test sources.
  6758. ac_ext=c
  6759. # Object file extension for compiled C test sources.
  6760. objext=o
  6761. objext=$objext
  6762. # Code to be used in simple compile tests
  6763. lt_simple_compile_test_code="int some_variable = 0;"
  6764. # Code to be used in simple link tests
  6765. lt_simple_link_test_code='int main(){return(0);}'
  6766. # If no C compiler was specified, use CC.
  6767. LTCC=${LTCC-"$CC"}
  6768. # If no C compiler flags were specified, use CFLAGS.
  6769. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6770. # Allow CC to be a program name with arguments.
  6771. compiler=$CC
  6772. # Save the default compiler, since it gets overwritten when the other
  6773. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6774. compiler_DEFAULT=$CC
  6775. # save warnings/boilerplate of simple test code
  6776. ac_outfile=conftest.$ac_objext
  6777. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6778. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6779. _lt_compiler_boilerplate=`cat conftest.err`
  6780. $RM conftest*
  6781. ac_outfile=conftest.$ac_objext
  6782. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6783. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6784. _lt_linker_boilerplate=`cat conftest.err`
  6785. $RM -r conftest*
  6786. ## CAVEAT EMPTOR:
  6787. ## There is no encapsulation within the following macros, do not change
  6788. ## the running order or otherwise move them around unless you know exactly
  6789. ## what you are doing...
  6790. if test -n "$compiler"; then
  6791. lt_prog_compiler_no_builtin_flag=
  6792. if test "$GCC" = yes; then
  6793. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6795. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6796. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  6797. $as_echo_n "(cached) " >&6
  6798. else
  6799. lt_cv_prog_compiler_rtti_exceptions=no
  6800. ac_outfile=conftest.$ac_objext
  6801. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6802. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6803. # Insert the option either (1) after the last *FLAGS variable, or
  6804. # (2) before a word containing "conftest.", or (3) at the end.
  6805. # Note that $ac_compile itself does not contain backslashes and begins
  6806. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6807. # The option is referenced via a variable to avoid confusing sed.
  6808. lt_compile=`echo "$ac_compile" | $SED \
  6809. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6810. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6811. -e 's:$: $lt_compiler_flag:'`
  6812. (eval echo "\"\$as_me:7808: $lt_compile\"" >&5)
  6813. (eval "$lt_compile" 2>conftest.err)
  6814. ac_status=$?
  6815. cat conftest.err >&5
  6816. echo "$as_me:7812: \$? = $ac_status" >&5
  6817. if (exit $ac_status) && test -s "$ac_outfile"; then
  6818. # The compiler can only warn and ignore the option if not recognized
  6819. # So say no if there are warnings other than the usual output.
  6820. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6821. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6822. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6823. lt_cv_prog_compiler_rtti_exceptions=yes
  6824. fi
  6825. fi
  6826. $RM conftest*
  6827. fi
  6828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6829. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6830. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6831. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6832. else
  6833. :
  6834. fi
  6835. fi
  6836. lt_prog_compiler_wl=
  6837. lt_prog_compiler_pic=
  6838. lt_prog_compiler_static=
  6839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6840. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6841. if test "$GCC" = yes; then
  6842. lt_prog_compiler_wl='-Wl,'
  6843. lt_prog_compiler_static='-static'
  6844. case $host_os in
  6845. aix*)
  6846. # All AIX code is PIC.
  6847. if test "$host_cpu" = ia64; then
  6848. # AIX 5 now supports IA64 processor
  6849. lt_prog_compiler_static='-Bstatic'
  6850. fi
  6851. ;;
  6852. amigaos*)
  6853. case $host_cpu in
  6854. powerpc)
  6855. # see comment about AmigaOS4 .so support
  6856. lt_prog_compiler_pic='-fPIC'
  6857. ;;
  6858. m68k)
  6859. # FIXME: we need at least 68020 code to build shared libraries, but
  6860. # adding the `-m68020' flag to GCC prevents building anything better,
  6861. # like `-m68040'.
  6862. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6863. ;;
  6864. esac
  6865. ;;
  6866. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6867. # PIC is the default for these OSes.
  6868. ;;
  6869. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6870. # This hack is so that the source file can tell whether it is being
  6871. # built for inclusion in a dll (and should export symbols for example).
  6872. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6873. # (--disable-auto-import) libraries
  6874. lt_prog_compiler_pic='-DDLL_EXPORT'
  6875. ;;
  6876. darwin* | rhapsody*)
  6877. # PIC is the default on this platform
  6878. # Common symbols not allowed in MH_DYLIB files
  6879. lt_prog_compiler_pic='-fno-common'
  6880. ;;
  6881. hpux*)
  6882. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6883. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6884. # sets the default TLS model and affects inlining.
  6885. case $host_cpu in
  6886. hppa*64*)
  6887. # +Z the default
  6888. ;;
  6889. *)
  6890. lt_prog_compiler_pic='-fPIC'
  6891. ;;
  6892. esac
  6893. ;;
  6894. interix[3-9]*)
  6895. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6896. # Instead, we relocate shared libraries at runtime.
  6897. ;;
  6898. msdosdjgpp*)
  6899. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6900. # on systems that don't support them.
  6901. lt_prog_compiler_can_build_shared=no
  6902. enable_shared=no
  6903. ;;
  6904. *nto* | *qnx*)
  6905. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6906. # it will coredump.
  6907. lt_prog_compiler_pic='-fPIC -shared'
  6908. ;;
  6909. sysv4*MP*)
  6910. if test -d /usr/nec; then
  6911. lt_prog_compiler_pic=-Kconform_pic
  6912. fi
  6913. ;;
  6914. *)
  6915. lt_prog_compiler_pic='-fPIC'
  6916. ;;
  6917. esac
  6918. else
  6919. # PORTME Check for flag to pass linker flags through the system compiler.
  6920. case $host_os in
  6921. aix*)
  6922. lt_prog_compiler_wl='-Wl,'
  6923. if test "$host_cpu" = ia64; then
  6924. # AIX 5 now supports IA64 processor
  6925. lt_prog_compiler_static='-Bstatic'
  6926. else
  6927. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6928. fi
  6929. ;;
  6930. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6931. # This hack is so that the source file can tell whether it is being
  6932. # built for inclusion in a dll (and should export symbols for example).
  6933. lt_prog_compiler_pic='-DDLL_EXPORT'
  6934. ;;
  6935. hpux9* | hpux10* | hpux11*)
  6936. lt_prog_compiler_wl='-Wl,'
  6937. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6938. # not for PA HP-UX.
  6939. case $host_cpu in
  6940. hppa*64*|ia64*)
  6941. # +Z the default
  6942. ;;
  6943. *)
  6944. lt_prog_compiler_pic='+Z'
  6945. ;;
  6946. esac
  6947. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6948. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6949. ;;
  6950. irix5* | irix6* | nonstopux*)
  6951. lt_prog_compiler_wl='-Wl,'
  6952. # PIC (with -KPIC) is the default.
  6953. lt_prog_compiler_static='-non_shared'
  6954. ;;
  6955. linux* | k*bsd*-gnu)
  6956. case $cc_basename in
  6957. # old Intel for x86_64 which still supported -KPIC.
  6958. ecc*)
  6959. lt_prog_compiler_wl='-Wl,'
  6960. lt_prog_compiler_pic='-KPIC'
  6961. lt_prog_compiler_static='-static'
  6962. ;;
  6963. # icc used to be incompatible with GCC.
  6964. # ICC 10 doesn't accept -KPIC any more.
  6965. icc* | ifort*)
  6966. lt_prog_compiler_wl='-Wl,'
  6967. lt_prog_compiler_pic='-fPIC'
  6968. lt_prog_compiler_static='-static'
  6969. ;;
  6970. # Lahey Fortran 8.1.
  6971. lf95*)
  6972. lt_prog_compiler_wl='-Wl,'
  6973. lt_prog_compiler_pic='--shared'
  6974. lt_prog_compiler_static='--static'
  6975. ;;
  6976. pgcc* | pgf77* | pgf90* | pgf95*)
  6977. # Portland Group compilers (*not* the Pentium gcc compiler,
  6978. # which looks to be a dead project)
  6979. lt_prog_compiler_wl='-Wl,'
  6980. lt_prog_compiler_pic='-fpic'
  6981. lt_prog_compiler_static='-Bstatic'
  6982. ;;
  6983. ccc*)
  6984. lt_prog_compiler_wl='-Wl,'
  6985. # All Alpha code is PIC.
  6986. lt_prog_compiler_static='-non_shared'
  6987. ;;
  6988. xl*)
  6989. # IBM XL C 8.0/Fortran 10.1 on PPC
  6990. lt_prog_compiler_wl='-Wl,'
  6991. lt_prog_compiler_pic='-qpic'
  6992. lt_prog_compiler_static='-qstaticlink'
  6993. ;;
  6994. *)
  6995. case `$CC -V 2>&1 | sed 5q` in
  6996. *Sun\ C*)
  6997. # Sun C 5.9
  6998. lt_prog_compiler_pic='-KPIC'
  6999. lt_prog_compiler_static='-Bstatic'
  7000. lt_prog_compiler_wl='-Wl,'
  7001. ;;
  7002. *Sun\ F*)
  7003. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7004. lt_prog_compiler_pic='-KPIC'
  7005. lt_prog_compiler_static='-Bstatic'
  7006. lt_prog_compiler_wl=''
  7007. ;;
  7008. esac
  7009. ;;
  7010. esac
  7011. ;;
  7012. newsos6)
  7013. lt_prog_compiler_pic='-KPIC'
  7014. lt_prog_compiler_static='-Bstatic'
  7015. ;;
  7016. *nto* | *qnx*)
  7017. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7018. # it will coredump.
  7019. lt_prog_compiler_pic='-fPIC -shared'
  7020. ;;
  7021. osf3* | osf4* | osf5*)
  7022. lt_prog_compiler_wl='-Wl,'
  7023. # All OSF/1 code is PIC.
  7024. lt_prog_compiler_static='-non_shared'
  7025. ;;
  7026. rdos*)
  7027. lt_prog_compiler_static='-non_shared'
  7028. ;;
  7029. solaris*)
  7030. lt_prog_compiler_pic='-KPIC'
  7031. lt_prog_compiler_static='-Bstatic'
  7032. case $cc_basename in
  7033. f77* | f90* | f95*)
  7034. lt_prog_compiler_wl='-Qoption ld ';;
  7035. *)
  7036. lt_prog_compiler_wl='-Wl,';;
  7037. esac
  7038. ;;
  7039. sunos4*)
  7040. lt_prog_compiler_wl='-Qoption ld '
  7041. lt_prog_compiler_pic='-PIC'
  7042. lt_prog_compiler_static='-Bstatic'
  7043. ;;
  7044. sysv4 | sysv4.2uw2* | sysv4.3*)
  7045. lt_prog_compiler_wl='-Wl,'
  7046. lt_prog_compiler_pic='-KPIC'
  7047. lt_prog_compiler_static='-Bstatic'
  7048. ;;
  7049. sysv4*MP*)
  7050. if test -d /usr/nec ;then
  7051. lt_prog_compiler_pic='-Kconform_pic'
  7052. lt_prog_compiler_static='-Bstatic'
  7053. fi
  7054. ;;
  7055. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7056. lt_prog_compiler_wl='-Wl,'
  7057. lt_prog_compiler_pic='-KPIC'
  7058. lt_prog_compiler_static='-Bstatic'
  7059. ;;
  7060. unicos*)
  7061. lt_prog_compiler_wl='-Wl,'
  7062. lt_prog_compiler_can_build_shared=no
  7063. ;;
  7064. uts4*)
  7065. lt_prog_compiler_pic='-pic'
  7066. lt_prog_compiler_static='-Bstatic'
  7067. ;;
  7068. *)
  7069. lt_prog_compiler_can_build_shared=no
  7070. ;;
  7071. esac
  7072. fi
  7073. case $host_os in
  7074. # For platforms which do not support PIC, -DPIC is meaningless:
  7075. *djgpp*)
  7076. lt_prog_compiler_pic=
  7077. ;;
  7078. *)
  7079. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7080. ;;
  7081. esac
  7082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7083. $as_echo "$lt_prog_compiler_pic" >&6; }
  7084. #
  7085. # Check to make sure the PIC flag actually works.
  7086. #
  7087. if test -n "$lt_prog_compiler_pic"; then
  7088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7089. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7090. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7091. $as_echo_n "(cached) " >&6
  7092. else
  7093. lt_cv_prog_compiler_pic_works=no
  7094. ac_outfile=conftest.$ac_objext
  7095. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7096. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7097. # Insert the option either (1) after the last *FLAGS variable, or
  7098. # (2) before a word containing "conftest.", or (3) at the end.
  7099. # Note that $ac_compile itself does not contain backslashes and begins
  7100. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7101. # The option is referenced via a variable to avoid confusing sed.
  7102. lt_compile=`echo "$ac_compile" | $SED \
  7103. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7104. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7105. -e 's:$: $lt_compiler_flag:'`
  7106. (eval echo "\"\$as_me:8147: $lt_compile\"" >&5)
  7107. (eval "$lt_compile" 2>conftest.err)
  7108. ac_status=$?
  7109. cat conftest.err >&5
  7110. echo "$as_me:8151: \$? = $ac_status" >&5
  7111. if (exit $ac_status) && test -s "$ac_outfile"; then
  7112. # The compiler can only warn and ignore the option if not recognized
  7113. # So say no if there are warnings other than the usual output.
  7114. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7115. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7116. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7117. lt_cv_prog_compiler_pic_works=yes
  7118. fi
  7119. fi
  7120. $RM conftest*
  7121. fi
  7122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7123. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7124. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7125. case $lt_prog_compiler_pic in
  7126. "" | " "*) ;;
  7127. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7128. esac
  7129. else
  7130. lt_prog_compiler_pic=
  7131. lt_prog_compiler_can_build_shared=no
  7132. fi
  7133. fi
  7134. #
  7135. # Check to make sure the static flag actually works.
  7136. #
  7137. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7139. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7140. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7141. $as_echo_n "(cached) " >&6
  7142. else
  7143. lt_cv_prog_compiler_static_works=no
  7144. save_LDFLAGS="$LDFLAGS"
  7145. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7146. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7147. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7148. # The linker can only warn and ignore the option if not recognized
  7149. # So say no if there are warnings
  7150. if test -s conftest.err; then
  7151. # Append any errors to the config.log.
  7152. cat conftest.err 1>&5
  7153. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7154. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7155. if diff conftest.exp conftest.er2 >/dev/null; then
  7156. lt_cv_prog_compiler_static_works=yes
  7157. fi
  7158. else
  7159. lt_cv_prog_compiler_static_works=yes
  7160. fi
  7161. fi
  7162. $RM -r conftest*
  7163. LDFLAGS="$save_LDFLAGS"
  7164. fi
  7165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7166. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7167. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7168. :
  7169. else
  7170. lt_prog_compiler_static=
  7171. fi
  7172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7173. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7174. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7175. $as_echo_n "(cached) " >&6
  7176. else
  7177. lt_cv_prog_compiler_c_o=no
  7178. $RM -r conftest 2>/dev/null
  7179. mkdir conftest
  7180. cd conftest
  7181. mkdir out
  7182. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7183. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7184. # Insert the option either (1) after the last *FLAGS variable, or
  7185. # (2) before a word containing "conftest.", or (3) at the end.
  7186. # Note that $ac_compile itself does not contain backslashes and begins
  7187. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7188. lt_compile=`echo "$ac_compile" | $SED \
  7189. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7190. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7191. -e 's:$: $lt_compiler_flag:'`
  7192. (eval echo "\"\$as_me:8252: $lt_compile\"" >&5)
  7193. (eval "$lt_compile" 2>out/conftest.err)
  7194. ac_status=$?
  7195. cat out/conftest.err >&5
  7196. echo "$as_me:8256: \$? = $ac_status" >&5
  7197. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7198. then
  7199. # The compiler can only warn and ignore the option if not recognized
  7200. # So say no if there are warnings
  7201. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7202. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7203. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7204. lt_cv_prog_compiler_c_o=yes
  7205. fi
  7206. fi
  7207. chmod u+w . 2>&5
  7208. $RM conftest*
  7209. # SGI C++ compiler will create directory out/ii_files/ for
  7210. # template instantiation
  7211. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7212. $RM out/* && rmdir out
  7213. cd ..
  7214. $RM -r conftest
  7215. $RM conftest*
  7216. fi
  7217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7218. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7220. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7221. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7222. $as_echo_n "(cached) " >&6
  7223. else
  7224. lt_cv_prog_compiler_c_o=no
  7225. $RM -r conftest 2>/dev/null
  7226. mkdir conftest
  7227. cd conftest
  7228. mkdir out
  7229. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7230. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7231. # Insert the option either (1) after the last *FLAGS variable, or
  7232. # (2) before a word containing "conftest.", or (3) at the end.
  7233. # Note that $ac_compile itself does not contain backslashes and begins
  7234. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7235. lt_compile=`echo "$ac_compile" | $SED \
  7236. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7237. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7238. -e 's:$: $lt_compiler_flag:'`
  7239. (eval echo "\"\$as_me:8307: $lt_compile\"" >&5)
  7240. (eval "$lt_compile" 2>out/conftest.err)
  7241. ac_status=$?
  7242. cat out/conftest.err >&5
  7243. echo "$as_me:8311: \$? = $ac_status" >&5
  7244. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7245. then
  7246. # The compiler can only warn and ignore the option if not recognized
  7247. # So say no if there are warnings
  7248. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7249. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7250. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7251. lt_cv_prog_compiler_c_o=yes
  7252. fi
  7253. fi
  7254. chmod u+w . 2>&5
  7255. $RM conftest*
  7256. # SGI C++ compiler will create directory out/ii_files/ for
  7257. # template instantiation
  7258. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7259. $RM out/* && rmdir out
  7260. cd ..
  7261. $RM -r conftest
  7262. $RM conftest*
  7263. fi
  7264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7265. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7266. hard_links="nottested"
  7267. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7268. # do not overwrite the value of need_locks provided by the user
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7270. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7271. hard_links=yes
  7272. $RM conftest*
  7273. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7274. touch conftest.a
  7275. ln conftest.a conftest.b 2>&5 || hard_links=no
  7276. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7278. $as_echo "$hard_links" >&6; }
  7279. if test "$hard_links" = no; then
  7280. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7281. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7282. need_locks=warn
  7283. fi
  7284. else
  7285. need_locks=no
  7286. fi
  7287. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7288. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7289. runpath_var=
  7290. allow_undefined_flag=
  7291. always_export_symbols=no
  7292. archive_cmds=
  7293. archive_expsym_cmds=
  7294. compiler_needs_object=no
  7295. enable_shared_with_static_runtimes=no
  7296. export_dynamic_flag_spec=
  7297. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7298. hardcode_automatic=no
  7299. hardcode_direct=no
  7300. hardcode_direct_absolute=no
  7301. hardcode_libdir_flag_spec=
  7302. hardcode_libdir_flag_spec_ld=
  7303. hardcode_libdir_separator=
  7304. hardcode_minus_L=no
  7305. hardcode_shlibpath_var=unsupported
  7306. inherit_rpath=no
  7307. link_all_deplibs=unknown
  7308. module_cmds=
  7309. module_expsym_cmds=
  7310. old_archive_from_new_cmds=
  7311. old_archive_from_expsyms_cmds=
  7312. thread_safe_flag_spec=
  7313. whole_archive_flag_spec=
  7314. # include_expsyms should be a list of space-separated symbols to be *always*
  7315. # included in the symbol list
  7316. include_expsyms=
  7317. # exclude_expsyms can be an extended regexp of symbols to exclude
  7318. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7319. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7320. # as well as any symbol that contains `d'.
  7321. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7322. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7323. # platforms (ab)use it in PIC code, but their linkers get confused if
  7324. # the symbol is explicitly referenced. Since portable code cannot
  7325. # rely on this symbol name, it's probably fine to never include it in
  7326. # preloaded symbol tables.
  7327. # Exclude shared library initialization/finalization symbols.
  7328. extract_expsyms_cmds=
  7329. case $host_os in
  7330. cygwin* | mingw* | pw32* | cegcc*)
  7331. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7332. # When not using gcc, we currently assume that we are using
  7333. # Microsoft Visual C++.
  7334. if test "$GCC" != yes; then
  7335. with_gnu_ld=no
  7336. fi
  7337. ;;
  7338. interix*)
  7339. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7340. with_gnu_ld=yes
  7341. ;;
  7342. openbsd*)
  7343. with_gnu_ld=no
  7344. ;;
  7345. linux* | k*bsd*-gnu)
  7346. link_all_deplibs=no
  7347. ;;
  7348. esac
  7349. ld_shlibs=yes
  7350. if test "$with_gnu_ld" = yes; then
  7351. # If archive_cmds runs LD, not CC, wlarc should be empty
  7352. wlarc='${wl}'
  7353. # Set some defaults for GNU ld with shared library support. These
  7354. # are reset later if shared libraries are not supported. Putting them
  7355. # here allows them to be overridden if necessary.
  7356. runpath_var=LD_RUN_PATH
  7357. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7358. export_dynamic_flag_spec='${wl}--export-dynamic'
  7359. # ancient GNU ld didn't support --whole-archive et. al.
  7360. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7361. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7362. else
  7363. whole_archive_flag_spec=
  7364. fi
  7365. supports_anon_versioning=no
  7366. case `$LD -v 2>&1` in
  7367. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7368. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7369. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7370. *\ 2.11.*) ;; # other 2.11 versions
  7371. *) supports_anon_versioning=yes ;;
  7372. esac
  7373. # See if GNU ld supports shared libraries.
  7374. case $host_os in
  7375. aix[3-9]*)
  7376. # On AIX/PPC, the GNU linker is very broken
  7377. if test "$host_cpu" != ia64; then
  7378. ld_shlibs=no
  7379. cat <<_LT_EOF 1>&2
  7380. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7381. *** to be unable to reliably create shared libraries on AIX.
  7382. *** Therefore, libtool is disabling shared libraries support. If you
  7383. *** really care for shared libraries, you may want to modify your PATH
  7384. *** so that a non-GNU linker is found, and then restart.
  7385. _LT_EOF
  7386. fi
  7387. ;;
  7388. amigaos*)
  7389. case $host_cpu in
  7390. powerpc)
  7391. # see comment about AmigaOS4 .so support
  7392. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7393. archive_expsym_cmds=''
  7394. ;;
  7395. m68k)
  7396. 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)'
  7397. hardcode_libdir_flag_spec='-L$libdir'
  7398. hardcode_minus_L=yes
  7399. ;;
  7400. esac
  7401. ;;
  7402. beos*)
  7403. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7404. allow_undefined_flag=unsupported
  7405. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7406. # support --undefined. This deserves some investigation. FIXME
  7407. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7408. else
  7409. ld_shlibs=no
  7410. fi
  7411. ;;
  7412. cygwin* | mingw* | pw32* | cegcc*)
  7413. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7414. # as there is no search path for DLLs.
  7415. hardcode_libdir_flag_spec='-L$libdir'
  7416. allow_undefined_flag=unsupported
  7417. always_export_symbols=no
  7418. enable_shared_with_static_runtimes=yes
  7419. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7420. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7421. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7422. # If the export-symbols file already is a .def file (1st line
  7423. # is EXPORTS), use it as is; otherwise, prepend...
  7424. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7425. cp $export_symbols $output_objdir/$soname.def;
  7426. else
  7427. echo EXPORTS > $output_objdir/$soname.def;
  7428. cat $export_symbols >> $output_objdir/$soname.def;
  7429. fi~
  7430. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7431. else
  7432. ld_shlibs=no
  7433. fi
  7434. ;;
  7435. interix[3-9]*)
  7436. hardcode_direct=no
  7437. hardcode_shlibpath_var=no
  7438. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7439. export_dynamic_flag_spec='${wl}-E'
  7440. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7441. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7442. # default) and relocated if they conflict, which is a slow very memory
  7443. # consuming and fragmenting process. To avoid this, we pick a random,
  7444. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7445. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7446. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7447. 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'
  7448. ;;
  7449. gnu* | linux* | tpf* | k*bsd*-gnu)
  7450. tmp_diet=no
  7451. if test "$host_os" = linux-dietlibc; then
  7452. case $cc_basename in
  7453. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7454. esac
  7455. fi
  7456. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7457. && test "$tmp_diet" = no
  7458. then
  7459. tmp_addflag=
  7460. tmp_sharedflag='-shared'
  7461. case $cc_basename,$host_cpu in
  7462. pgcc*) # Portland Group C compiler
  7463. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7464. tmp_addflag=' $pic_flag'
  7465. ;;
  7466. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7467. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7468. tmp_addflag=' $pic_flag -Mnomain' ;;
  7469. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7470. tmp_addflag=' -i_dynamic' ;;
  7471. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7472. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7473. ifc* | ifort*) # Intel Fortran compiler
  7474. tmp_addflag=' -nofor_main' ;;
  7475. lf95*) # Lahey Fortran 8.1
  7476. whole_archive_flag_spec=
  7477. tmp_sharedflag='--shared' ;;
  7478. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7479. tmp_sharedflag='-qmkshrobj'
  7480. tmp_addflag= ;;
  7481. esac
  7482. case `$CC -V 2>&1 | sed 5q` in
  7483. *Sun\ C*) # Sun C 5.9
  7484. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7485. compiler_needs_object=yes
  7486. tmp_sharedflag='-G' ;;
  7487. *Sun\ F*) # Sun Fortran 8.3
  7488. tmp_sharedflag='-G' ;;
  7489. esac
  7490. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7491. if test "x$supports_anon_versioning" = xyes; then
  7492. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7493. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7494. echo "local: *; };" >> $output_objdir/$libname.ver~
  7495. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7496. fi
  7497. case $cc_basename in
  7498. xlf*)
  7499. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7500. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7501. hardcode_libdir_flag_spec=
  7502. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7503. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7504. if test "x$supports_anon_versioning" = xyes; then
  7505. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7506. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7507. echo "local: *; };" >> $output_objdir/$libname.ver~
  7508. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7509. fi
  7510. ;;
  7511. esac
  7512. else
  7513. ld_shlibs=no
  7514. fi
  7515. ;;
  7516. netbsd* | netbsdelf*-gnu)
  7517. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7518. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7519. wlarc=
  7520. else
  7521. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7522. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7523. fi
  7524. ;;
  7525. solaris*)
  7526. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7527. ld_shlibs=no
  7528. cat <<_LT_EOF 1>&2
  7529. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7530. *** create shared libraries on Solaris systems. Therefore, libtool
  7531. *** is disabling shared libraries support. We urge you to upgrade GNU
  7532. *** binutils to release 2.9.1 or newer. Another option is to modify
  7533. *** your PATH or compiler configuration so that the native linker is
  7534. *** used, and then restart.
  7535. _LT_EOF
  7536. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7537. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7538. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7539. else
  7540. ld_shlibs=no
  7541. fi
  7542. ;;
  7543. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7544. case `$LD -v 2>&1` in
  7545. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7546. ld_shlibs=no
  7547. cat <<_LT_EOF 1>&2
  7548. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7549. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7550. *** is disabling shared libraries support. We urge you to upgrade GNU
  7551. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7552. *** your PATH or compiler configuration so that the native linker is
  7553. *** used, and then restart.
  7554. _LT_EOF
  7555. ;;
  7556. *)
  7557. # For security reasons, it is highly recommended that you always
  7558. # use absolute paths for naming shared libraries, and exclude the
  7559. # DT_RUNPATH tag from executables and libraries. But doing so
  7560. # requires that you compile everything twice, which is a pain.
  7561. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7562. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7563. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7564. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7565. else
  7566. ld_shlibs=no
  7567. fi
  7568. ;;
  7569. esac
  7570. ;;
  7571. sunos4*)
  7572. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7573. wlarc=
  7574. hardcode_direct=yes
  7575. hardcode_shlibpath_var=no
  7576. ;;
  7577. *)
  7578. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7579. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7580. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7581. else
  7582. ld_shlibs=no
  7583. fi
  7584. ;;
  7585. esac
  7586. if test "$ld_shlibs" = no; then
  7587. runpath_var=
  7588. hardcode_libdir_flag_spec=
  7589. export_dynamic_flag_spec=
  7590. whole_archive_flag_spec=
  7591. fi
  7592. else
  7593. # PORTME fill in a description of your system's linker (not GNU ld)
  7594. case $host_os in
  7595. aix3*)
  7596. allow_undefined_flag=unsupported
  7597. always_export_symbols=yes
  7598. 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'
  7599. # Note: this linker hardcodes the directories in LIBPATH if there
  7600. # are no directories specified by -L.
  7601. hardcode_minus_L=yes
  7602. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7603. # Neither direct hardcoding nor static linking is supported with a
  7604. # broken collect2.
  7605. hardcode_direct=unsupported
  7606. fi
  7607. ;;
  7608. aix[4-9]*)
  7609. if test "$host_cpu" = ia64; then
  7610. # On IA64, the linker does run time linking by default, so we don't
  7611. # have to do anything special.
  7612. aix_use_runtimelinking=no
  7613. exp_sym_flag='-Bexport'
  7614. no_entry_flag=""
  7615. else
  7616. # If we're using GNU nm, then we don't want the "-C" option.
  7617. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7618. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7619. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7620. else
  7621. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7622. fi
  7623. aix_use_runtimelinking=no
  7624. # Test if we are trying to use run time linking or normal
  7625. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7626. # need to do runtime linking.
  7627. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7628. for ld_flag in $LDFLAGS; do
  7629. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7630. aix_use_runtimelinking=yes
  7631. break
  7632. fi
  7633. done
  7634. ;;
  7635. esac
  7636. exp_sym_flag='-bexport'
  7637. no_entry_flag='-bnoentry'
  7638. fi
  7639. # When large executables or shared objects are built, AIX ld can
  7640. # have problems creating the table of contents. If linking a library
  7641. # or program results in "error TOC overflow" add -mminimal-toc to
  7642. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7643. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7644. archive_cmds=''
  7645. hardcode_direct=yes
  7646. hardcode_direct_absolute=yes
  7647. hardcode_libdir_separator=':'
  7648. link_all_deplibs=yes
  7649. file_list_spec='${wl}-f,'
  7650. if test "$GCC" = yes; then
  7651. case $host_os in aix4.[012]|aix4.[012].*)
  7652. # We only want to do this on AIX 4.2 and lower, the check
  7653. # below for broken collect2 doesn't work under 4.3+
  7654. collect2name=`${CC} -print-prog-name=collect2`
  7655. if test -f "$collect2name" &&
  7656. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7657. then
  7658. # We have reworked collect2
  7659. :
  7660. else
  7661. # We have old collect2
  7662. hardcode_direct=unsupported
  7663. # It fails to find uninstalled libraries when the uninstalled
  7664. # path is not listed in the libpath. Setting hardcode_minus_L
  7665. # to unsupported forces relinking
  7666. hardcode_minus_L=yes
  7667. hardcode_libdir_flag_spec='-L$libdir'
  7668. hardcode_libdir_separator=
  7669. fi
  7670. ;;
  7671. esac
  7672. shared_flag='-shared'
  7673. if test "$aix_use_runtimelinking" = yes; then
  7674. shared_flag="$shared_flag "'${wl}-G'
  7675. fi
  7676. link_all_deplibs=no
  7677. else
  7678. # not using gcc
  7679. if test "$host_cpu" = ia64; then
  7680. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7681. # chokes on -Wl,-G. The following line is correct:
  7682. shared_flag='-G'
  7683. else
  7684. if test "$aix_use_runtimelinking" = yes; then
  7685. shared_flag='${wl}-G'
  7686. else
  7687. shared_flag='${wl}-bM:SRE'
  7688. fi
  7689. fi
  7690. fi
  7691. export_dynamic_flag_spec='${wl}-bexpall'
  7692. # It seems that -bexpall does not export symbols beginning with
  7693. # underscore (_), so it is better to generate a list of symbols to export.
  7694. always_export_symbols=yes
  7695. if test "$aix_use_runtimelinking" = yes; then
  7696. # Warning - without using the other runtime loading flags (-brtl),
  7697. # -berok will link without error, but may produce a broken library.
  7698. allow_undefined_flag='-berok'
  7699. # Determine the default libpath from the value encoded in an
  7700. # empty executable.
  7701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7702. /* end confdefs.h. */
  7703. int
  7704. main ()
  7705. {
  7706. ;
  7707. return 0;
  7708. }
  7709. _ACEOF
  7710. if ac_fn_c_try_link "$LINENO"; then :
  7711. lt_aix_libpath_sed='
  7712. /Import File Strings/,/^$/ {
  7713. /^0/ {
  7714. s/^0 *\(.*\)$/\1/
  7715. p
  7716. }
  7717. }'
  7718. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7719. # Check for a 64-bit object if we didn't find anything.
  7720. if test -z "$aix_libpath"; then
  7721. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7722. fi
  7723. fi
  7724. rm -f core conftest.err conftest.$ac_objext \
  7725. conftest$ac_exeext conftest.$ac_ext
  7726. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7727. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7728. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7729. else
  7730. if test "$host_cpu" = ia64; then
  7731. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7732. allow_undefined_flag="-z nodefs"
  7733. 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"
  7734. else
  7735. # Determine the default libpath from the value encoded in an
  7736. # empty executable.
  7737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7738. /* end confdefs.h. */
  7739. int
  7740. main ()
  7741. {
  7742. ;
  7743. return 0;
  7744. }
  7745. _ACEOF
  7746. if ac_fn_c_try_link "$LINENO"; then :
  7747. lt_aix_libpath_sed='
  7748. /Import File Strings/,/^$/ {
  7749. /^0/ {
  7750. s/^0 *\(.*\)$/\1/
  7751. p
  7752. }
  7753. }'
  7754. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7755. # Check for a 64-bit object if we didn't find anything.
  7756. if test -z "$aix_libpath"; then
  7757. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7758. fi
  7759. fi
  7760. rm -f core conftest.err conftest.$ac_objext \
  7761. conftest$ac_exeext conftest.$ac_ext
  7762. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7763. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7764. # Warning - without using the other run time loading flags,
  7765. # -berok will link without error, but may produce a broken library.
  7766. no_undefined_flag=' ${wl}-bernotok'
  7767. allow_undefined_flag=' ${wl}-berok'
  7768. # Exported symbols can be pulled into shared objects from archives
  7769. whole_archive_flag_spec='$convenience'
  7770. archive_cmds_need_lc=yes
  7771. # This is similar to how AIX traditionally builds its shared libraries.
  7772. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7773. fi
  7774. fi
  7775. ;;
  7776. amigaos*)
  7777. case $host_cpu in
  7778. powerpc)
  7779. # see comment about AmigaOS4 .so support
  7780. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7781. archive_expsym_cmds=''
  7782. ;;
  7783. m68k)
  7784. 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)'
  7785. hardcode_libdir_flag_spec='-L$libdir'
  7786. hardcode_minus_L=yes
  7787. ;;
  7788. esac
  7789. ;;
  7790. bsdi[45]*)
  7791. export_dynamic_flag_spec=-rdynamic
  7792. ;;
  7793. cygwin* | mingw* | pw32* | cegcc*)
  7794. # When not using gcc, we currently assume that we are using
  7795. # Microsoft Visual C++.
  7796. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7797. # no search path for DLLs.
  7798. hardcode_libdir_flag_spec=' '
  7799. allow_undefined_flag=unsupported
  7800. # Tell ltmain to make .lib files, not .a files.
  7801. libext=lib
  7802. # Tell ltmain to make .dll files, not .so files.
  7803. shrext_cmds=".dll"
  7804. # FIXME: Setting linknames here is a bad hack.
  7805. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7806. # The linker will automatically build a .lib file if we build a DLL.
  7807. old_archive_from_new_cmds='true'
  7808. # FIXME: Should let the user specify the lib program.
  7809. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7810. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7811. enable_shared_with_static_runtimes=yes
  7812. ;;
  7813. darwin* | rhapsody*)
  7814. archive_cmds_need_lc=no
  7815. hardcode_direct=no
  7816. hardcode_automatic=yes
  7817. hardcode_shlibpath_var=unsupported
  7818. whole_archive_flag_spec=''
  7819. link_all_deplibs=yes
  7820. allow_undefined_flag="$_lt_dar_allow_undefined"
  7821. case $cc_basename in
  7822. ifort*) _lt_dar_can_shared=yes ;;
  7823. *) _lt_dar_can_shared=$GCC ;;
  7824. esac
  7825. if test "$_lt_dar_can_shared" = "yes"; then
  7826. output_verbose_link_cmd=echo
  7827. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7828. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7829. 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}"
  7830. 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}"
  7831. else
  7832. ld_shlibs=no
  7833. fi
  7834. ;;
  7835. dgux*)
  7836. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7837. hardcode_libdir_flag_spec='-L$libdir'
  7838. hardcode_shlibpath_var=no
  7839. ;;
  7840. freebsd1*)
  7841. ld_shlibs=no
  7842. ;;
  7843. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7844. # support. Future versions do this automatically, but an explicit c++rt0.o
  7845. # does not break anything, and helps significantly (at the cost of a little
  7846. # extra space).
  7847. freebsd2.2*)
  7848. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7849. hardcode_libdir_flag_spec='-R$libdir'
  7850. hardcode_direct=yes
  7851. hardcode_shlibpath_var=no
  7852. ;;
  7853. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7854. freebsd2*)
  7855. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7856. hardcode_direct=yes
  7857. hardcode_minus_L=yes
  7858. hardcode_shlibpath_var=no
  7859. ;;
  7860. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7861. freebsd* | dragonfly*)
  7862. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7863. hardcode_libdir_flag_spec='-R$libdir'
  7864. hardcode_direct=yes
  7865. hardcode_shlibpath_var=no
  7866. ;;
  7867. hpux9*)
  7868. if test "$GCC" = yes; then
  7869. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7870. else
  7871. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7872. fi
  7873. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7874. hardcode_libdir_separator=:
  7875. hardcode_direct=yes
  7876. # hardcode_minus_L: Not really in the search PATH,
  7877. # but as the default location of the library.
  7878. hardcode_minus_L=yes
  7879. export_dynamic_flag_spec='${wl}-E'
  7880. ;;
  7881. hpux10*)
  7882. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7883. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7884. else
  7885. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7886. fi
  7887. if test "$with_gnu_ld" = no; then
  7888. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7889. hardcode_libdir_flag_spec_ld='+b $libdir'
  7890. hardcode_libdir_separator=:
  7891. hardcode_direct=yes
  7892. hardcode_direct_absolute=yes
  7893. export_dynamic_flag_spec='${wl}-E'
  7894. # hardcode_minus_L: Not really in the search PATH,
  7895. # but as the default location of the library.
  7896. hardcode_minus_L=yes
  7897. fi
  7898. ;;
  7899. hpux11*)
  7900. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7901. case $host_cpu in
  7902. hppa*64*)
  7903. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7904. ;;
  7905. ia64*)
  7906. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7907. ;;
  7908. *)
  7909. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7910. ;;
  7911. esac
  7912. else
  7913. case $host_cpu in
  7914. hppa*64*)
  7915. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7916. ;;
  7917. ia64*)
  7918. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7919. ;;
  7920. *)
  7921. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7922. ;;
  7923. esac
  7924. fi
  7925. if test "$with_gnu_ld" = no; then
  7926. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7927. hardcode_libdir_separator=:
  7928. case $host_cpu in
  7929. hppa*64*|ia64*)
  7930. hardcode_direct=no
  7931. hardcode_shlibpath_var=no
  7932. ;;
  7933. *)
  7934. hardcode_direct=yes
  7935. hardcode_direct_absolute=yes
  7936. export_dynamic_flag_spec='${wl}-E'
  7937. # hardcode_minus_L: Not really in the search PATH,
  7938. # but as the default location of the library.
  7939. hardcode_minus_L=yes
  7940. ;;
  7941. esac
  7942. fi
  7943. ;;
  7944. irix5* | irix6* | nonstopux*)
  7945. if test "$GCC" = yes; then
  7946. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7947. # Try to use the -exported_symbol ld option, if it does not
  7948. # work, assume that -exports_file does not work either and
  7949. # implicitly export all symbols.
  7950. save_LDFLAGS="$LDFLAGS"
  7951. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7952. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7953. /* end confdefs.h. */
  7954. int foo(void) {}
  7955. _ACEOF
  7956. if ac_fn_c_try_link "$LINENO"; then :
  7957. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  7958. fi
  7959. rm -f core conftest.err conftest.$ac_objext \
  7960. conftest$ac_exeext conftest.$ac_ext
  7961. LDFLAGS="$save_LDFLAGS"
  7962. else
  7963. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7964. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  7965. fi
  7966. archive_cmds_need_lc='no'
  7967. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7968. hardcode_libdir_separator=:
  7969. inherit_rpath=yes
  7970. link_all_deplibs=yes
  7971. ;;
  7972. netbsd* | netbsdelf*-gnu)
  7973. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7974. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7975. else
  7976. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7977. fi
  7978. hardcode_libdir_flag_spec='-R$libdir'
  7979. hardcode_direct=yes
  7980. hardcode_shlibpath_var=no
  7981. ;;
  7982. newsos6)
  7983. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7984. hardcode_direct=yes
  7985. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7986. hardcode_libdir_separator=:
  7987. hardcode_shlibpath_var=no
  7988. ;;
  7989. *nto* | *qnx*)
  7990. ;;
  7991. openbsd*)
  7992. if test -f /usr/libexec/ld.so; then
  7993. hardcode_direct=yes
  7994. hardcode_shlibpath_var=no
  7995. hardcode_direct_absolute=yes
  7996. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7997. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7998. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7999. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8000. export_dynamic_flag_spec='${wl}-E'
  8001. else
  8002. case $host_os in
  8003. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8004. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8005. hardcode_libdir_flag_spec='-R$libdir'
  8006. ;;
  8007. *)
  8008. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8009. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8010. ;;
  8011. esac
  8012. fi
  8013. else
  8014. ld_shlibs=no
  8015. fi
  8016. ;;
  8017. os2*)
  8018. hardcode_libdir_flag_spec='-L$libdir'
  8019. hardcode_minus_L=yes
  8020. allow_undefined_flag=unsupported
  8021. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8022. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8023. ;;
  8024. osf3*)
  8025. if test "$GCC" = yes; then
  8026. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8027. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8028. else
  8029. allow_undefined_flag=' -expect_unresolved \*'
  8030. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8031. fi
  8032. archive_cmds_need_lc='no'
  8033. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8034. hardcode_libdir_separator=:
  8035. ;;
  8036. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8037. if test "$GCC" = yes; then
  8038. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8039. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8040. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8041. else
  8042. allow_undefined_flag=' -expect_unresolved \*'
  8043. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8044. 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~
  8045. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8046. # Both c and cxx compiler support -rpath directly
  8047. hardcode_libdir_flag_spec='-rpath $libdir'
  8048. fi
  8049. archive_cmds_need_lc='no'
  8050. hardcode_libdir_separator=:
  8051. ;;
  8052. solaris*)
  8053. no_undefined_flag=' -z defs'
  8054. if test "$GCC" = yes; then
  8055. wlarc='${wl}'
  8056. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8057. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8058. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8059. else
  8060. case `$CC -V 2>&1` in
  8061. *"Compilers 5.0"*)
  8062. wlarc=''
  8063. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8064. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8065. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8066. ;;
  8067. *)
  8068. wlarc='${wl}'
  8069. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8070. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8071. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8072. ;;
  8073. esac
  8074. fi
  8075. hardcode_libdir_flag_spec='-R$libdir'
  8076. hardcode_shlibpath_var=no
  8077. case $host_os in
  8078. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8079. *)
  8080. # The compiler driver will combine and reorder linker options,
  8081. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8082. # but is careful enough not to reorder.
  8083. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8084. if test "$GCC" = yes; then
  8085. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8086. else
  8087. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8088. fi
  8089. ;;
  8090. esac
  8091. link_all_deplibs=yes
  8092. ;;
  8093. sunos4*)
  8094. if test "x$host_vendor" = xsequent; then
  8095. # Use $CC to link under sequent, because it throws in some extra .o
  8096. # files that make .init and .fini sections work.
  8097. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8098. else
  8099. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8100. fi
  8101. hardcode_libdir_flag_spec='-L$libdir'
  8102. hardcode_direct=yes
  8103. hardcode_minus_L=yes
  8104. hardcode_shlibpath_var=no
  8105. ;;
  8106. sysv4)
  8107. case $host_vendor in
  8108. sni)
  8109. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8110. hardcode_direct=yes # is this really true???
  8111. ;;
  8112. siemens)
  8113. ## LD is ld it makes a PLAMLIB
  8114. ## CC just makes a GrossModule.
  8115. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8116. reload_cmds='$CC -r -o $output$reload_objs'
  8117. hardcode_direct=no
  8118. ;;
  8119. motorola)
  8120. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8121. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8122. ;;
  8123. esac
  8124. runpath_var='LD_RUN_PATH'
  8125. hardcode_shlibpath_var=no
  8126. ;;
  8127. sysv4.3*)
  8128. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8129. hardcode_shlibpath_var=no
  8130. export_dynamic_flag_spec='-Bexport'
  8131. ;;
  8132. sysv4*MP*)
  8133. if test -d /usr/nec; then
  8134. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8135. hardcode_shlibpath_var=no
  8136. runpath_var=LD_RUN_PATH
  8137. hardcode_runpath_var=yes
  8138. ld_shlibs=yes
  8139. fi
  8140. ;;
  8141. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8142. no_undefined_flag='${wl}-z,text'
  8143. archive_cmds_need_lc=no
  8144. hardcode_shlibpath_var=no
  8145. runpath_var='LD_RUN_PATH'
  8146. if test "$GCC" = yes; then
  8147. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8148. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8149. else
  8150. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8151. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8152. fi
  8153. ;;
  8154. sysv5* | sco3.2v5* | sco5v6*)
  8155. # Note: We can NOT use -z defs as we might desire, because we do not
  8156. # link with -lc, and that would cause any symbols used from libc to
  8157. # always be unresolved, which means just about no library would
  8158. # ever link correctly. If we're not using GNU ld we use -z text
  8159. # though, which does catch some bad symbols but isn't as heavy-handed
  8160. # as -z defs.
  8161. no_undefined_flag='${wl}-z,text'
  8162. allow_undefined_flag='${wl}-z,nodefs'
  8163. archive_cmds_need_lc=no
  8164. hardcode_shlibpath_var=no
  8165. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8166. hardcode_libdir_separator=':'
  8167. link_all_deplibs=yes
  8168. export_dynamic_flag_spec='${wl}-Bexport'
  8169. runpath_var='LD_RUN_PATH'
  8170. if test "$GCC" = yes; then
  8171. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8172. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8173. else
  8174. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8175. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8176. fi
  8177. ;;
  8178. uts4*)
  8179. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8180. hardcode_libdir_flag_spec='-L$libdir'
  8181. hardcode_shlibpath_var=no
  8182. ;;
  8183. *)
  8184. ld_shlibs=no
  8185. ;;
  8186. esac
  8187. if test x$host_vendor = xsni; then
  8188. case $host in
  8189. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8190. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8191. ;;
  8192. esac
  8193. fi
  8194. fi
  8195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8196. $as_echo "$ld_shlibs" >&6; }
  8197. test "$ld_shlibs" = no && can_build_shared=no
  8198. with_gnu_ld=$with_gnu_ld
  8199. #
  8200. # Do we need to explicitly link libc?
  8201. #
  8202. case "x$archive_cmds_need_lc" in
  8203. x|xyes)
  8204. # Assume -lc should be added
  8205. archive_cmds_need_lc=yes
  8206. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8207. case $archive_cmds in
  8208. *'~'*)
  8209. # FIXME: we may have to deal with multi-command sequences.
  8210. ;;
  8211. '$CC '*)
  8212. # Test whether the compiler implicitly links with -lc since on some
  8213. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8214. # to ld, don't add -lc before -lgcc.
  8215. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8216. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8217. $RM conftest*
  8218. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8219. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8220. (eval $ac_compile) 2>&5
  8221. ac_status=$?
  8222. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8223. test $ac_status = 0; } 2>conftest.err; then
  8224. soname=conftest
  8225. lib=conftest
  8226. libobjs=conftest.$ac_objext
  8227. deplibs=
  8228. wl=$lt_prog_compiler_wl
  8229. pic_flag=$lt_prog_compiler_pic
  8230. compiler_flags=-v
  8231. linker_flags=-v
  8232. verstring=
  8233. output_objdir=.
  8234. libname=conftest
  8235. lt_save_allow_undefined_flag=$allow_undefined_flag
  8236. allow_undefined_flag=
  8237. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8238. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8239. ac_status=$?
  8240. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8241. test $ac_status = 0; }
  8242. then
  8243. archive_cmds_need_lc=no
  8244. else
  8245. archive_cmds_need_lc=yes
  8246. fi
  8247. allow_undefined_flag=$lt_save_allow_undefined_flag
  8248. else
  8249. cat conftest.err 1>&5
  8250. fi
  8251. $RM conftest*
  8252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  8253. $as_echo "$archive_cmds_need_lc" >&6; }
  8254. ;;
  8255. esac
  8256. fi
  8257. ;;
  8258. esac
  8259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8260. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8261. if test "$GCC" = yes; then
  8262. case $host_os in
  8263. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8264. *) lt_awk_arg="/^libraries:/" ;;
  8265. esac
  8266. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8267. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8268. # if the path contains ";" then we assume it to be the separator
  8269. # otherwise default to the standard path separator (i.e. ":") - it is
  8270. # assumed that no part of a normal pathname contains ";" but that should
  8271. # okay in the real world where ";" in dirpaths is itself problematic.
  8272. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8273. else
  8274. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8275. fi
  8276. # Ok, now we have the path, separated by spaces, we can step through it
  8277. # and add multilib dir if necessary.
  8278. lt_tmp_lt_search_path_spec=
  8279. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8280. for lt_sys_path in $lt_search_path_spec; do
  8281. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8282. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8283. else
  8284. test -d "$lt_sys_path" && \
  8285. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8286. fi
  8287. done
  8288. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8289. BEGIN {RS=" "; FS="/|\n";} {
  8290. lt_foo="";
  8291. lt_count=0;
  8292. for (lt_i = NF; lt_i > 0; lt_i--) {
  8293. if ($lt_i != "" && $lt_i != ".") {
  8294. if ($lt_i == "..") {
  8295. lt_count++;
  8296. } else {
  8297. if (lt_count == 0) {
  8298. lt_foo="/" $lt_i lt_foo;
  8299. } else {
  8300. lt_count--;
  8301. }
  8302. }
  8303. }
  8304. }
  8305. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8306. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8307. }'`
  8308. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8309. else
  8310. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8311. fi
  8312. library_names_spec=
  8313. libname_spec='lib$name'
  8314. soname_spec=
  8315. shrext_cmds=".so"
  8316. postinstall_cmds=
  8317. postuninstall_cmds=
  8318. finish_cmds=
  8319. finish_eval=
  8320. shlibpath_var=
  8321. shlibpath_overrides_runpath=unknown
  8322. version_type=none
  8323. dynamic_linker="$host_os ld.so"
  8324. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8325. need_lib_prefix=unknown
  8326. hardcode_into_libs=no
  8327. # when you set need_version to no, make sure it does not cause -set_version
  8328. # flags to be left without arguments
  8329. need_version=unknown
  8330. case $host_os in
  8331. aix3*)
  8332. version_type=linux
  8333. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8334. shlibpath_var=LIBPATH
  8335. # AIX 3 has no versioning support, so we append a major version to the name.
  8336. soname_spec='${libname}${release}${shared_ext}$major'
  8337. ;;
  8338. aix[4-9]*)
  8339. version_type=linux
  8340. need_lib_prefix=no
  8341. need_version=no
  8342. hardcode_into_libs=yes
  8343. if test "$host_cpu" = ia64; then
  8344. # AIX 5 supports IA64
  8345. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8346. shlibpath_var=LD_LIBRARY_PATH
  8347. else
  8348. # With GCC up to 2.95.x, collect2 would create an import file
  8349. # for dependence libraries. The import file would start with
  8350. # the line `#! .'. This would cause the generated library to
  8351. # depend on `.', always an invalid library. This was fixed in
  8352. # development snapshots of GCC prior to 3.0.
  8353. case $host_os in
  8354. aix4 | aix4.[01] | aix4.[01].*)
  8355. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8356. echo ' yes '
  8357. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8358. :
  8359. else
  8360. can_build_shared=no
  8361. fi
  8362. ;;
  8363. esac
  8364. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8365. # soname into executable. Probably we can add versioning support to
  8366. # collect2, so additional links can be useful in future.
  8367. if test "$aix_use_runtimelinking" = yes; then
  8368. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8369. # instead of lib<name>.a to let people know that these are not
  8370. # typical AIX shared libraries.
  8371. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8372. else
  8373. # We preserve .a as extension for shared libraries through AIX4.2
  8374. # and later when we are not doing run time linking.
  8375. library_names_spec='${libname}${release}.a $libname.a'
  8376. soname_spec='${libname}${release}${shared_ext}$major'
  8377. fi
  8378. shlibpath_var=LIBPATH
  8379. fi
  8380. ;;
  8381. amigaos*)
  8382. case $host_cpu in
  8383. powerpc)
  8384. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8385. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8386. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8387. ;;
  8388. m68k)
  8389. library_names_spec='$libname.ixlibrary $libname.a'
  8390. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8391. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8392. ;;
  8393. esac
  8394. ;;
  8395. beos*)
  8396. library_names_spec='${libname}${shared_ext}'
  8397. dynamic_linker="$host_os ld.so"
  8398. shlibpath_var=LIBRARY_PATH
  8399. ;;
  8400. bsdi[45]*)
  8401. version_type=linux
  8402. need_version=no
  8403. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8404. soname_spec='${libname}${release}${shared_ext}$major'
  8405. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8406. shlibpath_var=LD_LIBRARY_PATH
  8407. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8408. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8409. # the default ld.so.conf also contains /usr/contrib/lib and
  8410. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8411. # libtool to hard-code these into programs
  8412. ;;
  8413. cygwin* | mingw* | pw32* | cegcc*)
  8414. version_type=windows
  8415. shrext_cmds=".dll"
  8416. need_version=no
  8417. need_lib_prefix=no
  8418. case $GCC,$host_os in
  8419. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8420. library_names_spec='$libname.dll.a'
  8421. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8422. postinstall_cmds='base_file=`basename \${file}`~
  8423. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8424. dldir=$destdir/`dirname \$dlpath`~
  8425. test -d \$dldir || mkdir -p \$dldir~
  8426. $install_prog $dir/$dlname \$dldir/$dlname~
  8427. chmod a+x \$dldir/$dlname~
  8428. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8429. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8430. fi'
  8431. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8432. dlpath=$dir/\$dldll~
  8433. $RM \$dlpath'
  8434. shlibpath_overrides_runpath=yes
  8435. case $host_os in
  8436. cygwin*)
  8437. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8438. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8439. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8440. ;;
  8441. mingw* | cegcc*)
  8442. # MinGW DLLs use traditional 'lib' prefix
  8443. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8444. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8445. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8446. # It is most probably a Windows format PATH printed by
  8447. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8448. # path with ; separators, and with drive letters. We can handle the
  8449. # drive letters (cygwin fileutils understands them), so leave them,
  8450. # especially as we might pass files found there to a mingw objdump,
  8451. # which wouldn't understand a cygwinified path. Ahh.
  8452. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8453. else
  8454. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8455. fi
  8456. ;;
  8457. pw32*)
  8458. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8459. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8460. ;;
  8461. esac
  8462. ;;
  8463. *)
  8464. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8465. ;;
  8466. esac
  8467. dynamic_linker='Win32 ld.exe'
  8468. # FIXME: first we should search . and the directory the executable is in
  8469. shlibpath_var=PATH
  8470. ;;
  8471. darwin* | rhapsody*)
  8472. dynamic_linker="$host_os dyld"
  8473. version_type=darwin
  8474. need_lib_prefix=no
  8475. need_version=no
  8476. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8477. soname_spec='${libname}${release}${major}$shared_ext'
  8478. shlibpath_overrides_runpath=yes
  8479. shlibpath_var=DYLD_LIBRARY_PATH
  8480. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8481. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8482. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8483. ;;
  8484. dgux*)
  8485. version_type=linux
  8486. need_lib_prefix=no
  8487. need_version=no
  8488. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8489. soname_spec='${libname}${release}${shared_ext}$major'
  8490. shlibpath_var=LD_LIBRARY_PATH
  8491. ;;
  8492. freebsd1*)
  8493. dynamic_linker=no
  8494. ;;
  8495. freebsd* | dragonfly*)
  8496. # DragonFly does not have aout. When/if they implement a new
  8497. # versioning mechanism, adjust this.
  8498. if test -x /usr/bin/objformat; then
  8499. objformat=`/usr/bin/objformat`
  8500. else
  8501. case $host_os in
  8502. freebsd[123]*) objformat=aout ;;
  8503. *) objformat=elf ;;
  8504. esac
  8505. fi
  8506. version_type=freebsd-$objformat
  8507. case $version_type in
  8508. freebsd-elf*)
  8509. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8510. need_version=no
  8511. need_lib_prefix=no
  8512. ;;
  8513. freebsd-*)
  8514. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8515. need_version=yes
  8516. ;;
  8517. esac
  8518. shlibpath_var=LD_LIBRARY_PATH
  8519. case $host_os in
  8520. freebsd2*)
  8521. shlibpath_overrides_runpath=yes
  8522. ;;
  8523. freebsd3.[01]* | freebsdelf3.[01]*)
  8524. shlibpath_overrides_runpath=yes
  8525. hardcode_into_libs=yes
  8526. ;;
  8527. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8528. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8529. shlibpath_overrides_runpath=no
  8530. hardcode_into_libs=yes
  8531. ;;
  8532. *) # from 4.6 on, and DragonFly
  8533. shlibpath_overrides_runpath=yes
  8534. hardcode_into_libs=yes
  8535. ;;
  8536. esac
  8537. ;;
  8538. gnu*)
  8539. version_type=linux
  8540. need_lib_prefix=no
  8541. need_version=no
  8542. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8543. soname_spec='${libname}${release}${shared_ext}$major'
  8544. shlibpath_var=LD_LIBRARY_PATH
  8545. hardcode_into_libs=yes
  8546. ;;
  8547. hpux9* | hpux10* | hpux11*)
  8548. # Give a soname corresponding to the major version so that dld.sl refuses to
  8549. # link against other versions.
  8550. version_type=sunos
  8551. need_lib_prefix=no
  8552. need_version=no
  8553. case $host_cpu in
  8554. ia64*)
  8555. shrext_cmds='.so'
  8556. hardcode_into_libs=yes
  8557. dynamic_linker="$host_os dld.so"
  8558. shlibpath_var=LD_LIBRARY_PATH
  8559. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8560. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8561. soname_spec='${libname}${release}${shared_ext}$major'
  8562. if test "X$HPUX_IA64_MODE" = X32; then
  8563. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8564. else
  8565. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8566. fi
  8567. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8568. ;;
  8569. hppa*64*)
  8570. shrext_cmds='.sl'
  8571. hardcode_into_libs=yes
  8572. dynamic_linker="$host_os dld.sl"
  8573. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8574. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8575. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8576. soname_spec='${libname}${release}${shared_ext}$major'
  8577. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8578. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8579. ;;
  8580. *)
  8581. shrext_cmds='.sl'
  8582. dynamic_linker="$host_os dld.sl"
  8583. shlibpath_var=SHLIB_PATH
  8584. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8585. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8586. soname_spec='${libname}${release}${shared_ext}$major'
  8587. ;;
  8588. esac
  8589. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8590. postinstall_cmds='chmod 555 $lib'
  8591. ;;
  8592. interix[3-9]*)
  8593. version_type=linux
  8594. need_lib_prefix=no
  8595. need_version=no
  8596. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8597. soname_spec='${libname}${release}${shared_ext}$major'
  8598. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8599. shlibpath_var=LD_LIBRARY_PATH
  8600. shlibpath_overrides_runpath=no
  8601. hardcode_into_libs=yes
  8602. ;;
  8603. irix5* | irix6* | nonstopux*)
  8604. case $host_os in
  8605. nonstopux*) version_type=nonstopux ;;
  8606. *)
  8607. if test "$lt_cv_prog_gnu_ld" = yes; then
  8608. version_type=linux
  8609. else
  8610. version_type=irix
  8611. fi ;;
  8612. esac
  8613. need_lib_prefix=no
  8614. need_version=no
  8615. soname_spec='${libname}${release}${shared_ext}$major'
  8616. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8617. case $host_os in
  8618. irix5* | nonstopux*)
  8619. libsuff= shlibsuff=
  8620. ;;
  8621. *)
  8622. case $LD in # libtool.m4 will add one of these switches to LD
  8623. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8624. libsuff= shlibsuff= libmagic=32-bit;;
  8625. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8626. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8627. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8628. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8629. *) libsuff= shlibsuff= libmagic=never-match;;
  8630. esac
  8631. ;;
  8632. esac
  8633. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8634. shlibpath_overrides_runpath=no
  8635. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8636. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8637. hardcode_into_libs=yes
  8638. ;;
  8639. # No shared lib support for Linux oldld, aout, or coff.
  8640. linux*oldld* | linux*aout* | linux*coff*)
  8641. dynamic_linker=no
  8642. ;;
  8643. # This must be Linux ELF.
  8644. linux* | k*bsd*-gnu)
  8645. version_type=linux
  8646. need_lib_prefix=no
  8647. need_version=no
  8648. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8649. soname_spec='${libname}${release}${shared_ext}$major'
  8650. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8651. shlibpath_var=LD_LIBRARY_PATH
  8652. shlibpath_overrides_runpath=no
  8653. # Some binutils ld are patched to set DT_RUNPATH
  8654. save_LDFLAGS=$LDFLAGS
  8655. save_libdir=$libdir
  8656. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8657. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8659. /* end confdefs.h. */
  8660. int
  8661. main ()
  8662. {
  8663. ;
  8664. return 0;
  8665. }
  8666. _ACEOF
  8667. if ac_fn_c_try_link "$LINENO"; then :
  8668. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8669. shlibpath_overrides_runpath=yes
  8670. fi
  8671. fi
  8672. rm -f core conftest.err conftest.$ac_objext \
  8673. conftest$ac_exeext conftest.$ac_ext
  8674. LDFLAGS=$save_LDFLAGS
  8675. libdir=$save_libdir
  8676. # This implies no fast_install, which is unacceptable.
  8677. # Some rework will be needed to allow for fast_install
  8678. # before this can be enabled.
  8679. hardcode_into_libs=yes
  8680. # Append ld.so.conf contents to the search path
  8681. if test -f /etc/ld.so.conf; then
  8682. 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;/^$/d' | tr '\n' ' '`
  8683. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8684. fi
  8685. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8686. # powerpc, because MkLinux only supported shared libraries with the
  8687. # GNU dynamic linker. Since this was broken with cross compilers,
  8688. # most powerpc-linux boxes support dynamic linking these days and
  8689. # people can always --disable-shared, the test was removed, and we
  8690. # assume the GNU/Linux dynamic linker is in use.
  8691. dynamic_linker='GNU/Linux ld.so'
  8692. ;;
  8693. netbsdelf*-gnu)
  8694. version_type=linux
  8695. need_lib_prefix=no
  8696. need_version=no
  8697. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8698. soname_spec='${libname}${release}${shared_ext}$major'
  8699. shlibpath_var=LD_LIBRARY_PATH
  8700. shlibpath_overrides_runpath=no
  8701. hardcode_into_libs=yes
  8702. dynamic_linker='NetBSD ld.elf_so'
  8703. ;;
  8704. netbsd*)
  8705. version_type=sunos
  8706. need_lib_prefix=no
  8707. need_version=no
  8708. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8709. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8710. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8711. dynamic_linker='NetBSD (a.out) ld.so'
  8712. else
  8713. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8714. soname_spec='${libname}${release}${shared_ext}$major'
  8715. dynamic_linker='NetBSD ld.elf_so'
  8716. fi
  8717. shlibpath_var=LD_LIBRARY_PATH
  8718. shlibpath_overrides_runpath=yes
  8719. hardcode_into_libs=yes
  8720. ;;
  8721. newsos6)
  8722. version_type=linux
  8723. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8724. shlibpath_var=LD_LIBRARY_PATH
  8725. shlibpath_overrides_runpath=yes
  8726. ;;
  8727. *nto* | *qnx*)
  8728. version_type=qnx
  8729. need_lib_prefix=no
  8730. need_version=no
  8731. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8732. soname_spec='${libname}${release}${shared_ext}$major'
  8733. shlibpath_var=LD_LIBRARY_PATH
  8734. shlibpath_overrides_runpath=no
  8735. hardcode_into_libs=yes
  8736. dynamic_linker='ldqnx.so'
  8737. ;;
  8738. openbsd*)
  8739. version_type=sunos
  8740. sys_lib_dlsearch_path_spec="/usr/lib"
  8741. need_lib_prefix=no
  8742. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8743. case $host_os in
  8744. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8745. *) need_version=no ;;
  8746. esac
  8747. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8748. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8749. shlibpath_var=LD_LIBRARY_PATH
  8750. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8751. case $host_os in
  8752. openbsd2.[89] | openbsd2.[89].*)
  8753. shlibpath_overrides_runpath=no
  8754. ;;
  8755. *)
  8756. shlibpath_overrides_runpath=yes
  8757. ;;
  8758. esac
  8759. else
  8760. shlibpath_overrides_runpath=yes
  8761. fi
  8762. ;;
  8763. os2*)
  8764. libname_spec='$name'
  8765. shrext_cmds=".dll"
  8766. need_lib_prefix=no
  8767. library_names_spec='$libname${shared_ext} $libname.a'
  8768. dynamic_linker='OS/2 ld.exe'
  8769. shlibpath_var=LIBPATH
  8770. ;;
  8771. osf3* | osf4* | osf5*)
  8772. version_type=osf
  8773. need_lib_prefix=no
  8774. need_version=no
  8775. soname_spec='${libname}${release}${shared_ext}$major'
  8776. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8777. shlibpath_var=LD_LIBRARY_PATH
  8778. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8779. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8780. ;;
  8781. rdos*)
  8782. dynamic_linker=no
  8783. ;;
  8784. solaris*)
  8785. version_type=linux
  8786. need_lib_prefix=no
  8787. need_version=no
  8788. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8789. soname_spec='${libname}${release}${shared_ext}$major'
  8790. shlibpath_var=LD_LIBRARY_PATH
  8791. shlibpath_overrides_runpath=yes
  8792. hardcode_into_libs=yes
  8793. # ldd complains unless libraries are executable
  8794. postinstall_cmds='chmod +x $lib'
  8795. ;;
  8796. sunos4*)
  8797. version_type=sunos
  8798. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8799. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8800. shlibpath_var=LD_LIBRARY_PATH
  8801. shlibpath_overrides_runpath=yes
  8802. if test "$with_gnu_ld" = yes; then
  8803. need_lib_prefix=no
  8804. fi
  8805. need_version=yes
  8806. ;;
  8807. sysv4 | sysv4.3*)
  8808. version_type=linux
  8809. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8810. soname_spec='${libname}${release}${shared_ext}$major'
  8811. shlibpath_var=LD_LIBRARY_PATH
  8812. case $host_vendor in
  8813. sni)
  8814. shlibpath_overrides_runpath=no
  8815. need_lib_prefix=no
  8816. runpath_var=LD_RUN_PATH
  8817. ;;
  8818. siemens)
  8819. need_lib_prefix=no
  8820. ;;
  8821. motorola)
  8822. need_lib_prefix=no
  8823. need_version=no
  8824. shlibpath_overrides_runpath=no
  8825. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8826. ;;
  8827. esac
  8828. ;;
  8829. sysv4*MP*)
  8830. if test -d /usr/nec ;then
  8831. version_type=linux
  8832. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8833. soname_spec='$libname${shared_ext}.$major'
  8834. shlibpath_var=LD_LIBRARY_PATH
  8835. fi
  8836. ;;
  8837. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8838. version_type=freebsd-elf
  8839. need_lib_prefix=no
  8840. need_version=no
  8841. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8842. soname_spec='${libname}${release}${shared_ext}$major'
  8843. shlibpath_var=LD_LIBRARY_PATH
  8844. shlibpath_overrides_runpath=yes
  8845. hardcode_into_libs=yes
  8846. if test "$with_gnu_ld" = yes; then
  8847. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8848. else
  8849. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8850. case $host_os in
  8851. sco3.2v5*)
  8852. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8853. ;;
  8854. esac
  8855. fi
  8856. sys_lib_dlsearch_path_spec='/usr/lib'
  8857. ;;
  8858. tpf*)
  8859. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8860. version_type=linux
  8861. need_lib_prefix=no
  8862. need_version=no
  8863. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8864. shlibpath_var=LD_LIBRARY_PATH
  8865. shlibpath_overrides_runpath=no
  8866. hardcode_into_libs=yes
  8867. ;;
  8868. uts4*)
  8869. version_type=linux
  8870. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8871. soname_spec='${libname}${release}${shared_ext}$major'
  8872. shlibpath_var=LD_LIBRARY_PATH
  8873. ;;
  8874. *)
  8875. dynamic_linker=no
  8876. ;;
  8877. esac
  8878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8879. $as_echo "$dynamic_linker" >&6; }
  8880. test "$dynamic_linker" = no && can_build_shared=no
  8881. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8882. if test "$GCC" = yes; then
  8883. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8884. fi
  8885. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8886. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8887. fi
  8888. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8889. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8890. fi
  8891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8892. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8893. hardcode_action=
  8894. if test -n "$hardcode_libdir_flag_spec" ||
  8895. test -n "$runpath_var" ||
  8896. test "X$hardcode_automatic" = "Xyes" ; then
  8897. # We can hardcode non-existent directories.
  8898. if test "$hardcode_direct" != no &&
  8899. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8900. # have to relink, otherwise we might link with an installed library
  8901. # when we should be linking with a yet-to-be-installed one
  8902. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8903. test "$hardcode_minus_L" != no; then
  8904. # Linking always hardcodes the temporary library directory.
  8905. hardcode_action=relink
  8906. else
  8907. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8908. hardcode_action=immediate
  8909. fi
  8910. else
  8911. # We cannot hardcode anything, or else we can only hardcode existing
  8912. # directories.
  8913. hardcode_action=unsupported
  8914. fi
  8915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8916. $as_echo "$hardcode_action" >&6; }
  8917. if test "$hardcode_action" = relink ||
  8918. test "$inherit_rpath" = yes; then
  8919. # Fast installation is not supported
  8920. enable_fast_install=no
  8921. elif test "$shlibpath_overrides_runpath" = yes ||
  8922. test "$enable_shared" = no; then
  8923. # Fast installation is not necessary
  8924. enable_fast_install=needless
  8925. fi
  8926. if test "x$enable_dlopen" != xyes; then
  8927. enable_dlopen=unknown
  8928. enable_dlopen_self=unknown
  8929. enable_dlopen_self_static=unknown
  8930. else
  8931. lt_cv_dlopen=no
  8932. lt_cv_dlopen_libs=
  8933. case $host_os in
  8934. beos*)
  8935. lt_cv_dlopen="load_add_on"
  8936. lt_cv_dlopen_libs=
  8937. lt_cv_dlopen_self=yes
  8938. ;;
  8939. mingw* | pw32* | cegcc*)
  8940. lt_cv_dlopen="LoadLibrary"
  8941. lt_cv_dlopen_libs=
  8942. ;;
  8943. cygwin*)
  8944. lt_cv_dlopen="dlopen"
  8945. lt_cv_dlopen_libs=
  8946. ;;
  8947. darwin*)
  8948. # if libdl is installed we need to link against it
  8949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8950. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8951. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  8952. $as_echo_n "(cached) " >&6
  8953. else
  8954. ac_check_lib_save_LIBS=$LIBS
  8955. LIBS="-ldl $LIBS"
  8956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8957. /* end confdefs.h. */
  8958. /* Override any GCC internal prototype to avoid an error.
  8959. Use char because int might match the return type of a GCC
  8960. builtin and then its argument prototype would still apply. */
  8961. #ifdef __cplusplus
  8962. extern "C"
  8963. #endif
  8964. char dlopen ();
  8965. int
  8966. main ()
  8967. {
  8968. return dlopen ();
  8969. ;
  8970. return 0;
  8971. }
  8972. _ACEOF
  8973. if ac_fn_c_try_link "$LINENO"; then :
  8974. ac_cv_lib_dl_dlopen=yes
  8975. else
  8976. ac_cv_lib_dl_dlopen=no
  8977. fi
  8978. rm -f core conftest.err conftest.$ac_objext \
  8979. conftest$ac_exeext conftest.$ac_ext
  8980. LIBS=$ac_check_lib_save_LIBS
  8981. fi
  8982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8983. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8984. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  8985. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8986. else
  8987. lt_cv_dlopen="dyld"
  8988. lt_cv_dlopen_libs=
  8989. lt_cv_dlopen_self=yes
  8990. fi
  8991. ;;
  8992. *)
  8993. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  8994. if test "x$ac_cv_func_shl_load" = x""yes; then :
  8995. lt_cv_dlopen="shl_load"
  8996. else
  8997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  8998. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8999. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9000. $as_echo_n "(cached) " >&6
  9001. else
  9002. ac_check_lib_save_LIBS=$LIBS
  9003. LIBS="-ldld $LIBS"
  9004. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9005. /* end confdefs.h. */
  9006. /* Override any GCC internal prototype to avoid an error.
  9007. Use char because int might match the return type of a GCC
  9008. builtin and then its argument prototype would still apply. */
  9009. #ifdef __cplusplus
  9010. extern "C"
  9011. #endif
  9012. char shl_load ();
  9013. int
  9014. main ()
  9015. {
  9016. return shl_load ();
  9017. ;
  9018. return 0;
  9019. }
  9020. _ACEOF
  9021. if ac_fn_c_try_link "$LINENO"; then :
  9022. ac_cv_lib_dld_shl_load=yes
  9023. else
  9024. ac_cv_lib_dld_shl_load=no
  9025. fi
  9026. rm -f core conftest.err conftest.$ac_objext \
  9027. conftest$ac_exeext conftest.$ac_ext
  9028. LIBS=$ac_check_lib_save_LIBS
  9029. fi
  9030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9031. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9032. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9033. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9034. else
  9035. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9036. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9037. lt_cv_dlopen="dlopen"
  9038. else
  9039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9040. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9041. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9042. $as_echo_n "(cached) " >&6
  9043. else
  9044. ac_check_lib_save_LIBS=$LIBS
  9045. LIBS="-ldl $LIBS"
  9046. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9047. /* end confdefs.h. */
  9048. /* Override any GCC internal prototype to avoid an error.
  9049. Use char because int might match the return type of a GCC
  9050. builtin and then its argument prototype would still apply. */
  9051. #ifdef __cplusplus
  9052. extern "C"
  9053. #endif
  9054. char dlopen ();
  9055. int
  9056. main ()
  9057. {
  9058. return dlopen ();
  9059. ;
  9060. return 0;
  9061. }
  9062. _ACEOF
  9063. if ac_fn_c_try_link "$LINENO"; then :
  9064. ac_cv_lib_dl_dlopen=yes
  9065. else
  9066. ac_cv_lib_dl_dlopen=no
  9067. fi
  9068. rm -f core conftest.err conftest.$ac_objext \
  9069. conftest$ac_exeext conftest.$ac_ext
  9070. LIBS=$ac_check_lib_save_LIBS
  9071. fi
  9072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9073. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9074. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9075. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9076. else
  9077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9078. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9079. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9080. $as_echo_n "(cached) " >&6
  9081. else
  9082. ac_check_lib_save_LIBS=$LIBS
  9083. LIBS="-lsvld $LIBS"
  9084. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9085. /* end confdefs.h. */
  9086. /* Override any GCC internal prototype to avoid an error.
  9087. Use char because int might match the return type of a GCC
  9088. builtin and then its argument prototype would still apply. */
  9089. #ifdef __cplusplus
  9090. extern "C"
  9091. #endif
  9092. char dlopen ();
  9093. int
  9094. main ()
  9095. {
  9096. return dlopen ();
  9097. ;
  9098. return 0;
  9099. }
  9100. _ACEOF
  9101. if ac_fn_c_try_link "$LINENO"; then :
  9102. ac_cv_lib_svld_dlopen=yes
  9103. else
  9104. ac_cv_lib_svld_dlopen=no
  9105. fi
  9106. rm -f core conftest.err conftest.$ac_objext \
  9107. conftest$ac_exeext conftest.$ac_ext
  9108. LIBS=$ac_check_lib_save_LIBS
  9109. fi
  9110. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9111. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9112. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9113. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9114. else
  9115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9116. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9117. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9118. $as_echo_n "(cached) " >&6
  9119. else
  9120. ac_check_lib_save_LIBS=$LIBS
  9121. LIBS="-ldld $LIBS"
  9122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9123. /* end confdefs.h. */
  9124. /* Override any GCC internal prototype to avoid an error.
  9125. Use char because int might match the return type of a GCC
  9126. builtin and then its argument prototype would still apply. */
  9127. #ifdef __cplusplus
  9128. extern "C"
  9129. #endif
  9130. char dld_link ();
  9131. int
  9132. main ()
  9133. {
  9134. return dld_link ();
  9135. ;
  9136. return 0;
  9137. }
  9138. _ACEOF
  9139. if ac_fn_c_try_link "$LINENO"; then :
  9140. ac_cv_lib_dld_dld_link=yes
  9141. else
  9142. ac_cv_lib_dld_dld_link=no
  9143. fi
  9144. rm -f core conftest.err conftest.$ac_objext \
  9145. conftest$ac_exeext conftest.$ac_ext
  9146. LIBS=$ac_check_lib_save_LIBS
  9147. fi
  9148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9149. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9150. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9151. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9152. fi
  9153. fi
  9154. fi
  9155. fi
  9156. fi
  9157. fi
  9158. ;;
  9159. esac
  9160. if test "x$lt_cv_dlopen" != xno; then
  9161. enable_dlopen=yes
  9162. else
  9163. enable_dlopen=no
  9164. fi
  9165. case $lt_cv_dlopen in
  9166. dlopen)
  9167. save_CPPFLAGS="$CPPFLAGS"
  9168. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9169. save_LDFLAGS="$LDFLAGS"
  9170. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9171. save_LIBS="$LIBS"
  9172. LIBS="$lt_cv_dlopen_libs $LIBS"
  9173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9174. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9175. if test "${lt_cv_dlopen_self+set}" = set; then :
  9176. $as_echo_n "(cached) " >&6
  9177. else
  9178. if test "$cross_compiling" = yes; then :
  9179. lt_cv_dlopen_self=cross
  9180. else
  9181. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9182. lt_status=$lt_dlunknown
  9183. cat > conftest.$ac_ext <<_LT_EOF
  9184. #line 10690 "configure"
  9185. #include "confdefs.h"
  9186. #if HAVE_DLFCN_H
  9187. #include <dlfcn.h>
  9188. #endif
  9189. #include <stdio.h>
  9190. #ifdef RTLD_GLOBAL
  9191. # define LT_DLGLOBAL RTLD_GLOBAL
  9192. #else
  9193. # ifdef DL_GLOBAL
  9194. # define LT_DLGLOBAL DL_GLOBAL
  9195. # else
  9196. # define LT_DLGLOBAL 0
  9197. # endif
  9198. #endif
  9199. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9200. find out it does not work in some platform. */
  9201. #ifndef LT_DLLAZY_OR_NOW
  9202. # ifdef RTLD_LAZY
  9203. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9204. # else
  9205. # ifdef DL_LAZY
  9206. # define LT_DLLAZY_OR_NOW DL_LAZY
  9207. # else
  9208. # ifdef RTLD_NOW
  9209. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9210. # else
  9211. # ifdef DL_NOW
  9212. # define LT_DLLAZY_OR_NOW DL_NOW
  9213. # else
  9214. # define LT_DLLAZY_OR_NOW 0
  9215. # endif
  9216. # endif
  9217. # endif
  9218. # endif
  9219. #endif
  9220. void fnord() { int i=42;}
  9221. int main ()
  9222. {
  9223. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9224. int status = $lt_dlunknown;
  9225. if (self)
  9226. {
  9227. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9228. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9229. /* dlclose (self); */
  9230. }
  9231. else
  9232. puts (dlerror ());
  9233. return status;
  9234. }
  9235. _LT_EOF
  9236. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9237. (eval $ac_link) 2>&5
  9238. ac_status=$?
  9239. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9240. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9241. (./conftest; exit; ) >&5 2>/dev/null
  9242. lt_status=$?
  9243. case x$lt_status in
  9244. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9245. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9246. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9247. esac
  9248. else :
  9249. # compilation failed
  9250. lt_cv_dlopen_self=no
  9251. fi
  9252. fi
  9253. rm -fr conftest*
  9254. fi
  9255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9256. $as_echo "$lt_cv_dlopen_self" >&6; }
  9257. if test "x$lt_cv_dlopen_self" = xyes; then
  9258. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9260. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9261. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9262. $as_echo_n "(cached) " >&6
  9263. else
  9264. if test "$cross_compiling" = yes; then :
  9265. lt_cv_dlopen_self_static=cross
  9266. else
  9267. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9268. lt_status=$lt_dlunknown
  9269. cat > conftest.$ac_ext <<_LT_EOF
  9270. #line 10786 "configure"
  9271. #include "confdefs.h"
  9272. #if HAVE_DLFCN_H
  9273. #include <dlfcn.h>
  9274. #endif
  9275. #include <stdio.h>
  9276. #ifdef RTLD_GLOBAL
  9277. # define LT_DLGLOBAL RTLD_GLOBAL
  9278. #else
  9279. # ifdef DL_GLOBAL
  9280. # define LT_DLGLOBAL DL_GLOBAL
  9281. # else
  9282. # define LT_DLGLOBAL 0
  9283. # endif
  9284. #endif
  9285. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9286. find out it does not work in some platform. */
  9287. #ifndef LT_DLLAZY_OR_NOW
  9288. # ifdef RTLD_LAZY
  9289. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9290. # else
  9291. # ifdef DL_LAZY
  9292. # define LT_DLLAZY_OR_NOW DL_LAZY
  9293. # else
  9294. # ifdef RTLD_NOW
  9295. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9296. # else
  9297. # ifdef DL_NOW
  9298. # define LT_DLLAZY_OR_NOW DL_NOW
  9299. # else
  9300. # define LT_DLLAZY_OR_NOW 0
  9301. # endif
  9302. # endif
  9303. # endif
  9304. # endif
  9305. #endif
  9306. void fnord() { int i=42;}
  9307. int main ()
  9308. {
  9309. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9310. int status = $lt_dlunknown;
  9311. if (self)
  9312. {
  9313. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9314. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9315. /* dlclose (self); */
  9316. }
  9317. else
  9318. puts (dlerror ());
  9319. return status;
  9320. }
  9321. _LT_EOF
  9322. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9323. (eval $ac_link) 2>&5
  9324. ac_status=$?
  9325. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9326. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9327. (./conftest; exit; ) >&5 2>/dev/null
  9328. lt_status=$?
  9329. case x$lt_status in
  9330. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9331. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9332. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9333. esac
  9334. else :
  9335. # compilation failed
  9336. lt_cv_dlopen_self_static=no
  9337. fi
  9338. fi
  9339. rm -fr conftest*
  9340. fi
  9341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9342. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9343. fi
  9344. CPPFLAGS="$save_CPPFLAGS"
  9345. LDFLAGS="$save_LDFLAGS"
  9346. LIBS="$save_LIBS"
  9347. ;;
  9348. esac
  9349. case $lt_cv_dlopen_self in
  9350. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9351. *) enable_dlopen_self=unknown ;;
  9352. esac
  9353. case $lt_cv_dlopen_self_static in
  9354. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9355. *) enable_dlopen_self_static=unknown ;;
  9356. esac
  9357. fi
  9358. striplib=
  9359. old_striplib=
  9360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9361. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9362. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9363. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9364. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9366. $as_echo "yes" >&6; }
  9367. else
  9368. # FIXME - insert some real tests, host_os isn't really good enough
  9369. case $host_os in
  9370. darwin*)
  9371. if test -n "$STRIP" ; then
  9372. striplib="$STRIP -x"
  9373. old_striplib="$STRIP -S"
  9374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9375. $as_echo "yes" >&6; }
  9376. else
  9377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9378. $as_echo "no" >&6; }
  9379. fi
  9380. ;;
  9381. *)
  9382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9383. $as_echo "no" >&6; }
  9384. ;;
  9385. esac
  9386. fi
  9387. # Report which library types will actually be built
  9388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9389. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9391. $as_echo "$can_build_shared" >&6; }
  9392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9393. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9394. test "$can_build_shared" = "no" && enable_shared=no
  9395. # On AIX, shared libraries and static libraries use the same namespace, and
  9396. # are all built from PIC.
  9397. case $host_os in
  9398. aix3*)
  9399. test "$enable_shared" = yes && enable_static=no
  9400. if test -n "$RANLIB"; then
  9401. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9402. postinstall_cmds='$RANLIB $lib'
  9403. fi
  9404. ;;
  9405. aix[4-9]*)
  9406. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9407. test "$enable_shared" = yes && enable_static=no
  9408. fi
  9409. ;;
  9410. esac
  9411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9412. $as_echo "$enable_shared" >&6; }
  9413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9414. $as_echo_n "checking whether to build static libraries... " >&6; }
  9415. # Make sure either enable_shared or enable_static is yes.
  9416. test "$enable_shared" = yes || enable_static=yes
  9417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9418. $as_echo "$enable_static" >&6; }
  9419. fi
  9420. ac_ext=c
  9421. ac_cpp='$CPP $CPPFLAGS'
  9422. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9423. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9424. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9425. CC="$lt_save_CC"
  9426. ac_config_commands="$ac_config_commands libtool"
  9427. # Only expand once:
  9428. # set GCC options
  9429. # use '-fno-strict-aliasing', but only if the compiler can take it
  9430. if gcc -fno-strict-aliasing -S -o /dev/null -xc /dev/null >/dev/null 2>&1;
  9431. then
  9432. CFLAGS="-fno-strict-aliasing $CFLAGS"
  9433. fi
  9434. # Check system type
  9435. case "$host_os" in
  9436. *darwin* | *rhapsody* | *macosx*)
  9437. cat >>confdefs.h <<_ACEOF
  9438. #define OSX 1
  9439. _ACEOF
  9440. CFLAGS="-no-cpp-precomp -fno-common $CFLAGS"
  9441. if false; then
  9442. HAVE_GNU_LD_TRUE=
  9443. HAVE_GNU_LD_FALSE='#'
  9444. else
  9445. HAVE_GNU_LD_TRUE='#'
  9446. HAVE_GNU_LD_FALSE=
  9447. fi
  9448. ;;
  9449. linux*)
  9450. cat >>confdefs.h <<_ACEOF
  9451. #define LINUX 1
  9452. _ACEOF
  9453. if true; then
  9454. HAVE_GNU_LD_TRUE=
  9455. HAVE_GNU_LD_FALSE='#'
  9456. else
  9457. HAVE_GNU_LD_TRUE='#'
  9458. HAVE_GNU_LD_FALSE=
  9459. fi
  9460. ;;
  9461. freebsd*)
  9462. cat >>confdefs.h <<_ACEOF
  9463. #define SOMEBSD 1
  9464. _ACEOF
  9465. cat >>confdefs.h <<_ACEOF
  9466. #define FREEBSD 1
  9467. _ACEOF
  9468. if true; then
  9469. HAVE_GNU_LD_TRUE=
  9470. HAVE_GNU_LD_FALSE='#'
  9471. else
  9472. HAVE_GNU_LD_TRUE='#'
  9473. HAVE_GNU_LD_FALSE=
  9474. fi
  9475. CFLAGS="-D_THREAD_SAFE $CFLAGS"
  9476. ;;
  9477. openbsd*)
  9478. cat >>confdefs.h <<_ACEOF
  9479. #define SOMEBSD 1
  9480. _ACEOF
  9481. cat >>confdefs.h <<_ACEOF
  9482. #define OPENBSD 1
  9483. _ACEOF
  9484. if true; then
  9485. HAVE_GNU_LD_TRUE=
  9486. HAVE_GNU_LD_FALSE='#'
  9487. else
  9488. HAVE_GNU_LD_TRUE='#'
  9489. HAVE_GNU_LD_FALSE=
  9490. fi
  9491. ;;
  9492. netbsd*)
  9493. cat >>confdefs.h <<_ACEOF
  9494. #define SOMEBSD 1
  9495. _ACEOF
  9496. cat >>confdefs.h <<_ACEOF
  9497. #define NETBSD 1
  9498. _ACEOF
  9499. if true; then
  9500. HAVE_GNU_LD_TRUE=
  9501. HAVE_GNU_LD_FALSE='#'
  9502. else
  9503. HAVE_GNU_LD_TRUE='#'
  9504. HAVE_GNU_LD_FALSE=
  9505. fi
  9506. ;;
  9507. *solaris*)
  9508. cat >>confdefs.h <<_ACEOF
  9509. #define SOLARIS 1
  9510. _ACEOF
  9511. cat >>confdefs.h <<_ACEOF
  9512. #define _REENTRANT 1
  9513. _ACEOF
  9514. if false; then
  9515. HAVE_GNU_LD_TRUE=
  9516. HAVE_GNU_LD_FALSE='#'
  9517. else
  9518. HAVE_GNU_LD_TRUE='#'
  9519. HAVE_GNU_LD_FALSE=
  9520. fi
  9521. LDFLAGS="$LDFLAGS -lpthread"
  9522. ;;
  9523. *arm-linux*)
  9524. cat >>confdefs.h <<_ACEOF
  9525. #define LINUX 1
  9526. _ACEOF
  9527. CFLAGS="-D_REENTRANT -fPIC -pipe $CFLAGS"
  9528. if true; then
  9529. HAVE_GNU_LD_TRUE=
  9530. HAVE_GNU_LD_FALSE='#'
  9531. else
  9532. HAVE_GNU_LD_TRUE='#'
  9533. HAVE_GNU_LD_FALSE=
  9534. fi
  9535. ;;
  9536. *cygwin*)
  9537. cat >>confdefs.h <<_ACEOF
  9538. #define CYGWIN 1
  9539. _ACEOF
  9540. if false; then
  9541. HAVE_GNU_LD_TRUE=
  9542. HAVE_GNU_LD_FALSE='#'
  9543. else
  9544. HAVE_GNU_LD_TRUE='#'
  9545. HAVE_GNU_LD_FALSE=
  9546. fi
  9547. LDFLAGS="$LDFLAGS -no-undefined"
  9548. ;;
  9549. *mingw*)
  9550. cat >>confdefs.h <<_ACEOF
  9551. #define MINGW 1
  9552. _ACEOF
  9553. cat >>confdefs.h <<_ACEOF
  9554. #define WINDOWS 1
  9555. _ACEOF
  9556. LDFLAGS="$LDFLAGS -no-undefined -Wl,--export-all-symbols -lws2_32 -lplibc"
  9557. if true; then
  9558. HAVE_GNU_LD_TRUE=
  9559. HAVE_GNU_LD_FALSE='#'
  9560. else
  9561. HAVE_GNU_LD_TRUE='#'
  9562. HAVE_GNU_LD_FALSE=
  9563. fi
  9564. ;;
  9565. *openedition*)
  9566. cat >>confdefs.h <<_ACEOF
  9567. #define OS390 1
  9568. _ACEOF
  9569. if false; then
  9570. HAVE_GNU_LD_TRUE=
  9571. HAVE_GNU_LD_FALSE='#'
  9572. else
  9573. HAVE_GNU_LD_TRUE='#'
  9574. HAVE_GNU_LD_FALSE=
  9575. fi
  9576. ;;
  9577. *)
  9578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unrecognised OS $host_os" >&5
  9579. $as_echo "Unrecognised OS $host_os" >&6; }
  9580. cat >>confdefs.h <<_ACEOF
  9581. #define OTHEROS 1
  9582. _ACEOF
  9583. if false; then
  9584. HAVE_GNU_LD_TRUE=
  9585. HAVE_GNU_LD_FALSE='#'
  9586. else
  9587. HAVE_GNU_LD_TRUE='#'
  9588. HAVE_GNU_LD_FALSE=
  9589. fi
  9590. ;;
  9591. esac
  9592. # for pkg-config
  9593. MHD_LIBDEPS=""
  9594. # first try without -pthread
  9595. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9596. /* end confdefs.h. */
  9597. #include <pthread.h>
  9598. int
  9599. main ()
  9600. {
  9601. pthread_create(0,0,0,0);
  9602. ;
  9603. return 0;
  9604. }
  9605. _ACEOF
  9606. if ac_fn_c_try_link "$LINENO"; then :
  9607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9608. $as_echo "yes" >&6; }
  9609. PTHREAD_CPPFLAGS=
  9610. PTHREAD_LDFLAGS=
  9611. PTHREAD_LIBS=
  9612. else
  9613. # now with -pthread
  9614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  9615. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  9616. if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
  9617. $as_echo_n "(cached) " >&6
  9618. else
  9619. ac_check_lib_save_LIBS=$LIBS
  9620. LIBS="-lpthread $LIBS"
  9621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9622. /* end confdefs.h. */
  9623. /* Override any GCC internal prototype to avoid an error.
  9624. Use char because int might match the return type of a GCC
  9625. builtin and then its argument prototype would still apply. */
  9626. #ifdef __cplusplus
  9627. extern "C"
  9628. #endif
  9629. char pthread_create ();
  9630. int
  9631. main ()
  9632. {
  9633. return pthread_create ();
  9634. ;
  9635. return 0;
  9636. }
  9637. _ACEOF
  9638. if ac_fn_c_try_link "$LINENO"; then :
  9639. ac_cv_lib_pthread_pthread_create=yes
  9640. else
  9641. ac_cv_lib_pthread_pthread_create=no
  9642. fi
  9643. rm -f core conftest.err conftest.$ac_objext \
  9644. conftest$ac_exeext conftest.$ac_ext
  9645. LIBS=$ac_check_lib_save_LIBS
  9646. fi
  9647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  9648. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  9649. if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
  9650. PTHREAD_CPPFLAGS=
  9651. PTHREAD_LDFLAGS=
  9652. PTHREAD_LIBS=-lpthread
  9653. else
  9654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -pthread" >&5
  9655. $as_echo_n "checking if compiler supports -pthread... " >&6; }
  9656. save_CPPFLAGS="$CPPFLAGS"
  9657. CPPFLAGS="$CPPFLAGS -pthread"
  9658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9659. /* end confdefs.h. */
  9660. #include <pthread.h>
  9661. int
  9662. main ()
  9663. {
  9664. pthread_create(0,0,0,0);
  9665. ;
  9666. return 0;
  9667. }
  9668. _ACEOF
  9669. if ac_fn_c_try_link "$LINENO"; then :
  9670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9671. $as_echo "yes" >&6; }
  9672. PTHREAD_CPPFLAGS=-pthread
  9673. PTHREAD_LDFLAGS=-pthread
  9674. PTHREAD_LIBS=
  9675. else
  9676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9677. $as_echo "no" >&6; }
  9678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -pthreads" >&5
  9679. $as_echo_n "checking if compiler supports -pthreads... " >&6; }
  9680. save_CPPFLAGS="$CPPFLAGS"
  9681. CPPFLAGS="$save_CPPFLAGS -pthreads"
  9682. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9683. /* end confdefs.h. */
  9684. #include <pthread.h>
  9685. int
  9686. main ()
  9687. {
  9688. pthread_create(0,0,0,0);
  9689. ;
  9690. return 0;
  9691. }
  9692. _ACEOF
  9693. if ac_fn_c_try_link "$LINENO"; then :
  9694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9695. $as_echo "yes" >&6; }
  9696. PTHREAD_CPPFLAGS=-pthreads
  9697. PTHREAD_LDFLAGS=-pthreads
  9698. PTHREAD_LIBS=
  9699. else
  9700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9701. $as_echo "no" >&6; }
  9702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -threads" >&5
  9703. $as_echo_n "checking if compiler supports -threads... " >&6; }
  9704. save_CPPFLAGS="$CPPFLAGS"
  9705. CPPFLAGS="$save_CPPFLAGS -threads"
  9706. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9707. /* end confdefs.h. */
  9708. #include <pthread.h>
  9709. int
  9710. main ()
  9711. {
  9712. pthread_create(0,0,0,0);
  9713. ;
  9714. return 0;
  9715. }
  9716. _ACEOF
  9717. if ac_fn_c_try_link "$LINENO"; then :
  9718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9719. $as_echo "yes" >&6; }
  9720. PTHREAD_CPPFLAGS=-threads
  9721. PTHREAD_LDFLAGS=-threads
  9722. PTHREAD_LIBS=
  9723. else
  9724. as_fn_error "Your system is not supporting pthreads!" "$LINENO" 5
  9725. fi
  9726. rm -f core conftest.err conftest.$ac_objext \
  9727. conftest$ac_exeext conftest.$ac_ext
  9728. fi
  9729. rm -f core conftest.err conftest.$ac_objext \
  9730. conftest$ac_exeext conftest.$ac_ext
  9731. fi
  9732. rm -f core conftest.err conftest.$ac_objext \
  9733. conftest$ac_exeext conftest.$ac_ext
  9734. CPPFLAGS="$save_CPPFLAGS"
  9735. fi
  9736. fi
  9737. rm -f core conftest.err conftest.$ac_objext \
  9738. conftest$ac_exeext conftest.$ac_ext
  9739. LIBS="$PTHREAD_LIBS $LIBS"
  9740. # Check for headers that are ALWAYS required
  9741. for ac_header in fcntl.h math.h errno.h limits.h stdio.h locale.h sys/stat.h sys/types.h pthread.h
  9742. do :
  9743. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9744. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9745. eval as_val=\$$as_ac_Header
  9746. if test "x$as_val" = x""yes; then :
  9747. cat >>confdefs.h <<_ACEOF
  9748. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9749. _ACEOF
  9750. else
  9751. as_fn_error "Compiling libmicrohttpd requires standard UNIX headers files" "$LINENO" 5
  9752. fi
  9753. done
  9754. # Check for optional headers
  9755. for ac_header in sys/types.h sys/time.h sys/msg.h netdb.h netinet/in.h netinet/tcp.h time.h sys/socket.h sys/mman.h arpa/inet.h sys/select.h poll.h
  9756. do :
  9757. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9758. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9759. eval as_val=\$$as_ac_Header
  9760. if test "x$as_val" = x""yes; then :
  9761. cat >>confdefs.h <<_ACEOF
  9762. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9763. _ACEOF
  9764. fi
  9765. done
  9766. for ac_func in memmem
  9767. do :
  9768. ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
  9769. if test "x$ac_cv_func_memmem" = x""yes; then :
  9770. cat >>confdefs.h <<_ACEOF
  9771. #define HAVE_MEMMEM 1
  9772. _ACEOF
  9773. fi
  9774. done
  9775. # IPv6
  9776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPv6" >&5
  9777. $as_echo_n "checking for IPv6... " >&6; }
  9778. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9779. /* end confdefs.h. */
  9780. #include <stdio.h>
  9781. #if HAVE_NETINET_IN_H
  9782. #include <netinet/in.h>
  9783. #endif
  9784. #if HAVE_SYS_SOCKET_H
  9785. #include <sys/socket.h>
  9786. #endif
  9787. int
  9788. main ()
  9789. {
  9790. int af=AF_INET6;
  9791. int pf=PF_INET6;
  9792. struct sockaddr_in6 sa;
  9793. printf("%d %d %p\n", af, pf, &sa);
  9794. ;
  9795. return 0;
  9796. }
  9797. _ACEOF
  9798. if ac_fn_c_try_compile "$LINENO"; then :
  9799. have_inet6=yes;
  9800. $as_echo "#define HAVE_INET6 1" >>confdefs.h
  9801. else
  9802. have_inet6=no
  9803. fi
  9804. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_inet6" >&5
  9806. $as_echo "$have_inet6" >&6; }
  9807. # TCP_CORK
  9808. ac_fn_c_check_decl "$LINENO" "TCP_CORK" "ac_cv_have_decl_TCP_CORK" "#include <netinet/tcp.h>
  9809. "
  9810. if test "x$ac_cv_have_decl_TCP_CORK" = x""yes; then :
  9811. ac_have_decl=1
  9812. else
  9813. ac_have_decl=0
  9814. fi
  9815. cat >>confdefs.h <<_ACEOF
  9816. #define HAVE_DECL_TCP_CORK $ac_have_decl
  9817. _ACEOF
  9818. # libcurl (required for testing)
  9819. SAVE_LIBS=$LIBS
  9820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libcurl for testing" >&5
  9821. $as_echo_n "checking whether to use libcurl for testing... " >&6; }
  9822. # Check whether --enable-curl was given.
  9823. if test "${enable_curl+set}" = set; then :
  9824. enableval=$enable_curl; enable_curl=$enableval
  9825. else
  9826. enable_curl="yes"
  9827. fi
  9828. curl=0
  9829. if test "$enable_curl" = "yes"
  9830. then
  9831. # Check whether --with-libcurl was given.
  9832. if test "${with_libcurl+set}" = set; then :
  9833. withval=$with_libcurl; _libcurl_with=$withval
  9834. else
  9835. _libcurl_with=yes
  9836. fi
  9837. if test "$_libcurl_with" != "no" ; then
  9838. for ac_prog in gawk mawk nawk awk
  9839. do
  9840. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9841. set dummy $ac_prog; ac_word=$2
  9842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9843. $as_echo_n "checking for $ac_word... " >&6; }
  9844. if test "${ac_cv_prog_AWK+set}" = set; then :
  9845. $as_echo_n "(cached) " >&6
  9846. else
  9847. if test -n "$AWK"; then
  9848. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  9849. else
  9850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9851. for as_dir in $PATH
  9852. do
  9853. IFS=$as_save_IFS
  9854. test -z "$as_dir" && as_dir=.
  9855. for ac_exec_ext in '' $ac_executable_extensions; do
  9856. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9857. ac_cv_prog_AWK="$ac_prog"
  9858. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9859. break 2
  9860. fi
  9861. done
  9862. done
  9863. IFS=$as_save_IFS
  9864. fi
  9865. fi
  9866. AWK=$ac_cv_prog_AWK
  9867. if test -n "$AWK"; then
  9868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  9869. $as_echo "$AWK" >&6; }
  9870. else
  9871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9872. $as_echo "no" >&6; }
  9873. fi
  9874. test -n "$AWK" && break
  9875. done
  9876. _libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'"
  9877. _libcurl_try_link=yes
  9878. if test -d "$_libcurl_with" ; then
  9879. LIBCURL_CPPFLAGS="-I$withval/include"
  9880. _libcurl_ldflags="-L$withval/lib"
  9881. # Extract the first word of ""$withval/bin/curl-config"", so it can be a program name with args.
  9882. set dummy "$withval/bin/curl-config"; ac_word=$2
  9883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9884. $as_echo_n "checking for $ac_word... " >&6; }
  9885. if test "${ac_cv_path__libcurl_config+set}" = set; then :
  9886. $as_echo_n "(cached) " >&6
  9887. else
  9888. case $_libcurl_config in
  9889. [\\/]* | ?:[\\/]*)
  9890. ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
  9891. ;;
  9892. *)
  9893. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9894. for as_dir in $PATH
  9895. do
  9896. IFS=$as_save_IFS
  9897. test -z "$as_dir" && as_dir=.
  9898. for ac_exec_ext in '' $ac_executable_extensions; do
  9899. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9900. ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
  9901. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9902. break 2
  9903. fi
  9904. done
  9905. done
  9906. IFS=$as_save_IFS
  9907. ;;
  9908. esac
  9909. fi
  9910. _libcurl_config=$ac_cv_path__libcurl_config
  9911. if test -n "$_libcurl_config"; then
  9912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
  9913. $as_echo "$_libcurl_config" >&6; }
  9914. else
  9915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9916. $as_echo "no" >&6; }
  9917. fi
  9918. else
  9919. # Extract the first word of "curl-config", so it can be a program name with args.
  9920. set dummy curl-config; ac_word=$2
  9921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9922. $as_echo_n "checking for $ac_word... " >&6; }
  9923. if test "${ac_cv_path__libcurl_config+set}" = set; then :
  9924. $as_echo_n "(cached) " >&6
  9925. else
  9926. case $_libcurl_config in
  9927. [\\/]* | ?:[\\/]*)
  9928. ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path.
  9929. ;;
  9930. *)
  9931. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9932. for as_dir in $PATH
  9933. do
  9934. IFS=$as_save_IFS
  9935. test -z "$as_dir" && as_dir=.
  9936. for ac_exec_ext in '' $ac_executable_extensions; do
  9937. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9938. ac_cv_path__libcurl_config="$as_dir/$ac_word$ac_exec_ext"
  9939. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9940. break 2
  9941. fi
  9942. done
  9943. done
  9944. IFS=$as_save_IFS
  9945. ;;
  9946. esac
  9947. fi
  9948. _libcurl_config=$ac_cv_path__libcurl_config
  9949. if test -n "$_libcurl_config"; then
  9950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5
  9951. $as_echo "$_libcurl_config" >&6; }
  9952. else
  9953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9954. $as_echo "no" >&6; }
  9955. fi
  9956. fi
  9957. if test x$_libcurl_config != "x" ; then
  9958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5
  9959. $as_echo_n "checking for the version of libcurl... " >&6; }
  9960. if test "${libcurl_cv_lib_curl_version+set}" = set; then :
  9961. $as_echo_n "(cached) " >&6
  9962. else
  9963. libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'`
  9964. fi
  9965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5
  9966. $as_echo "$libcurl_cv_lib_curl_version" >&6; }
  9967. _libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse`
  9968. _libcurl_wanted=`echo 0 | $_libcurl_version_parse`
  9969. if test $_libcurl_wanted -gt 0 ; then
  9970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version " >&5
  9971. $as_echo_n "checking for libcurl >= version ... " >&6; }
  9972. if test "${libcurl_cv_lib_version_ok+set}" = set; then :
  9973. $as_echo_n "(cached) " >&6
  9974. else
  9975. if test $_libcurl_version -ge $_libcurl_wanted ; then
  9976. libcurl_cv_lib_version_ok=yes
  9977. else
  9978. libcurl_cv_lib_version_ok=no
  9979. fi
  9980. fi
  9981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5
  9982. $as_echo "$libcurl_cv_lib_version_ok" >&6; }
  9983. fi
  9984. if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then
  9985. if test x"$LIBCURL_CPPFLAGS" = "x" ; then
  9986. LIBCURL_CPPFLAGS=`$_libcurl_config --cflags`
  9987. fi
  9988. if test x"$LIBCURL" = "x" ; then
  9989. LIBCURL=`$_libcurl_config --libs`
  9990. # This is so silly, but Apple actually has a bug in their
  9991. # curl-config script. Fixed in Tiger, but there are still
  9992. # lots of Panther installs around.
  9993. case "${host}" in
  9994. powerpc-apple-darwin7*)
  9995. LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'`
  9996. ;;
  9997. esac
  9998. fi
  9999. # All curl-config scripts support --feature
  10000. _libcurl_features=`$_libcurl_config --feature`
  10001. # Is it modern enough to have --protocols? (7.12.4)
  10002. if test $_libcurl_version -ge 461828 ; then
  10003. _libcurl_protocols=`$_libcurl_config --protocols`
  10004. fi
  10005. else
  10006. _libcurl_try_link=no
  10007. fi
  10008. unset _libcurl_wanted
  10009. fi
  10010. if test $_libcurl_try_link = yes ; then
  10011. # we didn't find curl-config, so let's see if the user-supplied
  10012. # link line (or failing that, "-lcurl") is enough.
  10013. LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"}
  10014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5
  10015. $as_echo_n "checking whether libcurl is usable... " >&6; }
  10016. if test "${libcurl_cv_lib_curl_usable+set}" = set; then :
  10017. $as_echo_n "(cached) " >&6
  10018. else
  10019. _libcurl_save_cppflags=$CPPFLAGS
  10020. CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS"
  10021. _libcurl_save_libs=$LIBS
  10022. LIBS="$LIBCURL $LIBS"
  10023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10024. /* end confdefs.h. */
  10025. #include <curl/curl.h>
  10026. int
  10027. main ()
  10028. {
  10029. /* Try and use a few common options to force a failure if we are
  10030. missing symbols or can't link. */
  10031. int x;
  10032. curl_easy_setopt(NULL,CURLOPT_URL,NULL);
  10033. x=CURL_ERROR_SIZE;
  10034. x=CURLOPT_WRITEFUNCTION;
  10035. x=CURLOPT_FILE;
  10036. x=CURLOPT_ERRORBUFFER;
  10037. x=CURLOPT_STDERR;
  10038. x=CURLOPT_VERBOSE;
  10039. ;
  10040. return 0;
  10041. }
  10042. _ACEOF
  10043. if ac_fn_c_try_link "$LINENO"; then :
  10044. libcurl_cv_lib_curl_usable=yes
  10045. else
  10046. libcurl_cv_lib_curl_usable=no
  10047. fi
  10048. rm -f core conftest.err conftest.$ac_objext \
  10049. conftest$ac_exeext conftest.$ac_ext
  10050. CPPFLAGS=$_libcurl_save_cppflags
  10051. LIBS=$_libcurl_save_libs
  10052. unset _libcurl_save_cppflags
  10053. unset _libcurl_save_libs
  10054. fi
  10055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5
  10056. $as_echo "$libcurl_cv_lib_curl_usable" >&6; }
  10057. if test $libcurl_cv_lib_curl_usable = yes ; then
  10058. # Does curl_free() exist in this version of libcurl?
  10059. # If not, fake it with free()
  10060. _libcurl_save_cppflags=$CPPFLAGS
  10061. CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS"
  10062. _libcurl_save_libs=$LIBS
  10063. LIBS="$LIBS $LIBCURL"
  10064. ac_fn_c_check_func "$LINENO" "curl_free" "ac_cv_func_curl_free"
  10065. if test "x$ac_cv_func_curl_free" = x""yes; then :
  10066. else
  10067. $as_echo "#define curl_free free" >>confdefs.h
  10068. fi
  10069. CPPFLAGS=$_libcurl_save_cppflags
  10070. LIBS=$_libcurl_save_libs
  10071. unset _libcurl_save_cppflags
  10072. unset _libcurl_save_libs
  10073. $as_echo "#define HAVE_LIBCURL 1" >>confdefs.h
  10074. for _libcurl_feature in $_libcurl_features ; do
  10075. cat >>confdefs.h <<_ACEOF
  10076. #define `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_cpp` 1
  10077. _ACEOF
  10078. eval `$as_echo "libcurl_feature_$_libcurl_feature" | $as_tr_sh`=yes
  10079. done
  10080. if test "x$_libcurl_protocols" = "x" ; then
  10081. # We don't have --protocols, so just assume that all
  10082. # protocols are available
  10083. _libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT"
  10084. if test x$libcurl_feature_SSL = xyes ; then
  10085. _libcurl_protocols="$_libcurl_protocols HTTPS"
  10086. # FTPS wasn't standards-compliant until version
  10087. # 7.11.0
  10088. if test $_libcurl_version -ge 461568; then
  10089. _libcurl_protocols="$_libcurl_protocols FTPS"
  10090. fi
  10091. fi
  10092. fi
  10093. for _libcurl_protocol in $_libcurl_protocols ; do
  10094. cat >>confdefs.h <<_ACEOF
  10095. #define `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_cpp` 1
  10096. _ACEOF
  10097. eval `$as_echo "libcurl_protocol_$_libcurl_protocol" | $as_tr_sh`=yes
  10098. done
  10099. else
  10100. unset LIBCURL
  10101. unset LIBCURL_CPPFLAGS
  10102. fi
  10103. fi
  10104. unset _libcurl_try_link
  10105. unset _libcurl_version_parse
  10106. unset _libcurl_config
  10107. unset _libcurl_feature
  10108. unset _libcurl_features
  10109. unset _libcurl_protocol
  10110. unset _libcurl_protocols
  10111. unset _libcurl_version
  10112. unset _libcurl_ldflags
  10113. fi
  10114. if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then
  10115. # This is the IF-NO path
  10116. curl=0
  10117. else
  10118. # This is the IF-YES path
  10119. curl=1
  10120. fi
  10121. unset _libcurl_with
  10122. # Lib cURL & cURL - OpenSSL versions
  10123. MHD_REQ_CURL_VERSION=7.16.4
  10124. MHD_REQ_CURL_OPENSSL_VERSION=0.9.8
  10125. MHD_REQ_CURL_GNUTLS_VERSION=2.2.3
  10126. cat >>confdefs.h <<_ACEOF
  10127. #define MHD_REQ_CURL_VERSION "$MHD_REQ_CURL_VERSION"
  10128. _ACEOF
  10129. cat >>confdefs.h <<_ACEOF
  10130. #define MHD_REQ_CURL_OPENSSL_VERSION "$MHD_REQ_CURL_OPENSSL_VERSION"
  10131. _ACEOF
  10132. cat >>confdefs.h <<_ACEOF
  10133. #define MHD_REQ_CURL_GNUTLS_VERSION "$MHD_REQ_CURL_GNUTLS_VERSION"
  10134. _ACEOF
  10135. fi
  10136. LIBS=$SAVE_LIBS
  10137. if test x$curl = x1; then
  10138. HAVE_CURL_TRUE=
  10139. HAVE_CURL_FALSE='#'
  10140. else
  10141. HAVE_CURL_TRUE='#'
  10142. HAVE_CURL_FALSE=
  10143. fi
  10144. # large file support (> 4 GB)
  10145. # Check whether --enable-largefile was given.
  10146. if test "${enable_largefile+set}" = set; then :
  10147. enableval=$enable_largefile;
  10148. fi
  10149. if test "$enable_largefile" != no; then
  10150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  10151. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  10152. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  10153. $as_echo_n "(cached) " >&6
  10154. else
  10155. ac_cv_sys_largefile_CC=no
  10156. if test "$GCC" != yes; then
  10157. ac_save_CC=$CC
  10158. while :; do
  10159. # IRIX 6.2 and later do not support large files by default,
  10160. # so use the C compiler's -n32 option if that helps.
  10161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10162. /* end confdefs.h. */
  10163. #include <sys/types.h>
  10164. /* Check that off_t can represent 2**63 - 1 correctly.
  10165. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10166. since some C++ compilers masquerading as C compilers
  10167. incorrectly reject 9223372036854775807. */
  10168. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10169. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10170. && LARGE_OFF_T % 2147483647 == 1)
  10171. ? 1 : -1];
  10172. int
  10173. main ()
  10174. {
  10175. ;
  10176. return 0;
  10177. }
  10178. _ACEOF
  10179. if ac_fn_c_try_compile "$LINENO"; then :
  10180. break
  10181. fi
  10182. rm -f core conftest.err conftest.$ac_objext
  10183. CC="$CC -n32"
  10184. if ac_fn_c_try_compile "$LINENO"; then :
  10185. ac_cv_sys_largefile_CC=' -n32'; break
  10186. fi
  10187. rm -f core conftest.err conftest.$ac_objext
  10188. break
  10189. done
  10190. CC=$ac_save_CC
  10191. rm -f conftest.$ac_ext
  10192. fi
  10193. fi
  10194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  10195. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  10196. if test "$ac_cv_sys_largefile_CC" != no; then
  10197. CC=$CC$ac_cv_sys_largefile_CC
  10198. fi
  10199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10200. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  10201. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  10202. $as_echo_n "(cached) " >&6
  10203. else
  10204. while :; do
  10205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10206. /* end confdefs.h. */
  10207. #include <sys/types.h>
  10208. /* Check that off_t can represent 2**63 - 1 correctly.
  10209. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10210. since some C++ compilers masquerading as C compilers
  10211. incorrectly reject 9223372036854775807. */
  10212. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10213. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10214. && LARGE_OFF_T % 2147483647 == 1)
  10215. ? 1 : -1];
  10216. int
  10217. main ()
  10218. {
  10219. ;
  10220. return 0;
  10221. }
  10222. _ACEOF
  10223. if ac_fn_c_try_compile "$LINENO"; then :
  10224. ac_cv_sys_file_offset_bits=no; break
  10225. fi
  10226. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10227. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10228. /* end confdefs.h. */
  10229. #define _FILE_OFFSET_BITS 64
  10230. #include <sys/types.h>
  10231. /* Check that off_t can represent 2**63 - 1 correctly.
  10232. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10233. since some C++ compilers masquerading as C compilers
  10234. incorrectly reject 9223372036854775807. */
  10235. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10236. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10237. && LARGE_OFF_T % 2147483647 == 1)
  10238. ? 1 : -1];
  10239. int
  10240. main ()
  10241. {
  10242. ;
  10243. return 0;
  10244. }
  10245. _ACEOF
  10246. if ac_fn_c_try_compile "$LINENO"; then :
  10247. ac_cv_sys_file_offset_bits=64; break
  10248. fi
  10249. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10250. ac_cv_sys_file_offset_bits=unknown
  10251. break
  10252. done
  10253. fi
  10254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  10255. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  10256. case $ac_cv_sys_file_offset_bits in #(
  10257. no | unknown) ;;
  10258. *)
  10259. cat >>confdefs.h <<_ACEOF
  10260. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10261. _ACEOF
  10262. ;;
  10263. esac
  10264. rm -rf conftest*
  10265. if test $ac_cv_sys_file_offset_bits = unknown; then
  10266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  10267. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  10268. if test "${ac_cv_sys_large_files+set}" = set; then :
  10269. $as_echo_n "(cached) " >&6
  10270. else
  10271. while :; do
  10272. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10273. /* end confdefs.h. */
  10274. #include <sys/types.h>
  10275. /* Check that off_t can represent 2**63 - 1 correctly.
  10276. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10277. since some C++ compilers masquerading as C compilers
  10278. incorrectly reject 9223372036854775807. */
  10279. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10280. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10281. && LARGE_OFF_T % 2147483647 == 1)
  10282. ? 1 : -1];
  10283. int
  10284. main ()
  10285. {
  10286. ;
  10287. return 0;
  10288. }
  10289. _ACEOF
  10290. if ac_fn_c_try_compile "$LINENO"; then :
  10291. ac_cv_sys_large_files=no; break
  10292. fi
  10293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10294. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10295. /* end confdefs.h. */
  10296. #define _LARGE_FILES 1
  10297. #include <sys/types.h>
  10298. /* Check that off_t can represent 2**63 - 1 correctly.
  10299. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10300. since some C++ compilers masquerading as C compilers
  10301. incorrectly reject 9223372036854775807. */
  10302. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10303. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10304. && LARGE_OFF_T % 2147483647 == 1)
  10305. ? 1 : -1];
  10306. int
  10307. main ()
  10308. {
  10309. ;
  10310. return 0;
  10311. }
  10312. _ACEOF
  10313. if ac_fn_c_try_compile "$LINENO"; then :
  10314. ac_cv_sys_large_files=1; break
  10315. fi
  10316. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10317. ac_cv_sys_large_files=unknown
  10318. break
  10319. done
  10320. fi
  10321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  10322. $as_echo "$ac_cv_sys_large_files" >&6; }
  10323. case $ac_cv_sys_large_files in #(
  10324. no | unknown) ;;
  10325. *)
  10326. cat >>confdefs.h <<_ACEOF
  10327. #define _LARGE_FILES $ac_cv_sys_large_files
  10328. _ACEOF
  10329. ;;
  10330. esac
  10331. rm -rf conftest*
  10332. fi
  10333. fi
  10334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  10335. $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
  10336. if test "${ac_cv_sys_largefile_source+set}" = set; then :
  10337. $as_echo_n "(cached) " >&6
  10338. else
  10339. while :; do
  10340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10341. /* end confdefs.h. */
  10342. #include <sys/types.h> /* for off_t */
  10343. #include <stdio.h>
  10344. int
  10345. main ()
  10346. {
  10347. int (*fp) (FILE *, off_t, int) = fseeko;
  10348. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  10349. ;
  10350. return 0;
  10351. }
  10352. _ACEOF
  10353. if ac_fn_c_try_link "$LINENO"; then :
  10354. ac_cv_sys_largefile_source=no; break
  10355. fi
  10356. rm -f core conftest.err conftest.$ac_objext \
  10357. conftest$ac_exeext conftest.$ac_ext
  10358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10359. /* end confdefs.h. */
  10360. #define _LARGEFILE_SOURCE 1
  10361. #include <sys/types.h> /* for off_t */
  10362. #include <stdio.h>
  10363. int
  10364. main ()
  10365. {
  10366. int (*fp) (FILE *, off_t, int) = fseeko;
  10367. return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
  10368. ;
  10369. return 0;
  10370. }
  10371. _ACEOF
  10372. if ac_fn_c_try_link "$LINENO"; then :
  10373. ac_cv_sys_largefile_source=1; break
  10374. fi
  10375. rm -f core conftest.err conftest.$ac_objext \
  10376. conftest$ac_exeext conftest.$ac_ext
  10377. ac_cv_sys_largefile_source=unknown
  10378. break
  10379. done
  10380. fi
  10381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
  10382. $as_echo "$ac_cv_sys_largefile_source" >&6; }
  10383. case $ac_cv_sys_largefile_source in #(
  10384. no | unknown) ;;
  10385. *)
  10386. cat >>confdefs.h <<_ACEOF
  10387. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  10388. _ACEOF
  10389. ;;
  10390. esac
  10391. rm -rf conftest*
  10392. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  10393. # in glibc 2.1.3, but that breaks too many other things.
  10394. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  10395. if test $ac_cv_sys_largefile_source != unknown; then
  10396. $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
  10397. fi
  10398. # optional: have error messages ?
  10399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable error messages" >&5
  10400. $as_echo_n "checking whether to enable error messages... " >&6; }
  10401. # Check whether --enable-messages was given.
  10402. if test "${enable_messages+set}" = set; then :
  10403. enableval=$enable_messages; enable_messages=$enableval
  10404. else
  10405. enable_messages="no"
  10406. fi
  10407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_messages" >&5
  10408. $as_echo "$enable_messages" >&6; }
  10409. if test "$enable_messages" = "yes"
  10410. then
  10411. $as_echo "#define HAVE_MESSAGES 1" >>confdefs.h
  10412. fi
  10413. # optional: have zzuf, socat?
  10414. # Extract the first word of "zzuf", so it can be a program name with args.
  10415. set dummy zzuf; ac_word=$2
  10416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10417. $as_echo_n "checking for $ac_word... " >&6; }
  10418. if test "${ac_cv_prog_HAVE_ZZUF+set}" = set; then :
  10419. $as_echo_n "(cached) " >&6
  10420. else
  10421. if test -n "$HAVE_ZZUF"; then
  10422. ac_cv_prog_HAVE_ZZUF="$HAVE_ZZUF" # Let the user override the test.
  10423. else
  10424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10425. for as_dir in $PATH
  10426. do
  10427. IFS=$as_save_IFS
  10428. test -z "$as_dir" && as_dir=.
  10429. for ac_exec_ext in '' $ac_executable_extensions; do
  10430. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10431. ac_cv_prog_HAVE_ZZUF="1"
  10432. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10433. break 2
  10434. fi
  10435. done
  10436. done
  10437. IFS=$as_save_IFS
  10438. test -z "$ac_cv_prog_HAVE_ZZUF" && ac_cv_prog_HAVE_ZZUF="0"
  10439. fi
  10440. fi
  10441. HAVE_ZZUF=$ac_cv_prog_HAVE_ZZUF
  10442. if test -n "$HAVE_ZZUF"; then
  10443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ZZUF" >&5
  10444. $as_echo "$HAVE_ZZUF" >&6; }
  10445. else
  10446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10447. $as_echo "no" >&6; }
  10448. fi
  10449. # Extract the first word of "socat", so it can be a program name with args.
  10450. set dummy socat; ac_word=$2
  10451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10452. $as_echo_n "checking for $ac_word... " >&6; }
  10453. if test "${ac_cv_prog_HAVE_SOCAT+set}" = set; then :
  10454. $as_echo_n "(cached) " >&6
  10455. else
  10456. if test -n "$HAVE_SOCAT"; then
  10457. ac_cv_prog_HAVE_SOCAT="$HAVE_SOCAT" # Let the user override the test.
  10458. else
  10459. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10460. for as_dir in $PATH
  10461. do
  10462. IFS=$as_save_IFS
  10463. test -z "$as_dir" && as_dir=.
  10464. for ac_exec_ext in '' $ac_executable_extensions; do
  10465. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10466. ac_cv_prog_HAVE_SOCAT="1"
  10467. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10468. break 2
  10469. fi
  10470. done
  10471. done
  10472. IFS=$as_save_IFS
  10473. test -z "$ac_cv_prog_HAVE_SOCAT" && ac_cv_prog_HAVE_SOCAT="0"
  10474. fi
  10475. fi
  10476. HAVE_SOCAT=$ac_cv_prog_HAVE_SOCAT
  10477. if test -n "$HAVE_SOCAT"; then
  10478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_SOCAT" >&5
  10479. $as_echo "$HAVE_SOCAT" >&6; }
  10480. else
  10481. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10482. $as_echo "no" >&6; }
  10483. fi
  10484. if test 0 != $HAVE_ZZUF; then
  10485. HAVE_ZZUF_TRUE=
  10486. HAVE_ZZUF_FALSE='#'
  10487. else
  10488. HAVE_ZZUF_TRUE='#'
  10489. HAVE_ZZUF_FALSE=
  10490. fi
  10491. if test 0 != $HAVE_SOCAT; then
  10492. HAVE_SOCAT_TRUE=
  10493. HAVE_SOCAT_FALSE='#'
  10494. else
  10495. HAVE_SOCAT_TRUE='#'
  10496. HAVE_SOCAT_FALSE=
  10497. fi
  10498. # libgcrypt linkage: required for HTTPS support
  10499. # Check whether --with-libgcrypt-prefix was given.
  10500. if test "${with_libgcrypt_prefix+set}" = set; then :
  10501. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  10502. else
  10503. libgcrypt_config_prefix=""
  10504. fi
  10505. if test x$libgcrypt_config_prefix != x ; then
  10506. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  10507. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  10508. fi
  10509. fi
  10510. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  10511. set dummy libgcrypt-config; ac_word=$2
  10512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10513. $as_echo_n "checking for $ac_word... " >&6; }
  10514. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then :
  10515. $as_echo_n "(cached) " >&6
  10516. else
  10517. case $LIBGCRYPT_CONFIG in
  10518. [\\/]* | ?:[\\/]*)
  10519. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  10520. ;;
  10521. *)
  10522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10523. for as_dir in $PATH
  10524. do
  10525. IFS=$as_save_IFS
  10526. test -z "$as_dir" && as_dir=.
  10527. for ac_exec_ext in '' $ac_executable_extensions; do
  10528. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10529. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10530. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10531. break 2
  10532. fi
  10533. done
  10534. done
  10535. IFS=$as_save_IFS
  10536. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  10537. ;;
  10538. esac
  10539. fi
  10540. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  10541. if test -n "$LIBGCRYPT_CONFIG"; then
  10542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
  10543. $as_echo "$LIBGCRYPT_CONFIG" >&6; }
  10544. else
  10545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10546. $as_echo "no" >&6; }
  10547. fi
  10548. tmp=1.2.2
  10549. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  10550. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  10551. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  10552. else
  10553. req_libgcrypt_api=0
  10554. min_libgcrypt_version="$tmp"
  10555. fi
  10556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  10557. $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
  10558. ok=no
  10559. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  10560. req_major=`echo $min_libgcrypt_version | \
  10561. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  10562. req_minor=`echo $min_libgcrypt_version | \
  10563. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  10564. req_micro=`echo $min_libgcrypt_version | \
  10565. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  10566. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  10567. major=`echo $libgcrypt_config_version | \
  10568. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  10569. minor=`echo $libgcrypt_config_version | \
  10570. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  10571. micro=`echo $libgcrypt_config_version | \
  10572. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  10573. if test "$major" -gt "$req_major"; then
  10574. ok=yes
  10575. else
  10576. if test "$major" -eq "$req_major"; then
  10577. if test "$minor" -gt "$req_minor"; then
  10578. ok=yes
  10579. else
  10580. if test "$minor" -eq "$req_minor"; then
  10581. if test "$micro" -ge "$req_micro"; then
  10582. ok=yes
  10583. fi
  10584. fi
  10585. fi
  10586. fi
  10587. fi
  10588. fi
  10589. if test $ok = yes; then
  10590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
  10591. $as_echo "yes ($libgcrypt_config_version)" >&6; }
  10592. else
  10593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10594. $as_echo "no" >&6; }
  10595. fi
  10596. if test $ok = yes; then
  10597. # If we have a recent libgcrypt, we should also check that the
  10598. # API is compatible
  10599. if test "$req_libgcrypt_api" -gt 0 ; then
  10600. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  10601. if test "$tmp" -gt 0 ; then
  10602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
  10603. $as_echo_n "checking LIBGCRYPT API version... " >&6; }
  10604. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  10605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
  10606. $as_echo "okay" >&6; }
  10607. else
  10608. ok=no
  10609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  10610. $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  10611. fi
  10612. fi
  10613. fi
  10614. fi
  10615. if test $ok = yes; then
  10616. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  10617. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  10618. gcrypt=true
  10619. else
  10620. LIBGCRYPT_CFLAGS=""
  10621. LIBGCRYPT_LIBS=""
  10622. :
  10623. fi
  10624. # define the minimal version of libgcrypt required
  10625. MHD_GCRYPT_VERSION=1:1.2.2
  10626. cat >>confdefs.h <<_ACEOF
  10627. #define MHD_GCRYPT_VERSION "$MHD_GCRYPT_VERSION"
  10628. _ACEOF
  10629. # optional: HTTPS support. Enabled by default
  10630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable HTTPS support" >&5
  10631. $as_echo_n "checking whether to enable HTTPS support... " >&6; }
  10632. # Check whether --enable-https was given.
  10633. if test "${enable_https+set}" = set; then :
  10634. enableval=$enable_https; enable_https=$enableval
  10635. else
  10636. enable_https="yes"
  10637. fi
  10638. if test "$enable_https" = "yes"
  10639. then
  10640. if test "$gcrypt" = "true"
  10641. then
  10642. $as_echo "#define HTTPS_SUPPORT 1" >>confdefs.h
  10643. MHD_LIBDEPS="$LIBGCRYPT_LIBS"
  10644. else
  10645. $as_echo "#define HTTPS_SUPPORT 0" >>confdefs.h
  10646. enable_https="no (lacking libgcrypt)"
  10647. fi
  10648. else
  10649. $as_echo "#define HTTPS_SUPPORT 0" >>confdefs.h
  10650. fi
  10651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_https" >&5
  10652. $as_echo "$enable_https" >&6; }
  10653. if test "$enable_https" = "yes"; then
  10654. ENABLE_HTTPS_TRUE=
  10655. ENABLE_HTTPS_FALSE='#'
  10656. else
  10657. ENABLE_HTTPS_TRUE='#'
  10658. ENABLE_HTTPS_FALSE=
  10659. fi
  10660. MHD_LIB_LDFLAGS="-export-dynamic -no-undefined"
  10661. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -export-symbols-regex works" >&5
  10662. $as_echo_n "checking whether -export-symbols-regex works... " >&6; }
  10663. if test "${gn_cv_export_symbols_regex_works+set}" = set; then :
  10664. $as_echo_n "(cached) " >&6
  10665. else
  10666. case "$host_os" in
  10667. mingw*) gn_cv_export_symbols_regex_works=no;;
  10668. *) gn_cv_export_symbols_regex_works=yes;;
  10669. esac
  10670. fi
  10671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gn_cv_export_symbols_regex_works" >&5
  10672. $as_echo "$gn_cv_export_symbols_regex_works" >&6; }
  10673. # optional: compile TLS client side code [only for test running] ?
  10674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile TLS client side code" >&5
  10675. $as_echo_n "checking whether to compile TLS client side code... " >&6; }
  10676. # Check whether --enable-client-side was given.
  10677. if test "${enable_client_side+set}" = set; then :
  10678. enableval=$enable_client_side; enable_client_side=$enableval
  10679. else
  10680. enable_client_side="no"
  10681. fi
  10682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_client_side" >&5
  10683. $as_echo "$enable_client_side" >&6; }
  10684. if test "$enable_client_side" = "no"
  10685. then
  10686. $as_echo "#define MHD_DEBUG_TLS 0" >>confdefs.h
  10687. MSG_CLIENT_SIDE="disabled. running some test cases won't be possible"
  10688. if test "x$gn_cv_export_symbols_regex_works" = "xyes"
  10689. then
  10690. MHD_LIB_LDFLAGS="$MHD_LIB_LDFLAGS -export-symbols \$(srcdir)/EXPORT.sym"
  10691. fi
  10692. else
  10693. $as_echo "#define MHD_DEBUG_TLS 1" >>confdefs.h
  10694. MSG_CLIENT_SIDE="enabled"
  10695. fi
  10696. if test "$enable_client_side" != "no"; then
  10697. MHD_DEBUG_TLS_TRUE=
  10698. MHD_DEBUG_TLS_FALSE='#'
  10699. else
  10700. MHD_DEBUG_TLS_TRUE='#'
  10701. MHD_DEBUG_TLS_FALSE=
  10702. fi
  10703. # Symbols required by GNU_TLS
  10704. $as_echo "#define GNULIB_GC_RANDOM 1" >>confdefs.h
  10705. # gcov compilation
  10706. use_gcov=no
  10707. # Check whether --enable-coverage was given.
  10708. if test "${enable_coverage+set}" = set; then :
  10709. enableval=$enable_coverage; use_gcov=yes
  10710. else
  10711. use_gcov=no
  10712. fi
  10713. if test "x$use_gcov" = "xyes"; then
  10714. USE_COVERAGE_TRUE=
  10715. USE_COVERAGE_FALSE='#'
  10716. else
  10717. USE_COVERAGE_TRUE='#'
  10718. USE_COVERAGE_FALSE=
  10719. fi
  10720. # for pkg-config
  10721. ac_config_files="$ac_config_files libmicrohttpd.pc Makefile contrib/Makefile doc/Makefile m4/Makefile src/Makefile src/include/Makefile src/daemon/Makefile src/daemon/https/Makefile src/daemon/https/tls/Makefile src/daemon/https/x509/Makefile src/daemon/https/lgl/Makefile src/daemon/https/minitasn1/Makefile src/examples/Makefile src/testcurl/Makefile src/testcurl/https/Makefile src/testzzuf/Makefile"
  10722. cat >confcache <<\_ACEOF
  10723. # This file is a shell script that caches the results of configure
  10724. # tests run on this system so they can be shared between configure
  10725. # scripts and configure runs, see configure's option --config-cache.
  10726. # It is not useful on other systems. If it contains results you don't
  10727. # want to keep, you may remove or edit it.
  10728. #
  10729. # config.status only pays attention to the cache file if you give it
  10730. # the --recheck option to rerun configure.
  10731. #
  10732. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10733. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10734. # following values.
  10735. _ACEOF
  10736. # The following way of writing the cache mishandles newlines in values,
  10737. # but we know of no workaround that is simple, portable, and efficient.
  10738. # So, we kill variables containing newlines.
  10739. # Ultrix sh set writes to stderr and can't be redirected directly,
  10740. # and sets the high bit in the cache file unless we assign to the vars.
  10741. (
  10742. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10743. eval ac_val=\$$ac_var
  10744. case $ac_val in #(
  10745. *${as_nl}*)
  10746. case $ac_var in #(
  10747. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10748. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10749. esac
  10750. case $ac_var in #(
  10751. _ | IFS | as_nl) ;; #(
  10752. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10753. *) { eval $ac_var=; unset $ac_var;} ;;
  10754. esac ;;
  10755. esac
  10756. done
  10757. (set) 2>&1 |
  10758. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10759. *${as_nl}ac_space=\ *)
  10760. # `set' does not quote correctly, so add quotes: double-quote
  10761. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10762. sed -n \
  10763. "s/'/'\\\\''/g;
  10764. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10765. ;; #(
  10766. *)
  10767. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10768. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10769. ;;
  10770. esac |
  10771. sort
  10772. ) |
  10773. sed '
  10774. /^ac_cv_env_/b end
  10775. t clear
  10776. :clear
  10777. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10778. t end
  10779. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10780. :end' >>confcache
  10781. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10782. if test -w "$cache_file"; then
  10783. test "x$cache_file" != "x/dev/null" &&
  10784. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10785. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10786. cat confcache >$cache_file
  10787. else
  10788. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10789. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10790. fi
  10791. fi
  10792. rm -f confcache
  10793. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10794. # Let make expand exec_prefix.
  10795. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10796. DEFS=-DHAVE_CONFIG_H
  10797. ac_libobjs=
  10798. ac_ltlibobjs=
  10799. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10800. # 1. Remove the extension, and $U if already installed.
  10801. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10802. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10803. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10804. # will be set to the directory where LIBOBJS objects are built.
  10805. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10806. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10807. done
  10808. LIBOBJS=$ac_libobjs
  10809. LTLIBOBJS=$ac_ltlibobjs
  10810. if test -n "$EXEEXT"; then
  10811. am__EXEEXT_TRUE=
  10812. am__EXEEXT_FALSE='#'
  10813. else
  10814. am__EXEEXT_TRUE='#'
  10815. am__EXEEXT_FALSE=
  10816. fi
  10817. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10818. as_fn_error "conditional \"AMDEP\" was never defined.
  10819. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10820. fi
  10821. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10822. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  10823. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10824. fi
  10825. if test -z "${HAVE_GNU_LD_TRUE}" && test -z "${HAVE_GNU_LD_FALSE}"; then
  10826. as_fn_error "conditional \"HAVE_GNU_LD\" was never defined.
  10827. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10828. fi
  10829. if test -z "${HAVE_GNU_LD_TRUE}" && test -z "${HAVE_GNU_LD_FALSE}"; then
  10830. as_fn_error "conditional \"HAVE_GNU_LD\" was never defined.
  10831. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10832. fi
  10833. if test -z "${HAVE_GNU_LD_TRUE}" && test -z "${HAVE_GNU_LD_FALSE}"; then
  10834. as_fn_error "conditional \"HAVE_GNU_LD\" was never defined.
  10835. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10836. fi
  10837. if test -z "${HAVE_GNU_LD_TRUE}" && test -z "${HAVE_GNU_LD_FALSE}"; then
  10838. as_fn_error "conditional \"HAVE_GNU_LD\" was never defined.
  10839. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10840. fi
  10841. if test -z "${HAVE_GNU_LD_TRUE}" && test -z "${HAVE_GNU_LD_FALSE}"; then
  10842. as_fn_error "conditional \"HAVE_GNU_LD\" was never defined.
  10843. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10844. fi
  10845. if test -z "${HAVE_GNU_LD_TRUE}" && test -z "${HAVE_GNU_LD_FALSE}"; then
  10846. as_fn_error "conditional \"HAVE_GNU_LD\" was never defined.
  10847. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10848. fi
  10849. if test -z "${HAVE_GNU_LD_TRUE}" && test -z "${HAVE_GNU_LD_FALSE}"; then
  10850. as_fn_error "conditional \"HAVE_GNU_LD\" was never defined.
  10851. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10852. fi
  10853. if test -z "${HAVE_GNU_LD_TRUE}" && test -z "${HAVE_GNU_LD_FALSE}"; then
  10854. as_fn_error "conditional \"HAVE_GNU_LD\" was never defined.
  10855. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10856. fi
  10857. if test -z "${HAVE_GNU_LD_TRUE}" && test -z "${HAVE_GNU_LD_FALSE}"; then
  10858. as_fn_error "conditional \"HAVE_GNU_LD\" was never defined.
  10859. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10860. fi
  10861. if test -z "${HAVE_GNU_LD_TRUE}" && test -z "${HAVE_GNU_LD_FALSE}"; then
  10862. as_fn_error "conditional \"HAVE_GNU_LD\" was never defined.
  10863. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10864. fi
  10865. if test -z "${HAVE_GNU_LD_TRUE}" && test -z "${HAVE_GNU_LD_FALSE}"; then
  10866. as_fn_error "conditional \"HAVE_GNU_LD\" was never defined.
  10867. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10868. fi
  10869. if test -z "${HAVE_CURL_TRUE}" && test -z "${HAVE_CURL_FALSE}"; then
  10870. as_fn_error "conditional \"HAVE_CURL\" was never defined.
  10871. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10872. fi
  10873. if test -z "${HAVE_ZZUF_TRUE}" && test -z "${HAVE_ZZUF_FALSE}"; then
  10874. as_fn_error "conditional \"HAVE_ZZUF\" was never defined.
  10875. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10876. fi
  10877. if test -z "${HAVE_SOCAT_TRUE}" && test -z "${HAVE_SOCAT_FALSE}"; then
  10878. as_fn_error "conditional \"HAVE_SOCAT\" was never defined.
  10879. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10880. fi
  10881. if test -z "${ENABLE_HTTPS_TRUE}" && test -z "${ENABLE_HTTPS_FALSE}"; then
  10882. as_fn_error "conditional \"ENABLE_HTTPS\" was never defined.
  10883. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10884. fi
  10885. if test -z "${MHD_DEBUG_TLS_TRUE}" && test -z "${MHD_DEBUG_TLS_FALSE}"; then
  10886. as_fn_error "conditional \"MHD_DEBUG_TLS\" was never defined.
  10887. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10888. fi
  10889. if test -z "${USE_COVERAGE_TRUE}" && test -z "${USE_COVERAGE_FALSE}"; then
  10890. as_fn_error "conditional \"USE_COVERAGE\" was never defined.
  10891. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10892. fi
  10893. : ${CONFIG_STATUS=./config.status}
  10894. ac_write_fail=0
  10895. ac_clean_files_save=$ac_clean_files
  10896. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10897. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10898. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10899. as_write_fail=0
  10900. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10901. #! $SHELL
  10902. # Generated by $as_me.
  10903. # Run this file to recreate the current configuration.
  10904. # Compiler output produced by configure, useful for debugging
  10905. # configure, is in config.log if it exists.
  10906. debug=false
  10907. ac_cs_recheck=false
  10908. ac_cs_silent=false
  10909. SHELL=\${CONFIG_SHELL-$SHELL}
  10910. export SHELL
  10911. _ASEOF
  10912. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10913. ## -------------------- ##
  10914. ## M4sh Initialization. ##
  10915. ## -------------------- ##
  10916. # Be more Bourne compatible
  10917. DUALCASE=1; export DUALCASE # for MKS sh
  10918. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10919. emulate sh
  10920. NULLCMD=:
  10921. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10922. # is contrary to our usage. Disable this feature.
  10923. alias -g '${1+"$@"}'='"$@"'
  10924. setopt NO_GLOB_SUBST
  10925. else
  10926. case `(set -o) 2>/dev/null` in #(
  10927. *posix*) :
  10928. set -o posix ;; #(
  10929. *) :
  10930. ;;
  10931. esac
  10932. fi
  10933. as_nl='
  10934. '
  10935. export as_nl
  10936. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10937. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10938. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10939. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10940. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10941. # but without wasting forks for bash or zsh.
  10942. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10943. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10944. as_echo='print -r --'
  10945. as_echo_n='print -rn --'
  10946. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10947. as_echo='printf %s\n'
  10948. as_echo_n='printf %s'
  10949. else
  10950. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10951. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10952. as_echo_n='/usr/ucb/echo -n'
  10953. else
  10954. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10955. as_echo_n_body='eval
  10956. arg=$1;
  10957. case $arg in #(
  10958. *"$as_nl"*)
  10959. expr "X$arg" : "X\\(.*\\)$as_nl";
  10960. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10961. esac;
  10962. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10963. '
  10964. export as_echo_n_body
  10965. as_echo_n='sh -c $as_echo_n_body as_echo'
  10966. fi
  10967. export as_echo_body
  10968. as_echo='sh -c $as_echo_body as_echo'
  10969. fi
  10970. # The user is always right.
  10971. if test "${PATH_SEPARATOR+set}" != set; then
  10972. PATH_SEPARATOR=:
  10973. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10974. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10975. PATH_SEPARATOR=';'
  10976. }
  10977. fi
  10978. # IFS
  10979. # We need space, tab and new line, in precisely that order. Quoting is
  10980. # there to prevent editors from complaining about space-tab.
  10981. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10982. # splitting by setting IFS to empty value.)
  10983. IFS=" "" $as_nl"
  10984. # Find who we are. Look in the path if we contain no directory separator.
  10985. case $0 in #((
  10986. *[\\/]* ) as_myself=$0 ;;
  10987. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10988. for as_dir in $PATH
  10989. do
  10990. IFS=$as_save_IFS
  10991. test -z "$as_dir" && as_dir=.
  10992. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10993. done
  10994. IFS=$as_save_IFS
  10995. ;;
  10996. esac
  10997. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10998. # in which case we are not to be found in the path.
  10999. if test "x$as_myself" = x; then
  11000. as_myself=$0
  11001. fi
  11002. if test ! -f "$as_myself"; then
  11003. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11004. exit 1
  11005. fi
  11006. # Unset variables that we do not need and which cause bugs (e.g. in
  11007. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11008. # suppresses any "Segmentation fault" message there. '((' could
  11009. # trigger a bug in pdksh 5.2.14.
  11010. for as_var in BASH_ENV ENV MAIL MAILPATH
  11011. do eval test x\${$as_var+set} = xset \
  11012. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11013. done
  11014. PS1='$ '
  11015. PS2='> '
  11016. PS4='+ '
  11017. # NLS nuisances.
  11018. LC_ALL=C
  11019. export LC_ALL
  11020. LANGUAGE=C
  11021. export LANGUAGE
  11022. # CDPATH.
  11023. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11024. # as_fn_error ERROR [LINENO LOG_FD]
  11025. # ---------------------------------
  11026. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11027. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11028. # script with status $?, using 1 if that was 0.
  11029. as_fn_error ()
  11030. {
  11031. as_status=$?; test $as_status -eq 0 && as_status=1
  11032. if test "$3"; then
  11033. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11034. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  11035. fi
  11036. $as_echo "$as_me: error: $1" >&2
  11037. as_fn_exit $as_status
  11038. } # as_fn_error
  11039. # as_fn_set_status STATUS
  11040. # -----------------------
  11041. # Set $? to STATUS, without forking.
  11042. as_fn_set_status ()
  11043. {
  11044. return $1
  11045. } # as_fn_set_status
  11046. # as_fn_exit STATUS
  11047. # -----------------
  11048. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11049. as_fn_exit ()
  11050. {
  11051. set +e
  11052. as_fn_set_status $1
  11053. exit $1
  11054. } # as_fn_exit
  11055. # as_fn_unset VAR
  11056. # ---------------
  11057. # Portably unset VAR.
  11058. as_fn_unset ()
  11059. {
  11060. { eval $1=; unset $1;}
  11061. }
  11062. as_unset=as_fn_unset
  11063. # as_fn_append VAR VALUE
  11064. # ----------------------
  11065. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11066. # advantage of any shell optimizations that allow amortized linear growth over
  11067. # repeated appends, instead of the typical quadratic growth present in naive
  11068. # implementations.
  11069. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11070. eval 'as_fn_append ()
  11071. {
  11072. eval $1+=\$2
  11073. }'
  11074. else
  11075. as_fn_append ()
  11076. {
  11077. eval $1=\$$1\$2
  11078. }
  11079. fi # as_fn_append
  11080. # as_fn_arith ARG...
  11081. # ------------------
  11082. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11083. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11084. # must be portable across $(()) and expr.
  11085. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11086. eval 'as_fn_arith ()
  11087. {
  11088. as_val=$(( $* ))
  11089. }'
  11090. else
  11091. as_fn_arith ()
  11092. {
  11093. as_val=`expr "$@" || test $? -eq 1`
  11094. }
  11095. fi # as_fn_arith
  11096. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11097. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11098. as_expr=expr
  11099. else
  11100. as_expr=false
  11101. fi
  11102. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11103. as_basename=basename
  11104. else
  11105. as_basename=false
  11106. fi
  11107. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11108. as_dirname=dirname
  11109. else
  11110. as_dirname=false
  11111. fi
  11112. as_me=`$as_basename -- "$0" ||
  11113. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11114. X"$0" : 'X\(//\)$' \| \
  11115. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11116. $as_echo X/"$0" |
  11117. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11118. s//\1/
  11119. q
  11120. }
  11121. /^X\/\(\/\/\)$/{
  11122. s//\1/
  11123. q
  11124. }
  11125. /^X\/\(\/\).*/{
  11126. s//\1/
  11127. q
  11128. }
  11129. s/.*/./; q'`
  11130. # Avoid depending upon Character Ranges.
  11131. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11132. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11133. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11134. as_cr_digits='0123456789'
  11135. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11136. ECHO_C= ECHO_N= ECHO_T=
  11137. case `echo -n x` in #(((((
  11138. -n*)
  11139. case `echo 'xy\c'` in
  11140. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11141. xy) ECHO_C='\c';;
  11142. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11143. ECHO_T=' ';;
  11144. esac;;
  11145. *)
  11146. ECHO_N='-n';;
  11147. esac
  11148. rm -f conf$$ conf$$.exe conf$$.file
  11149. if test -d conf$$.dir; then
  11150. rm -f conf$$.dir/conf$$.file
  11151. else
  11152. rm -f conf$$.dir
  11153. mkdir conf$$.dir 2>/dev/null
  11154. fi
  11155. if (echo >conf$$.file) 2>/dev/null; then
  11156. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11157. as_ln_s='ln -s'
  11158. # ... but there are two gotchas:
  11159. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11160. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11161. # In both cases, we have to default to `cp -p'.
  11162. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11163. as_ln_s='cp -p'
  11164. elif ln conf$$.file conf$$ 2>/dev/null; then
  11165. as_ln_s=ln
  11166. else
  11167. as_ln_s='cp -p'
  11168. fi
  11169. else
  11170. as_ln_s='cp -p'
  11171. fi
  11172. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11173. rmdir conf$$.dir 2>/dev/null
  11174. # as_fn_mkdir_p
  11175. # -------------
  11176. # Create "$as_dir" as a directory, including parents if necessary.
  11177. as_fn_mkdir_p ()
  11178. {
  11179. case $as_dir in #(
  11180. -*) as_dir=./$as_dir;;
  11181. esac
  11182. test -d "$as_dir" || eval $as_mkdir_p || {
  11183. as_dirs=
  11184. while :; do
  11185. case $as_dir in #(
  11186. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11187. *) as_qdir=$as_dir;;
  11188. esac
  11189. as_dirs="'$as_qdir' $as_dirs"
  11190. as_dir=`$as_dirname -- "$as_dir" ||
  11191. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11192. X"$as_dir" : 'X\(//\)[^/]' \| \
  11193. X"$as_dir" : 'X\(//\)$' \| \
  11194. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11195. $as_echo X"$as_dir" |
  11196. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11197. s//\1/
  11198. q
  11199. }
  11200. /^X\(\/\/\)[^/].*/{
  11201. s//\1/
  11202. q
  11203. }
  11204. /^X\(\/\/\)$/{
  11205. s//\1/
  11206. q
  11207. }
  11208. /^X\(\/\).*/{
  11209. s//\1/
  11210. q
  11211. }
  11212. s/.*/./; q'`
  11213. test -d "$as_dir" && break
  11214. done
  11215. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11216. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  11217. } # as_fn_mkdir_p
  11218. if mkdir -p . 2>/dev/null; then
  11219. as_mkdir_p='mkdir -p "$as_dir"'
  11220. else
  11221. test -d ./-p && rmdir ./-p
  11222. as_mkdir_p=false
  11223. fi
  11224. if test -x / >/dev/null 2>&1; then
  11225. as_test_x='test -x'
  11226. else
  11227. if ls -dL / >/dev/null 2>&1; then
  11228. as_ls_L_option=L
  11229. else
  11230. as_ls_L_option=
  11231. fi
  11232. as_test_x='
  11233. eval sh -c '\''
  11234. if test -d "$1"; then
  11235. test -d "$1/.";
  11236. else
  11237. case $1 in #(
  11238. -*)set "./$1";;
  11239. esac;
  11240. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  11241. ???[sx]*):;;*)false;;esac;fi
  11242. '\'' sh
  11243. '
  11244. fi
  11245. as_executable_p=$as_test_x
  11246. # Sed expression to map a string onto a valid CPP name.
  11247. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11248. # Sed expression to map a string onto a valid variable name.
  11249. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11250. exec 6>&1
  11251. ## ----------------------------------- ##
  11252. ## Main body of $CONFIG_STATUS script. ##
  11253. ## ----------------------------------- ##
  11254. _ASEOF
  11255. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11256. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11257. # Save the log message, to keep $0 and so on meaningful, and to
  11258. # report actual input values of CONFIG_FILES etc. instead of their
  11259. # values after options handling.
  11260. ac_log="
  11261. This file was extended by libmicrohttpd $as_me 0.4.5, which was
  11262. generated by GNU Autoconf 2.64. Invocation command line was
  11263. CONFIG_FILES = $CONFIG_FILES
  11264. CONFIG_HEADERS = $CONFIG_HEADERS
  11265. CONFIG_LINKS = $CONFIG_LINKS
  11266. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11267. $ $0 $@
  11268. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11269. "
  11270. _ACEOF
  11271. case $ac_config_files in *"
  11272. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11273. esac
  11274. case $ac_config_headers in *"
  11275. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11276. esac
  11277. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11278. # Files that config.status was made for.
  11279. config_files="$ac_config_files"
  11280. config_headers="$ac_config_headers"
  11281. config_commands="$ac_config_commands"
  11282. _ACEOF
  11283. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11284. ac_cs_usage="\
  11285. \`$as_me' instantiates files and other configuration actions
  11286. from templates according to the current configuration. Unless the files
  11287. and actions are specified as TAGs, all are instantiated by default.
  11288. Usage: $0 [OPTION]... [TAG]...
  11289. -h, --help print this help, then exit
  11290. -V, --version print version number and configuration settings, then exit
  11291. -q, --quiet, --silent
  11292. do not print progress messages
  11293. -d, --debug don't remove temporary files
  11294. --recheck update $as_me by reconfiguring in the same conditions
  11295. --file=FILE[:TEMPLATE]
  11296. instantiate the configuration file FILE
  11297. --header=FILE[:TEMPLATE]
  11298. instantiate the configuration header FILE
  11299. Configuration files:
  11300. $config_files
  11301. Configuration headers:
  11302. $config_headers
  11303. Configuration commands:
  11304. $config_commands
  11305. Report bugs to <libmicrohttpd@gnu.org>."
  11306. _ACEOF
  11307. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11308. ac_cs_version="\\
  11309. libmicrohttpd config.status 0.4.5
  11310. configured by $0, generated by GNU Autoconf 2.64,
  11311. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  11312. Copyright (C) 2009 Free Software Foundation, Inc.
  11313. This config.status script is free software; the Free Software Foundation
  11314. gives unlimited permission to copy, distribute and modify it."
  11315. ac_pwd='$ac_pwd'
  11316. srcdir='$srcdir'
  11317. INSTALL='$INSTALL'
  11318. MKDIR_P='$MKDIR_P'
  11319. AWK='$AWK'
  11320. test -n "\$AWK" || AWK=awk
  11321. _ACEOF
  11322. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11323. # The default lists apply if the user does not specify any file.
  11324. ac_need_defaults=:
  11325. while test $# != 0
  11326. do
  11327. case $1 in
  11328. --*=*)
  11329. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11330. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11331. ac_shift=:
  11332. ;;
  11333. *)
  11334. ac_option=$1
  11335. ac_optarg=$2
  11336. ac_shift=shift
  11337. ;;
  11338. esac
  11339. case $ac_option in
  11340. # Handling of the options.
  11341. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11342. ac_cs_recheck=: ;;
  11343. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11344. $as_echo "$ac_cs_version"; exit ;;
  11345. --debug | --debu | --deb | --de | --d | -d )
  11346. debug=: ;;
  11347. --file | --fil | --fi | --f )
  11348. $ac_shift
  11349. case $ac_optarg in
  11350. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11351. esac
  11352. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11353. ac_need_defaults=false;;
  11354. --header | --heade | --head | --hea )
  11355. $ac_shift
  11356. case $ac_optarg in
  11357. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11358. esac
  11359. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11360. ac_need_defaults=false;;
  11361. --he | --h)
  11362. # Conflict between --help and --header
  11363. as_fn_error "ambiguous option: \`$1'
  11364. Try \`$0 --help' for more information.";;
  11365. --help | --hel | -h )
  11366. $as_echo "$ac_cs_usage"; exit ;;
  11367. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11368. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11369. ac_cs_silent=: ;;
  11370. # This is an error.
  11371. -*) as_fn_error "unrecognized option: \`$1'
  11372. Try \`$0 --help' for more information." ;;
  11373. *) as_fn_append ac_config_targets " $1"
  11374. ac_need_defaults=false ;;
  11375. esac
  11376. shift
  11377. done
  11378. ac_configure_extra_args=
  11379. if $ac_cs_silent; then
  11380. exec 6>/dev/null
  11381. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11382. fi
  11383. _ACEOF
  11384. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11385. if \$ac_cs_recheck; then
  11386. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11387. shift
  11388. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11389. CONFIG_SHELL='$SHELL'
  11390. export CONFIG_SHELL
  11391. exec "\$@"
  11392. fi
  11393. _ACEOF
  11394. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11395. exec 5>>config.log
  11396. {
  11397. echo
  11398. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11399. ## Running $as_me. ##
  11400. _ASBOX
  11401. $as_echo "$ac_log"
  11402. } >&5
  11403. _ACEOF
  11404. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11405. #
  11406. # INIT-COMMANDS
  11407. #
  11408. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11409. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11410. # if CDPATH is set.
  11411. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11412. sed_quote_subst='$sed_quote_subst'
  11413. double_quote_subst='$double_quote_subst'
  11414. delay_variable_subst='$delay_variable_subst'
  11415. AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
  11416. DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  11417. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  11418. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  11419. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  11420. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  11421. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  11422. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  11423. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  11424. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  11425. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  11426. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  11427. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  11428. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  11429. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  11430. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  11431. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  11432. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  11433. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  11434. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  11435. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  11436. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  11437. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  11438. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  11439. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  11440. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  11441. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  11442. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  11443. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  11444. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  11445. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11446. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  11447. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  11448. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  11449. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  11450. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  11451. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  11452. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11453. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11454. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11455. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  11456. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  11457. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  11458. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  11459. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  11460. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  11461. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  11462. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  11463. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  11464. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  11465. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  11466. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  11467. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  11468. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  11469. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  11470. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  11471. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  11472. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  11473. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  11474. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  11475. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  11476. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  11477. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  11478. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  11479. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11480. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11481. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  11482. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  11483. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11484. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11485. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  11486. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11487. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11488. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11489. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11490. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11491. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11492. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  11493. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  11494. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  11495. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11496. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  11497. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  11498. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  11499. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  11500. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  11501. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  11502. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  11503. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  11504. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  11505. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  11506. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  11507. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11508. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  11509. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  11510. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11511. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11512. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  11513. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  11514. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  11515. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  11516. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  11517. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  11518. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  11519. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11520. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11521. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11522. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11523. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11524. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  11525. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  11526. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  11527. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11528. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  11529. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  11530. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  11531. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  11532. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  11533. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  11534. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  11535. LTCC='$LTCC'
  11536. LTCFLAGS='$LTCFLAGS'
  11537. compiler='$compiler_DEFAULT'
  11538. # Quote evaled strings.
  11539. for var in SED \
  11540. GREP \
  11541. EGREP \
  11542. FGREP \
  11543. LD \
  11544. NM \
  11545. LN_S \
  11546. lt_SP2NL \
  11547. lt_NL2SP \
  11548. reload_flag \
  11549. deplibs_check_method \
  11550. file_magic_cmd \
  11551. AR \
  11552. AR_FLAGS \
  11553. STRIP \
  11554. RANLIB \
  11555. CC \
  11556. CFLAGS \
  11557. compiler \
  11558. lt_cv_sys_global_symbol_pipe \
  11559. lt_cv_sys_global_symbol_to_cdecl \
  11560. lt_cv_sys_global_symbol_to_c_name_address \
  11561. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11562. SHELL \
  11563. ECHO \
  11564. lt_prog_compiler_no_builtin_flag \
  11565. lt_prog_compiler_wl \
  11566. lt_prog_compiler_pic \
  11567. lt_prog_compiler_static \
  11568. lt_cv_prog_compiler_c_o \
  11569. need_locks \
  11570. DSYMUTIL \
  11571. NMEDIT \
  11572. LIPO \
  11573. OTOOL \
  11574. OTOOL64 \
  11575. shrext_cmds \
  11576. export_dynamic_flag_spec \
  11577. whole_archive_flag_spec \
  11578. compiler_needs_object \
  11579. with_gnu_ld \
  11580. allow_undefined_flag \
  11581. no_undefined_flag \
  11582. hardcode_libdir_flag_spec \
  11583. hardcode_libdir_flag_spec_ld \
  11584. hardcode_libdir_separator \
  11585. fix_srcfile_path \
  11586. exclude_expsyms \
  11587. include_expsyms \
  11588. file_list_spec \
  11589. variables_saved_for_relink \
  11590. libname_spec \
  11591. library_names_spec \
  11592. soname_spec \
  11593. finish_eval \
  11594. old_striplib \
  11595. striplib; do
  11596. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  11597. *[\\\\\\\`\\"\\\$]*)
  11598. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11599. ;;
  11600. *)
  11601. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11602. ;;
  11603. esac
  11604. done
  11605. # Double-quote double-evaled strings.
  11606. for var in reload_cmds \
  11607. old_postinstall_cmds \
  11608. old_postuninstall_cmds \
  11609. old_archive_cmds \
  11610. extract_expsyms_cmds \
  11611. old_archive_from_new_cmds \
  11612. old_archive_from_expsyms_cmds \
  11613. archive_cmds \
  11614. archive_expsym_cmds \
  11615. module_cmds \
  11616. module_expsym_cmds \
  11617. export_symbols_cmds \
  11618. prelink_cmds \
  11619. postinstall_cmds \
  11620. postuninstall_cmds \
  11621. finish_cmds \
  11622. sys_lib_search_path_spec \
  11623. sys_lib_dlsearch_path_spec; do
  11624. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  11625. *[\\\\\\\`\\"\\\$]*)
  11626. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  11627. ;;
  11628. *)
  11629. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11630. ;;
  11631. esac
  11632. done
  11633. # Fix-up fallback echo if it was mangled by the above quoting rules.
  11634. case \$lt_ECHO in
  11635. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  11636. ;;
  11637. esac
  11638. ac_aux_dir='$ac_aux_dir'
  11639. xsi_shell='$xsi_shell'
  11640. lt_shell_append='$lt_shell_append'
  11641. # See if we are running on zsh, and set the options which allow our
  11642. # commands through without removal of \ escapes INIT.
  11643. if test -n "\${ZSH_VERSION+set}" ; then
  11644. setopt NO_GLOB_SUBST
  11645. fi
  11646. PACKAGE='$PACKAGE'
  11647. VERSION='$VERSION'
  11648. TIMESTAMP='$TIMESTAMP'
  11649. RM='$RM'
  11650. ofile='$ofile'
  11651. _ACEOF
  11652. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11653. # Handling of arguments.
  11654. for ac_config_target in $ac_config_targets
  11655. do
  11656. case $ac_config_target in
  11657. "MHD_config.h") CONFIG_HEADERS="$CONFIG_HEADERS MHD_config.h" ;;
  11658. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11659. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11660. "libmicrohttpd.pc") CONFIG_FILES="$CONFIG_FILES libmicrohttpd.pc" ;;
  11661. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11662. "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
  11663. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  11664. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  11665. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11666. "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
  11667. "src/daemon/Makefile") CONFIG_FILES="$CONFIG_FILES src/daemon/Makefile" ;;
  11668. "src/daemon/https/Makefile") CONFIG_FILES="$CONFIG_FILES src/daemon/https/Makefile" ;;
  11669. "src/daemon/https/tls/Makefile") CONFIG_FILES="$CONFIG_FILES src/daemon/https/tls/Makefile" ;;
  11670. "src/daemon/https/x509/Makefile") CONFIG_FILES="$CONFIG_FILES src/daemon/https/x509/Makefile" ;;
  11671. "src/daemon/https/lgl/Makefile") CONFIG_FILES="$CONFIG_FILES src/daemon/https/lgl/Makefile" ;;
  11672. "src/daemon/https/minitasn1/Makefile") CONFIG_FILES="$CONFIG_FILES src/daemon/https/minitasn1/Makefile" ;;
  11673. "src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;;
  11674. "src/testcurl/Makefile") CONFIG_FILES="$CONFIG_FILES src/testcurl/Makefile" ;;
  11675. "src/testcurl/https/Makefile") CONFIG_FILES="$CONFIG_FILES src/testcurl/https/Makefile" ;;
  11676. "src/testzzuf/Makefile") CONFIG_FILES="$CONFIG_FILES src/testzzuf/Makefile" ;;
  11677. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11678. esac
  11679. done
  11680. # If the user did not use the arguments to specify the items to instantiate,
  11681. # then the envvar interface is used. Set only those that are not.
  11682. # We use the long form for the default assignment because of an extremely
  11683. # bizarre bug on SunOS 4.1.3.
  11684. if $ac_need_defaults; then
  11685. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11686. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11687. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11688. fi
  11689. # Have a temporary directory for convenience. Make it in the build tree
  11690. # simply because there is no reason against having it here, and in addition,
  11691. # creating and moving files from /tmp can sometimes cause problems.
  11692. # Hook for its removal unless debugging.
  11693. # Note that there is a small window in which the directory will not be cleaned:
  11694. # after its creation but before its name has been assigned to `$tmp'.
  11695. $debug ||
  11696. {
  11697. tmp=
  11698. trap 'exit_status=$?
  11699. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  11700. ' 0
  11701. trap 'as_fn_exit 1' 1 2 13 15
  11702. }
  11703. # Create a (secure) tmp directory for tmp files.
  11704. {
  11705. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11706. test -n "$tmp" && test -d "$tmp"
  11707. } ||
  11708. {
  11709. tmp=./conf$$-$RANDOM
  11710. (umask 077 && mkdir "$tmp")
  11711. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  11712. # Set up the scripts for CONFIG_FILES section.
  11713. # No need to generate them if there are no CONFIG_FILES.
  11714. # This happens for instance with `./config.status config.h'.
  11715. if test -n "$CONFIG_FILES"; then
  11716. ac_cr=`echo X | tr X '\015'`
  11717. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11718. # But we know of no other shell where ac_cr would be empty at this
  11719. # point, so we can use a bashism as a fallback.
  11720. if test "x$ac_cr" = x; then
  11721. eval ac_cr=\$\'\\r\'
  11722. fi
  11723. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11724. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11725. ac_cs_awk_cr='\r'
  11726. else
  11727. ac_cs_awk_cr=$ac_cr
  11728. fi
  11729. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  11730. _ACEOF
  11731. {
  11732. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11733. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11734. echo "_ACEOF"
  11735. } >conf$$subs.sh ||
  11736. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11737. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  11738. ac_delim='%!_!# '
  11739. for ac_last_try in false false false false false :; do
  11740. . ./conf$$subs.sh ||
  11741. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11742. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11743. if test $ac_delim_n = $ac_delim_num; then
  11744. break
  11745. elif $ac_last_try; then
  11746. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  11747. else
  11748. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11749. fi
  11750. done
  11751. rm -f conf$$subs.sh
  11752. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11753. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  11754. _ACEOF
  11755. sed -n '
  11756. h
  11757. s/^/S["/; s/!.*/"]=/
  11758. p
  11759. g
  11760. s/^[^!]*!//
  11761. :repl
  11762. t repl
  11763. s/'"$ac_delim"'$//
  11764. t delim
  11765. :nl
  11766. h
  11767. s/\(.\{148\}\).*/\1/
  11768. t more1
  11769. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11770. p
  11771. n
  11772. b repl
  11773. :more1
  11774. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11775. p
  11776. g
  11777. s/.\{148\}//
  11778. t nl
  11779. :delim
  11780. h
  11781. s/\(.\{148\}\).*/\1/
  11782. t more2
  11783. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11784. p
  11785. b
  11786. :more2
  11787. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11788. p
  11789. g
  11790. s/.\{148\}//
  11791. t delim
  11792. ' <conf$$subs.awk | sed '
  11793. /^[^""]/{
  11794. N
  11795. s/\n//
  11796. }
  11797. ' >>$CONFIG_STATUS || ac_write_fail=1
  11798. rm -f conf$$subs.awk
  11799. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11800. _ACAWK
  11801. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  11802. for (key in S) S_is_set[key] = 1
  11803. FS = ""
  11804. }
  11805. {
  11806. line = $ 0
  11807. nfields = split(line, field, "@")
  11808. substed = 0
  11809. len = length(field[1])
  11810. for (i = 2; i < nfields; i++) {
  11811. key = field[i]
  11812. keylen = length(key)
  11813. if (S_is_set[key]) {
  11814. value = S[key]
  11815. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11816. len += length(value) + length(field[++i])
  11817. substed = 1
  11818. } else
  11819. len += 1 + keylen
  11820. }
  11821. print line
  11822. }
  11823. _ACAWK
  11824. _ACEOF
  11825. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11826. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11827. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11828. else
  11829. cat
  11830. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  11831. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  11832. _ACEOF
  11833. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11834. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11835. # trailing colons and then remove the whole line if VPATH becomes empty
  11836. # (actually we leave an empty line to preserve line numbers).
  11837. if test "x$srcdir" = x.; then
  11838. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11839. s/:*\$(srcdir):*/:/
  11840. s/:*\${srcdir}:*/:/
  11841. s/:*@srcdir@:*/:/
  11842. s/^\([^=]*=[ ]*\):*/\1/
  11843. s/:*$//
  11844. s/^[^=]*=[ ]*$//
  11845. }'
  11846. fi
  11847. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11848. fi # test -n "$CONFIG_FILES"
  11849. # Set up the scripts for CONFIG_HEADERS section.
  11850. # No need to generate them if there are no CONFIG_HEADERS.
  11851. # This happens for instance with `./config.status Makefile'.
  11852. if test -n "$CONFIG_HEADERS"; then
  11853. cat >"$tmp/defines.awk" <<\_ACAWK ||
  11854. BEGIN {
  11855. _ACEOF
  11856. # Transform confdefs.h into an awk script `defines.awk', embedded as
  11857. # here-document in config.status, that substitutes the proper values into
  11858. # config.h.in to produce config.h.
  11859. # Create a delimiter string that does not exist in confdefs.h, to ease
  11860. # handling of long lines.
  11861. ac_delim='%!_!# '
  11862. for ac_last_try in false false :; do
  11863. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  11864. if test -z "$ac_t"; then
  11865. break
  11866. elif $ac_last_try; then
  11867. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  11868. else
  11869. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11870. fi
  11871. done
  11872. # For the awk script, D is an array of macro values keyed by name,
  11873. # likewise P contains macro parameters if any. Preserve backslash
  11874. # newline sequences.
  11875. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11876. sed -n '
  11877. s/.\{148\}/&'"$ac_delim"'/g
  11878. t rset
  11879. :rset
  11880. s/^[ ]*#[ ]*define[ ][ ]*/ /
  11881. t def
  11882. d
  11883. :def
  11884. s/\\$//
  11885. t bsnl
  11886. s/["\\]/\\&/g
  11887. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11888. D["\1"]=" \3"/p
  11889. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  11890. d
  11891. :bsnl
  11892. s/["\\]/\\&/g
  11893. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11894. D["\1"]=" \3\\\\\\n"\\/p
  11895. t cont
  11896. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  11897. t cont
  11898. d
  11899. :cont
  11900. n
  11901. s/.\{148\}/&'"$ac_delim"'/g
  11902. t clear
  11903. :clear
  11904. s/\\$//
  11905. t bsnlc
  11906. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  11907. d
  11908. :bsnlc
  11909. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  11910. b cont
  11911. ' <confdefs.h | sed '
  11912. s/'"$ac_delim"'/"\\\
  11913. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  11914. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11915. for (key in D) D_is_set[key] = 1
  11916. FS = ""
  11917. }
  11918. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  11919. line = \$ 0
  11920. split(line, arg, " ")
  11921. if (arg[1] == "#") {
  11922. defundef = arg[2]
  11923. mac1 = arg[3]
  11924. } else {
  11925. defundef = substr(arg[1], 2)
  11926. mac1 = arg[2]
  11927. }
  11928. split(mac1, mac2, "(") #)
  11929. macro = mac2[1]
  11930. prefix = substr(line, 1, index(line, defundef) - 1)
  11931. if (D_is_set[macro]) {
  11932. # Preserve the white space surrounding the "#".
  11933. print prefix "define", macro P[macro] D[macro]
  11934. next
  11935. } else {
  11936. # Replace #undef with comments. This is necessary, for example,
  11937. # in the case of _POSIX_SOURCE, which is predefined and required
  11938. # on some systems where configure will not decide to define it.
  11939. if (defundef == "undef") {
  11940. print "/*", prefix defundef, macro, "*/"
  11941. next
  11942. }
  11943. }
  11944. }
  11945. { print }
  11946. _ACAWK
  11947. _ACEOF
  11948. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11949. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  11950. fi # test -n "$CONFIG_HEADERS"
  11951. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  11952. shift
  11953. for ac_tag
  11954. do
  11955. case $ac_tag in
  11956. :[FHLC]) ac_mode=$ac_tag; continue;;
  11957. esac
  11958. case $ac_mode$ac_tag in
  11959. :[FHL]*:*);;
  11960. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11961. :[FH]-) ac_tag=-:-;;
  11962. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11963. esac
  11964. ac_save_IFS=$IFS
  11965. IFS=:
  11966. set x $ac_tag
  11967. IFS=$ac_save_IFS
  11968. shift
  11969. ac_file=$1
  11970. shift
  11971. case $ac_mode in
  11972. :L) ac_source=$1;;
  11973. :[FH])
  11974. ac_file_inputs=
  11975. for ac_f
  11976. do
  11977. case $ac_f in
  11978. -) ac_f="$tmp/stdin";;
  11979. *) # Look for the file first in the build tree, then in the source tree
  11980. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11981. # because $ac_f cannot contain `:'.
  11982. test -f "$ac_f" ||
  11983. case $ac_f in
  11984. [\\/$]*) false;;
  11985. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11986. esac ||
  11987. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11988. esac
  11989. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11990. as_fn_append ac_file_inputs " '$ac_f'"
  11991. done
  11992. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11993. # use $as_me), people would be surprised to read:
  11994. # /* config.h. Generated by config.status. */
  11995. configure_input='Generated from '`
  11996. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11997. `' by configure.'
  11998. if test x"$ac_file" != x-; then
  11999. configure_input="$ac_file. $configure_input"
  12000. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12001. $as_echo "$as_me: creating $ac_file" >&6;}
  12002. fi
  12003. # Neutralize special characters interpreted by sed in replacement strings.
  12004. case $configure_input in #(
  12005. *\&* | *\|* | *\\* )
  12006. ac_sed_conf_input=`$as_echo "$configure_input" |
  12007. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12008. *) ac_sed_conf_input=$configure_input;;
  12009. esac
  12010. case $ac_tag in
  12011. *:-:* | *:-) cat >"$tmp/stdin" \
  12012. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  12013. esac
  12014. ;;
  12015. esac
  12016. ac_dir=`$as_dirname -- "$ac_file" ||
  12017. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12018. X"$ac_file" : 'X\(//\)[^/]' \| \
  12019. X"$ac_file" : 'X\(//\)$' \| \
  12020. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12021. $as_echo X"$ac_file" |
  12022. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12023. s//\1/
  12024. q
  12025. }
  12026. /^X\(\/\/\)[^/].*/{
  12027. s//\1/
  12028. q
  12029. }
  12030. /^X\(\/\/\)$/{
  12031. s//\1/
  12032. q
  12033. }
  12034. /^X\(\/\).*/{
  12035. s//\1/
  12036. q
  12037. }
  12038. s/.*/./; q'`
  12039. as_dir="$ac_dir"; as_fn_mkdir_p
  12040. ac_builddir=.
  12041. case "$ac_dir" in
  12042. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12043. *)
  12044. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12045. # A ".." for each directory in $ac_dir_suffix.
  12046. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12047. case $ac_top_builddir_sub in
  12048. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12049. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12050. esac ;;
  12051. esac
  12052. ac_abs_top_builddir=$ac_pwd
  12053. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12054. # for backward compatibility:
  12055. ac_top_builddir=$ac_top_build_prefix
  12056. case $srcdir in
  12057. .) # We are building in place.
  12058. ac_srcdir=.
  12059. ac_top_srcdir=$ac_top_builddir_sub
  12060. ac_abs_top_srcdir=$ac_pwd ;;
  12061. [\\/]* | ?:[\\/]* ) # Absolute name.
  12062. ac_srcdir=$srcdir$ac_dir_suffix;
  12063. ac_top_srcdir=$srcdir
  12064. ac_abs_top_srcdir=$srcdir ;;
  12065. *) # Relative name.
  12066. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12067. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12068. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12069. esac
  12070. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12071. case $ac_mode in
  12072. :F)
  12073. #
  12074. # CONFIG_FILE
  12075. #
  12076. case $INSTALL in
  12077. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12078. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12079. esac
  12080. ac_MKDIR_P=$MKDIR_P
  12081. case $MKDIR_P in
  12082. [\\/$]* | ?:[\\/]* ) ;;
  12083. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  12084. esac
  12085. _ACEOF
  12086. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12087. # If the template does not know about datarootdir, expand it.
  12088. # FIXME: This hack should be removed a few years after 2.60.
  12089. ac_datarootdir_hack=; ac_datarootdir_seen=
  12090. ac_sed_dataroot='
  12091. /datarootdir/ {
  12092. p
  12093. q
  12094. }
  12095. /@datadir@/p
  12096. /@docdir@/p
  12097. /@infodir@/p
  12098. /@localedir@/p
  12099. /@mandir@/p'
  12100. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12101. *datarootdir*) ac_datarootdir_seen=yes;;
  12102. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12103. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12104. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12105. _ACEOF
  12106. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12107. ac_datarootdir_hack='
  12108. s&@datadir@&$datadir&g
  12109. s&@docdir@&$docdir&g
  12110. s&@infodir@&$infodir&g
  12111. s&@localedir@&$localedir&g
  12112. s&@mandir@&$mandir&g
  12113. s&\\\${datarootdir}&$datarootdir&g' ;;
  12114. esac
  12115. _ACEOF
  12116. # Neutralize VPATH when `$srcdir' = `.'.
  12117. # Shell code in configure.ac might set extrasub.
  12118. # FIXME: do we really want to maintain this feature?
  12119. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12120. ac_sed_extra="$ac_vpsub
  12121. $extrasub
  12122. _ACEOF
  12123. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12124. :t
  12125. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12126. s|@configure_input@|$ac_sed_conf_input|;t t
  12127. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12128. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12129. s&@srcdir@&$ac_srcdir&;t t
  12130. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12131. s&@top_srcdir@&$ac_top_srcdir&;t t
  12132. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12133. s&@builddir@&$ac_builddir&;t t
  12134. s&@abs_builddir@&$ac_abs_builddir&;t t
  12135. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12136. s&@INSTALL@&$ac_INSTALL&;t t
  12137. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12138. $ac_datarootdir_hack
  12139. "
  12140. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  12141. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12142. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12143. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  12144. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  12145. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12146. which seems to be undefined. Please make sure it is defined." >&5
  12147. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12148. which seems to be undefined. Please make sure it is defined." >&2;}
  12149. rm -f "$tmp/stdin"
  12150. case $ac_file in
  12151. -) cat "$tmp/out" && rm -f "$tmp/out";;
  12152. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  12153. esac \
  12154. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12155. ;;
  12156. :H)
  12157. #
  12158. # CONFIG_HEADER
  12159. #
  12160. if test x"$ac_file" != x-; then
  12161. {
  12162. $as_echo "/* $configure_input */" \
  12163. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  12164. } >"$tmp/config.h" \
  12165. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12166. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  12167. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12168. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12169. else
  12170. rm -f "$ac_file"
  12171. mv "$tmp/config.h" "$ac_file" \
  12172. || as_fn_error "could not create $ac_file" "$LINENO" 5
  12173. fi
  12174. else
  12175. $as_echo "/* $configure_input */" \
  12176. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  12177. || as_fn_error "could not create -" "$LINENO" 5
  12178. fi
  12179. # Compute "$ac_file"'s index in $config_headers.
  12180. _am_arg="$ac_file"
  12181. _am_stamp_count=1
  12182. for _am_header in $config_headers :; do
  12183. case $_am_header in
  12184. $_am_arg | $_am_arg:* )
  12185. break ;;
  12186. * )
  12187. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12188. esac
  12189. done
  12190. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  12191. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12192. X"$_am_arg" : 'X\(//\)[^/]' \| \
  12193. X"$_am_arg" : 'X\(//\)$' \| \
  12194. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  12195. $as_echo X"$_am_arg" |
  12196. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12197. s//\1/
  12198. q
  12199. }
  12200. /^X\(\/\/\)[^/].*/{
  12201. s//\1/
  12202. q
  12203. }
  12204. /^X\(\/\/\)$/{
  12205. s//\1/
  12206. q
  12207. }
  12208. /^X\(\/\).*/{
  12209. s//\1/
  12210. q
  12211. }
  12212. s/.*/./; q'`/stamp-h$_am_stamp_count
  12213. ;;
  12214. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12215. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12216. ;;
  12217. esac
  12218. case $ac_file$ac_mode in
  12219. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12220. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  12221. # are listed without --file. Let's play safe and only enable the eval
  12222. # if we detect the quoting.
  12223. case $CONFIG_FILES in
  12224. *\'*) eval set x "$CONFIG_FILES" ;;
  12225. *) set x $CONFIG_FILES ;;
  12226. esac
  12227. shift
  12228. for mf
  12229. do
  12230. # Strip MF so we end up with the name of the file.
  12231. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12232. # Check whether this is an Automake generated Makefile or not.
  12233. # We used to match only the files named `Makefile.in', but
  12234. # some people rename them; so instead we look at the file content.
  12235. # Grep'ing the first line is not enough: some people post-process
  12236. # each Makefile.in and add a new line on top of each file to say so.
  12237. # Grep'ing the whole file is not good either: AIX grep has a line
  12238. # limit of 2048, but all sed's we know have understand at least 4000.
  12239. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12240. dirpart=`$as_dirname -- "$mf" ||
  12241. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12242. X"$mf" : 'X\(//\)[^/]' \| \
  12243. X"$mf" : 'X\(//\)$' \| \
  12244. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12245. $as_echo X"$mf" |
  12246. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12247. s//\1/
  12248. q
  12249. }
  12250. /^X\(\/\/\)[^/].*/{
  12251. s//\1/
  12252. q
  12253. }
  12254. /^X\(\/\/\)$/{
  12255. s//\1/
  12256. q
  12257. }
  12258. /^X\(\/\).*/{
  12259. s//\1/
  12260. q
  12261. }
  12262. s/.*/./; q'`
  12263. else
  12264. continue
  12265. fi
  12266. # Extract the definition of DEPDIR, am__include, and am__quote
  12267. # from the Makefile without running `make'.
  12268. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12269. test -z "$DEPDIR" && continue
  12270. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12271. test -z "am__include" && continue
  12272. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12273. # When using ansi2knr, U may be empty or an underscore; expand it
  12274. U=`sed -n 's/^U = //p' < "$mf"`
  12275. # Find all dependency output files, they are included files with
  12276. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12277. # simplest approach to changing $(DEPDIR) to its actual value in the
  12278. # expansion.
  12279. for file in `sed -n "
  12280. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12281. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  12282. # Make sure the directory exists.
  12283. test -f "$dirpart/$file" && continue
  12284. fdir=`$as_dirname -- "$file" ||
  12285. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12286. X"$file" : 'X\(//\)[^/]' \| \
  12287. X"$file" : 'X\(//\)$' \| \
  12288. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12289. $as_echo X"$file" |
  12290. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12291. s//\1/
  12292. q
  12293. }
  12294. /^X\(\/\/\)[^/].*/{
  12295. s//\1/
  12296. q
  12297. }
  12298. /^X\(\/\/\)$/{
  12299. s//\1/
  12300. q
  12301. }
  12302. /^X\(\/\).*/{
  12303. s//\1/
  12304. q
  12305. }
  12306. s/.*/./; q'`
  12307. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  12308. # echo "creating $dirpart/$file"
  12309. echo '# dummy' > "$dirpart/$file"
  12310. done
  12311. done
  12312. }
  12313. ;;
  12314. "libtool":C)
  12315. # See if we are running on zsh, and set the options which allow our
  12316. # commands through without removal of \ escapes.
  12317. if test -n "${ZSH_VERSION+set}" ; then
  12318. setopt NO_GLOB_SUBST
  12319. fi
  12320. cfgfile="${ofile}T"
  12321. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12322. $RM "$cfgfile"
  12323. cat <<_LT_EOF >> "$cfgfile"
  12324. #! $SHELL
  12325. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  12326. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  12327. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12328. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12329. #
  12330. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12331. # 2006, 2007, 2008 Free Software Foundation, Inc.
  12332. # Written by Gordon Matzigkeit, 1996
  12333. #
  12334. # This file is part of GNU Libtool.
  12335. #
  12336. # GNU Libtool is free software; you can redistribute it and/or
  12337. # modify it under the terms of the GNU General Public License as
  12338. # published by the Free Software Foundation; either version 2 of
  12339. # the License, or (at your option) any later version.
  12340. #
  12341. # As a special exception to the GNU General Public License,
  12342. # if you distribute this file as part of a program or library that
  12343. # is built using GNU Libtool, you may include this file under the
  12344. # same distribution terms that you use for the rest of that program.
  12345. #
  12346. # GNU Libtool is distributed in the hope that it will be useful,
  12347. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12348. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12349. # GNU General Public License for more details.
  12350. #
  12351. # You should have received a copy of the GNU General Public License
  12352. # along with GNU Libtool; see the file COPYING. If not, a copy
  12353. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  12354. # obtained by writing to the Free Software Foundation, Inc.,
  12355. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12356. # The names of the tagged configurations supported by this script.
  12357. available_tags=""
  12358. # ### BEGIN LIBTOOL CONFIG
  12359. # Assembler program.
  12360. AS=$AS
  12361. # DLL creation program.
  12362. DLLTOOL=$DLLTOOL
  12363. # Object dumper program.
  12364. OBJDUMP=$OBJDUMP
  12365. # Which release of libtool.m4 was used?
  12366. macro_version=$macro_version
  12367. macro_revision=$macro_revision
  12368. # Whether or not to build shared libraries.
  12369. build_libtool_libs=$enable_shared
  12370. # Whether or not to build static libraries.
  12371. build_old_libs=$enable_static
  12372. # What type of objects to build.
  12373. pic_mode=$pic_mode
  12374. # Whether or not to optimize for fast installation.
  12375. fast_install=$enable_fast_install
  12376. # The host system.
  12377. host_alias=$host_alias
  12378. host=$host
  12379. host_os=$host_os
  12380. # The build system.
  12381. build_alias=$build_alias
  12382. build=$build
  12383. build_os=$build_os
  12384. # A sed program that does not truncate output.
  12385. SED=$lt_SED
  12386. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12387. Xsed="\$SED -e 1s/^X//"
  12388. # A grep program that handles long lines.
  12389. GREP=$lt_GREP
  12390. # An ERE matcher.
  12391. EGREP=$lt_EGREP
  12392. # A literal string matcher.
  12393. FGREP=$lt_FGREP
  12394. # A BSD- or MS-compatible name lister.
  12395. NM=$lt_NM
  12396. # Whether we need soft or hard links.
  12397. LN_S=$lt_LN_S
  12398. # What is the maximum length of a command?
  12399. max_cmd_len=$max_cmd_len
  12400. # Object file suffix (normally "o").
  12401. objext=$ac_objext
  12402. # Executable file suffix (normally "").
  12403. exeext=$exeext
  12404. # whether the shell understands "unset".
  12405. lt_unset=$lt_unset
  12406. # turn spaces into newlines.
  12407. SP2NL=$lt_lt_SP2NL
  12408. # turn newlines into spaces.
  12409. NL2SP=$lt_lt_NL2SP
  12410. # How to create reloadable object files.
  12411. reload_flag=$lt_reload_flag
  12412. reload_cmds=$lt_reload_cmds
  12413. # Method to check whether dependent libraries are shared objects.
  12414. deplibs_check_method=$lt_deplibs_check_method
  12415. # Command to use when deplibs_check_method == "file_magic".
  12416. file_magic_cmd=$lt_file_magic_cmd
  12417. # The archiver.
  12418. AR=$lt_AR
  12419. AR_FLAGS=$lt_AR_FLAGS
  12420. # A symbol stripping program.
  12421. STRIP=$lt_STRIP
  12422. # Commands used to install an old-style archive.
  12423. RANLIB=$lt_RANLIB
  12424. old_postinstall_cmds=$lt_old_postinstall_cmds
  12425. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12426. # A C compiler.
  12427. LTCC=$lt_CC
  12428. # LTCC compiler flags.
  12429. LTCFLAGS=$lt_CFLAGS
  12430. # Take the output of nm and produce a listing of raw symbols and C names.
  12431. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12432. # Transform the output of nm in a proper C declaration.
  12433. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12434. # Transform the output of nm in a C name address pair.
  12435. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12436. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12437. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12438. # The name of the directory that contains temporary libtool files.
  12439. objdir=$objdir
  12440. # Shell to use when invoking shell scripts.
  12441. SHELL=$lt_SHELL
  12442. # An echo program that does not interpret backslashes.
  12443. ECHO=$lt_ECHO
  12444. # Used to examine libraries when file_magic_cmd begins with "file".
  12445. MAGIC_CMD=$MAGIC_CMD
  12446. # Must we lock files when doing compilation?
  12447. need_locks=$lt_need_locks
  12448. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12449. DSYMUTIL=$lt_DSYMUTIL
  12450. # Tool to change global to local symbols on Mac OS X.
  12451. NMEDIT=$lt_NMEDIT
  12452. # Tool to manipulate fat objects and archives on Mac OS X.
  12453. LIPO=$lt_LIPO
  12454. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12455. OTOOL=$lt_OTOOL
  12456. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12457. OTOOL64=$lt_OTOOL64
  12458. # Old archive suffix (normally "a").
  12459. libext=$libext
  12460. # Shared library suffix (normally ".so").
  12461. shrext_cmds=$lt_shrext_cmds
  12462. # The commands to extract the exported symbol list from a shared archive.
  12463. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12464. # Variables whose values should be saved in libtool wrapper scripts and
  12465. # restored at link time.
  12466. variables_saved_for_relink=$lt_variables_saved_for_relink
  12467. # Do we need the "lib" prefix for modules?
  12468. need_lib_prefix=$need_lib_prefix
  12469. # Do we need a version for libraries?
  12470. need_version=$need_version
  12471. # Library versioning type.
  12472. version_type=$version_type
  12473. # Shared library runtime path variable.
  12474. runpath_var=$runpath_var
  12475. # Shared library path variable.
  12476. shlibpath_var=$shlibpath_var
  12477. # Is shlibpath searched before the hard-coded library search path?
  12478. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12479. # Format of library name prefix.
  12480. libname_spec=$lt_libname_spec
  12481. # List of archive names. First name is the real one, the rest are links.
  12482. # The last name is the one that the linker finds with -lNAME
  12483. library_names_spec=$lt_library_names_spec
  12484. # The coded name of the library, if different from the real name.
  12485. soname_spec=$lt_soname_spec
  12486. # Command to use after installation of a shared archive.
  12487. postinstall_cmds=$lt_postinstall_cmds
  12488. # Command to use after uninstallation of a shared archive.
  12489. postuninstall_cmds=$lt_postuninstall_cmds
  12490. # Commands used to finish a libtool library installation in a directory.
  12491. finish_cmds=$lt_finish_cmds
  12492. # As "finish_cmds", except a single script fragment to be evaled but
  12493. # not shown.
  12494. finish_eval=$lt_finish_eval
  12495. # Whether we should hardcode library paths into libraries.
  12496. hardcode_into_libs=$hardcode_into_libs
  12497. # Compile-time system search path for libraries.
  12498. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12499. # Run-time system search path for libraries.
  12500. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12501. # Whether dlopen is supported.
  12502. dlopen_support=$enable_dlopen
  12503. # Whether dlopen of programs is supported.
  12504. dlopen_self=$enable_dlopen_self
  12505. # Whether dlopen of statically linked programs is supported.
  12506. dlopen_self_static=$enable_dlopen_self_static
  12507. # Commands to strip libraries.
  12508. old_striplib=$lt_old_striplib
  12509. striplib=$lt_striplib
  12510. # The linker used to build libraries.
  12511. LD=$lt_LD
  12512. # Commands used to build an old-style archive.
  12513. old_archive_cmds=$lt_old_archive_cmds
  12514. # A language specific compiler.
  12515. CC=$lt_compiler
  12516. # Is the compiler the GNU compiler?
  12517. with_gcc=$GCC
  12518. # Compiler flag to turn off builtin functions.
  12519. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12520. # How to pass a linker flag through the compiler.
  12521. wl=$lt_lt_prog_compiler_wl
  12522. # Additional compiler flags for building library objects.
  12523. pic_flag=$lt_lt_prog_compiler_pic
  12524. # Compiler flag to prevent dynamic linking.
  12525. link_static_flag=$lt_lt_prog_compiler_static
  12526. # Does compiler simultaneously support -c and -o options?
  12527. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12528. # Whether or not to add -lc for building shared libraries.
  12529. build_libtool_need_lc=$archive_cmds_need_lc
  12530. # Whether or not to disallow shared libs when runtime libs are static.
  12531. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12532. # Compiler flag to allow reflexive dlopens.
  12533. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12534. # Compiler flag to generate shared objects directly from archives.
  12535. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12536. # Whether the compiler copes with passing no objects directly.
  12537. compiler_needs_object=$lt_compiler_needs_object
  12538. # Create an old-style archive from a shared archive.
  12539. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12540. # Create a temporary old-style archive to link instead of a shared archive.
  12541. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12542. # Commands used to build a shared archive.
  12543. archive_cmds=$lt_archive_cmds
  12544. archive_expsym_cmds=$lt_archive_expsym_cmds
  12545. # Commands used to build a loadable module if different from building
  12546. # a shared archive.
  12547. module_cmds=$lt_module_cmds
  12548. module_expsym_cmds=$lt_module_expsym_cmds
  12549. # Whether we are building with GNU ld or not.
  12550. with_gnu_ld=$lt_with_gnu_ld
  12551. # Flag that allows shared libraries with undefined symbols to be built.
  12552. allow_undefined_flag=$lt_allow_undefined_flag
  12553. # Flag that enforces no undefined symbols.
  12554. no_undefined_flag=$lt_no_undefined_flag
  12555. # Flag to hardcode \$libdir into a binary during linking.
  12556. # This must work even if \$libdir does not exist
  12557. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12558. # If ld is used when linking, flag to hardcode \$libdir into a binary
  12559. # during linking. This must work even if \$libdir does not exist.
  12560. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  12561. # Whether we need a single "-rpath" flag with a separated argument.
  12562. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12563. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12564. # DIR into the resulting binary.
  12565. hardcode_direct=$hardcode_direct
  12566. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12567. # DIR into the resulting binary and the resulting library dependency is
  12568. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  12569. # library is relocated.
  12570. hardcode_direct_absolute=$hardcode_direct_absolute
  12571. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12572. # into the resulting binary.
  12573. hardcode_minus_L=$hardcode_minus_L
  12574. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12575. # into the resulting binary.
  12576. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12577. # Set to "yes" if building a shared library automatically hardcodes DIR
  12578. # into the library and all subsequent libraries and executables linked
  12579. # against it.
  12580. hardcode_automatic=$hardcode_automatic
  12581. # Set to yes if linker adds runtime paths of dependent libraries
  12582. # to runtime path list.
  12583. inherit_rpath=$inherit_rpath
  12584. # Whether libtool must link a program against all its dependency libraries.
  12585. link_all_deplibs=$link_all_deplibs
  12586. # Fix the shell variable \$srcfile for the compiler.
  12587. fix_srcfile_path=$lt_fix_srcfile_path
  12588. # Set to "yes" if exported symbols are required.
  12589. always_export_symbols=$always_export_symbols
  12590. # The commands to list exported symbols.
  12591. export_symbols_cmds=$lt_export_symbols_cmds
  12592. # Symbols that should not be listed in the preloaded symbols.
  12593. exclude_expsyms=$lt_exclude_expsyms
  12594. # Symbols that must always be exported.
  12595. include_expsyms=$lt_include_expsyms
  12596. # Commands necessary for linking programs (against libraries) with templates.
  12597. prelink_cmds=$lt_prelink_cmds
  12598. # Specify filename containing input files.
  12599. file_list_spec=$lt_file_list_spec
  12600. # How to hardcode a shared library path into an executable.
  12601. hardcode_action=$hardcode_action
  12602. # ### END LIBTOOL CONFIG
  12603. _LT_EOF
  12604. case $host_os in
  12605. aix3*)
  12606. cat <<\_LT_EOF >> "$cfgfile"
  12607. # AIX sometimes has problems with the GCC collect2 program. For some
  12608. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12609. # vanish in a puff of smoke.
  12610. if test "X${COLLECT_NAMES+set}" != Xset; then
  12611. COLLECT_NAMES=
  12612. export COLLECT_NAMES
  12613. fi
  12614. _LT_EOF
  12615. ;;
  12616. esac
  12617. ltmain="$ac_aux_dir/ltmain.sh"
  12618. # We use sed instead of cat because bash on DJGPP gets confused if
  12619. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12620. # text mode, it properly converts lines to CR/LF. This bash problem
  12621. # is reportedly fixed, but why not run on old versions too?
  12622. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  12623. || (rm -f "$cfgfile"; exit 1)
  12624. case $xsi_shell in
  12625. yes)
  12626. cat << \_LT_EOF >> "$cfgfile"
  12627. # func_dirname file append nondir_replacement
  12628. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12629. # otherwise set result to NONDIR_REPLACEMENT.
  12630. func_dirname ()
  12631. {
  12632. case ${1} in
  12633. */*) func_dirname_result="${1%/*}${2}" ;;
  12634. * ) func_dirname_result="${3}" ;;
  12635. esac
  12636. }
  12637. # func_basename file
  12638. func_basename ()
  12639. {
  12640. func_basename_result="${1##*/}"
  12641. }
  12642. # func_dirname_and_basename file append nondir_replacement
  12643. # perform func_basename and func_dirname in a single function
  12644. # call:
  12645. # dirname: Compute the dirname of FILE. If nonempty,
  12646. # add APPEND to the result, otherwise set result
  12647. # to NONDIR_REPLACEMENT.
  12648. # value returned in "$func_dirname_result"
  12649. # basename: Compute filename of FILE.
  12650. # value retuned in "$func_basename_result"
  12651. # Implementation must be kept synchronized with func_dirname
  12652. # and func_basename. For efficiency, we do not delegate to
  12653. # those functions but instead duplicate the functionality here.
  12654. func_dirname_and_basename ()
  12655. {
  12656. case ${1} in
  12657. */*) func_dirname_result="${1%/*}${2}" ;;
  12658. * ) func_dirname_result="${3}" ;;
  12659. esac
  12660. func_basename_result="${1##*/}"
  12661. }
  12662. # func_stripname prefix suffix name
  12663. # strip PREFIX and SUFFIX off of NAME.
  12664. # PREFIX and SUFFIX must not contain globbing or regex special
  12665. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12666. # dot (in which case that matches only a dot).
  12667. func_stripname ()
  12668. {
  12669. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  12670. # positional parameters, so assign one to ordinary parameter first.
  12671. func_stripname_result=${3}
  12672. func_stripname_result=${func_stripname_result#"${1}"}
  12673. func_stripname_result=${func_stripname_result%"${2}"}
  12674. }
  12675. # func_opt_split
  12676. func_opt_split ()
  12677. {
  12678. func_opt_split_opt=${1%%=*}
  12679. func_opt_split_arg=${1#*=}
  12680. }
  12681. # func_lo2o object
  12682. func_lo2o ()
  12683. {
  12684. case ${1} in
  12685. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  12686. *) func_lo2o_result=${1} ;;
  12687. esac
  12688. }
  12689. # func_xform libobj-or-source
  12690. func_xform ()
  12691. {
  12692. func_xform_result=${1%.*}.lo
  12693. }
  12694. # func_arith arithmetic-term...
  12695. func_arith ()
  12696. {
  12697. func_arith_result=$(( $* ))
  12698. }
  12699. # func_len string
  12700. # STRING may not start with a hyphen.
  12701. func_len ()
  12702. {
  12703. func_len_result=${#1}
  12704. }
  12705. _LT_EOF
  12706. ;;
  12707. *) # Bourne compatible functions.
  12708. cat << \_LT_EOF >> "$cfgfile"
  12709. # func_dirname file append nondir_replacement
  12710. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12711. # otherwise set result to NONDIR_REPLACEMENT.
  12712. func_dirname ()
  12713. {
  12714. # Extract subdirectory from the argument.
  12715. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  12716. if test "X$func_dirname_result" = "X${1}"; then
  12717. func_dirname_result="${3}"
  12718. else
  12719. func_dirname_result="$func_dirname_result${2}"
  12720. fi
  12721. }
  12722. # func_basename file
  12723. func_basename ()
  12724. {
  12725. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  12726. }
  12727. # func_stripname prefix suffix name
  12728. # strip PREFIX and SUFFIX off of NAME.
  12729. # PREFIX and SUFFIX must not contain globbing or regex special
  12730. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12731. # dot (in which case that matches only a dot).
  12732. # func_strip_suffix prefix name
  12733. func_stripname ()
  12734. {
  12735. case ${2} in
  12736. .*) func_stripname_result=`$ECHO "X${3}" \
  12737. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  12738. *) func_stripname_result=`$ECHO "X${3}" \
  12739. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  12740. esac
  12741. }
  12742. # sed scripts:
  12743. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  12744. my_sed_long_arg='1s/^-[^=]*=//'
  12745. # func_opt_split
  12746. func_opt_split ()
  12747. {
  12748. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  12749. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  12750. }
  12751. # func_lo2o object
  12752. func_lo2o ()
  12753. {
  12754. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  12755. }
  12756. # func_xform libobj-or-source
  12757. func_xform ()
  12758. {
  12759. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  12760. }
  12761. # func_arith arithmetic-term...
  12762. func_arith ()
  12763. {
  12764. func_arith_result=`expr "$@"`
  12765. }
  12766. # func_len string
  12767. # STRING may not start with a hyphen.
  12768. func_len ()
  12769. {
  12770. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  12771. }
  12772. _LT_EOF
  12773. esac
  12774. case $lt_shell_append in
  12775. yes)
  12776. cat << \_LT_EOF >> "$cfgfile"
  12777. # func_append var value
  12778. # Append VALUE to the end of shell variable VAR.
  12779. func_append ()
  12780. {
  12781. eval "$1+=\$2"
  12782. }
  12783. _LT_EOF
  12784. ;;
  12785. *)
  12786. cat << \_LT_EOF >> "$cfgfile"
  12787. # func_append var value
  12788. # Append VALUE to the end of shell variable VAR.
  12789. func_append ()
  12790. {
  12791. eval "$1=\$$1\$2"
  12792. }
  12793. _LT_EOF
  12794. ;;
  12795. esac
  12796. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  12797. || (rm -f "$cfgfile"; exit 1)
  12798. mv -f "$cfgfile" "$ofile" ||
  12799. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12800. chmod +x "$ofile"
  12801. ;;
  12802. esac
  12803. done # for ac_tag
  12804. as_fn_exit 0
  12805. _ACEOF
  12806. ac_clean_files=$ac_clean_files_save
  12807. test $ac_write_fail = 0 ||
  12808. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12809. # configure is writing to config.log, and then calls config.status.
  12810. # config.status does its own redirection, appending to config.log.
  12811. # Unfortunately, on DOS this fails, as config.log is still kept open
  12812. # by configure, so config.status won't be able to write to it; its
  12813. # output is simply discarded. So we exec the FD to /dev/null,
  12814. # effectively closing config.log, so it can be properly (re)opened and
  12815. # appended to by config.status. When coming back to configure, we
  12816. # need to make the FD available again.
  12817. if test "$no_create" != yes; then
  12818. ac_cs_success=:
  12819. ac_config_status_args=
  12820. test "$silent" = yes &&
  12821. ac_config_status_args="$ac_config_status_args --quiet"
  12822. exec 5>/dev/null
  12823. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12824. exec 5>>config.log
  12825. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12826. # would make configure fail if this is the last instruction.
  12827. $ac_cs_success || as_fn_exit $?
  12828. fi
  12829. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12830. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12831. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12832. fi
  12833. if test -n " " ; then
  12834. ENABLE_MINITASN1_TRUE=
  12835. ENABLE_MINITASN1_FALSE='#'
  12836. else
  12837. ENABLE_MINITASN1_TRUE='#'
  12838. ENABLE_MINITASN1_FALSE=
  12839. fi
  12840. if test -n "" ; then
  12841. ENABLE_OPENSSL_TRUE=
  12842. ENABLE_OPENSSL_FALSE='#'
  12843. else
  12844. ENABLE_OPENSSL_TRUE='#'
  12845. ENABLE_OPENSSL_FALSE=
  12846. fi
  12847. if test -n "" ; then
  12848. HAVE_LD_OUTPUT_DEF_TRUE=
  12849. HAVE_LD_OUTPUT_DEF_FALSE='#'
  12850. else
  12851. HAVE_LD_OUTPUT_DEF_TRUE='#'
  12852. HAVE_LD_OUTPUT_DEF_FALSE=
  12853. fi
  12854. if test -n "" ; then
  12855. HAVE_LD_VERSION_SCRIPT_TRUE=
  12856. HAVE_LD_VERSION_SCRIPT_FALSE='#'
  12857. else
  12858. HAVE_LD_VERSION_SCRIPT_TRUE='#'
  12859. HAVE_LD_VERSION_SCRIPT_FALSE=
  12860. fi
  12861. # Finally: summary
  12862. if test "$curl" != 1 ; then
  12863. MSG_CURL="no, many unit tests will not run"
  12864. else
  12865. MSG_CURL="yes"
  12866. fi
  12867. if test "$gcrypt" != true
  12868. then
  12869. MSG_GCRYPT="no, HTTPS will not be built"
  12870. else
  12871. MSG_GCRYPT="yes"
  12872. fi
  12873. { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration Summary:
  12874. Operating System: ${host_os}
  12875. Target directory: ${prefix}
  12876. Messages: ${enable_messages}
  12877. libgcrypt: ${MSG_GCRYPT}
  12878. libcurl (testing): ${MSG_CURL}
  12879. HTTPS support: ${enable_https}
  12880. " >&5
  12881. $as_echo "$as_me: Configuration Summary:
  12882. Operating System: ${host_os}
  12883. Target directory: ${prefix}
  12884. Messages: ${enable_messages}
  12885. libgcrypt: ${MSG_GCRYPT}
  12886. libcurl (testing): ${MSG_CURL}
  12887. HTTPS support: ${enable_https}
  12888. " >&6;}
  12889. if test "$enable_https" = "yes"
  12890. then
  12891. { $as_echo "$as_me:${as_lineno-$LINENO}: HTTPS subsystem configuration:
  12892. Client code dep.: ${MSG_CLIENT_SIDE}
  12893. License : LGPL only
  12894. " >&5
  12895. $as_echo "$as_me: HTTPS subsystem configuration:
  12896. Client code dep.: ${MSG_CLIENT_SIDE}
  12897. License : LGPL only
  12898. " >&6;}
  12899. else
  12900. { $as_echo "$as_me:${as_lineno-$LINENO}:
  12901. License : LGPL or eCos
  12902. " >&5
  12903. $as_echo "$as_me:
  12904. License : LGPL or eCos
  12905. " >&6;}
  12906. fi