PageRenderTime 113ms CodeModel.GetById 23ms RepoModel.GetById 1ms app.codeStats 1ms

/configure

http://github.com/fizx/parsley
Shell | 13430 lines | 10621 code | 1533 blank | 1276 comment | 1101 complexity | d19909dbf5144dcfa57410ae059e44bc MD5 | raw file
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for parsleyc 1.0.
  4. #
  5. # Report bugs to <kyle@kylemaxwell.com>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1"
  188. if (eval "$as_required") 2>/dev/null; then :
  189. as_have_required=yes
  190. else
  191. as_have_required=no
  192. fi
  193. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  194. else
  195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  196. as_found=false
  197. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  198. do
  199. IFS=$as_save_IFS
  200. test -z "$as_dir" && as_dir=.
  201. as_found=:
  202. case $as_dir in #(
  203. /*)
  204. for as_base in sh bash ksh sh5; do
  205. # Try only shells that exist, to save several forks.
  206. as_shell=$as_dir/$as_base
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  209. CONFIG_SHELL=$as_shell as_have_required=yes
  210. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  211. break 2
  212. fi
  213. fi
  214. done;;
  215. esac
  216. as_found=false
  217. done
  218. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  219. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  220. CONFIG_SHELL=$SHELL as_have_required=yes
  221. fi; }
  222. IFS=$as_save_IFS
  223. if test "x$CONFIG_SHELL" != x; then :
  224. export CONFIG_SHELL
  225. # We cannot yet assume a decent shell, so we have to provide a
  226. # neutralization value for shells without unset; and this also
  227. # works around shells that cannot unset nonexistent variables.
  228. # Preserve -v and -x to the replacement shell.
  229. BASH_ENV=/dev/null
  230. ENV=/dev/null
  231. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  232. case $- in # ((((
  233. *v*x* | *x*v* ) as_opts=-vx ;;
  234. *v* ) as_opts=-v ;;
  235. *x* ) as_opts=-x ;;
  236. * ) as_opts= ;;
  237. esac
  238. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  239. # Admittedly, this is quite paranoid, since all the known shells bail
  240. # out after a failed `exec'.
  241. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  242. exit 255
  243. fi
  244. if test x$as_have_required = xno; then :
  245. $as_echo "$0: This script requires a shell more modern than all"
  246. $as_echo "$0: the shells that I found on your system."
  247. if test x${ZSH_VERSION+set} = xset ; then
  248. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  249. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  250. else
  251. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  252. $0: kyle@kylemaxwell.com about your system, including any
  253. $0: error possibly output before this message. Then install
  254. $0: a modern shell, or manually run the script under such a
  255. $0: shell if you do have one."
  256. fi
  257. exit 1
  258. fi
  259. fi
  260. fi
  261. SHELL=${CONFIG_SHELL-/bin/sh}
  262. export SHELL
  263. # Unset more variables known to interfere with behavior of common tools.
  264. CLICOLOR_FORCE= GREP_OPTIONS=
  265. unset CLICOLOR_FORCE GREP_OPTIONS
  266. ## --------------------- ##
  267. ## M4sh Shell Functions. ##
  268. ## --------------------- ##
  269. # as_fn_unset VAR
  270. # ---------------
  271. # Portably unset VAR.
  272. as_fn_unset ()
  273. {
  274. { eval $1=; unset $1;}
  275. }
  276. as_unset=as_fn_unset
  277. # as_fn_set_status STATUS
  278. # -----------------------
  279. # Set $? to STATUS, without forking.
  280. as_fn_set_status ()
  281. {
  282. return $1
  283. } # as_fn_set_status
  284. # as_fn_exit STATUS
  285. # -----------------
  286. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  287. as_fn_exit ()
  288. {
  289. set +e
  290. as_fn_set_status $1
  291. exit $1
  292. } # as_fn_exit
  293. # as_fn_mkdir_p
  294. # -------------
  295. # Create "$as_dir" as a directory, including parents if necessary.
  296. as_fn_mkdir_p ()
  297. {
  298. case $as_dir in #(
  299. -*) as_dir=./$as_dir;;
  300. esac
  301. test -d "$as_dir" || eval $as_mkdir_p || {
  302. as_dirs=
  303. while :; do
  304. case $as_dir in #(
  305. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  306. *) as_qdir=$as_dir;;
  307. esac
  308. as_dirs="'$as_qdir' $as_dirs"
  309. as_dir=`$as_dirname -- "$as_dir" ||
  310. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  311. X"$as_dir" : 'X\(//\)[^/]' \| \
  312. X"$as_dir" : 'X\(//\)$' \| \
  313. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  314. $as_echo X"$as_dir" |
  315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  316. s//\1/
  317. q
  318. }
  319. /^X\(\/\/\)[^/].*/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)$/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\).*/{
  328. s//\1/
  329. q
  330. }
  331. s/.*/./; q'`
  332. test -d "$as_dir" && break
  333. done
  334. test -z "$as_dirs" || eval "mkdir $as_dirs"
  335. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  336. } # as_fn_mkdir_p
  337. # as_fn_executable_p FILE
  338. # -----------------------
  339. # Test if FILE is an executable regular file.
  340. as_fn_executable_p ()
  341. {
  342. test -f "$1" && test -x "$1"
  343. } # as_fn_executable_p
  344. # as_fn_append VAR VALUE
  345. # ----------------------
  346. # Append the text in VALUE to the end of the definition contained in VAR. Take
  347. # advantage of any shell optimizations that allow amortized linear growth over
  348. # repeated appends, instead of the typical quadratic growth present in naive
  349. # implementations.
  350. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  351. eval 'as_fn_append ()
  352. {
  353. eval $1+=\$2
  354. }'
  355. else
  356. as_fn_append ()
  357. {
  358. eval $1=\$$1\$2
  359. }
  360. fi # as_fn_append
  361. # as_fn_arith ARG...
  362. # ------------------
  363. # Perform arithmetic evaluation on the ARGs, and store the result in the
  364. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  365. # must be portable across $(()) and expr.
  366. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  367. eval 'as_fn_arith ()
  368. {
  369. as_val=$(( $* ))
  370. }'
  371. else
  372. as_fn_arith ()
  373. {
  374. as_val=`expr "$@" || test $? -eq 1`
  375. }
  376. fi # as_fn_arith
  377. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  378. # ----------------------------------------
  379. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  380. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  381. # script with STATUS, using 1 if that was 0.
  382. as_fn_error ()
  383. {
  384. as_status=$1; test $as_status -eq 0 && as_status=1
  385. if test "$4"; then
  386. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  387. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  388. fi
  389. $as_echo "$as_me: error: $2" >&2
  390. as_fn_exit $as_status
  391. } # as_fn_error
  392. if expr a : '\(a\)' >/dev/null 2>&1 &&
  393. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  394. as_expr=expr
  395. else
  396. as_expr=false
  397. fi
  398. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  399. as_basename=basename
  400. else
  401. as_basename=false
  402. fi
  403. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  404. as_dirname=dirname
  405. else
  406. as_dirname=false
  407. fi
  408. as_me=`$as_basename -- "$0" ||
  409. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  410. X"$0" : 'X\(//\)$' \| \
  411. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  412. $as_echo X/"$0" |
  413. sed '/^.*\/\([^/][^/]*\)\/*$/{
  414. s//\1/
  415. q
  416. }
  417. /^X\/\(\/\/\)$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\).*/{
  422. s//\1/
  423. q
  424. }
  425. s/.*/./; q'`
  426. # Avoid depending upon Character Ranges.
  427. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  428. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  429. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  430. as_cr_digits='0123456789'
  431. as_cr_alnum=$as_cr_Letters$as_cr_digits
  432. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  433. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  434. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  435. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  436. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  437. sed -n '
  438. p
  439. /[$]LINENO/=
  440. ' <$as_myself |
  441. sed '
  442. s/[$]LINENO.*/&-/
  443. t lineno
  444. b
  445. :lineno
  446. N
  447. :loop
  448. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  449. t loop
  450. s/-\n.*//
  451. ' >$as_me.lineno &&
  452. chmod +x "$as_me.lineno" ||
  453. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  454. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  455. # already done that, so ensure we don't try to do so again and fall
  456. # in an infinite loop. This has already happened in practice.
  457. _as_can_reexec=no; export _as_can_reexec
  458. # Don't try to exec as it changes $[0], causing all sort of problems
  459. # (the dirname of $[0] is not the place where we might find the
  460. # original and so on. Autoconf is especially sensitive to this).
  461. . "./$as_me.lineno"
  462. # Exit status is that of the last command.
  463. exit
  464. }
  465. ECHO_C= ECHO_N= ECHO_T=
  466. case `echo -n x` in #(((((
  467. -n*)
  468. case `echo 'xy\c'` in
  469. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  470. xy) ECHO_C='\c';;
  471. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  472. ECHO_T=' ';;
  473. esac;;
  474. *)
  475. ECHO_N='-n';;
  476. esac
  477. rm -f conf$$ conf$$.exe conf$$.file
  478. if test -d conf$$.dir; then
  479. rm -f conf$$.dir/conf$$.file
  480. else
  481. rm -f conf$$.dir
  482. mkdir conf$$.dir 2>/dev/null
  483. fi
  484. if (echo >conf$$.file) 2>/dev/null; then
  485. if ln -s conf$$.file conf$$ 2>/dev/null; then
  486. as_ln_s='ln -s'
  487. # ... but there are two gotchas:
  488. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  489. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  490. # In both cases, we have to default to `cp -pR'.
  491. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  492. as_ln_s='cp -pR'
  493. elif ln conf$$.file conf$$ 2>/dev/null; then
  494. as_ln_s=ln
  495. else
  496. as_ln_s='cp -pR'
  497. fi
  498. else
  499. as_ln_s='cp -pR'
  500. fi
  501. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  502. rmdir conf$$.dir 2>/dev/null
  503. if mkdir -p . 2>/dev/null; then
  504. as_mkdir_p='mkdir -p "$as_dir"'
  505. else
  506. test -d ./-p && rmdir ./-p
  507. as_mkdir_p=false
  508. fi
  509. as_test_x='test -x'
  510. as_executable_p=as_fn_executable_p
  511. # Sed expression to map a string onto a valid CPP name.
  512. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  513. # Sed expression to map a string onto a valid variable name.
  514. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  515. # Check that we are running under the correct shell.
  516. SHELL=${CONFIG_SHELL-/bin/sh}
  517. case X$lt_ECHO in
  518. X*--fallback-echo)
  519. # Remove one level of quotation (which was required for Make).
  520. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  521. ;;
  522. esac
  523. ECHO=${lt_ECHO-echo}
  524. if test "X$1" = X--no-reexec; then
  525. # Discard the --no-reexec flag, and continue.
  526. shift
  527. elif test "X$1" = X--fallback-echo; then
  528. # Avoid inline document here, it may be left over
  529. :
  530. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  531. # Yippee, $ECHO works!
  532. :
  533. else
  534. # Restart under the correct shell.
  535. exec $SHELL "$0" --no-reexec ${1+"$@"}
  536. fi
  537. if test "X$1" = X--fallback-echo; then
  538. # used as fallback echo
  539. shift
  540. cat <<_LT_EOF
  541. $*
  542. _LT_EOF
  543. exit 0
  544. fi
  545. # The HP-UX ksh and POSIX shell print the target directory to stdout
  546. # if CDPATH is set.
  547. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  548. if test -z "$lt_ECHO"; then
  549. if test "X${echo_test_string+set}" != Xset; then
  550. # find a string as large as possible, as long as the shell can cope with it
  551. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  552. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  553. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  554. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  555. then
  556. break
  557. fi
  558. done
  559. fi
  560. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  561. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  562. test "X$echo_testing_string" = "X$echo_test_string"; then
  563. :
  564. else
  565. # The Solaris, AIX, and Digital Unix default echo programs unquote
  566. # backslashes. This makes it impossible to quote backslashes using
  567. # echo "$something" | sed 's/\\/\\\\/g'
  568. #
  569. # So, first we look for a working echo in the user's PATH.
  570. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  571. for dir in $PATH /usr/ucb; do
  572. IFS="$lt_save_ifs"
  573. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  574. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  575. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  576. test "X$echo_testing_string" = "X$echo_test_string"; then
  577. ECHO="$dir/echo"
  578. break
  579. fi
  580. done
  581. IFS="$lt_save_ifs"
  582. if test "X$ECHO" = Xecho; then
  583. # We didn't find a better echo, so look for alternatives.
  584. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  585. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  586. test "X$echo_testing_string" = "X$echo_test_string"; then
  587. # This shell has a builtin print -r that does the trick.
  588. ECHO='print -r'
  589. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  590. test "X$CONFIG_SHELL" != X/bin/ksh; then
  591. # If we have ksh, try running configure again with it.
  592. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  593. export ORIGINAL_CONFIG_SHELL
  594. CONFIG_SHELL=/bin/ksh
  595. export CONFIG_SHELL
  596. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  597. else
  598. # Try using printf.
  599. ECHO='printf %s\n'
  600. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  601. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  602. test "X$echo_testing_string" = "X$echo_test_string"; then
  603. # Cool, printf works
  604. :
  605. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  606. test "X$echo_testing_string" = 'X\t' &&
  607. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  608. test "X$echo_testing_string" = "X$echo_test_string"; then
  609. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  610. export CONFIG_SHELL
  611. SHELL="$CONFIG_SHELL"
  612. export SHELL
  613. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  614. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  615. test "X$echo_testing_string" = 'X\t' &&
  616. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  617. test "X$echo_testing_string" = "X$echo_test_string"; then
  618. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  619. else
  620. # maybe with a smaller string...
  621. prev=:
  622. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  623. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  624. then
  625. break
  626. fi
  627. prev="$cmd"
  628. done
  629. if test "$prev" != 'sed 50q "$0"'; then
  630. echo_test_string=`eval $prev`
  631. export echo_test_string
  632. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  633. else
  634. # Oops. We lost completely, so just stick with echo.
  635. ECHO=echo
  636. fi
  637. fi
  638. fi
  639. fi
  640. fi
  641. fi
  642. # Copy echo and quote the copy suitably for passing to libtool from
  643. # the Makefile, instead of quoting the original, which is used later.
  644. lt_ECHO=$ECHO
  645. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  646. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  647. fi
  648. test -n "$DJDIR" || exec 7<&0 </dev/null
  649. exec 6>&1
  650. # Name of the host.
  651. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  652. # so uname gets run too.
  653. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  654. #
  655. # Initializations.
  656. #
  657. ac_default_prefix=/usr/local
  658. ac_clean_files=
  659. ac_config_libobj_dir=.
  660. LIBOBJS=
  661. cross_compiling=no
  662. subdirs=
  663. MFLAGS=
  664. MAKEFLAGS=
  665. # Identity of this package.
  666. PACKAGE_NAME='parsleyc'
  667. PACKAGE_TARNAME='parsleyc'
  668. PACKAGE_VERSION='1.0'
  669. PACKAGE_STRING='parsleyc 1.0'
  670. PACKAGE_BUGREPORT='kyle@kylemaxwell.com'
  671. PACKAGE_URL=''
  672. # Factoring default headers for most tests.
  673. ac_includes_default="\
  674. #include <stdio.h>
  675. #ifdef HAVE_SYS_TYPES_H
  676. # include <sys/types.h>
  677. #endif
  678. #ifdef HAVE_SYS_STAT_H
  679. # include <sys/stat.h>
  680. #endif
  681. #ifdef STDC_HEADERS
  682. # include <stdlib.h>
  683. # include <stddef.h>
  684. #else
  685. # ifdef HAVE_STDLIB_H
  686. # include <stdlib.h>
  687. # endif
  688. #endif
  689. #ifdef HAVE_STRING_H
  690. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  691. # include <memory.h>
  692. # endif
  693. # include <string.h>
  694. #endif
  695. #ifdef HAVE_STRINGS_H
  696. # include <strings.h>
  697. #endif
  698. #ifdef HAVE_INTTYPES_H
  699. # include <inttypes.h>
  700. #endif
  701. #ifdef HAVE_STDINT_H
  702. # include <stdint.h>
  703. #endif
  704. #ifdef HAVE_UNISTD_H
  705. # include <unistd.h>
  706. #endif"
  707. ac_subst_vars='am__EXEEXT_FALSE
  708. am__EXEEXT_TRUE
  709. LTLIBOBJS
  710. LIBOBJS
  711. XSLT_CONFIG
  712. XML2_CONFIG
  713. CPP
  714. OTOOL64
  715. OTOOL
  716. LIPO
  717. NMEDIT
  718. DSYMUTIL
  719. lt_ECHO
  720. RANLIB
  721. AR
  722. OBJDUMP
  723. LN_S
  724. NM
  725. ac_ct_DUMPBIN
  726. DUMPBIN
  727. LD
  728. FGREP
  729. EGREP
  730. GREP
  731. SED
  732. host_os
  733. host_vendor
  734. host_cpu
  735. host
  736. build_os
  737. build_vendor
  738. build_cpu
  739. build
  740. LIBTOOL
  741. YFLAGS
  742. YACC
  743. LEXLIB
  744. LEX_OUTPUT_ROOT
  745. LEX
  746. am__fastdepCC_FALSE
  747. am__fastdepCC_TRUE
  748. CCDEPMODE
  749. AMDEPBACKSLASH
  750. AMDEP_FALSE
  751. AMDEP_TRUE
  752. am__quote
  753. am__include
  754. DEPDIR
  755. OBJEXT
  756. EXEEXT
  757. ac_ct_CC
  758. CPPFLAGS
  759. LDFLAGS
  760. CFLAGS
  761. CC
  762. am__untar
  763. am__tar
  764. AMTAR
  765. am__leading_dot
  766. SET_MAKE
  767. AWK
  768. mkdir_p
  769. MKDIR_P
  770. INSTALL_STRIP_PROGRAM
  771. STRIP
  772. install_sh
  773. MAKEINFO
  774. AUTOHEADER
  775. AUTOMAKE
  776. AUTOCONF
  777. ACLOCAL
  778. VERSION
  779. PACKAGE
  780. CYGPATH_W
  781. am__isrc
  782. INSTALL_DATA
  783. INSTALL_SCRIPT
  784. INSTALL_PROGRAM
  785. target_alias
  786. host_alias
  787. build_alias
  788. LIBS
  789. ECHO_T
  790. ECHO_N
  791. ECHO_C
  792. DEFS
  793. mandir
  794. localedir
  795. libdir
  796. psdir
  797. pdfdir
  798. dvidir
  799. htmldir
  800. infodir
  801. docdir
  802. oldincludedir
  803. includedir
  804. localstatedir
  805. sharedstatedir
  806. sysconfdir
  807. datadir
  808. datarootdir
  809. libexecdir
  810. sbindir
  811. bindir
  812. program_transform_name
  813. prefix
  814. exec_prefix
  815. PACKAGE_URL
  816. PACKAGE_BUGREPORT
  817. PACKAGE_STRING
  818. PACKAGE_VERSION
  819. PACKAGE_TARNAME
  820. PACKAGE_NAME
  821. PATH_SEPARATOR
  822. SHELL'
  823. ac_subst_files=''
  824. ac_user_opts='
  825. enable_option_checking
  826. enable_dependency_tracking
  827. enable_shared
  828. enable_static
  829. with_pic
  830. enable_fast_install
  831. with_gnu_ld
  832. enable_libtool_lock
  833. '
  834. ac_precious_vars='build_alias
  835. host_alias
  836. target_alias
  837. CC
  838. CFLAGS
  839. LDFLAGS
  840. LIBS
  841. CPPFLAGS
  842. YACC
  843. YFLAGS
  844. CPP'
  845. # Initialize some variables set by options.
  846. ac_init_help=
  847. ac_init_version=false
  848. ac_unrecognized_opts=
  849. ac_unrecognized_sep=
  850. # The variables have the same names as the options, with
  851. # dashes changed to underlines.
  852. cache_file=/dev/null
  853. exec_prefix=NONE
  854. no_create=
  855. no_recursion=
  856. prefix=NONE
  857. program_prefix=NONE
  858. program_suffix=NONE
  859. program_transform_name=s,x,x,
  860. silent=
  861. site=
  862. srcdir=
  863. verbose=
  864. x_includes=NONE
  865. x_libraries=NONE
  866. # Installation directory options.
  867. # These are left unexpanded so users can "make install exec_prefix=/foo"
  868. # and all the variables that are supposed to be based on exec_prefix
  869. # by default will actually change.
  870. # Use braces instead of parens because sh, perl, etc. also accept them.
  871. # (The list follows the same order as the GNU Coding Standards.)
  872. bindir='${exec_prefix}/bin'
  873. sbindir='${exec_prefix}/sbin'
  874. libexecdir='${exec_prefix}/libexec'
  875. datarootdir='${prefix}/share'
  876. datadir='${datarootdir}'
  877. sysconfdir='${prefix}/etc'
  878. sharedstatedir='${prefix}/com'
  879. localstatedir='${prefix}/var'
  880. includedir='${prefix}/include'
  881. oldincludedir='/usr/include'
  882. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  883. infodir='${datarootdir}/info'
  884. htmldir='${docdir}'
  885. dvidir='${docdir}'
  886. pdfdir='${docdir}'
  887. psdir='${docdir}'
  888. libdir='${exec_prefix}/lib'
  889. localedir='${datarootdir}/locale'
  890. mandir='${datarootdir}/man'
  891. ac_prev=
  892. ac_dashdash=
  893. for ac_option
  894. do
  895. # If the previous option needs an argument, assign it.
  896. if test -n "$ac_prev"; then
  897. eval $ac_prev=\$ac_option
  898. ac_prev=
  899. continue
  900. fi
  901. case $ac_option in
  902. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  903. *=) ac_optarg= ;;
  904. *) ac_optarg=yes ;;
  905. esac
  906. # Accept the important Cygnus configure options, so we can diagnose typos.
  907. case $ac_dashdash$ac_option in
  908. --)
  909. ac_dashdash=yes ;;
  910. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  911. ac_prev=bindir ;;
  912. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  913. bindir=$ac_optarg ;;
  914. -build | --build | --buil | --bui | --bu)
  915. ac_prev=build_alias ;;
  916. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  917. build_alias=$ac_optarg ;;
  918. -cache-file | --cache-file | --cache-fil | --cache-fi \
  919. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  920. ac_prev=cache_file ;;
  921. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  922. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  923. cache_file=$ac_optarg ;;
  924. --config-cache | -C)
  925. cache_file=config.cache ;;
  926. -datadir | --datadir | --datadi | --datad)
  927. ac_prev=datadir ;;
  928. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  929. datadir=$ac_optarg ;;
  930. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  931. | --dataroo | --dataro | --datar)
  932. ac_prev=datarootdir ;;
  933. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  934. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  935. datarootdir=$ac_optarg ;;
  936. -disable-* | --disable-*)
  937. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  938. # Reject names that are not valid shell variable names.
  939. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  940. as_fn_error $? "invalid feature name: $ac_useropt"
  941. ac_useropt_orig=$ac_useropt
  942. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  943. case $ac_user_opts in
  944. *"
  945. "enable_$ac_useropt"
  946. "*) ;;
  947. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  948. ac_unrecognized_sep=', ';;
  949. esac
  950. eval enable_$ac_useropt=no ;;
  951. -docdir | --docdir | --docdi | --doc | --do)
  952. ac_prev=docdir ;;
  953. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  954. docdir=$ac_optarg ;;
  955. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  956. ac_prev=dvidir ;;
  957. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  958. dvidir=$ac_optarg ;;
  959. -enable-* | --enable-*)
  960. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  961. # Reject names that are not valid shell variable names.
  962. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  963. as_fn_error $? "invalid feature name: $ac_useropt"
  964. ac_useropt_orig=$ac_useropt
  965. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  966. case $ac_user_opts in
  967. *"
  968. "enable_$ac_useropt"
  969. "*) ;;
  970. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  971. ac_unrecognized_sep=', ';;
  972. esac
  973. eval enable_$ac_useropt=\$ac_optarg ;;
  974. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  975. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  976. | --exec | --exe | --ex)
  977. ac_prev=exec_prefix ;;
  978. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  979. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  980. | --exec=* | --exe=* | --ex=*)
  981. exec_prefix=$ac_optarg ;;
  982. -gas | --gas | --ga | --g)
  983. # Obsolete; use --with-gas.
  984. with_gas=yes ;;
  985. -help | --help | --hel | --he | -h)
  986. ac_init_help=long ;;
  987. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  988. ac_init_help=recursive ;;
  989. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  990. ac_init_help=short ;;
  991. -host | --host | --hos | --ho)
  992. ac_prev=host_alias ;;
  993. -host=* | --host=* | --hos=* | --ho=*)
  994. host_alias=$ac_optarg ;;
  995. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  996. ac_prev=htmldir ;;
  997. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  998. | --ht=*)
  999. htmldir=$ac_optarg ;;
  1000. -includedir | --includedir | --includedi | --included | --include \
  1001. | --includ | --inclu | --incl | --inc)
  1002. ac_prev=includedir ;;
  1003. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1004. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1005. includedir=$ac_optarg ;;
  1006. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1007. ac_prev=infodir ;;
  1008. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1009. infodir=$ac_optarg ;;
  1010. -libdir | --libdir | --libdi | --libd)
  1011. ac_prev=libdir ;;
  1012. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1013. libdir=$ac_optarg ;;
  1014. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1015. | --libexe | --libex | --libe)
  1016. ac_prev=libexecdir ;;
  1017. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1018. | --libexe=* | --libex=* | --libe=*)
  1019. libexecdir=$ac_optarg ;;
  1020. -localedir | --localedir | --localedi | --localed | --locale)
  1021. ac_prev=localedir ;;
  1022. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1023. localedir=$ac_optarg ;;
  1024. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1025. | --localstate | --localstat | --localsta | --localst | --locals)
  1026. ac_prev=localstatedir ;;
  1027. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1028. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1029. localstatedir=$ac_optarg ;;
  1030. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1031. ac_prev=mandir ;;
  1032. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1033. mandir=$ac_optarg ;;
  1034. -nfp | --nfp | --nf)
  1035. # Obsolete; use --without-fp.
  1036. with_fp=no ;;
  1037. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1038. | --no-cr | --no-c | -n)
  1039. no_create=yes ;;
  1040. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1041. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1042. no_recursion=yes ;;
  1043. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1044. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1045. | --oldin | --oldi | --old | --ol | --o)
  1046. ac_prev=oldincludedir ;;
  1047. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1048. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1049. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1050. oldincludedir=$ac_optarg ;;
  1051. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1052. ac_prev=prefix ;;
  1053. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1054. prefix=$ac_optarg ;;
  1055. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1056. | --program-pre | --program-pr | --program-p)
  1057. ac_prev=program_prefix ;;
  1058. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1059. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1060. program_prefix=$ac_optarg ;;
  1061. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1062. | --program-suf | --program-su | --program-s)
  1063. ac_prev=program_suffix ;;
  1064. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1065. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1066. program_suffix=$ac_optarg ;;
  1067. -program-transform-name | --program-transform-name \
  1068. | --program-transform-nam | --program-transform-na \
  1069. | --program-transform-n | --program-transform- \
  1070. | --program-transform | --program-transfor \
  1071. | --program-transfo | --program-transf \
  1072. | --program-trans | --program-tran \
  1073. | --progr-tra | --program-tr | --program-t)
  1074. ac_prev=program_transform_name ;;
  1075. -program-transform-name=* | --program-transform-name=* \
  1076. | --program-transform-nam=* | --program-transform-na=* \
  1077. | --program-transform-n=* | --program-transform-=* \
  1078. | --program-transform=* | --program-transfor=* \
  1079. | --program-transfo=* | --program-transf=* \
  1080. | --program-trans=* | --program-tran=* \
  1081. | --progr-tra=* | --program-tr=* | --program-t=*)
  1082. program_transform_name=$ac_optarg ;;
  1083. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1084. ac_prev=pdfdir ;;
  1085. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1086. pdfdir=$ac_optarg ;;
  1087. -psdir | --psdir | --psdi | --psd | --ps)
  1088. ac_prev=psdir ;;
  1089. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1090. psdir=$ac_optarg ;;
  1091. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1092. | -silent | --silent | --silen | --sile | --sil)
  1093. silent=yes ;;
  1094. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1095. ac_prev=sbindir ;;
  1096. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1097. | --sbi=* | --sb=*)
  1098. sbindir=$ac_optarg ;;
  1099. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1100. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1101. | --sharedst | --shareds | --shared | --share | --shar \
  1102. | --sha | --sh)
  1103. ac_prev=sharedstatedir ;;
  1104. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1105. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1106. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1107. | --sha=* | --sh=*)
  1108. sharedstatedir=$ac_optarg ;;
  1109. -site | --site | --sit)
  1110. ac_prev=site ;;
  1111. -site=* | --site=* | --sit=*)
  1112. site=$ac_optarg ;;
  1113. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1114. ac_prev=srcdir ;;
  1115. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1116. srcdir=$ac_optarg ;;
  1117. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1118. | --syscon | --sysco | --sysc | --sys | --sy)
  1119. ac_prev=sysconfdir ;;
  1120. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1121. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1122. sysconfdir=$ac_optarg ;;
  1123. -target | --target | --targe | --targ | --tar | --ta | --t)
  1124. ac_prev=target_alias ;;
  1125. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1126. target_alias=$ac_optarg ;;
  1127. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1128. verbose=yes ;;
  1129. -version | --version | --versio | --versi | --vers | -V)
  1130. ac_init_version=: ;;
  1131. -with-* | --with-*)
  1132. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1133. # Reject names that are not valid shell variable names.
  1134. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1135. as_fn_error $? "invalid package name: $ac_useropt"
  1136. ac_useropt_orig=$ac_useropt
  1137. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1138. case $ac_user_opts in
  1139. *"
  1140. "with_$ac_useropt"
  1141. "*) ;;
  1142. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1143. ac_unrecognized_sep=', ';;
  1144. esac
  1145. eval with_$ac_useropt=\$ac_optarg ;;
  1146. -without-* | --without-*)
  1147. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1148. # Reject names that are not valid shell variable names.
  1149. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1150. as_fn_error $? "invalid package name: $ac_useropt"
  1151. ac_useropt_orig=$ac_useropt
  1152. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1153. case $ac_user_opts in
  1154. *"
  1155. "with_$ac_useropt"
  1156. "*) ;;
  1157. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1158. ac_unrecognized_sep=', ';;
  1159. esac
  1160. eval with_$ac_useropt=no ;;
  1161. --x)
  1162. # Obsolete; use --with-x.
  1163. with_x=yes ;;
  1164. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1165. | --x-incl | --x-inc | --x-in | --x-i)
  1166. ac_prev=x_includes ;;
  1167. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1168. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1169. x_includes=$ac_optarg ;;
  1170. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1171. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1172. ac_prev=x_libraries ;;
  1173. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1174. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1175. x_libraries=$ac_optarg ;;
  1176. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1177. Try \`$0 --help' for more information"
  1178. ;;
  1179. *=*)
  1180. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1181. # Reject names that are not valid shell variable names.
  1182. case $ac_envvar in #(
  1183. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1184. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1185. esac
  1186. eval $ac_envvar=\$ac_optarg
  1187. export $ac_envvar ;;
  1188. *)
  1189. # FIXME: should be removed in autoconf 3.0.
  1190. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1191. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1192. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1193. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1194. ;;
  1195. esac
  1196. done
  1197. if test -n "$ac_prev"; then
  1198. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1199. as_fn_error $? "missing argument to $ac_option"
  1200. fi
  1201. if test -n "$ac_unrecognized_opts"; then
  1202. case $enable_option_checking in
  1203. no) ;;
  1204. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1205. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1206. esac
  1207. fi
  1208. # Check all directory arguments for consistency.
  1209. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1210. datadir sysconfdir sharedstatedir localstatedir includedir \
  1211. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1212. libdir localedir mandir
  1213. do
  1214. eval ac_val=\$$ac_var
  1215. # Remove trailing slashes.
  1216. case $ac_val in
  1217. */ )
  1218. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1219. eval $ac_var=\$ac_val;;
  1220. esac
  1221. # Be sure to have absolute directory names.
  1222. case $ac_val in
  1223. [\\/$]* | ?:[\\/]* ) continue;;
  1224. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1225. esac
  1226. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1227. done
  1228. # There might be people who depend on the old broken behavior: `$host'
  1229. # used to hold the argument of --host etc.
  1230. # FIXME: To remove some day.
  1231. build=$build_alias
  1232. host=$host_alias
  1233. target=$target_alias
  1234. # FIXME: To remove some day.
  1235. if test "x$host_alias" != x; then
  1236. if test "x$build_alias" = x; then
  1237. cross_compiling=maybe
  1238. elif test "x$build_alias" != "x$host_alias"; then
  1239. cross_compiling=yes
  1240. fi
  1241. fi
  1242. ac_tool_prefix=
  1243. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1244. test "$silent" = yes && exec 6>/dev/null
  1245. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1246. ac_ls_di=`ls -di .` &&
  1247. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1248. as_fn_error $? "working directory cannot be determined"
  1249. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1250. as_fn_error $? "pwd does not report name of working directory"
  1251. # Find the source files, if location was not specified.
  1252. if test -z "$srcdir"; then
  1253. ac_srcdir_defaulted=yes
  1254. # Try the directory containing this script, then the parent directory.
  1255. ac_confdir=`$as_dirname -- "$as_myself" ||
  1256. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1257. X"$as_myself" : 'X\(//\)[^/]' \| \
  1258. X"$as_myself" : 'X\(//\)$' \| \
  1259. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1260. $as_echo X"$as_myself" |
  1261. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1262. s//\1/
  1263. q
  1264. }
  1265. /^X\(\/\/\)[^/].*/{
  1266. s//\1/
  1267. q
  1268. }
  1269. /^X\(\/\/\)$/{
  1270. s//\1/
  1271. q
  1272. }
  1273. /^X\(\/\).*/{
  1274. s//\1/
  1275. q
  1276. }
  1277. s/.*/./; q'`
  1278. srcdir=$ac_confdir
  1279. if test ! -r "$srcdir/$ac_unique_file"; then
  1280. srcdir=..
  1281. fi
  1282. else
  1283. ac_srcdir_defaulted=no
  1284. fi
  1285. if test ! -r "$srcdir/$ac_unique_file"; then
  1286. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1287. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1288. fi
  1289. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1290. ac_abs_confdir=`(
  1291. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1292. pwd)`
  1293. # When building in place, set srcdir=.
  1294. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1295. srcdir=.
  1296. fi
  1297. # Remove unnecessary trailing slashes from srcdir.
  1298. # Double slashes in file names in object file debugging info
  1299. # mess up M-x gdb in Emacs.
  1300. case $srcdir in
  1301. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1302. esac
  1303. for ac_var in $ac_precious_vars; do
  1304. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1305. eval ac_env_${ac_var}_value=\$${ac_var}
  1306. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1307. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1308. done
  1309. #
  1310. # Report the --help message.
  1311. #
  1312. if test "$ac_init_help" = "long"; then
  1313. # Omit some internal or obsolete options to make the list less imposing.
  1314. # This message is too long to be a string in the A/UX 3.1 sh.
  1315. cat <<_ACEOF
  1316. \`configure' configures parsleyc 1.0 to adapt to many kinds of systems.
  1317. Usage: $0 [OPTION]... [VAR=VALUE]...
  1318. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1319. VAR=VALUE. See below for descriptions of some of the useful variables.
  1320. Defaults for the options are specified in brackets.
  1321. Configuration:
  1322. -h, --help display this help and exit
  1323. --help=short display options specific to this package
  1324. --help=recursive display the short help of all the included packages
  1325. -V, --version display version information and exit
  1326. -q, --quiet, --silent do not print \`checking ...' messages
  1327. --cache-file=FILE cache test results in FILE [disabled]
  1328. -C, --config-cache alias for \`--cache-file=config.cache'
  1329. -n, --no-create do not create output files
  1330. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1331. Installation directories:
  1332. --prefix=PREFIX install architecture-independent files in PREFIX
  1333. [$ac_default_prefix]
  1334. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1335. [PREFIX]
  1336. By default, \`make install' will install all the files in
  1337. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1338. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1339. for instance \`--prefix=\$HOME'.
  1340. For better control, use the options below.
  1341. Fine tuning of the installation directories:
  1342. --bindir=DIR user executables [EPREFIX/bin]
  1343. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1344. --libexecdir=DIR program executables [EPREFIX/libexec]
  1345. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1346. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1347. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1348. --libdir=DIR object code libraries [EPREFIX/lib]
  1349. --includedir=DIR C header files [PREFIX/include]
  1350. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1351. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1352. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1353. --infodir=DIR info documentation [DATAROOTDIR/info]
  1354. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1355. --mandir=DIR man documentation [DATAROOTDIR/man]
  1356. --docdir=DIR documentation root [DATAROOTDIR/doc/parsleyc]
  1357. --htmldir=DIR html documentation [DOCDIR]
  1358. --dvidir=DIR dvi documentation [DOCDIR]
  1359. --pdfdir=DIR pdf documentation [DOCDIR]
  1360. --psdir=DIR ps documentation [DOCDIR]
  1361. _ACEOF
  1362. cat <<\_ACEOF
  1363. Program names:
  1364. --program-prefix=PREFIX prepend PREFIX to installed program names
  1365. --program-suffix=SUFFIX append SUFFIX to installed program names
  1366. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1367. System types:
  1368. --build=BUILD configure for building on BUILD [guessed]
  1369. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1370. _ACEOF
  1371. fi
  1372. if test -n "$ac_init_help"; then
  1373. case $ac_init_help in
  1374. short | recursive ) echo "Configuration of parsleyc 1.0:";;
  1375. esac
  1376. cat <<\_ACEOF
  1377. Optional Features:
  1378. --disable-option-checking ignore unrecognized --enable/--with options
  1379. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1380. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1381. --disable-dependency-tracking speeds up one-time build
  1382. --enable-dependency-tracking do not reject slow dependency extractors
  1383. --enable-shared[=PKGS] build shared libraries [default=yes]
  1384. --enable-static[=PKGS] build static libraries [default=yes]
  1385. --enable-fast-install[=PKGS]
  1386. optimize for fast installation [default=yes]
  1387. --disable-libtool-lock avoid locking (might break parallel builds)
  1388. Optional Packages:
  1389. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1390. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1391. --with-pic try to use only PIC/non-PIC objects [default=use
  1392. both]
  1393. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1394. Some influential environment variables:
  1395. CC C compiler command
  1396. CFLAGS C compiler flags
  1397. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1398. nonstandard directory <lib dir>
  1399. LIBS libraries to pass to the linker, e.g. -l<library>
  1400. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1401. you have headers in a nonstandard directory <include dir>
  1402. YACC The `Yet Another Compiler Compiler' implementation to use.
  1403. Defaults to the first program found out of: `bison -y', `byacc',
  1404. `yacc'.
  1405. YFLAGS The list of arguments that will be passed by default to $YACC.
  1406. This script will default YFLAGS to the empty string to avoid a
  1407. default value of `-d' given by some make applications.
  1408. CPP C preprocessor
  1409. Use these variables to override the choices made by `configure' or to help
  1410. it to find libraries and programs with nonstandard names/locations.
  1411. Report bugs to <kyle@kylemaxwell.com>.
  1412. _ACEOF
  1413. ac_status=$?
  1414. fi
  1415. if test "$ac_init_help" = "recursive"; then
  1416. # If there are subdirs, report their specific --help.
  1417. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1418. test -d "$ac_dir" ||
  1419. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1420. continue
  1421. ac_builddir=.
  1422. case "$ac_dir" in
  1423. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1424. *)
  1425. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1426. # A ".." for each directory in $ac_dir_suffix.
  1427. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1428. case $ac_top_builddir_sub in
  1429. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1430. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1431. esac ;;
  1432. esac
  1433. ac_abs_top_builddir=$ac_pwd
  1434. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1435. # for backward compatibility:
  1436. ac_top_builddir=$ac_top_build_prefix
  1437. case $srcdir in
  1438. .) # We are building in place.
  1439. ac_srcdir=.
  1440. ac_top_srcdir=$ac_top_builddir_sub
  1441. ac_abs_top_srcdir=$ac_pwd ;;
  1442. [\\/]* | ?:[\\/]* ) # Absolute name.
  1443. ac_srcdir=$srcdir$ac_dir_suffix;
  1444. ac_top_srcdir=$srcdir
  1445. ac_abs_top_srcdir=$srcdir ;;
  1446. *) # Relative name.
  1447. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1448. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1449. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1450. esac
  1451. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1452. cd "$ac_dir" || { ac_status=$?; continue; }
  1453. # Check for guested configure.
  1454. if test -f "$ac_srcdir/configure.gnu"; then
  1455. echo &&
  1456. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1457. elif test -f "$ac_srcdir/configure"; then
  1458. echo &&
  1459. $SHELL "$ac_srcdir/configure" --help=recursive
  1460. else
  1461. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1462. fi || ac_status=$?
  1463. cd "$ac_pwd" || { ac_status=$?; break; }
  1464. done
  1465. fi
  1466. test -n "$ac_init_help" && exit $ac_status
  1467. if $ac_init_version; then
  1468. cat <<\_ACEOF
  1469. parsleyc configure 1.0
  1470. generated by GNU Autoconf 2.69
  1471. Copyright (C) 2012 Free Software Foundation, Inc.
  1472. This configure script is free software; the Free Software Foundation
  1473. gives unlimited permission to copy, distribute and modify it.
  1474. _ACEOF
  1475. exit
  1476. fi
  1477. ## ------------------------ ##
  1478. ## Autoconf initialization. ##
  1479. ## ------------------------ ##
  1480. # ac_fn_c_try_compile LINENO
  1481. # --------------------------
  1482. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1483. ac_fn_c_try_compile ()
  1484. {
  1485. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1486. rm -f conftest.$ac_objext
  1487. if { { ac_try="$ac_compile"
  1488. case "(($ac_try" in
  1489. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1490. *) ac_try_echo=$ac_try;;
  1491. esac
  1492. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1493. $as_echo "$ac_try_echo"; } >&5
  1494. (eval "$ac_compile") 2>conftest.err
  1495. ac_status=$?
  1496. if test -s conftest.err; then
  1497. grep -v '^ *+' conftest.err >conftest.er1
  1498. cat conftest.er1 >&5
  1499. mv -f conftest.er1 conftest.err
  1500. fi
  1501. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1502. test $ac_status = 0; } && {
  1503. test -z "$ac_c_werror_flag" ||
  1504. test ! -s conftest.err
  1505. } && test -s conftest.$ac_objext; then :
  1506. ac_retval=0
  1507. else
  1508. $as_echo "$as_me: failed program was:" >&5
  1509. sed 's/^/| /' conftest.$ac_ext >&5
  1510. ac_retval=1
  1511. fi
  1512. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1513. as_fn_set_status $ac_retval
  1514. } # ac_fn_c_try_compile
  1515. # ac_fn_c_try_link LINENO
  1516. # -----------------------
  1517. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1518. ac_fn_c_try_link ()
  1519. {
  1520. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1521. rm -f conftest.$ac_objext conftest$ac_exeext
  1522. if { { ac_try="$ac_link"
  1523. case "(($ac_try" in
  1524. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1525. *) ac_try_echo=$ac_try;;
  1526. esac
  1527. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1528. $as_echo "$ac_try_echo"; } >&5
  1529. (eval "$ac_link") 2>conftest.err
  1530. ac_status=$?
  1531. if test -s conftest.err; then
  1532. grep -v '^ *+' conftest.err >conftest.er1
  1533. cat conftest.er1 >&5
  1534. mv -f conftest.er1 conftest.err
  1535. fi
  1536. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1537. test $ac_status = 0; } && {
  1538. test -z "$ac_c_werror_flag" ||
  1539. test ! -s conftest.err
  1540. } && test -s conftest$ac_exeext && {
  1541. test "$cross_compiling" = yes ||
  1542. test -x conftest$ac_exeext
  1543. }; then :
  1544. ac_retval=0
  1545. else
  1546. $as_echo "$as_me: failed program was:" >&5
  1547. sed 's/^/| /' conftest.$ac_ext >&5
  1548. ac_retval=1
  1549. fi
  1550. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1551. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1552. # interfere with the next link command; also delete a directory that is
  1553. # left behind by Apple's compiler. We do this before executing the actions.
  1554. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1555. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1556. as_fn_set_status $ac_retval
  1557. } # ac_fn_c_try_link
  1558. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1559. # -------------------------------------------------------
  1560. # Tests whether HEADER exists and can be compiled using the include files in
  1561. # INCLUDES, setting the cache variable VAR accordingly.
  1562. ac_fn_c_check_header_compile ()
  1563. {
  1564. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1566. $as_echo_n "checking for $2... " >&6; }
  1567. if eval \${$3+:} false; then :
  1568. $as_echo_n "(cached) " >&6
  1569. else
  1570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1571. /* end confdefs.h. */
  1572. $4
  1573. #include <$2>
  1574. _ACEOF
  1575. if ac_fn_c_try_compile "$LINENO"; then :
  1576. eval "$3=yes"
  1577. else
  1578. eval "$3=no"
  1579. fi
  1580. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1581. fi
  1582. eval ac_res=\$$3
  1583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1584. $as_echo "$ac_res" >&6; }
  1585. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1586. } # ac_fn_c_check_header_compile
  1587. # ac_fn_c_try_cpp LINENO
  1588. # ----------------------
  1589. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1590. ac_fn_c_try_cpp ()
  1591. {
  1592. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1593. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1594. case "(($ac_try" in
  1595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1596. *) ac_try_echo=$ac_try;;
  1597. esac
  1598. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1599. $as_echo "$ac_try_echo"; } >&5
  1600. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1601. ac_status=$?
  1602. if test -s conftest.err; then
  1603. grep -v '^ *+' conftest.err >conftest.er1
  1604. cat conftest.er1 >&5
  1605. mv -f conftest.er1 conftest.err
  1606. fi
  1607. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1608. test $ac_status = 0; } > conftest.i && {
  1609. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1610. test ! -s conftest.err
  1611. }; then :
  1612. ac_retval=0
  1613. else
  1614. $as_echo "$as_me: failed program was:" >&5
  1615. sed 's/^/| /' conftest.$ac_ext >&5
  1616. ac_retval=1
  1617. fi
  1618. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1619. as_fn_set_status $ac_retval
  1620. } # ac_fn_c_try_cpp
  1621. # ac_fn_c_try_run LINENO
  1622. # ----------------------
  1623. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1624. # that executables *can* be run.
  1625. ac_fn_c_try_run ()
  1626. {
  1627. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1628. if { { ac_try="$ac_link"
  1629. case "(($ac_try" in
  1630. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1631. *) ac_try_echo=$ac_try;;
  1632. esac
  1633. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1634. $as_echo "$ac_try_echo"; } >&5
  1635. (eval "$ac_link") 2>&5
  1636. ac_status=$?
  1637. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1638. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1639. { { case "(($ac_try" in
  1640. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1641. *) ac_try_echo=$ac_try;;
  1642. esac
  1643. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1644. $as_echo "$ac_try_echo"; } >&5
  1645. (eval "$ac_try") 2>&5
  1646. ac_status=$?
  1647. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1648. test $ac_status = 0; }; }; then :
  1649. ac_retval=0
  1650. else
  1651. $as_echo "$as_me: program exited with status $ac_status" >&5
  1652. $as_echo "$as_me: failed program was:" >&5
  1653. sed 's/^/| /' conftest.$ac_ext >&5
  1654. ac_retval=$ac_status
  1655. fi
  1656. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1657. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1658. as_fn_set_status $ac_retval
  1659. } # ac_fn_c_try_run
  1660. # ac_fn_c_check_func LINENO FUNC VAR
  1661. # ----------------------------------
  1662. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1663. ac_fn_c_check_func ()
  1664. {
  1665. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1667. $as_echo_n "checking for $2... " >&6; }
  1668. if eval \${$3+:} false; then :
  1669. $as_echo_n "(cached) " >&6
  1670. else
  1671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1672. /* end confdefs.h. */
  1673. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1674. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1675. #define $2 innocuous_$2
  1676. /* System header to define __stub macros and hopefully few prototypes,
  1677. which can conflict with char $2 (); below.
  1678. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1679. <limits.h> exists even on freestanding compilers. */
  1680. #ifdef __STDC__
  1681. # include <limits.h>
  1682. #else
  1683. # include <assert.h>
  1684. #endif
  1685. #undef $2
  1686. /* Override any GCC internal prototype to avoid an error.
  1687. Use char because int might match the return type of a GCC
  1688. builtin and then its argument prototype would still apply. */
  1689. #ifdef __cplusplus
  1690. extern "C"
  1691. #endif
  1692. char $2 ();
  1693. /* The GNU C library defines this for functions which it implements
  1694. to always fail with ENOSYS. Some functions are actually named
  1695. something starting with __ and the normal name is an alias. */
  1696. #if defined __stub_$2 || defined __stub___$2
  1697. choke me
  1698. #endif
  1699. int
  1700. main ()
  1701. {
  1702. return $2 ();
  1703. ;
  1704. return 0;
  1705. }
  1706. _ACEOF
  1707. if ac_fn_c_try_link "$LINENO"; then :
  1708. eval "$3=yes"
  1709. else
  1710. eval "$3=no"
  1711. fi
  1712. rm -f core conftest.err conftest.$ac_objext \
  1713. conftest$ac_exeext conftest.$ac_ext
  1714. fi
  1715. eval ac_res=\$$3
  1716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1717. $as_echo "$ac_res" >&6; }
  1718. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1719. } # ac_fn_c_check_func
  1720. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1721. # -------------------------------------------------------
  1722. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1723. # the include files in INCLUDES and setting the cache variable VAR
  1724. # accordingly.
  1725. ac_fn_c_check_header_mongrel ()
  1726. {
  1727. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1728. if eval \${$3+:} false; then :
  1729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1730. $as_echo_n "checking for $2... " >&6; }
  1731. if eval \${$3+:} false; then :
  1732. $as_echo_n "(cached) " >&6
  1733. fi
  1734. eval ac_res=\$$3
  1735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1736. $as_echo "$ac_res" >&6; }
  1737. else
  1738. # Is the header compilable?
  1739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1740. $as_echo_n "checking $2 usability... " >&6; }
  1741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1742. /* end confdefs.h. */
  1743. $4
  1744. #include <$2>
  1745. _ACEOF
  1746. if ac_fn_c_try_compile "$LINENO"; then :
  1747. ac_header_compiler=yes
  1748. else
  1749. ac_header_compiler=no
  1750. fi
  1751. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1753. $as_echo "$ac_header_compiler" >&6; }
  1754. # Is the header present?
  1755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1756. $as_echo_n "checking $2 presence... " >&6; }
  1757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1758. /* end confdefs.h. */
  1759. #include <$2>
  1760. _ACEOF
  1761. if ac_fn_c_try_cpp "$LINENO"; then :
  1762. ac_header_preproc=yes
  1763. else
  1764. ac_header_preproc=no
  1765. fi
  1766. rm -f conftest.err conftest.i conftest.$ac_ext
  1767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1768. $as_echo "$ac_header_preproc" >&6; }
  1769. # So? What about this header?
  1770. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1771. yes:no: )
  1772. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1773. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1774. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1775. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1776. ;;
  1777. no:yes:* )
  1778. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1779. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1780. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1781. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1782. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1783. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1784. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1785. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1786. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1787. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1788. ( $as_echo "## ----------------------------------- ##
  1789. ## Report this to kyle@kylemaxwell.com ##
  1790. ## ----------------------------------- ##"
  1791. ) | sed "s/^/$as_me: WARNING: /" >&2
  1792. ;;
  1793. esac
  1794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1795. $as_echo_n "checking for $2... " >&6; }
  1796. if eval \${$3+:} false; then :
  1797. $as_echo_n "(cached) " >&6
  1798. else
  1799. eval "$3=\$ac_header_compiler"
  1800. fi
  1801. eval ac_res=\$$3
  1802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1803. $as_echo "$ac_res" >&6; }
  1804. fi
  1805. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1806. } # ac_fn_c_check_header_mongrel
  1807. cat >config.log <<_ACEOF
  1808. This file contains any messages produced by compilers while
  1809. running configure, to aid debugging if configure makes a mistake.
  1810. It was created by parsleyc $as_me 1.0, which was
  1811. generated by GNU Autoconf 2.69. Invocation command line was
  1812. $ $0 $@
  1813. _ACEOF
  1814. exec 5>>config.log
  1815. {
  1816. cat <<_ASUNAME
  1817. ## --------- ##
  1818. ## Platform. ##
  1819. ## --------- ##
  1820. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1821. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1822. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1823. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1824. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1825. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1826. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1827. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1828. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1829. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1830. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1831. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1832. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1833. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1834. _ASUNAME
  1835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1836. for as_dir in $PATH
  1837. do
  1838. IFS=$as_save_IFS
  1839. test -z "$as_dir" && as_dir=.
  1840. $as_echo "PATH: $as_dir"
  1841. done
  1842. IFS=$as_save_IFS
  1843. } >&5
  1844. cat >&5 <<_ACEOF
  1845. ## ----------- ##
  1846. ## Core tests. ##
  1847. ## ----------- ##
  1848. _ACEOF
  1849. # Keep a trace of the command line.
  1850. # Strip out --no-create and --no-recursion so they do not pile up.
  1851. # Strip out --silent because we don't want to record it for future runs.
  1852. # Also quote any args containing shell meta-characters.
  1853. # Make two passes to allow for proper duplicate-argument suppression.
  1854. ac_configure_args=
  1855. ac_configure_args0=
  1856. ac_configure_args1=
  1857. ac_must_keep_next=false
  1858. for ac_pass in 1 2
  1859. do
  1860. for ac_arg
  1861. do
  1862. case $ac_arg in
  1863. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1864. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1865. | -silent | --silent | --silen | --sile | --sil)
  1866. continue ;;
  1867. *\'*)
  1868. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1869. esac
  1870. case $ac_pass in
  1871. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1872. 2)
  1873. as_fn_append ac_configure_args1 " '$ac_arg'"
  1874. if test $ac_must_keep_next = true; then
  1875. ac_must_keep_next=false # Got value, back to normal.
  1876. else
  1877. case $ac_arg in
  1878. *=* | --config-cache | -C | -disable-* | --disable-* \
  1879. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1880. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1881. | -with-* | --with-* | -without-* | --without-* | --x)
  1882. case "$ac_configure_args0 " in
  1883. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1884. esac
  1885. ;;
  1886. -* ) ac_must_keep_next=true ;;
  1887. esac
  1888. fi
  1889. as_fn_append ac_configure_args " '$ac_arg'"
  1890. ;;
  1891. esac
  1892. done
  1893. done
  1894. { ac_configure_args0=; unset ac_configure_args0;}
  1895. { ac_configure_args1=; unset ac_configure_args1;}
  1896. # When interrupted or exit'd, cleanup temporary files, and complete
  1897. # config.log. We remove comments because anyway the quotes in there
  1898. # would cause problems or look ugly.
  1899. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1900. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1901. trap 'exit_status=$?
  1902. # Save into config.log some information that might help in debugging.
  1903. {
  1904. echo
  1905. $as_echo "## ---------------- ##
  1906. ## Cache variables. ##
  1907. ## ---------------- ##"
  1908. echo
  1909. # The following way of writing the cache mishandles newlines in values,
  1910. (
  1911. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1912. eval ac_val=\$$ac_var
  1913. case $ac_val in #(
  1914. *${as_nl}*)
  1915. case $ac_var in #(
  1916. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1917. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1918. esac
  1919. case $ac_var in #(
  1920. _ | IFS | as_nl) ;; #(
  1921. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1922. *) { eval $ac_var=; unset $ac_var;} ;;
  1923. esac ;;
  1924. esac
  1925. done
  1926. (set) 2>&1 |
  1927. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1928. *${as_nl}ac_space=\ *)
  1929. sed -n \
  1930. "s/'\''/'\''\\\\'\'''\''/g;
  1931. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1932. ;; #(
  1933. *)
  1934. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1935. ;;
  1936. esac |
  1937. sort
  1938. )
  1939. echo
  1940. $as_echo "## ----------------- ##
  1941. ## Output variables. ##
  1942. ## ----------------- ##"
  1943. echo
  1944. for ac_var in $ac_subst_vars
  1945. do
  1946. eval ac_val=\$$ac_var
  1947. case $ac_val in
  1948. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1949. esac
  1950. $as_echo "$ac_var='\''$ac_val'\''"
  1951. done | sort
  1952. echo
  1953. if test -n "$ac_subst_files"; then
  1954. $as_echo "## ------------------- ##
  1955. ## File substitutions. ##
  1956. ## ------------------- ##"
  1957. echo
  1958. for ac_var in $ac_subst_files
  1959. do
  1960. eval ac_val=\$$ac_var
  1961. case $ac_val in
  1962. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1963. esac
  1964. $as_echo "$ac_var='\''$ac_val'\''"
  1965. done | sort
  1966. echo
  1967. fi
  1968. if test -s confdefs.h; then
  1969. $as_echo "## ----------- ##
  1970. ## confdefs.h. ##
  1971. ## ----------- ##"
  1972. echo
  1973. cat confdefs.h
  1974. echo
  1975. fi
  1976. test "$ac_signal" != 0 &&
  1977. $as_echo "$as_me: caught signal $ac_signal"
  1978. $as_echo "$as_me: exit $exit_status"
  1979. } >&5
  1980. rm -f core *.core core.conftest.* &&
  1981. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1982. exit $exit_status
  1983. ' 0
  1984. for ac_signal in 1 2 13 15; do
  1985. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1986. done
  1987. ac_signal=0
  1988. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1989. rm -f -r conftest* confdefs.h
  1990. $as_echo "/* confdefs.h */" > confdefs.h
  1991. # Predefined preprocessor variables.
  1992. cat >>confdefs.h <<_ACEOF
  1993. #define PACKAGE_NAME "$PACKAGE_NAME"
  1994. _ACEOF
  1995. cat >>confdefs.h <<_ACEOF
  1996. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1997. _ACEOF
  1998. cat >>confdefs.h <<_ACEOF
  1999. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2000. _ACEOF
  2001. cat >>confdefs.h <<_ACEOF
  2002. #define PACKAGE_STRING "$PACKAGE_STRING"
  2003. _ACEOF
  2004. cat >>confdefs.h <<_ACEOF
  2005. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2006. _ACEOF
  2007. cat >>confdefs.h <<_ACEOF
  2008. #define PACKAGE_URL "$PACKAGE_URL"
  2009. _ACEOF
  2010. # Let the site file select an alternate cache file if it wants to.
  2011. # Prefer an explicitly selected file to automatically selected ones.
  2012. ac_site_file1=NONE
  2013. ac_site_file2=NONE
  2014. if test -n "$CONFIG_SITE"; then
  2015. # We do not want a PATH search for config.site.
  2016. case $CONFIG_SITE in #((
  2017. -*) ac_site_file1=./$CONFIG_SITE;;
  2018. */*) ac_site_file1=$CONFIG_SITE;;
  2019. *) ac_site_file1=./$CONFIG_SITE;;
  2020. esac
  2021. elif test "x$prefix" != xNONE; then
  2022. ac_site_file1=$prefix/share/config.site
  2023. ac_site_file2=$prefix/etc/config.site
  2024. else
  2025. ac_site_file1=$ac_default_prefix/share/config.site
  2026. ac_site_file2=$ac_default_prefix/etc/config.site
  2027. fi
  2028. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2029. do
  2030. test "x$ac_site_file" = xNONE && continue
  2031. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2032. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2033. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2034. sed 's/^/| /' "$ac_site_file" >&5
  2035. . "$ac_site_file" \
  2036. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2037. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2038. as_fn_error $? "failed to load site script $ac_site_file
  2039. See \`config.log' for more details" "$LINENO" 5; }
  2040. fi
  2041. done
  2042. if test -r "$cache_file"; then
  2043. # Some versions of bash will fail to source /dev/null (special files
  2044. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2045. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2046. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2047. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2048. case $cache_file in
  2049. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2050. *) . "./$cache_file";;
  2051. esac
  2052. fi
  2053. else
  2054. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2055. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2056. >$cache_file
  2057. fi
  2058. # Check that the precious variables saved in the cache have kept the same
  2059. # value.
  2060. ac_cache_corrupted=false
  2061. for ac_var in $ac_precious_vars; do
  2062. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2063. eval ac_new_set=\$ac_env_${ac_var}_set
  2064. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2065. eval ac_new_val=\$ac_env_${ac_var}_value
  2066. case $ac_old_set,$ac_new_set in
  2067. set,)
  2068. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2069. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2070. ac_cache_corrupted=: ;;
  2071. ,set)
  2072. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2073. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2074. ac_cache_corrupted=: ;;
  2075. ,);;
  2076. *)
  2077. if test "x$ac_old_val" != "x$ac_new_val"; then
  2078. # differences in whitespace do not lead to failure.
  2079. ac_old_val_w=`echo x $ac_old_val`
  2080. ac_new_val_w=`echo x $ac_new_val`
  2081. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2082. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2083. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2084. ac_cache_corrupted=:
  2085. else
  2086. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2087. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2088. eval $ac_var=\$ac_old_val
  2089. fi
  2090. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2091. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2092. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2093. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2094. fi;;
  2095. esac
  2096. # Pass precious variables to config.status.
  2097. if test "$ac_new_set" = set; then
  2098. case $ac_new_val in
  2099. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2100. *) ac_arg=$ac_var=$ac_new_val ;;
  2101. esac
  2102. case " $ac_configure_args " in
  2103. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2104. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2105. esac
  2106. fi
  2107. done
  2108. if $ac_cache_corrupted; then
  2109. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2110. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2111. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2112. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2113. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2114. fi
  2115. ## -------------------- ##
  2116. ## Main body of script. ##
  2117. ## -------------------- ##
  2118. ac_ext=c
  2119. ac_cpp='$CPP $CPPFLAGS'
  2120. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2121. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2122. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2123. am__api_version='1.11'
  2124. ac_aux_dir=
  2125. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2126. if test -f "$ac_dir/install-sh"; then
  2127. ac_aux_dir=$ac_dir
  2128. ac_install_sh="$ac_aux_dir/install-sh -c"
  2129. break
  2130. elif test -f "$ac_dir/install.sh"; then
  2131. ac_aux_dir=$ac_dir
  2132. ac_install_sh="$ac_aux_dir/install.sh -c"
  2133. break
  2134. elif test -f "$ac_dir/shtool"; then
  2135. ac_aux_dir=$ac_dir
  2136. ac_install_sh="$ac_aux_dir/shtool install -c"
  2137. break
  2138. fi
  2139. done
  2140. if test -z "$ac_aux_dir"; then
  2141. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2142. fi
  2143. # These three variables are undocumented and unsupported,
  2144. # and are intended to be withdrawn in a future Autoconf release.
  2145. # They can cause serious problems if a builder's source tree is in a directory
  2146. # whose full name contains unusual characters.
  2147. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2148. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2149. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2150. # Find a good install program. We prefer a C program (faster),
  2151. # so one script is as good as another. But avoid the broken or
  2152. # incompatible versions:
  2153. # SysV /etc/install, /usr/sbin/install
  2154. # SunOS /usr/etc/install
  2155. # IRIX /sbin/install
  2156. # AIX /bin/install
  2157. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2158. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2159. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2160. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2161. # OS/2's system install, which has a completely different semantic
  2162. # ./install, which can be erroneously created by make from ./install.sh.
  2163. # Reject install programs that cannot install multiple files.
  2164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2165. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2166. if test -z "$INSTALL"; then
  2167. if ${ac_cv_path_install+:} false; then :
  2168. $as_echo_n "(cached) " >&6
  2169. else
  2170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2171. for as_dir in $PATH
  2172. do
  2173. IFS=$as_save_IFS
  2174. test -z "$as_dir" && as_dir=.
  2175. # Account for people who put trailing slashes in PATH elements.
  2176. case $as_dir/ in #((
  2177. ./ | .// | /[cC]/* | \
  2178. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2179. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2180. /usr/ucb/* ) ;;
  2181. *)
  2182. # OSF1 and SCO ODT 3.0 have their own names for install.
  2183. # Don't use installbsd from OSF since it installs stuff as root
  2184. # by default.
  2185. for ac_prog in ginstall scoinst install; do
  2186. for ac_exec_ext in '' $ac_executable_extensions; do
  2187. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2188. if test $ac_prog = install &&
  2189. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2190. # AIX install. It has an incompatible calling convention.
  2191. :
  2192. elif test $ac_prog = install &&
  2193. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2194. # program-specific install script used by HP pwplus--don't use.
  2195. :
  2196. else
  2197. rm -rf conftest.one conftest.two conftest.dir
  2198. echo one > conftest.one
  2199. echo two > conftest.two
  2200. mkdir conftest.dir
  2201. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2202. test -s conftest.one && test -s conftest.two &&
  2203. test -s conftest.dir/conftest.one &&
  2204. test -s conftest.dir/conftest.two
  2205. then
  2206. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2207. break 3
  2208. fi
  2209. fi
  2210. fi
  2211. done
  2212. done
  2213. ;;
  2214. esac
  2215. done
  2216. IFS=$as_save_IFS
  2217. rm -rf conftest.one conftest.two conftest.dir
  2218. fi
  2219. if test "${ac_cv_path_install+set}" = set; then
  2220. INSTALL=$ac_cv_path_install
  2221. else
  2222. # As a last resort, use the slow shell script. Don't cache a
  2223. # value for INSTALL within a source directory, because that will
  2224. # break other packages using the cache if that directory is
  2225. # removed, or if the value is a relative name.
  2226. INSTALL=$ac_install_sh
  2227. fi
  2228. fi
  2229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2230. $as_echo "$INSTALL" >&6; }
  2231. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2232. # It thinks the first close brace ends the variable substitution.
  2233. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2234. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2235. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2237. $as_echo_n "checking whether build environment is sane... " >&6; }
  2238. # Just in case
  2239. sleep 1
  2240. echo timestamp > conftest.file
  2241. # Reject unsafe characters in $srcdir or the absolute working directory
  2242. # name. Accept space and tab only in the latter.
  2243. am_lf='
  2244. '
  2245. case `pwd` in
  2246. *[\\\"\#\$\&\'\`$am_lf]*)
  2247. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2248. esac
  2249. case $srcdir in
  2250. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2251. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2252. esac
  2253. # Do `set' in a subshell so we don't clobber the current shell's
  2254. # arguments. Must try -L first in case configure is actually a
  2255. # symlink; some systems play weird games with the mod time of symlinks
  2256. # (eg FreeBSD returns the mod time of the symlink's containing
  2257. # directory).
  2258. if (
  2259. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2260. if test "$*" = "X"; then
  2261. # -L didn't work.
  2262. set X `ls -t "$srcdir/configure" conftest.file`
  2263. fi
  2264. rm -f conftest.file
  2265. if test "$*" != "X $srcdir/configure conftest.file" \
  2266. && test "$*" != "X conftest.file $srcdir/configure"; then
  2267. # If neither matched, then we have a broken ls. This can happen
  2268. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2269. # broken ls alias from the environment. This has actually
  2270. # happened. Such a system could not be considered "sane".
  2271. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2272. alias in your environment" "$LINENO" 5
  2273. fi
  2274. test "$2" = conftest.file
  2275. )
  2276. then
  2277. # Ok.
  2278. :
  2279. else
  2280. as_fn_error $? "newly created file is older than distributed files!
  2281. Check your system clock" "$LINENO" 5
  2282. fi
  2283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2284. $as_echo "yes" >&6; }
  2285. test "$program_prefix" != NONE &&
  2286. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2287. # Use a double $ so make ignores it.
  2288. test "$program_suffix" != NONE &&
  2289. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2290. # Double any \ or $.
  2291. # By default was `s,x,x', remove it if useless.
  2292. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2293. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2294. # expand $ac_aux_dir to an absolute path
  2295. am_aux_dir=`cd $ac_aux_dir && pwd`
  2296. if test x"${MISSING+set}" != xset; then
  2297. case $am_aux_dir in
  2298. *\ * | *\ *)
  2299. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2300. *)
  2301. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2302. esac
  2303. fi
  2304. # Use eval to expand $SHELL
  2305. if eval "$MISSING --run true"; then
  2306. am_missing_run="$MISSING --run "
  2307. else
  2308. am_missing_run=
  2309. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2310. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2311. fi
  2312. if test x"${install_sh}" != xset; then
  2313. case $am_aux_dir in
  2314. *\ * | *\ *)
  2315. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2316. *)
  2317. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2318. esac
  2319. fi
  2320. # Installed binaries are usually stripped using `strip' when the user
  2321. # run `make install-strip'. However `strip' might not be the right
  2322. # tool to use in cross-compilation environments, therefore Automake
  2323. # will honor the `STRIP' environment variable to overrule this program.
  2324. if test "$cross_compiling" != no; then
  2325. if test -n "$ac_tool_prefix"; then
  2326. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2327. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2329. $as_echo_n "checking for $ac_word... " >&6; }
  2330. if ${ac_cv_prog_STRIP+:} false; then :
  2331. $as_echo_n "(cached) " >&6
  2332. else
  2333. if test -n "$STRIP"; then
  2334. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2335. else
  2336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2337. for as_dir in $PATH
  2338. do
  2339. IFS=$as_save_IFS
  2340. test -z "$as_dir" && as_dir=.
  2341. for ac_exec_ext in '' $ac_executable_extensions; do
  2342. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2343. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2344. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2345. break 2
  2346. fi
  2347. done
  2348. done
  2349. IFS=$as_save_IFS
  2350. fi
  2351. fi
  2352. STRIP=$ac_cv_prog_STRIP
  2353. if test -n "$STRIP"; then
  2354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2355. $as_echo "$STRIP" >&6; }
  2356. else
  2357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2358. $as_echo "no" >&6; }
  2359. fi
  2360. fi
  2361. if test -z "$ac_cv_prog_STRIP"; then
  2362. ac_ct_STRIP=$STRIP
  2363. # Extract the first word of "strip", so it can be a program name with args.
  2364. set dummy strip; ac_word=$2
  2365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2366. $as_echo_n "checking for $ac_word... " >&6; }
  2367. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2368. $as_echo_n "(cached) " >&6
  2369. else
  2370. if test -n "$ac_ct_STRIP"; then
  2371. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2372. else
  2373. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2374. for as_dir in $PATH
  2375. do
  2376. IFS=$as_save_IFS
  2377. test -z "$as_dir" && as_dir=.
  2378. for ac_exec_ext in '' $ac_executable_extensions; do
  2379. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2380. ac_cv_prog_ac_ct_STRIP="strip"
  2381. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2382. break 2
  2383. fi
  2384. done
  2385. done
  2386. IFS=$as_save_IFS
  2387. fi
  2388. fi
  2389. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2390. if test -n "$ac_ct_STRIP"; then
  2391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2392. $as_echo "$ac_ct_STRIP" >&6; }
  2393. else
  2394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2395. $as_echo "no" >&6; }
  2396. fi
  2397. if test "x$ac_ct_STRIP" = x; then
  2398. STRIP=":"
  2399. else
  2400. case $cross_compiling:$ac_tool_warned in
  2401. yes:)
  2402. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2403. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2404. ac_tool_warned=yes ;;
  2405. esac
  2406. STRIP=$ac_ct_STRIP
  2407. fi
  2408. else
  2409. STRIP="$ac_cv_prog_STRIP"
  2410. fi
  2411. fi
  2412. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2414. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2415. if test -z "$MKDIR_P"; then
  2416. if ${ac_cv_path_mkdir+:} false; then :
  2417. $as_echo_n "(cached) " >&6
  2418. else
  2419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2420. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2421. do
  2422. IFS=$as_save_IFS
  2423. test -z "$as_dir" && as_dir=.
  2424. for ac_prog in mkdir gmkdir; do
  2425. for ac_exec_ext in '' $ac_executable_extensions; do
  2426. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2427. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2428. 'mkdir (GNU coreutils) '* | \
  2429. 'mkdir (coreutils) '* | \
  2430. 'mkdir (fileutils) '4.1*)
  2431. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2432. break 3;;
  2433. esac
  2434. done
  2435. done
  2436. done
  2437. IFS=$as_save_IFS
  2438. fi
  2439. test -d ./--version && rmdir ./--version
  2440. if test "${ac_cv_path_mkdir+set}" = set; then
  2441. MKDIR_P="$ac_cv_path_mkdir -p"
  2442. else
  2443. # As a last resort, use the slow shell script. Don't cache a
  2444. # value for MKDIR_P within a source directory, because that will
  2445. # break other packages using the cache if that directory is
  2446. # removed, or if the value is a relative name.
  2447. MKDIR_P="$ac_install_sh -d"
  2448. fi
  2449. fi
  2450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2451. $as_echo "$MKDIR_P" >&6; }
  2452. mkdir_p="$MKDIR_P"
  2453. case $mkdir_p in
  2454. [\\/$]* | ?:[\\/]*) ;;
  2455. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2456. esac
  2457. for ac_prog in gawk mawk nawk awk
  2458. do
  2459. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2460. set dummy $ac_prog; ac_word=$2
  2461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2462. $as_echo_n "checking for $ac_word... " >&6; }
  2463. if ${ac_cv_prog_AWK+:} false; then :
  2464. $as_echo_n "(cached) " >&6
  2465. else
  2466. if test -n "$AWK"; then
  2467. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2468. else
  2469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2470. for as_dir in $PATH
  2471. do
  2472. IFS=$as_save_IFS
  2473. test -z "$as_dir" && as_dir=.
  2474. for ac_exec_ext in '' $ac_executable_extensions; do
  2475. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2476. ac_cv_prog_AWK="$ac_prog"
  2477. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2478. break 2
  2479. fi
  2480. done
  2481. done
  2482. IFS=$as_save_IFS
  2483. fi
  2484. fi
  2485. AWK=$ac_cv_prog_AWK
  2486. if test -n "$AWK"; then
  2487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2488. $as_echo "$AWK" >&6; }
  2489. else
  2490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2491. $as_echo "no" >&6; }
  2492. fi
  2493. test -n "$AWK" && break
  2494. done
  2495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2496. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2497. set x ${MAKE-make}
  2498. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2499. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2500. $as_echo_n "(cached) " >&6
  2501. else
  2502. cat >conftest.make <<\_ACEOF
  2503. SHELL = /bin/sh
  2504. all:
  2505. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2506. _ACEOF
  2507. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2508. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2509. *@@@%%%=?*=@@@%%%*)
  2510. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2511. *)
  2512. eval ac_cv_prog_make_${ac_make}_set=no;;
  2513. esac
  2514. rm -f conftest.make
  2515. fi
  2516. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2518. $as_echo "yes" >&6; }
  2519. SET_MAKE=
  2520. else
  2521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2522. $as_echo "no" >&6; }
  2523. SET_MAKE="MAKE=${MAKE-make}"
  2524. fi
  2525. rm -rf .tst 2>/dev/null
  2526. mkdir .tst 2>/dev/null
  2527. if test -d .tst; then
  2528. am__leading_dot=.
  2529. else
  2530. am__leading_dot=_
  2531. fi
  2532. rmdir .tst 2>/dev/null
  2533. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2534. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2535. # is not polluted with repeated "-I."
  2536. am__isrc=' -I$(srcdir)'
  2537. # test to see if srcdir already configured
  2538. if test -f $srcdir/config.status; then
  2539. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2540. fi
  2541. fi
  2542. # test whether we have cygpath
  2543. if test -z "$CYGPATH_W"; then
  2544. if (cygpath --version) >/dev/null 2>/dev/null; then
  2545. CYGPATH_W='cygpath -w'
  2546. else
  2547. CYGPATH_W=echo
  2548. fi
  2549. fi
  2550. # Define the identity of the package.
  2551. PACKAGE='parsleyc'
  2552. VERSION='1.0'
  2553. cat >>confdefs.h <<_ACEOF
  2554. #define PACKAGE "$PACKAGE"
  2555. _ACEOF
  2556. cat >>confdefs.h <<_ACEOF
  2557. #define VERSION "$VERSION"
  2558. _ACEOF
  2559. # Some tools Automake needs.
  2560. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2561. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2562. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2563. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2564. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2565. # We need awk for the "check" target. The system "awk" is bad on
  2566. # some platforms.
  2567. # Always define AMTAR for backward compatibility.
  2568. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2569. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2570. LDFLAGS="$LDFLAGS -L/opt/local/lib -L/usr/local/lib"
  2571. CPPFLAGS="$CPPFLAGS -I/opt/local/include -I/usr/local/include"
  2572. DEPDIR="${am__leading_dot}deps"
  2573. ac_config_commands="$ac_config_commands depfiles"
  2574. am_make=${MAKE-make}
  2575. cat > confinc << 'END'
  2576. am__doit:
  2577. @echo this is the am__doit target
  2578. .PHONY: am__doit
  2579. END
  2580. # If we don't find an include directive, just comment out the code.
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2582. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2583. am__include="#"
  2584. am__quote=
  2585. _am_result=none
  2586. # First try GNU make style include.
  2587. echo "include confinc" > confmf
  2588. # Ignore all kinds of additional output from `make'.
  2589. case `$am_make -s -f confmf 2> /dev/null` in #(
  2590. *the\ am__doit\ target*)
  2591. am__include=include
  2592. am__quote=
  2593. _am_result=GNU
  2594. ;;
  2595. esac
  2596. # Now try BSD make style include.
  2597. if test "$am__include" = "#"; then
  2598. echo '.include "confinc"' > confmf
  2599. case `$am_make -s -f confmf 2> /dev/null` in #(
  2600. *the\ am__doit\ target*)
  2601. am__include=.include
  2602. am__quote="\""
  2603. _am_result=BSD
  2604. ;;
  2605. esac
  2606. fi
  2607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2608. $as_echo "$_am_result" >&6; }
  2609. rm -f confinc confmf
  2610. # Check whether --enable-dependency-tracking was given.
  2611. if test "${enable_dependency_tracking+set}" = set; then :
  2612. enableval=$enable_dependency_tracking;
  2613. fi
  2614. if test "x$enable_dependency_tracking" != xno; then
  2615. am_depcomp="$ac_aux_dir/depcomp"
  2616. AMDEPBACKSLASH='\'
  2617. fi
  2618. if test "x$enable_dependency_tracking" != xno; then
  2619. AMDEP_TRUE=
  2620. AMDEP_FALSE='#'
  2621. else
  2622. AMDEP_TRUE='#'
  2623. AMDEP_FALSE=
  2624. fi
  2625. ac_ext=c
  2626. ac_cpp='$CPP $CPPFLAGS'
  2627. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2628. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2629. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2630. if test -n "$ac_tool_prefix"; then
  2631. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2632. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2634. $as_echo_n "checking for $ac_word... " >&6; }
  2635. if ${ac_cv_prog_CC+:} false; then :
  2636. $as_echo_n "(cached) " >&6
  2637. else
  2638. if test -n "$CC"; then
  2639. ac_cv_prog_CC="$CC" # Let the user override the test.
  2640. else
  2641. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2642. for as_dir in $PATH
  2643. do
  2644. IFS=$as_save_IFS
  2645. test -z "$as_dir" && as_dir=.
  2646. for ac_exec_ext in '' $ac_executable_extensions; do
  2647. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2648. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2649. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2650. break 2
  2651. fi
  2652. done
  2653. done
  2654. IFS=$as_save_IFS
  2655. fi
  2656. fi
  2657. CC=$ac_cv_prog_CC
  2658. if test -n "$CC"; then
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2660. $as_echo "$CC" >&6; }
  2661. else
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2663. $as_echo "no" >&6; }
  2664. fi
  2665. fi
  2666. if test -z "$ac_cv_prog_CC"; then
  2667. ac_ct_CC=$CC
  2668. # Extract the first word of "gcc", so it can be a program name with args.
  2669. set dummy gcc; ac_word=$2
  2670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2671. $as_echo_n "checking for $ac_word... " >&6; }
  2672. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2673. $as_echo_n "(cached) " >&6
  2674. else
  2675. if test -n "$ac_ct_CC"; then
  2676. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2677. else
  2678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2679. for as_dir in $PATH
  2680. do
  2681. IFS=$as_save_IFS
  2682. test -z "$as_dir" && as_dir=.
  2683. for ac_exec_ext in '' $ac_executable_extensions; do
  2684. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2685. ac_cv_prog_ac_ct_CC="gcc"
  2686. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2687. break 2
  2688. fi
  2689. done
  2690. done
  2691. IFS=$as_save_IFS
  2692. fi
  2693. fi
  2694. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2695. if test -n "$ac_ct_CC"; then
  2696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2697. $as_echo "$ac_ct_CC" >&6; }
  2698. else
  2699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2700. $as_echo "no" >&6; }
  2701. fi
  2702. if test "x$ac_ct_CC" = x; then
  2703. CC=""
  2704. else
  2705. case $cross_compiling:$ac_tool_warned in
  2706. yes:)
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2708. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2709. ac_tool_warned=yes ;;
  2710. esac
  2711. CC=$ac_ct_CC
  2712. fi
  2713. else
  2714. CC="$ac_cv_prog_CC"
  2715. fi
  2716. if test -z "$CC"; then
  2717. if test -n "$ac_tool_prefix"; then
  2718. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2719. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2721. $as_echo_n "checking for $ac_word... " >&6; }
  2722. if ${ac_cv_prog_CC+:} false; then :
  2723. $as_echo_n "(cached) " >&6
  2724. else
  2725. if test -n "$CC"; then
  2726. ac_cv_prog_CC="$CC" # Let the user override the test.
  2727. else
  2728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2729. for as_dir in $PATH
  2730. do
  2731. IFS=$as_save_IFS
  2732. test -z "$as_dir" && as_dir=.
  2733. for ac_exec_ext in '' $ac_executable_extensions; do
  2734. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2735. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2736. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2737. break 2
  2738. fi
  2739. done
  2740. done
  2741. IFS=$as_save_IFS
  2742. fi
  2743. fi
  2744. CC=$ac_cv_prog_CC
  2745. if test -n "$CC"; then
  2746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2747. $as_echo "$CC" >&6; }
  2748. else
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2750. $as_echo "no" >&6; }
  2751. fi
  2752. fi
  2753. fi
  2754. if test -z "$CC"; then
  2755. # Extract the first word of "cc", so it can be a program name with args.
  2756. set dummy cc; ac_word=$2
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2758. $as_echo_n "checking for $ac_word... " >&6; }
  2759. if ${ac_cv_prog_CC+:} false; then :
  2760. $as_echo_n "(cached) " >&6
  2761. else
  2762. if test -n "$CC"; then
  2763. ac_cv_prog_CC="$CC" # Let the user override the test.
  2764. else
  2765. ac_prog_rejected=no
  2766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2767. for as_dir in $PATH
  2768. do
  2769. IFS=$as_save_IFS
  2770. test -z "$as_dir" && as_dir=.
  2771. for ac_exec_ext in '' $ac_executable_extensions; do
  2772. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2773. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2774. ac_prog_rejected=yes
  2775. continue
  2776. fi
  2777. ac_cv_prog_CC="cc"
  2778. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2779. break 2
  2780. fi
  2781. done
  2782. done
  2783. IFS=$as_save_IFS
  2784. if test $ac_prog_rejected = yes; then
  2785. # We found a bogon in the path, so make sure we never use it.
  2786. set dummy $ac_cv_prog_CC
  2787. shift
  2788. if test $# != 0; then
  2789. # We chose a different compiler from the bogus one.
  2790. # However, it has the same basename, so the bogon will be chosen
  2791. # first if we set CC to just the basename; use the full file name.
  2792. shift
  2793. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2794. fi
  2795. fi
  2796. fi
  2797. fi
  2798. CC=$ac_cv_prog_CC
  2799. if test -n "$CC"; then
  2800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2801. $as_echo "$CC" >&6; }
  2802. else
  2803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2804. $as_echo "no" >&6; }
  2805. fi
  2806. fi
  2807. if test -z "$CC"; then
  2808. if test -n "$ac_tool_prefix"; then
  2809. for ac_prog in cl.exe
  2810. do
  2811. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2812. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2814. $as_echo_n "checking for $ac_word... " >&6; }
  2815. if ${ac_cv_prog_CC+:} false; then :
  2816. $as_echo_n "(cached) " >&6
  2817. else
  2818. if test -n "$CC"; then
  2819. ac_cv_prog_CC="$CC" # Let the user override the test.
  2820. else
  2821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2822. for as_dir in $PATH
  2823. do
  2824. IFS=$as_save_IFS
  2825. test -z "$as_dir" && as_dir=.
  2826. for ac_exec_ext in '' $ac_executable_extensions; do
  2827. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2828. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2829. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2830. break 2
  2831. fi
  2832. done
  2833. done
  2834. IFS=$as_save_IFS
  2835. fi
  2836. fi
  2837. CC=$ac_cv_prog_CC
  2838. if test -n "$CC"; then
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2840. $as_echo "$CC" >&6; }
  2841. else
  2842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2843. $as_echo "no" >&6; }
  2844. fi
  2845. test -n "$CC" && break
  2846. done
  2847. fi
  2848. if test -z "$CC"; then
  2849. ac_ct_CC=$CC
  2850. for ac_prog in cl.exe
  2851. do
  2852. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2853. set dummy $ac_prog; ac_word=$2
  2854. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2855. $as_echo_n "checking for $ac_word... " >&6; }
  2856. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2857. $as_echo_n "(cached) " >&6
  2858. else
  2859. if test -n "$ac_ct_CC"; then
  2860. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2861. else
  2862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2863. for as_dir in $PATH
  2864. do
  2865. IFS=$as_save_IFS
  2866. test -z "$as_dir" && as_dir=.
  2867. for ac_exec_ext in '' $ac_executable_extensions; do
  2868. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2869. ac_cv_prog_ac_ct_CC="$ac_prog"
  2870. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2871. break 2
  2872. fi
  2873. done
  2874. done
  2875. IFS=$as_save_IFS
  2876. fi
  2877. fi
  2878. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2879. if test -n "$ac_ct_CC"; then
  2880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2881. $as_echo "$ac_ct_CC" >&6; }
  2882. else
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2884. $as_echo "no" >&6; }
  2885. fi
  2886. test -n "$ac_ct_CC" && break
  2887. done
  2888. if test "x$ac_ct_CC" = x; then
  2889. CC=""
  2890. else
  2891. case $cross_compiling:$ac_tool_warned in
  2892. yes:)
  2893. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2894. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2895. ac_tool_warned=yes ;;
  2896. esac
  2897. CC=$ac_ct_CC
  2898. fi
  2899. fi
  2900. fi
  2901. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2902. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2903. as_fn_error $? "no acceptable C compiler found in \$PATH
  2904. See \`config.log' for more details" "$LINENO" 5; }
  2905. # Provide some information about the compiler.
  2906. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2907. set X $ac_compile
  2908. ac_compiler=$2
  2909. for ac_option in --version -v -V -qversion; do
  2910. { { ac_try="$ac_compiler $ac_option >&5"
  2911. case "(($ac_try" in
  2912. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2913. *) ac_try_echo=$ac_try;;
  2914. esac
  2915. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2916. $as_echo "$ac_try_echo"; } >&5
  2917. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2918. ac_status=$?
  2919. if test -s conftest.err; then
  2920. sed '10a\
  2921. ... rest of stderr output deleted ...
  2922. 10q' conftest.err >conftest.er1
  2923. cat conftest.er1 >&5
  2924. fi
  2925. rm -f conftest.er1 conftest.err
  2926. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2927. test $ac_status = 0; }
  2928. done
  2929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2930. /* end confdefs.h. */
  2931. int
  2932. main ()
  2933. {
  2934. ;
  2935. return 0;
  2936. }
  2937. _ACEOF
  2938. ac_clean_files_save=$ac_clean_files
  2939. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2940. # Try to create an executable without -o first, disregard a.out.
  2941. # It will help us diagnose broken compilers, and finding out an intuition
  2942. # of exeext.
  2943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2944. $as_echo_n "checking whether the C compiler works... " >&6; }
  2945. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2946. # The possible output files:
  2947. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2948. ac_rmfiles=
  2949. for ac_file in $ac_files
  2950. do
  2951. case $ac_file in
  2952. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2953. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2954. esac
  2955. done
  2956. rm -f $ac_rmfiles
  2957. if { { ac_try="$ac_link_default"
  2958. case "(($ac_try" in
  2959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2960. *) ac_try_echo=$ac_try;;
  2961. esac
  2962. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2963. $as_echo "$ac_try_echo"; } >&5
  2964. (eval "$ac_link_default") 2>&5
  2965. ac_status=$?
  2966. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2967. test $ac_status = 0; }; then :
  2968. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2969. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2970. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2971. # so that the user can short-circuit this test for compilers unknown to
  2972. # Autoconf.
  2973. for ac_file in $ac_files ''
  2974. do
  2975. test -f "$ac_file" || continue
  2976. case $ac_file in
  2977. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2978. ;;
  2979. [ab].out )
  2980. # We found the default executable, but exeext='' is most
  2981. # certainly right.
  2982. break;;
  2983. *.* )
  2984. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2985. then :; else
  2986. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2987. fi
  2988. # We set ac_cv_exeext here because the later test for it is not
  2989. # safe: cross compilers may not add the suffix if given an `-o'
  2990. # argument, so we may need to know it at that point already.
  2991. # Even if this section looks crufty: it has the advantage of
  2992. # actually working.
  2993. break;;
  2994. * )
  2995. break;;
  2996. esac
  2997. done
  2998. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2999. else
  3000. ac_file=''
  3001. fi
  3002. if test -z "$ac_file"; then :
  3003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3004. $as_echo "no" >&6; }
  3005. $as_echo "$as_me: failed program was:" >&5
  3006. sed 's/^/| /' conftest.$ac_ext >&5
  3007. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3008. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3009. as_fn_error 77 "C compiler cannot create executables
  3010. See \`config.log' for more details" "$LINENO" 5; }
  3011. else
  3012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3013. $as_echo "yes" >&6; }
  3014. fi
  3015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3016. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3018. $as_echo "$ac_file" >&6; }
  3019. ac_exeext=$ac_cv_exeext
  3020. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3021. ac_clean_files=$ac_clean_files_save
  3022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3023. $as_echo_n "checking for suffix of executables... " >&6; }
  3024. if { { ac_try="$ac_link"
  3025. case "(($ac_try" in
  3026. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3027. *) ac_try_echo=$ac_try;;
  3028. esac
  3029. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3030. $as_echo "$ac_try_echo"; } >&5
  3031. (eval "$ac_link") 2>&5
  3032. ac_status=$?
  3033. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3034. test $ac_status = 0; }; then :
  3035. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3036. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3037. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3038. # `rm'.
  3039. for ac_file in conftest.exe conftest conftest.*; do
  3040. test -f "$ac_file" || continue
  3041. case $ac_file in
  3042. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3043. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3044. break;;
  3045. * ) break;;
  3046. esac
  3047. done
  3048. else
  3049. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3050. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3051. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3052. See \`config.log' for more details" "$LINENO" 5; }
  3053. fi
  3054. rm -f conftest conftest$ac_cv_exeext
  3055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3056. $as_echo "$ac_cv_exeext" >&6; }
  3057. rm -f conftest.$ac_ext
  3058. EXEEXT=$ac_cv_exeext
  3059. ac_exeext=$EXEEXT
  3060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3061. /* end confdefs.h. */
  3062. #include <stdio.h>
  3063. int
  3064. main ()
  3065. {
  3066. FILE *f = fopen ("conftest.out", "w");
  3067. return ferror (f) || fclose (f) != 0;
  3068. ;
  3069. return 0;
  3070. }
  3071. _ACEOF
  3072. ac_clean_files="$ac_clean_files conftest.out"
  3073. # Check that the compiler produces executables we can run. If not, either
  3074. # the compiler is broken, or we cross compile.
  3075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3076. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3077. if test "$cross_compiling" != yes; then
  3078. { { ac_try="$ac_link"
  3079. case "(($ac_try" in
  3080. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3081. *) ac_try_echo=$ac_try;;
  3082. esac
  3083. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3084. $as_echo "$ac_try_echo"; } >&5
  3085. (eval "$ac_link") 2>&5
  3086. ac_status=$?
  3087. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3088. test $ac_status = 0; }
  3089. if { ac_try='./conftest$ac_cv_exeext'
  3090. { { case "(($ac_try" in
  3091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3092. *) ac_try_echo=$ac_try;;
  3093. esac
  3094. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3095. $as_echo "$ac_try_echo"; } >&5
  3096. (eval "$ac_try") 2>&5
  3097. ac_status=$?
  3098. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3099. test $ac_status = 0; }; }; then
  3100. cross_compiling=no
  3101. else
  3102. if test "$cross_compiling" = maybe; then
  3103. cross_compiling=yes
  3104. else
  3105. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3106. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3107. as_fn_error $? "cannot run C compiled programs.
  3108. If you meant to cross compile, use \`--host'.
  3109. See \`config.log' for more details" "$LINENO" 5; }
  3110. fi
  3111. fi
  3112. fi
  3113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3114. $as_echo "$cross_compiling" >&6; }
  3115. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3116. ac_clean_files=$ac_clean_files_save
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3118. $as_echo_n "checking for suffix of object files... " >&6; }
  3119. if ${ac_cv_objext+:} false; then :
  3120. $as_echo_n "(cached) " >&6
  3121. else
  3122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3123. /* end confdefs.h. */
  3124. int
  3125. main ()
  3126. {
  3127. ;
  3128. return 0;
  3129. }
  3130. _ACEOF
  3131. rm -f conftest.o conftest.obj
  3132. if { { ac_try="$ac_compile"
  3133. case "(($ac_try" in
  3134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3135. *) ac_try_echo=$ac_try;;
  3136. esac
  3137. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3138. $as_echo "$ac_try_echo"; } >&5
  3139. (eval "$ac_compile") 2>&5
  3140. ac_status=$?
  3141. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3142. test $ac_status = 0; }; then :
  3143. for ac_file in conftest.o conftest.obj conftest.*; do
  3144. test -f "$ac_file" || continue;
  3145. case $ac_file in
  3146. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3147. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3148. break;;
  3149. esac
  3150. done
  3151. else
  3152. $as_echo "$as_me: failed program was:" >&5
  3153. sed 's/^/| /' conftest.$ac_ext >&5
  3154. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3155. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3156. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3157. See \`config.log' for more details" "$LINENO" 5; }
  3158. fi
  3159. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3160. fi
  3161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3162. $as_echo "$ac_cv_objext" >&6; }
  3163. OBJEXT=$ac_cv_objext
  3164. ac_objext=$OBJEXT
  3165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3166. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3167. if ${ac_cv_c_compiler_gnu+:} false; then :
  3168. $as_echo_n "(cached) " >&6
  3169. else
  3170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3171. /* end confdefs.h. */
  3172. int
  3173. main ()
  3174. {
  3175. #ifndef __GNUC__
  3176. choke me
  3177. #endif
  3178. ;
  3179. return 0;
  3180. }
  3181. _ACEOF
  3182. if ac_fn_c_try_compile "$LINENO"; then :
  3183. ac_compiler_gnu=yes
  3184. else
  3185. ac_compiler_gnu=no
  3186. fi
  3187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3188. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3189. fi
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3191. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3192. if test $ac_compiler_gnu = yes; then
  3193. GCC=yes
  3194. else
  3195. GCC=
  3196. fi
  3197. ac_test_CFLAGS=${CFLAGS+set}
  3198. ac_save_CFLAGS=$CFLAGS
  3199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3200. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3201. if ${ac_cv_prog_cc_g+:} false; then :
  3202. $as_echo_n "(cached) " >&6
  3203. else
  3204. ac_save_c_werror_flag=$ac_c_werror_flag
  3205. ac_c_werror_flag=yes
  3206. ac_cv_prog_cc_g=no
  3207. CFLAGS="-g"
  3208. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3209. /* end confdefs.h. */
  3210. int
  3211. main ()
  3212. {
  3213. ;
  3214. return 0;
  3215. }
  3216. _ACEOF
  3217. if ac_fn_c_try_compile "$LINENO"; then :
  3218. ac_cv_prog_cc_g=yes
  3219. else
  3220. CFLAGS=""
  3221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3222. /* end confdefs.h. */
  3223. int
  3224. main ()
  3225. {
  3226. ;
  3227. return 0;
  3228. }
  3229. _ACEOF
  3230. if ac_fn_c_try_compile "$LINENO"; then :
  3231. else
  3232. ac_c_werror_flag=$ac_save_c_werror_flag
  3233. CFLAGS="-g"
  3234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3235. /* end confdefs.h. */
  3236. int
  3237. main ()
  3238. {
  3239. ;
  3240. return 0;
  3241. }
  3242. _ACEOF
  3243. if ac_fn_c_try_compile "$LINENO"; then :
  3244. ac_cv_prog_cc_g=yes
  3245. fi
  3246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3247. fi
  3248. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3249. fi
  3250. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3251. ac_c_werror_flag=$ac_save_c_werror_flag
  3252. fi
  3253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3254. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3255. if test "$ac_test_CFLAGS" = set; then
  3256. CFLAGS=$ac_save_CFLAGS
  3257. elif test $ac_cv_prog_cc_g = yes; then
  3258. if test "$GCC" = yes; then
  3259. CFLAGS="-g -O2"
  3260. else
  3261. CFLAGS="-g"
  3262. fi
  3263. else
  3264. if test "$GCC" = yes; then
  3265. CFLAGS="-O2"
  3266. else
  3267. CFLAGS=
  3268. fi
  3269. fi
  3270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3271. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3272. if ${ac_cv_prog_cc_c89+:} false; then :
  3273. $as_echo_n "(cached) " >&6
  3274. else
  3275. ac_cv_prog_cc_c89=no
  3276. ac_save_CC=$CC
  3277. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3278. /* end confdefs.h. */
  3279. #include <stdarg.h>
  3280. #include <stdio.h>
  3281. struct stat;
  3282. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3283. struct buf { int x; };
  3284. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3285. static char *e (p, i)
  3286. char **p;
  3287. int i;
  3288. {
  3289. return p[i];
  3290. }
  3291. static char *f (char * (*g) (char **, int), char **p, ...)
  3292. {
  3293. char *s;
  3294. va_list v;
  3295. va_start (v,p);
  3296. s = g (p, va_arg (v,int));
  3297. va_end (v);
  3298. return s;
  3299. }
  3300. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3301. function prototypes and stuff, but not '\xHH' hex character constants.
  3302. These don't provoke an error unfortunately, instead are silently treated
  3303. as 'x'. The following induces an error, until -std is added to get
  3304. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3305. array size at least. It's necessary to write '\x00'==0 to get something
  3306. that's true only with -std. */
  3307. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3308. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3309. inside strings and character constants. */
  3310. #define FOO(x) 'x'
  3311. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3312. int test (int i, double x);
  3313. struct s1 {int (*f) (int a);};
  3314. struct s2 {int (*f) (double a);};
  3315. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3316. int argc;
  3317. char **argv;
  3318. int
  3319. main ()
  3320. {
  3321. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3322. ;
  3323. return 0;
  3324. }
  3325. _ACEOF
  3326. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3327. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3328. do
  3329. CC="$ac_save_CC $ac_arg"
  3330. if ac_fn_c_try_compile "$LINENO"; then :
  3331. ac_cv_prog_cc_c89=$ac_arg
  3332. fi
  3333. rm -f core conftest.err conftest.$ac_objext
  3334. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3335. done
  3336. rm -f conftest.$ac_ext
  3337. CC=$ac_save_CC
  3338. fi
  3339. # AC_CACHE_VAL
  3340. case "x$ac_cv_prog_cc_c89" in
  3341. x)
  3342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3343. $as_echo "none needed" >&6; } ;;
  3344. xno)
  3345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3346. $as_echo "unsupported" >&6; } ;;
  3347. *)
  3348. CC="$CC $ac_cv_prog_cc_c89"
  3349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3350. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3351. esac
  3352. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3353. fi
  3354. ac_ext=c
  3355. ac_cpp='$CPP $CPPFLAGS'
  3356. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3357. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3358. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3359. depcc="$CC" am_compiler_list=
  3360. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3361. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3362. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3363. $as_echo_n "(cached) " >&6
  3364. else
  3365. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3366. # We make a subdir and do the tests there. Otherwise we can end up
  3367. # making bogus files that we don't know about and never remove. For
  3368. # instance it was reported that on HP-UX the gcc test will end up
  3369. # making a dummy file named `D' -- because `-MD' means `put the output
  3370. # in D'.
  3371. mkdir conftest.dir
  3372. # Copy depcomp to subdir because otherwise we won't find it if we're
  3373. # using a relative directory.
  3374. cp "$am_depcomp" conftest.dir
  3375. cd conftest.dir
  3376. # We will build objects and dependencies in a subdirectory because
  3377. # it helps to detect inapplicable dependency modes. For instance
  3378. # both Tru64's cc and ICC support -MD to output dependencies as a
  3379. # side effect of compilation, but ICC will put the dependencies in
  3380. # the current directory while Tru64 will put them in the object
  3381. # directory.
  3382. mkdir sub
  3383. am_cv_CC_dependencies_compiler_type=none
  3384. if test "$am_compiler_list" = ""; then
  3385. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3386. fi
  3387. am__universal=false
  3388. case " $depcc " in #(
  3389. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3390. esac
  3391. for depmode in $am_compiler_list; do
  3392. # Setup a source with many dependencies, because some compilers
  3393. # like to wrap large dependency lists on column 80 (with \), and
  3394. # we should not choose a depcomp mode which is confused by this.
  3395. #
  3396. # We need to recreate these files for each test, as the compiler may
  3397. # overwrite some of them when testing with obscure command lines.
  3398. # This happens at least with the AIX C compiler.
  3399. : > sub/conftest.c
  3400. for i in 1 2 3 4 5 6; do
  3401. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3402. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3403. # Solaris 8's {/usr,}/bin/sh.
  3404. touch sub/conftst$i.h
  3405. done
  3406. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3407. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3408. # mode. It turns out that the SunPro C++ compiler does not properly
  3409. # handle `-M -o', and we need to detect this. Also, some Intel
  3410. # versions had trouble with output in subdirs
  3411. am__obj=sub/conftest.${OBJEXT-o}
  3412. am__minus_obj="-o $am__obj"
  3413. case $depmode in
  3414. gcc)
  3415. # This depmode causes a compiler race in universal mode.
  3416. test "$am__universal" = false || continue
  3417. ;;
  3418. nosideeffect)
  3419. # after this tag, mechanisms are not by side-effect, so they'll
  3420. # only be used when explicitly requested
  3421. if test "x$enable_dependency_tracking" = xyes; then
  3422. continue
  3423. else
  3424. break
  3425. fi
  3426. ;;
  3427. msvisualcpp | msvcmsys)
  3428. # This compiler won't grok `-c -o', but also, the minuso test has
  3429. # not run yet. These depmodes are late enough in the game, and
  3430. # so weak that their functioning should not be impacted.
  3431. am__obj=conftest.${OBJEXT-o}
  3432. am__minus_obj=
  3433. ;;
  3434. none) break ;;
  3435. esac
  3436. if depmode=$depmode \
  3437. source=sub/conftest.c object=$am__obj \
  3438. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3439. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3440. >/dev/null 2>conftest.err &&
  3441. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3442. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3443. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3444. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3445. # icc doesn't choke on unknown options, it will just issue warnings
  3446. # or remarks (even with -Werror). So we grep stderr for any message
  3447. # that says an option was ignored or not supported.
  3448. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3449. # icc: Command line warning: ignoring option '-M'; no argument required
  3450. # The diagnosis changed in icc 8.0:
  3451. # icc: Command line remark: option '-MP' not supported
  3452. if (grep 'ignoring option' conftest.err ||
  3453. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3454. am_cv_CC_dependencies_compiler_type=$depmode
  3455. break
  3456. fi
  3457. fi
  3458. done
  3459. cd ..
  3460. rm -rf conftest.dir
  3461. else
  3462. am_cv_CC_dependencies_compiler_type=none
  3463. fi
  3464. fi
  3465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3466. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3467. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3468. if
  3469. test "x$enable_dependency_tracking" != xno \
  3470. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3471. am__fastdepCC_TRUE=
  3472. am__fastdepCC_FALSE='#'
  3473. else
  3474. am__fastdepCC_TRUE='#'
  3475. am__fastdepCC_FALSE=
  3476. fi
  3477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
  3478. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3479. if ${ac_cv_prog_cc_c99+:} false; then :
  3480. $as_echo_n "(cached) " >&6
  3481. else
  3482. ac_cv_prog_cc_c99=no
  3483. ac_save_CC=$CC
  3484. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3485. /* end confdefs.h. */
  3486. #include <stdarg.h>
  3487. #include <stdbool.h>
  3488. #include <stdlib.h>
  3489. #include <wchar.h>
  3490. #include <stdio.h>
  3491. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3492. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3493. #define showlist(...) puts (#__VA_ARGS__)
  3494. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3495. static void
  3496. test_varargs_macros (void)
  3497. {
  3498. int x = 1234;
  3499. int y = 5678;
  3500. debug ("Flag");
  3501. debug ("X = %d\n", x);
  3502. showlist (The first, second, and third items.);
  3503. report (x>y, "x is %d but y is %d", x, y);
  3504. }
  3505. // Check long long types.
  3506. #define BIG64 18446744073709551615ull
  3507. #define BIG32 4294967295ul
  3508. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3509. #if !BIG_OK
  3510. your preprocessor is broken;
  3511. #endif
  3512. #if BIG_OK
  3513. #else
  3514. your preprocessor is broken;
  3515. #endif
  3516. static long long int bignum = -9223372036854775807LL;
  3517. static unsigned long long int ubignum = BIG64;
  3518. struct incomplete_array
  3519. {
  3520. int datasize;
  3521. double data[];
  3522. };
  3523. struct named_init {
  3524. int number;
  3525. const wchar_t *name;
  3526. double average;
  3527. };
  3528. typedef const char *ccp;
  3529. static inline int
  3530. test_restrict (ccp restrict text)
  3531. {
  3532. // See if C++-style comments work.
  3533. // Iterate through items via the restricted pointer.
  3534. // Also check for declarations in for loops.
  3535. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3536. continue;
  3537. return 0;
  3538. }
  3539. // Check varargs and va_copy.
  3540. static void
  3541. test_varargs (const char *format, ...)
  3542. {
  3543. va_list args;
  3544. va_start (args, format);
  3545. va_list args_copy;
  3546. va_copy (args_copy, args);
  3547. const char *str;
  3548. int number;
  3549. float fnumber;
  3550. while (*format)
  3551. {
  3552. switch (*format++)
  3553. {
  3554. case 's': // string
  3555. str = va_arg (args_copy, const char *);
  3556. break;
  3557. case 'd': // int
  3558. number = va_arg (args_copy, int);
  3559. break;
  3560. case 'f': // float
  3561. fnumber = va_arg (args_copy, double);
  3562. break;
  3563. default:
  3564. break;
  3565. }
  3566. }
  3567. va_end (args_copy);
  3568. va_end (args);
  3569. }
  3570. int
  3571. main ()
  3572. {
  3573. // Check bool.
  3574. _Bool success = false;
  3575. // Check restrict.
  3576. if (test_restrict ("String literal") == 0)
  3577. success = true;
  3578. char *restrict newvar = "Another string";
  3579. // Check varargs.
  3580. test_varargs ("s, d' f .", "string", 65, 34.234);
  3581. test_varargs_macros ();
  3582. // Check flexible array members.
  3583. struct incomplete_array *ia =
  3584. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3585. ia->datasize = 10;
  3586. for (int i = 0; i < ia->datasize; ++i)
  3587. ia->data[i] = i * 1.234;
  3588. // Check named initializers.
  3589. struct named_init ni = {
  3590. .number = 34,
  3591. .name = L"Test wide string",
  3592. .average = 543.34343,
  3593. };
  3594. ni.number = 58;
  3595. int dynamic_array[ni.number];
  3596. dynamic_array[ni.number - 1] = 543;
  3597. // work around unused variable warnings
  3598. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3599. || dynamic_array[ni.number - 1] != 543);
  3600. ;
  3601. return 0;
  3602. }
  3603. _ACEOF
  3604. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
  3605. do
  3606. CC="$ac_save_CC $ac_arg"
  3607. if ac_fn_c_try_compile "$LINENO"; then :
  3608. ac_cv_prog_cc_c99=$ac_arg
  3609. fi
  3610. rm -f core conftest.err conftest.$ac_objext
  3611. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3612. done
  3613. rm -f conftest.$ac_ext
  3614. CC=$ac_save_CC
  3615. fi
  3616. # AC_CACHE_VAL
  3617. case "x$ac_cv_prog_cc_c99" in
  3618. x)
  3619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3620. $as_echo "none needed" >&6; } ;;
  3621. xno)
  3622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3623. $as_echo "unsupported" >&6; } ;;
  3624. *)
  3625. CC="$CC $ac_cv_prog_cc_c99"
  3626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
  3627. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3628. esac
  3629. if test "x$ac_cv_prog_cc_c99" != xno; then :
  3630. fi
  3631. for ac_prog in flex lex
  3632. do
  3633. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3634. set dummy $ac_prog; ac_word=$2
  3635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3636. $as_echo_n "checking for $ac_word... " >&6; }
  3637. if ${ac_cv_prog_LEX+:} false; then :
  3638. $as_echo_n "(cached) " >&6
  3639. else
  3640. if test -n "$LEX"; then
  3641. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  3642. else
  3643. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3644. for as_dir in $PATH
  3645. do
  3646. IFS=$as_save_IFS
  3647. test -z "$as_dir" && as_dir=.
  3648. for ac_exec_ext in '' $ac_executable_extensions; do
  3649. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3650. ac_cv_prog_LEX="$ac_prog"
  3651. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3652. break 2
  3653. fi
  3654. done
  3655. done
  3656. IFS=$as_save_IFS
  3657. fi
  3658. fi
  3659. LEX=$ac_cv_prog_LEX
  3660. if test -n "$LEX"; then
  3661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
  3662. $as_echo "$LEX" >&6; }
  3663. else
  3664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3665. $as_echo "no" >&6; }
  3666. fi
  3667. test -n "$LEX" && break
  3668. done
  3669. test -n "$LEX" || LEX=":"
  3670. if test "x$LEX" != "x:"; then
  3671. cat >conftest.l <<_ACEOF
  3672. %%
  3673. a { ECHO; }
  3674. b { REJECT; }
  3675. c { yymore (); }
  3676. d { yyless (1); }
  3677. e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
  3678. yyless ((input () != 0)); }
  3679. f { unput (yytext[0]); }
  3680. . { BEGIN INITIAL; }
  3681. %%
  3682. #ifdef YYTEXT_POINTER
  3683. extern char *yytext;
  3684. #endif
  3685. int
  3686. main (void)
  3687. {
  3688. return ! yylex () + ! yywrap ();
  3689. }
  3690. _ACEOF
  3691. { { ac_try="$LEX conftest.l"
  3692. case "(($ac_try" in
  3693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3694. *) ac_try_echo=$ac_try;;
  3695. esac
  3696. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3697. $as_echo "$ac_try_echo"; } >&5
  3698. (eval "$LEX conftest.l") 2>&5
  3699. ac_status=$?
  3700. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3701. test $ac_status = 0; }
  3702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
  3703. $as_echo_n "checking lex output file root... " >&6; }
  3704. if ${ac_cv_prog_lex_root+:} false; then :
  3705. $as_echo_n "(cached) " >&6
  3706. else
  3707. if test -f lex.yy.c; then
  3708. ac_cv_prog_lex_root=lex.yy
  3709. elif test -f lexyy.c; then
  3710. ac_cv_prog_lex_root=lexyy
  3711. else
  3712. as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
  3713. fi
  3714. fi
  3715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
  3716. $as_echo "$ac_cv_prog_lex_root" >&6; }
  3717. LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  3718. if test -z "${LEXLIB+set}"; then
  3719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
  3720. $as_echo_n "checking lex library... " >&6; }
  3721. if ${ac_cv_lib_lex+:} false; then :
  3722. $as_echo_n "(cached) " >&6
  3723. else
  3724. ac_save_LIBS=$LIBS
  3725. ac_cv_lib_lex='none needed'
  3726. for ac_lib in '' -lfl -ll; do
  3727. LIBS="$ac_lib $ac_save_LIBS"
  3728. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3729. /* end confdefs.h. */
  3730. `cat $LEX_OUTPUT_ROOT.c`
  3731. _ACEOF
  3732. if ac_fn_c_try_link "$LINENO"; then :
  3733. ac_cv_lib_lex=$ac_lib
  3734. fi
  3735. rm -f core conftest.err conftest.$ac_objext \
  3736. conftest$ac_exeext conftest.$ac_ext
  3737. test "$ac_cv_lib_lex" != 'none needed' && break
  3738. done
  3739. LIBS=$ac_save_LIBS
  3740. fi
  3741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
  3742. $as_echo "$ac_cv_lib_lex" >&6; }
  3743. test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
  3744. fi
  3745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
  3746. $as_echo_n "checking whether yytext is a pointer... " >&6; }
  3747. if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
  3748. $as_echo_n "(cached) " >&6
  3749. else
  3750. # POSIX says lex can declare yytext either as a pointer or an array; the
  3751. # default is implementation-dependent. Figure out which it is, since
  3752. # not all implementations provide the %pointer and %array declarations.
  3753. ac_cv_prog_lex_yytext_pointer=no
  3754. ac_save_LIBS=$LIBS
  3755. LIBS="$LEXLIB $ac_save_LIBS"
  3756. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3757. /* end confdefs.h. */
  3758. #define YYTEXT_POINTER 1
  3759. `cat $LEX_OUTPUT_ROOT.c`
  3760. _ACEOF
  3761. if ac_fn_c_try_link "$LINENO"; then :
  3762. ac_cv_prog_lex_yytext_pointer=yes
  3763. fi
  3764. rm -f core conftest.err conftest.$ac_objext \
  3765. conftest$ac_exeext conftest.$ac_ext
  3766. LIBS=$ac_save_LIBS
  3767. fi
  3768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
  3769. $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
  3770. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  3771. $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
  3772. fi
  3773. rm -f conftest.l $LEX_OUTPUT_ROOT.c
  3774. fi
  3775. if test "$LEX" = :; then
  3776. LEX=${am_missing_run}flex
  3777. fi
  3778. for ac_prog in 'bison -y' byacc
  3779. do
  3780. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3781. set dummy $ac_prog; ac_word=$2
  3782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3783. $as_echo_n "checking for $ac_word... " >&6; }
  3784. if ${ac_cv_prog_YACC+:} false; then :
  3785. $as_echo_n "(cached) " >&6
  3786. else
  3787. if test -n "$YACC"; then
  3788. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  3789. else
  3790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3791. for as_dir in $PATH
  3792. do
  3793. IFS=$as_save_IFS
  3794. test -z "$as_dir" && as_dir=.
  3795. for ac_exec_ext in '' $ac_executable_extensions; do
  3796. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3797. ac_cv_prog_YACC="$ac_prog"
  3798. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3799. break 2
  3800. fi
  3801. done
  3802. done
  3803. IFS=$as_save_IFS
  3804. fi
  3805. fi
  3806. YACC=$ac_cv_prog_YACC
  3807. if test -n "$YACC"; then
  3808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  3809. $as_echo "$YACC" >&6; }
  3810. else
  3811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3812. $as_echo "no" >&6; }
  3813. fi
  3814. test -n "$YACC" && break
  3815. done
  3816. test -n "$YACC" || YACC="yacc"
  3817. case `pwd` in
  3818. *\ * | *\ *)
  3819. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3820. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3821. esac
  3822. macro_version='2.2.6'
  3823. macro_revision='1.3012'
  3824. ltmain="$ac_aux_dir/ltmain.sh"
  3825. # Make sure we can run config.sub.
  3826. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3827. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3829. $as_echo_n "checking build system type... " >&6; }
  3830. if ${ac_cv_build+:} false; then :
  3831. $as_echo_n "(cached) " >&6
  3832. else
  3833. ac_build_alias=$build_alias
  3834. test "x$ac_build_alias" = x &&
  3835. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3836. test "x$ac_build_alias" = x &&
  3837. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3838. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3839. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3840. fi
  3841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3842. $as_echo "$ac_cv_build" >&6; }
  3843. case $ac_cv_build in
  3844. *-*-*) ;;
  3845. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3846. esac
  3847. build=$ac_cv_build
  3848. ac_save_IFS=$IFS; IFS='-'
  3849. set x $ac_cv_build
  3850. shift
  3851. build_cpu=$1
  3852. build_vendor=$2
  3853. shift; shift
  3854. # Remember, the first character of IFS is used to create $*,
  3855. # except with old shells:
  3856. build_os=$*
  3857. IFS=$ac_save_IFS
  3858. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3860. $as_echo_n "checking host system type... " >&6; }
  3861. if ${ac_cv_host+:} false; then :
  3862. $as_echo_n "(cached) " >&6
  3863. else
  3864. if test "x$host_alias" = x; then
  3865. ac_cv_host=$ac_cv_build
  3866. else
  3867. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3868. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3869. fi
  3870. fi
  3871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3872. $as_echo "$ac_cv_host" >&6; }
  3873. case $ac_cv_host in
  3874. *-*-*) ;;
  3875. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3876. esac
  3877. host=$ac_cv_host
  3878. ac_save_IFS=$IFS; IFS='-'
  3879. set x $ac_cv_host
  3880. shift
  3881. host_cpu=$1
  3882. host_vendor=$2
  3883. shift; shift
  3884. # Remember, the first character of IFS is used to create $*,
  3885. # except with old shells:
  3886. host_os=$*
  3887. IFS=$ac_save_IFS
  3888. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3890. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3891. if ${ac_cv_path_SED+:} false; then :
  3892. $as_echo_n "(cached) " >&6
  3893. else
  3894. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3895. for ac_i in 1 2 3 4 5 6 7; do
  3896. ac_script="$ac_script$as_nl$ac_script"
  3897. done
  3898. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3899. { ac_script=; unset ac_script;}
  3900. if test -z "$SED"; then
  3901. ac_path_SED_found=false
  3902. # Loop through the user's path and test for each of PROGNAME-LIST
  3903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3904. for as_dir in $PATH
  3905. do
  3906. IFS=$as_save_IFS
  3907. test -z "$as_dir" && as_dir=.
  3908. for ac_prog in sed gsed; do
  3909. for ac_exec_ext in '' $ac_executable_extensions; do
  3910. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3911. as_fn_executable_p "$ac_path_SED" || continue
  3912. # Check for GNU ac_path_SED and select it if it is found.
  3913. # Check for GNU $ac_path_SED
  3914. case `"$ac_path_SED" --version 2>&1` in
  3915. *GNU*)
  3916. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3917. *)
  3918. ac_count=0
  3919. $as_echo_n 0123456789 >"conftest.in"
  3920. while :
  3921. do
  3922. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3923. mv "conftest.tmp" "conftest.in"
  3924. cp "conftest.in" "conftest.nl"
  3925. $as_echo '' >> "conftest.nl"
  3926. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3927. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3928. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3929. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3930. # Best one so far, save it but keep looking for a better one
  3931. ac_cv_path_SED="$ac_path_SED"
  3932. ac_path_SED_max=$ac_count
  3933. fi
  3934. # 10*(2^10) chars as input seems more than enough
  3935. test $ac_count -gt 10 && break
  3936. done
  3937. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3938. esac
  3939. $ac_path_SED_found && break 3
  3940. done
  3941. done
  3942. done
  3943. IFS=$as_save_IFS
  3944. if test -z "$ac_cv_path_SED"; then
  3945. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3946. fi
  3947. else
  3948. ac_cv_path_SED=$SED
  3949. fi
  3950. fi
  3951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3952. $as_echo "$ac_cv_path_SED" >&6; }
  3953. SED="$ac_cv_path_SED"
  3954. rm -f conftest.sed
  3955. test -z "$SED" && SED=sed
  3956. Xsed="$SED -e 1s/^X//"
  3957. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3958. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3959. if ${ac_cv_path_GREP+:} false; then :
  3960. $as_echo_n "(cached) " >&6
  3961. else
  3962. if test -z "$GREP"; then
  3963. ac_path_GREP_found=false
  3964. # Loop through the user's path and test for each of PROGNAME-LIST
  3965. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3966. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3967. do
  3968. IFS=$as_save_IFS
  3969. test -z "$as_dir" && as_dir=.
  3970. for ac_prog in grep ggrep; do
  3971. for ac_exec_ext in '' $ac_executable_extensions; do
  3972. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3973. as_fn_executable_p "$ac_path_GREP" || continue
  3974. # Check for GNU ac_path_GREP and select it if it is found.
  3975. # Check for GNU $ac_path_GREP
  3976. case `"$ac_path_GREP" --version 2>&1` in
  3977. *GNU*)
  3978. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3979. *)
  3980. ac_count=0
  3981. $as_echo_n 0123456789 >"conftest.in"
  3982. while :
  3983. do
  3984. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3985. mv "conftest.tmp" "conftest.in"
  3986. cp "conftest.in" "conftest.nl"
  3987. $as_echo 'GREP' >> "conftest.nl"
  3988. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3989. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3990. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3991. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3992. # Best one so far, save it but keep looking for a better one
  3993. ac_cv_path_GREP="$ac_path_GREP"
  3994. ac_path_GREP_max=$ac_count
  3995. fi
  3996. # 10*(2^10) chars as input seems more than enough
  3997. test $ac_count -gt 10 && break
  3998. done
  3999. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4000. esac
  4001. $ac_path_GREP_found && break 3
  4002. done
  4003. done
  4004. done
  4005. IFS=$as_save_IFS
  4006. if test -z "$ac_cv_path_GREP"; then
  4007. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4008. fi
  4009. else
  4010. ac_cv_path_GREP=$GREP
  4011. fi
  4012. fi
  4013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4014. $as_echo "$ac_cv_path_GREP" >&6; }
  4015. GREP="$ac_cv_path_GREP"
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4017. $as_echo_n "checking for egrep... " >&6; }
  4018. if ${ac_cv_path_EGREP+:} false; then :
  4019. $as_echo_n "(cached) " >&6
  4020. else
  4021. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4022. then ac_cv_path_EGREP="$GREP -E"
  4023. else
  4024. if test -z "$EGREP"; then
  4025. ac_path_EGREP_found=false
  4026. # Loop through the user's path and test for each of PROGNAME-LIST
  4027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4028. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4029. do
  4030. IFS=$as_save_IFS
  4031. test -z "$as_dir" && as_dir=.
  4032. for ac_prog in egrep; do
  4033. for ac_exec_ext in '' $ac_executable_extensions; do
  4034. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4035. as_fn_executable_p "$ac_path_EGREP" || continue
  4036. # Check for GNU ac_path_EGREP and select it if it is found.
  4037. # Check for GNU $ac_path_EGREP
  4038. case `"$ac_path_EGREP" --version 2>&1` in
  4039. *GNU*)
  4040. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4041. *)
  4042. ac_count=0
  4043. $as_echo_n 0123456789 >"conftest.in"
  4044. while :
  4045. do
  4046. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4047. mv "conftest.tmp" "conftest.in"
  4048. cp "conftest.in" "conftest.nl"
  4049. $as_echo 'EGREP' >> "conftest.nl"
  4050. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4051. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4052. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4053. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4054. # Best one so far, save it but keep looking for a better one
  4055. ac_cv_path_EGREP="$ac_path_EGREP"
  4056. ac_path_EGREP_max=$ac_count
  4057. fi
  4058. # 10*(2^10) chars as input seems more than enough
  4059. test $ac_count -gt 10 && break
  4060. done
  4061. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4062. esac
  4063. $ac_path_EGREP_found && break 3
  4064. done
  4065. done
  4066. done
  4067. IFS=$as_save_IFS
  4068. if test -z "$ac_cv_path_EGREP"; then
  4069. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4070. fi
  4071. else
  4072. ac_cv_path_EGREP=$EGREP
  4073. fi
  4074. fi
  4075. fi
  4076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4077. $as_echo "$ac_cv_path_EGREP" >&6; }
  4078. EGREP="$ac_cv_path_EGREP"
  4079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4080. $as_echo_n "checking for fgrep... " >&6; }
  4081. if ${ac_cv_path_FGREP+:} false; then :
  4082. $as_echo_n "(cached) " >&6
  4083. else
  4084. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4085. then ac_cv_path_FGREP="$GREP -F"
  4086. else
  4087. if test -z "$FGREP"; then
  4088. ac_path_FGREP_found=false
  4089. # Loop through the user's path and test for each of PROGNAME-LIST
  4090. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4091. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4092. do
  4093. IFS=$as_save_IFS
  4094. test -z "$as_dir" && as_dir=.
  4095. for ac_prog in fgrep; do
  4096. for ac_exec_ext in '' $ac_executable_extensions; do
  4097. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4098. as_fn_executable_p "$ac_path_FGREP" || continue
  4099. # Check for GNU ac_path_FGREP and select it if it is found.
  4100. # Check for GNU $ac_path_FGREP
  4101. case `"$ac_path_FGREP" --version 2>&1` in
  4102. *GNU*)
  4103. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4104. *)
  4105. ac_count=0
  4106. $as_echo_n 0123456789 >"conftest.in"
  4107. while :
  4108. do
  4109. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4110. mv "conftest.tmp" "conftest.in"
  4111. cp "conftest.in" "conftest.nl"
  4112. $as_echo 'FGREP' >> "conftest.nl"
  4113. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4114. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4115. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4116. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4117. # Best one so far, save it but keep looking for a better one
  4118. ac_cv_path_FGREP="$ac_path_FGREP"
  4119. ac_path_FGREP_max=$ac_count
  4120. fi
  4121. # 10*(2^10) chars as input seems more than enough
  4122. test $ac_count -gt 10 && break
  4123. done
  4124. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4125. esac
  4126. $ac_path_FGREP_found && break 3
  4127. done
  4128. done
  4129. done
  4130. IFS=$as_save_IFS
  4131. if test -z "$ac_cv_path_FGREP"; then
  4132. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4133. fi
  4134. else
  4135. ac_cv_path_FGREP=$FGREP
  4136. fi
  4137. fi
  4138. fi
  4139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4140. $as_echo "$ac_cv_path_FGREP" >&6; }
  4141. FGREP="$ac_cv_path_FGREP"
  4142. test -z "$GREP" && GREP=grep
  4143. # Check whether --with-gnu-ld was given.
  4144. if test "${with_gnu_ld+set}" = set; then :
  4145. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4146. else
  4147. with_gnu_ld=no
  4148. fi
  4149. ac_prog=ld
  4150. if test "$GCC" = yes; then
  4151. # Check if gcc -print-prog-name=ld gives a path.
  4152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4153. $as_echo_n "checking for ld used by $CC... " >&6; }
  4154. case $host in
  4155. *-*-mingw*)
  4156. # gcc leaves a trailing carriage return which upsets mingw
  4157. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4158. *)
  4159. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4160. esac
  4161. case $ac_prog in
  4162. # Accept absolute paths.
  4163. [\\/]* | ?:[\\/]*)
  4164. re_direlt='/[^/][^/]*/\.\./'
  4165. # Canonicalize the pathname of ld
  4166. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4167. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4168. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4169. done
  4170. test -z "$LD" && LD="$ac_prog"
  4171. ;;
  4172. "")
  4173. # If it fails, then pretend we aren't using GCC.
  4174. ac_prog=ld
  4175. ;;
  4176. *)
  4177. # If it is relative, then search for the first ld in PATH.
  4178. with_gnu_ld=unknown
  4179. ;;
  4180. esac
  4181. elif test "$with_gnu_ld" = yes; then
  4182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4183. $as_echo_n "checking for GNU ld... " >&6; }
  4184. else
  4185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4186. $as_echo_n "checking for non-GNU ld... " >&6; }
  4187. fi
  4188. if ${lt_cv_path_LD+:} false; then :
  4189. $as_echo_n "(cached) " >&6
  4190. else
  4191. if test -z "$LD"; then
  4192. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4193. for ac_dir in $PATH; do
  4194. IFS="$lt_save_ifs"
  4195. test -z "$ac_dir" && ac_dir=.
  4196. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4197. lt_cv_path_LD="$ac_dir/$ac_prog"
  4198. # Check to see if the program is GNU ld. I'd rather use --version,
  4199. # but apparently some variants of GNU ld only accept -v.
  4200. # Break only if it was the GNU/non-GNU ld that we prefer.
  4201. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4202. *GNU* | *'with BFD'*)
  4203. test "$with_gnu_ld" != no && break
  4204. ;;
  4205. *)
  4206. test "$with_gnu_ld" != yes && break
  4207. ;;
  4208. esac
  4209. fi
  4210. done
  4211. IFS="$lt_save_ifs"
  4212. else
  4213. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4214. fi
  4215. fi
  4216. LD="$lt_cv_path_LD"
  4217. if test -n "$LD"; then
  4218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4219. $as_echo "$LD" >&6; }
  4220. else
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4222. $as_echo "no" >&6; }
  4223. fi
  4224. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4226. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4227. if ${lt_cv_prog_gnu_ld+:} false; then :
  4228. $as_echo_n "(cached) " >&6
  4229. else
  4230. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4231. case `$LD -v 2>&1 </dev/null` in
  4232. *GNU* | *'with BFD'*)
  4233. lt_cv_prog_gnu_ld=yes
  4234. ;;
  4235. *)
  4236. lt_cv_prog_gnu_ld=no
  4237. ;;
  4238. esac
  4239. fi
  4240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4241. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4242. with_gnu_ld=$lt_cv_prog_gnu_ld
  4243. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4244. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4245. if ${lt_cv_path_NM+:} false; then :
  4246. $as_echo_n "(cached) " >&6
  4247. else
  4248. if test -n "$NM"; then
  4249. # Let the user override the test.
  4250. lt_cv_path_NM="$NM"
  4251. else
  4252. lt_nm_to_check="${ac_tool_prefix}nm"
  4253. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4254. lt_nm_to_check="$lt_nm_to_check nm"
  4255. fi
  4256. for lt_tmp_nm in $lt_nm_to_check; do
  4257. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4258. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4259. IFS="$lt_save_ifs"
  4260. test -z "$ac_dir" && ac_dir=.
  4261. tmp_nm="$ac_dir/$lt_tmp_nm"
  4262. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4263. # Check to see if the nm accepts a BSD-compat flag.
  4264. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4265. # nm: unknown option "B" ignored
  4266. # Tru64's nm complains that /dev/null is an invalid object file
  4267. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4268. */dev/null* | *'Invalid file or object type'*)
  4269. lt_cv_path_NM="$tmp_nm -B"
  4270. break
  4271. ;;
  4272. *)
  4273. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4274. */dev/null*)
  4275. lt_cv_path_NM="$tmp_nm -p"
  4276. break
  4277. ;;
  4278. *)
  4279. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4280. continue # so that we can try to find one that supports BSD flags
  4281. ;;
  4282. esac
  4283. ;;
  4284. esac
  4285. fi
  4286. done
  4287. IFS="$lt_save_ifs"
  4288. done
  4289. : ${lt_cv_path_NM=no}
  4290. fi
  4291. fi
  4292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4293. $as_echo "$lt_cv_path_NM" >&6; }
  4294. if test "$lt_cv_path_NM" != "no"; then
  4295. NM="$lt_cv_path_NM"
  4296. else
  4297. # Didn't find any BSD compatible name lister, look for dumpbin.
  4298. if test -n "$ac_tool_prefix"; then
  4299. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4300. do
  4301. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4302. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4304. $as_echo_n "checking for $ac_word... " >&6; }
  4305. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4306. $as_echo_n "(cached) " >&6
  4307. else
  4308. if test -n "$DUMPBIN"; then
  4309. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4310. else
  4311. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4312. for as_dir in $PATH
  4313. do
  4314. IFS=$as_save_IFS
  4315. test -z "$as_dir" && as_dir=.
  4316. for ac_exec_ext in '' $ac_executable_extensions; do
  4317. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4318. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4319. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4320. break 2
  4321. fi
  4322. done
  4323. done
  4324. IFS=$as_save_IFS
  4325. fi
  4326. fi
  4327. DUMPBIN=$ac_cv_prog_DUMPBIN
  4328. if test -n "$DUMPBIN"; then
  4329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4330. $as_echo "$DUMPBIN" >&6; }
  4331. else
  4332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4333. $as_echo "no" >&6; }
  4334. fi
  4335. test -n "$DUMPBIN" && break
  4336. done
  4337. fi
  4338. if test -z "$DUMPBIN"; then
  4339. ac_ct_DUMPBIN=$DUMPBIN
  4340. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4341. do
  4342. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4343. set dummy $ac_prog; ac_word=$2
  4344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4345. $as_echo_n "checking for $ac_word... " >&6; }
  4346. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4347. $as_echo_n "(cached) " >&6
  4348. else
  4349. if test -n "$ac_ct_DUMPBIN"; then
  4350. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4351. else
  4352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4353. for as_dir in $PATH
  4354. do
  4355. IFS=$as_save_IFS
  4356. test -z "$as_dir" && as_dir=.
  4357. for ac_exec_ext in '' $ac_executable_extensions; do
  4358. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4359. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4360. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4361. break 2
  4362. fi
  4363. done
  4364. done
  4365. IFS=$as_save_IFS
  4366. fi
  4367. fi
  4368. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4369. if test -n "$ac_ct_DUMPBIN"; then
  4370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4371. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4372. else
  4373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4374. $as_echo "no" >&6; }
  4375. fi
  4376. test -n "$ac_ct_DUMPBIN" && break
  4377. done
  4378. if test "x$ac_ct_DUMPBIN" = x; then
  4379. DUMPBIN=":"
  4380. else
  4381. case $cross_compiling:$ac_tool_warned in
  4382. yes:)
  4383. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4384. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4385. ac_tool_warned=yes ;;
  4386. esac
  4387. DUMPBIN=$ac_ct_DUMPBIN
  4388. fi
  4389. fi
  4390. if test "$DUMPBIN" != ":"; then
  4391. NM="$DUMPBIN"
  4392. fi
  4393. fi
  4394. test -z "$NM" && NM=nm
  4395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4396. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4397. if ${lt_cv_nm_interface+:} false; then :
  4398. $as_echo_n "(cached) " >&6
  4399. else
  4400. lt_cv_nm_interface="BSD nm"
  4401. echo "int some_variable = 0;" > conftest.$ac_ext
  4402. (eval echo "\"\$as_me:4895: $ac_compile\"" >&5)
  4403. (eval "$ac_compile" 2>conftest.err)
  4404. cat conftest.err >&5
  4405. (eval echo "\"\$as_me:4898: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4406. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4407. cat conftest.err >&5
  4408. (eval echo "\"\$as_me:4901: output\"" >&5)
  4409. cat conftest.out >&5
  4410. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4411. lt_cv_nm_interface="MS dumpbin"
  4412. fi
  4413. rm -f conftest*
  4414. fi
  4415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4416. $as_echo "$lt_cv_nm_interface" >&6; }
  4417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4418. $as_echo_n "checking whether ln -s works... " >&6; }
  4419. LN_S=$as_ln_s
  4420. if test "$LN_S" = "ln -s"; then
  4421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4422. $as_echo "yes" >&6; }
  4423. else
  4424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4425. $as_echo "no, using $LN_S" >&6; }
  4426. fi
  4427. # find the maximum length of command line arguments
  4428. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4429. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4430. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4431. $as_echo_n "(cached) " >&6
  4432. else
  4433. i=0
  4434. teststring="ABCD"
  4435. case $build_os in
  4436. msdosdjgpp*)
  4437. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4438. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4439. # during glob expansion). Even if it were fixed, the result of this
  4440. # check would be larger than it should be.
  4441. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4442. ;;
  4443. gnu*)
  4444. # Under GNU Hurd, this test is not required because there is
  4445. # no limit to the length of command line arguments.
  4446. # Libtool will interpret -1 as no limit whatsoever
  4447. lt_cv_sys_max_cmd_len=-1;
  4448. ;;
  4449. cygwin* | mingw* | cegcc*)
  4450. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4451. # about 5 minutes as the teststring grows exponentially.
  4452. # Worse, since 9x/ME are not pre-emptively multitasking,
  4453. # you end up with a "frozen" computer, even though with patience
  4454. # the test eventually succeeds (with a max line length of 256k).
  4455. # Instead, let's just punt: use the minimum linelength reported by
  4456. # all of the supported platforms: 8192 (on NT/2K/XP).
  4457. lt_cv_sys_max_cmd_len=8192;
  4458. ;;
  4459. amigaos*)
  4460. # On AmigaOS with pdksh, this test takes hours, literally.
  4461. # So we just punt and use a minimum line length of 8192.
  4462. lt_cv_sys_max_cmd_len=8192;
  4463. ;;
  4464. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4465. # This has been around since 386BSD, at least. Likely further.
  4466. if test -x /sbin/sysctl; then
  4467. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4468. elif test -x /usr/sbin/sysctl; then
  4469. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4470. else
  4471. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4472. fi
  4473. # And add a safety zone
  4474. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4475. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4476. ;;
  4477. interix*)
  4478. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4479. lt_cv_sys_max_cmd_len=196608
  4480. ;;
  4481. osf*)
  4482. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4483. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4484. # nice to cause kernel panics so lets avoid the loop below.
  4485. # First set a reasonable default.
  4486. lt_cv_sys_max_cmd_len=16384
  4487. #
  4488. if test -x /sbin/sysconfig; then
  4489. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4490. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4491. esac
  4492. fi
  4493. ;;
  4494. sco3.2v5*)
  4495. lt_cv_sys_max_cmd_len=102400
  4496. ;;
  4497. sysv5* | sco5v6* | sysv4.2uw2*)
  4498. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4499. if test -n "$kargmax"; then
  4500. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4501. else
  4502. lt_cv_sys_max_cmd_len=32768
  4503. fi
  4504. ;;
  4505. *)
  4506. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4507. if test -n "$lt_cv_sys_max_cmd_len"; then
  4508. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4509. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4510. else
  4511. # Make teststring a little bigger before we do anything with it.
  4512. # a 1K string should be a reasonable start.
  4513. for i in 1 2 3 4 5 6 7 8 ; do
  4514. teststring=$teststring$teststring
  4515. done
  4516. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4517. # If test is not a shell built-in, we'll probably end up computing a
  4518. # maximum length that is only half of the actual maximum length, but
  4519. # we can't tell.
  4520. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4521. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4522. test $i != 17 # 1/2 MB should be enough
  4523. do
  4524. i=`expr $i + 1`
  4525. teststring=$teststring$teststring
  4526. done
  4527. # Only check the string length outside the loop.
  4528. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4529. teststring=
  4530. # Add a significant safety factor because C++ compilers can tack on
  4531. # massive amounts of additional arguments before passing them to the
  4532. # linker. It appears as though 1/2 is a usable value.
  4533. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4534. fi
  4535. ;;
  4536. esac
  4537. fi
  4538. if test -n $lt_cv_sys_max_cmd_len ; then
  4539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4540. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4541. else
  4542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4543. $as_echo "none" >&6; }
  4544. fi
  4545. max_cmd_len=$lt_cv_sys_max_cmd_len
  4546. : ${CP="cp -f"}
  4547. : ${MV="mv -f"}
  4548. : ${RM="rm -f"}
  4549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4550. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4551. # Try some XSI features
  4552. xsi_shell=no
  4553. ( _lt_dummy="a/b/c"
  4554. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4555. = c,a/b,, \
  4556. && eval 'test $(( 1 + 1 )) -eq 2 \
  4557. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4558. && xsi_shell=yes
  4559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4560. $as_echo "$xsi_shell" >&6; }
  4561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4562. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4563. lt_shell_append=no
  4564. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4565. >/dev/null 2>&1 \
  4566. && lt_shell_append=yes
  4567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4568. $as_echo "$lt_shell_append" >&6; }
  4569. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4570. lt_unset=unset
  4571. else
  4572. lt_unset=false
  4573. fi
  4574. # test EBCDIC or ASCII
  4575. case `echo X|tr X '\101'` in
  4576. A) # ASCII based system
  4577. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4578. lt_SP2NL='tr \040 \012'
  4579. lt_NL2SP='tr \015\012 \040\040'
  4580. ;;
  4581. *) # EBCDIC based system
  4582. lt_SP2NL='tr \100 \n'
  4583. lt_NL2SP='tr \r\n \100\100'
  4584. ;;
  4585. esac
  4586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4587. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4588. if ${lt_cv_ld_reload_flag+:} false; then :
  4589. $as_echo_n "(cached) " >&6
  4590. else
  4591. lt_cv_ld_reload_flag='-r'
  4592. fi
  4593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4594. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4595. reload_flag=$lt_cv_ld_reload_flag
  4596. case $reload_flag in
  4597. "" | " "*) ;;
  4598. *) reload_flag=" $reload_flag" ;;
  4599. esac
  4600. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4601. case $host_os in
  4602. darwin*)
  4603. if test "$GCC" = yes; then
  4604. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4605. else
  4606. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4607. fi
  4608. ;;
  4609. esac
  4610. if test -n "$ac_tool_prefix"; then
  4611. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4612. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4614. $as_echo_n "checking for $ac_word... " >&6; }
  4615. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4616. $as_echo_n "(cached) " >&6
  4617. else
  4618. if test -n "$OBJDUMP"; then
  4619. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4620. else
  4621. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4622. for as_dir in $PATH
  4623. do
  4624. IFS=$as_save_IFS
  4625. test -z "$as_dir" && as_dir=.
  4626. for ac_exec_ext in '' $ac_executable_extensions; do
  4627. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4628. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4629. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4630. break 2
  4631. fi
  4632. done
  4633. done
  4634. IFS=$as_save_IFS
  4635. fi
  4636. fi
  4637. OBJDUMP=$ac_cv_prog_OBJDUMP
  4638. if test -n "$OBJDUMP"; then
  4639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4640. $as_echo "$OBJDUMP" >&6; }
  4641. else
  4642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4643. $as_echo "no" >&6; }
  4644. fi
  4645. fi
  4646. if test -z "$ac_cv_prog_OBJDUMP"; then
  4647. ac_ct_OBJDUMP=$OBJDUMP
  4648. # Extract the first word of "objdump", so it can be a program name with args.
  4649. set dummy objdump; ac_word=$2
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4651. $as_echo_n "checking for $ac_word... " >&6; }
  4652. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4653. $as_echo_n "(cached) " >&6
  4654. else
  4655. if test -n "$ac_ct_OBJDUMP"; then
  4656. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4657. else
  4658. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4659. for as_dir in $PATH
  4660. do
  4661. IFS=$as_save_IFS
  4662. test -z "$as_dir" && as_dir=.
  4663. for ac_exec_ext in '' $ac_executable_extensions; do
  4664. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4665. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4666. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4667. break 2
  4668. fi
  4669. done
  4670. done
  4671. IFS=$as_save_IFS
  4672. fi
  4673. fi
  4674. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4675. if test -n "$ac_ct_OBJDUMP"; then
  4676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4677. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4678. else
  4679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4680. $as_echo "no" >&6; }
  4681. fi
  4682. if test "x$ac_ct_OBJDUMP" = x; then
  4683. OBJDUMP="false"
  4684. else
  4685. case $cross_compiling:$ac_tool_warned in
  4686. yes:)
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4688. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4689. ac_tool_warned=yes ;;
  4690. esac
  4691. OBJDUMP=$ac_ct_OBJDUMP
  4692. fi
  4693. else
  4694. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4695. fi
  4696. test -z "$OBJDUMP" && OBJDUMP=objdump
  4697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4698. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4699. if ${lt_cv_deplibs_check_method+:} false; then :
  4700. $as_echo_n "(cached) " >&6
  4701. else
  4702. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4703. lt_cv_file_magic_test_file=
  4704. lt_cv_deplibs_check_method='unknown'
  4705. # Need to set the preceding variable on all platforms that support
  4706. # interlibrary dependencies.
  4707. # 'none' -- dependencies not supported.
  4708. # `unknown' -- same as none, but documents that we really don't know.
  4709. # 'pass_all' -- all dependencies passed with no checks.
  4710. # 'test_compile' -- check by making test program.
  4711. # 'file_magic [[regex]]' -- check by looking for files in library path
  4712. # which responds to the $file_magic_cmd with a given extended regex.
  4713. # If you have `file' or equivalent on your system and you're not sure
  4714. # whether `pass_all' will *always* work, you probably want this one.
  4715. case $host_os in
  4716. aix[4-9]*)
  4717. lt_cv_deplibs_check_method=pass_all
  4718. ;;
  4719. beos*)
  4720. lt_cv_deplibs_check_method=pass_all
  4721. ;;
  4722. bsdi[45]*)
  4723. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4724. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4725. lt_cv_file_magic_test_file=/shlib/libc.so
  4726. ;;
  4727. cygwin*)
  4728. # func_win32_libid is a shell function defined in ltmain.sh
  4729. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4730. lt_cv_file_magic_cmd='func_win32_libid'
  4731. ;;
  4732. mingw* | pw32*)
  4733. # Base MSYS/MinGW do not provide the 'file' command needed by
  4734. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4735. # unless we find 'file', for example because we are cross-compiling.
  4736. if ( file / ) >/dev/null 2>&1; then
  4737. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4738. lt_cv_file_magic_cmd='func_win32_libid'
  4739. else
  4740. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4741. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4742. fi
  4743. ;;
  4744. cegcc)
  4745. # use the weaker test based on 'objdump'. See mingw*.
  4746. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4747. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4748. ;;
  4749. darwin* | rhapsody*)
  4750. lt_cv_deplibs_check_method=pass_all
  4751. ;;
  4752. freebsd* | dragonfly*)
  4753. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4754. case $host_cpu in
  4755. i*86 )
  4756. # Not sure whether the presence of OpenBSD here was a mistake.
  4757. # Let's accept both of them until this is cleared up.
  4758. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4759. lt_cv_file_magic_cmd=/usr/bin/file
  4760. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4761. ;;
  4762. esac
  4763. else
  4764. lt_cv_deplibs_check_method=pass_all
  4765. fi
  4766. ;;
  4767. gnu*)
  4768. lt_cv_deplibs_check_method=pass_all
  4769. ;;
  4770. hpux10.20* | hpux11*)
  4771. lt_cv_file_magic_cmd=/usr/bin/file
  4772. case $host_cpu in
  4773. ia64*)
  4774. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4775. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4776. ;;
  4777. hppa*64*)
  4778. 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]'
  4779. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4780. ;;
  4781. *)
  4782. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4783. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4784. ;;
  4785. esac
  4786. ;;
  4787. interix[3-9]*)
  4788. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4789. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4790. ;;
  4791. irix5* | irix6* | nonstopux*)
  4792. case $LD in
  4793. *-32|*"-32 ") libmagic=32-bit;;
  4794. *-n32|*"-n32 ") libmagic=N32;;
  4795. *-64|*"-64 ") libmagic=64-bit;;
  4796. *) libmagic=never-match;;
  4797. esac
  4798. lt_cv_deplibs_check_method=pass_all
  4799. ;;
  4800. # This must be Linux ELF.
  4801. linux* | k*bsd*-gnu)
  4802. lt_cv_deplibs_check_method=pass_all
  4803. ;;
  4804. netbsd*)
  4805. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4806. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4807. else
  4808. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4809. fi
  4810. ;;
  4811. newos6*)
  4812. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4813. lt_cv_file_magic_cmd=/usr/bin/file
  4814. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4815. ;;
  4816. *nto* | *qnx*)
  4817. lt_cv_deplibs_check_method=pass_all
  4818. ;;
  4819. openbsd*)
  4820. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4821. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4822. else
  4823. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4824. fi
  4825. ;;
  4826. osf3* | osf4* | osf5*)
  4827. lt_cv_deplibs_check_method=pass_all
  4828. ;;
  4829. rdos*)
  4830. lt_cv_deplibs_check_method=pass_all
  4831. ;;
  4832. solaris*)
  4833. lt_cv_deplibs_check_method=pass_all
  4834. ;;
  4835. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4836. lt_cv_deplibs_check_method=pass_all
  4837. ;;
  4838. sysv4 | sysv4.3*)
  4839. case $host_vendor in
  4840. motorola)
  4841. 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]'
  4842. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4843. ;;
  4844. ncr)
  4845. lt_cv_deplibs_check_method=pass_all
  4846. ;;
  4847. sequent)
  4848. lt_cv_file_magic_cmd='/bin/file'
  4849. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4850. ;;
  4851. sni)
  4852. lt_cv_file_magic_cmd='/bin/file'
  4853. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4854. lt_cv_file_magic_test_file=/lib/libc.so
  4855. ;;
  4856. siemens)
  4857. lt_cv_deplibs_check_method=pass_all
  4858. ;;
  4859. pc)
  4860. lt_cv_deplibs_check_method=pass_all
  4861. ;;
  4862. esac
  4863. ;;
  4864. tpf*)
  4865. lt_cv_deplibs_check_method=pass_all
  4866. ;;
  4867. esac
  4868. fi
  4869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4870. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4871. file_magic_cmd=$lt_cv_file_magic_cmd
  4872. deplibs_check_method=$lt_cv_deplibs_check_method
  4873. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4874. if test -n "$ac_tool_prefix"; then
  4875. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4876. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4878. $as_echo_n "checking for $ac_word... " >&6; }
  4879. if ${ac_cv_prog_AR+:} false; then :
  4880. $as_echo_n "(cached) " >&6
  4881. else
  4882. if test -n "$AR"; then
  4883. ac_cv_prog_AR="$AR" # Let the user override the test.
  4884. else
  4885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4886. for as_dir in $PATH
  4887. do
  4888. IFS=$as_save_IFS
  4889. test -z "$as_dir" && as_dir=.
  4890. for ac_exec_ext in '' $ac_executable_extensions; do
  4891. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4892. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4894. break 2
  4895. fi
  4896. done
  4897. done
  4898. IFS=$as_save_IFS
  4899. fi
  4900. fi
  4901. AR=$ac_cv_prog_AR
  4902. if test -n "$AR"; then
  4903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4904. $as_echo "$AR" >&6; }
  4905. else
  4906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4907. $as_echo "no" >&6; }
  4908. fi
  4909. fi
  4910. if test -z "$ac_cv_prog_AR"; then
  4911. ac_ct_AR=$AR
  4912. # Extract the first word of "ar", so it can be a program name with args.
  4913. set dummy ar; ac_word=$2
  4914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4915. $as_echo_n "checking for $ac_word... " >&6; }
  4916. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4917. $as_echo_n "(cached) " >&6
  4918. else
  4919. if test -n "$ac_ct_AR"; then
  4920. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4921. else
  4922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4923. for as_dir in $PATH
  4924. do
  4925. IFS=$as_save_IFS
  4926. test -z "$as_dir" && as_dir=.
  4927. for ac_exec_ext in '' $ac_executable_extensions; do
  4928. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4929. ac_cv_prog_ac_ct_AR="ar"
  4930. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4931. break 2
  4932. fi
  4933. done
  4934. done
  4935. IFS=$as_save_IFS
  4936. fi
  4937. fi
  4938. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4939. if test -n "$ac_ct_AR"; then
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4941. $as_echo "$ac_ct_AR" >&6; }
  4942. else
  4943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4944. $as_echo "no" >&6; }
  4945. fi
  4946. if test "x$ac_ct_AR" = x; then
  4947. AR="false"
  4948. else
  4949. case $cross_compiling:$ac_tool_warned in
  4950. yes:)
  4951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4952. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4953. ac_tool_warned=yes ;;
  4954. esac
  4955. AR=$ac_ct_AR
  4956. fi
  4957. else
  4958. AR="$ac_cv_prog_AR"
  4959. fi
  4960. test -z "$AR" && AR=ar
  4961. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4962. if test -n "$ac_tool_prefix"; then
  4963. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4964. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4966. $as_echo_n "checking for $ac_word... " >&6; }
  4967. if ${ac_cv_prog_STRIP+:} false; then :
  4968. $as_echo_n "(cached) " >&6
  4969. else
  4970. if test -n "$STRIP"; then
  4971. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4972. else
  4973. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4974. for as_dir in $PATH
  4975. do
  4976. IFS=$as_save_IFS
  4977. test -z "$as_dir" && as_dir=.
  4978. for ac_exec_ext in '' $ac_executable_extensions; do
  4979. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4980. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4981. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4982. break 2
  4983. fi
  4984. done
  4985. done
  4986. IFS=$as_save_IFS
  4987. fi
  4988. fi
  4989. STRIP=$ac_cv_prog_STRIP
  4990. if test -n "$STRIP"; then
  4991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4992. $as_echo "$STRIP" >&6; }
  4993. else
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4995. $as_echo "no" >&6; }
  4996. fi
  4997. fi
  4998. if test -z "$ac_cv_prog_STRIP"; then
  4999. ac_ct_STRIP=$STRIP
  5000. # Extract the first word of "strip", so it can be a program name with args.
  5001. set dummy strip; ac_word=$2
  5002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5003. $as_echo_n "checking for $ac_word... " >&6; }
  5004. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5005. $as_echo_n "(cached) " >&6
  5006. else
  5007. if test -n "$ac_ct_STRIP"; then
  5008. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5009. else
  5010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5011. for as_dir in $PATH
  5012. do
  5013. IFS=$as_save_IFS
  5014. test -z "$as_dir" && as_dir=.
  5015. for ac_exec_ext in '' $ac_executable_extensions; do
  5016. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5017. ac_cv_prog_ac_ct_STRIP="strip"
  5018. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5019. break 2
  5020. fi
  5021. done
  5022. done
  5023. IFS=$as_save_IFS
  5024. fi
  5025. fi
  5026. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5027. if test -n "$ac_ct_STRIP"; then
  5028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5029. $as_echo "$ac_ct_STRIP" >&6; }
  5030. else
  5031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5032. $as_echo "no" >&6; }
  5033. fi
  5034. if test "x$ac_ct_STRIP" = x; then
  5035. STRIP=":"
  5036. else
  5037. case $cross_compiling:$ac_tool_warned in
  5038. yes:)
  5039. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5040. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5041. ac_tool_warned=yes ;;
  5042. esac
  5043. STRIP=$ac_ct_STRIP
  5044. fi
  5045. else
  5046. STRIP="$ac_cv_prog_STRIP"
  5047. fi
  5048. test -z "$STRIP" && STRIP=:
  5049. if test -n "$ac_tool_prefix"; then
  5050. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5051. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5053. $as_echo_n "checking for $ac_word... " >&6; }
  5054. if ${ac_cv_prog_RANLIB+:} false; then :
  5055. $as_echo_n "(cached) " >&6
  5056. else
  5057. if test -n "$RANLIB"; then
  5058. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5059. else
  5060. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5061. for as_dir in $PATH
  5062. do
  5063. IFS=$as_save_IFS
  5064. test -z "$as_dir" && as_dir=.
  5065. for ac_exec_ext in '' $ac_executable_extensions; do
  5066. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5067. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5068. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5069. break 2
  5070. fi
  5071. done
  5072. done
  5073. IFS=$as_save_IFS
  5074. fi
  5075. fi
  5076. RANLIB=$ac_cv_prog_RANLIB
  5077. if test -n "$RANLIB"; then
  5078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5079. $as_echo "$RANLIB" >&6; }
  5080. else
  5081. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5082. $as_echo "no" >&6; }
  5083. fi
  5084. fi
  5085. if test -z "$ac_cv_prog_RANLIB"; then
  5086. ac_ct_RANLIB=$RANLIB
  5087. # Extract the first word of "ranlib", so it can be a program name with args.
  5088. set dummy ranlib; ac_word=$2
  5089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5090. $as_echo_n "checking for $ac_word... " >&6; }
  5091. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5092. $as_echo_n "(cached) " >&6
  5093. else
  5094. if test -n "$ac_ct_RANLIB"; then
  5095. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5096. else
  5097. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5098. for as_dir in $PATH
  5099. do
  5100. IFS=$as_save_IFS
  5101. test -z "$as_dir" && as_dir=.
  5102. for ac_exec_ext in '' $ac_executable_extensions; do
  5103. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5104. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5105. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5106. break 2
  5107. fi
  5108. done
  5109. done
  5110. IFS=$as_save_IFS
  5111. fi
  5112. fi
  5113. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5114. if test -n "$ac_ct_RANLIB"; then
  5115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5116. $as_echo "$ac_ct_RANLIB" >&6; }
  5117. else
  5118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5119. $as_echo "no" >&6; }
  5120. fi
  5121. if test "x$ac_ct_RANLIB" = x; then
  5122. RANLIB=":"
  5123. else
  5124. case $cross_compiling:$ac_tool_warned in
  5125. yes:)
  5126. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5127. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5128. ac_tool_warned=yes ;;
  5129. esac
  5130. RANLIB=$ac_ct_RANLIB
  5131. fi
  5132. else
  5133. RANLIB="$ac_cv_prog_RANLIB"
  5134. fi
  5135. test -z "$RANLIB" && RANLIB=:
  5136. # Determine commands to create old-style static archives.
  5137. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5138. old_postinstall_cmds='chmod 644 $oldlib'
  5139. old_postuninstall_cmds=
  5140. if test -n "$RANLIB"; then
  5141. case $host_os in
  5142. openbsd*)
  5143. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5144. ;;
  5145. *)
  5146. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5147. ;;
  5148. esac
  5149. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5150. fi
  5151. # If no C compiler was specified, use CC.
  5152. LTCC=${LTCC-"$CC"}
  5153. # If no C compiler flags were specified, use CFLAGS.
  5154. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5155. # Allow CC to be a program name with arguments.
  5156. compiler=$CC
  5157. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5159. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5160. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5161. $as_echo_n "(cached) " >&6
  5162. else
  5163. # These are sane defaults that work on at least a few old systems.
  5164. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5165. # Character class describing NM global symbol codes.
  5166. symcode='[BCDEGRST]'
  5167. # Regexp to match symbols that can be accessed directly from C.
  5168. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5169. # Define system-specific variables.
  5170. case $host_os in
  5171. aix*)
  5172. symcode='[BCDT]'
  5173. ;;
  5174. cygwin* | mingw* | pw32* | cegcc*)
  5175. symcode='[ABCDGISTW]'
  5176. ;;
  5177. hpux*)
  5178. if test "$host_cpu" = ia64; then
  5179. symcode='[ABCDEGRST]'
  5180. fi
  5181. ;;
  5182. irix* | nonstopux*)
  5183. symcode='[BCDEGRST]'
  5184. ;;
  5185. osf*)
  5186. symcode='[BCDEGQRST]'
  5187. ;;
  5188. solaris*)
  5189. symcode='[BDRT]'
  5190. ;;
  5191. sco3.2v5*)
  5192. symcode='[DT]'
  5193. ;;
  5194. sysv4.2uw2*)
  5195. symcode='[DT]'
  5196. ;;
  5197. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5198. symcode='[ABDT]'
  5199. ;;
  5200. sysv4)
  5201. symcode='[DFNSTU]'
  5202. ;;
  5203. esac
  5204. # If we're using GNU nm, then use its standard symbol codes.
  5205. case `$NM -V 2>&1` in
  5206. *GNU* | *'with BFD'*)
  5207. symcode='[ABCDGIRSTW]' ;;
  5208. esac
  5209. # Transform an extracted symbol line into a proper C declaration.
  5210. # Some systems (esp. on ia64) link data and code symbols differently,
  5211. # so use this general approach.
  5212. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5213. # Transform an extracted symbol line into symbol name and symbol address
  5214. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5215. 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'"
  5216. # Handle CRLF in mingw tool chain
  5217. opt_cr=
  5218. case $build_os in
  5219. mingw*)
  5220. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5221. ;;
  5222. esac
  5223. # Try without a prefix underscore, then with it.
  5224. for ac_symprfx in "" "_"; do
  5225. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5226. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5227. # Write the raw and C identifiers.
  5228. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5229. # Fake it for dumpbin and say T for any non-static function
  5230. # and D for any global variable.
  5231. # Also find C++ and __fastcall symbols from MSVC++,
  5232. # which start with @ or ?.
  5233. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5234. " {last_section=section; section=\$ 3};"\
  5235. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5236. " \$ 0!~/External *\|/{next};"\
  5237. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5238. " {if(hide[section]) next};"\
  5239. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5240. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5241. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5242. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5243. " ' prfx=^$ac_symprfx"
  5244. else
  5245. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5246. fi
  5247. # Check to see that the pipe works correctly.
  5248. pipe_works=no
  5249. rm -f conftest*
  5250. cat > conftest.$ac_ext <<_LT_EOF
  5251. #ifdef __cplusplus
  5252. extern "C" {
  5253. #endif
  5254. char nm_test_var;
  5255. void nm_test_func(void);
  5256. void nm_test_func(void){}
  5257. #ifdef __cplusplus
  5258. }
  5259. #endif
  5260. int main(){nm_test_var='a';nm_test_func();return(0);}
  5261. _LT_EOF
  5262. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5263. (eval $ac_compile) 2>&5
  5264. ac_status=$?
  5265. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5266. test $ac_status = 0; }; then
  5267. # Now try to grab the symbols.
  5268. nlist=conftest.nm
  5269. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  5270. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5271. ac_status=$?
  5272. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5273. test $ac_status = 0; } && test -s "$nlist"; then
  5274. # Try sorting and uniquifying the output.
  5275. if sort "$nlist" | uniq > "$nlist"T; then
  5276. mv -f "$nlist"T "$nlist"
  5277. else
  5278. rm -f "$nlist"T
  5279. fi
  5280. # Make sure that we snagged all the symbols we need.
  5281. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5282. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5283. cat <<_LT_EOF > conftest.$ac_ext
  5284. #ifdef __cplusplus
  5285. extern "C" {
  5286. #endif
  5287. _LT_EOF
  5288. # Now generate the symbol file.
  5289. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5290. cat <<_LT_EOF >> conftest.$ac_ext
  5291. /* The mapping between symbol names and symbols. */
  5292. const struct {
  5293. const char *name;
  5294. void *address;
  5295. }
  5296. lt__PROGRAM__LTX_preloaded_symbols[] =
  5297. {
  5298. { "@PROGRAM@", (void *) 0 },
  5299. _LT_EOF
  5300. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5301. cat <<\_LT_EOF >> conftest.$ac_ext
  5302. {0, (void *) 0}
  5303. };
  5304. /* This works around a problem in FreeBSD linker */
  5305. #ifdef FREEBSD_WORKAROUND
  5306. static const void *lt_preloaded_setup() {
  5307. return lt__PROGRAM__LTX_preloaded_symbols;
  5308. }
  5309. #endif
  5310. #ifdef __cplusplus
  5311. }
  5312. #endif
  5313. _LT_EOF
  5314. # Now try linking the two files.
  5315. mv conftest.$ac_objext conftstm.$ac_objext
  5316. lt_save_LIBS="$LIBS"
  5317. lt_save_CFLAGS="$CFLAGS"
  5318. LIBS="conftstm.$ac_objext"
  5319. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5320. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5321. (eval $ac_link) 2>&5
  5322. ac_status=$?
  5323. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5324. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5325. pipe_works=yes
  5326. fi
  5327. LIBS="$lt_save_LIBS"
  5328. CFLAGS="$lt_save_CFLAGS"
  5329. else
  5330. echo "cannot find nm_test_func in $nlist" >&5
  5331. fi
  5332. else
  5333. echo "cannot find nm_test_var in $nlist" >&5
  5334. fi
  5335. else
  5336. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5337. fi
  5338. else
  5339. echo "$progname: failed program was:" >&5
  5340. cat conftest.$ac_ext >&5
  5341. fi
  5342. rm -rf conftest* conftst*
  5343. # Do not use the global_symbol_pipe unless it works.
  5344. if test "$pipe_works" = yes; then
  5345. break
  5346. else
  5347. lt_cv_sys_global_symbol_pipe=
  5348. fi
  5349. done
  5350. fi
  5351. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5352. lt_cv_sys_global_symbol_to_cdecl=
  5353. fi
  5354. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5356. $as_echo "failed" >&6; }
  5357. else
  5358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5359. $as_echo "ok" >&6; }
  5360. fi
  5361. # Check whether --enable-libtool-lock was given.
  5362. if test "${enable_libtool_lock+set}" = set; then :
  5363. enableval=$enable_libtool_lock;
  5364. fi
  5365. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5366. # Some flags need to be propagated to the compiler or linker for good
  5367. # libtool support.
  5368. case $host in
  5369. ia64-*-hpux*)
  5370. # Find out which ABI we are using.
  5371. echo 'int i;' > conftest.$ac_ext
  5372. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5373. (eval $ac_compile) 2>&5
  5374. ac_status=$?
  5375. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5376. test $ac_status = 0; }; then
  5377. case `/usr/bin/file conftest.$ac_objext` in
  5378. *ELF-32*)
  5379. HPUX_IA64_MODE="32"
  5380. ;;
  5381. *ELF-64*)
  5382. HPUX_IA64_MODE="64"
  5383. ;;
  5384. esac
  5385. fi
  5386. rm -rf conftest*
  5387. ;;
  5388. *-*-irix6*)
  5389. # Find out which ABI we are using.
  5390. echo '#line 6106 "configure"' > conftest.$ac_ext
  5391. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5392. (eval $ac_compile) 2>&5
  5393. ac_status=$?
  5394. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5395. test $ac_status = 0; }; then
  5396. if test "$lt_cv_prog_gnu_ld" = yes; then
  5397. case `/usr/bin/file conftest.$ac_objext` in
  5398. *32-bit*)
  5399. LD="${LD-ld} -melf32bsmip"
  5400. ;;
  5401. *N32*)
  5402. LD="${LD-ld} -melf32bmipn32"
  5403. ;;
  5404. *64-bit*)
  5405. LD="${LD-ld} -melf64bmip"
  5406. ;;
  5407. esac
  5408. else
  5409. case `/usr/bin/file conftest.$ac_objext` in
  5410. *32-bit*)
  5411. LD="${LD-ld} -32"
  5412. ;;
  5413. *N32*)
  5414. LD="${LD-ld} -n32"
  5415. ;;
  5416. *64-bit*)
  5417. LD="${LD-ld} -64"
  5418. ;;
  5419. esac
  5420. fi
  5421. fi
  5422. rm -rf conftest*
  5423. ;;
  5424. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5425. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5426. # Find out which ABI we are using.
  5427. echo 'int i;' > conftest.$ac_ext
  5428. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5429. (eval $ac_compile) 2>&5
  5430. ac_status=$?
  5431. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5432. test $ac_status = 0; }; then
  5433. case `/usr/bin/file conftest.o` in
  5434. *32-bit*)
  5435. case $host in
  5436. x86_64-*kfreebsd*-gnu)
  5437. LD="${LD-ld} -m elf_i386_fbsd"
  5438. ;;
  5439. x86_64-*linux*)
  5440. LD="${LD-ld} -m elf_i386"
  5441. ;;
  5442. ppc64-*linux*|powerpc64-*linux*)
  5443. LD="${LD-ld} -m elf32ppclinux"
  5444. ;;
  5445. s390x-*linux*)
  5446. LD="${LD-ld} -m elf_s390"
  5447. ;;
  5448. sparc64-*linux*)
  5449. LD="${LD-ld} -m elf32_sparc"
  5450. ;;
  5451. esac
  5452. ;;
  5453. *64-bit*)
  5454. case $host in
  5455. x86_64-*kfreebsd*-gnu)
  5456. LD="${LD-ld} -m elf_x86_64_fbsd"
  5457. ;;
  5458. x86_64-*linux*)
  5459. LD="${LD-ld} -m elf_x86_64"
  5460. ;;
  5461. ppc*-*linux*|powerpc*-*linux*)
  5462. LD="${LD-ld} -m elf64ppc"
  5463. ;;
  5464. s390*-*linux*|s390*-*tpf*)
  5465. LD="${LD-ld} -m elf64_s390"
  5466. ;;
  5467. sparc*-*linux*)
  5468. LD="${LD-ld} -m elf64_sparc"
  5469. ;;
  5470. esac
  5471. ;;
  5472. esac
  5473. fi
  5474. rm -rf conftest*
  5475. ;;
  5476. *-*-sco3.2v5*)
  5477. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5478. SAVE_CFLAGS="$CFLAGS"
  5479. CFLAGS="$CFLAGS -belf"
  5480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5481. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5482. if ${lt_cv_cc_needs_belf+:} false; then :
  5483. $as_echo_n "(cached) " >&6
  5484. else
  5485. ac_ext=c
  5486. ac_cpp='$CPP $CPPFLAGS'
  5487. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5488. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5489. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5491. /* end confdefs.h. */
  5492. int
  5493. main ()
  5494. {
  5495. ;
  5496. return 0;
  5497. }
  5498. _ACEOF
  5499. if ac_fn_c_try_link "$LINENO"; then :
  5500. lt_cv_cc_needs_belf=yes
  5501. else
  5502. lt_cv_cc_needs_belf=no
  5503. fi
  5504. rm -f core conftest.err conftest.$ac_objext \
  5505. conftest$ac_exeext conftest.$ac_ext
  5506. ac_ext=c
  5507. ac_cpp='$CPP $CPPFLAGS'
  5508. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5509. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5510. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5511. fi
  5512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5513. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5514. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5515. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5516. CFLAGS="$SAVE_CFLAGS"
  5517. fi
  5518. ;;
  5519. sparc*-*solaris*)
  5520. # Find out which ABI we are using.
  5521. echo 'int i;' > conftest.$ac_ext
  5522. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5523. (eval $ac_compile) 2>&5
  5524. ac_status=$?
  5525. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5526. test $ac_status = 0; }; then
  5527. case `/usr/bin/file conftest.o` in
  5528. *64-bit*)
  5529. case $lt_cv_prog_gnu_ld in
  5530. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5531. *)
  5532. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5533. LD="${LD-ld} -64"
  5534. fi
  5535. ;;
  5536. esac
  5537. ;;
  5538. esac
  5539. fi
  5540. rm -rf conftest*
  5541. ;;
  5542. esac
  5543. need_locks="$enable_libtool_lock"
  5544. case $host_os in
  5545. rhapsody* | darwin*)
  5546. if test -n "$ac_tool_prefix"; then
  5547. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5548. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5550. $as_echo_n "checking for $ac_word... " >&6; }
  5551. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5552. $as_echo_n "(cached) " >&6
  5553. else
  5554. if test -n "$DSYMUTIL"; then
  5555. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5556. else
  5557. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5558. for as_dir in $PATH
  5559. do
  5560. IFS=$as_save_IFS
  5561. test -z "$as_dir" && as_dir=.
  5562. for ac_exec_ext in '' $ac_executable_extensions; do
  5563. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5564. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5565. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5566. break 2
  5567. fi
  5568. done
  5569. done
  5570. IFS=$as_save_IFS
  5571. fi
  5572. fi
  5573. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5574. if test -n "$DSYMUTIL"; then
  5575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5576. $as_echo "$DSYMUTIL" >&6; }
  5577. else
  5578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5579. $as_echo "no" >&6; }
  5580. fi
  5581. fi
  5582. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5583. ac_ct_DSYMUTIL=$DSYMUTIL
  5584. # Extract the first word of "dsymutil", so it can be a program name with args.
  5585. set dummy dsymutil; ac_word=$2
  5586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5587. $as_echo_n "checking for $ac_word... " >&6; }
  5588. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5589. $as_echo_n "(cached) " >&6
  5590. else
  5591. if test -n "$ac_ct_DSYMUTIL"; then
  5592. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5593. else
  5594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5595. for as_dir in $PATH
  5596. do
  5597. IFS=$as_save_IFS
  5598. test -z "$as_dir" && as_dir=.
  5599. for ac_exec_ext in '' $ac_executable_extensions; do
  5600. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5601. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5602. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5603. break 2
  5604. fi
  5605. done
  5606. done
  5607. IFS=$as_save_IFS
  5608. fi
  5609. fi
  5610. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5611. if test -n "$ac_ct_DSYMUTIL"; then
  5612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5613. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5614. else
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5616. $as_echo "no" >&6; }
  5617. fi
  5618. if test "x$ac_ct_DSYMUTIL" = x; then
  5619. DSYMUTIL=":"
  5620. else
  5621. case $cross_compiling:$ac_tool_warned in
  5622. yes:)
  5623. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5624. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5625. ac_tool_warned=yes ;;
  5626. esac
  5627. DSYMUTIL=$ac_ct_DSYMUTIL
  5628. fi
  5629. else
  5630. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5631. fi
  5632. if test -n "$ac_tool_prefix"; then
  5633. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5634. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5636. $as_echo_n "checking for $ac_word... " >&6; }
  5637. if ${ac_cv_prog_NMEDIT+:} false; then :
  5638. $as_echo_n "(cached) " >&6
  5639. else
  5640. if test -n "$NMEDIT"; then
  5641. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5642. else
  5643. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5644. for as_dir in $PATH
  5645. do
  5646. IFS=$as_save_IFS
  5647. test -z "$as_dir" && as_dir=.
  5648. for ac_exec_ext in '' $ac_executable_extensions; do
  5649. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5650. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5651. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5652. break 2
  5653. fi
  5654. done
  5655. done
  5656. IFS=$as_save_IFS
  5657. fi
  5658. fi
  5659. NMEDIT=$ac_cv_prog_NMEDIT
  5660. if test -n "$NMEDIT"; then
  5661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5662. $as_echo "$NMEDIT" >&6; }
  5663. else
  5664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5665. $as_echo "no" >&6; }
  5666. fi
  5667. fi
  5668. if test -z "$ac_cv_prog_NMEDIT"; then
  5669. ac_ct_NMEDIT=$NMEDIT
  5670. # Extract the first word of "nmedit", so it can be a program name with args.
  5671. set dummy nmedit; ac_word=$2
  5672. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5673. $as_echo_n "checking for $ac_word... " >&6; }
  5674. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5675. $as_echo_n "(cached) " >&6
  5676. else
  5677. if test -n "$ac_ct_NMEDIT"; then
  5678. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5679. else
  5680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5681. for as_dir in $PATH
  5682. do
  5683. IFS=$as_save_IFS
  5684. test -z "$as_dir" && as_dir=.
  5685. for ac_exec_ext in '' $ac_executable_extensions; do
  5686. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5687. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5688. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5689. break 2
  5690. fi
  5691. done
  5692. done
  5693. IFS=$as_save_IFS
  5694. fi
  5695. fi
  5696. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5697. if test -n "$ac_ct_NMEDIT"; then
  5698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5699. $as_echo "$ac_ct_NMEDIT" >&6; }
  5700. else
  5701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5702. $as_echo "no" >&6; }
  5703. fi
  5704. if test "x$ac_ct_NMEDIT" = x; then
  5705. NMEDIT=":"
  5706. else
  5707. case $cross_compiling:$ac_tool_warned in
  5708. yes:)
  5709. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5710. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5711. ac_tool_warned=yes ;;
  5712. esac
  5713. NMEDIT=$ac_ct_NMEDIT
  5714. fi
  5715. else
  5716. NMEDIT="$ac_cv_prog_NMEDIT"
  5717. fi
  5718. if test -n "$ac_tool_prefix"; then
  5719. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5720. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5722. $as_echo_n "checking for $ac_word... " >&6; }
  5723. if ${ac_cv_prog_LIPO+:} false; then :
  5724. $as_echo_n "(cached) " >&6
  5725. else
  5726. if test -n "$LIPO"; then
  5727. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5728. else
  5729. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5730. for as_dir in $PATH
  5731. do
  5732. IFS=$as_save_IFS
  5733. test -z "$as_dir" && as_dir=.
  5734. for ac_exec_ext in '' $ac_executable_extensions; do
  5735. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5736. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5737. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5738. break 2
  5739. fi
  5740. done
  5741. done
  5742. IFS=$as_save_IFS
  5743. fi
  5744. fi
  5745. LIPO=$ac_cv_prog_LIPO
  5746. if test -n "$LIPO"; then
  5747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5748. $as_echo "$LIPO" >&6; }
  5749. else
  5750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5751. $as_echo "no" >&6; }
  5752. fi
  5753. fi
  5754. if test -z "$ac_cv_prog_LIPO"; then
  5755. ac_ct_LIPO=$LIPO
  5756. # Extract the first word of "lipo", so it can be a program name with args.
  5757. set dummy lipo; ac_word=$2
  5758. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5759. $as_echo_n "checking for $ac_word... " >&6; }
  5760. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5761. $as_echo_n "(cached) " >&6
  5762. else
  5763. if test -n "$ac_ct_LIPO"; then
  5764. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5765. else
  5766. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5767. for as_dir in $PATH
  5768. do
  5769. IFS=$as_save_IFS
  5770. test -z "$as_dir" && as_dir=.
  5771. for ac_exec_ext in '' $ac_executable_extensions; do
  5772. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5773. ac_cv_prog_ac_ct_LIPO="lipo"
  5774. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5775. break 2
  5776. fi
  5777. done
  5778. done
  5779. IFS=$as_save_IFS
  5780. fi
  5781. fi
  5782. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5783. if test -n "$ac_ct_LIPO"; then
  5784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5785. $as_echo "$ac_ct_LIPO" >&6; }
  5786. else
  5787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5788. $as_echo "no" >&6; }
  5789. fi
  5790. if test "x$ac_ct_LIPO" = x; then
  5791. LIPO=":"
  5792. else
  5793. case $cross_compiling:$ac_tool_warned in
  5794. yes:)
  5795. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5796. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5797. ac_tool_warned=yes ;;
  5798. esac
  5799. LIPO=$ac_ct_LIPO
  5800. fi
  5801. else
  5802. LIPO="$ac_cv_prog_LIPO"
  5803. fi
  5804. if test -n "$ac_tool_prefix"; then
  5805. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5806. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5808. $as_echo_n "checking for $ac_word... " >&6; }
  5809. if ${ac_cv_prog_OTOOL+:} false; then :
  5810. $as_echo_n "(cached) " >&6
  5811. else
  5812. if test -n "$OTOOL"; then
  5813. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5814. else
  5815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5816. for as_dir in $PATH
  5817. do
  5818. IFS=$as_save_IFS
  5819. test -z "$as_dir" && as_dir=.
  5820. for ac_exec_ext in '' $ac_executable_extensions; do
  5821. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5822. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5823. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5824. break 2
  5825. fi
  5826. done
  5827. done
  5828. IFS=$as_save_IFS
  5829. fi
  5830. fi
  5831. OTOOL=$ac_cv_prog_OTOOL
  5832. if test -n "$OTOOL"; then
  5833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5834. $as_echo "$OTOOL" >&6; }
  5835. else
  5836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5837. $as_echo "no" >&6; }
  5838. fi
  5839. fi
  5840. if test -z "$ac_cv_prog_OTOOL"; then
  5841. ac_ct_OTOOL=$OTOOL
  5842. # Extract the first word of "otool", so it can be a program name with args.
  5843. set dummy otool; ac_word=$2
  5844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5845. $as_echo_n "checking for $ac_word... " >&6; }
  5846. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5847. $as_echo_n "(cached) " >&6
  5848. else
  5849. if test -n "$ac_ct_OTOOL"; then
  5850. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5851. else
  5852. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5853. for as_dir in $PATH
  5854. do
  5855. IFS=$as_save_IFS
  5856. test -z "$as_dir" && as_dir=.
  5857. for ac_exec_ext in '' $ac_executable_extensions; do
  5858. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5859. ac_cv_prog_ac_ct_OTOOL="otool"
  5860. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5861. break 2
  5862. fi
  5863. done
  5864. done
  5865. IFS=$as_save_IFS
  5866. fi
  5867. fi
  5868. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5869. if test -n "$ac_ct_OTOOL"; then
  5870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5871. $as_echo "$ac_ct_OTOOL" >&6; }
  5872. else
  5873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5874. $as_echo "no" >&6; }
  5875. fi
  5876. if test "x$ac_ct_OTOOL" = x; then
  5877. OTOOL=":"
  5878. else
  5879. case $cross_compiling:$ac_tool_warned in
  5880. yes:)
  5881. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5882. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5883. ac_tool_warned=yes ;;
  5884. esac
  5885. OTOOL=$ac_ct_OTOOL
  5886. fi
  5887. else
  5888. OTOOL="$ac_cv_prog_OTOOL"
  5889. fi
  5890. if test -n "$ac_tool_prefix"; then
  5891. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5892. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5894. $as_echo_n "checking for $ac_word... " >&6; }
  5895. if ${ac_cv_prog_OTOOL64+:} false; then :
  5896. $as_echo_n "(cached) " >&6
  5897. else
  5898. if test -n "$OTOOL64"; then
  5899. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5900. else
  5901. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5902. for as_dir in $PATH
  5903. do
  5904. IFS=$as_save_IFS
  5905. test -z "$as_dir" && as_dir=.
  5906. for ac_exec_ext in '' $ac_executable_extensions; do
  5907. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5908. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5909. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5910. break 2
  5911. fi
  5912. done
  5913. done
  5914. IFS=$as_save_IFS
  5915. fi
  5916. fi
  5917. OTOOL64=$ac_cv_prog_OTOOL64
  5918. if test -n "$OTOOL64"; then
  5919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5920. $as_echo "$OTOOL64" >&6; }
  5921. else
  5922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5923. $as_echo "no" >&6; }
  5924. fi
  5925. fi
  5926. if test -z "$ac_cv_prog_OTOOL64"; then
  5927. ac_ct_OTOOL64=$OTOOL64
  5928. # Extract the first word of "otool64", so it can be a program name with args.
  5929. set dummy otool64; ac_word=$2
  5930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5931. $as_echo_n "checking for $ac_word... " >&6; }
  5932. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5933. $as_echo_n "(cached) " >&6
  5934. else
  5935. if test -n "$ac_ct_OTOOL64"; then
  5936. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5937. else
  5938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5939. for as_dir in $PATH
  5940. do
  5941. IFS=$as_save_IFS
  5942. test -z "$as_dir" && as_dir=.
  5943. for ac_exec_ext in '' $ac_executable_extensions; do
  5944. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5945. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5946. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5947. break 2
  5948. fi
  5949. done
  5950. done
  5951. IFS=$as_save_IFS
  5952. fi
  5953. fi
  5954. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5955. if test -n "$ac_ct_OTOOL64"; then
  5956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5957. $as_echo "$ac_ct_OTOOL64" >&6; }
  5958. else
  5959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5960. $as_echo "no" >&6; }
  5961. fi
  5962. if test "x$ac_ct_OTOOL64" = x; then
  5963. OTOOL64=":"
  5964. else
  5965. case $cross_compiling:$ac_tool_warned in
  5966. yes:)
  5967. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5968. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5969. ac_tool_warned=yes ;;
  5970. esac
  5971. OTOOL64=$ac_ct_OTOOL64
  5972. fi
  5973. else
  5974. OTOOL64="$ac_cv_prog_OTOOL64"
  5975. fi
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5977. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5978. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5979. $as_echo_n "(cached) " >&6
  5980. else
  5981. lt_cv_apple_cc_single_mod=no
  5982. if test -z "${LT_MULTI_MODULE}"; then
  5983. # By default we will add the -single_module flag. You can override
  5984. # by either setting the environment variable LT_MULTI_MODULE
  5985. # non-empty at configure time, or by adding -multi_module to the
  5986. # link flags.
  5987. rm -rf libconftest.dylib*
  5988. echo "int foo(void){return 1;}" > conftest.c
  5989. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5990. -dynamiclib -Wl,-single_module conftest.c" >&5
  5991. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  5992. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  5993. _lt_result=$?
  5994. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  5995. lt_cv_apple_cc_single_mod=yes
  5996. else
  5997. cat conftest.err >&5
  5998. fi
  5999. rm -rf libconftest.dylib*
  6000. rm -f conftest.*
  6001. fi
  6002. fi
  6003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6004. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6006. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6007. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6008. $as_echo_n "(cached) " >&6
  6009. else
  6010. lt_cv_ld_exported_symbols_list=no
  6011. save_LDFLAGS=$LDFLAGS
  6012. echo "_main" > conftest.sym
  6013. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6015. /* end confdefs.h. */
  6016. int
  6017. main ()
  6018. {
  6019. ;
  6020. return 0;
  6021. }
  6022. _ACEOF
  6023. if ac_fn_c_try_link "$LINENO"; then :
  6024. lt_cv_ld_exported_symbols_list=yes
  6025. else
  6026. lt_cv_ld_exported_symbols_list=no
  6027. fi
  6028. rm -f core conftest.err conftest.$ac_objext \
  6029. conftest$ac_exeext conftest.$ac_ext
  6030. LDFLAGS="$save_LDFLAGS"
  6031. fi
  6032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6033. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6034. case $host_os in
  6035. rhapsody* | darwin1.[012])
  6036. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6037. darwin1.*)
  6038. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6039. darwin*) # darwin 5.x on
  6040. # if running on 10.5 or later, the deployment target defaults
  6041. # to the OS version, if on x86, and 10.4, the deployment
  6042. # target defaults to 10.4. Don't you love it?
  6043. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6044. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6045. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6046. 10.[012]*)
  6047. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6048. 10.*)
  6049. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6050. esac
  6051. ;;
  6052. esac
  6053. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6054. _lt_dar_single_mod='$single_module'
  6055. fi
  6056. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6057. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6058. else
  6059. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6060. fi
  6061. if test "$DSYMUTIL" != ":"; then
  6062. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6063. else
  6064. _lt_dsymutil=
  6065. fi
  6066. ;;
  6067. esac
  6068. ac_ext=c
  6069. ac_cpp='$CPP $CPPFLAGS'
  6070. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6071. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6072. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6074. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6075. # On Suns, sometimes $CPP names a directory.
  6076. if test -n "$CPP" && test -d "$CPP"; then
  6077. CPP=
  6078. fi
  6079. if test -z "$CPP"; then
  6080. if ${ac_cv_prog_CPP+:} false; then :
  6081. $as_echo_n "(cached) " >&6
  6082. else
  6083. # Double quotes because CPP needs to be expanded
  6084. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6085. do
  6086. ac_preproc_ok=false
  6087. for ac_c_preproc_warn_flag in '' yes
  6088. do
  6089. # Use a header file that comes with gcc, so configuring glibc
  6090. # with a fresh cross-compiler works.
  6091. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6092. # <limits.h> exists even on freestanding compilers.
  6093. # On the NeXT, cc -E runs the code through the compiler's parser,
  6094. # not just through cpp. "Syntax error" is here to catch this case.
  6095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6096. /* end confdefs.h. */
  6097. #ifdef __STDC__
  6098. # include <limits.h>
  6099. #else
  6100. # include <assert.h>
  6101. #endif
  6102. Syntax error
  6103. _ACEOF
  6104. if ac_fn_c_try_cpp "$LINENO"; then :
  6105. else
  6106. # Broken: fails on valid input.
  6107. continue
  6108. fi
  6109. rm -f conftest.err conftest.i conftest.$ac_ext
  6110. # OK, works on sane cases. Now check whether nonexistent headers
  6111. # can be detected and how.
  6112. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6113. /* end confdefs.h. */
  6114. #include <ac_nonexistent.h>
  6115. _ACEOF
  6116. if ac_fn_c_try_cpp "$LINENO"; then :
  6117. # Broken: success on invalid input.
  6118. continue
  6119. else
  6120. # Passes both tests.
  6121. ac_preproc_ok=:
  6122. break
  6123. fi
  6124. rm -f conftest.err conftest.i conftest.$ac_ext
  6125. done
  6126. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6127. rm -f conftest.i conftest.err conftest.$ac_ext
  6128. if $ac_preproc_ok; then :
  6129. break
  6130. fi
  6131. done
  6132. ac_cv_prog_CPP=$CPP
  6133. fi
  6134. CPP=$ac_cv_prog_CPP
  6135. else
  6136. ac_cv_prog_CPP=$CPP
  6137. fi
  6138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6139. $as_echo "$CPP" >&6; }
  6140. ac_preproc_ok=false
  6141. for ac_c_preproc_warn_flag in '' yes
  6142. do
  6143. # Use a header file that comes with gcc, so configuring glibc
  6144. # with a fresh cross-compiler works.
  6145. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6146. # <limits.h> exists even on freestanding compilers.
  6147. # On the NeXT, cc -E runs the code through the compiler's parser,
  6148. # not just through cpp. "Syntax error" is here to catch this case.
  6149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6150. /* end confdefs.h. */
  6151. #ifdef __STDC__
  6152. # include <limits.h>
  6153. #else
  6154. # include <assert.h>
  6155. #endif
  6156. Syntax error
  6157. _ACEOF
  6158. if ac_fn_c_try_cpp "$LINENO"; then :
  6159. else
  6160. # Broken: fails on valid input.
  6161. continue
  6162. fi
  6163. rm -f conftest.err conftest.i conftest.$ac_ext
  6164. # OK, works on sane cases. Now check whether nonexistent headers
  6165. # can be detected and how.
  6166. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6167. /* end confdefs.h. */
  6168. #include <ac_nonexistent.h>
  6169. _ACEOF
  6170. if ac_fn_c_try_cpp "$LINENO"; then :
  6171. # Broken: success on invalid input.
  6172. continue
  6173. else
  6174. # Passes both tests.
  6175. ac_preproc_ok=:
  6176. break
  6177. fi
  6178. rm -f conftest.err conftest.i conftest.$ac_ext
  6179. done
  6180. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6181. rm -f conftest.i conftest.err conftest.$ac_ext
  6182. if $ac_preproc_ok; then :
  6183. else
  6184. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6185. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6186. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6187. See \`config.log' for more details" "$LINENO" 5; }
  6188. fi
  6189. ac_ext=c
  6190. ac_cpp='$CPP $CPPFLAGS'
  6191. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6192. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6193. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6195. $as_echo_n "checking for ANSI C header files... " >&6; }
  6196. if ${ac_cv_header_stdc+:} false; then :
  6197. $as_echo_n "(cached) " >&6
  6198. else
  6199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6200. /* end confdefs.h. */
  6201. #include <stdlib.h>
  6202. #include <stdarg.h>
  6203. #include <string.h>
  6204. #include <float.h>
  6205. int
  6206. main ()
  6207. {
  6208. ;
  6209. return 0;
  6210. }
  6211. _ACEOF
  6212. if ac_fn_c_try_compile "$LINENO"; then :
  6213. ac_cv_header_stdc=yes
  6214. else
  6215. ac_cv_header_stdc=no
  6216. fi
  6217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6218. if test $ac_cv_header_stdc = yes; then
  6219. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6221. /* end confdefs.h. */
  6222. #include <string.h>
  6223. _ACEOF
  6224. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6225. $EGREP "memchr" >/dev/null 2>&1; then :
  6226. else
  6227. ac_cv_header_stdc=no
  6228. fi
  6229. rm -f conftest*
  6230. fi
  6231. if test $ac_cv_header_stdc = yes; then
  6232. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6234. /* end confdefs.h. */
  6235. #include <stdlib.h>
  6236. _ACEOF
  6237. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6238. $EGREP "free" >/dev/null 2>&1; then :
  6239. else
  6240. ac_cv_header_stdc=no
  6241. fi
  6242. rm -f conftest*
  6243. fi
  6244. if test $ac_cv_header_stdc = yes; then
  6245. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6246. if test "$cross_compiling" = yes; then :
  6247. :
  6248. else
  6249. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6250. /* end confdefs.h. */
  6251. #include <ctype.h>
  6252. #include <stdlib.h>
  6253. #if ((' ' & 0x0FF) == 0x020)
  6254. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6255. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6256. #else
  6257. # define ISLOWER(c) \
  6258. (('a' <= (c) && (c) <= 'i') \
  6259. || ('j' <= (c) && (c) <= 'r') \
  6260. || ('s' <= (c) && (c) <= 'z'))
  6261. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6262. #endif
  6263. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6264. int
  6265. main ()
  6266. {
  6267. int i;
  6268. for (i = 0; i < 256; i++)
  6269. if (XOR (islower (i), ISLOWER (i))
  6270. || toupper (i) != TOUPPER (i))
  6271. return 2;
  6272. return 0;
  6273. }
  6274. _ACEOF
  6275. if ac_fn_c_try_run "$LINENO"; then :
  6276. else
  6277. ac_cv_header_stdc=no
  6278. fi
  6279. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6280. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6281. fi
  6282. fi
  6283. fi
  6284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6285. $as_echo "$ac_cv_header_stdc" >&6; }
  6286. if test $ac_cv_header_stdc = yes; then
  6287. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6288. fi
  6289. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6290. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6291. inttypes.h stdint.h unistd.h
  6292. do :
  6293. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6294. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6295. "
  6296. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6297. cat >>confdefs.h <<_ACEOF
  6298. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6299. _ACEOF
  6300. fi
  6301. done
  6302. for ac_header in dlfcn.h
  6303. do :
  6304. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6305. "
  6306. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6307. cat >>confdefs.h <<_ACEOF
  6308. #define HAVE_DLFCN_H 1
  6309. _ACEOF
  6310. fi
  6311. done
  6312. # Set options
  6313. enable_dlopen=no
  6314. enable_win32_dll=no
  6315. # Check whether --enable-shared was given.
  6316. if test "${enable_shared+set}" = set; then :
  6317. enableval=$enable_shared; p=${PACKAGE-default}
  6318. case $enableval in
  6319. yes) enable_shared=yes ;;
  6320. no) enable_shared=no ;;
  6321. *)
  6322. enable_shared=no
  6323. # Look at the argument we got. We use all the common list separators.
  6324. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6325. for pkg in $enableval; do
  6326. IFS="$lt_save_ifs"
  6327. if test "X$pkg" = "X$p"; then
  6328. enable_shared=yes
  6329. fi
  6330. done
  6331. IFS="$lt_save_ifs"
  6332. ;;
  6333. esac
  6334. else
  6335. enable_shared=yes
  6336. fi
  6337. # Check whether --enable-static was given.
  6338. if test "${enable_static+set}" = set; then :
  6339. enableval=$enable_static; p=${PACKAGE-default}
  6340. case $enableval in
  6341. yes) enable_static=yes ;;
  6342. no) enable_static=no ;;
  6343. *)
  6344. enable_static=no
  6345. # Look at the argument we got. We use all the common list separators.
  6346. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6347. for pkg in $enableval; do
  6348. IFS="$lt_save_ifs"
  6349. if test "X$pkg" = "X$p"; then
  6350. enable_static=yes
  6351. fi
  6352. done
  6353. IFS="$lt_save_ifs"
  6354. ;;
  6355. esac
  6356. else
  6357. enable_static=yes
  6358. fi
  6359. # Check whether --with-pic was given.
  6360. if test "${with_pic+set}" = set; then :
  6361. withval=$with_pic; pic_mode="$withval"
  6362. else
  6363. pic_mode=default
  6364. fi
  6365. test -z "$pic_mode" && pic_mode=default
  6366. # Check whether --enable-fast-install was given.
  6367. if test "${enable_fast_install+set}" = set; then :
  6368. enableval=$enable_fast_install; p=${PACKAGE-default}
  6369. case $enableval in
  6370. yes) enable_fast_install=yes ;;
  6371. no) enable_fast_install=no ;;
  6372. *)
  6373. enable_fast_install=no
  6374. # Look at the argument we got. We use all the common list separators.
  6375. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6376. for pkg in $enableval; do
  6377. IFS="$lt_save_ifs"
  6378. if test "X$pkg" = "X$p"; then
  6379. enable_fast_install=yes
  6380. fi
  6381. done
  6382. IFS="$lt_save_ifs"
  6383. ;;
  6384. esac
  6385. else
  6386. enable_fast_install=yes
  6387. fi
  6388. # This can be used to rebuild libtool when needed
  6389. LIBTOOL_DEPS="$ltmain"
  6390. # Always use our own libtool.
  6391. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6392. test -z "$LN_S" && LN_S="ln -s"
  6393. if test -n "${ZSH_VERSION+set}" ; then
  6394. setopt NO_GLOB_SUBST
  6395. fi
  6396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6397. $as_echo_n "checking for objdir... " >&6; }
  6398. if ${lt_cv_objdir+:} false; then :
  6399. $as_echo_n "(cached) " >&6
  6400. else
  6401. rm -f .libs 2>/dev/null
  6402. mkdir .libs 2>/dev/null
  6403. if test -d .libs; then
  6404. lt_cv_objdir=.libs
  6405. else
  6406. # MS-DOS does not allow filenames that begin with a dot.
  6407. lt_cv_objdir=_libs
  6408. fi
  6409. rmdir .libs 2>/dev/null
  6410. fi
  6411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6412. $as_echo "$lt_cv_objdir" >&6; }
  6413. objdir=$lt_cv_objdir
  6414. cat >>confdefs.h <<_ACEOF
  6415. #define LT_OBJDIR "$lt_cv_objdir/"
  6416. _ACEOF
  6417. case $host_os in
  6418. aix3*)
  6419. # AIX sometimes has problems with the GCC collect2 program. For some
  6420. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6421. # vanish in a puff of smoke.
  6422. if test "X${COLLECT_NAMES+set}" != Xset; then
  6423. COLLECT_NAMES=
  6424. export COLLECT_NAMES
  6425. fi
  6426. ;;
  6427. esac
  6428. # Sed substitution that helps us do robust quoting. It backslashifies
  6429. # metacharacters that are still active within double-quoted strings.
  6430. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6431. # Same as above, but do not quote variable references.
  6432. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6433. # Sed substitution to delay expansion of an escaped shell variable in a
  6434. # double_quote_subst'ed string.
  6435. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6436. # Sed substitution to delay expansion of an escaped single quote.
  6437. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6438. # Sed substitution to avoid accidental globbing in evaled expressions
  6439. no_glob_subst='s/\*/\\\*/g'
  6440. # Global variables:
  6441. ofile=libtool
  6442. can_build_shared=yes
  6443. # All known linkers require a `.a' archive for static linking (except MSVC,
  6444. # which needs '.lib').
  6445. libext=a
  6446. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6447. old_CC="$CC"
  6448. old_CFLAGS="$CFLAGS"
  6449. # Set sane defaults for various variables
  6450. test -z "$CC" && CC=cc
  6451. test -z "$LTCC" && LTCC=$CC
  6452. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6453. test -z "$LD" && LD=ld
  6454. test -z "$ac_objext" && ac_objext=o
  6455. for cc_temp in $compiler""; do
  6456. case $cc_temp in
  6457. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6458. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6459. \-*) ;;
  6460. *) break;;
  6461. esac
  6462. done
  6463. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6464. # Only perform the check for file, if the check method requires it
  6465. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6466. case $deplibs_check_method in
  6467. file_magic*)
  6468. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6470. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6471. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6472. $as_echo_n "(cached) " >&6
  6473. else
  6474. case $MAGIC_CMD in
  6475. [\\/*] | ?:[\\/]*)
  6476. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6477. ;;
  6478. *)
  6479. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6480. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6481. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6482. for ac_dir in $ac_dummy; do
  6483. IFS="$lt_save_ifs"
  6484. test -z "$ac_dir" && ac_dir=.
  6485. if test -f $ac_dir/${ac_tool_prefix}file; then
  6486. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6487. if test -n "$file_magic_test_file"; then
  6488. case $deplibs_check_method in
  6489. "file_magic "*)
  6490. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6491. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6492. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6493. $EGREP "$file_magic_regex" > /dev/null; then
  6494. :
  6495. else
  6496. cat <<_LT_EOF 1>&2
  6497. *** Warning: the command libtool uses to detect shared libraries,
  6498. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6499. *** The result is that libtool may fail to recognize shared libraries
  6500. *** as such. This will affect the creation of libtool libraries that
  6501. *** depend on shared libraries, but programs linked with such libtool
  6502. *** libraries will work regardless of this problem. Nevertheless, you
  6503. *** may want to report the problem to your system manager and/or to
  6504. *** bug-libtool@gnu.org
  6505. _LT_EOF
  6506. fi ;;
  6507. esac
  6508. fi
  6509. break
  6510. fi
  6511. done
  6512. IFS="$lt_save_ifs"
  6513. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6514. ;;
  6515. esac
  6516. fi
  6517. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6518. if test -n "$MAGIC_CMD"; then
  6519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6520. $as_echo "$MAGIC_CMD" >&6; }
  6521. else
  6522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6523. $as_echo "no" >&6; }
  6524. fi
  6525. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6526. if test -n "$ac_tool_prefix"; then
  6527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6528. $as_echo_n "checking for file... " >&6; }
  6529. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6530. $as_echo_n "(cached) " >&6
  6531. else
  6532. case $MAGIC_CMD in
  6533. [\\/*] | ?:[\\/]*)
  6534. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6535. ;;
  6536. *)
  6537. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6538. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6539. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6540. for ac_dir in $ac_dummy; do
  6541. IFS="$lt_save_ifs"
  6542. test -z "$ac_dir" && ac_dir=.
  6543. if test -f $ac_dir/file; then
  6544. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6545. if test -n "$file_magic_test_file"; then
  6546. case $deplibs_check_method in
  6547. "file_magic "*)
  6548. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6549. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6550. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6551. $EGREP "$file_magic_regex" > /dev/null; then
  6552. :
  6553. else
  6554. cat <<_LT_EOF 1>&2
  6555. *** Warning: the command libtool uses to detect shared libraries,
  6556. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6557. *** The result is that libtool may fail to recognize shared libraries
  6558. *** as such. This will affect the creation of libtool libraries that
  6559. *** depend on shared libraries, but programs linked with such libtool
  6560. *** libraries will work regardless of this problem. Nevertheless, you
  6561. *** may want to report the problem to your system manager and/or to
  6562. *** bug-libtool@gnu.org
  6563. _LT_EOF
  6564. fi ;;
  6565. esac
  6566. fi
  6567. break
  6568. fi
  6569. done
  6570. IFS="$lt_save_ifs"
  6571. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6572. ;;
  6573. esac
  6574. fi
  6575. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6576. if test -n "$MAGIC_CMD"; then
  6577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6578. $as_echo "$MAGIC_CMD" >&6; }
  6579. else
  6580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6581. $as_echo "no" >&6; }
  6582. fi
  6583. else
  6584. MAGIC_CMD=:
  6585. fi
  6586. fi
  6587. fi
  6588. ;;
  6589. esac
  6590. # Use C for the default configuration in the libtool script
  6591. lt_save_CC="$CC"
  6592. ac_ext=c
  6593. ac_cpp='$CPP $CPPFLAGS'
  6594. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6595. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6596. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6597. # Source file extension for C test sources.
  6598. ac_ext=c
  6599. # Object file extension for compiled C test sources.
  6600. objext=o
  6601. objext=$objext
  6602. # Code to be used in simple compile tests
  6603. lt_simple_compile_test_code="int some_variable = 0;"
  6604. # Code to be used in simple link tests
  6605. lt_simple_link_test_code='int main(){return(0);}'
  6606. # If no C compiler was specified, use CC.
  6607. LTCC=${LTCC-"$CC"}
  6608. # If no C compiler flags were specified, use CFLAGS.
  6609. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6610. # Allow CC to be a program name with arguments.
  6611. compiler=$CC
  6612. # Save the default compiler, since it gets overwritten when the other
  6613. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6614. compiler_DEFAULT=$CC
  6615. # save warnings/boilerplate of simple test code
  6616. ac_outfile=conftest.$ac_objext
  6617. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6618. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6619. _lt_compiler_boilerplate=`cat conftest.err`
  6620. $RM conftest*
  6621. ac_outfile=conftest.$ac_objext
  6622. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6623. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6624. _lt_linker_boilerplate=`cat conftest.err`
  6625. $RM -r conftest*
  6626. if test -n "$compiler"; then
  6627. lt_prog_compiler_no_builtin_flag=
  6628. if test "$GCC" = yes; then
  6629. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6631. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6632. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6633. $as_echo_n "(cached) " >&6
  6634. else
  6635. lt_cv_prog_compiler_rtti_exceptions=no
  6636. ac_outfile=conftest.$ac_objext
  6637. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6638. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6639. # Insert the option either (1) after the last *FLAGS variable, or
  6640. # (2) before a word containing "conftest.", or (3) at the end.
  6641. # Note that $ac_compile itself does not contain backslashes and begins
  6642. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6643. # The option is referenced via a variable to avoid confusing sed.
  6644. lt_compile=`echo "$ac_compile" | $SED \
  6645. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6646. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6647. -e 's:$: $lt_compiler_flag:'`
  6648. (eval echo "\"\$as_me:7631: $lt_compile\"" >&5)
  6649. (eval "$lt_compile" 2>conftest.err)
  6650. ac_status=$?
  6651. cat conftest.err >&5
  6652. echo "$as_me:7635: \$? = $ac_status" >&5
  6653. if (exit $ac_status) && test -s "$ac_outfile"; then
  6654. # The compiler can only warn and ignore the option if not recognized
  6655. # So say no if there are warnings other than the usual output.
  6656. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6657. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6658. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6659. lt_cv_prog_compiler_rtti_exceptions=yes
  6660. fi
  6661. fi
  6662. $RM conftest*
  6663. fi
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6665. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6666. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6667. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6668. else
  6669. :
  6670. fi
  6671. fi
  6672. lt_prog_compiler_wl=
  6673. lt_prog_compiler_pic=
  6674. lt_prog_compiler_static=
  6675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6676. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6677. if test "$GCC" = yes; then
  6678. lt_prog_compiler_wl='-Wl,'
  6679. lt_prog_compiler_static='-static'
  6680. case $host_os in
  6681. aix*)
  6682. # All AIX code is PIC.
  6683. if test "$host_cpu" = ia64; then
  6684. # AIX 5 now supports IA64 processor
  6685. lt_prog_compiler_static='-Bstatic'
  6686. fi
  6687. ;;
  6688. amigaos*)
  6689. case $host_cpu in
  6690. powerpc)
  6691. # see comment about AmigaOS4 .so support
  6692. lt_prog_compiler_pic='-fPIC'
  6693. ;;
  6694. m68k)
  6695. # FIXME: we need at least 68020 code to build shared libraries, but
  6696. # adding the `-m68020' flag to GCC prevents building anything better,
  6697. # like `-m68040'.
  6698. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6699. ;;
  6700. esac
  6701. ;;
  6702. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6703. # PIC is the default for these OSes.
  6704. ;;
  6705. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6706. # This hack is so that the source file can tell whether it is being
  6707. # built for inclusion in a dll (and should export symbols for example).
  6708. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6709. # (--disable-auto-import) libraries
  6710. lt_prog_compiler_pic='-DDLL_EXPORT'
  6711. ;;
  6712. darwin* | rhapsody*)
  6713. # PIC is the default on this platform
  6714. # Common symbols not allowed in MH_DYLIB files
  6715. lt_prog_compiler_pic='-fno-common'
  6716. ;;
  6717. hpux*)
  6718. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6719. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6720. # sets the default TLS model and affects inlining.
  6721. case $host_cpu in
  6722. hppa*64*)
  6723. # +Z the default
  6724. ;;
  6725. *)
  6726. lt_prog_compiler_pic='-fPIC'
  6727. ;;
  6728. esac
  6729. ;;
  6730. interix[3-9]*)
  6731. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6732. # Instead, we relocate shared libraries at runtime.
  6733. ;;
  6734. msdosdjgpp*)
  6735. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6736. # on systems that don't support them.
  6737. lt_prog_compiler_can_build_shared=no
  6738. enable_shared=no
  6739. ;;
  6740. *nto* | *qnx*)
  6741. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6742. # it will coredump.
  6743. lt_prog_compiler_pic='-fPIC -shared'
  6744. ;;
  6745. sysv4*MP*)
  6746. if test -d /usr/nec; then
  6747. lt_prog_compiler_pic=-Kconform_pic
  6748. fi
  6749. ;;
  6750. *)
  6751. lt_prog_compiler_pic='-fPIC'
  6752. ;;
  6753. esac
  6754. else
  6755. # PORTME Check for flag to pass linker flags through the system compiler.
  6756. case $host_os in
  6757. aix*)
  6758. lt_prog_compiler_wl='-Wl,'
  6759. if test "$host_cpu" = ia64; then
  6760. # AIX 5 now supports IA64 processor
  6761. lt_prog_compiler_static='-Bstatic'
  6762. else
  6763. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6764. fi
  6765. ;;
  6766. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6767. # This hack is so that the source file can tell whether it is being
  6768. # built for inclusion in a dll (and should export symbols for example).
  6769. lt_prog_compiler_pic='-DDLL_EXPORT'
  6770. ;;
  6771. hpux9* | hpux10* | hpux11*)
  6772. lt_prog_compiler_wl='-Wl,'
  6773. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6774. # not for PA HP-UX.
  6775. case $host_cpu in
  6776. hppa*64*|ia64*)
  6777. # +Z the default
  6778. ;;
  6779. *)
  6780. lt_prog_compiler_pic='+Z'
  6781. ;;
  6782. esac
  6783. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6784. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6785. ;;
  6786. irix5* | irix6* | nonstopux*)
  6787. lt_prog_compiler_wl='-Wl,'
  6788. # PIC (with -KPIC) is the default.
  6789. lt_prog_compiler_static='-non_shared'
  6790. ;;
  6791. linux* | k*bsd*-gnu)
  6792. case $cc_basename in
  6793. # old Intel for x86_64 which still supported -KPIC.
  6794. ecc*)
  6795. lt_prog_compiler_wl='-Wl,'
  6796. lt_prog_compiler_pic='-KPIC'
  6797. lt_prog_compiler_static='-static'
  6798. ;;
  6799. # icc used to be incompatible with GCC.
  6800. # ICC 10 doesn't accept -KPIC any more.
  6801. icc* | ifort*)
  6802. lt_prog_compiler_wl='-Wl,'
  6803. lt_prog_compiler_pic='-fPIC'
  6804. lt_prog_compiler_static='-static'
  6805. ;;
  6806. # Lahey Fortran 8.1.
  6807. lf95*)
  6808. lt_prog_compiler_wl='-Wl,'
  6809. lt_prog_compiler_pic='--shared'
  6810. lt_prog_compiler_static='--static'
  6811. ;;
  6812. pgcc* | pgf77* | pgf90* | pgf95*)
  6813. # Portland Group compilers (*not* the Pentium gcc compiler,
  6814. # which looks to be a dead project)
  6815. lt_prog_compiler_wl='-Wl,'
  6816. lt_prog_compiler_pic='-fpic'
  6817. lt_prog_compiler_static='-Bstatic'
  6818. ;;
  6819. ccc*)
  6820. lt_prog_compiler_wl='-Wl,'
  6821. # All Alpha code is PIC.
  6822. lt_prog_compiler_static='-non_shared'
  6823. ;;
  6824. xl*)
  6825. # IBM XL C 8.0/Fortran 10.1 on PPC
  6826. lt_prog_compiler_wl='-Wl,'
  6827. lt_prog_compiler_pic='-qpic'
  6828. lt_prog_compiler_static='-qstaticlink'
  6829. ;;
  6830. *)
  6831. case `$CC -V 2>&1 | sed 5q` in
  6832. *Sun\ C*)
  6833. # Sun C 5.9
  6834. lt_prog_compiler_pic='-KPIC'
  6835. lt_prog_compiler_static='-Bstatic'
  6836. lt_prog_compiler_wl='-Wl,'
  6837. ;;
  6838. *Sun\ F*)
  6839. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6840. lt_prog_compiler_pic='-KPIC'
  6841. lt_prog_compiler_static='-Bstatic'
  6842. lt_prog_compiler_wl=''
  6843. ;;
  6844. esac
  6845. ;;
  6846. esac
  6847. ;;
  6848. newsos6)
  6849. lt_prog_compiler_pic='-KPIC'
  6850. lt_prog_compiler_static='-Bstatic'
  6851. ;;
  6852. *nto* | *qnx*)
  6853. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6854. # it will coredump.
  6855. lt_prog_compiler_pic='-fPIC -shared'
  6856. ;;
  6857. osf3* | osf4* | osf5*)
  6858. lt_prog_compiler_wl='-Wl,'
  6859. # All OSF/1 code is PIC.
  6860. lt_prog_compiler_static='-non_shared'
  6861. ;;
  6862. rdos*)
  6863. lt_prog_compiler_static='-non_shared'
  6864. ;;
  6865. solaris*)
  6866. lt_prog_compiler_pic='-KPIC'
  6867. lt_prog_compiler_static='-Bstatic'
  6868. case $cc_basename in
  6869. f77* | f90* | f95*)
  6870. lt_prog_compiler_wl='-Qoption ld ';;
  6871. *)
  6872. lt_prog_compiler_wl='-Wl,';;
  6873. esac
  6874. ;;
  6875. sunos4*)
  6876. lt_prog_compiler_wl='-Qoption ld '
  6877. lt_prog_compiler_pic='-PIC'
  6878. lt_prog_compiler_static='-Bstatic'
  6879. ;;
  6880. sysv4 | sysv4.2uw2* | sysv4.3*)
  6881. lt_prog_compiler_wl='-Wl,'
  6882. lt_prog_compiler_pic='-KPIC'
  6883. lt_prog_compiler_static='-Bstatic'
  6884. ;;
  6885. sysv4*MP*)
  6886. if test -d /usr/nec ;then
  6887. lt_prog_compiler_pic='-Kconform_pic'
  6888. lt_prog_compiler_static='-Bstatic'
  6889. fi
  6890. ;;
  6891. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6892. lt_prog_compiler_wl='-Wl,'
  6893. lt_prog_compiler_pic='-KPIC'
  6894. lt_prog_compiler_static='-Bstatic'
  6895. ;;
  6896. unicos*)
  6897. lt_prog_compiler_wl='-Wl,'
  6898. lt_prog_compiler_can_build_shared=no
  6899. ;;
  6900. uts4*)
  6901. lt_prog_compiler_pic='-pic'
  6902. lt_prog_compiler_static='-Bstatic'
  6903. ;;
  6904. *)
  6905. lt_prog_compiler_can_build_shared=no
  6906. ;;
  6907. esac
  6908. fi
  6909. case $host_os in
  6910. # For platforms which do not support PIC, -DPIC is meaningless:
  6911. *djgpp*)
  6912. lt_prog_compiler_pic=
  6913. ;;
  6914. *)
  6915. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6916. ;;
  6917. esac
  6918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  6919. $as_echo "$lt_prog_compiler_pic" >&6; }
  6920. #
  6921. # Check to make sure the PIC flag actually works.
  6922. #
  6923. if test -n "$lt_prog_compiler_pic"; then
  6924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6925. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6926. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  6927. $as_echo_n "(cached) " >&6
  6928. else
  6929. lt_cv_prog_compiler_pic_works=no
  6930. ac_outfile=conftest.$ac_objext
  6931. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6932. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6933. # Insert the option either (1) after the last *FLAGS variable, or
  6934. # (2) before a word containing "conftest.", or (3) at the end.
  6935. # Note that $ac_compile itself does not contain backslashes and begins
  6936. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6937. # The option is referenced via a variable to avoid confusing sed.
  6938. lt_compile=`echo "$ac_compile" | $SED \
  6939. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6940. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6941. -e 's:$: $lt_compiler_flag:'`
  6942. (eval echo "\"\$as_me:7970: $lt_compile\"" >&5)
  6943. (eval "$lt_compile" 2>conftest.err)
  6944. ac_status=$?
  6945. cat conftest.err >&5
  6946. echo "$as_me:7974: \$? = $ac_status" >&5
  6947. if (exit $ac_status) && test -s "$ac_outfile"; then
  6948. # The compiler can only warn and ignore the option if not recognized
  6949. # So say no if there are warnings other than the usual output.
  6950. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6951. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6952. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6953. lt_cv_prog_compiler_pic_works=yes
  6954. fi
  6955. fi
  6956. $RM conftest*
  6957. fi
  6958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  6959. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  6960. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  6961. case $lt_prog_compiler_pic in
  6962. "" | " "*) ;;
  6963. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6964. esac
  6965. else
  6966. lt_prog_compiler_pic=
  6967. lt_prog_compiler_can_build_shared=no
  6968. fi
  6969. fi
  6970. #
  6971. # Check to make sure the static flag actually works.
  6972. #
  6973. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6975. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  6976. if ${lt_cv_prog_compiler_static_works+:} false; then :
  6977. $as_echo_n "(cached) " >&6
  6978. else
  6979. lt_cv_prog_compiler_static_works=no
  6980. save_LDFLAGS="$LDFLAGS"
  6981. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6982. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6983. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6984. # The linker can only warn and ignore the option if not recognized
  6985. # So say no if there are warnings
  6986. if test -s conftest.err; then
  6987. # Append any errors to the config.log.
  6988. cat conftest.err 1>&5
  6989. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6990. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6991. if diff conftest.exp conftest.er2 >/dev/null; then
  6992. lt_cv_prog_compiler_static_works=yes
  6993. fi
  6994. else
  6995. lt_cv_prog_compiler_static_works=yes
  6996. fi
  6997. fi
  6998. $RM -r conftest*
  6999. LDFLAGS="$save_LDFLAGS"
  7000. fi
  7001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7002. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7003. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7004. :
  7005. else
  7006. lt_prog_compiler_static=
  7007. fi
  7008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7009. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7010. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7011. $as_echo_n "(cached) " >&6
  7012. else
  7013. lt_cv_prog_compiler_c_o=no
  7014. $RM -r conftest 2>/dev/null
  7015. mkdir conftest
  7016. cd conftest
  7017. mkdir out
  7018. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7019. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7020. # Insert the option either (1) after the last *FLAGS variable, or
  7021. # (2) before a word containing "conftest.", or (3) at the end.
  7022. # Note that $ac_compile itself does not contain backslashes and begins
  7023. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7024. lt_compile=`echo "$ac_compile" | $SED \
  7025. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7026. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7027. -e 's:$: $lt_compiler_flag:'`
  7028. (eval echo "\"\$as_me:8075: $lt_compile\"" >&5)
  7029. (eval "$lt_compile" 2>out/conftest.err)
  7030. ac_status=$?
  7031. cat out/conftest.err >&5
  7032. echo "$as_me:8079: \$? = $ac_status" >&5
  7033. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7034. then
  7035. # The compiler can only warn and ignore the option if not recognized
  7036. # So say no if there are warnings
  7037. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7038. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7039. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7040. lt_cv_prog_compiler_c_o=yes
  7041. fi
  7042. fi
  7043. chmod u+w . 2>&5
  7044. $RM conftest*
  7045. # SGI C++ compiler will create directory out/ii_files/ for
  7046. # template instantiation
  7047. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7048. $RM out/* && rmdir out
  7049. cd ..
  7050. $RM -r conftest
  7051. $RM conftest*
  7052. fi
  7053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7054. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7056. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7057. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7058. $as_echo_n "(cached) " >&6
  7059. else
  7060. lt_cv_prog_compiler_c_o=no
  7061. $RM -r conftest 2>/dev/null
  7062. mkdir conftest
  7063. cd conftest
  7064. mkdir out
  7065. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7066. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7067. # Insert the option either (1) after the last *FLAGS variable, or
  7068. # (2) before a word containing "conftest.", or (3) at the end.
  7069. # Note that $ac_compile itself does not contain backslashes and begins
  7070. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7071. lt_compile=`echo "$ac_compile" | $SED \
  7072. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7073. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7074. -e 's:$: $lt_compiler_flag:'`
  7075. (eval echo "\"\$as_me:8130: $lt_compile\"" >&5)
  7076. (eval "$lt_compile" 2>out/conftest.err)
  7077. ac_status=$?
  7078. cat out/conftest.err >&5
  7079. echo "$as_me:8134: \$? = $ac_status" >&5
  7080. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7081. then
  7082. # The compiler can only warn and ignore the option if not recognized
  7083. # So say no if there are warnings
  7084. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7085. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7086. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7087. lt_cv_prog_compiler_c_o=yes
  7088. fi
  7089. fi
  7090. chmod u+w . 2>&5
  7091. $RM conftest*
  7092. # SGI C++ compiler will create directory out/ii_files/ for
  7093. # template instantiation
  7094. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7095. $RM out/* && rmdir out
  7096. cd ..
  7097. $RM -r conftest
  7098. $RM conftest*
  7099. fi
  7100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7101. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7102. hard_links="nottested"
  7103. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7104. # do not overwrite the value of need_locks provided by the user
  7105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7106. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7107. hard_links=yes
  7108. $RM conftest*
  7109. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7110. touch conftest.a
  7111. ln conftest.a conftest.b 2>&5 || hard_links=no
  7112. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7114. $as_echo "$hard_links" >&6; }
  7115. if test "$hard_links" = no; then
  7116. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7117. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7118. need_locks=warn
  7119. fi
  7120. else
  7121. need_locks=no
  7122. fi
  7123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7124. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7125. runpath_var=
  7126. allow_undefined_flag=
  7127. always_export_symbols=no
  7128. archive_cmds=
  7129. archive_expsym_cmds=
  7130. compiler_needs_object=no
  7131. enable_shared_with_static_runtimes=no
  7132. export_dynamic_flag_spec=
  7133. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7134. hardcode_automatic=no
  7135. hardcode_direct=no
  7136. hardcode_direct_absolute=no
  7137. hardcode_libdir_flag_spec=
  7138. hardcode_libdir_flag_spec_ld=
  7139. hardcode_libdir_separator=
  7140. hardcode_minus_L=no
  7141. hardcode_shlibpath_var=unsupported
  7142. inherit_rpath=no
  7143. link_all_deplibs=unknown
  7144. module_cmds=
  7145. module_expsym_cmds=
  7146. old_archive_from_new_cmds=
  7147. old_archive_from_expsyms_cmds=
  7148. thread_safe_flag_spec=
  7149. whole_archive_flag_spec=
  7150. # include_expsyms should be a list of space-separated symbols to be *always*
  7151. # included in the symbol list
  7152. include_expsyms=
  7153. # exclude_expsyms can be an extended regexp of symbols to exclude
  7154. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7155. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7156. # as well as any symbol that contains `d'.
  7157. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7158. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7159. # platforms (ab)use it in PIC code, but their linkers get confused if
  7160. # the symbol is explicitly referenced. Since portable code cannot
  7161. # rely on this symbol name, it's probably fine to never include it in
  7162. # preloaded symbol tables.
  7163. # Exclude shared library initialization/finalization symbols.
  7164. extract_expsyms_cmds=
  7165. case $host_os in
  7166. cygwin* | mingw* | pw32* | cegcc*)
  7167. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7168. # When not using gcc, we currently assume that we are using
  7169. # Microsoft Visual C++.
  7170. if test "$GCC" != yes; then
  7171. with_gnu_ld=no
  7172. fi
  7173. ;;
  7174. interix*)
  7175. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7176. with_gnu_ld=yes
  7177. ;;
  7178. openbsd*)
  7179. with_gnu_ld=no
  7180. ;;
  7181. esac
  7182. ld_shlibs=yes
  7183. if test "$with_gnu_ld" = yes; then
  7184. # If archive_cmds runs LD, not CC, wlarc should be empty
  7185. wlarc='${wl}'
  7186. # Set some defaults for GNU ld with shared library support. These
  7187. # are reset later if shared libraries are not supported. Putting them
  7188. # here allows them to be overridden if necessary.
  7189. runpath_var=LD_RUN_PATH
  7190. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7191. export_dynamic_flag_spec='${wl}--export-dynamic'
  7192. # ancient GNU ld didn't support --whole-archive et. al.
  7193. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7194. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7195. else
  7196. whole_archive_flag_spec=
  7197. fi
  7198. supports_anon_versioning=no
  7199. case `$LD -v 2>&1` in
  7200. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7201. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7202. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7203. *\ 2.11.*) ;; # other 2.11 versions
  7204. *) supports_anon_versioning=yes ;;
  7205. esac
  7206. # See if GNU ld supports shared libraries.
  7207. case $host_os in
  7208. aix[3-9]*)
  7209. # On AIX/PPC, the GNU linker is very broken
  7210. if test "$host_cpu" != ia64; then
  7211. ld_shlibs=no
  7212. cat <<_LT_EOF 1>&2
  7213. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7214. *** to be unable to reliably create shared libraries on AIX.
  7215. *** Therefore, libtool is disabling shared libraries support. If you
  7216. *** really care for shared libraries, you may want to modify your PATH
  7217. *** so that a non-GNU linker is found, and then restart.
  7218. _LT_EOF
  7219. fi
  7220. ;;
  7221. amigaos*)
  7222. case $host_cpu in
  7223. powerpc)
  7224. # see comment about AmigaOS4 .so support
  7225. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7226. archive_expsym_cmds=''
  7227. ;;
  7228. m68k)
  7229. 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)'
  7230. hardcode_libdir_flag_spec='-L$libdir'
  7231. hardcode_minus_L=yes
  7232. ;;
  7233. esac
  7234. ;;
  7235. beos*)
  7236. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7237. allow_undefined_flag=unsupported
  7238. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7239. # support --undefined. This deserves some investigation. FIXME
  7240. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7241. else
  7242. ld_shlibs=no
  7243. fi
  7244. ;;
  7245. cygwin* | mingw* | pw32* | cegcc*)
  7246. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7247. # as there is no search path for DLLs.
  7248. hardcode_libdir_flag_spec='-L$libdir'
  7249. allow_undefined_flag=unsupported
  7250. always_export_symbols=no
  7251. enable_shared_with_static_runtimes=yes
  7252. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7253. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7254. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7255. # If the export-symbols file already is a .def file (1st line
  7256. # is EXPORTS), use it as is; otherwise, prepend...
  7257. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7258. cp $export_symbols $output_objdir/$soname.def;
  7259. else
  7260. echo EXPORTS > $output_objdir/$soname.def;
  7261. cat $export_symbols >> $output_objdir/$soname.def;
  7262. fi~
  7263. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7264. else
  7265. ld_shlibs=no
  7266. fi
  7267. ;;
  7268. interix[3-9]*)
  7269. hardcode_direct=no
  7270. hardcode_shlibpath_var=no
  7271. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7272. export_dynamic_flag_spec='${wl}-E'
  7273. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7274. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7275. # default) and relocated if they conflict, which is a slow very memory
  7276. # consuming and fragmenting process. To avoid this, we pick a random,
  7277. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7278. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7279. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7280. 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'
  7281. ;;
  7282. gnu* | linux* | tpf* | k*bsd*-gnu)
  7283. tmp_diet=no
  7284. if test "$host_os" = linux-dietlibc; then
  7285. case $cc_basename in
  7286. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7287. esac
  7288. fi
  7289. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7290. && test "$tmp_diet" = no
  7291. then
  7292. tmp_addflag=
  7293. tmp_sharedflag='-shared'
  7294. case $cc_basename,$host_cpu in
  7295. pgcc*) # Portland Group C compiler
  7296. 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'
  7297. tmp_addflag=' $pic_flag'
  7298. ;;
  7299. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7300. 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'
  7301. tmp_addflag=' $pic_flag -Mnomain' ;;
  7302. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7303. tmp_addflag=' -i_dynamic' ;;
  7304. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7305. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7306. ifc* | ifort*) # Intel Fortran compiler
  7307. tmp_addflag=' -nofor_main' ;;
  7308. lf95*) # Lahey Fortran 8.1
  7309. whole_archive_flag_spec=
  7310. tmp_sharedflag='--shared' ;;
  7311. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7312. tmp_sharedflag='-qmkshrobj'
  7313. tmp_addflag= ;;
  7314. esac
  7315. case `$CC -V 2>&1 | sed 5q` in
  7316. *Sun\ C*) # Sun C 5.9
  7317. 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'
  7318. compiler_needs_object=yes
  7319. tmp_sharedflag='-G' ;;
  7320. *Sun\ F*) # Sun Fortran 8.3
  7321. tmp_sharedflag='-G' ;;
  7322. esac
  7323. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7324. if test "x$supports_anon_versioning" = xyes; then
  7325. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7326. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7327. echo "local: *; };" >> $output_objdir/$libname.ver~
  7328. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7329. fi
  7330. case $cc_basename in
  7331. xlf*)
  7332. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7333. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7334. hardcode_libdir_flag_spec=
  7335. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7336. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7337. if test "x$supports_anon_versioning" = xyes; then
  7338. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7339. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7340. echo "local: *; };" >> $output_objdir/$libname.ver~
  7341. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7342. fi
  7343. ;;
  7344. esac
  7345. else
  7346. ld_shlibs=no
  7347. fi
  7348. ;;
  7349. netbsd*)
  7350. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7351. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7352. wlarc=
  7353. else
  7354. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7355. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7356. fi
  7357. ;;
  7358. solaris*)
  7359. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7360. ld_shlibs=no
  7361. cat <<_LT_EOF 1>&2
  7362. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7363. *** create shared libraries on Solaris systems. Therefore, libtool
  7364. *** is disabling shared libraries support. We urge you to upgrade GNU
  7365. *** binutils to release 2.9.1 or newer. Another option is to modify
  7366. *** your PATH or compiler configuration so that the native linker is
  7367. *** used, and then restart.
  7368. _LT_EOF
  7369. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7370. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7371. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7372. else
  7373. ld_shlibs=no
  7374. fi
  7375. ;;
  7376. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7377. case `$LD -v 2>&1` in
  7378. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7379. ld_shlibs=no
  7380. cat <<_LT_EOF 1>&2
  7381. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7382. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7383. *** is disabling shared libraries support. We urge you to upgrade GNU
  7384. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7385. *** your PATH or compiler configuration so that the native linker is
  7386. *** used, and then restart.
  7387. _LT_EOF
  7388. ;;
  7389. *)
  7390. # For security reasons, it is highly recommended that you always
  7391. # use absolute paths for naming shared libraries, and exclude the
  7392. # DT_RUNPATH tag from executables and libraries. But doing so
  7393. # requires that you compile everything twice, which is a pain.
  7394. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7395. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7396. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7397. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7398. else
  7399. ld_shlibs=no
  7400. fi
  7401. ;;
  7402. esac
  7403. ;;
  7404. sunos4*)
  7405. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7406. wlarc=
  7407. hardcode_direct=yes
  7408. hardcode_shlibpath_var=no
  7409. ;;
  7410. *)
  7411. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7412. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7413. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7414. else
  7415. ld_shlibs=no
  7416. fi
  7417. ;;
  7418. esac
  7419. if test "$ld_shlibs" = no; then
  7420. runpath_var=
  7421. hardcode_libdir_flag_spec=
  7422. export_dynamic_flag_spec=
  7423. whole_archive_flag_spec=
  7424. fi
  7425. else
  7426. # PORTME fill in a description of your system's linker (not GNU ld)
  7427. case $host_os in
  7428. aix3*)
  7429. allow_undefined_flag=unsupported
  7430. always_export_symbols=yes
  7431. 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'
  7432. # Note: this linker hardcodes the directories in LIBPATH if there
  7433. # are no directories specified by -L.
  7434. hardcode_minus_L=yes
  7435. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7436. # Neither direct hardcoding nor static linking is supported with a
  7437. # broken collect2.
  7438. hardcode_direct=unsupported
  7439. fi
  7440. ;;
  7441. aix[4-9]*)
  7442. if test "$host_cpu" = ia64; then
  7443. # On IA64, the linker does run time linking by default, so we don't
  7444. # have to do anything special.
  7445. aix_use_runtimelinking=no
  7446. exp_sym_flag='-Bexport'
  7447. no_entry_flag=""
  7448. else
  7449. # If we're using GNU nm, then we don't want the "-C" option.
  7450. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7451. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7452. 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'
  7453. else
  7454. 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'
  7455. fi
  7456. aix_use_runtimelinking=no
  7457. # Test if we are trying to use run time linking or normal
  7458. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7459. # need to do runtime linking.
  7460. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7461. for ld_flag in $LDFLAGS; do
  7462. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7463. aix_use_runtimelinking=yes
  7464. break
  7465. fi
  7466. done
  7467. ;;
  7468. esac
  7469. exp_sym_flag='-bexport'
  7470. no_entry_flag='-bnoentry'
  7471. fi
  7472. # When large executables or shared objects are built, AIX ld can
  7473. # have problems creating the table of contents. If linking a library
  7474. # or program results in "error TOC overflow" add -mminimal-toc to
  7475. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7476. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7477. archive_cmds=''
  7478. hardcode_direct=yes
  7479. hardcode_direct_absolute=yes
  7480. hardcode_libdir_separator=':'
  7481. link_all_deplibs=yes
  7482. file_list_spec='${wl}-f,'
  7483. if test "$GCC" = yes; then
  7484. case $host_os in aix4.[012]|aix4.[012].*)
  7485. # We only want to do this on AIX 4.2 and lower, the check
  7486. # below for broken collect2 doesn't work under 4.3+
  7487. collect2name=`${CC} -print-prog-name=collect2`
  7488. if test -f "$collect2name" &&
  7489. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7490. then
  7491. # We have reworked collect2
  7492. :
  7493. else
  7494. # We have old collect2
  7495. hardcode_direct=unsupported
  7496. # It fails to find uninstalled libraries when the uninstalled
  7497. # path is not listed in the libpath. Setting hardcode_minus_L
  7498. # to unsupported forces relinking
  7499. hardcode_minus_L=yes
  7500. hardcode_libdir_flag_spec='-L$libdir'
  7501. hardcode_libdir_separator=
  7502. fi
  7503. ;;
  7504. esac
  7505. shared_flag='-shared'
  7506. if test "$aix_use_runtimelinking" = yes; then
  7507. shared_flag="$shared_flag "'${wl}-G'
  7508. fi
  7509. else
  7510. # not using gcc
  7511. if test "$host_cpu" = ia64; then
  7512. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7513. # chokes on -Wl,-G. The following line is correct:
  7514. shared_flag='-G'
  7515. else
  7516. if test "$aix_use_runtimelinking" = yes; then
  7517. shared_flag='${wl}-G'
  7518. else
  7519. shared_flag='${wl}-bM:SRE'
  7520. fi
  7521. fi
  7522. fi
  7523. export_dynamic_flag_spec='${wl}-bexpall'
  7524. # It seems that -bexpall does not export symbols beginning with
  7525. # underscore (_), so it is better to generate a list of symbols to export.
  7526. always_export_symbols=yes
  7527. if test "$aix_use_runtimelinking" = yes; then
  7528. # Warning - without using the other runtime loading flags (-brtl),
  7529. # -berok will link without error, but may produce a broken library.
  7530. allow_undefined_flag='-berok'
  7531. # Determine the default libpath from the value encoded in an
  7532. # empty executable.
  7533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7534. /* end confdefs.h. */
  7535. int
  7536. main ()
  7537. {
  7538. ;
  7539. return 0;
  7540. }
  7541. _ACEOF
  7542. if ac_fn_c_try_link "$LINENO"; then :
  7543. lt_aix_libpath_sed='
  7544. /Import File Strings/,/^$/ {
  7545. /^0/ {
  7546. s/^0 *\(.*\)$/\1/
  7547. p
  7548. }
  7549. }'
  7550. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7551. # Check for a 64-bit object if we didn't find anything.
  7552. if test -z "$aix_libpath"; then
  7553. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7554. fi
  7555. fi
  7556. rm -f core conftest.err conftest.$ac_objext \
  7557. conftest$ac_exeext conftest.$ac_ext
  7558. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7559. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7560. 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"
  7561. else
  7562. if test "$host_cpu" = ia64; then
  7563. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7564. allow_undefined_flag="-z nodefs"
  7565. 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"
  7566. else
  7567. # Determine the default libpath from the value encoded in an
  7568. # empty executable.
  7569. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7570. /* end confdefs.h. */
  7571. int
  7572. main ()
  7573. {
  7574. ;
  7575. return 0;
  7576. }
  7577. _ACEOF
  7578. if ac_fn_c_try_link "$LINENO"; then :
  7579. lt_aix_libpath_sed='
  7580. /Import File Strings/,/^$/ {
  7581. /^0/ {
  7582. s/^0 *\(.*\)$/\1/
  7583. p
  7584. }
  7585. }'
  7586. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7587. # Check for a 64-bit object if we didn't find anything.
  7588. if test -z "$aix_libpath"; then
  7589. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7590. fi
  7591. fi
  7592. rm -f core conftest.err conftest.$ac_objext \
  7593. conftest$ac_exeext conftest.$ac_ext
  7594. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7595. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7596. # Warning - without using the other run time loading flags,
  7597. # -berok will link without error, but may produce a broken library.
  7598. no_undefined_flag=' ${wl}-bernotok'
  7599. allow_undefined_flag=' ${wl}-berok'
  7600. # Exported symbols can be pulled into shared objects from archives
  7601. whole_archive_flag_spec='$convenience'
  7602. archive_cmds_need_lc=yes
  7603. # This is similar to how AIX traditionally builds its shared libraries.
  7604. 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'
  7605. fi
  7606. fi
  7607. ;;
  7608. amigaos*)
  7609. case $host_cpu in
  7610. powerpc)
  7611. # see comment about AmigaOS4 .so support
  7612. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7613. archive_expsym_cmds=''
  7614. ;;
  7615. m68k)
  7616. 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)'
  7617. hardcode_libdir_flag_spec='-L$libdir'
  7618. hardcode_minus_L=yes
  7619. ;;
  7620. esac
  7621. ;;
  7622. bsdi[45]*)
  7623. export_dynamic_flag_spec=-rdynamic
  7624. ;;
  7625. cygwin* | mingw* | pw32* | cegcc*)
  7626. # When not using gcc, we currently assume that we are using
  7627. # Microsoft Visual C++.
  7628. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7629. # no search path for DLLs.
  7630. hardcode_libdir_flag_spec=' '
  7631. allow_undefined_flag=unsupported
  7632. # Tell ltmain to make .lib files, not .a files.
  7633. libext=lib
  7634. # Tell ltmain to make .dll files, not .so files.
  7635. shrext_cmds=".dll"
  7636. # FIXME: Setting linknames here is a bad hack.
  7637. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7638. # The linker will automatically build a .lib file if we build a DLL.
  7639. old_archive_from_new_cmds='true'
  7640. # FIXME: Should let the user specify the lib program.
  7641. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7642. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7643. enable_shared_with_static_runtimes=yes
  7644. ;;
  7645. darwin* | rhapsody*)
  7646. archive_cmds_need_lc=no
  7647. hardcode_direct=no
  7648. hardcode_automatic=yes
  7649. hardcode_shlibpath_var=unsupported
  7650. whole_archive_flag_spec=''
  7651. link_all_deplibs=yes
  7652. allow_undefined_flag="$_lt_dar_allow_undefined"
  7653. case $cc_basename in
  7654. ifort*) _lt_dar_can_shared=yes ;;
  7655. *) _lt_dar_can_shared=$GCC ;;
  7656. esac
  7657. if test "$_lt_dar_can_shared" = "yes"; then
  7658. output_verbose_link_cmd=echo
  7659. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7660. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7661. 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}"
  7662. 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}"
  7663. else
  7664. ld_shlibs=no
  7665. fi
  7666. ;;
  7667. dgux*)
  7668. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7669. hardcode_libdir_flag_spec='-L$libdir'
  7670. hardcode_shlibpath_var=no
  7671. ;;
  7672. freebsd1*)
  7673. ld_shlibs=no
  7674. ;;
  7675. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7676. # support. Future versions do this automatically, but an explicit c++rt0.o
  7677. # does not break anything, and helps significantly (at the cost of a little
  7678. # extra space).
  7679. freebsd2.2*)
  7680. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7681. hardcode_libdir_flag_spec='-R$libdir'
  7682. hardcode_direct=yes
  7683. hardcode_shlibpath_var=no
  7684. ;;
  7685. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7686. freebsd2*)
  7687. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7688. hardcode_direct=yes
  7689. hardcode_minus_L=yes
  7690. hardcode_shlibpath_var=no
  7691. ;;
  7692. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7693. freebsd* | dragonfly*)
  7694. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7695. hardcode_libdir_flag_spec='-R$libdir'
  7696. hardcode_direct=yes
  7697. hardcode_shlibpath_var=no
  7698. ;;
  7699. hpux9*)
  7700. if test "$GCC" = yes; then
  7701. 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'
  7702. else
  7703. 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'
  7704. fi
  7705. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7706. hardcode_libdir_separator=:
  7707. hardcode_direct=yes
  7708. # hardcode_minus_L: Not really in the search PATH,
  7709. # but as the default location of the library.
  7710. hardcode_minus_L=yes
  7711. export_dynamic_flag_spec='${wl}-E'
  7712. ;;
  7713. hpux10*)
  7714. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7715. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7716. else
  7717. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7718. fi
  7719. if test "$with_gnu_ld" = no; then
  7720. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7721. hardcode_libdir_flag_spec_ld='+b $libdir'
  7722. hardcode_libdir_separator=:
  7723. hardcode_direct=yes
  7724. hardcode_direct_absolute=yes
  7725. export_dynamic_flag_spec='${wl}-E'
  7726. # hardcode_minus_L: Not really in the search PATH,
  7727. # but as the default location of the library.
  7728. hardcode_minus_L=yes
  7729. fi
  7730. ;;
  7731. hpux11*)
  7732. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7733. case $host_cpu in
  7734. hppa*64*)
  7735. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7736. ;;
  7737. ia64*)
  7738. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7739. ;;
  7740. *)
  7741. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7742. ;;
  7743. esac
  7744. else
  7745. case $host_cpu in
  7746. hppa*64*)
  7747. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7748. ;;
  7749. ia64*)
  7750. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7751. ;;
  7752. *)
  7753. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7754. ;;
  7755. esac
  7756. fi
  7757. if test "$with_gnu_ld" = no; then
  7758. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7759. hardcode_libdir_separator=:
  7760. case $host_cpu in
  7761. hppa*64*|ia64*)
  7762. hardcode_direct=no
  7763. hardcode_shlibpath_var=no
  7764. ;;
  7765. *)
  7766. hardcode_direct=yes
  7767. hardcode_direct_absolute=yes
  7768. export_dynamic_flag_spec='${wl}-E'
  7769. # hardcode_minus_L: Not really in the search PATH,
  7770. # but as the default location of the library.
  7771. hardcode_minus_L=yes
  7772. ;;
  7773. esac
  7774. fi
  7775. ;;
  7776. irix5* | irix6* | nonstopux*)
  7777. if test "$GCC" = yes; then
  7778. 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'
  7779. # Try to use the -exported_symbol ld option, if it does not
  7780. # work, assume that -exports_file does not work either and
  7781. # implicitly export all symbols.
  7782. save_LDFLAGS="$LDFLAGS"
  7783. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7784. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7785. /* end confdefs.h. */
  7786. int foo(void) {}
  7787. _ACEOF
  7788. if ac_fn_c_try_link "$LINENO"; then :
  7789. 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'
  7790. fi
  7791. rm -f core conftest.err conftest.$ac_objext \
  7792. conftest$ac_exeext conftest.$ac_ext
  7793. LDFLAGS="$save_LDFLAGS"
  7794. else
  7795. 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'
  7796. 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'
  7797. fi
  7798. archive_cmds_need_lc='no'
  7799. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7800. hardcode_libdir_separator=:
  7801. inherit_rpath=yes
  7802. link_all_deplibs=yes
  7803. ;;
  7804. netbsd*)
  7805. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7806. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7807. else
  7808. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7809. fi
  7810. hardcode_libdir_flag_spec='-R$libdir'
  7811. hardcode_direct=yes
  7812. hardcode_shlibpath_var=no
  7813. ;;
  7814. newsos6)
  7815. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7816. hardcode_direct=yes
  7817. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7818. hardcode_libdir_separator=:
  7819. hardcode_shlibpath_var=no
  7820. ;;
  7821. *nto* | *qnx*)
  7822. ;;
  7823. openbsd*)
  7824. if test -f /usr/libexec/ld.so; then
  7825. hardcode_direct=yes
  7826. hardcode_shlibpath_var=no
  7827. hardcode_direct_absolute=yes
  7828. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7829. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7830. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7831. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7832. export_dynamic_flag_spec='${wl}-E'
  7833. else
  7834. case $host_os in
  7835. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7836. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7837. hardcode_libdir_flag_spec='-R$libdir'
  7838. ;;
  7839. *)
  7840. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7841. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7842. ;;
  7843. esac
  7844. fi
  7845. else
  7846. ld_shlibs=no
  7847. fi
  7848. ;;
  7849. os2*)
  7850. hardcode_libdir_flag_spec='-L$libdir'
  7851. hardcode_minus_L=yes
  7852. allow_undefined_flag=unsupported
  7853. 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'
  7854. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7855. ;;
  7856. osf3*)
  7857. if test "$GCC" = yes; then
  7858. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7859. 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'
  7860. else
  7861. allow_undefined_flag=' -expect_unresolved \*'
  7862. 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'
  7863. fi
  7864. archive_cmds_need_lc='no'
  7865. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7866. hardcode_libdir_separator=:
  7867. ;;
  7868. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7869. if test "$GCC" = yes; then
  7870. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7871. 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'
  7872. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7873. else
  7874. allow_undefined_flag=' -expect_unresolved \*'
  7875. 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'
  7876. 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~
  7877. $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'
  7878. # Both c and cxx compiler support -rpath directly
  7879. hardcode_libdir_flag_spec='-rpath $libdir'
  7880. fi
  7881. archive_cmds_need_lc='no'
  7882. hardcode_libdir_separator=:
  7883. ;;
  7884. solaris*)
  7885. no_undefined_flag=' -z defs'
  7886. if test "$GCC" = yes; then
  7887. wlarc='${wl}'
  7888. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7889. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7890. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7891. else
  7892. case `$CC -V 2>&1` in
  7893. *"Compilers 5.0"*)
  7894. wlarc=''
  7895. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7896. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7897. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7898. ;;
  7899. *)
  7900. wlarc='${wl}'
  7901. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7902. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7903. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7904. ;;
  7905. esac
  7906. fi
  7907. hardcode_libdir_flag_spec='-R$libdir'
  7908. hardcode_shlibpath_var=no
  7909. case $host_os in
  7910. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7911. *)
  7912. # The compiler driver will combine and reorder linker options,
  7913. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7914. # but is careful enough not to reorder.
  7915. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7916. if test "$GCC" = yes; then
  7917. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7918. else
  7919. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7920. fi
  7921. ;;
  7922. esac
  7923. link_all_deplibs=yes
  7924. ;;
  7925. sunos4*)
  7926. if test "x$host_vendor" = xsequent; then
  7927. # Use $CC to link under sequent, because it throws in some extra .o
  7928. # files that make .init and .fini sections work.
  7929. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7930. else
  7931. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7932. fi
  7933. hardcode_libdir_flag_spec='-L$libdir'
  7934. hardcode_direct=yes
  7935. hardcode_minus_L=yes
  7936. hardcode_shlibpath_var=no
  7937. ;;
  7938. sysv4)
  7939. case $host_vendor in
  7940. sni)
  7941. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7942. hardcode_direct=yes # is this really true???
  7943. ;;
  7944. siemens)
  7945. ## LD is ld it makes a PLAMLIB
  7946. ## CC just makes a GrossModule.
  7947. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7948. reload_cmds='$CC -r -o $output$reload_objs'
  7949. hardcode_direct=no
  7950. ;;
  7951. motorola)
  7952. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7953. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7954. ;;
  7955. esac
  7956. runpath_var='LD_RUN_PATH'
  7957. hardcode_shlibpath_var=no
  7958. ;;
  7959. sysv4.3*)
  7960. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7961. hardcode_shlibpath_var=no
  7962. export_dynamic_flag_spec='-Bexport'
  7963. ;;
  7964. sysv4*MP*)
  7965. if test -d /usr/nec; then
  7966. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7967. hardcode_shlibpath_var=no
  7968. runpath_var=LD_RUN_PATH
  7969. hardcode_runpath_var=yes
  7970. ld_shlibs=yes
  7971. fi
  7972. ;;
  7973. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7974. no_undefined_flag='${wl}-z,text'
  7975. archive_cmds_need_lc=no
  7976. hardcode_shlibpath_var=no
  7977. runpath_var='LD_RUN_PATH'
  7978. if test "$GCC" = yes; then
  7979. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7980. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7981. else
  7982. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7983. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7984. fi
  7985. ;;
  7986. sysv5* | sco3.2v5* | sco5v6*)
  7987. # Note: We can NOT use -z defs as we might desire, because we do not
  7988. # link with -lc, and that would cause any symbols used from libc to
  7989. # always be unresolved, which means just about no library would
  7990. # ever link correctly. If we're not using GNU ld we use -z text
  7991. # though, which does catch some bad symbols but isn't as heavy-handed
  7992. # as -z defs.
  7993. no_undefined_flag='${wl}-z,text'
  7994. allow_undefined_flag='${wl}-z,nodefs'
  7995. archive_cmds_need_lc=no
  7996. hardcode_shlibpath_var=no
  7997. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  7998. hardcode_libdir_separator=':'
  7999. link_all_deplibs=yes
  8000. export_dynamic_flag_spec='${wl}-Bexport'
  8001. runpath_var='LD_RUN_PATH'
  8002. if test "$GCC" = yes; then
  8003. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8004. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8005. else
  8006. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8007. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8008. fi
  8009. ;;
  8010. uts4*)
  8011. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8012. hardcode_libdir_flag_spec='-L$libdir'
  8013. hardcode_shlibpath_var=no
  8014. ;;
  8015. *)
  8016. ld_shlibs=no
  8017. ;;
  8018. esac
  8019. if test x$host_vendor = xsni; then
  8020. case $host in
  8021. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8022. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8023. ;;
  8024. esac
  8025. fi
  8026. fi
  8027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8028. $as_echo "$ld_shlibs" >&6; }
  8029. test "$ld_shlibs" = no && can_build_shared=no
  8030. with_gnu_ld=$with_gnu_ld
  8031. #
  8032. # Do we need to explicitly link libc?
  8033. #
  8034. case "x$archive_cmds_need_lc" in
  8035. x|xyes)
  8036. # Assume -lc should be added
  8037. archive_cmds_need_lc=yes
  8038. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8039. case $archive_cmds in
  8040. *'~'*)
  8041. # FIXME: we may have to deal with multi-command sequences.
  8042. ;;
  8043. '$CC '*)
  8044. # Test whether the compiler implicitly links with -lc since on some
  8045. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8046. # to ld, don't add -lc before -lgcc.
  8047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8048. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8049. $RM conftest*
  8050. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8051. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8052. (eval $ac_compile) 2>&5
  8053. ac_status=$?
  8054. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8055. test $ac_status = 0; } 2>conftest.err; then
  8056. soname=conftest
  8057. lib=conftest
  8058. libobjs=conftest.$ac_objext
  8059. deplibs=
  8060. wl=$lt_prog_compiler_wl
  8061. pic_flag=$lt_prog_compiler_pic
  8062. compiler_flags=-v
  8063. linker_flags=-v
  8064. verstring=
  8065. output_objdir=.
  8066. libname=conftest
  8067. lt_save_allow_undefined_flag=$allow_undefined_flag
  8068. allow_undefined_flag=
  8069. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8070. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8071. ac_status=$?
  8072. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8073. test $ac_status = 0; }
  8074. then
  8075. archive_cmds_need_lc=no
  8076. else
  8077. archive_cmds_need_lc=yes
  8078. fi
  8079. allow_undefined_flag=$lt_save_allow_undefined_flag
  8080. else
  8081. cat conftest.err 1>&5
  8082. fi
  8083. $RM conftest*
  8084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  8085. $as_echo "$archive_cmds_need_lc" >&6; }
  8086. ;;
  8087. esac
  8088. fi
  8089. ;;
  8090. esac
  8091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8092. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8093. if test "$GCC" = yes; then
  8094. case $host_os in
  8095. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8096. *) lt_awk_arg="/^libraries:/" ;;
  8097. esac
  8098. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8099. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8100. # if the path contains ";" then we assume it to be the separator
  8101. # otherwise default to the standard path separator (i.e. ":") - it is
  8102. # assumed that no part of a normal pathname contains ";" but that should
  8103. # okay in the real world where ";" in dirpaths is itself problematic.
  8104. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8105. else
  8106. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8107. fi
  8108. # Ok, now we have the path, separated by spaces, we can step through it
  8109. # and add multilib dir if necessary.
  8110. lt_tmp_lt_search_path_spec=
  8111. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8112. for lt_sys_path in $lt_search_path_spec; do
  8113. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8114. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8115. else
  8116. test -d "$lt_sys_path" && \
  8117. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8118. fi
  8119. done
  8120. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8121. BEGIN {RS=" "; FS="/|\n";} {
  8122. lt_foo="";
  8123. lt_count=0;
  8124. for (lt_i = NF; lt_i > 0; lt_i--) {
  8125. if ($lt_i != "" && $lt_i != ".") {
  8126. if ($lt_i == "..") {
  8127. lt_count++;
  8128. } else {
  8129. if (lt_count == 0) {
  8130. lt_foo="/" $lt_i lt_foo;
  8131. } else {
  8132. lt_count--;
  8133. }
  8134. }
  8135. }
  8136. }
  8137. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8138. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8139. }'`
  8140. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8141. else
  8142. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8143. fi
  8144. library_names_spec=
  8145. libname_spec='lib$name'
  8146. soname_spec=
  8147. shrext_cmds=".so"
  8148. postinstall_cmds=
  8149. postuninstall_cmds=
  8150. finish_cmds=
  8151. finish_eval=
  8152. shlibpath_var=
  8153. shlibpath_overrides_runpath=unknown
  8154. version_type=none
  8155. dynamic_linker="$host_os ld.so"
  8156. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8157. need_lib_prefix=unknown
  8158. hardcode_into_libs=no
  8159. # when you set need_version to no, make sure it does not cause -set_version
  8160. # flags to be left without arguments
  8161. need_version=unknown
  8162. case $host_os in
  8163. aix3*)
  8164. version_type=linux
  8165. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8166. shlibpath_var=LIBPATH
  8167. # AIX 3 has no versioning support, so we append a major version to the name.
  8168. soname_spec='${libname}${release}${shared_ext}$major'
  8169. ;;
  8170. aix[4-9]*)
  8171. version_type=linux
  8172. need_lib_prefix=no
  8173. need_version=no
  8174. hardcode_into_libs=yes
  8175. if test "$host_cpu" = ia64; then
  8176. # AIX 5 supports IA64
  8177. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8178. shlibpath_var=LD_LIBRARY_PATH
  8179. else
  8180. # With GCC up to 2.95.x, collect2 would create an import file
  8181. # for dependence libraries. The import file would start with
  8182. # the line `#! .'. This would cause the generated library to
  8183. # depend on `.', always an invalid library. This was fixed in
  8184. # development snapshots of GCC prior to 3.0.
  8185. case $host_os in
  8186. aix4 | aix4.[01] | aix4.[01].*)
  8187. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8188. echo ' yes '
  8189. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8190. :
  8191. else
  8192. can_build_shared=no
  8193. fi
  8194. ;;
  8195. esac
  8196. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8197. # soname into executable. Probably we can add versioning support to
  8198. # collect2, so additional links can be useful in future.
  8199. if test "$aix_use_runtimelinking" = yes; then
  8200. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8201. # instead of lib<name>.a to let people know that these are not
  8202. # typical AIX shared libraries.
  8203. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8204. else
  8205. # We preserve .a as extension for shared libraries through AIX4.2
  8206. # and later when we are not doing run time linking.
  8207. library_names_spec='${libname}${release}.a $libname.a'
  8208. soname_spec='${libname}${release}${shared_ext}$major'
  8209. fi
  8210. shlibpath_var=LIBPATH
  8211. fi
  8212. ;;
  8213. amigaos*)
  8214. case $host_cpu in
  8215. powerpc)
  8216. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8217. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8218. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8219. ;;
  8220. m68k)
  8221. library_names_spec='$libname.ixlibrary $libname.a'
  8222. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8223. 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'
  8224. ;;
  8225. esac
  8226. ;;
  8227. beos*)
  8228. library_names_spec='${libname}${shared_ext}'
  8229. dynamic_linker="$host_os ld.so"
  8230. shlibpath_var=LIBRARY_PATH
  8231. ;;
  8232. bsdi[45]*)
  8233. version_type=linux
  8234. need_version=no
  8235. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8236. soname_spec='${libname}${release}${shared_ext}$major'
  8237. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8238. shlibpath_var=LD_LIBRARY_PATH
  8239. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8240. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8241. # the default ld.so.conf also contains /usr/contrib/lib and
  8242. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8243. # libtool to hard-code these into programs
  8244. ;;
  8245. cygwin* | mingw* | pw32* | cegcc*)
  8246. version_type=windows
  8247. shrext_cmds=".dll"
  8248. need_version=no
  8249. need_lib_prefix=no
  8250. case $GCC,$host_os in
  8251. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8252. library_names_spec='$libname.dll.a'
  8253. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8254. postinstall_cmds='base_file=`basename \${file}`~
  8255. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8256. dldir=$destdir/`dirname \$dlpath`~
  8257. test -d \$dldir || mkdir -p \$dldir~
  8258. $install_prog $dir/$dlname \$dldir/$dlname~
  8259. chmod a+x \$dldir/$dlname~
  8260. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8261. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8262. fi'
  8263. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8264. dlpath=$dir/\$dldll~
  8265. $RM \$dlpath'
  8266. shlibpath_overrides_runpath=yes
  8267. case $host_os in
  8268. cygwin*)
  8269. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8270. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8271. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8272. ;;
  8273. mingw* | cegcc*)
  8274. # MinGW DLLs use traditional 'lib' prefix
  8275. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8276. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8277. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8278. # It is most probably a Windows format PATH printed by
  8279. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8280. # path with ; separators, and with drive letters. We can handle the
  8281. # drive letters (cygwin fileutils understands them), so leave them,
  8282. # especially as we might pass files found there to a mingw objdump,
  8283. # which wouldn't understand a cygwinified path. Ahh.
  8284. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8285. else
  8286. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8287. fi
  8288. ;;
  8289. pw32*)
  8290. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8291. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8292. ;;
  8293. esac
  8294. ;;
  8295. *)
  8296. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8297. ;;
  8298. esac
  8299. dynamic_linker='Win32 ld.exe'
  8300. # FIXME: first we should search . and the directory the executable is in
  8301. shlibpath_var=PATH
  8302. ;;
  8303. darwin* | rhapsody*)
  8304. dynamic_linker="$host_os dyld"
  8305. version_type=darwin
  8306. need_lib_prefix=no
  8307. need_version=no
  8308. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8309. soname_spec='${libname}${release}${major}$shared_ext'
  8310. shlibpath_overrides_runpath=yes
  8311. shlibpath_var=DYLD_LIBRARY_PATH
  8312. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8313. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8314. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8315. ;;
  8316. dgux*)
  8317. version_type=linux
  8318. need_lib_prefix=no
  8319. need_version=no
  8320. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8321. soname_spec='${libname}${release}${shared_ext}$major'
  8322. shlibpath_var=LD_LIBRARY_PATH
  8323. ;;
  8324. freebsd1*)
  8325. dynamic_linker=no
  8326. ;;
  8327. freebsd* | dragonfly*)
  8328. # DragonFly does not have aout. When/if they implement a new
  8329. # versioning mechanism, adjust this.
  8330. if test -x /usr/bin/objformat; then
  8331. objformat=`/usr/bin/objformat`
  8332. else
  8333. case $host_os in
  8334. freebsd[123]*) objformat=aout ;;
  8335. *) objformat=elf ;;
  8336. esac
  8337. fi
  8338. version_type=freebsd-$objformat
  8339. case $version_type in
  8340. freebsd-elf*)
  8341. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8342. need_version=no
  8343. need_lib_prefix=no
  8344. ;;
  8345. freebsd-*)
  8346. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8347. need_version=yes
  8348. ;;
  8349. esac
  8350. shlibpath_var=LD_LIBRARY_PATH
  8351. case $host_os in
  8352. freebsd2*)
  8353. shlibpath_overrides_runpath=yes
  8354. ;;
  8355. freebsd3.[01]* | freebsdelf3.[01]*)
  8356. shlibpath_overrides_runpath=yes
  8357. hardcode_into_libs=yes
  8358. ;;
  8359. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8360. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8361. shlibpath_overrides_runpath=no
  8362. hardcode_into_libs=yes
  8363. ;;
  8364. *) # from 4.6 on, and DragonFly
  8365. shlibpath_overrides_runpath=yes
  8366. hardcode_into_libs=yes
  8367. ;;
  8368. esac
  8369. ;;
  8370. gnu*)
  8371. version_type=linux
  8372. need_lib_prefix=no
  8373. need_version=no
  8374. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8375. soname_spec='${libname}${release}${shared_ext}$major'
  8376. shlibpath_var=LD_LIBRARY_PATH
  8377. hardcode_into_libs=yes
  8378. ;;
  8379. hpux9* | hpux10* | hpux11*)
  8380. # Give a soname corresponding to the major version so that dld.sl refuses to
  8381. # link against other versions.
  8382. version_type=sunos
  8383. need_lib_prefix=no
  8384. need_version=no
  8385. case $host_cpu in
  8386. ia64*)
  8387. shrext_cmds='.so'
  8388. hardcode_into_libs=yes
  8389. dynamic_linker="$host_os dld.so"
  8390. shlibpath_var=LD_LIBRARY_PATH
  8391. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8392. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8393. soname_spec='${libname}${release}${shared_ext}$major'
  8394. if test "X$HPUX_IA64_MODE" = X32; then
  8395. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8396. else
  8397. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8398. fi
  8399. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8400. ;;
  8401. hppa*64*)
  8402. shrext_cmds='.sl'
  8403. hardcode_into_libs=yes
  8404. dynamic_linker="$host_os dld.sl"
  8405. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8406. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8407. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8408. soname_spec='${libname}${release}${shared_ext}$major'
  8409. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8410. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8411. ;;
  8412. *)
  8413. shrext_cmds='.sl'
  8414. dynamic_linker="$host_os dld.sl"
  8415. shlibpath_var=SHLIB_PATH
  8416. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8417. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8418. soname_spec='${libname}${release}${shared_ext}$major'
  8419. ;;
  8420. esac
  8421. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8422. postinstall_cmds='chmod 555 $lib'
  8423. ;;
  8424. interix[3-9]*)
  8425. version_type=linux
  8426. need_lib_prefix=no
  8427. need_version=no
  8428. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8429. soname_spec='${libname}${release}${shared_ext}$major'
  8430. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8431. shlibpath_var=LD_LIBRARY_PATH
  8432. shlibpath_overrides_runpath=no
  8433. hardcode_into_libs=yes
  8434. ;;
  8435. irix5* | irix6* | nonstopux*)
  8436. case $host_os in
  8437. nonstopux*) version_type=nonstopux ;;
  8438. *)
  8439. if test "$lt_cv_prog_gnu_ld" = yes; then
  8440. version_type=linux
  8441. else
  8442. version_type=irix
  8443. fi ;;
  8444. esac
  8445. need_lib_prefix=no
  8446. need_version=no
  8447. soname_spec='${libname}${release}${shared_ext}$major'
  8448. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8449. case $host_os in
  8450. irix5* | nonstopux*)
  8451. libsuff= shlibsuff=
  8452. ;;
  8453. *)
  8454. case $LD in # libtool.m4 will add one of these switches to LD
  8455. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8456. libsuff= shlibsuff= libmagic=32-bit;;
  8457. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8458. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8459. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8460. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8461. *) libsuff= shlibsuff= libmagic=never-match;;
  8462. esac
  8463. ;;
  8464. esac
  8465. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8466. shlibpath_overrides_runpath=no
  8467. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8468. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8469. hardcode_into_libs=yes
  8470. ;;
  8471. # No shared lib support for Linux oldld, aout, or coff.
  8472. linux*oldld* | linux*aout* | linux*coff*)
  8473. dynamic_linker=no
  8474. ;;
  8475. # This must be Linux ELF.
  8476. linux* | k*bsd*-gnu)
  8477. version_type=linux
  8478. need_lib_prefix=no
  8479. need_version=no
  8480. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8481. soname_spec='${libname}${release}${shared_ext}$major'
  8482. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8483. shlibpath_var=LD_LIBRARY_PATH
  8484. shlibpath_overrides_runpath=no
  8485. # Some binutils ld are patched to set DT_RUNPATH
  8486. save_LDFLAGS=$LDFLAGS
  8487. save_libdir=$libdir
  8488. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8489. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8490. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8491. /* end confdefs.h. */
  8492. int
  8493. main ()
  8494. {
  8495. ;
  8496. return 0;
  8497. }
  8498. _ACEOF
  8499. if ac_fn_c_try_link "$LINENO"; then :
  8500. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8501. shlibpath_overrides_runpath=yes
  8502. fi
  8503. fi
  8504. rm -f core conftest.err conftest.$ac_objext \
  8505. conftest$ac_exeext conftest.$ac_ext
  8506. LDFLAGS=$save_LDFLAGS
  8507. libdir=$save_libdir
  8508. # This implies no fast_install, which is unacceptable.
  8509. # Some rework will be needed to allow for fast_install
  8510. # before this can be enabled.
  8511. hardcode_into_libs=yes
  8512. # Append ld.so.conf contents to the search path
  8513. if test -f /etc/ld.so.conf; then
  8514. 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' ' '`
  8515. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8516. fi
  8517. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8518. # powerpc, because MkLinux only supported shared libraries with the
  8519. # GNU dynamic linker. Since this was broken with cross compilers,
  8520. # most powerpc-linux boxes support dynamic linking these days and
  8521. # people can always --disable-shared, the test was removed, and we
  8522. # assume the GNU/Linux dynamic linker is in use.
  8523. dynamic_linker='GNU/Linux ld.so'
  8524. ;;
  8525. netbsd*)
  8526. version_type=sunos
  8527. need_lib_prefix=no
  8528. need_version=no
  8529. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8530. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8531. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8532. dynamic_linker='NetBSD (a.out) ld.so'
  8533. else
  8534. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8535. soname_spec='${libname}${release}${shared_ext}$major'
  8536. dynamic_linker='NetBSD ld.elf_so'
  8537. fi
  8538. shlibpath_var=LD_LIBRARY_PATH
  8539. shlibpath_overrides_runpath=yes
  8540. hardcode_into_libs=yes
  8541. ;;
  8542. newsos6)
  8543. version_type=linux
  8544. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8545. shlibpath_var=LD_LIBRARY_PATH
  8546. shlibpath_overrides_runpath=yes
  8547. ;;
  8548. *nto* | *qnx*)
  8549. version_type=qnx
  8550. need_lib_prefix=no
  8551. need_version=no
  8552. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8553. soname_spec='${libname}${release}${shared_ext}$major'
  8554. shlibpath_var=LD_LIBRARY_PATH
  8555. shlibpath_overrides_runpath=no
  8556. hardcode_into_libs=yes
  8557. dynamic_linker='ldqnx.so'
  8558. ;;
  8559. openbsd*)
  8560. version_type=sunos
  8561. sys_lib_dlsearch_path_spec="/usr/lib"
  8562. need_lib_prefix=no
  8563. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8564. case $host_os in
  8565. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8566. *) need_version=no ;;
  8567. esac
  8568. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8569. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8570. shlibpath_var=LD_LIBRARY_PATH
  8571. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8572. case $host_os in
  8573. openbsd2.[89] | openbsd2.[89].*)
  8574. shlibpath_overrides_runpath=no
  8575. ;;
  8576. *)
  8577. shlibpath_overrides_runpath=yes
  8578. ;;
  8579. esac
  8580. else
  8581. shlibpath_overrides_runpath=yes
  8582. fi
  8583. ;;
  8584. os2*)
  8585. libname_spec='$name'
  8586. shrext_cmds=".dll"
  8587. need_lib_prefix=no
  8588. library_names_spec='$libname${shared_ext} $libname.a'
  8589. dynamic_linker='OS/2 ld.exe'
  8590. shlibpath_var=LIBPATH
  8591. ;;
  8592. osf3* | osf4* | osf5*)
  8593. version_type=osf
  8594. need_lib_prefix=no
  8595. need_version=no
  8596. soname_spec='${libname}${release}${shared_ext}$major'
  8597. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8598. shlibpath_var=LD_LIBRARY_PATH
  8599. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8600. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8601. ;;
  8602. rdos*)
  8603. dynamic_linker=no
  8604. ;;
  8605. solaris*)
  8606. version_type=linux
  8607. need_lib_prefix=no
  8608. need_version=no
  8609. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8610. soname_spec='${libname}${release}${shared_ext}$major'
  8611. shlibpath_var=LD_LIBRARY_PATH
  8612. shlibpath_overrides_runpath=yes
  8613. hardcode_into_libs=yes
  8614. # ldd complains unless libraries are executable
  8615. postinstall_cmds='chmod +x $lib'
  8616. ;;
  8617. sunos4*)
  8618. version_type=sunos
  8619. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8620. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8621. shlibpath_var=LD_LIBRARY_PATH
  8622. shlibpath_overrides_runpath=yes
  8623. if test "$with_gnu_ld" = yes; then
  8624. need_lib_prefix=no
  8625. fi
  8626. need_version=yes
  8627. ;;
  8628. sysv4 | sysv4.3*)
  8629. version_type=linux
  8630. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8631. soname_spec='${libname}${release}${shared_ext}$major'
  8632. shlibpath_var=LD_LIBRARY_PATH
  8633. case $host_vendor in
  8634. sni)
  8635. shlibpath_overrides_runpath=no
  8636. need_lib_prefix=no
  8637. runpath_var=LD_RUN_PATH
  8638. ;;
  8639. siemens)
  8640. need_lib_prefix=no
  8641. ;;
  8642. motorola)
  8643. need_lib_prefix=no
  8644. need_version=no
  8645. shlibpath_overrides_runpath=no
  8646. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8647. ;;
  8648. esac
  8649. ;;
  8650. sysv4*MP*)
  8651. if test -d /usr/nec ;then
  8652. version_type=linux
  8653. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8654. soname_spec='$libname${shared_ext}.$major'
  8655. shlibpath_var=LD_LIBRARY_PATH
  8656. fi
  8657. ;;
  8658. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8659. version_type=freebsd-elf
  8660. need_lib_prefix=no
  8661. need_version=no
  8662. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8663. soname_spec='${libname}${release}${shared_ext}$major'
  8664. shlibpath_var=LD_LIBRARY_PATH
  8665. shlibpath_overrides_runpath=yes
  8666. hardcode_into_libs=yes
  8667. if test "$with_gnu_ld" = yes; then
  8668. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8669. else
  8670. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8671. case $host_os in
  8672. sco3.2v5*)
  8673. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8674. ;;
  8675. esac
  8676. fi
  8677. sys_lib_dlsearch_path_spec='/usr/lib'
  8678. ;;
  8679. tpf*)
  8680. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8681. version_type=linux
  8682. need_lib_prefix=no
  8683. need_version=no
  8684. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8685. shlibpath_var=LD_LIBRARY_PATH
  8686. shlibpath_overrides_runpath=no
  8687. hardcode_into_libs=yes
  8688. ;;
  8689. uts4*)
  8690. version_type=linux
  8691. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8692. soname_spec='${libname}${release}${shared_ext}$major'
  8693. shlibpath_var=LD_LIBRARY_PATH
  8694. ;;
  8695. *)
  8696. dynamic_linker=no
  8697. ;;
  8698. esac
  8699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8700. $as_echo "$dynamic_linker" >&6; }
  8701. test "$dynamic_linker" = no && can_build_shared=no
  8702. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8703. if test "$GCC" = yes; then
  8704. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8705. fi
  8706. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8707. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8708. fi
  8709. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8710. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8711. fi
  8712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8713. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8714. hardcode_action=
  8715. if test -n "$hardcode_libdir_flag_spec" ||
  8716. test -n "$runpath_var" ||
  8717. test "X$hardcode_automatic" = "Xyes" ; then
  8718. # We can hardcode non-existent directories.
  8719. if test "$hardcode_direct" != no &&
  8720. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8721. # have to relink, otherwise we might link with an installed library
  8722. # when we should be linking with a yet-to-be-installed one
  8723. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8724. test "$hardcode_minus_L" != no; then
  8725. # Linking always hardcodes the temporary library directory.
  8726. hardcode_action=relink
  8727. else
  8728. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8729. hardcode_action=immediate
  8730. fi
  8731. else
  8732. # We cannot hardcode anything, or else we can only hardcode existing
  8733. # directories.
  8734. hardcode_action=unsupported
  8735. fi
  8736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8737. $as_echo "$hardcode_action" >&6; }
  8738. if test "$hardcode_action" = relink ||
  8739. test "$inherit_rpath" = yes; then
  8740. # Fast installation is not supported
  8741. enable_fast_install=no
  8742. elif test "$shlibpath_overrides_runpath" = yes ||
  8743. test "$enable_shared" = no; then
  8744. # Fast installation is not necessary
  8745. enable_fast_install=needless
  8746. fi
  8747. if test "x$enable_dlopen" != xyes; then
  8748. enable_dlopen=unknown
  8749. enable_dlopen_self=unknown
  8750. enable_dlopen_self_static=unknown
  8751. else
  8752. lt_cv_dlopen=no
  8753. lt_cv_dlopen_libs=
  8754. case $host_os in
  8755. beos*)
  8756. lt_cv_dlopen="load_add_on"
  8757. lt_cv_dlopen_libs=
  8758. lt_cv_dlopen_self=yes
  8759. ;;
  8760. mingw* | pw32* | cegcc*)
  8761. lt_cv_dlopen="LoadLibrary"
  8762. lt_cv_dlopen_libs=
  8763. ;;
  8764. cygwin*)
  8765. lt_cv_dlopen="dlopen"
  8766. lt_cv_dlopen_libs=
  8767. ;;
  8768. darwin*)
  8769. # if libdl is installed we need to link against it
  8770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8771. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8772. if ${ac_cv_lib_dl_dlopen+:} false; then :
  8773. $as_echo_n "(cached) " >&6
  8774. else
  8775. ac_check_lib_save_LIBS=$LIBS
  8776. LIBS="-ldl $LIBS"
  8777. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8778. /* end confdefs.h. */
  8779. /* Override any GCC internal prototype to avoid an error.
  8780. Use char because int might match the return type of a GCC
  8781. builtin and then its argument prototype would still apply. */
  8782. #ifdef __cplusplus
  8783. extern "C"
  8784. #endif
  8785. char dlopen ();
  8786. int
  8787. main ()
  8788. {
  8789. return dlopen ();
  8790. ;
  8791. return 0;
  8792. }
  8793. _ACEOF
  8794. if ac_fn_c_try_link "$LINENO"; then :
  8795. ac_cv_lib_dl_dlopen=yes
  8796. else
  8797. ac_cv_lib_dl_dlopen=no
  8798. fi
  8799. rm -f core conftest.err conftest.$ac_objext \
  8800. conftest$ac_exeext conftest.$ac_ext
  8801. LIBS=$ac_check_lib_save_LIBS
  8802. fi
  8803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8804. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8805. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  8806. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8807. else
  8808. lt_cv_dlopen="dyld"
  8809. lt_cv_dlopen_libs=
  8810. lt_cv_dlopen_self=yes
  8811. fi
  8812. ;;
  8813. *)
  8814. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  8815. if test "x$ac_cv_func_shl_load" = xyes; then :
  8816. lt_cv_dlopen="shl_load"
  8817. else
  8818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  8819. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8820. if ${ac_cv_lib_dld_shl_load+:} false; then :
  8821. $as_echo_n "(cached) " >&6
  8822. else
  8823. ac_check_lib_save_LIBS=$LIBS
  8824. LIBS="-ldld $LIBS"
  8825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8826. /* end confdefs.h. */
  8827. /* Override any GCC internal prototype to avoid an error.
  8828. Use char because int might match the return type of a GCC
  8829. builtin and then its argument prototype would still apply. */
  8830. #ifdef __cplusplus
  8831. extern "C"
  8832. #endif
  8833. char shl_load ();
  8834. int
  8835. main ()
  8836. {
  8837. return shl_load ();
  8838. ;
  8839. return 0;
  8840. }
  8841. _ACEOF
  8842. if ac_fn_c_try_link "$LINENO"; then :
  8843. ac_cv_lib_dld_shl_load=yes
  8844. else
  8845. ac_cv_lib_dld_shl_load=no
  8846. fi
  8847. rm -f core conftest.err conftest.$ac_objext \
  8848. conftest$ac_exeext conftest.$ac_ext
  8849. LIBS=$ac_check_lib_save_LIBS
  8850. fi
  8851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  8852. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  8853. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  8854. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  8855. else
  8856. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  8857. if test "x$ac_cv_func_dlopen" = xyes; then :
  8858. lt_cv_dlopen="dlopen"
  8859. else
  8860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8861. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8862. if ${ac_cv_lib_dl_dlopen+:} false; then :
  8863. $as_echo_n "(cached) " >&6
  8864. else
  8865. ac_check_lib_save_LIBS=$LIBS
  8866. LIBS="-ldl $LIBS"
  8867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8868. /* end confdefs.h. */
  8869. /* Override any GCC internal prototype to avoid an error.
  8870. Use char because int might match the return type of a GCC
  8871. builtin and then its argument prototype would still apply. */
  8872. #ifdef __cplusplus
  8873. extern "C"
  8874. #endif
  8875. char dlopen ();
  8876. int
  8877. main ()
  8878. {
  8879. return dlopen ();
  8880. ;
  8881. return 0;
  8882. }
  8883. _ACEOF
  8884. if ac_fn_c_try_link "$LINENO"; then :
  8885. ac_cv_lib_dl_dlopen=yes
  8886. else
  8887. ac_cv_lib_dl_dlopen=no
  8888. fi
  8889. rm -f core conftest.err conftest.$ac_objext \
  8890. conftest$ac_exeext conftest.$ac_ext
  8891. LIBS=$ac_check_lib_save_LIBS
  8892. fi
  8893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8894. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8895. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  8896. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8897. else
  8898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  8899. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  8900. if ${ac_cv_lib_svld_dlopen+:} false; then :
  8901. $as_echo_n "(cached) " >&6
  8902. else
  8903. ac_check_lib_save_LIBS=$LIBS
  8904. LIBS="-lsvld $LIBS"
  8905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8906. /* end confdefs.h. */
  8907. /* Override any GCC internal prototype to avoid an error.
  8908. Use char because int might match the return type of a GCC
  8909. builtin and then its argument prototype would still apply. */
  8910. #ifdef __cplusplus
  8911. extern "C"
  8912. #endif
  8913. char dlopen ();
  8914. int
  8915. main ()
  8916. {
  8917. return dlopen ();
  8918. ;
  8919. return 0;
  8920. }
  8921. _ACEOF
  8922. if ac_fn_c_try_link "$LINENO"; then :
  8923. ac_cv_lib_svld_dlopen=yes
  8924. else
  8925. ac_cv_lib_svld_dlopen=no
  8926. fi
  8927. rm -f core conftest.err conftest.$ac_objext \
  8928. conftest$ac_exeext conftest.$ac_ext
  8929. LIBS=$ac_check_lib_save_LIBS
  8930. fi
  8931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  8932. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  8933. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  8934. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8935. else
  8936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  8937. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  8938. if ${ac_cv_lib_dld_dld_link+:} false; then :
  8939. $as_echo_n "(cached) " >&6
  8940. else
  8941. ac_check_lib_save_LIBS=$LIBS
  8942. LIBS="-ldld $LIBS"
  8943. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8944. /* end confdefs.h. */
  8945. /* Override any GCC internal prototype to avoid an error.
  8946. Use char because int might match the return type of a GCC
  8947. builtin and then its argument prototype would still apply. */
  8948. #ifdef __cplusplus
  8949. extern "C"
  8950. #endif
  8951. char dld_link ();
  8952. int
  8953. main ()
  8954. {
  8955. return dld_link ();
  8956. ;
  8957. return 0;
  8958. }
  8959. _ACEOF
  8960. if ac_fn_c_try_link "$LINENO"; then :
  8961. ac_cv_lib_dld_dld_link=yes
  8962. else
  8963. ac_cv_lib_dld_dld_link=no
  8964. fi
  8965. rm -f core conftest.err conftest.$ac_objext \
  8966. conftest$ac_exeext conftest.$ac_ext
  8967. LIBS=$ac_check_lib_save_LIBS
  8968. fi
  8969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  8970. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  8971. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  8972. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  8973. fi
  8974. fi
  8975. fi
  8976. fi
  8977. fi
  8978. fi
  8979. ;;
  8980. esac
  8981. if test "x$lt_cv_dlopen" != xno; then
  8982. enable_dlopen=yes
  8983. else
  8984. enable_dlopen=no
  8985. fi
  8986. case $lt_cv_dlopen in
  8987. dlopen)
  8988. save_CPPFLAGS="$CPPFLAGS"
  8989. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8990. save_LDFLAGS="$LDFLAGS"
  8991. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8992. save_LIBS="$LIBS"
  8993. LIBS="$lt_cv_dlopen_libs $LIBS"
  8994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  8995. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  8996. if ${lt_cv_dlopen_self+:} false; then :
  8997. $as_echo_n "(cached) " >&6
  8998. else
  8999. if test "$cross_compiling" = yes; then :
  9000. lt_cv_dlopen_self=cross
  9001. else
  9002. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9003. lt_status=$lt_dlunknown
  9004. cat > conftest.$ac_ext <<_LT_EOF
  9005. #line 10497 "configure"
  9006. #include "confdefs.h"
  9007. #if HAVE_DLFCN_H
  9008. #include <dlfcn.h>
  9009. #endif
  9010. #include <stdio.h>
  9011. #ifdef RTLD_GLOBAL
  9012. # define LT_DLGLOBAL RTLD_GLOBAL
  9013. #else
  9014. # ifdef DL_GLOBAL
  9015. # define LT_DLGLOBAL DL_GLOBAL
  9016. # else
  9017. # define LT_DLGLOBAL 0
  9018. # endif
  9019. #endif
  9020. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9021. find out it does not work in some platform. */
  9022. #ifndef LT_DLLAZY_OR_NOW
  9023. # ifdef RTLD_LAZY
  9024. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9025. # else
  9026. # ifdef DL_LAZY
  9027. # define LT_DLLAZY_OR_NOW DL_LAZY
  9028. # else
  9029. # ifdef RTLD_NOW
  9030. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9031. # else
  9032. # ifdef DL_NOW
  9033. # define LT_DLLAZY_OR_NOW DL_NOW
  9034. # else
  9035. # define LT_DLLAZY_OR_NOW 0
  9036. # endif
  9037. # endif
  9038. # endif
  9039. # endif
  9040. #endif
  9041. void fnord() { int i=42;}
  9042. int main ()
  9043. {
  9044. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9045. int status = $lt_dlunknown;
  9046. if (self)
  9047. {
  9048. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9049. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9050. /* dlclose (self); */
  9051. }
  9052. else
  9053. puts (dlerror ());
  9054. return status;
  9055. }
  9056. _LT_EOF
  9057. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9058. (eval $ac_link) 2>&5
  9059. ac_status=$?
  9060. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9061. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9062. (./conftest; exit; ) >&5 2>/dev/null
  9063. lt_status=$?
  9064. case x$lt_status in
  9065. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9066. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9067. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9068. esac
  9069. else :
  9070. # compilation failed
  9071. lt_cv_dlopen_self=no
  9072. fi
  9073. fi
  9074. rm -fr conftest*
  9075. fi
  9076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9077. $as_echo "$lt_cv_dlopen_self" >&6; }
  9078. if test "x$lt_cv_dlopen_self" = xyes; then
  9079. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9081. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9082. if ${lt_cv_dlopen_self_static+:} false; then :
  9083. $as_echo_n "(cached) " >&6
  9084. else
  9085. if test "$cross_compiling" = yes; then :
  9086. lt_cv_dlopen_self_static=cross
  9087. else
  9088. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9089. lt_status=$lt_dlunknown
  9090. cat > conftest.$ac_ext <<_LT_EOF
  9091. #line 10593 "configure"
  9092. #include "confdefs.h"
  9093. #if HAVE_DLFCN_H
  9094. #include <dlfcn.h>
  9095. #endif
  9096. #include <stdio.h>
  9097. #ifdef RTLD_GLOBAL
  9098. # define LT_DLGLOBAL RTLD_GLOBAL
  9099. #else
  9100. # ifdef DL_GLOBAL
  9101. # define LT_DLGLOBAL DL_GLOBAL
  9102. # else
  9103. # define LT_DLGLOBAL 0
  9104. # endif
  9105. #endif
  9106. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9107. find out it does not work in some platform. */
  9108. #ifndef LT_DLLAZY_OR_NOW
  9109. # ifdef RTLD_LAZY
  9110. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9111. # else
  9112. # ifdef DL_LAZY
  9113. # define LT_DLLAZY_OR_NOW DL_LAZY
  9114. # else
  9115. # ifdef RTLD_NOW
  9116. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9117. # else
  9118. # ifdef DL_NOW
  9119. # define LT_DLLAZY_OR_NOW DL_NOW
  9120. # else
  9121. # define LT_DLLAZY_OR_NOW 0
  9122. # endif
  9123. # endif
  9124. # endif
  9125. # endif
  9126. #endif
  9127. void fnord() { int i=42;}
  9128. int main ()
  9129. {
  9130. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9131. int status = $lt_dlunknown;
  9132. if (self)
  9133. {
  9134. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9135. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9136. /* dlclose (self); */
  9137. }
  9138. else
  9139. puts (dlerror ());
  9140. return status;
  9141. }
  9142. _LT_EOF
  9143. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9144. (eval $ac_link) 2>&5
  9145. ac_status=$?
  9146. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9147. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9148. (./conftest; exit; ) >&5 2>/dev/null
  9149. lt_status=$?
  9150. case x$lt_status in
  9151. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9152. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9153. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9154. esac
  9155. else :
  9156. # compilation failed
  9157. lt_cv_dlopen_self_static=no
  9158. fi
  9159. fi
  9160. rm -fr conftest*
  9161. fi
  9162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9163. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9164. fi
  9165. CPPFLAGS="$save_CPPFLAGS"
  9166. LDFLAGS="$save_LDFLAGS"
  9167. LIBS="$save_LIBS"
  9168. ;;
  9169. esac
  9170. case $lt_cv_dlopen_self in
  9171. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9172. *) enable_dlopen_self=unknown ;;
  9173. esac
  9174. case $lt_cv_dlopen_self_static in
  9175. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9176. *) enable_dlopen_self_static=unknown ;;
  9177. esac
  9178. fi
  9179. striplib=
  9180. old_striplib=
  9181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9182. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9183. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9184. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9185. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9187. $as_echo "yes" >&6; }
  9188. else
  9189. # FIXME - insert some real tests, host_os isn't really good enough
  9190. case $host_os in
  9191. darwin*)
  9192. if test -n "$STRIP" ; then
  9193. striplib="$STRIP -x"
  9194. old_striplib="$STRIP -S"
  9195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9196. $as_echo "yes" >&6; }
  9197. else
  9198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9199. $as_echo "no" >&6; }
  9200. fi
  9201. ;;
  9202. *)
  9203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9204. $as_echo "no" >&6; }
  9205. ;;
  9206. esac
  9207. fi
  9208. # Report which library types will actually be built
  9209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9210. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9212. $as_echo "$can_build_shared" >&6; }
  9213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9214. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9215. test "$can_build_shared" = "no" && enable_shared=no
  9216. # On AIX, shared libraries and static libraries use the same namespace, and
  9217. # are all built from PIC.
  9218. case $host_os in
  9219. aix3*)
  9220. test "$enable_shared" = yes && enable_static=no
  9221. if test -n "$RANLIB"; then
  9222. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9223. postinstall_cmds='$RANLIB $lib'
  9224. fi
  9225. ;;
  9226. aix[4-9]*)
  9227. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9228. test "$enable_shared" = yes && enable_static=no
  9229. fi
  9230. ;;
  9231. esac
  9232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9233. $as_echo "$enable_shared" >&6; }
  9234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9235. $as_echo_n "checking whether to build static libraries... " >&6; }
  9236. # Make sure either enable_shared or enable_static is yes.
  9237. test "$enable_shared" = yes || enable_static=yes
  9238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9239. $as_echo "$enable_static" >&6; }
  9240. fi
  9241. ac_ext=c
  9242. ac_cpp='$CPP $CPPFLAGS'
  9243. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9244. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9245. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9246. CC="$lt_save_CC"
  9247. ac_config_commands="$ac_config_commands libtool"
  9248. # Only expand once:
  9249. ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
  9250. if test "x$ac_cv_header_pcre_h" = xyes; then :
  9251. else
  9252. as_fn_error $? "could not find pcre.h" "$LINENO" 5
  9253. fi
  9254. ac_fn_c_check_header_mongrel "$LINENO" "argp.h" "ac_cv_header_argp_h" "$ac_includes_default"
  9255. if test "x$ac_cv_header_argp_h" = xyes; then :
  9256. else
  9257. as_fn_error $? "could not find argp.h" "$LINENO" 5
  9258. fi
  9259. ac_fn_c_check_header_mongrel "$LINENO" "json-c/json.h" "ac_cv_header_json_c_json_h" "$ac_includes_default"
  9260. if test "x$ac_cv_header_json_c_json_h" = xyes; then :
  9261. else
  9262. as_fn_error $? "could not find json.h" "$LINENO" 5
  9263. fi
  9264. ac_fn_c_check_header_mongrel "$LINENO" "json-c/printbuf.h" "ac_cv_header_json_c_printbuf_h" "$ac_includes_default"
  9265. if test "x$ac_cv_header_json_c_printbuf_h" = xyes; then :
  9266. else
  9267. as_fn_error $? "could not find printbuf.h" "$LINENO" 5
  9268. fi
  9269. # Extract the first word of "xml2-config", so it can be a program name with args.
  9270. set dummy xml2-config; ac_word=$2
  9271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9272. $as_echo_n "checking for $ac_word... " >&6; }
  9273. if ${ac_cv_path_XML2_CONFIG+:} false; then :
  9274. $as_echo_n "(cached) " >&6
  9275. else
  9276. case $XML2_CONFIG in
  9277. [\\/]* | ?:[\\/]*)
  9278. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  9279. ;;
  9280. *)
  9281. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9282. for as_dir in $PATH
  9283. do
  9284. IFS=$as_save_IFS
  9285. test -z "$as_dir" && as_dir=.
  9286. for ac_exec_ext in '' $ac_executable_extensions; do
  9287. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9288. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  9289. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9290. break 2
  9291. fi
  9292. done
  9293. done
  9294. IFS=$as_save_IFS
  9295. ;;
  9296. esac
  9297. fi
  9298. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  9299. if test -n "$XML2_CONFIG"; then
  9300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML2_CONFIG" >&5
  9301. $as_echo "$XML2_CONFIG" >&6; }
  9302. else
  9303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9304. $as_echo "no" >&6; }
  9305. fi
  9306. if test x$XML2_CONFIG = x ; then
  9307. as_fn_error $? "libxml2 not present or not configured" "$LINENO" 5
  9308. else
  9309. XML2_CFLAGS="`$XML2_CONFIG --cflags`"
  9310. XML2_LIBS="`$XML2_CONFIG --libs`"
  9311. fi
  9312. # Extract the first word of "xslt-config", so it can be a program name with args.
  9313. set dummy xslt-config; ac_word=$2
  9314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9315. $as_echo_n "checking for $ac_word... " >&6; }
  9316. if ${ac_cv_path_XSLT_CONFIG+:} false; then :
  9317. $as_echo_n "(cached) " >&6
  9318. else
  9319. case $XSLT_CONFIG in
  9320. [\\/]* | ?:[\\/]*)
  9321. ac_cv_path_XSLT_CONFIG="$XSLT_CONFIG" # Let the user override the test with a path.
  9322. ;;
  9323. *)
  9324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9325. for as_dir in $PATH
  9326. do
  9327. IFS=$as_save_IFS
  9328. test -z "$as_dir" && as_dir=.
  9329. for ac_exec_ext in '' $ac_executable_extensions; do
  9330. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9331. ac_cv_path_XSLT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  9332. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9333. break 2
  9334. fi
  9335. done
  9336. done
  9337. IFS=$as_save_IFS
  9338. ;;
  9339. esac
  9340. fi
  9341. XSLT_CONFIG=$ac_cv_path_XSLT_CONFIG
  9342. if test -n "$XSLT_CONFIG"; then
  9343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT_CONFIG" >&5
  9344. $as_echo "$XSLT_CONFIG" >&6; }
  9345. else
  9346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9347. $as_echo "no" >&6; }
  9348. fi
  9349. if test x$XSLT_CONFIG = x ; then
  9350. as_fn_error $? "libxslt not present or not configured" "$LINENO" 5
  9351. else
  9352. XSLT_CFLAGS="`$XSLT_CONFIG --cflags`"
  9353. XSLT_LIBS="`$XSLT_CONFIG --libs`"
  9354. fi
  9355. CPPFLAGS="$CPPFLAGS $XML2_CFLAGS $XSLT_CFLAGS"
  9356. LIBS="$LIBS $XML2_LIBS $XSLT_LIBS"
  9357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
  9358. $as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
  9359. if ${ac_cv_lib_pcre_pcre_compile+:} false; then :
  9360. $as_echo_n "(cached) " >&6
  9361. else
  9362. ac_check_lib_save_LIBS=$LIBS
  9363. LIBS="-lpcre $LIBS"
  9364. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9365. /* end confdefs.h. */
  9366. /* Override any GCC internal prototype to avoid an error.
  9367. Use char because int might match the return type of a GCC
  9368. builtin and then its argument prototype would still apply. */
  9369. #ifdef __cplusplus
  9370. extern "C"
  9371. #endif
  9372. char pcre_compile ();
  9373. int
  9374. main ()
  9375. {
  9376. return pcre_compile ();
  9377. ;
  9378. return 0;
  9379. }
  9380. _ACEOF
  9381. if ac_fn_c_try_link "$LINENO"; then :
  9382. ac_cv_lib_pcre_pcre_compile=yes
  9383. else
  9384. ac_cv_lib_pcre_pcre_compile=no
  9385. fi
  9386. rm -f core conftest.err conftest.$ac_objext \
  9387. conftest$ac_exeext conftest.$ac_ext
  9388. LIBS=$ac_check_lib_save_LIBS
  9389. fi
  9390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5
  9391. $as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; }
  9392. if test "x$ac_cv_lib_pcre_pcre_compile" = xyes; then :
  9393. cat >>confdefs.h <<_ACEOF
  9394. #define HAVE_LIBPCRE 1
  9395. _ACEOF
  9396. LIBS="-lpcre $LIBS"
  9397. else
  9398. as_fn_error $? "could not find pcre" "$LINENO" 5
  9399. fi
  9400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for json_object_new_string in -ljson-c" >&5
  9401. $as_echo_n "checking for json_object_new_string in -ljson-c... " >&6; }
  9402. if ${ac_cv_lib_json_c_json_object_new_string+:} false; then :
  9403. $as_echo_n "(cached) " >&6
  9404. else
  9405. ac_check_lib_save_LIBS=$LIBS
  9406. LIBS="-ljson-c $LIBS"
  9407. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9408. /* end confdefs.h. */
  9409. /* Override any GCC internal prototype to avoid an error.
  9410. Use char because int might match the return type of a GCC
  9411. builtin and then its argument prototype would still apply. */
  9412. #ifdef __cplusplus
  9413. extern "C"
  9414. #endif
  9415. char json_object_new_string ();
  9416. int
  9417. main ()
  9418. {
  9419. return json_object_new_string ();
  9420. ;
  9421. return 0;
  9422. }
  9423. _ACEOF
  9424. if ac_fn_c_try_link "$LINENO"; then :
  9425. ac_cv_lib_json_c_json_object_new_string=yes
  9426. else
  9427. ac_cv_lib_json_c_json_object_new_string=no
  9428. fi
  9429. rm -f core conftest.err conftest.$ac_objext \
  9430. conftest$ac_exeext conftest.$ac_ext
  9431. LIBS=$ac_check_lib_save_LIBS
  9432. fi
  9433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_json_c_json_object_new_string" >&5
  9434. $as_echo "$ac_cv_lib_json_c_json_object_new_string" >&6; }
  9435. if test "x$ac_cv_lib_json_c_json_object_new_string" = xyes; then :
  9436. cat >>confdefs.h <<_ACEOF
  9437. #define HAVE_LIBJSON_C 1
  9438. _ACEOF
  9439. LIBS="-ljson-c $LIBS"
  9440. else
  9441. as_fn_error $? "could not find the json library" "$LINENO" 5
  9442. fi
  9443. ac_fn_c_check_func "$LINENO" "argp_parse" "ac_cv_func_argp_parse"
  9444. if test "x$ac_cv_func_argp_parse" = xyes; then :
  9445. else
  9446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for argp_parse in -largp" >&5
  9447. $as_echo_n "checking for argp_parse in -largp... " >&6; }
  9448. if ${ac_cv_lib_argp_argp_parse+:} false; then :
  9449. $as_echo_n "(cached) " >&6
  9450. else
  9451. ac_check_lib_save_LIBS=$LIBS
  9452. LIBS="-largp $LIBS"
  9453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9454. /* end confdefs.h. */
  9455. /* Override any GCC internal prototype to avoid an error.
  9456. Use char because int might match the return type of a GCC
  9457. builtin and then its argument prototype would still apply. */
  9458. #ifdef __cplusplus
  9459. extern "C"
  9460. #endif
  9461. char argp_parse ();
  9462. int
  9463. main ()
  9464. {
  9465. return argp_parse ();
  9466. ;
  9467. return 0;
  9468. }
  9469. _ACEOF
  9470. if ac_fn_c_try_link "$LINENO"; then :
  9471. ac_cv_lib_argp_argp_parse=yes
  9472. else
  9473. ac_cv_lib_argp_argp_parse=no
  9474. fi
  9475. rm -f core conftest.err conftest.$ac_objext \
  9476. conftest$ac_exeext conftest.$ac_ext
  9477. LIBS=$ac_check_lib_save_LIBS
  9478. fi
  9479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_argp_argp_parse" >&5
  9480. $as_echo "$ac_cv_lib_argp_argp_parse" >&6; }
  9481. if test "x$ac_cv_lib_argp_argp_parse" = xyes; then :
  9482. cat >>confdefs.h <<_ACEOF
  9483. #define HAVE_LIBARGP 1
  9484. _ACEOF
  9485. LIBS="-largp $LIBS"
  9486. else
  9487. as_fn_error $? "could not find argp" "$LINENO" 5
  9488. fi
  9489. fi
  9490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltApplyStylesheet in -lxslt" >&5
  9491. $as_echo_n "checking for xsltApplyStylesheet in -lxslt... " >&6; }
  9492. if ${ac_cv_lib_xslt_xsltApplyStylesheet+:} false; then :
  9493. $as_echo_n "(cached) " >&6
  9494. else
  9495. ac_check_lib_save_LIBS=$LIBS
  9496. LIBS="-lxslt $LIBS"
  9497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9498. /* end confdefs.h. */
  9499. /* Override any GCC internal prototype to avoid an error.
  9500. Use char because int might match the return type of a GCC
  9501. builtin and then its argument prototype would still apply. */
  9502. #ifdef __cplusplus
  9503. extern "C"
  9504. #endif
  9505. char xsltApplyStylesheet ();
  9506. int
  9507. main ()
  9508. {
  9509. return xsltApplyStylesheet ();
  9510. ;
  9511. return 0;
  9512. }
  9513. _ACEOF
  9514. if ac_fn_c_try_link "$LINENO"; then :
  9515. ac_cv_lib_xslt_xsltApplyStylesheet=yes
  9516. else
  9517. ac_cv_lib_xslt_xsltApplyStylesheet=no
  9518. fi
  9519. rm -f core conftest.err conftest.$ac_objext \
  9520. conftest$ac_exeext conftest.$ac_ext
  9521. LIBS=$ac_check_lib_save_LIBS
  9522. fi
  9523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltApplyStylesheet" >&5
  9524. $as_echo "$ac_cv_lib_xslt_xsltApplyStylesheet" >&6; }
  9525. if test "x$ac_cv_lib_xslt_xsltApplyStylesheet" = xyes; then :
  9526. cat >>confdefs.h <<_ACEOF
  9527. #define HAVE_LIBXSLT 1
  9528. _ACEOF
  9529. LIBS="-lxslt $LIBS"
  9530. else
  9531. as_fn_error $? "could not find libxslt" "$LINENO" 5
  9532. fi
  9533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlParseFile in -lxml2" >&5
  9534. $as_echo_n "checking for htmlParseFile in -lxml2... " >&6; }
  9535. if ${ac_cv_lib_xml2_htmlParseFile+:} false; then :
  9536. $as_echo_n "(cached) " >&6
  9537. else
  9538. ac_check_lib_save_LIBS=$LIBS
  9539. LIBS="-lxml2 $LIBS"
  9540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9541. /* end confdefs.h. */
  9542. /* Override any GCC internal prototype to avoid an error.
  9543. Use char because int might match the return type of a GCC
  9544. builtin and then its argument prototype would still apply. */
  9545. #ifdef __cplusplus
  9546. extern "C"
  9547. #endif
  9548. char htmlParseFile ();
  9549. int
  9550. main ()
  9551. {
  9552. return htmlParseFile ();
  9553. ;
  9554. return 0;
  9555. }
  9556. _ACEOF
  9557. if ac_fn_c_try_link "$LINENO"; then :
  9558. ac_cv_lib_xml2_htmlParseFile=yes
  9559. else
  9560. ac_cv_lib_xml2_htmlParseFile=no
  9561. fi
  9562. rm -f core conftest.err conftest.$ac_objext \
  9563. conftest$ac_exeext conftest.$ac_ext
  9564. LIBS=$ac_check_lib_save_LIBS
  9565. fi
  9566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlParseFile" >&5
  9567. $as_echo "$ac_cv_lib_xml2_htmlParseFile" >&6; }
  9568. if test "x$ac_cv_lib_xml2_htmlParseFile" = xyes; then :
  9569. cat >>confdefs.h <<_ACEOF
  9570. #define HAVE_LIBXML2 1
  9571. _ACEOF
  9572. LIBS="-lxml2 $LIBS"
  9573. else
  9574. as_fn_error $? "could not find libxml2 with html parsing" "$LINENO" 5
  9575. fi
  9576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exsltRegisterAll in -lexslt" >&5
  9577. $as_echo_n "checking for exsltRegisterAll in -lexslt... " >&6; }
  9578. if ${ac_cv_lib_exslt_exsltRegisterAll+:} false; then :
  9579. $as_echo_n "(cached) " >&6
  9580. else
  9581. ac_check_lib_save_LIBS=$LIBS
  9582. LIBS="-lexslt $LIBS"
  9583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9584. /* end confdefs.h. */
  9585. /* Override any GCC internal prototype to avoid an error.
  9586. Use char because int might match the return type of a GCC
  9587. builtin and then its argument prototype would still apply. */
  9588. #ifdef __cplusplus
  9589. extern "C"
  9590. #endif
  9591. char exsltRegisterAll ();
  9592. int
  9593. main ()
  9594. {
  9595. return exsltRegisterAll ();
  9596. ;
  9597. return 0;
  9598. }
  9599. _ACEOF
  9600. if ac_fn_c_try_link "$LINENO"; then :
  9601. ac_cv_lib_exslt_exsltRegisterAll=yes
  9602. else
  9603. ac_cv_lib_exslt_exsltRegisterAll=no
  9604. fi
  9605. rm -f core conftest.err conftest.$ac_objext \
  9606. conftest$ac_exeext conftest.$ac_ext
  9607. LIBS=$ac_check_lib_save_LIBS
  9608. fi
  9609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_exslt_exsltRegisterAll" >&5
  9610. $as_echo "$ac_cv_lib_exslt_exsltRegisterAll" >&6; }
  9611. if test "x$ac_cv_lib_exslt_exsltRegisterAll" = xyes; then :
  9612. cat >>confdefs.h <<_ACEOF
  9613. #define HAVE_LIBEXSLT 1
  9614. _ACEOF
  9615. LIBS="-lexslt $LIBS"
  9616. else
  9617. as_fn_error $? "could not find libexslt" "$LINENO" 5
  9618. fi
  9619. ac_config_files="$ac_config_files Makefile"
  9620. cat >confcache <<\_ACEOF
  9621. # This file is a shell script that caches the results of configure
  9622. # tests run on this system so they can be shared between configure
  9623. # scripts and configure runs, see configure's option --config-cache.
  9624. # It is not useful on other systems. If it contains results you don't
  9625. # want to keep, you may remove or edit it.
  9626. #
  9627. # config.status only pays attention to the cache file if you give it
  9628. # the --recheck option to rerun configure.
  9629. #
  9630. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9631. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9632. # following values.
  9633. _ACEOF
  9634. # The following way of writing the cache mishandles newlines in values,
  9635. # but we know of no workaround that is simple, portable, and efficient.
  9636. # So, we kill variables containing newlines.
  9637. # Ultrix sh set writes to stderr and can't be redirected directly,
  9638. # and sets the high bit in the cache file unless we assign to the vars.
  9639. (
  9640. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9641. eval ac_val=\$$ac_var
  9642. case $ac_val in #(
  9643. *${as_nl}*)
  9644. case $ac_var in #(
  9645. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9646. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9647. esac
  9648. case $ac_var in #(
  9649. _ | IFS | as_nl) ;; #(
  9650. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9651. *) { eval $ac_var=; unset $ac_var;} ;;
  9652. esac ;;
  9653. esac
  9654. done
  9655. (set) 2>&1 |
  9656. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9657. *${as_nl}ac_space=\ *)
  9658. # `set' does not quote correctly, so add quotes: double-quote
  9659. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9660. sed -n \
  9661. "s/'/'\\\\''/g;
  9662. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9663. ;; #(
  9664. *)
  9665. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9666. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9667. ;;
  9668. esac |
  9669. sort
  9670. ) |
  9671. sed '
  9672. /^ac_cv_env_/b end
  9673. t clear
  9674. :clear
  9675. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9676. t end
  9677. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9678. :end' >>confcache
  9679. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9680. if test -w "$cache_file"; then
  9681. if test "x$cache_file" != "x/dev/null"; then
  9682. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9683. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9684. if test ! -f "$cache_file" || test -h "$cache_file"; then
  9685. cat confcache >"$cache_file"
  9686. else
  9687. case $cache_file in #(
  9688. */* | ?:*)
  9689. mv -f confcache "$cache_file"$$ &&
  9690. mv -f "$cache_file"$$ "$cache_file" ;; #(
  9691. *)
  9692. mv -f confcache "$cache_file" ;;
  9693. esac
  9694. fi
  9695. fi
  9696. else
  9697. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9698. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9699. fi
  9700. fi
  9701. rm -f confcache
  9702. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9703. # Let make expand exec_prefix.
  9704. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9705. # Transform confdefs.h into DEFS.
  9706. # Protect against shell expansion while executing Makefile rules.
  9707. # Protect against Makefile macro expansion.
  9708. #
  9709. # If the first sed substitution is executed (which looks for macros that
  9710. # take arguments), then branch to the quote section. Otherwise,
  9711. # look for a macro that doesn't take arguments.
  9712. ac_script='
  9713. :mline
  9714. /\\$/{
  9715. N
  9716. s,\\\n,,
  9717. b mline
  9718. }
  9719. t clear
  9720. :clear
  9721. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  9722. t quote
  9723. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  9724. t quote
  9725. b any
  9726. :quote
  9727. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  9728. s/\[/\\&/g
  9729. s/\]/\\&/g
  9730. s/\$/$$/g
  9731. H
  9732. :any
  9733. ${
  9734. g
  9735. s/^\n//
  9736. s/\n/ /g
  9737. p
  9738. }
  9739. '
  9740. DEFS=`sed -n "$ac_script" confdefs.h`
  9741. ac_libobjs=
  9742. ac_ltlibobjs=
  9743. U=
  9744. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9745. # 1. Remove the extension, and $U if already installed.
  9746. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9747. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9748. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9749. # will be set to the directory where LIBOBJS objects are built.
  9750. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9751. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9752. done
  9753. LIBOBJS=$ac_libobjs
  9754. LTLIBOBJS=$ac_ltlibobjs
  9755. if test -n "$EXEEXT"; then
  9756. am__EXEEXT_TRUE=
  9757. am__EXEEXT_FALSE='#'
  9758. else
  9759. am__EXEEXT_TRUE='#'
  9760. am__EXEEXT_FALSE=
  9761. fi
  9762. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9763. as_fn_error $? "conditional \"AMDEP\" was never defined.
  9764. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9765. fi
  9766. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9767. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  9768. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9769. fi
  9770. : "${CONFIG_STATUS=./config.status}"
  9771. ac_write_fail=0
  9772. ac_clean_files_save=$ac_clean_files
  9773. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9774. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9775. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9776. as_write_fail=0
  9777. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9778. #! $SHELL
  9779. # Generated by $as_me.
  9780. # Run this file to recreate the current configuration.
  9781. # Compiler output produced by configure, useful for debugging
  9782. # configure, is in config.log if it exists.
  9783. debug=false
  9784. ac_cs_recheck=false
  9785. ac_cs_silent=false
  9786. SHELL=\${CONFIG_SHELL-$SHELL}
  9787. export SHELL
  9788. _ASEOF
  9789. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9790. ## -------------------- ##
  9791. ## M4sh Initialization. ##
  9792. ## -------------------- ##
  9793. # Be more Bourne compatible
  9794. DUALCASE=1; export DUALCASE # for MKS sh
  9795. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  9796. emulate sh
  9797. NULLCMD=:
  9798. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9799. # is contrary to our usage. Disable this feature.
  9800. alias -g '${1+"$@"}'='"$@"'
  9801. setopt NO_GLOB_SUBST
  9802. else
  9803. case `(set -o) 2>/dev/null` in #(
  9804. *posix*) :
  9805. set -o posix ;; #(
  9806. *) :
  9807. ;;
  9808. esac
  9809. fi
  9810. as_nl='
  9811. '
  9812. export as_nl
  9813. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9814. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9815. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9816. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9817. # Prefer a ksh shell builtin over an external printf program on Solaris,
  9818. # but without wasting forks for bash or zsh.
  9819. if test -z "$BASH_VERSION$ZSH_VERSION" \
  9820. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  9821. as_echo='print -r --'
  9822. as_echo_n='print -rn --'
  9823. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9824. as_echo='printf %s\n'
  9825. as_echo_n='printf %s'
  9826. else
  9827. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9828. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9829. as_echo_n='/usr/ucb/echo -n'
  9830. else
  9831. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9832. as_echo_n_body='eval
  9833. arg=$1;
  9834. case $arg in #(
  9835. *"$as_nl"*)
  9836. expr "X$arg" : "X\\(.*\\)$as_nl";
  9837. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9838. esac;
  9839. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9840. '
  9841. export as_echo_n_body
  9842. as_echo_n='sh -c $as_echo_n_body as_echo'
  9843. fi
  9844. export as_echo_body
  9845. as_echo='sh -c $as_echo_body as_echo'
  9846. fi
  9847. # The user is always right.
  9848. if test "${PATH_SEPARATOR+set}" != set; then
  9849. PATH_SEPARATOR=:
  9850. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9851. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9852. PATH_SEPARATOR=';'
  9853. }
  9854. fi
  9855. # IFS
  9856. # We need space, tab and new line, in precisely that order. Quoting is
  9857. # there to prevent editors from complaining about space-tab.
  9858. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9859. # splitting by setting IFS to empty value.)
  9860. IFS=" "" $as_nl"
  9861. # Find who we are. Look in the path if we contain no directory separator.
  9862. as_myself=
  9863. case $0 in #((
  9864. *[\\/]* ) as_myself=$0 ;;
  9865. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9866. for as_dir in $PATH
  9867. do
  9868. IFS=$as_save_IFS
  9869. test -z "$as_dir" && as_dir=.
  9870. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9871. done
  9872. IFS=$as_save_IFS
  9873. ;;
  9874. esac
  9875. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9876. # in which case we are not to be found in the path.
  9877. if test "x$as_myself" = x; then
  9878. as_myself=$0
  9879. fi
  9880. if test ! -f "$as_myself"; then
  9881. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9882. exit 1
  9883. fi
  9884. # Unset variables that we do not need and which cause bugs (e.g. in
  9885. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  9886. # suppresses any "Segmentation fault" message there. '((' could
  9887. # trigger a bug in pdksh 5.2.14.
  9888. for as_var in BASH_ENV ENV MAIL MAILPATH
  9889. do eval test x\${$as_var+set} = xset \
  9890. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  9891. done
  9892. PS1='$ '
  9893. PS2='> '
  9894. PS4='+ '
  9895. # NLS nuisances.
  9896. LC_ALL=C
  9897. export LC_ALL
  9898. LANGUAGE=C
  9899. export LANGUAGE
  9900. # CDPATH.
  9901. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9902. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  9903. # ----------------------------------------
  9904. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  9905. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  9906. # script with STATUS, using 1 if that was 0.
  9907. as_fn_error ()
  9908. {
  9909. as_status=$1; test $as_status -eq 0 && as_status=1
  9910. if test "$4"; then
  9911. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9912. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  9913. fi
  9914. $as_echo "$as_me: error: $2" >&2
  9915. as_fn_exit $as_status
  9916. } # as_fn_error
  9917. # as_fn_set_status STATUS
  9918. # -----------------------
  9919. # Set $? to STATUS, without forking.
  9920. as_fn_set_status ()
  9921. {
  9922. return $1
  9923. } # as_fn_set_status
  9924. # as_fn_exit STATUS
  9925. # -----------------
  9926. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  9927. as_fn_exit ()
  9928. {
  9929. set +e
  9930. as_fn_set_status $1
  9931. exit $1
  9932. } # as_fn_exit
  9933. # as_fn_unset VAR
  9934. # ---------------
  9935. # Portably unset VAR.
  9936. as_fn_unset ()
  9937. {
  9938. { eval $1=; unset $1;}
  9939. }
  9940. as_unset=as_fn_unset
  9941. # as_fn_append VAR VALUE
  9942. # ----------------------
  9943. # Append the text in VALUE to the end of the definition contained in VAR. Take
  9944. # advantage of any shell optimizations that allow amortized linear growth over
  9945. # repeated appends, instead of the typical quadratic growth present in naive
  9946. # implementations.
  9947. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  9948. eval 'as_fn_append ()
  9949. {
  9950. eval $1+=\$2
  9951. }'
  9952. else
  9953. as_fn_append ()
  9954. {
  9955. eval $1=\$$1\$2
  9956. }
  9957. fi # as_fn_append
  9958. # as_fn_arith ARG...
  9959. # ------------------
  9960. # Perform arithmetic evaluation on the ARGs, and store the result in the
  9961. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  9962. # must be portable across $(()) and expr.
  9963. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  9964. eval 'as_fn_arith ()
  9965. {
  9966. as_val=$(( $* ))
  9967. }'
  9968. else
  9969. as_fn_arith ()
  9970. {
  9971. as_val=`expr "$@" || test $? -eq 1`
  9972. }
  9973. fi # as_fn_arith
  9974. if expr a : '\(a\)' >/dev/null 2>&1 &&
  9975. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  9976. as_expr=expr
  9977. else
  9978. as_expr=false
  9979. fi
  9980. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  9981. as_basename=basename
  9982. else
  9983. as_basename=false
  9984. fi
  9985. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  9986. as_dirname=dirname
  9987. else
  9988. as_dirname=false
  9989. fi
  9990. as_me=`$as_basename -- "$0" ||
  9991. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9992. X"$0" : 'X\(//\)$' \| \
  9993. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  9994. $as_echo X/"$0" |
  9995. sed '/^.*\/\([^/][^/]*\)\/*$/{
  9996. s//\1/
  9997. q
  9998. }
  9999. /^X\/\(\/\/\)$/{
  10000. s//\1/
  10001. q
  10002. }
  10003. /^X\/\(\/\).*/{
  10004. s//\1/
  10005. q
  10006. }
  10007. s/.*/./; q'`
  10008. # Avoid depending upon Character Ranges.
  10009. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10010. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10011. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10012. as_cr_digits='0123456789'
  10013. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10014. ECHO_C= ECHO_N= ECHO_T=
  10015. case `echo -n x` in #(((((
  10016. -n*)
  10017. case `echo 'xy\c'` in
  10018. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10019. xy) ECHO_C='\c';;
  10020. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10021. ECHO_T=' ';;
  10022. esac;;
  10023. *)
  10024. ECHO_N='-n';;
  10025. esac
  10026. rm -f conf$$ conf$$.exe conf$$.file
  10027. if test -d conf$$.dir; then
  10028. rm -f conf$$.dir/conf$$.file
  10029. else
  10030. rm -f conf$$.dir
  10031. mkdir conf$$.dir 2>/dev/null
  10032. fi
  10033. if (echo >conf$$.file) 2>/dev/null; then
  10034. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10035. as_ln_s='ln -s'
  10036. # ... but there are two gotchas:
  10037. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10038. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10039. # In both cases, we have to default to `cp -pR'.
  10040. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10041. as_ln_s='cp -pR'
  10042. elif ln conf$$.file conf$$ 2>/dev/null; then
  10043. as_ln_s=ln
  10044. else
  10045. as_ln_s='cp -pR'
  10046. fi
  10047. else
  10048. as_ln_s='cp -pR'
  10049. fi
  10050. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10051. rmdir conf$$.dir 2>/dev/null
  10052. # as_fn_mkdir_p
  10053. # -------------
  10054. # Create "$as_dir" as a directory, including parents if necessary.
  10055. as_fn_mkdir_p ()
  10056. {
  10057. case $as_dir in #(
  10058. -*) as_dir=./$as_dir;;
  10059. esac
  10060. test -d "$as_dir" || eval $as_mkdir_p || {
  10061. as_dirs=
  10062. while :; do
  10063. case $as_dir in #(
  10064. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10065. *) as_qdir=$as_dir;;
  10066. esac
  10067. as_dirs="'$as_qdir' $as_dirs"
  10068. as_dir=`$as_dirname -- "$as_dir" ||
  10069. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10070. X"$as_dir" : 'X\(//\)[^/]' \| \
  10071. X"$as_dir" : 'X\(//\)$' \| \
  10072. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10073. $as_echo X"$as_dir" |
  10074. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10075. s//\1/
  10076. q
  10077. }
  10078. /^X\(\/\/\)[^/].*/{
  10079. s//\1/
  10080. q
  10081. }
  10082. /^X\(\/\/\)$/{
  10083. s//\1/
  10084. q
  10085. }
  10086. /^X\(\/\).*/{
  10087. s//\1/
  10088. q
  10089. }
  10090. s/.*/./; q'`
  10091. test -d "$as_dir" && break
  10092. done
  10093. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10094. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  10095. } # as_fn_mkdir_p
  10096. if mkdir -p . 2>/dev/null; then
  10097. as_mkdir_p='mkdir -p "$as_dir"'
  10098. else
  10099. test -d ./-p && rmdir ./-p
  10100. as_mkdir_p=false
  10101. fi
  10102. # as_fn_executable_p FILE
  10103. # -----------------------
  10104. # Test if FILE is an executable regular file.
  10105. as_fn_executable_p ()
  10106. {
  10107. test -f "$1" && test -x "$1"
  10108. } # as_fn_executable_p
  10109. as_test_x='test -x'
  10110. as_executable_p=as_fn_executable_p
  10111. # Sed expression to map a string onto a valid CPP name.
  10112. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10113. # Sed expression to map a string onto a valid variable name.
  10114. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10115. exec 6>&1
  10116. ## ----------------------------------- ##
  10117. ## Main body of $CONFIG_STATUS script. ##
  10118. ## ----------------------------------- ##
  10119. _ASEOF
  10120. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10121. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10122. # Save the log message, to keep $0 and so on meaningful, and to
  10123. # report actual input values of CONFIG_FILES etc. instead of their
  10124. # values after options handling.
  10125. ac_log="
  10126. This file was extended by parsleyc $as_me 1.0, which was
  10127. generated by GNU Autoconf 2.69. Invocation command line was
  10128. CONFIG_FILES = $CONFIG_FILES
  10129. CONFIG_HEADERS = $CONFIG_HEADERS
  10130. CONFIG_LINKS = $CONFIG_LINKS
  10131. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10132. $ $0 $@
  10133. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10134. "
  10135. _ACEOF
  10136. case $ac_config_files in *"
  10137. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10138. esac
  10139. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10140. # Files that config.status was made for.
  10141. config_files="$ac_config_files"
  10142. config_commands="$ac_config_commands"
  10143. _ACEOF
  10144. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10145. ac_cs_usage="\
  10146. \`$as_me' instantiates files and other configuration actions
  10147. from templates according to the current configuration. Unless the files
  10148. and actions are specified as TAGs, all are instantiated by default.
  10149. Usage: $0 [OPTION]... [TAG]...
  10150. -h, --help print this help, then exit
  10151. -V, --version print version number and configuration settings, then exit
  10152. --config print configuration, then exit
  10153. -q, --quiet, --silent
  10154. do not print progress messages
  10155. -d, --debug don't remove temporary files
  10156. --recheck update $as_me by reconfiguring in the same conditions
  10157. --file=FILE[:TEMPLATE]
  10158. instantiate the configuration file FILE
  10159. Configuration files:
  10160. $config_files
  10161. Configuration commands:
  10162. $config_commands
  10163. Report bugs to <kyle@kylemaxwell.com>."
  10164. _ACEOF
  10165. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10166. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  10167. ac_cs_version="\\
  10168. parsleyc config.status 1.0
  10169. configured by $0, generated by GNU Autoconf 2.69,
  10170. with options \\"\$ac_cs_config\\"
  10171. Copyright (C) 2012 Free Software Foundation, Inc.
  10172. This config.status script is free software; the Free Software Foundation
  10173. gives unlimited permission to copy, distribute and modify it."
  10174. ac_pwd='$ac_pwd'
  10175. srcdir='$srcdir'
  10176. INSTALL='$INSTALL'
  10177. MKDIR_P='$MKDIR_P'
  10178. AWK='$AWK'
  10179. test -n "\$AWK" || AWK=awk
  10180. _ACEOF
  10181. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10182. # The default lists apply if the user does not specify any file.
  10183. ac_need_defaults=:
  10184. while test $# != 0
  10185. do
  10186. case $1 in
  10187. --*=?*)
  10188. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10189. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10190. ac_shift=:
  10191. ;;
  10192. --*=)
  10193. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10194. ac_optarg=
  10195. ac_shift=:
  10196. ;;
  10197. *)
  10198. ac_option=$1
  10199. ac_optarg=$2
  10200. ac_shift=shift
  10201. ;;
  10202. esac
  10203. case $ac_option in
  10204. # Handling of the options.
  10205. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10206. ac_cs_recheck=: ;;
  10207. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10208. $as_echo "$ac_cs_version"; exit ;;
  10209. --config | --confi | --conf | --con | --co | --c )
  10210. $as_echo "$ac_cs_config"; exit ;;
  10211. --debug | --debu | --deb | --de | --d | -d )
  10212. debug=: ;;
  10213. --file | --fil | --fi | --f )
  10214. $ac_shift
  10215. case $ac_optarg in
  10216. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10217. '') as_fn_error $? "missing file argument" ;;
  10218. esac
  10219. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10220. ac_need_defaults=false;;
  10221. --he | --h | --help | --hel | -h )
  10222. $as_echo "$ac_cs_usage"; exit ;;
  10223. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10224. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10225. ac_cs_silent=: ;;
  10226. # This is an error.
  10227. -*) as_fn_error $? "unrecognized option: \`$1'
  10228. Try \`$0 --help' for more information." ;;
  10229. *) as_fn_append ac_config_targets " $1"
  10230. ac_need_defaults=false ;;
  10231. esac
  10232. shift
  10233. done
  10234. ac_configure_extra_args=
  10235. if $ac_cs_silent; then
  10236. exec 6>/dev/null
  10237. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10238. fi
  10239. _ACEOF
  10240. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10241. if \$ac_cs_recheck; then
  10242. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10243. shift
  10244. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10245. CONFIG_SHELL='$SHELL'
  10246. export CONFIG_SHELL
  10247. exec "\$@"
  10248. fi
  10249. _ACEOF
  10250. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10251. exec 5>>config.log
  10252. {
  10253. echo
  10254. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10255. ## Running $as_me. ##
  10256. _ASBOX
  10257. $as_echo "$ac_log"
  10258. } >&5
  10259. _ACEOF
  10260. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10261. #
  10262. # INIT-COMMANDS
  10263. #
  10264. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10265. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10266. # if CDPATH is set.
  10267. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10268. sed_quote_subst='$sed_quote_subst'
  10269. double_quote_subst='$double_quote_subst'
  10270. delay_variable_subst='$delay_variable_subst'
  10271. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  10272. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  10273. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  10274. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  10275. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  10276. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  10277. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  10278. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  10279. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  10280. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  10281. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  10282. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  10283. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  10284. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  10285. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  10286. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  10287. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  10288. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  10289. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  10290. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  10291. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  10292. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  10293. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  10294. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  10295. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  10296. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  10297. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  10298. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10299. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  10300. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  10301. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  10302. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  10303. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  10304. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  10305. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  10306. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10307. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10308. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10309. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  10310. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  10311. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  10312. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  10313. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  10314. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  10315. 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"`'
  10316. 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"`'
  10317. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  10318. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  10319. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  10320. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  10321. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  10322. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  10323. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  10324. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  10325. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  10326. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  10327. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  10328. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  10329. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  10330. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  10331. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  10332. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  10333. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10334. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10335. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  10336. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  10337. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10338. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10339. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  10340. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10341. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10342. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10343. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10344. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10345. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10346. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  10347. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  10348. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  10349. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10350. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  10351. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  10352. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  10353. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  10354. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  10355. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  10356. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  10357. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  10358. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  10359. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  10360. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  10361. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10362. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  10363. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  10364. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10365. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10366. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  10367. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  10368. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  10369. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  10370. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  10371. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  10372. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  10373. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10374. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10375. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10376. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10377. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10378. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  10379. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  10380. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  10381. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10382. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  10383. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  10384. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  10385. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  10386. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  10387. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  10388. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  10389. LTCC='$LTCC'
  10390. LTCFLAGS='$LTCFLAGS'
  10391. compiler='$compiler_DEFAULT'
  10392. # Quote evaled strings.
  10393. for var in SED \
  10394. GREP \
  10395. EGREP \
  10396. FGREP \
  10397. LD \
  10398. NM \
  10399. LN_S \
  10400. lt_SP2NL \
  10401. lt_NL2SP \
  10402. reload_flag \
  10403. OBJDUMP \
  10404. deplibs_check_method \
  10405. file_magic_cmd \
  10406. AR \
  10407. AR_FLAGS \
  10408. STRIP \
  10409. RANLIB \
  10410. CC \
  10411. CFLAGS \
  10412. compiler \
  10413. lt_cv_sys_global_symbol_pipe \
  10414. lt_cv_sys_global_symbol_to_cdecl \
  10415. lt_cv_sys_global_symbol_to_c_name_address \
  10416. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  10417. SHELL \
  10418. ECHO \
  10419. lt_prog_compiler_no_builtin_flag \
  10420. lt_prog_compiler_wl \
  10421. lt_prog_compiler_pic \
  10422. lt_prog_compiler_static \
  10423. lt_cv_prog_compiler_c_o \
  10424. need_locks \
  10425. DSYMUTIL \
  10426. NMEDIT \
  10427. LIPO \
  10428. OTOOL \
  10429. OTOOL64 \
  10430. shrext_cmds \
  10431. export_dynamic_flag_spec \
  10432. whole_archive_flag_spec \
  10433. compiler_needs_object \
  10434. with_gnu_ld \
  10435. allow_undefined_flag \
  10436. no_undefined_flag \
  10437. hardcode_libdir_flag_spec \
  10438. hardcode_libdir_flag_spec_ld \
  10439. hardcode_libdir_separator \
  10440. fix_srcfile_path \
  10441. exclude_expsyms \
  10442. include_expsyms \
  10443. file_list_spec \
  10444. variables_saved_for_relink \
  10445. libname_spec \
  10446. library_names_spec \
  10447. soname_spec \
  10448. finish_eval \
  10449. old_striplib \
  10450. striplib; do
  10451. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  10452. *[\\\\\\\`\\"\\\$]*)
  10453. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  10454. ;;
  10455. *)
  10456. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10457. ;;
  10458. esac
  10459. done
  10460. # Double-quote double-evaled strings.
  10461. for var in reload_cmds \
  10462. old_postinstall_cmds \
  10463. old_postuninstall_cmds \
  10464. old_archive_cmds \
  10465. extract_expsyms_cmds \
  10466. old_archive_from_new_cmds \
  10467. old_archive_from_expsyms_cmds \
  10468. archive_cmds \
  10469. archive_expsym_cmds \
  10470. module_cmds \
  10471. module_expsym_cmds \
  10472. export_symbols_cmds \
  10473. prelink_cmds \
  10474. postinstall_cmds \
  10475. postuninstall_cmds \
  10476. finish_cmds \
  10477. sys_lib_search_path_spec \
  10478. sys_lib_dlsearch_path_spec; do
  10479. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  10480. *[\\\\\\\`\\"\\\$]*)
  10481. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  10482. ;;
  10483. *)
  10484. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10485. ;;
  10486. esac
  10487. done
  10488. # Fix-up fallback echo if it was mangled by the above quoting rules.
  10489. case \$lt_ECHO in
  10490. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  10491. ;;
  10492. esac
  10493. ac_aux_dir='$ac_aux_dir'
  10494. xsi_shell='$xsi_shell'
  10495. lt_shell_append='$lt_shell_append'
  10496. # See if we are running on zsh, and set the options which allow our
  10497. # commands through without removal of \ escapes INIT.
  10498. if test -n "\${ZSH_VERSION+set}" ; then
  10499. setopt NO_GLOB_SUBST
  10500. fi
  10501. PACKAGE='$PACKAGE'
  10502. VERSION='$VERSION'
  10503. TIMESTAMP='$TIMESTAMP'
  10504. RM='$RM'
  10505. ofile='$ofile'
  10506. _ACEOF
  10507. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10508. # Handling of arguments.
  10509. for ac_config_target in $ac_config_targets
  10510. do
  10511. case $ac_config_target in
  10512. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10513. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  10514. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10515. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10516. esac
  10517. done
  10518. # If the user did not use the arguments to specify the items to instantiate,
  10519. # then the envvar interface is used. Set only those that are not.
  10520. # We use the long form for the default assignment because of an extremely
  10521. # bizarre bug on SunOS 4.1.3.
  10522. if $ac_need_defaults; then
  10523. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10524. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10525. fi
  10526. # Have a temporary directory for convenience. Make it in the build tree
  10527. # simply because there is no reason against having it here, and in addition,
  10528. # creating and moving files from /tmp can sometimes cause problems.
  10529. # Hook for its removal unless debugging.
  10530. # Note that there is a small window in which the directory will not be cleaned:
  10531. # after its creation but before its name has been assigned to `$tmp'.
  10532. $debug ||
  10533. {
  10534. tmp= ac_tmp=
  10535. trap 'exit_status=$?
  10536. : "${ac_tmp:=$tmp}"
  10537. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  10538. ' 0
  10539. trap 'as_fn_exit 1' 1 2 13 15
  10540. }
  10541. # Create a (secure) tmp directory for tmp files.
  10542. {
  10543. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10544. test -d "$tmp"
  10545. } ||
  10546. {
  10547. tmp=./conf$$-$RANDOM
  10548. (umask 077 && mkdir "$tmp")
  10549. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  10550. ac_tmp=$tmp
  10551. # Set up the scripts for CONFIG_FILES section.
  10552. # No need to generate them if there are no CONFIG_FILES.
  10553. # This happens for instance with `./config.status config.h'.
  10554. if test -n "$CONFIG_FILES"; then
  10555. ac_cr=`echo X | tr X '\015'`
  10556. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10557. # But we know of no other shell where ac_cr would be empty at this
  10558. # point, so we can use a bashism as a fallback.
  10559. if test "x$ac_cr" = x; then
  10560. eval ac_cr=\$\'\\r\'
  10561. fi
  10562. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10563. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10564. ac_cs_awk_cr='\\r'
  10565. else
  10566. ac_cs_awk_cr=$ac_cr
  10567. fi
  10568. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  10569. _ACEOF
  10570. {
  10571. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10572. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10573. echo "_ACEOF"
  10574. } >conf$$subs.sh ||
  10575. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10576. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  10577. ac_delim='%!_!# '
  10578. for ac_last_try in false false false false false :; do
  10579. . ./conf$$subs.sh ||
  10580. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10581. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10582. if test $ac_delim_n = $ac_delim_num; then
  10583. break
  10584. elif $ac_last_try; then
  10585. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10586. else
  10587. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10588. fi
  10589. done
  10590. rm -f conf$$subs.sh
  10591. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10592. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  10593. _ACEOF
  10594. sed -n '
  10595. h
  10596. s/^/S["/; s/!.*/"]=/
  10597. p
  10598. g
  10599. s/^[^!]*!//
  10600. :repl
  10601. t repl
  10602. s/'"$ac_delim"'$//
  10603. t delim
  10604. :nl
  10605. h
  10606. s/\(.\{148\}\)..*/\1/
  10607. t more1
  10608. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10609. p
  10610. n
  10611. b repl
  10612. :more1
  10613. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10614. p
  10615. g
  10616. s/.\{148\}//
  10617. t nl
  10618. :delim
  10619. h
  10620. s/\(.\{148\}\)..*/\1/
  10621. t more2
  10622. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10623. p
  10624. b
  10625. :more2
  10626. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10627. p
  10628. g
  10629. s/.\{148\}//
  10630. t delim
  10631. ' <conf$$subs.awk | sed '
  10632. /^[^""]/{
  10633. N
  10634. s/\n//
  10635. }
  10636. ' >>$CONFIG_STATUS || ac_write_fail=1
  10637. rm -f conf$$subs.awk
  10638. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10639. _ACAWK
  10640. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  10641. for (key in S) S_is_set[key] = 1
  10642. FS = ""
  10643. }
  10644. {
  10645. line = $ 0
  10646. nfields = split(line, field, "@")
  10647. substed = 0
  10648. len = length(field[1])
  10649. for (i = 2; i < nfields; i++) {
  10650. key = field[i]
  10651. keylen = length(key)
  10652. if (S_is_set[key]) {
  10653. value = S[key]
  10654. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10655. len += length(value) + length(field[++i])
  10656. substed = 1
  10657. } else
  10658. len += 1 + keylen
  10659. }
  10660. print line
  10661. }
  10662. _ACAWK
  10663. _ACEOF
  10664. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10665. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10666. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10667. else
  10668. cat
  10669. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  10670. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  10671. _ACEOF
  10672. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  10673. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  10674. # trailing colons and then remove the whole line if VPATH becomes empty
  10675. # (actually we leave an empty line to preserve line numbers).
  10676. if test "x$srcdir" = x.; then
  10677. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  10678. h
  10679. s///
  10680. s/^/:/
  10681. s/[ ]*$/:/
  10682. s/:\$(srcdir):/:/g
  10683. s/:\${srcdir}:/:/g
  10684. s/:@srcdir@:/:/g
  10685. s/^:*//
  10686. s/:*$//
  10687. x
  10688. s/\(=[ ]*\).*/\1/
  10689. G
  10690. s/\n//
  10691. s/^[^=]*=[ ]*$//
  10692. }'
  10693. fi
  10694. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10695. fi # test -n "$CONFIG_FILES"
  10696. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  10697. shift
  10698. for ac_tag
  10699. do
  10700. case $ac_tag in
  10701. :[FHLC]) ac_mode=$ac_tag; continue;;
  10702. esac
  10703. case $ac_mode$ac_tag in
  10704. :[FHL]*:*);;
  10705. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  10706. :[FH]-) ac_tag=-:-;;
  10707. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10708. esac
  10709. ac_save_IFS=$IFS
  10710. IFS=:
  10711. set x $ac_tag
  10712. IFS=$ac_save_IFS
  10713. shift
  10714. ac_file=$1
  10715. shift
  10716. case $ac_mode in
  10717. :L) ac_source=$1;;
  10718. :[FH])
  10719. ac_file_inputs=
  10720. for ac_f
  10721. do
  10722. case $ac_f in
  10723. -) ac_f="$ac_tmp/stdin";;
  10724. *) # Look for the file first in the build tree, then in the source tree
  10725. # (if the path is not absolute). The absolute path cannot be DOS-style,
  10726. # because $ac_f cannot contain `:'.
  10727. test -f "$ac_f" ||
  10728. case $ac_f in
  10729. [\\/$]*) false;;
  10730. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10731. esac ||
  10732. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  10733. esac
  10734. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  10735. as_fn_append ac_file_inputs " '$ac_f'"
  10736. done
  10737. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10738. # use $as_me), people would be surprised to read:
  10739. # /* config.h. Generated by config.status. */
  10740. configure_input='Generated from '`
  10741. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  10742. `' by configure.'
  10743. if test x"$ac_file" != x-; then
  10744. configure_input="$ac_file. $configure_input"
  10745. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  10746. $as_echo "$as_me: creating $ac_file" >&6;}
  10747. fi
  10748. # Neutralize special characters interpreted by sed in replacement strings.
  10749. case $configure_input in #(
  10750. *\&* | *\|* | *\\* )
  10751. ac_sed_conf_input=`$as_echo "$configure_input" |
  10752. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  10753. *) ac_sed_conf_input=$configure_input;;
  10754. esac
  10755. case $ac_tag in
  10756. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  10757. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  10758. esac
  10759. ;;
  10760. esac
  10761. ac_dir=`$as_dirname -- "$ac_file" ||
  10762. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10763. X"$ac_file" : 'X\(//\)[^/]' \| \
  10764. X"$ac_file" : 'X\(//\)$' \| \
  10765. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  10766. $as_echo X"$ac_file" |
  10767. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10768. s//\1/
  10769. q
  10770. }
  10771. /^X\(\/\/\)[^/].*/{
  10772. s//\1/
  10773. q
  10774. }
  10775. /^X\(\/\/\)$/{
  10776. s//\1/
  10777. q
  10778. }
  10779. /^X\(\/\).*/{
  10780. s//\1/
  10781. q
  10782. }
  10783. s/.*/./; q'`
  10784. as_dir="$ac_dir"; as_fn_mkdir_p
  10785. ac_builddir=.
  10786. case "$ac_dir" in
  10787. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10788. *)
  10789. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  10790. # A ".." for each directory in $ac_dir_suffix.
  10791. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  10792. case $ac_top_builddir_sub in
  10793. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10794. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  10795. esac ;;
  10796. esac
  10797. ac_abs_top_builddir=$ac_pwd
  10798. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  10799. # for backward compatibility:
  10800. ac_top_builddir=$ac_top_build_prefix
  10801. case $srcdir in
  10802. .) # We are building in place.
  10803. ac_srcdir=.
  10804. ac_top_srcdir=$ac_top_builddir_sub
  10805. ac_abs_top_srcdir=$ac_pwd ;;
  10806. [\\/]* | ?:[\\/]* ) # Absolute name.
  10807. ac_srcdir=$srcdir$ac_dir_suffix;
  10808. ac_top_srcdir=$srcdir
  10809. ac_abs_top_srcdir=$srcdir ;;
  10810. *) # Relative name.
  10811. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  10812. ac_top_srcdir=$ac_top_build_prefix$srcdir
  10813. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  10814. esac
  10815. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  10816. case $ac_mode in
  10817. :F)
  10818. #
  10819. # CONFIG_FILE
  10820. #
  10821. case $INSTALL in
  10822. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10823. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  10824. esac
  10825. ac_MKDIR_P=$MKDIR_P
  10826. case $MKDIR_P in
  10827. [\\/$]* | ?:[\\/]* ) ;;
  10828. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  10829. esac
  10830. _ACEOF
  10831. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10832. # If the template does not know about datarootdir, expand it.
  10833. # FIXME: This hack should be removed a few years after 2.60.
  10834. ac_datarootdir_hack=; ac_datarootdir_seen=
  10835. ac_sed_dataroot='
  10836. /datarootdir/ {
  10837. p
  10838. q
  10839. }
  10840. /@datadir@/p
  10841. /@docdir@/p
  10842. /@infodir@/p
  10843. /@localedir@/p
  10844. /@mandir@/p'
  10845. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  10846. *datarootdir*) ac_datarootdir_seen=yes;;
  10847. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10848. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10849. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10850. _ACEOF
  10851. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10852. ac_datarootdir_hack='
  10853. s&@datadir@&$datadir&g
  10854. s&@docdir@&$docdir&g
  10855. s&@infodir@&$infodir&g
  10856. s&@localedir@&$localedir&g
  10857. s&@mandir@&$mandir&g
  10858. s&\\\${datarootdir}&$datarootdir&g' ;;
  10859. esac
  10860. _ACEOF
  10861. # Neutralize VPATH when `$srcdir' = `.'.
  10862. # Shell code in configure.ac might set extrasub.
  10863. # FIXME: do we really want to maintain this feature?
  10864. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10865. ac_sed_extra="$ac_vpsub
  10866. $extrasub
  10867. _ACEOF
  10868. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10869. :t
  10870. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10871. s|@configure_input@|$ac_sed_conf_input|;t t
  10872. s&@top_builddir@&$ac_top_builddir_sub&;t t
  10873. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  10874. s&@srcdir@&$ac_srcdir&;t t
  10875. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  10876. s&@top_srcdir@&$ac_top_srcdir&;t t
  10877. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  10878. s&@builddir@&$ac_builddir&;t t
  10879. s&@abs_builddir@&$ac_abs_builddir&;t t
  10880. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  10881. s&@INSTALL@&$ac_INSTALL&;t t
  10882. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  10883. $ac_datarootdir_hack
  10884. "
  10885. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  10886. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10887. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  10888. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  10889. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  10890. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  10891. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10892. which seems to be undefined. Please make sure it is defined" >&5
  10893. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10894. which seems to be undefined. Please make sure it is defined" >&2;}
  10895. rm -f "$ac_tmp/stdin"
  10896. case $ac_file in
  10897. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  10898. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  10899. esac \
  10900. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10901. ;;
  10902. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  10903. $as_echo "$as_me: executing $ac_file commands" >&6;}
  10904. ;;
  10905. esac
  10906. case $ac_file$ac_mode in
  10907. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  10908. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  10909. # are listed without --file. Let's play safe and only enable the eval
  10910. # if we detect the quoting.
  10911. case $CONFIG_FILES in
  10912. *\'*) eval set x "$CONFIG_FILES" ;;
  10913. *) set x $CONFIG_FILES ;;
  10914. esac
  10915. shift
  10916. for mf
  10917. do
  10918. # Strip MF so we end up with the name of the file.
  10919. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10920. # Check whether this is an Automake generated Makefile or not.
  10921. # We used to match only the files named `Makefile.in', but
  10922. # some people rename them; so instead we look at the file content.
  10923. # Grep'ing the first line is not enough: some people post-process
  10924. # each Makefile.in and add a new line on top of each file to say so.
  10925. # Grep'ing the whole file is not good either: AIX grep has a line
  10926. # limit of 2048, but all sed's we know have understand at least 4000.
  10927. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  10928. dirpart=`$as_dirname -- "$mf" ||
  10929. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10930. X"$mf" : 'X\(//\)[^/]' \| \
  10931. X"$mf" : 'X\(//\)$' \| \
  10932. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  10933. $as_echo X"$mf" |
  10934. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10935. s//\1/
  10936. q
  10937. }
  10938. /^X\(\/\/\)[^/].*/{
  10939. s//\1/
  10940. q
  10941. }
  10942. /^X\(\/\/\)$/{
  10943. s//\1/
  10944. q
  10945. }
  10946. /^X\(\/\).*/{
  10947. s//\1/
  10948. q
  10949. }
  10950. s/.*/./; q'`
  10951. else
  10952. continue
  10953. fi
  10954. # Extract the definition of DEPDIR, am__include, and am__quote
  10955. # from the Makefile without running `make'.
  10956. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  10957. test -z "$DEPDIR" && continue
  10958. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  10959. test -z "am__include" && continue
  10960. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  10961. # When using ansi2knr, U may be empty or an underscore; expand it
  10962. U=`sed -n 's/^U = //p' < "$mf"`
  10963. # Find all dependency output files, they are included files with
  10964. # $(DEPDIR) in their names. We invoke sed twice because it is the
  10965. # simplest approach to changing $(DEPDIR) to its actual value in the
  10966. # expansion.
  10967. for file in `sed -n "
  10968. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  10969. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  10970. # Make sure the directory exists.
  10971. test -f "$dirpart/$file" && continue
  10972. fdir=`$as_dirname -- "$file" ||
  10973. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10974. X"$file" : 'X\(//\)[^/]' \| \
  10975. X"$file" : 'X\(//\)$' \| \
  10976. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  10977. $as_echo X"$file" |
  10978. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10979. s//\1/
  10980. q
  10981. }
  10982. /^X\(\/\/\)[^/].*/{
  10983. s//\1/
  10984. q
  10985. }
  10986. /^X\(\/\/\)$/{
  10987. s//\1/
  10988. q
  10989. }
  10990. /^X\(\/\).*/{
  10991. s//\1/
  10992. q
  10993. }
  10994. s/.*/./; q'`
  10995. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  10996. # echo "creating $dirpart/$file"
  10997. echo '# dummy' > "$dirpart/$file"
  10998. done
  10999. done
  11000. }
  11001. ;;
  11002. "libtool":C)
  11003. # See if we are running on zsh, and set the options which allow our
  11004. # commands through without removal of \ escapes.
  11005. if test -n "${ZSH_VERSION+set}" ; then
  11006. setopt NO_GLOB_SUBST
  11007. fi
  11008. cfgfile="${ofile}T"
  11009. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  11010. $RM "$cfgfile"
  11011. cat <<_LT_EOF >> "$cfgfile"
  11012. #! $SHELL
  11013. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11014. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  11015. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11016. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11017. #
  11018. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11019. # 2006, 2007, 2008 Free Software Foundation, Inc.
  11020. # Written by Gordon Matzigkeit, 1996
  11021. #
  11022. # This file is part of GNU Libtool.
  11023. #
  11024. # GNU Libtool is free software; you can redistribute it and/or
  11025. # modify it under the terms of the GNU General Public License as
  11026. # published by the Free Software Foundation; either version 2 of
  11027. # the License, or (at your option) any later version.
  11028. #
  11029. # As a special exception to the GNU General Public License,
  11030. # if you distribute this file as part of a program or library that
  11031. # is built using GNU Libtool, you may include this file under the
  11032. # same distribution terms that you use for the rest of that program.
  11033. #
  11034. # GNU Libtool is distributed in the hope that it will be useful,
  11035. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11036. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11037. # GNU General Public License for more details.
  11038. #
  11039. # You should have received a copy of the GNU General Public License
  11040. # along with GNU Libtool; see the file COPYING. If not, a copy
  11041. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11042. # obtained by writing to the Free Software Foundation, Inc.,
  11043. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11044. # The names of the tagged configurations supported by this script.
  11045. available_tags=""
  11046. # ### BEGIN LIBTOOL CONFIG
  11047. # Which release of libtool.m4 was used?
  11048. macro_version=$macro_version
  11049. macro_revision=$macro_revision
  11050. # Whether or not to build shared libraries.
  11051. build_libtool_libs=$enable_shared
  11052. # Whether or not to build static libraries.
  11053. build_old_libs=$enable_static
  11054. # What type of objects to build.
  11055. pic_mode=$pic_mode
  11056. # Whether or not to optimize for fast installation.
  11057. fast_install=$enable_fast_install
  11058. # The host system.
  11059. host_alias=$host_alias
  11060. host=$host
  11061. host_os=$host_os
  11062. # The build system.
  11063. build_alias=$build_alias
  11064. build=$build
  11065. build_os=$build_os
  11066. # A sed program that does not truncate output.
  11067. SED=$lt_SED
  11068. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11069. Xsed="\$SED -e 1s/^X//"
  11070. # A grep program that handles long lines.
  11071. GREP=$lt_GREP
  11072. # An ERE matcher.
  11073. EGREP=$lt_EGREP
  11074. # A literal string matcher.
  11075. FGREP=$lt_FGREP
  11076. # A BSD- or MS-compatible name lister.
  11077. NM=$lt_NM
  11078. # Whether we need soft or hard links.
  11079. LN_S=$lt_LN_S
  11080. # What is the maximum length of a command?
  11081. max_cmd_len=$max_cmd_len
  11082. # Object file suffix (normally "o").
  11083. objext=$ac_objext
  11084. # Executable file suffix (normally "").
  11085. exeext=$exeext
  11086. # whether the shell understands "unset".
  11087. lt_unset=$lt_unset
  11088. # turn spaces into newlines.
  11089. SP2NL=$lt_lt_SP2NL
  11090. # turn newlines into spaces.
  11091. NL2SP=$lt_lt_NL2SP
  11092. # How to create reloadable object files.
  11093. reload_flag=$lt_reload_flag
  11094. reload_cmds=$lt_reload_cmds
  11095. # An object symbol dumper.
  11096. OBJDUMP=$lt_OBJDUMP
  11097. # Method to check whether dependent libraries are shared objects.
  11098. deplibs_check_method=$lt_deplibs_check_method
  11099. # Command to use when deplibs_check_method == "file_magic".
  11100. file_magic_cmd=$lt_file_magic_cmd
  11101. # The archiver.
  11102. AR=$lt_AR
  11103. AR_FLAGS=$lt_AR_FLAGS
  11104. # A symbol stripping program.
  11105. STRIP=$lt_STRIP
  11106. # Commands used to install an old-style archive.
  11107. RANLIB=$lt_RANLIB
  11108. old_postinstall_cmds=$lt_old_postinstall_cmds
  11109. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11110. # A C compiler.
  11111. LTCC=$lt_CC
  11112. # LTCC compiler flags.
  11113. LTCFLAGS=$lt_CFLAGS
  11114. # Take the output of nm and produce a listing of raw symbols and C names.
  11115. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11116. # Transform the output of nm in a proper C declaration.
  11117. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11118. # Transform the output of nm in a C name address pair.
  11119. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11120. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11121. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11122. # The name of the directory that contains temporary libtool files.
  11123. objdir=$objdir
  11124. # Shell to use when invoking shell scripts.
  11125. SHELL=$lt_SHELL
  11126. # An echo program that does not interpret backslashes.
  11127. ECHO=$lt_ECHO
  11128. # Used to examine libraries when file_magic_cmd begins with "file".
  11129. MAGIC_CMD=$MAGIC_CMD
  11130. # Must we lock files when doing compilation?
  11131. need_locks=$lt_need_locks
  11132. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  11133. DSYMUTIL=$lt_DSYMUTIL
  11134. # Tool to change global to local symbols on Mac OS X.
  11135. NMEDIT=$lt_NMEDIT
  11136. # Tool to manipulate fat objects and archives on Mac OS X.
  11137. LIPO=$lt_LIPO
  11138. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  11139. OTOOL=$lt_OTOOL
  11140. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  11141. OTOOL64=$lt_OTOOL64
  11142. # Old archive suffix (normally "a").
  11143. libext=$libext
  11144. # Shared library suffix (normally ".so").
  11145. shrext_cmds=$lt_shrext_cmds
  11146. # The commands to extract the exported symbol list from a shared archive.
  11147. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11148. # Variables whose values should be saved in libtool wrapper scripts and
  11149. # restored at link time.
  11150. variables_saved_for_relink=$lt_variables_saved_for_relink
  11151. # Do we need the "lib" prefix for modules?
  11152. need_lib_prefix=$need_lib_prefix
  11153. # Do we need a version for libraries?
  11154. need_version=$need_version
  11155. # Library versioning type.
  11156. version_type=$version_type
  11157. # Shared library runtime path variable.
  11158. runpath_var=$runpath_var
  11159. # Shared library path variable.
  11160. shlibpath_var=$shlibpath_var
  11161. # Is shlibpath searched before the hard-coded library search path?
  11162. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11163. # Format of library name prefix.
  11164. libname_spec=$lt_libname_spec
  11165. # List of archive names. First name is the real one, the rest are links.
  11166. # The last name is the one that the linker finds with -lNAME
  11167. library_names_spec=$lt_library_names_spec
  11168. # The coded name of the library, if different from the real name.
  11169. soname_spec=$lt_soname_spec
  11170. # Command to use after installation of a shared archive.
  11171. postinstall_cmds=$lt_postinstall_cmds
  11172. # Command to use after uninstallation of a shared archive.
  11173. postuninstall_cmds=$lt_postuninstall_cmds
  11174. # Commands used to finish a libtool library installation in a directory.
  11175. finish_cmds=$lt_finish_cmds
  11176. # As "finish_cmds", except a single script fragment to be evaled but
  11177. # not shown.
  11178. finish_eval=$lt_finish_eval
  11179. # Whether we should hardcode library paths into libraries.
  11180. hardcode_into_libs=$hardcode_into_libs
  11181. # Compile-time system search path for libraries.
  11182. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11183. # Run-time system search path for libraries.
  11184. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11185. # Whether dlopen is supported.
  11186. dlopen_support=$enable_dlopen
  11187. # Whether dlopen of programs is supported.
  11188. dlopen_self=$enable_dlopen_self
  11189. # Whether dlopen of statically linked programs is supported.
  11190. dlopen_self_static=$enable_dlopen_self_static
  11191. # Commands to strip libraries.
  11192. old_striplib=$lt_old_striplib
  11193. striplib=$lt_striplib
  11194. # The linker used to build libraries.
  11195. LD=$lt_LD
  11196. # Commands used to build an old-style archive.
  11197. old_archive_cmds=$lt_old_archive_cmds
  11198. # A language specific compiler.
  11199. CC=$lt_compiler
  11200. # Is the compiler the GNU compiler?
  11201. with_gcc=$GCC
  11202. # Compiler flag to turn off builtin functions.
  11203. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11204. # How to pass a linker flag through the compiler.
  11205. wl=$lt_lt_prog_compiler_wl
  11206. # Additional compiler flags for building library objects.
  11207. pic_flag=$lt_lt_prog_compiler_pic
  11208. # Compiler flag to prevent dynamic linking.
  11209. link_static_flag=$lt_lt_prog_compiler_static
  11210. # Does compiler simultaneously support -c and -o options?
  11211. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11212. # Whether or not to add -lc for building shared libraries.
  11213. build_libtool_need_lc=$archive_cmds_need_lc
  11214. # Whether or not to disallow shared libs when runtime libs are static.
  11215. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11216. # Compiler flag to allow reflexive dlopens.
  11217. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11218. # Compiler flag to generate shared objects directly from archives.
  11219. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11220. # Whether the compiler copes with passing no objects directly.
  11221. compiler_needs_object=$lt_compiler_needs_object
  11222. # Create an old-style archive from a shared archive.
  11223. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11224. # Create a temporary old-style archive to link instead of a shared archive.
  11225. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11226. # Commands used to build a shared archive.
  11227. archive_cmds=$lt_archive_cmds
  11228. archive_expsym_cmds=$lt_archive_expsym_cmds
  11229. # Commands used to build a loadable module if different from building
  11230. # a shared archive.
  11231. module_cmds=$lt_module_cmds
  11232. module_expsym_cmds=$lt_module_expsym_cmds
  11233. # Whether we are building with GNU ld or not.
  11234. with_gnu_ld=$lt_with_gnu_ld
  11235. # Flag that allows shared libraries with undefined symbols to be built.
  11236. allow_undefined_flag=$lt_allow_undefined_flag
  11237. # Flag that enforces no undefined symbols.
  11238. no_undefined_flag=$lt_no_undefined_flag
  11239. # Flag to hardcode \$libdir into a binary during linking.
  11240. # This must work even if \$libdir does not exist
  11241. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11242. # If ld is used when linking, flag to hardcode \$libdir into a binary
  11243. # during linking. This must work even if \$libdir does not exist.
  11244. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  11245. # Whether we need a single "-rpath" flag with a separated argument.
  11246. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11247. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11248. # DIR into the resulting binary.
  11249. hardcode_direct=$hardcode_direct
  11250. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11251. # DIR into the resulting binary and the resulting library dependency is
  11252. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11253. # library is relocated.
  11254. hardcode_direct_absolute=$hardcode_direct_absolute
  11255. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11256. # into the resulting binary.
  11257. hardcode_minus_L=$hardcode_minus_L
  11258. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11259. # into the resulting binary.
  11260. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11261. # Set to "yes" if building a shared library automatically hardcodes DIR
  11262. # into the library and all subsequent libraries and executables linked
  11263. # against it.
  11264. hardcode_automatic=$hardcode_automatic
  11265. # Set to yes if linker adds runtime paths of dependent libraries
  11266. # to runtime path list.
  11267. inherit_rpath=$inherit_rpath
  11268. # Whether libtool must link a program against all its dependency libraries.
  11269. link_all_deplibs=$link_all_deplibs
  11270. # Fix the shell variable \$srcfile for the compiler.
  11271. fix_srcfile_path=$lt_fix_srcfile_path
  11272. # Set to "yes" if exported symbols are required.
  11273. always_export_symbols=$always_export_symbols
  11274. # The commands to list exported symbols.
  11275. export_symbols_cmds=$lt_export_symbols_cmds
  11276. # Symbols that should not be listed in the preloaded symbols.
  11277. exclude_expsyms=$lt_exclude_expsyms
  11278. # Symbols that must always be exported.
  11279. include_expsyms=$lt_include_expsyms
  11280. # Commands necessary for linking programs (against libraries) with templates.
  11281. prelink_cmds=$lt_prelink_cmds
  11282. # Specify filename containing input files.
  11283. file_list_spec=$lt_file_list_spec
  11284. # How to hardcode a shared library path into an executable.
  11285. hardcode_action=$hardcode_action
  11286. # ### END LIBTOOL CONFIG
  11287. _LT_EOF
  11288. case $host_os in
  11289. aix3*)
  11290. cat <<\_LT_EOF >> "$cfgfile"
  11291. # AIX sometimes has problems with the GCC collect2 program. For some
  11292. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11293. # vanish in a puff of smoke.
  11294. if test "X${COLLECT_NAMES+set}" != Xset; then
  11295. COLLECT_NAMES=
  11296. export COLLECT_NAMES
  11297. fi
  11298. _LT_EOF
  11299. ;;
  11300. esac
  11301. ltmain="$ac_aux_dir/ltmain.sh"
  11302. # We use sed instead of cat because bash on DJGPP gets confused if
  11303. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11304. # text mode, it properly converts lines to CR/LF. This bash problem
  11305. # is reportedly fixed, but why not run on old versions too?
  11306. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  11307. || (rm -f "$cfgfile"; exit 1)
  11308. case $xsi_shell in
  11309. yes)
  11310. cat << \_LT_EOF >> "$cfgfile"
  11311. # func_dirname file append nondir_replacement
  11312. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11313. # otherwise set result to NONDIR_REPLACEMENT.
  11314. func_dirname ()
  11315. {
  11316. case ${1} in
  11317. */*) func_dirname_result="${1%/*}${2}" ;;
  11318. * ) func_dirname_result="${3}" ;;
  11319. esac
  11320. }
  11321. # func_basename file
  11322. func_basename ()
  11323. {
  11324. func_basename_result="${1##*/}"
  11325. }
  11326. # func_dirname_and_basename file append nondir_replacement
  11327. # perform func_basename and func_dirname in a single function
  11328. # call:
  11329. # dirname: Compute the dirname of FILE. If nonempty,
  11330. # add APPEND to the result, otherwise set result
  11331. # to NONDIR_REPLACEMENT.
  11332. # value returned in "$func_dirname_result"
  11333. # basename: Compute filename of FILE.
  11334. # value retuned in "$func_basename_result"
  11335. # Implementation must be kept synchronized with func_dirname
  11336. # and func_basename. For efficiency, we do not delegate to
  11337. # those functions but instead duplicate the functionality here.
  11338. func_dirname_and_basename ()
  11339. {
  11340. case ${1} in
  11341. */*) func_dirname_result="${1%/*}${2}" ;;
  11342. * ) func_dirname_result="${3}" ;;
  11343. esac
  11344. func_basename_result="${1##*/}"
  11345. }
  11346. # func_stripname prefix suffix name
  11347. # strip PREFIX and SUFFIX off of NAME.
  11348. # PREFIX and SUFFIX must not contain globbing or regex special
  11349. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11350. # dot (in which case that matches only a dot).
  11351. func_stripname ()
  11352. {
  11353. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  11354. # positional parameters, so assign one to ordinary parameter first.
  11355. func_stripname_result=${3}
  11356. func_stripname_result=${func_stripname_result#"${1}"}
  11357. func_stripname_result=${func_stripname_result%"${2}"}
  11358. }
  11359. # func_opt_split
  11360. func_opt_split ()
  11361. {
  11362. func_opt_split_opt=${1%%=*}
  11363. func_opt_split_arg=${1#*=}
  11364. }
  11365. # func_lo2o object
  11366. func_lo2o ()
  11367. {
  11368. case ${1} in
  11369. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11370. *) func_lo2o_result=${1} ;;
  11371. esac
  11372. }
  11373. # func_xform libobj-or-source
  11374. func_xform ()
  11375. {
  11376. func_xform_result=${1%.*}.lo
  11377. }
  11378. # func_arith arithmetic-term...
  11379. func_arith ()
  11380. {
  11381. func_arith_result=$(( $* ))
  11382. }
  11383. # func_len string
  11384. # STRING may not start with a hyphen.
  11385. func_len ()
  11386. {
  11387. func_len_result=${#1}
  11388. }
  11389. _LT_EOF
  11390. ;;
  11391. *) # Bourne compatible functions.
  11392. cat << \_LT_EOF >> "$cfgfile"
  11393. # func_dirname file append nondir_replacement
  11394. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11395. # otherwise set result to NONDIR_REPLACEMENT.
  11396. func_dirname ()
  11397. {
  11398. # Extract subdirectory from the argument.
  11399. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  11400. if test "X$func_dirname_result" = "X${1}"; then
  11401. func_dirname_result="${3}"
  11402. else
  11403. func_dirname_result="$func_dirname_result${2}"
  11404. fi
  11405. }
  11406. # func_basename file
  11407. func_basename ()
  11408. {
  11409. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  11410. }
  11411. # func_stripname prefix suffix name
  11412. # strip PREFIX and SUFFIX off of NAME.
  11413. # PREFIX and SUFFIX must not contain globbing or regex special
  11414. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11415. # dot (in which case that matches only a dot).
  11416. # func_strip_suffix prefix name
  11417. func_stripname ()
  11418. {
  11419. case ${2} in
  11420. .*) func_stripname_result=`$ECHO "X${3}" \
  11421. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  11422. *) func_stripname_result=`$ECHO "X${3}" \
  11423. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  11424. esac
  11425. }
  11426. # sed scripts:
  11427. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  11428. my_sed_long_arg='1s/^-[^=]*=//'
  11429. # func_opt_split
  11430. func_opt_split ()
  11431. {
  11432. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  11433. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  11434. }
  11435. # func_lo2o object
  11436. func_lo2o ()
  11437. {
  11438. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  11439. }
  11440. # func_xform libobj-or-source
  11441. func_xform ()
  11442. {
  11443. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  11444. }
  11445. # func_arith arithmetic-term...
  11446. func_arith ()
  11447. {
  11448. func_arith_result=`expr "$@"`
  11449. }
  11450. # func_len string
  11451. # STRING may not start with a hyphen.
  11452. func_len ()
  11453. {
  11454. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  11455. }
  11456. _LT_EOF
  11457. esac
  11458. case $lt_shell_append in
  11459. yes)
  11460. cat << \_LT_EOF >> "$cfgfile"
  11461. # func_append var value
  11462. # Append VALUE to the end of shell variable VAR.
  11463. func_append ()
  11464. {
  11465. eval "$1+=\$2"
  11466. }
  11467. _LT_EOF
  11468. ;;
  11469. *)
  11470. cat << \_LT_EOF >> "$cfgfile"
  11471. # func_append var value
  11472. # Append VALUE to the end of shell variable VAR.
  11473. func_append ()
  11474. {
  11475. eval "$1=\$$1\$2"
  11476. }
  11477. _LT_EOF
  11478. ;;
  11479. esac
  11480. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  11481. || (rm -f "$cfgfile"; exit 1)
  11482. mv -f "$cfgfile" "$ofile" ||
  11483. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11484. chmod +x "$ofile"
  11485. ;;
  11486. esac
  11487. done # for ac_tag
  11488. as_fn_exit 0
  11489. _ACEOF
  11490. ac_clean_files=$ac_clean_files_save
  11491. test $ac_write_fail = 0 ||
  11492. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  11493. # configure is writing to config.log, and then calls config.status.
  11494. # config.status does its own redirection, appending to config.log.
  11495. # Unfortunately, on DOS this fails, as config.log is still kept open
  11496. # by configure, so config.status won't be able to write to it; its
  11497. # output is simply discarded. So we exec the FD to /dev/null,
  11498. # effectively closing config.log, so it can be properly (re)opened and
  11499. # appended to by config.status. When coming back to configure, we
  11500. # need to make the FD available again.
  11501. if test "$no_create" != yes; then
  11502. ac_cs_success=:
  11503. ac_config_status_args=
  11504. test "$silent" = yes &&
  11505. ac_config_status_args="$ac_config_status_args --quiet"
  11506. exec 5>/dev/null
  11507. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11508. exec 5>>config.log
  11509. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11510. # would make configure fail if this is the last instruction.
  11511. $ac_cs_success || as_fn_exit 1
  11512. fi
  11513. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11514. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11515. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11516. fi