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

13840 lines
402 KiB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for GLPK 4.57.
  4. #
  5. # Report bugs to <bug-glpk@gnu.org>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-glpk@gnu.org
  259. $0: about your system, including any error possibly output
  260. $0: before this message. Then install a modern shell, or
  261. $0: manually run the script under such a shell if you do
  262. $0: have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='GLPK'
  542. PACKAGE_TARNAME='glpk'
  543. PACKAGE_VERSION='4.57'
  544. PACKAGE_STRING='GLPK 4.57'
  545. PACKAGE_BUGREPORT='bug-glpk@gnu.org'
  546. PACKAGE_URL=''
  547. ac_unique_file="src/glpk.h"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. LIBOBJS
  587. CPP
  588. OTOOL64
  589. OTOOL
  590. LIPO
  591. NMEDIT
  592. DSYMUTIL
  593. MANIFEST_TOOL
  594. RANLIB
  595. ac_ct_AR
  596. AR
  597. DLLTOOL
  598. OBJDUMP
  599. LN_S
  600. NM
  601. ac_ct_DUMPBIN
  602. DUMPBIN
  603. LD
  604. FGREP
  605. EGREP
  606. GREP
  607. SED
  608. host_os
  609. host_vendor
  610. host_cpu
  611. host
  612. build_os
  613. build_vendor
  614. build_cpu
  615. build
  616. LIBTOOL
  617. am__fastdepCC_FALSE
  618. am__fastdepCC_TRUE
  619. CCDEPMODE
  620. am__nodep
  621. AMDEPBACKSLASH
  622. AMDEP_FALSE
  623. AMDEP_TRUE
  624. am__quote
  625. am__include
  626. DEPDIR
  627. OBJEXT
  628. EXEEXT
  629. ac_ct_CC
  630. CPPFLAGS
  631. LDFLAGS
  632. CFLAGS
  633. CC
  634. am__untar
  635. am__tar
  636. AMTAR
  637. am__leading_dot
  638. SET_MAKE
  639. AWK
  640. mkdir_p
  641. MKDIR_P
  642. INSTALL_STRIP_PROGRAM
  643. STRIP
  644. install_sh
  645. MAKEINFO
  646. AUTOHEADER
  647. AUTOMAKE
  648. AUTOCONF
  649. ACLOCAL
  650. VERSION
  651. PACKAGE
  652. CYGPATH_W
  653. am__isrc
  654. INSTALL_DATA
  655. INSTALL_SCRIPT
  656. INSTALL_PROGRAM
  657. target_alias
  658. host_alias
  659. build_alias
  660. LIBS
  661. ECHO_T
  662. ECHO_N
  663. ECHO_C
  664. DEFS
  665. mandir
  666. localedir
  667. libdir
  668. psdir
  669. pdfdir
  670. dvidir
  671. htmldir
  672. infodir
  673. docdir
  674. oldincludedir
  675. includedir
  676. localstatedir
  677. sharedstatedir
  678. sysconfdir
  679. datadir
  680. datarootdir
  681. libexecdir
  682. sbindir
  683. bindir
  684. program_transform_name
  685. prefix
  686. exec_prefix
  687. PACKAGE_URL
  688. PACKAGE_BUGREPORT
  689. PACKAGE_STRING
  690. PACKAGE_VERSION
  691. PACKAGE_TARNAME
  692. PACKAGE_NAME
  693. PATH_SEPARATOR
  694. SHELL'
  695. ac_subst_files=''
  696. ac_user_opts='
  697. enable_option_checking
  698. with_gmp
  699. enable_dl
  700. enable_odbc
  701. enable_mysql
  702. enable_dependency_tracking
  703. enable_shared
  704. enable_static
  705. with_pic
  706. enable_fast_install
  707. with_gnu_ld
  708. with_sysroot
  709. enable_libtool_lock
  710. '
  711. ac_precious_vars='build_alias
  712. host_alias
  713. target_alias
  714. CC
  715. CFLAGS
  716. LDFLAGS
  717. LIBS
  718. CPPFLAGS
  719. CPP'
  720. # Initialize some variables set by options.
  721. ac_init_help=
  722. ac_init_version=false
  723. ac_unrecognized_opts=
  724. ac_unrecognized_sep=
  725. # The variables have the same names as the options, with
  726. # dashes changed to underlines.
  727. cache_file=/dev/null
  728. exec_prefix=NONE
  729. no_create=
  730. no_recursion=
  731. prefix=NONE
  732. program_prefix=NONE
  733. program_suffix=NONE
  734. program_transform_name=s,x,x,
  735. silent=
  736. site=
  737. srcdir=
  738. verbose=
  739. x_includes=NONE
  740. x_libraries=NONE
  741. # Installation directory options.
  742. # These are left unexpanded so users can "make install exec_prefix=/foo"
  743. # and all the variables that are supposed to be based on exec_prefix
  744. # by default will actually change.
  745. # Use braces instead of parens because sh, perl, etc. also accept them.
  746. # (The list follows the same order as the GNU Coding Standards.)
  747. bindir='${exec_prefix}/bin'
  748. sbindir='${exec_prefix}/sbin'
  749. libexecdir='${exec_prefix}/libexec'
  750. datarootdir='${prefix}/share'
  751. datadir='${datarootdir}'
  752. sysconfdir='${prefix}/etc'
  753. sharedstatedir='${prefix}/com'
  754. localstatedir='${prefix}/var'
  755. includedir='${prefix}/include'
  756. oldincludedir='/usr/include'
  757. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  758. infodir='${datarootdir}/info'
  759. htmldir='${docdir}'
  760. dvidir='${docdir}'
  761. pdfdir='${docdir}'
  762. psdir='${docdir}'
  763. libdir='${exec_prefix}/lib'
  764. localedir='${datarootdir}/locale'
  765. mandir='${datarootdir}/man'
  766. ac_prev=
  767. ac_dashdash=
  768. for ac_option
  769. do
  770. # If the previous option needs an argument, assign it.
  771. if test -n "$ac_prev"; then
  772. eval $ac_prev=\$ac_option
  773. ac_prev=
  774. continue
  775. fi
  776. case $ac_option in
  777. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  778. *=) ac_optarg= ;;
  779. *) ac_optarg=yes ;;
  780. esac
  781. # Accept the important Cygnus configure options, so we can diagnose typos.
  782. case $ac_dashdash$ac_option in
  783. --)
  784. ac_dashdash=yes ;;
  785. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  786. ac_prev=bindir ;;
  787. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  788. bindir=$ac_optarg ;;
  789. -build | --build | --buil | --bui | --bu)
  790. ac_prev=build_alias ;;
  791. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  792. build_alias=$ac_optarg ;;
  793. -cache-file | --cache-file | --cache-fil | --cache-fi \
  794. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  795. ac_prev=cache_file ;;
  796. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  797. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  798. cache_file=$ac_optarg ;;
  799. --config-cache | -C)
  800. cache_file=config.cache ;;
  801. -datadir | --datadir | --datadi | --datad)
  802. ac_prev=datadir ;;
  803. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  804. datadir=$ac_optarg ;;
  805. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  806. | --dataroo | --dataro | --datar)
  807. ac_prev=datarootdir ;;
  808. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  809. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  810. datarootdir=$ac_optarg ;;
  811. -disable-* | --disable-*)
  812. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  813. # Reject names that are not valid shell variable names.
  814. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  815. as_fn_error $? "invalid feature name: $ac_useropt"
  816. ac_useropt_orig=$ac_useropt
  817. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  818. case $ac_user_opts in
  819. *"
  820. "enable_$ac_useropt"
  821. "*) ;;
  822. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  823. ac_unrecognized_sep=', ';;
  824. esac
  825. eval enable_$ac_useropt=no ;;
  826. -docdir | --docdir | --docdi | --doc | --do)
  827. ac_prev=docdir ;;
  828. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  829. docdir=$ac_optarg ;;
  830. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  831. ac_prev=dvidir ;;
  832. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  833. dvidir=$ac_optarg ;;
  834. -enable-* | --enable-*)
  835. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  836. # Reject names that are not valid shell variable names.
  837. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  838. as_fn_error $? "invalid feature name: $ac_useropt"
  839. ac_useropt_orig=$ac_useropt
  840. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  841. case $ac_user_opts in
  842. *"
  843. "enable_$ac_useropt"
  844. "*) ;;
  845. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  846. ac_unrecognized_sep=', ';;
  847. esac
  848. eval enable_$ac_useropt=\$ac_optarg ;;
  849. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  850. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  851. | --exec | --exe | --ex)
  852. ac_prev=exec_prefix ;;
  853. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  854. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  855. | --exec=* | --exe=* | --ex=*)
  856. exec_prefix=$ac_optarg ;;
  857. -gas | --gas | --ga | --g)
  858. # Obsolete; use --with-gas.
  859. with_gas=yes ;;
  860. -help | --help | --hel | --he | -h)
  861. ac_init_help=long ;;
  862. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  863. ac_init_help=recursive ;;
  864. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  865. ac_init_help=short ;;
  866. -host | --host | --hos | --ho)
  867. ac_prev=host_alias ;;
  868. -host=* | --host=* | --hos=* | --ho=*)
  869. host_alias=$ac_optarg ;;
  870. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  871. ac_prev=htmldir ;;
  872. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  873. | --ht=*)
  874. htmldir=$ac_optarg ;;
  875. -includedir | --includedir | --includedi | --included | --include \
  876. | --includ | --inclu | --incl | --inc)
  877. ac_prev=includedir ;;
  878. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  879. | --includ=* | --inclu=* | --incl=* | --inc=*)
  880. includedir=$ac_optarg ;;
  881. -infodir | --infodir | --infodi | --infod | --info | --inf)
  882. ac_prev=infodir ;;
  883. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  884. infodir=$ac_optarg ;;
  885. -libdir | --libdir | --libdi | --libd)
  886. ac_prev=libdir ;;
  887. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  888. libdir=$ac_optarg ;;
  889. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  890. | --libexe | --libex | --libe)
  891. ac_prev=libexecdir ;;
  892. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  893. | --libexe=* | --libex=* | --libe=*)
  894. libexecdir=$ac_optarg ;;
  895. -localedir | --localedir | --localedi | --localed | --locale)
  896. ac_prev=localedir ;;
  897. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  898. localedir=$ac_optarg ;;
  899. -localstatedir | --localstatedir | --localstatedi | --localstated \
  900. | --localstate | --localstat | --localsta | --localst | --locals)
  901. ac_prev=localstatedir ;;
  902. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  903. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  904. localstatedir=$ac_optarg ;;
  905. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  906. ac_prev=mandir ;;
  907. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  908. mandir=$ac_optarg ;;
  909. -nfp | --nfp | --nf)
  910. # Obsolete; use --without-fp.
  911. with_fp=no ;;
  912. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  913. | --no-cr | --no-c | -n)
  914. no_create=yes ;;
  915. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  916. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  917. no_recursion=yes ;;
  918. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  919. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  920. | --oldin | --oldi | --old | --ol | --o)
  921. ac_prev=oldincludedir ;;
  922. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  923. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  924. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  925. oldincludedir=$ac_optarg ;;
  926. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  927. ac_prev=prefix ;;
  928. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  929. prefix=$ac_optarg ;;
  930. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  931. | --program-pre | --program-pr | --program-p)
  932. ac_prev=program_prefix ;;
  933. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  934. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  935. program_prefix=$ac_optarg ;;
  936. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  937. | --program-suf | --program-su | --program-s)
  938. ac_prev=program_suffix ;;
  939. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  940. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  941. program_suffix=$ac_optarg ;;
  942. -program-transform-name | --program-transform-name \
  943. | --program-transform-nam | --program-transform-na \
  944. | --program-transform-n | --program-transform- \
  945. | --program-transform | --program-transfor \
  946. | --program-transfo | --program-transf \
  947. | --program-trans | --program-tran \
  948. | --progr-tra | --program-tr | --program-t)
  949. ac_prev=program_transform_name ;;
  950. -program-transform-name=* | --program-transform-name=* \
  951. | --program-transform-nam=* | --program-transform-na=* \
  952. | --program-transform-n=* | --program-transform-=* \
  953. | --program-transform=* | --program-transfor=* \
  954. | --program-transfo=* | --program-transf=* \
  955. | --program-trans=* | --program-tran=* \
  956. | --progr-tra=* | --program-tr=* | --program-t=*)
  957. program_transform_name=$ac_optarg ;;
  958. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  959. ac_prev=pdfdir ;;
  960. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  961. pdfdir=$ac_optarg ;;
  962. -psdir | --psdir | --psdi | --psd | --ps)
  963. ac_prev=psdir ;;
  964. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  965. psdir=$ac_optarg ;;
  966. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  967. | -silent | --silent | --silen | --sile | --sil)
  968. silent=yes ;;
  969. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  970. ac_prev=sbindir ;;
  971. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  972. | --sbi=* | --sb=*)
  973. sbindir=$ac_optarg ;;
  974. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  975. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  976. | --sharedst | --shareds | --shared | --share | --shar \
  977. | --sha | --sh)
  978. ac_prev=sharedstatedir ;;
  979. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  980. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  981. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  982. | --sha=* | --sh=*)
  983. sharedstatedir=$ac_optarg ;;
  984. -site | --site | --sit)
  985. ac_prev=site ;;
  986. -site=* | --site=* | --sit=*)
  987. site=$ac_optarg ;;
  988. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  989. ac_prev=srcdir ;;
  990. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  991. srcdir=$ac_optarg ;;
  992. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  993. | --syscon | --sysco | --sysc | --sys | --sy)
  994. ac_prev=sysconfdir ;;
  995. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  996. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  997. sysconfdir=$ac_optarg ;;
  998. -target | --target | --targe | --targ | --tar | --ta | --t)
  999. ac_prev=target_alias ;;
  1000. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1001. target_alias=$ac_optarg ;;
  1002. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1003. verbose=yes ;;
  1004. -version | --version | --versio | --versi | --vers | -V)
  1005. ac_init_version=: ;;
  1006. -with-* | --with-*)
  1007. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1008. # Reject names that are not valid shell variable names.
  1009. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1010. as_fn_error $? "invalid package name: $ac_useropt"
  1011. ac_useropt_orig=$ac_useropt
  1012. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1013. case $ac_user_opts in
  1014. *"
  1015. "with_$ac_useropt"
  1016. "*) ;;
  1017. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1018. ac_unrecognized_sep=', ';;
  1019. esac
  1020. eval with_$ac_useropt=\$ac_optarg ;;
  1021. -without-* | --without-*)
  1022. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1023. # Reject names that are not valid shell variable names.
  1024. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1025. as_fn_error $? "invalid package name: $ac_useropt"
  1026. ac_useropt_orig=$ac_useropt
  1027. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1028. case $ac_user_opts in
  1029. *"
  1030. "with_$ac_useropt"
  1031. "*) ;;
  1032. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1033. ac_unrecognized_sep=', ';;
  1034. esac
  1035. eval with_$ac_useropt=no ;;
  1036. --x)
  1037. # Obsolete; use --with-x.
  1038. with_x=yes ;;
  1039. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1040. | --x-incl | --x-inc | --x-in | --x-i)
  1041. ac_prev=x_includes ;;
  1042. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1043. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1044. x_includes=$ac_optarg ;;
  1045. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1046. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1047. ac_prev=x_libraries ;;
  1048. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1049. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1050. x_libraries=$ac_optarg ;;
  1051. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1052. Try \`$0 --help' for more information"
  1053. ;;
  1054. *=*)
  1055. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1056. # Reject names that are not valid shell variable names.
  1057. case $ac_envvar in #(
  1058. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1059. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1060. esac
  1061. eval $ac_envvar=\$ac_optarg
  1062. export $ac_envvar ;;
  1063. *)
  1064. # FIXME: should be removed in autoconf 3.0.
  1065. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1066. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1067. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1068. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1069. ;;
  1070. esac
  1071. done
  1072. if test -n "$ac_prev"; then
  1073. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1074. as_fn_error $? "missing argument to $ac_option"
  1075. fi
  1076. if test -n "$ac_unrecognized_opts"; then
  1077. case $enable_option_checking in
  1078. no) ;;
  1079. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1080. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1081. esac
  1082. fi
  1083. # Check all directory arguments for consistency.
  1084. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1085. datadir sysconfdir sharedstatedir localstatedir includedir \
  1086. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1087. libdir localedir mandir
  1088. do
  1089. eval ac_val=\$$ac_var
  1090. # Remove trailing slashes.
  1091. case $ac_val in
  1092. */ )
  1093. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1094. eval $ac_var=\$ac_val;;
  1095. esac
  1096. # Be sure to have absolute directory names.
  1097. case $ac_val in
  1098. [\\/$]* | ?:[\\/]* ) continue;;
  1099. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1100. esac
  1101. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1102. done
  1103. # There might be people who depend on the old broken behavior: `$host'
  1104. # used to hold the argument of --host etc.
  1105. # FIXME: To remove some day.
  1106. build=$build_alias
  1107. host=$host_alias
  1108. target=$target_alias
  1109. # FIXME: To remove some day.
  1110. if test "x$host_alias" != x; then
  1111. if test "x$build_alias" = x; then
  1112. cross_compiling=maybe
  1113. elif test "x$build_alias" != "x$host_alias"; then
  1114. cross_compiling=yes
  1115. fi
  1116. fi
  1117. ac_tool_prefix=
  1118. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1119. test "$silent" = yes && exec 6>/dev/null
  1120. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1121. ac_ls_di=`ls -di .` &&
  1122. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1123. as_fn_error $? "working directory cannot be determined"
  1124. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1125. as_fn_error $? "pwd does not report name of working directory"
  1126. # Find the source files, if location was not specified.
  1127. if test -z "$srcdir"; then
  1128. ac_srcdir_defaulted=yes
  1129. # Try the directory containing this script, then the parent directory.
  1130. ac_confdir=`$as_dirname -- "$as_myself" ||
  1131. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1132. X"$as_myself" : 'X\(//\)[^/]' \| \
  1133. X"$as_myself" : 'X\(//\)$' \| \
  1134. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1135. $as_echo X"$as_myself" |
  1136. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1137. s//\1/
  1138. q
  1139. }
  1140. /^X\(\/\/\)[^/].*/{
  1141. s//\1/
  1142. q
  1143. }
  1144. /^X\(\/\/\)$/{
  1145. s//\1/
  1146. q
  1147. }
  1148. /^X\(\/\).*/{
  1149. s//\1/
  1150. q
  1151. }
  1152. s/.*/./; q'`
  1153. srcdir=$ac_confdir
  1154. if test ! -r "$srcdir/$ac_unique_file"; then
  1155. srcdir=..
  1156. fi
  1157. else
  1158. ac_srcdir_defaulted=no
  1159. fi
  1160. if test ! -r "$srcdir/$ac_unique_file"; then
  1161. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1162. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1163. fi
  1164. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1165. ac_abs_confdir=`(
  1166. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1167. pwd)`
  1168. # When building in place, set srcdir=.
  1169. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1170. srcdir=.
  1171. fi
  1172. # Remove unnecessary trailing slashes from srcdir.
  1173. # Double slashes in file names in object file debugging info
  1174. # mess up M-x gdb in Emacs.
  1175. case $srcdir in
  1176. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1177. esac
  1178. for ac_var in $ac_precious_vars; do
  1179. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1180. eval ac_env_${ac_var}_value=\$${ac_var}
  1181. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1182. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1183. done
  1184. #
  1185. # Report the --help message.
  1186. #
  1187. if test "$ac_init_help" = "long"; then
  1188. # Omit some internal or obsolete options to make the list less imposing.
  1189. # This message is too long to be a string in the A/UX 3.1 sh.
  1190. cat <<_ACEOF
  1191. \`configure' configures GLPK 4.57 to adapt to many kinds of systems.
  1192. Usage: $0 [OPTION]... [VAR=VALUE]...
  1193. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1194. VAR=VALUE. See below for descriptions of some of the useful variables.
  1195. Defaults for the options are specified in brackets.
  1196. Configuration:
  1197. -h, --help display this help and exit
  1198. --help=short display options specific to this package
  1199. --help=recursive display the short help of all the included packages
  1200. -V, --version display version information and exit
  1201. -q, --quiet, --silent do not print \`checking ...' messages
  1202. --cache-file=FILE cache test results in FILE [disabled]
  1203. -C, --config-cache alias for \`--cache-file=config.cache'
  1204. -n, --no-create do not create output files
  1205. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1206. Installation directories:
  1207. --prefix=PREFIX install architecture-independent files in PREFIX
  1208. [$ac_default_prefix]
  1209. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1210. [PREFIX]
  1211. By default, \`make install' will install all the files in
  1212. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1213. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1214. for instance \`--prefix=\$HOME'.
  1215. For better control, use the options below.
  1216. Fine tuning of the installation directories:
  1217. --bindir=DIR user executables [EPREFIX/bin]
  1218. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1219. --libexecdir=DIR program executables [EPREFIX/libexec]
  1220. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1221. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1222. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1223. --libdir=DIR object code libraries [EPREFIX/lib]
  1224. --includedir=DIR C header files [PREFIX/include]
  1225. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1226. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1227. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1228. --infodir=DIR info documentation [DATAROOTDIR/info]
  1229. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1230. --mandir=DIR man documentation [DATAROOTDIR/man]
  1231. --docdir=DIR documentation root [DATAROOTDIR/doc/glpk]
  1232. --htmldir=DIR html documentation [DOCDIR]
  1233. --dvidir=DIR dvi documentation [DOCDIR]
  1234. --pdfdir=DIR pdf documentation [DOCDIR]
  1235. --psdir=DIR ps documentation [DOCDIR]
  1236. _ACEOF
  1237. cat <<\_ACEOF
  1238. Program names:
  1239. --program-prefix=PREFIX prepend PREFIX to installed program names
  1240. --program-suffix=SUFFIX append SUFFIX to installed program names
  1241. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1242. System types:
  1243. --build=BUILD configure for building on BUILD [guessed]
  1244. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1245. _ACEOF
  1246. fi
  1247. if test -n "$ac_init_help"; then
  1248. case $ac_init_help in
  1249. short | recursive ) echo "Configuration of GLPK 4.57:";;
  1250. esac
  1251. cat <<\_ACEOF
  1252. Optional Features:
  1253. --disable-option-checking ignore unrecognized --enable/--with options
  1254. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1255. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1256. --enable-dl enable shared library support [[default=no]]
  1257. --enable-odbc enable MathProg ODBC support [[default=no]]
  1258. --enable-mysql enable MathProg MySQL support [[default=no]]
  1259. --enable-dependency-tracking
  1260. do not reject slow dependency extractors
  1261. --disable-dependency-tracking
  1262. speeds up one-time build
  1263. --enable-shared[=PKGS] build shared libraries [default=yes]
  1264. --enable-static[=PKGS] build static libraries [default=yes]
  1265. --enable-fast-install[=PKGS]
  1266. optimize for fast installation [default=yes]
  1267. --disable-libtool-lock avoid locking (might break parallel builds)
  1268. Optional Packages:
  1269. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1270. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1271. --with-gmp use GNU MP bignum library [[default=no]]
  1272. --with-pic try to use only PIC/non-PIC objects [default=use
  1273. both]
  1274. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1275. --with-sysroot=DIR Search for dependent libraries within DIR
  1276. (or the compiler's sysroot if not specified).
  1277. Some influential environment variables:
  1278. CC C compiler command
  1279. CFLAGS C compiler flags
  1280. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1281. nonstandard directory <lib dir>
  1282. LIBS libraries to pass to the linker, e.g. -l<library>
  1283. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1284. you have headers in a nonstandard directory <include dir>
  1285. CPP C preprocessor
  1286. Use these variables to override the choices made by `configure' or to help
  1287. it to find libraries and programs with nonstandard names/locations.
  1288. Report bugs to <bug-glpk@gnu.org>.
  1289. _ACEOF
  1290. ac_status=$?
  1291. fi
  1292. if test "$ac_init_help" = "recursive"; then
  1293. # If there are subdirs, report their specific --help.
  1294. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1295. test -d "$ac_dir" ||
  1296. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1297. continue
  1298. ac_builddir=.
  1299. case "$ac_dir" in
  1300. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1301. *)
  1302. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1303. # A ".." for each directory in $ac_dir_suffix.
  1304. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1305. case $ac_top_builddir_sub in
  1306. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1307. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1308. esac ;;
  1309. esac
  1310. ac_abs_top_builddir=$ac_pwd
  1311. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1312. # for backward compatibility:
  1313. ac_top_builddir=$ac_top_build_prefix
  1314. case $srcdir in
  1315. .) # We are building in place.
  1316. ac_srcdir=.
  1317. ac_top_srcdir=$ac_top_builddir_sub
  1318. ac_abs_top_srcdir=$ac_pwd ;;
  1319. [\\/]* | ?:[\\/]* ) # Absolute name.
  1320. ac_srcdir=$srcdir$ac_dir_suffix;
  1321. ac_top_srcdir=$srcdir
  1322. ac_abs_top_srcdir=$srcdir ;;
  1323. *) # Relative name.
  1324. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1325. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1326. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1327. esac
  1328. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1329. cd "$ac_dir" || { ac_status=$?; continue; }
  1330. # Check for guested configure.
  1331. if test -f "$ac_srcdir/configure.gnu"; then
  1332. echo &&
  1333. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1334. elif test -f "$ac_srcdir/configure"; then
  1335. echo &&
  1336. $SHELL "$ac_srcdir/configure" --help=recursive
  1337. else
  1338. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1339. fi || ac_status=$?
  1340. cd "$ac_pwd" || { ac_status=$?; break; }
  1341. done
  1342. fi
  1343. test -n "$ac_init_help" && exit $ac_status
  1344. if $ac_init_version; then
  1345. cat <<\_ACEOF
  1346. GLPK configure 4.57
  1347. generated by GNU Autoconf 2.69
  1348. Copyright (C) 2012 Free Software Foundation, Inc.
  1349. This configure script is free software; the Free Software Foundation
  1350. gives unlimited permission to copy, distribute and modify it.
  1351. _ACEOF
  1352. exit
  1353. fi
  1354. ## ------------------------ ##
  1355. ## Autoconf initialization. ##
  1356. ## ------------------------ ##
  1357. # ac_fn_c_try_compile LINENO
  1358. # --------------------------
  1359. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1360. ac_fn_c_try_compile ()
  1361. {
  1362. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1363. rm -f conftest.$ac_objext
  1364. if { { ac_try="$ac_compile"
  1365. case "(($ac_try" in
  1366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1367. *) ac_try_echo=$ac_try;;
  1368. esac
  1369. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1370. $as_echo "$ac_try_echo"; } >&5
  1371. (eval "$ac_compile") 2>conftest.err
  1372. ac_status=$?
  1373. if test -s conftest.err; then
  1374. grep -v '^ *+' conftest.err >conftest.er1
  1375. cat conftest.er1 >&5
  1376. mv -f conftest.er1 conftest.err
  1377. fi
  1378. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1379. test $ac_status = 0; } && {
  1380. test -z "$ac_c_werror_flag" ||
  1381. test ! -s conftest.err
  1382. } && test -s conftest.$ac_objext; then :
  1383. ac_retval=0
  1384. else
  1385. $as_echo "$as_me: failed program was:" >&5
  1386. sed 's/^/| /' conftest.$ac_ext >&5
  1387. ac_retval=1
  1388. fi
  1389. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1390. as_fn_set_status $ac_retval
  1391. } # ac_fn_c_try_compile
  1392. # ac_fn_c_try_link LINENO
  1393. # -----------------------
  1394. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1395. ac_fn_c_try_link ()
  1396. {
  1397. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1398. rm -f conftest.$ac_objext conftest$ac_exeext
  1399. if { { ac_try="$ac_link"
  1400. case "(($ac_try" in
  1401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1402. *) ac_try_echo=$ac_try;;
  1403. esac
  1404. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1405. $as_echo "$ac_try_echo"; } >&5
  1406. (eval "$ac_link") 2>conftest.err
  1407. ac_status=$?
  1408. if test -s conftest.err; then
  1409. grep -v '^ *+' conftest.err >conftest.er1
  1410. cat conftest.er1 >&5
  1411. mv -f conftest.er1 conftest.err
  1412. fi
  1413. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1414. test $ac_status = 0; } && {
  1415. test -z "$ac_c_werror_flag" ||
  1416. test ! -s conftest.err
  1417. } && test -s conftest$ac_exeext && {
  1418. test "$cross_compiling" = yes ||
  1419. test -x conftest$ac_exeext
  1420. }; then :
  1421. ac_retval=0
  1422. else
  1423. $as_echo "$as_me: failed program was:" >&5
  1424. sed 's/^/| /' conftest.$ac_ext >&5
  1425. ac_retval=1
  1426. fi
  1427. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1428. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1429. # interfere with the next link command; also delete a directory that is
  1430. # left behind by Apple's compiler. We do this before executing the actions.
  1431. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1432. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1433. as_fn_set_status $ac_retval
  1434. } # ac_fn_c_try_link
  1435. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1436. # -------------------------------------------------------
  1437. # Tests whether HEADER exists and can be compiled using the include files in
  1438. # INCLUDES, setting the cache variable VAR accordingly.
  1439. ac_fn_c_check_header_compile ()
  1440. {
  1441. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1443. $as_echo_n "checking for $2... " >&6; }
  1444. if eval \${$3+:} false; then :
  1445. $as_echo_n "(cached) " >&6
  1446. else
  1447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1448. /* end confdefs.h. */
  1449. $4
  1450. #include <$2>
  1451. _ACEOF
  1452. if ac_fn_c_try_compile "$LINENO"; then :
  1453. eval "$3=yes"
  1454. else
  1455. eval "$3=no"
  1456. fi
  1457. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1458. fi
  1459. eval ac_res=\$$3
  1460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1461. $as_echo "$ac_res" >&6; }
  1462. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1463. } # ac_fn_c_check_header_compile
  1464. # ac_fn_c_try_cpp LINENO
  1465. # ----------------------
  1466. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1467. ac_fn_c_try_cpp ()
  1468. {
  1469. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1470. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1471. case "(($ac_try" in
  1472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1473. *) ac_try_echo=$ac_try;;
  1474. esac
  1475. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1476. $as_echo "$ac_try_echo"; } >&5
  1477. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1478. ac_status=$?
  1479. if test -s conftest.err; then
  1480. grep -v '^ *+' conftest.err >conftest.er1
  1481. cat conftest.er1 >&5
  1482. mv -f conftest.er1 conftest.err
  1483. fi
  1484. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1485. test $ac_status = 0; } > conftest.i && {
  1486. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1487. test ! -s conftest.err
  1488. }; then :
  1489. ac_retval=0
  1490. else
  1491. $as_echo "$as_me: failed program was:" >&5
  1492. sed 's/^/| /' conftest.$ac_ext >&5
  1493. ac_retval=1
  1494. fi
  1495. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1496. as_fn_set_status $ac_retval
  1497. } # ac_fn_c_try_cpp
  1498. # ac_fn_c_try_run LINENO
  1499. # ----------------------
  1500. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1501. # that executables *can* be run.
  1502. ac_fn_c_try_run ()
  1503. {
  1504. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1505. if { { ac_try="$ac_link"
  1506. case "(($ac_try" in
  1507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1508. *) ac_try_echo=$ac_try;;
  1509. esac
  1510. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1511. $as_echo "$ac_try_echo"; } >&5
  1512. (eval "$ac_link") 2>&5
  1513. ac_status=$?
  1514. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1515. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1516. { { case "(($ac_try" in
  1517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1518. *) ac_try_echo=$ac_try;;
  1519. esac
  1520. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1521. $as_echo "$ac_try_echo"; } >&5
  1522. (eval "$ac_try") 2>&5
  1523. ac_status=$?
  1524. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1525. test $ac_status = 0; }; }; then :
  1526. ac_retval=0
  1527. else
  1528. $as_echo "$as_me: program exited with status $ac_status" >&5
  1529. $as_echo "$as_me: failed program was:" >&5
  1530. sed 's/^/| /' conftest.$ac_ext >&5
  1531. ac_retval=$ac_status
  1532. fi
  1533. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1534. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1535. as_fn_set_status $ac_retval
  1536. } # ac_fn_c_try_run
  1537. # ac_fn_c_check_func LINENO FUNC VAR
  1538. # ----------------------------------
  1539. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1540. ac_fn_c_check_func ()
  1541. {
  1542. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1544. $as_echo_n "checking for $2... " >&6; }
  1545. if eval \${$3+:} false; then :
  1546. $as_echo_n "(cached) " >&6
  1547. else
  1548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1549. /* end confdefs.h. */
  1550. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1551. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1552. #define $2 innocuous_$2
  1553. /* System header to define __stub macros and hopefully few prototypes,
  1554. which can conflict with char $2 (); below.
  1555. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1556. <limits.h> exists even on freestanding compilers. */
  1557. #ifdef __STDC__
  1558. # include <limits.h>
  1559. #else
  1560. # include <assert.h>
  1561. #endif
  1562. #undef $2
  1563. /* Override any GCC internal prototype to avoid an error.
  1564. Use char because int might match the return type of a GCC
  1565. builtin and then its argument prototype would still apply. */
  1566. #ifdef __cplusplus
  1567. extern "C"
  1568. #endif
  1569. char $2 ();
  1570. /* The GNU C library defines this for functions which it implements
  1571. to always fail with ENOSYS. Some functions are actually named
  1572. something starting with __ and the normal name is an alias. */
  1573. #if defined __stub_$2 || defined __stub___$2
  1574. choke me
  1575. #endif
  1576. int
  1577. main ()
  1578. {
  1579. return $2 ();
  1580. ;
  1581. return 0;
  1582. }
  1583. _ACEOF
  1584. if ac_fn_c_try_link "$LINENO"; then :
  1585. eval "$3=yes"
  1586. else
  1587. eval "$3=no"
  1588. fi
  1589. rm -f core conftest.err conftest.$ac_objext \
  1590. conftest$ac_exeext conftest.$ac_ext
  1591. fi
  1592. eval ac_res=\$$3
  1593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1594. $as_echo "$ac_res" >&6; }
  1595. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1596. } # ac_fn_c_check_func
  1597. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1598. # -------------------------------------------------------
  1599. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1600. # the include files in INCLUDES and setting the cache variable VAR
  1601. # accordingly.
  1602. ac_fn_c_check_header_mongrel ()
  1603. {
  1604. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1605. if eval \${$3+:} false; then :
  1606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1607. $as_echo_n "checking for $2... " >&6; }
  1608. if eval \${$3+:} false; then :
  1609. $as_echo_n "(cached) " >&6
  1610. fi
  1611. eval ac_res=\$$3
  1612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1613. $as_echo "$ac_res" >&6; }
  1614. else
  1615. # Is the header compilable?
  1616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1617. $as_echo_n "checking $2 usability... " >&6; }
  1618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1619. /* end confdefs.h. */
  1620. $4
  1621. #include <$2>
  1622. _ACEOF
  1623. if ac_fn_c_try_compile "$LINENO"; then :
  1624. ac_header_compiler=yes
  1625. else
  1626. ac_header_compiler=no
  1627. fi
  1628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1630. $as_echo "$ac_header_compiler" >&6; }
  1631. # Is the header present?
  1632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1633. $as_echo_n "checking $2 presence... " >&6; }
  1634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1635. /* end confdefs.h. */
  1636. #include <$2>
  1637. _ACEOF
  1638. if ac_fn_c_try_cpp "$LINENO"; then :
  1639. ac_header_preproc=yes
  1640. else
  1641. ac_header_preproc=no
  1642. fi
  1643. rm -f conftest.err conftest.i conftest.$ac_ext
  1644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1645. $as_echo "$ac_header_preproc" >&6; }
  1646. # So? What about this header?
  1647. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1648. yes:no: )
  1649. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1650. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1652. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1653. ;;
  1654. no:yes:* )
  1655. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1656. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1657. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1658. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1659. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1660. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1661. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1662. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1663. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1664. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1665. ( $as_echo "## ------------------------------- ##
  1666. ## Report this to bug-glpk@gnu.org ##
  1667. ## ------------------------------- ##"
  1668. ) | sed "s/^/$as_me: WARNING: /" >&2
  1669. ;;
  1670. esac
  1671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1672. $as_echo_n "checking for $2... " >&6; }
  1673. if eval \${$3+:} false; then :
  1674. $as_echo_n "(cached) " >&6
  1675. else
  1676. eval "$3=\$ac_header_compiler"
  1677. fi
  1678. eval ac_res=\$$3
  1679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1680. $as_echo "$ac_res" >&6; }
  1681. fi
  1682. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1683. } # ac_fn_c_check_header_mongrel
  1684. cat >config.log <<_ACEOF
  1685. This file contains any messages produced by compilers while
  1686. running configure, to aid debugging if configure makes a mistake.
  1687. It was created by GLPK $as_me 4.57, which was
  1688. generated by GNU Autoconf 2.69. Invocation command line was
  1689. $ $0 $@
  1690. _ACEOF
  1691. exec 5>>config.log
  1692. {
  1693. cat <<_ASUNAME
  1694. ## --------- ##
  1695. ## Platform. ##
  1696. ## --------- ##
  1697. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1698. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1699. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1700. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1701. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1702. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1703. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1704. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1705. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1706. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1707. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1708. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1709. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1710. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1711. _ASUNAME
  1712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1713. for as_dir in $PATH
  1714. do
  1715. IFS=$as_save_IFS
  1716. test -z "$as_dir" && as_dir=.
  1717. $as_echo "PATH: $as_dir"
  1718. done
  1719. IFS=$as_save_IFS
  1720. } >&5
  1721. cat >&5 <<_ACEOF
  1722. ## ----------- ##
  1723. ## Core tests. ##
  1724. ## ----------- ##
  1725. _ACEOF
  1726. # Keep a trace of the command line.
  1727. # Strip out --no-create and --no-recursion so they do not pile up.
  1728. # Strip out --silent because we don't want to record it for future runs.
  1729. # Also quote any args containing shell meta-characters.
  1730. # Make two passes to allow for proper duplicate-argument suppression.
  1731. ac_configure_args=
  1732. ac_configure_args0=
  1733. ac_configure_args1=
  1734. ac_must_keep_next=false
  1735. for ac_pass in 1 2
  1736. do
  1737. for ac_arg
  1738. do
  1739. case $ac_arg in
  1740. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1741. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1742. | -silent | --silent | --silen | --sile | --sil)
  1743. continue ;;
  1744. *\'*)
  1745. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1746. esac
  1747. case $ac_pass in
  1748. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1749. 2)
  1750. as_fn_append ac_configure_args1 " '$ac_arg'"
  1751. if test $ac_must_keep_next = true; then
  1752. ac_must_keep_next=false # Got value, back to normal.
  1753. else
  1754. case $ac_arg in
  1755. *=* | --config-cache | -C | -disable-* | --disable-* \
  1756. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1757. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1758. | -with-* | --with-* | -without-* | --without-* | --x)
  1759. case "$ac_configure_args0 " in
  1760. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1761. esac
  1762. ;;
  1763. -* ) ac_must_keep_next=true ;;
  1764. esac
  1765. fi
  1766. as_fn_append ac_configure_args " '$ac_arg'"
  1767. ;;
  1768. esac
  1769. done
  1770. done
  1771. { ac_configure_args0=; unset ac_configure_args0;}
  1772. { ac_configure_args1=; unset ac_configure_args1;}
  1773. # When interrupted or exit'd, cleanup temporary files, and complete
  1774. # config.log. We remove comments because anyway the quotes in there
  1775. # would cause problems or look ugly.
  1776. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1777. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1778. trap 'exit_status=$?
  1779. # Save into config.log some information that might help in debugging.
  1780. {
  1781. echo
  1782. $as_echo "## ---------------- ##
  1783. ## Cache variables. ##
  1784. ## ---------------- ##"
  1785. echo
  1786. # The following way of writing the cache mishandles newlines in values,
  1787. (
  1788. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1789. eval ac_val=\$$ac_var
  1790. case $ac_val in #(
  1791. *${as_nl}*)
  1792. case $ac_var in #(
  1793. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1794. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1795. esac
  1796. case $ac_var in #(
  1797. _ | IFS | as_nl) ;; #(
  1798. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1799. *) { eval $ac_var=; unset $ac_var;} ;;
  1800. esac ;;
  1801. esac
  1802. done
  1803. (set) 2>&1 |
  1804. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1805. *${as_nl}ac_space=\ *)
  1806. sed -n \
  1807. "s/'\''/'\''\\\\'\'''\''/g;
  1808. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1809. ;; #(
  1810. *)
  1811. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1812. ;;
  1813. esac |
  1814. sort
  1815. )
  1816. echo
  1817. $as_echo "## ----------------- ##
  1818. ## Output variables. ##
  1819. ## ----------------- ##"
  1820. echo
  1821. for ac_var in $ac_subst_vars
  1822. do
  1823. eval ac_val=\$$ac_var
  1824. case $ac_val in
  1825. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1826. esac
  1827. $as_echo "$ac_var='\''$ac_val'\''"
  1828. done | sort
  1829. echo
  1830. if test -n "$ac_subst_files"; then
  1831. $as_echo "## ------------------- ##
  1832. ## File substitutions. ##
  1833. ## ------------------- ##"
  1834. echo
  1835. for ac_var in $ac_subst_files
  1836. do
  1837. eval ac_val=\$$ac_var
  1838. case $ac_val in
  1839. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1840. esac
  1841. $as_echo "$ac_var='\''$ac_val'\''"
  1842. done | sort
  1843. echo
  1844. fi
  1845. if test -s confdefs.h; then
  1846. $as_echo "## ----------- ##
  1847. ## confdefs.h. ##
  1848. ## ----------- ##"
  1849. echo
  1850. cat confdefs.h
  1851. echo
  1852. fi
  1853. test "$ac_signal" != 0 &&
  1854. $as_echo "$as_me: caught signal $ac_signal"
  1855. $as_echo "$as_me: exit $exit_status"
  1856. } >&5
  1857. rm -f core *.core core.conftest.* &&
  1858. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1859. exit $exit_status
  1860. ' 0
  1861. for ac_signal in 1 2 13 15; do
  1862. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1863. done
  1864. ac_signal=0
  1865. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1866. rm -f -r conftest* confdefs.h
  1867. $as_echo "/* confdefs.h */" > confdefs.h
  1868. # Predefined preprocessor variables.
  1869. cat >>confdefs.h <<_ACEOF
  1870. #define PACKAGE_NAME "$PACKAGE_NAME"
  1871. _ACEOF
  1872. cat >>confdefs.h <<_ACEOF
  1873. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1874. _ACEOF
  1875. cat >>confdefs.h <<_ACEOF
  1876. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1877. _ACEOF
  1878. cat >>confdefs.h <<_ACEOF
  1879. #define PACKAGE_STRING "$PACKAGE_STRING"
  1880. _ACEOF
  1881. cat >>confdefs.h <<_ACEOF
  1882. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1883. _ACEOF
  1884. cat >>confdefs.h <<_ACEOF
  1885. #define PACKAGE_URL "$PACKAGE_URL"
  1886. _ACEOF
  1887. # Let the site file select an alternate cache file if it wants to.
  1888. # Prefer an explicitly selected file to automatically selected ones.
  1889. ac_site_file1=NONE
  1890. ac_site_file2=NONE
  1891. if test -n "$CONFIG_SITE"; then
  1892. # We do not want a PATH search for config.site.
  1893. case $CONFIG_SITE in #((
  1894. -*) ac_site_file1=./$CONFIG_SITE;;
  1895. */*) ac_site_file1=$CONFIG_SITE;;
  1896. *) ac_site_file1=./$CONFIG_SITE;;
  1897. esac
  1898. elif test "x$prefix" != xNONE; then
  1899. ac_site_file1=$prefix/share/config.site
  1900. ac_site_file2=$prefix/etc/config.site
  1901. else
  1902. ac_site_file1=$ac_default_prefix/share/config.site
  1903. ac_site_file2=$ac_default_prefix/etc/config.site
  1904. fi
  1905. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1906. do
  1907. test "x$ac_site_file" = xNONE && continue
  1908. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1909. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1910. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1911. sed 's/^/| /' "$ac_site_file" >&5
  1912. . "$ac_site_file" \
  1913. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1914. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1915. as_fn_error $? "failed to load site script $ac_site_file
  1916. See \`config.log' for more details" "$LINENO" 5; }
  1917. fi
  1918. done
  1919. if test -r "$cache_file"; then
  1920. # Some versions of bash will fail to source /dev/null (special files
  1921. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1922. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1923. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1924. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1925. case $cache_file in
  1926. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1927. *) . "./$cache_file";;
  1928. esac
  1929. fi
  1930. else
  1931. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1932. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1933. >$cache_file
  1934. fi
  1935. # Check that the precious variables saved in the cache have kept the same
  1936. # value.
  1937. ac_cache_corrupted=false
  1938. for ac_var in $ac_precious_vars; do
  1939. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1940. eval ac_new_set=\$ac_env_${ac_var}_set
  1941. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1942. eval ac_new_val=\$ac_env_${ac_var}_value
  1943. case $ac_old_set,$ac_new_set in
  1944. set,)
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1946. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1947. ac_cache_corrupted=: ;;
  1948. ,set)
  1949. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1950. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1951. ac_cache_corrupted=: ;;
  1952. ,);;
  1953. *)
  1954. if test "x$ac_old_val" != "x$ac_new_val"; then
  1955. # differences in whitespace do not lead to failure.
  1956. ac_old_val_w=`echo x $ac_old_val`
  1957. ac_new_val_w=`echo x $ac_new_val`
  1958. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1959. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1960. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1961. ac_cache_corrupted=:
  1962. else
  1963. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1964. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1965. eval $ac_var=\$ac_old_val
  1966. fi
  1967. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1968. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1969. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1970. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1971. fi;;
  1972. esac
  1973. # Pass precious variables to config.status.
  1974. if test "$ac_new_set" = set; then
  1975. case $ac_new_val in
  1976. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1977. *) ac_arg=$ac_var=$ac_new_val ;;
  1978. esac
  1979. case " $ac_configure_args " in
  1980. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1981. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1982. esac
  1983. fi
  1984. done
  1985. if $ac_cache_corrupted; then
  1986. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1987. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1988. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1989. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1990. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1991. fi
  1992. ## -------------------- ##
  1993. ## Main body of script. ##
  1994. ## -------------------- ##
  1995. ac_ext=c
  1996. ac_cpp='$CPP $CPPFLAGS'
  1997. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1998. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1999. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2000. am__api_version='1.12'
  2001. ac_aux_dir=
  2002. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2003. if test -f "$ac_dir/install-sh"; then
  2004. ac_aux_dir=$ac_dir
  2005. ac_install_sh="$ac_aux_dir/install-sh -c"
  2006. break
  2007. elif test -f "$ac_dir/install.sh"; then
  2008. ac_aux_dir=$ac_dir
  2009. ac_install_sh="$ac_aux_dir/install.sh -c"
  2010. break
  2011. elif test -f "$ac_dir/shtool"; then
  2012. ac_aux_dir=$ac_dir
  2013. ac_install_sh="$ac_aux_dir/shtool install -c"
  2014. break
  2015. fi
  2016. done
  2017. if test -z "$ac_aux_dir"; then
  2018. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2019. fi
  2020. # These three variables are undocumented and unsupported,
  2021. # and are intended to be withdrawn in a future Autoconf release.
  2022. # They can cause serious problems if a builder's source tree is in a directory
  2023. # whose full name contains unusual characters.
  2024. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2025. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2026. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2027. # Find a good install program. We prefer a C program (faster),
  2028. # so one script is as good as another. But avoid the broken or
  2029. # incompatible versions:
  2030. # SysV /etc/install, /usr/sbin/install
  2031. # SunOS /usr/etc/install
  2032. # IRIX /sbin/install
  2033. # AIX /bin/install
  2034. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2035. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2036. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2037. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2038. # OS/2's system install, which has a completely different semantic
  2039. # ./install, which can be erroneously created by make from ./install.sh.
  2040. # Reject install programs that cannot install multiple files.
  2041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2042. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2043. if test -z "$INSTALL"; then
  2044. if ${ac_cv_path_install+:} false; then :
  2045. $as_echo_n "(cached) " >&6
  2046. else
  2047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2048. for as_dir in $PATH
  2049. do
  2050. IFS=$as_save_IFS
  2051. test -z "$as_dir" && as_dir=.
  2052. # Account for people who put trailing slashes in PATH elements.
  2053. case $as_dir/ in #((
  2054. ./ | .// | /[cC]/* | \
  2055. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2056. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2057. /usr/ucb/* ) ;;
  2058. *)
  2059. # OSF1 and SCO ODT 3.0 have their own names for install.
  2060. # Don't use installbsd from OSF since it installs stuff as root
  2061. # by default.
  2062. for ac_prog in ginstall scoinst install; do
  2063. for ac_exec_ext in '' $ac_executable_extensions; do
  2064. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2065. if test $ac_prog = install &&
  2066. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2067. # AIX install. It has an incompatible calling convention.
  2068. :
  2069. elif test $ac_prog = install &&
  2070. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2071. # program-specific install script used by HP pwplus--don't use.
  2072. :
  2073. else
  2074. rm -rf conftest.one conftest.two conftest.dir
  2075. echo one > conftest.one
  2076. echo two > conftest.two
  2077. mkdir conftest.dir
  2078. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2079. test -s conftest.one && test -s conftest.two &&
  2080. test -s conftest.dir/conftest.one &&
  2081. test -s conftest.dir/conftest.two
  2082. then
  2083. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2084. break 3
  2085. fi
  2086. fi
  2087. fi
  2088. done
  2089. done
  2090. ;;
  2091. esac
  2092. done
  2093. IFS=$as_save_IFS
  2094. rm -rf conftest.one conftest.two conftest.dir
  2095. fi
  2096. if test "${ac_cv_path_install+set}" = set; then
  2097. INSTALL=$ac_cv_path_install
  2098. else
  2099. # As a last resort, use the slow shell script. Don't cache a
  2100. # value for INSTALL within a source directory, because that will
  2101. # break other packages using the cache if that directory is
  2102. # removed, or if the value is a relative name.
  2103. INSTALL=$ac_install_sh
  2104. fi
  2105. fi
  2106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2107. $as_echo "$INSTALL" >&6; }
  2108. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2109. # It thinks the first close brace ends the variable substitution.
  2110. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2111. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2112. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2114. $as_echo_n "checking whether build environment is sane... " >&6; }
  2115. # Reject unsafe characters in $srcdir or the absolute working directory
  2116. # name. Accept space and tab only in the latter.
  2117. am_lf='
  2118. '
  2119. case `pwd` in
  2120. *[\\\"\#\$\&\'\`$am_lf]*)
  2121. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2122. esac
  2123. case $srcdir in
  2124. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2125. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2126. esac
  2127. # Do 'set' in a subshell so we don't clobber the current shell's
  2128. # arguments. Must try -L first in case configure is actually a
  2129. # symlink; some systems play weird games with the mod time of symlinks
  2130. # (eg FreeBSD returns the mod time of the symlink's containing
  2131. # directory).
  2132. if (
  2133. am_has_slept=no
  2134. for am_try in 1 2; do
  2135. echo "timestamp, slept: $am_has_slept" > conftest.file
  2136. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2137. if test "$*" = "X"; then
  2138. # -L didn't work.
  2139. set X `ls -t "$srcdir/configure" conftest.file`
  2140. fi
  2141. if test "$*" != "X $srcdir/configure conftest.file" \
  2142. && test "$*" != "X conftest.file $srcdir/configure"; then
  2143. # If neither matched, then we have a broken ls. This can happen
  2144. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2145. # broken ls alias from the environment. This has actually
  2146. # happened. Such a system could not be considered "sane".
  2147. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2148. alias in your environment" "$LINENO" 5
  2149. fi
  2150. if test "$2" = conftest.file || test $am_try -eq 2; then
  2151. break
  2152. fi
  2153. # Just in case.
  2154. sleep 1
  2155. am_has_slept=yes
  2156. done
  2157. test "$2" = conftest.file
  2158. )
  2159. then
  2160. # Ok.
  2161. :
  2162. else
  2163. as_fn_error $? "newly created file is older than distributed files!
  2164. Check your system clock" "$LINENO" 5
  2165. fi
  2166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2167. $as_echo "yes" >&6; }
  2168. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2169. # generated files are strictly newer.
  2170. am_sleep_pid=
  2171. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2172. ( sleep 1 ) &
  2173. am_sleep_pid=$!
  2174. fi
  2175. rm -f conftest.file
  2176. test "$program_prefix" != NONE &&
  2177. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2178. # Use a double $ so make ignores it.
  2179. test "$program_suffix" != NONE &&
  2180. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2181. # Double any \ or $.
  2182. # By default was `s,x,x', remove it if useless.
  2183. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2184. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2185. # expand $ac_aux_dir to an absolute path
  2186. am_aux_dir=`cd $ac_aux_dir && pwd`
  2187. if test x"${MISSING+set}" != xset; then
  2188. case $am_aux_dir in
  2189. *\ * | *\ *)
  2190. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2191. *)
  2192. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2193. esac
  2194. fi
  2195. # Use eval to expand $SHELL
  2196. if eval "$MISSING --run true"; then
  2197. am_missing_run="$MISSING --run "
  2198. else
  2199. am_missing_run=
  2200. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2201. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2202. fi
  2203. if test x"${install_sh}" != xset; then
  2204. case $am_aux_dir in
  2205. *\ * | *\ *)
  2206. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2207. *)
  2208. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2209. esac
  2210. fi
  2211. # Installed binaries are usually stripped using 'strip' when the user
  2212. # run "make install-strip". However 'strip' might not be the right
  2213. # tool to use in cross-compilation environments, therefore Automake
  2214. # will honor the 'STRIP' environment variable to overrule this program.
  2215. if test "$cross_compiling" != no; then
  2216. if test -n "$ac_tool_prefix"; then
  2217. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2218. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2220. $as_echo_n "checking for $ac_word... " >&6; }
  2221. if ${ac_cv_prog_STRIP+:} false; then :
  2222. $as_echo_n "(cached) " >&6
  2223. else
  2224. if test -n "$STRIP"; then
  2225. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2226. else
  2227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2228. for as_dir in $PATH
  2229. do
  2230. IFS=$as_save_IFS
  2231. test -z "$as_dir" && as_dir=.
  2232. for ac_exec_ext in '' $ac_executable_extensions; do
  2233. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2234. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2235. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2236. break 2
  2237. fi
  2238. done
  2239. done
  2240. IFS=$as_save_IFS
  2241. fi
  2242. fi
  2243. STRIP=$ac_cv_prog_STRIP
  2244. if test -n "$STRIP"; then
  2245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2246. $as_echo "$STRIP" >&6; }
  2247. else
  2248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2249. $as_echo "no" >&6; }
  2250. fi
  2251. fi
  2252. if test -z "$ac_cv_prog_STRIP"; then
  2253. ac_ct_STRIP=$STRIP
  2254. # Extract the first word of "strip", so it can be a program name with args.
  2255. set dummy strip; ac_word=$2
  2256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2257. $as_echo_n "checking for $ac_word... " >&6; }
  2258. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2259. $as_echo_n "(cached) " >&6
  2260. else
  2261. if test -n "$ac_ct_STRIP"; then
  2262. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2263. else
  2264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2265. for as_dir in $PATH
  2266. do
  2267. IFS=$as_save_IFS
  2268. test -z "$as_dir" && as_dir=.
  2269. for ac_exec_ext in '' $ac_executable_extensions; do
  2270. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2271. ac_cv_prog_ac_ct_STRIP="strip"
  2272. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2273. break 2
  2274. fi
  2275. done
  2276. done
  2277. IFS=$as_save_IFS
  2278. fi
  2279. fi
  2280. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2281. if test -n "$ac_ct_STRIP"; then
  2282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2283. $as_echo "$ac_ct_STRIP" >&6; }
  2284. else
  2285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2286. $as_echo "no" >&6; }
  2287. fi
  2288. if test "x$ac_ct_STRIP" = x; then
  2289. STRIP=":"
  2290. else
  2291. case $cross_compiling:$ac_tool_warned in
  2292. yes:)
  2293. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2294. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2295. ac_tool_warned=yes ;;
  2296. esac
  2297. STRIP=$ac_ct_STRIP
  2298. fi
  2299. else
  2300. STRIP="$ac_cv_prog_STRIP"
  2301. fi
  2302. fi
  2303. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2305. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2306. if test -z "$MKDIR_P"; then
  2307. if ${ac_cv_path_mkdir+:} false; then :
  2308. $as_echo_n "(cached) " >&6
  2309. else
  2310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2311. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2312. do
  2313. IFS=$as_save_IFS
  2314. test -z "$as_dir" && as_dir=.
  2315. for ac_prog in mkdir gmkdir; do
  2316. for ac_exec_ext in '' $ac_executable_extensions; do
  2317. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2318. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2319. 'mkdir (GNU coreutils) '* | \
  2320. 'mkdir (coreutils) '* | \
  2321. 'mkdir (fileutils) '4.1*)
  2322. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2323. break 3;;
  2324. esac
  2325. done
  2326. done
  2327. done
  2328. IFS=$as_save_IFS
  2329. fi
  2330. test -d ./--version && rmdir ./--version
  2331. if test "${ac_cv_path_mkdir+set}" = set; then
  2332. MKDIR_P="$ac_cv_path_mkdir -p"
  2333. else
  2334. # As a last resort, use the slow shell script. Don't cache a
  2335. # value for MKDIR_P within a source directory, because that will
  2336. # break other packages using the cache if that directory is
  2337. # removed, or if the value is a relative name.
  2338. MKDIR_P="$ac_install_sh -d"
  2339. fi
  2340. fi
  2341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2342. $as_echo "$MKDIR_P" >&6; }
  2343. for ac_prog in gawk mawk nawk awk
  2344. do
  2345. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2346. set dummy $ac_prog; ac_word=$2
  2347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2348. $as_echo_n "checking for $ac_word... " >&6; }
  2349. if ${ac_cv_prog_AWK+:} false; then :
  2350. $as_echo_n "(cached) " >&6
  2351. else
  2352. if test -n "$AWK"; then
  2353. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2354. else
  2355. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2356. for as_dir in $PATH
  2357. do
  2358. IFS=$as_save_IFS
  2359. test -z "$as_dir" && as_dir=.
  2360. for ac_exec_ext in '' $ac_executable_extensions; do
  2361. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2362. ac_cv_prog_AWK="$ac_prog"
  2363. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2364. break 2
  2365. fi
  2366. done
  2367. done
  2368. IFS=$as_save_IFS
  2369. fi
  2370. fi
  2371. AWK=$ac_cv_prog_AWK
  2372. if test -n "$AWK"; then
  2373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2374. $as_echo "$AWK" >&6; }
  2375. else
  2376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2377. $as_echo "no" >&6; }
  2378. fi
  2379. test -n "$AWK" && break
  2380. done
  2381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2382. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2383. set x ${MAKE-make}
  2384. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2385. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2386. $as_echo_n "(cached) " >&6
  2387. else
  2388. cat >conftest.make <<\_ACEOF
  2389. SHELL = /bin/sh
  2390. all:
  2391. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2392. _ACEOF
  2393. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2394. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2395. *@@@%%%=?*=@@@%%%*)
  2396. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2397. *)
  2398. eval ac_cv_prog_make_${ac_make}_set=no;;
  2399. esac
  2400. rm -f conftest.make
  2401. fi
  2402. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2404. $as_echo "yes" >&6; }
  2405. SET_MAKE=
  2406. else
  2407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2408. $as_echo "no" >&6; }
  2409. SET_MAKE="MAKE=${MAKE-make}"
  2410. fi
  2411. rm -rf .tst 2>/dev/null
  2412. mkdir .tst 2>/dev/null
  2413. if test -d .tst; then
  2414. am__leading_dot=.
  2415. else
  2416. am__leading_dot=_
  2417. fi
  2418. rmdir .tst 2>/dev/null
  2419. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2420. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2421. # is not polluted with repeated "-I."
  2422. am__isrc=' -I$(srcdir)'
  2423. # test to see if srcdir already configured
  2424. if test -f $srcdir/config.status; then
  2425. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2426. fi
  2427. fi
  2428. # test whether we have cygpath
  2429. if test -z "$CYGPATH_W"; then
  2430. if (cygpath --version) >/dev/null 2>/dev/null; then
  2431. CYGPATH_W='cygpath -w'
  2432. else
  2433. CYGPATH_W=echo
  2434. fi
  2435. fi
  2436. # Define the identity of the package.
  2437. PACKAGE='glpk'
  2438. VERSION='4.57'
  2439. cat >>confdefs.h <<_ACEOF
  2440. #define PACKAGE "$PACKAGE"
  2441. _ACEOF
  2442. cat >>confdefs.h <<_ACEOF
  2443. #define VERSION "$VERSION"
  2444. _ACEOF
  2445. # Some tools Automake needs.
  2446. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2447. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2448. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2449. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2450. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2451. # For better backward compatibility. To be removed once Automake 1.9.x
  2452. # dies out for good. For more background, see:
  2453. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2454. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2455. mkdir_p='$(MKDIR_P)'
  2456. # We need awk for the "check" target. The system "awk" is bad on
  2457. # some platforms.
  2458. # Always define AMTAR for backward compatibility. Yes, it's still used
  2459. # in the wild :-( We should find a proper way to deprecate it ...
  2460. AMTAR='$${TAR-tar}'
  2461. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2462. ac_config_headers="$ac_config_headers config.h"
  2463. # Check whether --with-gmp was given.
  2464. if test "${with_gmp+set}" = set; then :
  2465. withval=$with_gmp; case $withval in
  2466. yes | no) ;;
  2467. *) as_fn_error $? "invalid value \`$withval' for --with-gmp" "$LINENO" 5;;
  2468. esac
  2469. else
  2470. with_gmp=no
  2471. fi
  2472. # Check whether --enable-dl was given.
  2473. if test "${enable_dl+set}" = set; then :
  2474. enableval=$enable_dl; case $enableval in
  2475. yes | ltdl | dlfcn | no) ;;
  2476. *) as_fn_error $? "invalid value \`$enableval' for --enable-dl" "$LINENO" 5;;
  2477. esac
  2478. else
  2479. enable_dl=no
  2480. fi
  2481. # Check whether --enable-odbc was given.
  2482. if test "${enable_odbc+set}" = set; then :
  2483. enableval=$enable_odbc; case $enableval in
  2484. yes | unix | no) ;;
  2485. *) as_fn_error $? "invalid value \`$enableval' for --enable-odbc" "$LINENO" 5;;
  2486. esac
  2487. else
  2488. enable_odbc=no
  2489. fi
  2490. # Check whether --enable-mysql was given.
  2491. if test "${enable_mysql+set}" = set; then :
  2492. enableval=$enable_mysql; case $enableval in
  2493. yes | no) ;;
  2494. *) as_fn_error $? "invalid value \`$enableval' for --enable-mysql" "$LINENO" 5;;
  2495. esac
  2496. else
  2497. enable_mysql=no
  2498. fi
  2499. ac_ext=c
  2500. ac_cpp='$CPP $CPPFLAGS'
  2501. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2502. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2503. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2504. if test -n "$ac_tool_prefix"; then
  2505. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2506. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2508. $as_echo_n "checking for $ac_word... " >&6; }
  2509. if ${ac_cv_prog_CC+:} false; then :
  2510. $as_echo_n "(cached) " >&6
  2511. else
  2512. if test -n "$CC"; then
  2513. ac_cv_prog_CC="$CC" # Let the user override the test.
  2514. else
  2515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2516. for as_dir in $PATH
  2517. do
  2518. IFS=$as_save_IFS
  2519. test -z "$as_dir" && as_dir=.
  2520. for ac_exec_ext in '' $ac_executable_extensions; do
  2521. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2522. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2523. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2524. break 2
  2525. fi
  2526. done
  2527. done
  2528. IFS=$as_save_IFS
  2529. fi
  2530. fi
  2531. CC=$ac_cv_prog_CC
  2532. if test -n "$CC"; then
  2533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2534. $as_echo "$CC" >&6; }
  2535. else
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2537. $as_echo "no" >&6; }
  2538. fi
  2539. fi
  2540. if test -z "$ac_cv_prog_CC"; then
  2541. ac_ct_CC=$CC
  2542. # Extract the first word of "gcc", so it can be a program name with args.
  2543. set dummy gcc; ac_word=$2
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2545. $as_echo_n "checking for $ac_word... " >&6; }
  2546. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2547. $as_echo_n "(cached) " >&6
  2548. else
  2549. if test -n "$ac_ct_CC"; then
  2550. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2551. else
  2552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2553. for as_dir in $PATH
  2554. do
  2555. IFS=$as_save_IFS
  2556. test -z "$as_dir" && as_dir=.
  2557. for ac_exec_ext in '' $ac_executable_extensions; do
  2558. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2559. ac_cv_prog_ac_ct_CC="gcc"
  2560. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2561. break 2
  2562. fi
  2563. done
  2564. done
  2565. IFS=$as_save_IFS
  2566. fi
  2567. fi
  2568. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2569. if test -n "$ac_ct_CC"; then
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2571. $as_echo "$ac_ct_CC" >&6; }
  2572. else
  2573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2574. $as_echo "no" >&6; }
  2575. fi
  2576. if test "x$ac_ct_CC" = x; then
  2577. CC=""
  2578. else
  2579. case $cross_compiling:$ac_tool_warned in
  2580. yes:)
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2582. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2583. ac_tool_warned=yes ;;
  2584. esac
  2585. CC=$ac_ct_CC
  2586. fi
  2587. else
  2588. CC="$ac_cv_prog_CC"
  2589. fi
  2590. if test -z "$CC"; then
  2591. if test -n "$ac_tool_prefix"; then
  2592. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2593. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2595. $as_echo_n "checking for $ac_word... " >&6; }
  2596. if ${ac_cv_prog_CC+:} false; then :
  2597. $as_echo_n "(cached) " >&6
  2598. else
  2599. if test -n "$CC"; then
  2600. ac_cv_prog_CC="$CC" # Let the user override the test.
  2601. else
  2602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2603. for as_dir in $PATH
  2604. do
  2605. IFS=$as_save_IFS
  2606. test -z "$as_dir" && as_dir=.
  2607. for ac_exec_ext in '' $ac_executable_extensions; do
  2608. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2609. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2610. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2611. break 2
  2612. fi
  2613. done
  2614. done
  2615. IFS=$as_save_IFS
  2616. fi
  2617. fi
  2618. CC=$ac_cv_prog_CC
  2619. if test -n "$CC"; then
  2620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2621. $as_echo "$CC" >&6; }
  2622. else
  2623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2624. $as_echo "no" >&6; }
  2625. fi
  2626. fi
  2627. fi
  2628. if test -z "$CC"; then
  2629. # Extract the first word of "cc", so it can be a program name with args.
  2630. set dummy cc; ac_word=$2
  2631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2632. $as_echo_n "checking for $ac_word... " >&6; }
  2633. if ${ac_cv_prog_CC+:} false; then :
  2634. $as_echo_n "(cached) " >&6
  2635. else
  2636. if test -n "$CC"; then
  2637. ac_cv_prog_CC="$CC" # Let the user override the test.
  2638. else
  2639. ac_prog_rejected=no
  2640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2641. for as_dir in $PATH
  2642. do
  2643. IFS=$as_save_IFS
  2644. test -z "$as_dir" && as_dir=.
  2645. for ac_exec_ext in '' $ac_executable_extensions; do
  2646. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2647. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2648. ac_prog_rejected=yes
  2649. continue
  2650. fi
  2651. ac_cv_prog_CC="cc"
  2652. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2653. break 2
  2654. fi
  2655. done
  2656. done
  2657. IFS=$as_save_IFS
  2658. if test $ac_prog_rejected = yes; then
  2659. # We found a bogon in the path, so make sure we never use it.
  2660. set dummy $ac_cv_prog_CC
  2661. shift
  2662. if test $# != 0; then
  2663. # We chose a different compiler from the bogus one.
  2664. # However, it has the same basename, so the bogon will be chosen
  2665. # first if we set CC to just the basename; use the full file name.
  2666. shift
  2667. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2668. fi
  2669. fi
  2670. fi
  2671. fi
  2672. CC=$ac_cv_prog_CC
  2673. if test -n "$CC"; then
  2674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2675. $as_echo "$CC" >&6; }
  2676. else
  2677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2678. $as_echo "no" >&6; }
  2679. fi
  2680. fi
  2681. if test -z "$CC"; then
  2682. if test -n "$ac_tool_prefix"; then
  2683. for ac_prog in cl.exe
  2684. do
  2685. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2686. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2688. $as_echo_n "checking for $ac_word... " >&6; }
  2689. if ${ac_cv_prog_CC+:} false; then :
  2690. $as_echo_n "(cached) " >&6
  2691. else
  2692. if test -n "$CC"; then
  2693. ac_cv_prog_CC="$CC" # Let the user override the test.
  2694. else
  2695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2696. for as_dir in $PATH
  2697. do
  2698. IFS=$as_save_IFS
  2699. test -z "$as_dir" && as_dir=.
  2700. for ac_exec_ext in '' $ac_executable_extensions; do
  2701. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2702. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2704. break 2
  2705. fi
  2706. done
  2707. done
  2708. IFS=$as_save_IFS
  2709. fi
  2710. fi
  2711. CC=$ac_cv_prog_CC
  2712. if test -n "$CC"; then
  2713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2714. $as_echo "$CC" >&6; }
  2715. else
  2716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2717. $as_echo "no" >&6; }
  2718. fi
  2719. test -n "$CC" && break
  2720. done
  2721. fi
  2722. if test -z "$CC"; then
  2723. ac_ct_CC=$CC
  2724. for ac_prog in cl.exe
  2725. do
  2726. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2727. set dummy $ac_prog; ac_word=$2
  2728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2729. $as_echo_n "checking for $ac_word... " >&6; }
  2730. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2731. $as_echo_n "(cached) " >&6
  2732. else
  2733. if test -n "$ac_ct_CC"; then
  2734. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2735. else
  2736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2737. for as_dir in $PATH
  2738. do
  2739. IFS=$as_save_IFS
  2740. test -z "$as_dir" && as_dir=.
  2741. for ac_exec_ext in '' $ac_executable_extensions; do
  2742. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2743. ac_cv_prog_ac_ct_CC="$ac_prog"
  2744. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2745. break 2
  2746. fi
  2747. done
  2748. done
  2749. IFS=$as_save_IFS
  2750. fi
  2751. fi
  2752. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2753. if test -n "$ac_ct_CC"; then
  2754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2755. $as_echo "$ac_ct_CC" >&6; }
  2756. else
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2758. $as_echo "no" >&6; }
  2759. fi
  2760. test -n "$ac_ct_CC" && break
  2761. done
  2762. if test "x$ac_ct_CC" = x; then
  2763. CC=""
  2764. else
  2765. case $cross_compiling:$ac_tool_warned in
  2766. yes:)
  2767. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2768. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2769. ac_tool_warned=yes ;;
  2770. esac
  2771. CC=$ac_ct_CC
  2772. fi
  2773. fi
  2774. fi
  2775. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2776. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2777. as_fn_error $? "no acceptable C compiler found in \$PATH
  2778. See \`config.log' for more details" "$LINENO" 5; }
  2779. # Provide some information about the compiler.
  2780. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2781. set X $ac_compile
  2782. ac_compiler=$2
  2783. for ac_option in --version -v -V -qversion; do
  2784. { { ac_try="$ac_compiler $ac_option >&5"
  2785. case "(($ac_try" in
  2786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2787. *) ac_try_echo=$ac_try;;
  2788. esac
  2789. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2790. $as_echo "$ac_try_echo"; } >&5
  2791. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2792. ac_status=$?
  2793. if test -s conftest.err; then
  2794. sed '10a\
  2795. ... rest of stderr output deleted ...
  2796. 10q' conftest.err >conftest.er1
  2797. cat conftest.er1 >&5
  2798. fi
  2799. rm -f conftest.er1 conftest.err
  2800. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2801. test $ac_status = 0; }
  2802. done
  2803. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2804. /* end confdefs.h. */
  2805. int
  2806. main ()
  2807. {
  2808. ;
  2809. return 0;
  2810. }
  2811. _ACEOF
  2812. ac_clean_files_save=$ac_clean_files
  2813. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2814. # Try to create an executable without -o first, disregard a.out.
  2815. # It will help us diagnose broken compilers, and finding out an intuition
  2816. # of exeext.
  2817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2818. $as_echo_n "checking whether the C compiler works... " >&6; }
  2819. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2820. # The possible output files:
  2821. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2822. ac_rmfiles=
  2823. for ac_file in $ac_files
  2824. do
  2825. case $ac_file in
  2826. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2827. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2828. esac
  2829. done
  2830. rm -f $ac_rmfiles
  2831. if { { ac_try="$ac_link_default"
  2832. case "(($ac_try" in
  2833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2834. *) ac_try_echo=$ac_try;;
  2835. esac
  2836. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2837. $as_echo "$ac_try_echo"; } >&5
  2838. (eval "$ac_link_default") 2>&5
  2839. ac_status=$?
  2840. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2841. test $ac_status = 0; }; then :
  2842. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2843. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2844. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2845. # so that the user can short-circuit this test for compilers unknown to
  2846. # Autoconf.
  2847. for ac_file in $ac_files ''
  2848. do
  2849. test -f "$ac_file" || continue
  2850. case $ac_file in
  2851. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2852. ;;
  2853. [ab].out )
  2854. # We found the default executable, but exeext='' is most
  2855. # certainly right.
  2856. break;;
  2857. *.* )
  2858. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2859. then :; else
  2860. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2861. fi
  2862. # We set ac_cv_exeext here because the later test for it is not
  2863. # safe: cross compilers may not add the suffix if given an `-o'
  2864. # argument, so we may need to know it at that point already.
  2865. # Even if this section looks crufty: it has the advantage of
  2866. # actually working.
  2867. break;;
  2868. * )
  2869. break;;
  2870. esac
  2871. done
  2872. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2873. else
  2874. ac_file=''
  2875. fi
  2876. if test -z "$ac_file"; then :
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2878. $as_echo "no" >&6; }
  2879. $as_echo "$as_me: failed program was:" >&5
  2880. sed 's/^/| /' conftest.$ac_ext >&5
  2881. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2882. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2883. as_fn_error 77 "C compiler cannot create executables
  2884. See \`config.log' for more details" "$LINENO" 5; }
  2885. else
  2886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2887. $as_echo "yes" >&6; }
  2888. fi
  2889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2890. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2892. $as_echo "$ac_file" >&6; }
  2893. ac_exeext=$ac_cv_exeext
  2894. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2895. ac_clean_files=$ac_clean_files_save
  2896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2897. $as_echo_n "checking for suffix of executables... " >&6; }
  2898. if { { ac_try="$ac_link"
  2899. case "(($ac_try" in
  2900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2901. *) ac_try_echo=$ac_try;;
  2902. esac
  2903. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2904. $as_echo "$ac_try_echo"; } >&5
  2905. (eval "$ac_link") 2>&5
  2906. ac_status=$?
  2907. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2908. test $ac_status = 0; }; then :
  2909. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2910. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2911. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2912. # `rm'.
  2913. for ac_file in conftest.exe conftest conftest.*; do
  2914. test -f "$ac_file" || continue
  2915. case $ac_file in
  2916. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2917. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2918. break;;
  2919. * ) break;;
  2920. esac
  2921. done
  2922. else
  2923. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2924. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2925. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2926. See \`config.log' for more details" "$LINENO" 5; }
  2927. fi
  2928. rm -f conftest conftest$ac_cv_exeext
  2929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2930. $as_echo "$ac_cv_exeext" >&6; }
  2931. rm -f conftest.$ac_ext
  2932. EXEEXT=$ac_cv_exeext
  2933. ac_exeext=$EXEEXT
  2934. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2935. /* end confdefs.h. */
  2936. #include <stdio.h>
  2937. int
  2938. main ()
  2939. {
  2940. FILE *f = fopen ("conftest.out", "w");
  2941. return ferror (f) || fclose (f) != 0;
  2942. ;
  2943. return 0;
  2944. }
  2945. _ACEOF
  2946. ac_clean_files="$ac_clean_files conftest.out"
  2947. # Check that the compiler produces executables we can run. If not, either
  2948. # the compiler is broken, or we cross compile.
  2949. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2950. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2951. if test "$cross_compiling" != yes; then
  2952. { { ac_try="$ac_link"
  2953. case "(($ac_try" in
  2954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2955. *) ac_try_echo=$ac_try;;
  2956. esac
  2957. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2958. $as_echo "$ac_try_echo"; } >&5
  2959. (eval "$ac_link") 2>&5
  2960. ac_status=$?
  2961. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2962. test $ac_status = 0; }
  2963. if { ac_try='./conftest$ac_cv_exeext'
  2964. { { case "(($ac_try" in
  2965. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2966. *) ac_try_echo=$ac_try;;
  2967. esac
  2968. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2969. $as_echo "$ac_try_echo"; } >&5
  2970. (eval "$ac_try") 2>&5
  2971. ac_status=$?
  2972. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2973. test $ac_status = 0; }; }; then
  2974. cross_compiling=no
  2975. else
  2976. if test "$cross_compiling" = maybe; then
  2977. cross_compiling=yes
  2978. else
  2979. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2980. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2981. as_fn_error $? "cannot run C compiled programs.
  2982. If you meant to cross compile, use \`--host'.
  2983. See \`config.log' for more details" "$LINENO" 5; }
  2984. fi
  2985. fi
  2986. fi
  2987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2988. $as_echo "$cross_compiling" >&6; }
  2989. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2990. ac_clean_files=$ac_clean_files_save
  2991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2992. $as_echo_n "checking for suffix of object files... " >&6; }
  2993. if ${ac_cv_objext+:} false; then :
  2994. $as_echo_n "(cached) " >&6
  2995. else
  2996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2997. /* end confdefs.h. */
  2998. int
  2999. main ()
  3000. {
  3001. ;
  3002. return 0;
  3003. }
  3004. _ACEOF
  3005. rm -f conftest.o conftest.obj
  3006. if { { ac_try="$ac_compile"
  3007. case "(($ac_try" in
  3008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3009. *) ac_try_echo=$ac_try;;
  3010. esac
  3011. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3012. $as_echo "$ac_try_echo"; } >&5
  3013. (eval "$ac_compile") 2>&5
  3014. ac_status=$?
  3015. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3016. test $ac_status = 0; }; then :
  3017. for ac_file in conftest.o conftest.obj conftest.*; do
  3018. test -f "$ac_file" || continue;
  3019. case $ac_file in
  3020. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3021. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3022. break;;
  3023. esac
  3024. done
  3025. else
  3026. $as_echo "$as_me: failed program was:" >&5
  3027. sed 's/^/| /' conftest.$ac_ext >&5
  3028. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3029. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3030. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3031. See \`config.log' for more details" "$LINENO" 5; }
  3032. fi
  3033. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3034. fi
  3035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3036. $as_echo "$ac_cv_objext" >&6; }
  3037. OBJEXT=$ac_cv_objext
  3038. ac_objext=$OBJEXT
  3039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3040. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3041. if ${ac_cv_c_compiler_gnu+:} false; then :
  3042. $as_echo_n "(cached) " >&6
  3043. else
  3044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3045. /* end confdefs.h. */
  3046. int
  3047. main ()
  3048. {
  3049. #ifndef __GNUC__
  3050. choke me
  3051. #endif
  3052. ;
  3053. return 0;
  3054. }
  3055. _ACEOF
  3056. if ac_fn_c_try_compile "$LINENO"; then :
  3057. ac_compiler_gnu=yes
  3058. else
  3059. ac_compiler_gnu=no
  3060. fi
  3061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3062. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3063. fi
  3064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3065. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3066. if test $ac_compiler_gnu = yes; then
  3067. GCC=yes
  3068. else
  3069. GCC=
  3070. fi
  3071. ac_test_CFLAGS=${CFLAGS+set}
  3072. ac_save_CFLAGS=$CFLAGS
  3073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3074. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3075. if ${ac_cv_prog_cc_g+:} false; then :
  3076. $as_echo_n "(cached) " >&6
  3077. else
  3078. ac_save_c_werror_flag=$ac_c_werror_flag
  3079. ac_c_werror_flag=yes
  3080. ac_cv_prog_cc_g=no
  3081. CFLAGS="-g"
  3082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3083. /* end confdefs.h. */
  3084. int
  3085. main ()
  3086. {
  3087. ;
  3088. return 0;
  3089. }
  3090. _ACEOF
  3091. if ac_fn_c_try_compile "$LINENO"; then :
  3092. ac_cv_prog_cc_g=yes
  3093. else
  3094. CFLAGS=""
  3095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3096. /* end confdefs.h. */
  3097. int
  3098. main ()
  3099. {
  3100. ;
  3101. return 0;
  3102. }
  3103. _ACEOF
  3104. if ac_fn_c_try_compile "$LINENO"; then :
  3105. else
  3106. ac_c_werror_flag=$ac_save_c_werror_flag
  3107. CFLAGS="-g"
  3108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3109. /* end confdefs.h. */
  3110. int
  3111. main ()
  3112. {
  3113. ;
  3114. return 0;
  3115. }
  3116. _ACEOF
  3117. if ac_fn_c_try_compile "$LINENO"; then :
  3118. ac_cv_prog_cc_g=yes
  3119. fi
  3120. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3121. fi
  3122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3123. fi
  3124. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3125. ac_c_werror_flag=$ac_save_c_werror_flag
  3126. fi
  3127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3128. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3129. if test "$ac_test_CFLAGS" = set; then
  3130. CFLAGS=$ac_save_CFLAGS
  3131. elif test $ac_cv_prog_cc_g = yes; then
  3132. if test "$GCC" = yes; then
  3133. CFLAGS="-g -O2"
  3134. else
  3135. CFLAGS="-g"
  3136. fi
  3137. else
  3138. if test "$GCC" = yes; then
  3139. CFLAGS="-O2"
  3140. else
  3141. CFLAGS=
  3142. fi
  3143. fi
  3144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3145. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3146. if ${ac_cv_prog_cc_c89+:} false; then :
  3147. $as_echo_n "(cached) " >&6
  3148. else
  3149. ac_cv_prog_cc_c89=no
  3150. ac_save_CC=$CC
  3151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3152. /* end confdefs.h. */
  3153. #include <stdarg.h>
  3154. #include <stdio.h>
  3155. struct stat;
  3156. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3157. struct buf { int x; };
  3158. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3159. static char *e (p, i)
  3160. char **p;
  3161. int i;
  3162. {
  3163. return p[i];
  3164. }
  3165. static char *f (char * (*g) (char **, int), char **p, ...)
  3166. {
  3167. char *s;
  3168. va_list v;
  3169. va_start (v,p);
  3170. s = g (p, va_arg (v,int));
  3171. va_end (v);
  3172. return s;
  3173. }
  3174. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3175. function prototypes and stuff, but not '\xHH' hex character constants.
  3176. These don't provoke an error unfortunately, instead are silently treated
  3177. as 'x'. The following induces an error, until -std is added to get
  3178. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3179. array size at least. It's necessary to write '\x00'==0 to get something
  3180. that's true only with -std. */
  3181. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3182. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3183. inside strings and character constants. */
  3184. #define FOO(x) 'x'
  3185. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3186. int test (int i, double x);
  3187. struct s1 {int (*f) (int a);};
  3188. struct s2 {int (*f) (double a);};
  3189. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3190. int argc;
  3191. char **argv;
  3192. int
  3193. main ()
  3194. {
  3195. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3196. ;
  3197. return 0;
  3198. }
  3199. _ACEOF
  3200. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3201. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3202. do
  3203. CC="$ac_save_CC $ac_arg"
  3204. if ac_fn_c_try_compile "$LINENO"; then :
  3205. ac_cv_prog_cc_c89=$ac_arg
  3206. fi
  3207. rm -f core conftest.err conftest.$ac_objext
  3208. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3209. done
  3210. rm -f conftest.$ac_ext
  3211. CC=$ac_save_CC
  3212. fi
  3213. # AC_CACHE_VAL
  3214. case "x$ac_cv_prog_cc_c89" in
  3215. x)
  3216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3217. $as_echo "none needed" >&6; } ;;
  3218. xno)
  3219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3220. $as_echo "unsupported" >&6; } ;;
  3221. *)
  3222. CC="$CC $ac_cv_prog_cc_c89"
  3223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3224. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3225. esac
  3226. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3227. fi
  3228. ac_ext=c
  3229. ac_cpp='$CPP $CPPFLAGS'
  3230. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3231. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3232. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3233. DEPDIR="${am__leading_dot}deps"
  3234. ac_config_commands="$ac_config_commands depfiles"
  3235. am_make=${MAKE-make}
  3236. cat > confinc << 'END'
  3237. am__doit:
  3238. @echo this is the am__doit target
  3239. .PHONY: am__doit
  3240. END
  3241. # If we don't find an include directive, just comment out the code.
  3242. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3243. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3244. am__include="#"
  3245. am__quote=
  3246. _am_result=none
  3247. # First try GNU make style include.
  3248. echo "include confinc" > confmf
  3249. # Ignore all kinds of additional output from 'make'.
  3250. case `$am_make -s -f confmf 2> /dev/null` in #(
  3251. *the\ am__doit\ target*)
  3252. am__include=include
  3253. am__quote=
  3254. _am_result=GNU
  3255. ;;
  3256. esac
  3257. # Now try BSD make style include.
  3258. if test "$am__include" = "#"; then
  3259. echo '.include "confinc"' > confmf
  3260. case `$am_make -s -f confmf 2> /dev/null` in #(
  3261. *the\ am__doit\ target*)
  3262. am__include=.include
  3263. am__quote="\""
  3264. _am_result=BSD
  3265. ;;
  3266. esac
  3267. fi
  3268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3269. $as_echo "$_am_result" >&6; }
  3270. rm -f confinc confmf
  3271. # Check whether --enable-dependency-tracking was given.
  3272. if test "${enable_dependency_tracking+set}" = set; then :
  3273. enableval=$enable_dependency_tracking;
  3274. fi
  3275. if test "x$enable_dependency_tracking" != xno; then
  3276. am_depcomp="$ac_aux_dir/depcomp"
  3277. AMDEPBACKSLASH='\'
  3278. am__nodep='_no'
  3279. fi
  3280. if test "x$enable_dependency_tracking" != xno; then
  3281. AMDEP_TRUE=
  3282. AMDEP_FALSE='#'
  3283. else
  3284. AMDEP_TRUE='#'
  3285. AMDEP_FALSE=
  3286. fi
  3287. depcc="$CC" am_compiler_list=
  3288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3289. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3290. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3291. $as_echo_n "(cached) " >&6
  3292. else
  3293. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3294. # We make a subdir and do the tests there. Otherwise we can end up
  3295. # making bogus files that we don't know about and never remove. For
  3296. # instance it was reported that on HP-UX the gcc test will end up
  3297. # making a dummy file named 'D' -- because '-MD' means "put the output
  3298. # in D".
  3299. rm -rf conftest.dir
  3300. mkdir conftest.dir
  3301. # Copy depcomp to subdir because otherwise we won't find it if we're
  3302. # using a relative directory.
  3303. cp "$am_depcomp" conftest.dir
  3304. cd conftest.dir
  3305. # We will build objects and dependencies in a subdirectory because
  3306. # it helps to detect inapplicable dependency modes. For instance
  3307. # both Tru64's cc and ICC support -MD to output dependencies as a
  3308. # side effect of compilation, but ICC will put the dependencies in
  3309. # the current directory while Tru64 will put them in the object
  3310. # directory.
  3311. mkdir sub
  3312. am_cv_CC_dependencies_compiler_type=none
  3313. if test "$am_compiler_list" = ""; then
  3314. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3315. fi
  3316. am__universal=false
  3317. case " $depcc " in #(
  3318. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3319. esac
  3320. for depmode in $am_compiler_list; do
  3321. # Setup a source with many dependencies, because some compilers
  3322. # like to wrap large dependency lists on column 80 (with \), and
  3323. # we should not choose a depcomp mode which is confused by this.
  3324. #
  3325. # We need to recreate these files for each test, as the compiler may
  3326. # overwrite some of them when testing with obscure command lines.
  3327. # This happens at least with the AIX C compiler.
  3328. : > sub/conftest.c
  3329. for i in 1 2 3 4 5 6; do
  3330. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3331. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3332. # Solaris 10 /bin/sh.
  3333. echo '/* dummy */' > sub/conftst$i.h
  3334. done
  3335. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3336. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3337. # mode. It turns out that the SunPro C++ compiler does not properly
  3338. # handle '-M -o', and we need to detect this. Also, some Intel
  3339. # versions had trouble with output in subdirs.
  3340. am__obj=sub/conftest.${OBJEXT-o}
  3341. am__minus_obj="-o $am__obj"
  3342. case $depmode in
  3343. gcc)
  3344. # This depmode causes a compiler race in universal mode.
  3345. test "$am__universal" = false || continue
  3346. ;;
  3347. nosideeffect)
  3348. # After this tag, mechanisms are not by side-effect, so they'll
  3349. # only be used when explicitly requested.
  3350. if test "x$enable_dependency_tracking" = xyes; then
  3351. continue
  3352. else
  3353. break
  3354. fi
  3355. ;;
  3356. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3357. # This compiler won't grok '-c -o', but also, the minuso test has
  3358. # not run yet. These depmodes are late enough in the game, and
  3359. # so weak that their functioning should not be impacted.
  3360. am__obj=conftest.${OBJEXT-o}
  3361. am__minus_obj=
  3362. ;;
  3363. none) break ;;
  3364. esac
  3365. if depmode=$depmode \
  3366. source=sub/conftest.c object=$am__obj \
  3367. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3368. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3369. >/dev/null 2>conftest.err &&
  3370. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3371. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3372. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3373. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3374. # icc doesn't choke on unknown options, it will just issue warnings
  3375. # or remarks (even with -Werror). So we grep stderr for any message
  3376. # that says an option was ignored or not supported.
  3377. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3378. # icc: Command line warning: ignoring option '-M'; no argument required
  3379. # The diagnosis changed in icc 8.0:
  3380. # icc: Command line remark: option '-MP' not supported
  3381. if (grep 'ignoring option' conftest.err ||
  3382. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3383. am_cv_CC_dependencies_compiler_type=$depmode
  3384. break
  3385. fi
  3386. fi
  3387. done
  3388. cd ..
  3389. rm -rf conftest.dir
  3390. else
  3391. am_cv_CC_dependencies_compiler_type=none
  3392. fi
  3393. fi
  3394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3395. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3396. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3397. if
  3398. test "x$enable_dependency_tracking" != xno \
  3399. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3400. am__fastdepCC_TRUE=
  3401. am__fastdepCC_FALSE='#'
  3402. else
  3403. am__fastdepCC_TRUE='#'
  3404. am__fastdepCC_FALSE=
  3405. fi
  3406. case `pwd` in
  3407. *\ * | *\ *)
  3408. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3409. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3410. esac
  3411. macro_version='2.4'
  3412. macro_revision='1.3294'
  3413. ltmain="$ac_aux_dir/ltmain.sh"
  3414. # Make sure we can run config.sub.
  3415. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3416. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3418. $as_echo_n "checking build system type... " >&6; }
  3419. if ${ac_cv_build+:} false; then :
  3420. $as_echo_n "(cached) " >&6
  3421. else
  3422. ac_build_alias=$build_alias
  3423. test "x$ac_build_alias" = x &&
  3424. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3425. test "x$ac_build_alias" = x &&
  3426. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3427. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3428. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3429. fi
  3430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3431. $as_echo "$ac_cv_build" >&6; }
  3432. case $ac_cv_build in
  3433. *-*-*) ;;
  3434. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3435. esac
  3436. build=$ac_cv_build
  3437. ac_save_IFS=$IFS; IFS='-'
  3438. set x $ac_cv_build
  3439. shift
  3440. build_cpu=$1
  3441. build_vendor=$2
  3442. shift; shift
  3443. # Remember, the first character of IFS is used to create $*,
  3444. # except with old shells:
  3445. build_os=$*
  3446. IFS=$ac_save_IFS
  3447. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3449. $as_echo_n "checking host system type... " >&6; }
  3450. if ${ac_cv_host+:} false; then :
  3451. $as_echo_n "(cached) " >&6
  3452. else
  3453. if test "x$host_alias" = x; then
  3454. ac_cv_host=$ac_cv_build
  3455. else
  3456. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3457. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3458. fi
  3459. fi
  3460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3461. $as_echo "$ac_cv_host" >&6; }
  3462. case $ac_cv_host in
  3463. *-*-*) ;;
  3464. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3465. esac
  3466. host=$ac_cv_host
  3467. ac_save_IFS=$IFS; IFS='-'
  3468. set x $ac_cv_host
  3469. shift
  3470. host_cpu=$1
  3471. host_vendor=$2
  3472. shift; shift
  3473. # Remember, the first character of IFS is used to create $*,
  3474. # except with old shells:
  3475. host_os=$*
  3476. IFS=$ac_save_IFS
  3477. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3478. # Backslashify metacharacters that are still active within
  3479. # double-quoted strings.
  3480. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3481. # Same as above, but do not quote variable references.
  3482. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3483. # Sed substitution to delay expansion of an escaped shell variable in a
  3484. # double_quote_subst'ed string.
  3485. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3486. # Sed substitution to delay expansion of an escaped single quote.
  3487. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3488. # Sed substitution to avoid accidental globbing in evaled expressions
  3489. no_glob_subst='s/\*/\\\*/g'
  3490. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3491. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3492. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3493. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3494. $as_echo_n "checking how to print strings... " >&6; }
  3495. # Test print first, because it will be a builtin if present.
  3496. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3497. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3498. ECHO='print -r --'
  3499. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3500. ECHO='printf %s\n'
  3501. else
  3502. # Use this function as a fallback that always works.
  3503. func_fallback_echo ()
  3504. {
  3505. eval 'cat <<_LTECHO_EOF
  3506. $1
  3507. _LTECHO_EOF'
  3508. }
  3509. ECHO='func_fallback_echo'
  3510. fi
  3511. # func_echo_all arg...
  3512. # Invoke $ECHO with all args, space-separated.
  3513. func_echo_all ()
  3514. {
  3515. $ECHO ""
  3516. }
  3517. case "$ECHO" in
  3518. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3519. $as_echo "printf" >&6; } ;;
  3520. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3521. $as_echo "print -r" >&6; } ;;
  3522. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3523. $as_echo "cat" >&6; } ;;
  3524. esac
  3525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3526. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3527. if ${ac_cv_path_SED+:} false; then :
  3528. $as_echo_n "(cached) " >&6
  3529. else
  3530. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3531. for ac_i in 1 2 3 4 5 6 7; do
  3532. ac_script="$ac_script$as_nl$ac_script"
  3533. done
  3534. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3535. { ac_script=; unset ac_script;}
  3536. if test -z "$SED"; then
  3537. ac_path_SED_found=false
  3538. # Loop through the user's path and test for each of PROGNAME-LIST
  3539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3540. for as_dir in $PATH
  3541. do
  3542. IFS=$as_save_IFS
  3543. test -z "$as_dir" && as_dir=.
  3544. for ac_prog in sed gsed; do
  3545. for ac_exec_ext in '' $ac_executable_extensions; do
  3546. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3547. as_fn_executable_p "$ac_path_SED" || continue
  3548. # Check for GNU ac_path_SED and select it if it is found.
  3549. # Check for GNU $ac_path_SED
  3550. case `"$ac_path_SED" --version 2>&1` in
  3551. *GNU*)
  3552. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3553. *)
  3554. ac_count=0
  3555. $as_echo_n 0123456789 >"conftest.in"
  3556. while :
  3557. do
  3558. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3559. mv "conftest.tmp" "conftest.in"
  3560. cp "conftest.in" "conftest.nl"
  3561. $as_echo '' >> "conftest.nl"
  3562. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3563. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3564. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3565. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3566. # Best one so far, save it but keep looking for a better one
  3567. ac_cv_path_SED="$ac_path_SED"
  3568. ac_path_SED_max=$ac_count
  3569. fi
  3570. # 10*(2^10) chars as input seems more than enough
  3571. test $ac_count -gt 10 && break
  3572. done
  3573. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3574. esac
  3575. $ac_path_SED_found && break 3
  3576. done
  3577. done
  3578. done
  3579. IFS=$as_save_IFS
  3580. if test -z "$ac_cv_path_SED"; then
  3581. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3582. fi
  3583. else
  3584. ac_cv_path_SED=$SED
  3585. fi
  3586. fi
  3587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3588. $as_echo "$ac_cv_path_SED" >&6; }
  3589. SED="$ac_cv_path_SED"
  3590. rm -f conftest.sed
  3591. test -z "$SED" && SED=sed
  3592. Xsed="$SED -e 1s/^X//"
  3593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3594. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3595. if ${ac_cv_path_GREP+:} false; then :
  3596. $as_echo_n "(cached) " >&6
  3597. else
  3598. if test -z "$GREP"; then
  3599. ac_path_GREP_found=false
  3600. # Loop through the user's path and test for each of PROGNAME-LIST
  3601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3602. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3603. do
  3604. IFS=$as_save_IFS
  3605. test -z "$as_dir" && as_dir=.
  3606. for ac_prog in grep ggrep; do
  3607. for ac_exec_ext in '' $ac_executable_extensions; do
  3608. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3609. as_fn_executable_p "$ac_path_GREP" || continue
  3610. # Check for GNU ac_path_GREP and select it if it is found.
  3611. # Check for GNU $ac_path_GREP
  3612. case `"$ac_path_GREP" --version 2>&1` in
  3613. *GNU*)
  3614. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3615. *)
  3616. ac_count=0
  3617. $as_echo_n 0123456789 >"conftest.in"
  3618. while :
  3619. do
  3620. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3621. mv "conftest.tmp" "conftest.in"
  3622. cp "conftest.in" "conftest.nl"
  3623. $as_echo 'GREP' >> "conftest.nl"
  3624. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3625. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3626. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3627. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3628. # Best one so far, save it but keep looking for a better one
  3629. ac_cv_path_GREP="$ac_path_GREP"
  3630. ac_path_GREP_max=$ac_count
  3631. fi
  3632. # 10*(2^10) chars as input seems more than enough
  3633. test $ac_count -gt 10 && break
  3634. done
  3635. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3636. esac
  3637. $ac_path_GREP_found && break 3
  3638. done
  3639. done
  3640. done
  3641. IFS=$as_save_IFS
  3642. if test -z "$ac_cv_path_GREP"; then
  3643. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3644. fi
  3645. else
  3646. ac_cv_path_GREP=$GREP
  3647. fi
  3648. fi
  3649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3650. $as_echo "$ac_cv_path_GREP" >&6; }
  3651. GREP="$ac_cv_path_GREP"
  3652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3653. $as_echo_n "checking for egrep... " >&6; }
  3654. if ${ac_cv_path_EGREP+:} false; then :
  3655. $as_echo_n "(cached) " >&6
  3656. else
  3657. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3658. then ac_cv_path_EGREP="$GREP -E"
  3659. else
  3660. if test -z "$EGREP"; then
  3661. ac_path_EGREP_found=false
  3662. # Loop through the user's path and test for each of PROGNAME-LIST
  3663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3664. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3665. do
  3666. IFS=$as_save_IFS
  3667. test -z "$as_dir" && as_dir=.
  3668. for ac_prog in egrep; do
  3669. for ac_exec_ext in '' $ac_executable_extensions; do
  3670. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3671. as_fn_executable_p "$ac_path_EGREP" || continue
  3672. # Check for GNU ac_path_EGREP and select it if it is found.
  3673. # Check for GNU $ac_path_EGREP
  3674. case `"$ac_path_EGREP" --version 2>&1` in
  3675. *GNU*)
  3676. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3677. *)
  3678. ac_count=0
  3679. $as_echo_n 0123456789 >"conftest.in"
  3680. while :
  3681. do
  3682. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3683. mv "conftest.tmp" "conftest.in"
  3684. cp "conftest.in" "conftest.nl"
  3685. $as_echo 'EGREP' >> "conftest.nl"
  3686. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3687. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3688. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3689. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3690. # Best one so far, save it but keep looking for a better one
  3691. ac_cv_path_EGREP="$ac_path_EGREP"
  3692. ac_path_EGREP_max=$ac_count
  3693. fi
  3694. # 10*(2^10) chars as input seems more than enough
  3695. test $ac_count -gt 10 && break
  3696. done
  3697. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3698. esac
  3699. $ac_path_EGREP_found && break 3
  3700. done
  3701. done
  3702. done
  3703. IFS=$as_save_IFS
  3704. if test -z "$ac_cv_path_EGREP"; then
  3705. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3706. fi
  3707. else
  3708. ac_cv_path_EGREP=$EGREP
  3709. fi
  3710. fi
  3711. fi
  3712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3713. $as_echo "$ac_cv_path_EGREP" >&6; }
  3714. EGREP="$ac_cv_path_EGREP"
  3715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3716. $as_echo_n "checking for fgrep... " >&6; }
  3717. if ${ac_cv_path_FGREP+:} false; then :
  3718. $as_echo_n "(cached) " >&6
  3719. else
  3720. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3721. then ac_cv_path_FGREP="$GREP -F"
  3722. else
  3723. if test -z "$FGREP"; then
  3724. ac_path_FGREP_found=false
  3725. # Loop through the user's path and test for each of PROGNAME-LIST
  3726. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3727. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3728. do
  3729. IFS=$as_save_IFS
  3730. test -z "$as_dir" && as_dir=.
  3731. for ac_prog in fgrep; do
  3732. for ac_exec_ext in '' $ac_executable_extensions; do
  3733. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3734. as_fn_executable_p "$ac_path_FGREP" || continue
  3735. # Check for GNU ac_path_FGREP and select it if it is found.
  3736. # Check for GNU $ac_path_FGREP
  3737. case `"$ac_path_FGREP" --version 2>&1` in
  3738. *GNU*)
  3739. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3740. *)
  3741. ac_count=0
  3742. $as_echo_n 0123456789 >"conftest.in"
  3743. while :
  3744. do
  3745. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3746. mv "conftest.tmp" "conftest.in"
  3747. cp "conftest.in" "conftest.nl"
  3748. $as_echo 'FGREP' >> "conftest.nl"
  3749. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3750. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3751. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3752. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3753. # Best one so far, save it but keep looking for a better one
  3754. ac_cv_path_FGREP="$ac_path_FGREP"
  3755. ac_path_FGREP_max=$ac_count
  3756. fi
  3757. # 10*(2^10) chars as input seems more than enough
  3758. test $ac_count -gt 10 && break
  3759. done
  3760. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3761. esac
  3762. $ac_path_FGREP_found && break 3
  3763. done
  3764. done
  3765. done
  3766. IFS=$as_save_IFS
  3767. if test -z "$ac_cv_path_FGREP"; then
  3768. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3769. fi
  3770. else
  3771. ac_cv_path_FGREP=$FGREP
  3772. fi
  3773. fi
  3774. fi
  3775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3776. $as_echo "$ac_cv_path_FGREP" >&6; }
  3777. FGREP="$ac_cv_path_FGREP"
  3778. test -z "$GREP" && GREP=grep
  3779. # Check whether --with-gnu-ld was given.
  3780. if test "${with_gnu_ld+set}" = set; then :
  3781. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3782. else
  3783. with_gnu_ld=no
  3784. fi
  3785. ac_prog=ld
  3786. if test "$GCC" = yes; then
  3787. # Check if gcc -print-prog-name=ld gives a path.
  3788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3789. $as_echo_n "checking for ld used by $CC... " >&6; }
  3790. case $host in
  3791. *-*-mingw*)
  3792. # gcc leaves a trailing carriage return which upsets mingw
  3793. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3794. *)
  3795. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3796. esac
  3797. case $ac_prog in
  3798. # Accept absolute paths.
  3799. [\\/]* | ?:[\\/]*)
  3800. re_direlt='/[^/][^/]*/\.\./'
  3801. # Canonicalize the pathname of ld
  3802. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3803. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3804. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3805. done
  3806. test -z "$LD" && LD="$ac_prog"
  3807. ;;
  3808. "")
  3809. # If it fails, then pretend we aren't using GCC.
  3810. ac_prog=ld
  3811. ;;
  3812. *)
  3813. # If it is relative, then search for the first ld in PATH.
  3814. with_gnu_ld=unknown
  3815. ;;
  3816. esac
  3817. elif test "$with_gnu_ld" = yes; then
  3818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3819. $as_echo_n "checking for GNU ld... " >&6; }
  3820. else
  3821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3822. $as_echo_n "checking for non-GNU ld... " >&6; }
  3823. fi
  3824. if ${lt_cv_path_LD+:} false; then :
  3825. $as_echo_n "(cached) " >&6
  3826. else
  3827. if test -z "$LD"; then
  3828. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3829. for ac_dir in $PATH; do
  3830. IFS="$lt_save_ifs"
  3831. test -z "$ac_dir" && ac_dir=.
  3832. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3833. lt_cv_path_LD="$ac_dir/$ac_prog"
  3834. # Check to see if the program is GNU ld. I'd rather use --version,
  3835. # but apparently some variants of GNU ld only accept -v.
  3836. # Break only if it was the GNU/non-GNU ld that we prefer.
  3837. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3838. *GNU* | *'with BFD'*)
  3839. test "$with_gnu_ld" != no && break
  3840. ;;
  3841. *)
  3842. test "$with_gnu_ld" != yes && break
  3843. ;;
  3844. esac
  3845. fi
  3846. done
  3847. IFS="$lt_save_ifs"
  3848. else
  3849. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3850. fi
  3851. fi
  3852. LD="$lt_cv_path_LD"
  3853. if test -n "$LD"; then
  3854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3855. $as_echo "$LD" >&6; }
  3856. else
  3857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3858. $as_echo "no" >&6; }
  3859. fi
  3860. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3862. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3863. if ${lt_cv_prog_gnu_ld+:} false; then :
  3864. $as_echo_n "(cached) " >&6
  3865. else
  3866. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3867. case `$LD -v 2>&1 </dev/null` in
  3868. *GNU* | *'with BFD'*)
  3869. lt_cv_prog_gnu_ld=yes
  3870. ;;
  3871. *)
  3872. lt_cv_prog_gnu_ld=no
  3873. ;;
  3874. esac
  3875. fi
  3876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3877. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3878. with_gnu_ld=$lt_cv_prog_gnu_ld
  3879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3880. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3881. if ${lt_cv_path_NM+:} false; then :
  3882. $as_echo_n "(cached) " >&6
  3883. else
  3884. if test -n "$NM"; then
  3885. # Let the user override the test.
  3886. lt_cv_path_NM="$NM"
  3887. else
  3888. lt_nm_to_check="${ac_tool_prefix}nm"
  3889. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3890. lt_nm_to_check="$lt_nm_to_check nm"
  3891. fi
  3892. for lt_tmp_nm in $lt_nm_to_check; do
  3893. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3894. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3895. IFS="$lt_save_ifs"
  3896. test -z "$ac_dir" && ac_dir=.
  3897. tmp_nm="$ac_dir/$lt_tmp_nm"
  3898. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3899. # Check to see if the nm accepts a BSD-compat flag.
  3900. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3901. # nm: unknown option "B" ignored
  3902. # Tru64's nm complains that /dev/null is an invalid object file
  3903. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3904. */dev/null* | *'Invalid file or object type'*)
  3905. lt_cv_path_NM="$tmp_nm -B"
  3906. break
  3907. ;;
  3908. *)
  3909. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3910. */dev/null*)
  3911. lt_cv_path_NM="$tmp_nm -p"
  3912. break
  3913. ;;
  3914. *)
  3915. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3916. continue # so that we can try to find one that supports BSD flags
  3917. ;;
  3918. esac
  3919. ;;
  3920. esac
  3921. fi
  3922. done
  3923. IFS="$lt_save_ifs"
  3924. done
  3925. : ${lt_cv_path_NM=no}
  3926. fi
  3927. fi
  3928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3929. $as_echo "$lt_cv_path_NM" >&6; }
  3930. if test "$lt_cv_path_NM" != "no"; then
  3931. NM="$lt_cv_path_NM"
  3932. else
  3933. # Didn't find any BSD compatible name lister, look for dumpbin.
  3934. if test -n "$DUMPBIN"; then :
  3935. # Let the user override the test.
  3936. else
  3937. if test -n "$ac_tool_prefix"; then
  3938. for ac_prog in dumpbin "link -dump"
  3939. do
  3940. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3941. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3943. $as_echo_n "checking for $ac_word... " >&6; }
  3944. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3945. $as_echo_n "(cached) " >&6
  3946. else
  3947. if test -n "$DUMPBIN"; then
  3948. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3949. else
  3950. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3951. for as_dir in $PATH
  3952. do
  3953. IFS=$as_save_IFS
  3954. test -z "$as_dir" && as_dir=.
  3955. for ac_exec_ext in '' $ac_executable_extensions; do
  3956. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3957. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3958. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3959. break 2
  3960. fi
  3961. done
  3962. done
  3963. IFS=$as_save_IFS
  3964. fi
  3965. fi
  3966. DUMPBIN=$ac_cv_prog_DUMPBIN
  3967. if test -n "$DUMPBIN"; then
  3968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3969. $as_echo "$DUMPBIN" >&6; }
  3970. else
  3971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3972. $as_echo "no" >&6; }
  3973. fi
  3974. test -n "$DUMPBIN" && break
  3975. done
  3976. fi
  3977. if test -z "$DUMPBIN"; then
  3978. ac_ct_DUMPBIN=$DUMPBIN
  3979. for ac_prog in dumpbin "link -dump"
  3980. do
  3981. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3982. set dummy $ac_prog; ac_word=$2
  3983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3984. $as_echo_n "checking for $ac_word... " >&6; }
  3985. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3986. $as_echo_n "(cached) " >&6
  3987. else
  3988. if test -n "$ac_ct_DUMPBIN"; then
  3989. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3990. else
  3991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3992. for as_dir in $PATH
  3993. do
  3994. IFS=$as_save_IFS
  3995. test -z "$as_dir" && as_dir=.
  3996. for ac_exec_ext in '' $ac_executable_extensions; do
  3997. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3998. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3999. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4000. break 2
  4001. fi
  4002. done
  4003. done
  4004. IFS=$as_save_IFS
  4005. fi
  4006. fi
  4007. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4008. if test -n "$ac_ct_DUMPBIN"; then
  4009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4010. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4011. else
  4012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4013. $as_echo "no" >&6; }
  4014. fi
  4015. test -n "$ac_ct_DUMPBIN" && break
  4016. done
  4017. if test "x$ac_ct_DUMPBIN" = x; then
  4018. DUMPBIN=":"
  4019. else
  4020. case $cross_compiling:$ac_tool_warned in
  4021. yes:)
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4023. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4024. ac_tool_warned=yes ;;
  4025. esac
  4026. DUMPBIN=$ac_ct_DUMPBIN
  4027. fi
  4028. fi
  4029. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4030. *COFF*)
  4031. DUMPBIN="$DUMPBIN -symbols"
  4032. ;;
  4033. *)
  4034. DUMPBIN=:
  4035. ;;
  4036. esac
  4037. fi
  4038. if test "$DUMPBIN" != ":"; then
  4039. NM="$DUMPBIN"
  4040. fi
  4041. fi
  4042. test -z "$NM" && NM=nm
  4043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4044. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4045. if ${lt_cv_nm_interface+:} false; then :
  4046. $as_echo_n "(cached) " >&6
  4047. else
  4048. lt_cv_nm_interface="BSD nm"
  4049. echo "int some_variable = 0;" > conftest.$ac_ext
  4050. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4051. (eval "$ac_compile" 2>conftest.err)
  4052. cat conftest.err >&5
  4053. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4054. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4055. cat conftest.err >&5
  4056. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4057. cat conftest.out >&5
  4058. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4059. lt_cv_nm_interface="MS dumpbin"
  4060. fi
  4061. rm -f conftest*
  4062. fi
  4063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4064. $as_echo "$lt_cv_nm_interface" >&6; }
  4065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4066. $as_echo_n "checking whether ln -s works... " >&6; }
  4067. LN_S=$as_ln_s
  4068. if test "$LN_S" = "ln -s"; then
  4069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4070. $as_echo "yes" >&6; }
  4071. else
  4072. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4073. $as_echo "no, using $LN_S" >&6; }
  4074. fi
  4075. # find the maximum length of command line arguments
  4076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4077. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4078. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4079. $as_echo_n "(cached) " >&6
  4080. else
  4081. i=0
  4082. teststring="ABCD"
  4083. case $build_os in
  4084. msdosdjgpp*)
  4085. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4086. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4087. # during glob expansion). Even if it were fixed, the result of this
  4088. # check would be larger than it should be.
  4089. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4090. ;;
  4091. gnu*)
  4092. # Under GNU Hurd, this test is not required because there is
  4093. # no limit to the length of command line arguments.
  4094. # Libtool will interpret -1 as no limit whatsoever
  4095. lt_cv_sys_max_cmd_len=-1;
  4096. ;;
  4097. cygwin* | mingw* | cegcc*)
  4098. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4099. # about 5 minutes as the teststring grows exponentially.
  4100. # Worse, since 9x/ME are not pre-emptively multitasking,
  4101. # you end up with a "frozen" computer, even though with patience
  4102. # the test eventually succeeds (with a max line length of 256k).
  4103. # Instead, let's just punt: use the minimum linelength reported by
  4104. # all of the supported platforms: 8192 (on NT/2K/XP).
  4105. lt_cv_sys_max_cmd_len=8192;
  4106. ;;
  4107. mint*)
  4108. # On MiNT this can take a long time and run out of memory.
  4109. lt_cv_sys_max_cmd_len=8192;
  4110. ;;
  4111. amigaos*)
  4112. # On AmigaOS with pdksh, this test takes hours, literally.
  4113. # So we just punt and use a minimum line length of 8192.
  4114. lt_cv_sys_max_cmd_len=8192;
  4115. ;;
  4116. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4117. # This has been around since 386BSD, at least. Likely further.
  4118. if test -x /sbin/sysctl; then
  4119. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4120. elif test -x /usr/sbin/sysctl; then
  4121. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4122. else
  4123. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4124. fi
  4125. # And add a safety zone
  4126. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4127. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4128. ;;
  4129. interix*)
  4130. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4131. lt_cv_sys_max_cmd_len=196608
  4132. ;;
  4133. osf*)
  4134. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4135. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4136. # nice to cause kernel panics so lets avoid the loop below.
  4137. # First set a reasonable default.
  4138. lt_cv_sys_max_cmd_len=16384
  4139. #
  4140. if test -x /sbin/sysconfig; then
  4141. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4142. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4143. esac
  4144. fi
  4145. ;;
  4146. sco3.2v5*)
  4147. lt_cv_sys_max_cmd_len=102400
  4148. ;;
  4149. sysv5* | sco5v6* | sysv4.2uw2*)
  4150. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4151. if test -n "$kargmax"; then
  4152. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4153. else
  4154. lt_cv_sys_max_cmd_len=32768
  4155. fi
  4156. ;;
  4157. *)
  4158. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4159. if test -n "$lt_cv_sys_max_cmd_len"; then
  4160. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4161. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4162. else
  4163. # Make teststring a little bigger before we do anything with it.
  4164. # a 1K string should be a reasonable start.
  4165. for i in 1 2 3 4 5 6 7 8 ; do
  4166. teststring=$teststring$teststring
  4167. done
  4168. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4169. # If test is not a shell built-in, we'll probably end up computing a
  4170. # maximum length that is only half of the actual maximum length, but
  4171. # we can't tell.
  4172. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4173. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4174. test $i != 17 # 1/2 MB should be enough
  4175. do
  4176. i=`expr $i + 1`
  4177. teststring=$teststring$teststring
  4178. done
  4179. # Only check the string length outside the loop.
  4180. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4181. teststring=
  4182. # Add a significant safety factor because C++ compilers can tack on
  4183. # massive amounts of additional arguments before passing them to the
  4184. # linker. It appears as though 1/2 is a usable value.
  4185. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4186. fi
  4187. ;;
  4188. esac
  4189. fi
  4190. if test -n $lt_cv_sys_max_cmd_len ; then
  4191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4192. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4193. else
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4195. $as_echo "none" >&6; }
  4196. fi
  4197. max_cmd_len=$lt_cv_sys_max_cmd_len
  4198. : ${CP="cp -f"}
  4199. : ${MV="mv -f"}
  4200. : ${RM="rm -f"}
  4201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4202. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4203. # Try some XSI features
  4204. xsi_shell=no
  4205. ( _lt_dummy="a/b/c"
  4206. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4207. = c,a/b,b/c, \
  4208. && eval 'test $(( 1 + 1 )) -eq 2 \
  4209. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4210. && xsi_shell=yes
  4211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4212. $as_echo "$xsi_shell" >&6; }
  4213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4214. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4215. lt_shell_append=no
  4216. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4217. >/dev/null 2>&1 \
  4218. && lt_shell_append=yes
  4219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4220. $as_echo "$lt_shell_append" >&6; }
  4221. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4222. lt_unset=unset
  4223. else
  4224. lt_unset=false
  4225. fi
  4226. # test EBCDIC or ASCII
  4227. case `echo X|tr X '\101'` in
  4228. A) # ASCII based system
  4229. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4230. lt_SP2NL='tr \040 \012'
  4231. lt_NL2SP='tr \015\012 \040\040'
  4232. ;;
  4233. *) # EBCDIC based system
  4234. lt_SP2NL='tr \100 \n'
  4235. lt_NL2SP='tr \r\n \100\100'
  4236. ;;
  4237. esac
  4238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4239. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4240. if ${lt_cv_to_host_file_cmd+:} false; then :
  4241. $as_echo_n "(cached) " >&6
  4242. else
  4243. case $host in
  4244. *-*-mingw* )
  4245. case $build in
  4246. *-*-mingw* ) # actually msys
  4247. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4248. ;;
  4249. *-*-cygwin* )
  4250. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4251. ;;
  4252. * ) # otherwise, assume *nix
  4253. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4254. ;;
  4255. esac
  4256. ;;
  4257. *-*-cygwin* )
  4258. case $build in
  4259. *-*-mingw* ) # actually msys
  4260. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4261. ;;
  4262. *-*-cygwin* )
  4263. lt_cv_to_host_file_cmd=func_convert_file_noop
  4264. ;;
  4265. * ) # otherwise, assume *nix
  4266. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4267. ;;
  4268. esac
  4269. ;;
  4270. * ) # unhandled hosts (and "normal" native builds)
  4271. lt_cv_to_host_file_cmd=func_convert_file_noop
  4272. ;;
  4273. esac
  4274. fi
  4275. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4277. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4279. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4280. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4281. $as_echo_n "(cached) " >&6
  4282. else
  4283. #assume ordinary cross tools, or native build.
  4284. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4285. case $host in
  4286. *-*-mingw* )
  4287. case $build in
  4288. *-*-mingw* ) # actually msys
  4289. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4290. ;;
  4291. esac
  4292. ;;
  4293. esac
  4294. fi
  4295. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4297. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4299. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4300. if ${lt_cv_ld_reload_flag+:} false; then :
  4301. $as_echo_n "(cached) " >&6
  4302. else
  4303. lt_cv_ld_reload_flag='-r'
  4304. fi
  4305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4306. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4307. reload_flag=$lt_cv_ld_reload_flag
  4308. case $reload_flag in
  4309. "" | " "*) ;;
  4310. *) reload_flag=" $reload_flag" ;;
  4311. esac
  4312. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4313. case $host_os in
  4314. cygwin* | mingw* | pw32* | cegcc*)
  4315. if test "$GCC" != yes; then
  4316. reload_cmds=false
  4317. fi
  4318. ;;
  4319. darwin*)
  4320. if test "$GCC" = yes; then
  4321. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4322. else
  4323. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4324. fi
  4325. ;;
  4326. esac
  4327. if test -n "$ac_tool_prefix"; then
  4328. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4329. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4331. $as_echo_n "checking for $ac_word... " >&6; }
  4332. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4333. $as_echo_n "(cached) " >&6
  4334. else
  4335. if test -n "$OBJDUMP"; then
  4336. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4337. else
  4338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4339. for as_dir in $PATH
  4340. do
  4341. IFS=$as_save_IFS
  4342. test -z "$as_dir" && as_dir=.
  4343. for ac_exec_ext in '' $ac_executable_extensions; do
  4344. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4345. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4346. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4347. break 2
  4348. fi
  4349. done
  4350. done
  4351. IFS=$as_save_IFS
  4352. fi
  4353. fi
  4354. OBJDUMP=$ac_cv_prog_OBJDUMP
  4355. if test -n "$OBJDUMP"; then
  4356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4357. $as_echo "$OBJDUMP" >&6; }
  4358. else
  4359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4360. $as_echo "no" >&6; }
  4361. fi
  4362. fi
  4363. if test -z "$ac_cv_prog_OBJDUMP"; then
  4364. ac_ct_OBJDUMP=$OBJDUMP
  4365. # Extract the first word of "objdump", so it can be a program name with args.
  4366. set dummy objdump; ac_word=$2
  4367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4368. $as_echo_n "checking for $ac_word... " >&6; }
  4369. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4370. $as_echo_n "(cached) " >&6
  4371. else
  4372. if test -n "$ac_ct_OBJDUMP"; then
  4373. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4374. else
  4375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4376. for as_dir in $PATH
  4377. do
  4378. IFS=$as_save_IFS
  4379. test -z "$as_dir" && as_dir=.
  4380. for ac_exec_ext in '' $ac_executable_extensions; do
  4381. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4382. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4383. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4384. break 2
  4385. fi
  4386. done
  4387. done
  4388. IFS=$as_save_IFS
  4389. fi
  4390. fi
  4391. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4392. if test -n "$ac_ct_OBJDUMP"; then
  4393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4394. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4395. else
  4396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4397. $as_echo "no" >&6; }
  4398. fi
  4399. if test "x$ac_ct_OBJDUMP" = x; then
  4400. OBJDUMP="false"
  4401. else
  4402. case $cross_compiling:$ac_tool_warned in
  4403. yes:)
  4404. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4405. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4406. ac_tool_warned=yes ;;
  4407. esac
  4408. OBJDUMP=$ac_ct_OBJDUMP
  4409. fi
  4410. else
  4411. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4412. fi
  4413. test -z "$OBJDUMP" && OBJDUMP=objdump
  4414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4415. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4416. if ${lt_cv_deplibs_check_method+:} false; then :
  4417. $as_echo_n "(cached) " >&6
  4418. else
  4419. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4420. lt_cv_file_magic_test_file=
  4421. lt_cv_deplibs_check_method='unknown'
  4422. # Need to set the preceding variable on all platforms that support
  4423. # interlibrary dependencies.
  4424. # 'none' -- dependencies not supported.
  4425. # `unknown' -- same as none, but documents that we really don't know.
  4426. # 'pass_all' -- all dependencies passed with no checks.
  4427. # 'test_compile' -- check by making test program.
  4428. # 'file_magic [[regex]]' -- check by looking for files in library path
  4429. # which responds to the $file_magic_cmd with a given extended regex.
  4430. # If you have `file' or equivalent on your system and you're not sure
  4431. # whether `pass_all' will *always* work, you probably want this one.
  4432. case $host_os in
  4433. aix[4-9]*)
  4434. lt_cv_deplibs_check_method=pass_all
  4435. ;;
  4436. beos*)
  4437. lt_cv_deplibs_check_method=pass_all
  4438. ;;
  4439. bsdi[45]*)
  4440. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4441. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4442. lt_cv_file_magic_test_file=/shlib/libc.so
  4443. ;;
  4444. cygwin*)
  4445. # func_win32_libid is a shell function defined in ltmain.sh
  4446. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4447. lt_cv_file_magic_cmd='func_win32_libid'
  4448. ;;
  4449. mingw* | pw32*)
  4450. # Base MSYS/MinGW do not provide the 'file' command needed by
  4451. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4452. # unless we find 'file', for example because we are cross-compiling.
  4453. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4454. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4455. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4456. lt_cv_file_magic_cmd='func_win32_libid'
  4457. else
  4458. # Keep this pattern in sync with the one in func_win32_libid.
  4459. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4460. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4461. fi
  4462. ;;
  4463. cegcc*)
  4464. # use the weaker test based on 'objdump'. See mingw*.
  4465. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4466. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4467. ;;
  4468. darwin* | rhapsody*)
  4469. lt_cv_deplibs_check_method=pass_all
  4470. ;;
  4471. freebsd* | dragonfly*)
  4472. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4473. case $host_cpu in
  4474. i*86 )
  4475. # Not sure whether the presence of OpenBSD here was a mistake.
  4476. # Let's accept both of them until this is cleared up.
  4477. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4478. lt_cv_file_magic_cmd=/usr/bin/file
  4479. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4480. ;;
  4481. esac
  4482. else
  4483. lt_cv_deplibs_check_method=pass_all
  4484. fi
  4485. ;;
  4486. gnu*)
  4487. lt_cv_deplibs_check_method=pass_all
  4488. ;;
  4489. haiku*)
  4490. lt_cv_deplibs_check_method=pass_all
  4491. ;;
  4492. hpux10.20* | hpux11*)
  4493. lt_cv_file_magic_cmd=/usr/bin/file
  4494. case $host_cpu in
  4495. ia64*)
  4496. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4497. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4498. ;;
  4499. hppa*64*)
  4500. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  4501. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4502. ;;
  4503. *)
  4504. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4505. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4506. ;;
  4507. esac
  4508. ;;
  4509. interix[3-9]*)
  4510. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4511. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4512. ;;
  4513. irix5* | irix6* | nonstopux*)
  4514. case $LD in
  4515. *-32|*"-32 ") libmagic=32-bit;;
  4516. *-n32|*"-n32 ") libmagic=N32;;
  4517. *-64|*"-64 ") libmagic=64-bit;;
  4518. *) libmagic=never-match;;
  4519. esac
  4520. lt_cv_deplibs_check_method=pass_all
  4521. ;;
  4522. # This must be Linux ELF.
  4523. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4524. lt_cv_deplibs_check_method=pass_all
  4525. ;;
  4526. netbsd*)
  4527. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4528. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4529. else
  4530. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4531. fi
  4532. ;;
  4533. newos6*)
  4534. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4535. lt_cv_file_magic_cmd=/usr/bin/file
  4536. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4537. ;;
  4538. *nto* | *qnx*)
  4539. lt_cv_deplibs_check_method=pass_all
  4540. ;;
  4541. openbsd*)
  4542. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4543. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4544. else
  4545. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4546. fi
  4547. ;;
  4548. osf3* | osf4* | osf5*)
  4549. lt_cv_deplibs_check_method=pass_all
  4550. ;;
  4551. rdos*)
  4552. lt_cv_deplibs_check_method=pass_all
  4553. ;;
  4554. solaris*)
  4555. lt_cv_deplibs_check_method=pass_all
  4556. ;;
  4557. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4558. lt_cv_deplibs_check_method=pass_all
  4559. ;;
  4560. sysv4 | sysv4.3*)
  4561. case $host_vendor in
  4562. motorola)
  4563. 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]'
  4564. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4565. ;;
  4566. ncr)
  4567. lt_cv_deplibs_check_method=pass_all
  4568. ;;
  4569. sequent)
  4570. lt_cv_file_magic_cmd='/bin/file'
  4571. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4572. ;;
  4573. sni)
  4574. lt_cv_file_magic_cmd='/bin/file'
  4575. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4576. lt_cv_file_magic_test_file=/lib/libc.so
  4577. ;;
  4578. siemens)
  4579. lt_cv_deplibs_check_method=pass_all
  4580. ;;
  4581. pc)
  4582. lt_cv_deplibs_check_method=pass_all
  4583. ;;
  4584. esac
  4585. ;;
  4586. tpf*)
  4587. lt_cv_deplibs_check_method=pass_all
  4588. ;;
  4589. esac
  4590. fi
  4591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4592. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4593. file_magic_glob=
  4594. want_nocaseglob=no
  4595. if test "$build" = "$host"; then
  4596. case $host_os in
  4597. mingw* | pw32*)
  4598. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4599. want_nocaseglob=yes
  4600. else
  4601. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4602. fi
  4603. ;;
  4604. esac
  4605. fi
  4606. file_magic_cmd=$lt_cv_file_magic_cmd
  4607. deplibs_check_method=$lt_cv_deplibs_check_method
  4608. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4609. if test -n "$ac_tool_prefix"; then
  4610. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4611. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4613. $as_echo_n "checking for $ac_word... " >&6; }
  4614. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4615. $as_echo_n "(cached) " >&6
  4616. else
  4617. if test -n "$DLLTOOL"; then
  4618. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4619. else
  4620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4621. for as_dir in $PATH
  4622. do
  4623. IFS=$as_save_IFS
  4624. test -z "$as_dir" && as_dir=.
  4625. for ac_exec_ext in '' $ac_executable_extensions; do
  4626. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4627. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4628. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4629. break 2
  4630. fi
  4631. done
  4632. done
  4633. IFS=$as_save_IFS
  4634. fi
  4635. fi
  4636. DLLTOOL=$ac_cv_prog_DLLTOOL
  4637. if test -n "$DLLTOOL"; then
  4638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4639. $as_echo "$DLLTOOL" >&6; }
  4640. else
  4641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4642. $as_echo "no" >&6; }
  4643. fi
  4644. fi
  4645. if test -z "$ac_cv_prog_DLLTOOL"; then
  4646. ac_ct_DLLTOOL=$DLLTOOL
  4647. # Extract the first word of "dlltool", so it can be a program name with args.
  4648. set dummy dlltool; ac_word=$2
  4649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4650. $as_echo_n "checking for $ac_word... " >&6; }
  4651. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4652. $as_echo_n "(cached) " >&6
  4653. else
  4654. if test -n "$ac_ct_DLLTOOL"; then
  4655. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4656. else
  4657. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4658. for as_dir in $PATH
  4659. do
  4660. IFS=$as_save_IFS
  4661. test -z "$as_dir" && as_dir=.
  4662. for ac_exec_ext in '' $ac_executable_extensions; do
  4663. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4664. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4665. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4666. break 2
  4667. fi
  4668. done
  4669. done
  4670. IFS=$as_save_IFS
  4671. fi
  4672. fi
  4673. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4674. if test -n "$ac_ct_DLLTOOL"; then
  4675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4676. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4677. else
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4679. $as_echo "no" >&6; }
  4680. fi
  4681. if test "x$ac_ct_DLLTOOL" = x; then
  4682. DLLTOOL="false"
  4683. else
  4684. case $cross_compiling:$ac_tool_warned in
  4685. yes:)
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4687. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4688. ac_tool_warned=yes ;;
  4689. esac
  4690. DLLTOOL=$ac_ct_DLLTOOL
  4691. fi
  4692. else
  4693. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4694. fi
  4695. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4697. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4698. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4699. $as_echo_n "(cached) " >&6
  4700. else
  4701. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4702. case $host_os in
  4703. cygwin* | mingw* | pw32* | cegcc*)
  4704. # two different shell functions defined in ltmain.sh
  4705. # decide which to use based on capabilities of $DLLTOOL
  4706. case `$DLLTOOL --help 2>&1` in
  4707. *--identify-strict*)
  4708. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4709. ;;
  4710. *)
  4711. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4712. ;;
  4713. esac
  4714. ;;
  4715. *)
  4716. # fallback: assume linklib IS sharedlib
  4717. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4718. ;;
  4719. esac
  4720. fi
  4721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4722. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4723. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4724. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4725. if test -n "$ac_tool_prefix"; then
  4726. for ac_prog in ar
  4727. do
  4728. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4729. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4731. $as_echo_n "checking for $ac_word... " >&6; }
  4732. if ${ac_cv_prog_AR+:} false; then :
  4733. $as_echo_n "(cached) " >&6
  4734. else
  4735. if test -n "$AR"; then
  4736. ac_cv_prog_AR="$AR" # Let the user override the test.
  4737. else
  4738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4739. for as_dir in $PATH
  4740. do
  4741. IFS=$as_save_IFS
  4742. test -z "$as_dir" && as_dir=.
  4743. for ac_exec_ext in '' $ac_executable_extensions; do
  4744. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4745. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4746. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4747. break 2
  4748. fi
  4749. done
  4750. done
  4751. IFS=$as_save_IFS
  4752. fi
  4753. fi
  4754. AR=$ac_cv_prog_AR
  4755. if test -n "$AR"; then
  4756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4757. $as_echo "$AR" >&6; }
  4758. else
  4759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4760. $as_echo "no" >&6; }
  4761. fi
  4762. test -n "$AR" && break
  4763. done
  4764. fi
  4765. if test -z "$AR"; then
  4766. ac_ct_AR=$AR
  4767. for ac_prog in ar
  4768. do
  4769. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4770. set dummy $ac_prog; ac_word=$2
  4771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4772. $as_echo_n "checking for $ac_word... " >&6; }
  4773. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4774. $as_echo_n "(cached) " >&6
  4775. else
  4776. if test -n "$ac_ct_AR"; then
  4777. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4778. else
  4779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4780. for as_dir in $PATH
  4781. do
  4782. IFS=$as_save_IFS
  4783. test -z "$as_dir" && as_dir=.
  4784. for ac_exec_ext in '' $ac_executable_extensions; do
  4785. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4786. ac_cv_prog_ac_ct_AR="$ac_prog"
  4787. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4788. break 2
  4789. fi
  4790. done
  4791. done
  4792. IFS=$as_save_IFS
  4793. fi
  4794. fi
  4795. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4796. if test -n "$ac_ct_AR"; then
  4797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4798. $as_echo "$ac_ct_AR" >&6; }
  4799. else
  4800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4801. $as_echo "no" >&6; }
  4802. fi
  4803. test -n "$ac_ct_AR" && break
  4804. done
  4805. if test "x$ac_ct_AR" = x; then
  4806. AR="false"
  4807. else
  4808. case $cross_compiling:$ac_tool_warned in
  4809. yes:)
  4810. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4811. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4812. ac_tool_warned=yes ;;
  4813. esac
  4814. AR=$ac_ct_AR
  4815. fi
  4816. fi
  4817. : ${AR=ar}
  4818. : ${AR_FLAGS=cru}
  4819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4820. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4821. if ${lt_cv_ar_at_file+:} false; then :
  4822. $as_echo_n "(cached) " >&6
  4823. else
  4824. lt_cv_ar_at_file=no
  4825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4826. /* end confdefs.h. */
  4827. int
  4828. main ()
  4829. {
  4830. ;
  4831. return 0;
  4832. }
  4833. _ACEOF
  4834. if ac_fn_c_try_compile "$LINENO"; then :
  4835. echo conftest.$ac_objext > conftest.lst
  4836. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4837. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4838. (eval $lt_ar_try) 2>&5
  4839. ac_status=$?
  4840. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4841. test $ac_status = 0; }
  4842. if test "$ac_status" -eq 0; then
  4843. # Ensure the archiver fails upon bogus file names.
  4844. rm -f conftest.$ac_objext libconftest.a
  4845. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4846. (eval $lt_ar_try) 2>&5
  4847. ac_status=$?
  4848. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4849. test $ac_status = 0; }
  4850. if test "$ac_status" -ne 0; then
  4851. lt_cv_ar_at_file=@
  4852. fi
  4853. fi
  4854. rm -f conftest.* libconftest.a
  4855. fi
  4856. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4857. fi
  4858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4859. $as_echo "$lt_cv_ar_at_file" >&6; }
  4860. if test "x$lt_cv_ar_at_file" = xno; then
  4861. archiver_list_spec=
  4862. else
  4863. archiver_list_spec=$lt_cv_ar_at_file
  4864. fi
  4865. if test -n "$ac_tool_prefix"; then
  4866. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4867. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4869. $as_echo_n "checking for $ac_word... " >&6; }
  4870. if ${ac_cv_prog_STRIP+:} false; then :
  4871. $as_echo_n "(cached) " >&6
  4872. else
  4873. if test -n "$STRIP"; then
  4874. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4875. else
  4876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4877. for as_dir in $PATH
  4878. do
  4879. IFS=$as_save_IFS
  4880. test -z "$as_dir" && as_dir=.
  4881. for ac_exec_ext in '' $ac_executable_extensions; do
  4882. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4883. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4884. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4885. break 2
  4886. fi
  4887. done
  4888. done
  4889. IFS=$as_save_IFS
  4890. fi
  4891. fi
  4892. STRIP=$ac_cv_prog_STRIP
  4893. if test -n "$STRIP"; then
  4894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4895. $as_echo "$STRIP" >&6; }
  4896. else
  4897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4898. $as_echo "no" >&6; }
  4899. fi
  4900. fi
  4901. if test -z "$ac_cv_prog_STRIP"; then
  4902. ac_ct_STRIP=$STRIP
  4903. # Extract the first word of "strip", so it can be a program name with args.
  4904. set dummy strip; ac_word=$2
  4905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4906. $as_echo_n "checking for $ac_word... " >&6; }
  4907. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4908. $as_echo_n "(cached) " >&6
  4909. else
  4910. if test -n "$ac_ct_STRIP"; then
  4911. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4912. else
  4913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4914. for as_dir in $PATH
  4915. do
  4916. IFS=$as_save_IFS
  4917. test -z "$as_dir" && as_dir=.
  4918. for ac_exec_ext in '' $ac_executable_extensions; do
  4919. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4920. ac_cv_prog_ac_ct_STRIP="strip"
  4921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4922. break 2
  4923. fi
  4924. done
  4925. done
  4926. IFS=$as_save_IFS
  4927. fi
  4928. fi
  4929. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4930. if test -n "$ac_ct_STRIP"; then
  4931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4932. $as_echo "$ac_ct_STRIP" >&6; }
  4933. else
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4935. $as_echo "no" >&6; }
  4936. fi
  4937. if test "x$ac_ct_STRIP" = x; then
  4938. STRIP=":"
  4939. else
  4940. case $cross_compiling:$ac_tool_warned in
  4941. yes:)
  4942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4943. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4944. ac_tool_warned=yes ;;
  4945. esac
  4946. STRIP=$ac_ct_STRIP
  4947. fi
  4948. else
  4949. STRIP="$ac_cv_prog_STRIP"
  4950. fi
  4951. test -z "$STRIP" && STRIP=:
  4952. if test -n "$ac_tool_prefix"; then
  4953. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4954. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4956. $as_echo_n "checking for $ac_word... " >&6; }
  4957. if ${ac_cv_prog_RANLIB+:} false; then :
  4958. $as_echo_n "(cached) " >&6
  4959. else
  4960. if test -n "$RANLIB"; then
  4961. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4962. else
  4963. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4964. for as_dir in $PATH
  4965. do
  4966. IFS=$as_save_IFS
  4967. test -z "$as_dir" && as_dir=.
  4968. for ac_exec_ext in '' $ac_executable_extensions; do
  4969. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4970. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4971. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4972. break 2
  4973. fi
  4974. done
  4975. done
  4976. IFS=$as_save_IFS
  4977. fi
  4978. fi
  4979. RANLIB=$ac_cv_prog_RANLIB
  4980. if test -n "$RANLIB"; then
  4981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4982. $as_echo "$RANLIB" >&6; }
  4983. else
  4984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4985. $as_echo "no" >&6; }
  4986. fi
  4987. fi
  4988. if test -z "$ac_cv_prog_RANLIB"; then
  4989. ac_ct_RANLIB=$RANLIB
  4990. # Extract the first word of "ranlib", so it can be a program name with args.
  4991. set dummy ranlib; ac_word=$2
  4992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4993. $as_echo_n "checking for $ac_word... " >&6; }
  4994. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4995. $as_echo_n "(cached) " >&6
  4996. else
  4997. if test -n "$ac_ct_RANLIB"; then
  4998. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4999. else
  5000. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5001. for as_dir in $PATH
  5002. do
  5003. IFS=$as_save_IFS
  5004. test -z "$as_dir" && as_dir=.
  5005. for ac_exec_ext in '' $ac_executable_extensions; do
  5006. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5007. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5008. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5009. break 2
  5010. fi
  5011. done
  5012. done
  5013. IFS=$as_save_IFS
  5014. fi
  5015. fi
  5016. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5017. if test -n "$ac_ct_RANLIB"; then
  5018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5019. $as_echo "$ac_ct_RANLIB" >&6; }
  5020. else
  5021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5022. $as_echo "no" >&6; }
  5023. fi
  5024. if test "x$ac_ct_RANLIB" = x; then
  5025. RANLIB=":"
  5026. else
  5027. case $cross_compiling:$ac_tool_warned in
  5028. yes:)
  5029. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5030. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5031. ac_tool_warned=yes ;;
  5032. esac
  5033. RANLIB=$ac_ct_RANLIB
  5034. fi
  5035. else
  5036. RANLIB="$ac_cv_prog_RANLIB"
  5037. fi
  5038. test -z "$RANLIB" && RANLIB=:
  5039. # Determine commands to create old-style static archives.
  5040. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5041. old_postinstall_cmds='chmod 644 $oldlib'
  5042. old_postuninstall_cmds=
  5043. if test -n "$RANLIB"; then
  5044. case $host_os in
  5045. openbsd*)
  5046. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5047. ;;
  5048. *)
  5049. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5050. ;;
  5051. esac
  5052. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5053. fi
  5054. case $host_os in
  5055. darwin*)
  5056. lock_old_archive_extraction=yes ;;
  5057. *)
  5058. lock_old_archive_extraction=no ;;
  5059. esac
  5060. # If no C compiler was specified, use CC.
  5061. LTCC=${LTCC-"$CC"}
  5062. # If no C compiler flags were specified, use CFLAGS.
  5063. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5064. # Allow CC to be a program name with arguments.
  5065. compiler=$CC
  5066. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5068. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5069. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5070. $as_echo_n "(cached) " >&6
  5071. else
  5072. # These are sane defaults that work on at least a few old systems.
  5073. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5074. # Character class describing NM global symbol codes.
  5075. symcode='[BCDEGRST]'
  5076. # Regexp to match symbols that can be accessed directly from C.
  5077. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5078. # Define system-specific variables.
  5079. case $host_os in
  5080. aix*)
  5081. symcode='[BCDT]'
  5082. ;;
  5083. cygwin* | mingw* | pw32* | cegcc*)
  5084. symcode='[ABCDGISTW]'
  5085. ;;
  5086. hpux*)
  5087. if test "$host_cpu" = ia64; then
  5088. symcode='[ABCDEGRST]'
  5089. fi
  5090. ;;
  5091. irix* | nonstopux*)
  5092. symcode='[BCDEGRST]'
  5093. ;;
  5094. osf*)
  5095. symcode='[BCDEGQRST]'
  5096. ;;
  5097. solaris*)
  5098. symcode='[BDRT]'
  5099. ;;
  5100. sco3.2v5*)
  5101. symcode='[DT]'
  5102. ;;
  5103. sysv4.2uw2*)
  5104. symcode='[DT]'
  5105. ;;
  5106. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5107. symcode='[ABDT]'
  5108. ;;
  5109. sysv4)
  5110. symcode='[DFNSTU]'
  5111. ;;
  5112. esac
  5113. # If we're using GNU nm, then use its standard symbol codes.
  5114. case `$NM -V 2>&1` in
  5115. *GNU* | *'with BFD'*)
  5116. symcode='[ABCDGIRSTW]' ;;
  5117. esac
  5118. # Transform an extracted symbol line into a proper C declaration.
  5119. # Some systems (esp. on ia64) link data and code symbols differently,
  5120. # so use this general approach.
  5121. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5122. # Transform an extracted symbol line into symbol name and symbol address
  5123. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5124. 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'"
  5125. # Handle CRLF in mingw tool chain
  5126. opt_cr=
  5127. case $build_os in
  5128. mingw*)
  5129. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5130. ;;
  5131. esac
  5132. # Try without a prefix underscore, then with it.
  5133. for ac_symprfx in "" "_"; do
  5134. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5135. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5136. # Write the raw and C identifiers.
  5137. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5138. # Fake it for dumpbin and say T for any non-static function
  5139. # and D for any global variable.
  5140. # Also find C++ and __fastcall symbols from MSVC++,
  5141. # which start with @ or ?.
  5142. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5143. " {last_section=section; section=\$ 3};"\
  5144. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5145. " \$ 0!~/External *\|/{next};"\
  5146. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5147. " {if(hide[section]) next};"\
  5148. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5149. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5150. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5151. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5152. " ' prfx=^$ac_symprfx"
  5153. else
  5154. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5155. fi
  5156. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5157. # Check to see that the pipe works correctly.
  5158. pipe_works=no
  5159. rm -f conftest*
  5160. cat > conftest.$ac_ext <<_LT_EOF
  5161. #ifdef __cplusplus
  5162. extern "C" {
  5163. #endif
  5164. char nm_test_var;
  5165. void nm_test_func(void);
  5166. void nm_test_func(void){}
  5167. #ifdef __cplusplus
  5168. }
  5169. #endif
  5170. int main(){nm_test_var='a';nm_test_func();return(0);}
  5171. _LT_EOF
  5172. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5173. (eval $ac_compile) 2>&5
  5174. ac_status=$?
  5175. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5176. test $ac_status = 0; }; then
  5177. # Now try to grab the symbols.
  5178. nlist=conftest.nm
  5179. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5180. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5181. ac_status=$?
  5182. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5183. test $ac_status = 0; } && test -s "$nlist"; then
  5184. # Try sorting and uniquifying the output.
  5185. if sort "$nlist" | uniq > "$nlist"T; then
  5186. mv -f "$nlist"T "$nlist"
  5187. else
  5188. rm -f "$nlist"T
  5189. fi
  5190. # Make sure that we snagged all the symbols we need.
  5191. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5192. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5193. cat <<_LT_EOF > conftest.$ac_ext
  5194. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5195. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5196. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5197. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5198. # define LT_DLSYM_CONST
  5199. #elif defined(__osf__)
  5200. /* This system does not cope well with relocations in const data. */
  5201. # define LT_DLSYM_CONST
  5202. #else
  5203. # define LT_DLSYM_CONST const
  5204. #endif
  5205. #ifdef __cplusplus
  5206. extern "C" {
  5207. #endif
  5208. _LT_EOF
  5209. # Now generate the symbol file.
  5210. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5211. cat <<_LT_EOF >> conftest.$ac_ext
  5212. /* The mapping between symbol names and symbols. */
  5213. LT_DLSYM_CONST struct {
  5214. const char *name;
  5215. void *address;
  5216. }
  5217. lt__PROGRAM__LTX_preloaded_symbols[] =
  5218. {
  5219. { "@PROGRAM@", (void *) 0 },
  5220. _LT_EOF
  5221. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5222. cat <<\_LT_EOF >> conftest.$ac_ext
  5223. {0, (void *) 0}
  5224. };
  5225. /* This works around a problem in FreeBSD linker */
  5226. #ifdef FREEBSD_WORKAROUND
  5227. static const void *lt_preloaded_setup() {
  5228. return lt__PROGRAM__LTX_preloaded_symbols;
  5229. }
  5230. #endif
  5231. #ifdef __cplusplus
  5232. }
  5233. #endif
  5234. _LT_EOF
  5235. # Now try linking the two files.
  5236. mv conftest.$ac_objext conftstm.$ac_objext
  5237. lt_globsym_save_LIBS=$LIBS
  5238. lt_globsym_save_CFLAGS=$CFLAGS
  5239. LIBS="conftstm.$ac_objext"
  5240. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5241. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5242. (eval $ac_link) 2>&5
  5243. ac_status=$?
  5244. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5245. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5246. pipe_works=yes
  5247. fi
  5248. LIBS=$lt_globsym_save_LIBS
  5249. CFLAGS=$lt_globsym_save_CFLAGS
  5250. else
  5251. echo "cannot find nm_test_func in $nlist" >&5
  5252. fi
  5253. else
  5254. echo "cannot find nm_test_var in $nlist" >&5
  5255. fi
  5256. else
  5257. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5258. fi
  5259. else
  5260. echo "$progname: failed program was:" >&5
  5261. cat conftest.$ac_ext >&5
  5262. fi
  5263. rm -rf conftest* conftst*
  5264. # Do not use the global_symbol_pipe unless it works.
  5265. if test "$pipe_works" = yes; then
  5266. break
  5267. else
  5268. lt_cv_sys_global_symbol_pipe=
  5269. fi
  5270. done
  5271. fi
  5272. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5273. lt_cv_sys_global_symbol_to_cdecl=
  5274. fi
  5275. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5277. $as_echo "failed" >&6; }
  5278. else
  5279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5280. $as_echo "ok" >&6; }
  5281. fi
  5282. # Response file support.
  5283. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5284. nm_file_list_spec='@'
  5285. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5286. nm_file_list_spec='@'
  5287. fi
  5288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5289. $as_echo_n "checking for sysroot... " >&6; }
  5290. # Check whether --with-sysroot was given.
  5291. if test "${with_sysroot+set}" = set; then :
  5292. withval=$with_sysroot;
  5293. else
  5294. with_sysroot=no
  5295. fi
  5296. lt_sysroot=
  5297. case ${with_sysroot} in #(
  5298. yes)
  5299. if test "$GCC" = yes; then
  5300. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5301. fi
  5302. ;; #(
  5303. /*)
  5304. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5305. ;; #(
  5306. no|'')
  5307. ;; #(
  5308. *)
  5309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5310. $as_echo "${with_sysroot}" >&6; }
  5311. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5312. ;;
  5313. esac
  5314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5315. $as_echo "${lt_sysroot:-no}" >&6; }
  5316. # Check whether --enable-libtool-lock was given.
  5317. if test "${enable_libtool_lock+set}" = set; then :
  5318. enableval=$enable_libtool_lock;
  5319. fi
  5320. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5321. # Some flags need to be propagated to the compiler or linker for good
  5322. # libtool support.
  5323. case $host in
  5324. ia64-*-hpux*)
  5325. # Find out which ABI we are using.
  5326. echo 'int i;' > conftest.$ac_ext
  5327. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5328. (eval $ac_compile) 2>&5
  5329. ac_status=$?
  5330. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5331. test $ac_status = 0; }; then
  5332. case `/usr/bin/file conftest.$ac_objext` in
  5333. *ELF-32*)
  5334. HPUX_IA64_MODE="32"
  5335. ;;
  5336. *ELF-64*)
  5337. HPUX_IA64_MODE="64"
  5338. ;;
  5339. esac
  5340. fi
  5341. rm -rf conftest*
  5342. ;;
  5343. *-*-irix6*)
  5344. # Find out which ABI we are using.
  5345. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5346. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5347. (eval $ac_compile) 2>&5
  5348. ac_status=$?
  5349. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5350. test $ac_status = 0; }; then
  5351. if test "$lt_cv_prog_gnu_ld" = yes; then
  5352. case `/usr/bin/file conftest.$ac_objext` in
  5353. *32-bit*)
  5354. LD="${LD-ld} -melf32bsmip"
  5355. ;;
  5356. *N32*)
  5357. LD="${LD-ld} -melf32bmipn32"
  5358. ;;
  5359. *64-bit*)
  5360. LD="${LD-ld} -melf64bmip"
  5361. ;;
  5362. esac
  5363. else
  5364. case `/usr/bin/file conftest.$ac_objext` in
  5365. *32-bit*)
  5366. LD="${LD-ld} -32"
  5367. ;;
  5368. *N32*)
  5369. LD="${LD-ld} -n32"
  5370. ;;
  5371. *64-bit*)
  5372. LD="${LD-ld} -64"
  5373. ;;
  5374. esac
  5375. fi
  5376. fi
  5377. rm -rf conftest*
  5378. ;;
  5379. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5380. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5381. # Find out which ABI we are using.
  5382. echo 'int i;' > conftest.$ac_ext
  5383. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5384. (eval $ac_compile) 2>&5
  5385. ac_status=$?
  5386. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5387. test $ac_status = 0; }; then
  5388. case `/usr/bin/file conftest.o` in
  5389. *32-bit*)
  5390. case $host in
  5391. x86_64-*kfreebsd*-gnu)
  5392. LD="${LD-ld} -m elf_i386_fbsd"
  5393. ;;
  5394. x86_64-*linux*)
  5395. LD="${LD-ld} -m elf_i386"
  5396. ;;
  5397. ppc64-*linux*|powerpc64-*linux*)
  5398. LD="${LD-ld} -m elf32ppclinux"
  5399. ;;
  5400. s390x-*linux*)
  5401. LD="${LD-ld} -m elf_s390"
  5402. ;;
  5403. sparc64-*linux*)
  5404. LD="${LD-ld} -m elf32_sparc"
  5405. ;;
  5406. esac
  5407. ;;
  5408. *64-bit*)
  5409. case $host in
  5410. x86_64-*kfreebsd*-gnu)
  5411. LD="${LD-ld} -m elf_x86_64_fbsd"
  5412. ;;
  5413. x86_64-*linux*)
  5414. LD="${LD-ld} -m elf_x86_64"
  5415. ;;
  5416. ppc*-*linux*|powerpc*-*linux*)
  5417. LD="${LD-ld} -m elf64ppc"
  5418. ;;
  5419. s390*-*linux*|s390*-*tpf*)
  5420. LD="${LD-ld} -m elf64_s390"
  5421. ;;
  5422. sparc*-*linux*)
  5423. LD="${LD-ld} -m elf64_sparc"
  5424. ;;
  5425. esac
  5426. ;;
  5427. esac
  5428. fi
  5429. rm -rf conftest*
  5430. ;;
  5431. *-*-sco3.2v5*)
  5432. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5433. SAVE_CFLAGS="$CFLAGS"
  5434. CFLAGS="$CFLAGS -belf"
  5435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5436. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5437. if ${lt_cv_cc_needs_belf+:} false; then :
  5438. $as_echo_n "(cached) " >&6
  5439. else
  5440. ac_ext=c
  5441. ac_cpp='$CPP $CPPFLAGS'
  5442. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5443. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5444. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5446. /* end confdefs.h. */
  5447. int
  5448. main ()
  5449. {
  5450. ;
  5451. return 0;
  5452. }
  5453. _ACEOF
  5454. if ac_fn_c_try_link "$LINENO"; then :
  5455. lt_cv_cc_needs_belf=yes
  5456. else
  5457. lt_cv_cc_needs_belf=no
  5458. fi
  5459. rm -f core conftest.err conftest.$ac_objext \
  5460. conftest$ac_exeext conftest.$ac_ext
  5461. ac_ext=c
  5462. ac_cpp='$CPP $CPPFLAGS'
  5463. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5464. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5465. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5466. fi
  5467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5468. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5469. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5470. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5471. CFLAGS="$SAVE_CFLAGS"
  5472. fi
  5473. ;;
  5474. sparc*-*solaris*)
  5475. # Find out which ABI we are using.
  5476. echo 'int i;' > conftest.$ac_ext
  5477. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5478. (eval $ac_compile) 2>&5
  5479. ac_status=$?
  5480. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5481. test $ac_status = 0; }; then
  5482. case `/usr/bin/file conftest.o` in
  5483. *64-bit*)
  5484. case $lt_cv_prog_gnu_ld in
  5485. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5486. *)
  5487. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5488. LD="${LD-ld} -64"
  5489. fi
  5490. ;;
  5491. esac
  5492. ;;
  5493. esac
  5494. fi
  5495. rm -rf conftest*
  5496. ;;
  5497. esac
  5498. need_locks="$enable_libtool_lock"
  5499. if test -n "$ac_tool_prefix"; then
  5500. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5501. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5503. $as_echo_n "checking for $ac_word... " >&6; }
  5504. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5505. $as_echo_n "(cached) " >&6
  5506. else
  5507. if test -n "$MANIFEST_TOOL"; then
  5508. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5509. else
  5510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5511. for as_dir in $PATH
  5512. do
  5513. IFS=$as_save_IFS
  5514. test -z "$as_dir" && as_dir=.
  5515. for ac_exec_ext in '' $ac_executable_extensions; do
  5516. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5517. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5518. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5519. break 2
  5520. fi
  5521. done
  5522. done
  5523. IFS=$as_save_IFS
  5524. fi
  5525. fi
  5526. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5527. if test -n "$MANIFEST_TOOL"; then
  5528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5529. $as_echo "$MANIFEST_TOOL" >&6; }
  5530. else
  5531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5532. $as_echo "no" >&6; }
  5533. fi
  5534. fi
  5535. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5536. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5537. # Extract the first word of "mt", so it can be a program name with args.
  5538. set dummy mt; ac_word=$2
  5539. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5540. $as_echo_n "checking for $ac_word... " >&6; }
  5541. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5542. $as_echo_n "(cached) " >&6
  5543. else
  5544. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5545. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5546. else
  5547. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5548. for as_dir in $PATH
  5549. do
  5550. IFS=$as_save_IFS
  5551. test -z "$as_dir" && as_dir=.
  5552. for ac_exec_ext in '' $ac_executable_extensions; do
  5553. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5554. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5555. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5556. break 2
  5557. fi
  5558. done
  5559. done
  5560. IFS=$as_save_IFS
  5561. fi
  5562. fi
  5563. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5564. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5566. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5567. else
  5568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5569. $as_echo "no" >&6; }
  5570. fi
  5571. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5572. MANIFEST_TOOL=":"
  5573. else
  5574. case $cross_compiling:$ac_tool_warned in
  5575. yes:)
  5576. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5577. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5578. ac_tool_warned=yes ;;
  5579. esac
  5580. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5581. fi
  5582. else
  5583. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5584. fi
  5585. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5587. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5588. if ${lt_cv_path_mainfest_tool+:} false; then :
  5589. $as_echo_n "(cached) " >&6
  5590. else
  5591. lt_cv_path_mainfest_tool=no
  5592. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5593. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5594. cat conftest.err >&5
  5595. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5596. lt_cv_path_mainfest_tool=yes
  5597. fi
  5598. rm -f conftest*
  5599. fi
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5601. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5602. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5603. MANIFEST_TOOL=:
  5604. fi
  5605. case $host_os in
  5606. rhapsody* | darwin*)
  5607. if test -n "$ac_tool_prefix"; then
  5608. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5609. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5611. $as_echo_n "checking for $ac_word... " >&6; }
  5612. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5613. $as_echo_n "(cached) " >&6
  5614. else
  5615. if test -n "$DSYMUTIL"; then
  5616. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5617. else
  5618. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5619. for as_dir in $PATH
  5620. do
  5621. IFS=$as_save_IFS
  5622. test -z "$as_dir" && as_dir=.
  5623. for ac_exec_ext in '' $ac_executable_extensions; do
  5624. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5625. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5626. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5627. break 2
  5628. fi
  5629. done
  5630. done
  5631. IFS=$as_save_IFS
  5632. fi
  5633. fi
  5634. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5635. if test -n "$DSYMUTIL"; then
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5637. $as_echo "$DSYMUTIL" >&6; }
  5638. else
  5639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5640. $as_echo "no" >&6; }
  5641. fi
  5642. fi
  5643. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5644. ac_ct_DSYMUTIL=$DSYMUTIL
  5645. # Extract the first word of "dsymutil", so it can be a program name with args.
  5646. set dummy dsymutil; ac_word=$2
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5648. $as_echo_n "checking for $ac_word... " >&6; }
  5649. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5650. $as_echo_n "(cached) " >&6
  5651. else
  5652. if test -n "$ac_ct_DSYMUTIL"; then
  5653. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5654. else
  5655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5656. for as_dir in $PATH
  5657. do
  5658. IFS=$as_save_IFS
  5659. test -z "$as_dir" && as_dir=.
  5660. for ac_exec_ext in '' $ac_executable_extensions; do
  5661. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5662. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5664. break 2
  5665. fi
  5666. done
  5667. done
  5668. IFS=$as_save_IFS
  5669. fi
  5670. fi
  5671. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5672. if test -n "$ac_ct_DSYMUTIL"; then
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5674. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5675. else
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5677. $as_echo "no" >&6; }
  5678. fi
  5679. if test "x$ac_ct_DSYMUTIL" = x; then
  5680. DSYMUTIL=":"
  5681. else
  5682. case $cross_compiling:$ac_tool_warned in
  5683. yes:)
  5684. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5685. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5686. ac_tool_warned=yes ;;
  5687. esac
  5688. DSYMUTIL=$ac_ct_DSYMUTIL
  5689. fi
  5690. else
  5691. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5692. fi
  5693. if test -n "$ac_tool_prefix"; then
  5694. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5695. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5697. $as_echo_n "checking for $ac_word... " >&6; }
  5698. if ${ac_cv_prog_NMEDIT+:} false; then :
  5699. $as_echo_n "(cached) " >&6
  5700. else
  5701. if test -n "$NMEDIT"; then
  5702. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5703. else
  5704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5705. for as_dir in $PATH
  5706. do
  5707. IFS=$as_save_IFS
  5708. test -z "$as_dir" && as_dir=.
  5709. for ac_exec_ext in '' $ac_executable_extensions; do
  5710. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5711. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5712. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5713. break 2
  5714. fi
  5715. done
  5716. done
  5717. IFS=$as_save_IFS
  5718. fi
  5719. fi
  5720. NMEDIT=$ac_cv_prog_NMEDIT
  5721. if test -n "$NMEDIT"; then
  5722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5723. $as_echo "$NMEDIT" >&6; }
  5724. else
  5725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5726. $as_echo "no" >&6; }
  5727. fi
  5728. fi
  5729. if test -z "$ac_cv_prog_NMEDIT"; then
  5730. ac_ct_NMEDIT=$NMEDIT
  5731. # Extract the first word of "nmedit", so it can be a program name with args.
  5732. set dummy nmedit; ac_word=$2
  5733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5734. $as_echo_n "checking for $ac_word... " >&6; }
  5735. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5736. $as_echo_n "(cached) " >&6
  5737. else
  5738. if test -n "$ac_ct_NMEDIT"; then
  5739. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5740. else
  5741. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5742. for as_dir in $PATH
  5743. do
  5744. IFS=$as_save_IFS
  5745. test -z "$as_dir" && as_dir=.
  5746. for ac_exec_ext in '' $ac_executable_extensions; do
  5747. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5748. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5749. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5750. break 2
  5751. fi
  5752. done
  5753. done
  5754. IFS=$as_save_IFS
  5755. fi
  5756. fi
  5757. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5758. if test -n "$ac_ct_NMEDIT"; then
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5760. $as_echo "$ac_ct_NMEDIT" >&6; }
  5761. else
  5762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5763. $as_echo "no" >&6; }
  5764. fi
  5765. if test "x$ac_ct_NMEDIT" = x; then
  5766. NMEDIT=":"
  5767. else
  5768. case $cross_compiling:$ac_tool_warned in
  5769. yes:)
  5770. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5771. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5772. ac_tool_warned=yes ;;
  5773. esac
  5774. NMEDIT=$ac_ct_NMEDIT
  5775. fi
  5776. else
  5777. NMEDIT="$ac_cv_prog_NMEDIT"
  5778. fi
  5779. if test -n "$ac_tool_prefix"; then
  5780. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5781. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5783. $as_echo_n "checking for $ac_word... " >&6; }
  5784. if ${ac_cv_prog_LIPO+:} false; then :
  5785. $as_echo_n "(cached) " >&6
  5786. else
  5787. if test -n "$LIPO"; then
  5788. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5789. else
  5790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5791. for as_dir in $PATH
  5792. do
  5793. IFS=$as_save_IFS
  5794. test -z "$as_dir" && as_dir=.
  5795. for ac_exec_ext in '' $ac_executable_extensions; do
  5796. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5797. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5798. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5799. break 2
  5800. fi
  5801. done
  5802. done
  5803. IFS=$as_save_IFS
  5804. fi
  5805. fi
  5806. LIPO=$ac_cv_prog_LIPO
  5807. if test -n "$LIPO"; then
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5809. $as_echo "$LIPO" >&6; }
  5810. else
  5811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5812. $as_echo "no" >&6; }
  5813. fi
  5814. fi
  5815. if test -z "$ac_cv_prog_LIPO"; then
  5816. ac_ct_LIPO=$LIPO
  5817. # Extract the first word of "lipo", so it can be a program name with args.
  5818. set dummy lipo; ac_word=$2
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5820. $as_echo_n "checking for $ac_word... " >&6; }
  5821. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5822. $as_echo_n "(cached) " >&6
  5823. else
  5824. if test -n "$ac_ct_LIPO"; then
  5825. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5826. else
  5827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5828. for as_dir in $PATH
  5829. do
  5830. IFS=$as_save_IFS
  5831. test -z "$as_dir" && as_dir=.
  5832. for ac_exec_ext in '' $ac_executable_extensions; do
  5833. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5834. ac_cv_prog_ac_ct_LIPO="lipo"
  5835. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5836. break 2
  5837. fi
  5838. done
  5839. done
  5840. IFS=$as_save_IFS
  5841. fi
  5842. fi
  5843. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5844. if test -n "$ac_ct_LIPO"; then
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5846. $as_echo "$ac_ct_LIPO" >&6; }
  5847. else
  5848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5849. $as_echo "no" >&6; }
  5850. fi
  5851. if test "x$ac_ct_LIPO" = x; then
  5852. LIPO=":"
  5853. else
  5854. case $cross_compiling:$ac_tool_warned in
  5855. yes:)
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5857. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5858. ac_tool_warned=yes ;;
  5859. esac
  5860. LIPO=$ac_ct_LIPO
  5861. fi
  5862. else
  5863. LIPO="$ac_cv_prog_LIPO"
  5864. fi
  5865. if test -n "$ac_tool_prefix"; then
  5866. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5867. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5869. $as_echo_n "checking for $ac_word... " >&6; }
  5870. if ${ac_cv_prog_OTOOL+:} false; then :
  5871. $as_echo_n "(cached) " >&6
  5872. else
  5873. if test -n "$OTOOL"; then
  5874. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5875. else
  5876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5877. for as_dir in $PATH
  5878. do
  5879. IFS=$as_save_IFS
  5880. test -z "$as_dir" && as_dir=.
  5881. for ac_exec_ext in '' $ac_executable_extensions; do
  5882. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5883. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5884. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5885. break 2
  5886. fi
  5887. done
  5888. done
  5889. IFS=$as_save_IFS
  5890. fi
  5891. fi
  5892. OTOOL=$ac_cv_prog_OTOOL
  5893. if test -n "$OTOOL"; then
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5895. $as_echo "$OTOOL" >&6; }
  5896. else
  5897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5898. $as_echo "no" >&6; }
  5899. fi
  5900. fi
  5901. if test -z "$ac_cv_prog_OTOOL"; then
  5902. ac_ct_OTOOL=$OTOOL
  5903. # Extract the first word of "otool", so it can be a program name with args.
  5904. set dummy otool; ac_word=$2
  5905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5906. $as_echo_n "checking for $ac_word... " >&6; }
  5907. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5908. $as_echo_n "(cached) " >&6
  5909. else
  5910. if test -n "$ac_ct_OTOOL"; then
  5911. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5912. else
  5913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5914. for as_dir in $PATH
  5915. do
  5916. IFS=$as_save_IFS
  5917. test -z "$as_dir" && as_dir=.
  5918. for ac_exec_ext in '' $ac_executable_extensions; do
  5919. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5920. ac_cv_prog_ac_ct_OTOOL="otool"
  5921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5922. break 2
  5923. fi
  5924. done
  5925. done
  5926. IFS=$as_save_IFS
  5927. fi
  5928. fi
  5929. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5930. if test -n "$ac_ct_OTOOL"; then
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5932. $as_echo "$ac_ct_OTOOL" >&6; }
  5933. else
  5934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5935. $as_echo "no" >&6; }
  5936. fi
  5937. if test "x$ac_ct_OTOOL" = x; then
  5938. OTOOL=":"
  5939. else
  5940. case $cross_compiling:$ac_tool_warned in
  5941. yes:)
  5942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5943. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5944. ac_tool_warned=yes ;;
  5945. esac
  5946. OTOOL=$ac_ct_OTOOL
  5947. fi
  5948. else
  5949. OTOOL="$ac_cv_prog_OTOOL"
  5950. fi
  5951. if test -n "$ac_tool_prefix"; then
  5952. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5953. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5955. $as_echo_n "checking for $ac_word... " >&6; }
  5956. if ${ac_cv_prog_OTOOL64+:} false; then :
  5957. $as_echo_n "(cached) " >&6
  5958. else
  5959. if test -n "$OTOOL64"; then
  5960. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5961. else
  5962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5963. for as_dir in $PATH
  5964. do
  5965. IFS=$as_save_IFS
  5966. test -z "$as_dir" && as_dir=.
  5967. for ac_exec_ext in '' $ac_executable_extensions; do
  5968. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5969. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5970. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5971. break 2
  5972. fi
  5973. done
  5974. done
  5975. IFS=$as_save_IFS
  5976. fi
  5977. fi
  5978. OTOOL64=$ac_cv_prog_OTOOL64
  5979. if test -n "$OTOOL64"; then
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5981. $as_echo "$OTOOL64" >&6; }
  5982. else
  5983. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5984. $as_echo "no" >&6; }
  5985. fi
  5986. fi
  5987. if test -z "$ac_cv_prog_OTOOL64"; then
  5988. ac_ct_OTOOL64=$OTOOL64
  5989. # Extract the first word of "otool64", so it can be a program name with args.
  5990. set dummy otool64; ac_word=$2
  5991. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5992. $as_echo_n "checking for $ac_word... " >&6; }
  5993. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5994. $as_echo_n "(cached) " >&6
  5995. else
  5996. if test -n "$ac_ct_OTOOL64"; then
  5997. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5998. else
  5999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6000. for as_dir in $PATH
  6001. do
  6002. IFS=$as_save_IFS
  6003. test -z "$as_dir" && as_dir=.
  6004. for ac_exec_ext in '' $ac_executable_extensions; do
  6005. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6006. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6007. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6008. break 2
  6009. fi
  6010. done
  6011. done
  6012. IFS=$as_save_IFS
  6013. fi
  6014. fi
  6015. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6016. if test -n "$ac_ct_OTOOL64"; then
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6018. $as_echo "$ac_ct_OTOOL64" >&6; }
  6019. else
  6020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6021. $as_echo "no" >&6; }
  6022. fi
  6023. if test "x$ac_ct_OTOOL64" = x; then
  6024. OTOOL64=":"
  6025. else
  6026. case $cross_compiling:$ac_tool_warned in
  6027. yes:)
  6028. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6029. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6030. ac_tool_warned=yes ;;
  6031. esac
  6032. OTOOL64=$ac_ct_OTOOL64
  6033. fi
  6034. else
  6035. OTOOL64="$ac_cv_prog_OTOOL64"
  6036. fi
  6037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6038. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6039. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6040. $as_echo_n "(cached) " >&6
  6041. else
  6042. lt_cv_apple_cc_single_mod=no
  6043. if test -z "${LT_MULTI_MODULE}"; then
  6044. # By default we will add the -single_module flag. You can override
  6045. # by either setting the environment variable LT_MULTI_MODULE
  6046. # non-empty at configure time, or by adding -multi_module to the
  6047. # link flags.
  6048. rm -rf libconftest.dylib*
  6049. echo "int foo(void){return 1;}" > conftest.c
  6050. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6051. -dynamiclib -Wl,-single_module conftest.c" >&5
  6052. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6053. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6054. _lt_result=$?
  6055. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6056. lt_cv_apple_cc_single_mod=yes
  6057. else
  6058. cat conftest.err >&5
  6059. fi
  6060. rm -rf libconftest.dylib*
  6061. rm -f conftest.*
  6062. fi
  6063. fi
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6065. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6067. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6068. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6069. $as_echo_n "(cached) " >&6
  6070. else
  6071. lt_cv_ld_exported_symbols_list=no
  6072. save_LDFLAGS=$LDFLAGS
  6073. echo "_main" > conftest.sym
  6074. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6076. /* end confdefs.h. */
  6077. int
  6078. main ()
  6079. {
  6080. ;
  6081. return 0;
  6082. }
  6083. _ACEOF
  6084. if ac_fn_c_try_link "$LINENO"; then :
  6085. lt_cv_ld_exported_symbols_list=yes
  6086. else
  6087. lt_cv_ld_exported_symbols_list=no
  6088. fi
  6089. rm -f core conftest.err conftest.$ac_objext \
  6090. conftest$ac_exeext conftest.$ac_ext
  6091. LDFLAGS="$save_LDFLAGS"
  6092. fi
  6093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6094. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6096. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6097. if ${lt_cv_ld_force_load+:} false; then :
  6098. $as_echo_n "(cached) " >&6
  6099. else
  6100. lt_cv_ld_force_load=no
  6101. cat > conftest.c << _LT_EOF
  6102. int forced_loaded() { return 2;}
  6103. _LT_EOF
  6104. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6105. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6106. echo "$AR cru libconftest.a conftest.o" >&5
  6107. $AR cru libconftest.a conftest.o 2>&5
  6108. echo "$RANLIB libconftest.a" >&5
  6109. $RANLIB libconftest.a 2>&5
  6110. cat > conftest.c << _LT_EOF
  6111. int main() { return 0;}
  6112. _LT_EOF
  6113. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6114. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6115. _lt_result=$?
  6116. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6117. lt_cv_ld_force_load=yes
  6118. else
  6119. cat conftest.err >&5
  6120. fi
  6121. rm -f conftest.err libconftest.a conftest conftest.c
  6122. rm -rf conftest.dSYM
  6123. fi
  6124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6125. $as_echo "$lt_cv_ld_force_load" >&6; }
  6126. case $host_os in
  6127. rhapsody* | darwin1.[012])
  6128. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6129. darwin1.*)
  6130. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6131. darwin*) # darwin 5.x on
  6132. # if running on 10.5 or later, the deployment target defaults
  6133. # to the OS version, if on x86, and 10.4, the deployment
  6134. # target defaults to 10.4. Don't you love it?
  6135. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6136. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6137. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6138. 10.[012]*)
  6139. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6140. 10.*)
  6141. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6142. esac
  6143. ;;
  6144. esac
  6145. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6146. _lt_dar_single_mod='$single_module'
  6147. fi
  6148. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6149. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6150. else
  6151. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6152. fi
  6153. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6154. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6155. else
  6156. _lt_dsymutil=
  6157. fi
  6158. ;;
  6159. esac
  6160. ac_ext=c
  6161. ac_cpp='$CPP $CPPFLAGS'
  6162. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6163. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6164. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6166. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6167. # On Suns, sometimes $CPP names a directory.
  6168. if test -n "$CPP" && test -d "$CPP"; then
  6169. CPP=
  6170. fi
  6171. if test -z "$CPP"; then
  6172. if ${ac_cv_prog_CPP+:} false; then :
  6173. $as_echo_n "(cached) " >&6
  6174. else
  6175. # Double quotes because CPP needs to be expanded
  6176. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6177. do
  6178. ac_preproc_ok=false
  6179. for ac_c_preproc_warn_flag in '' yes
  6180. do
  6181. # Use a header file that comes with gcc, so configuring glibc
  6182. # with a fresh cross-compiler works.
  6183. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6184. # <limits.h> exists even on freestanding compilers.
  6185. # On the NeXT, cc -E runs the code through the compiler's parser,
  6186. # not just through cpp. "Syntax error" is here to catch this case.
  6187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6188. /* end confdefs.h. */
  6189. #ifdef __STDC__
  6190. # include <limits.h>
  6191. #else
  6192. # include <assert.h>
  6193. #endif
  6194. Syntax error
  6195. _ACEOF
  6196. if ac_fn_c_try_cpp "$LINENO"; then :
  6197. else
  6198. # Broken: fails on valid input.
  6199. continue
  6200. fi
  6201. rm -f conftest.err conftest.i conftest.$ac_ext
  6202. # OK, works on sane cases. Now check whether nonexistent headers
  6203. # can be detected and how.
  6204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6205. /* end confdefs.h. */
  6206. #include <ac_nonexistent.h>
  6207. _ACEOF
  6208. if ac_fn_c_try_cpp "$LINENO"; then :
  6209. # Broken: success on invalid input.
  6210. continue
  6211. else
  6212. # Passes both tests.
  6213. ac_preproc_ok=:
  6214. break
  6215. fi
  6216. rm -f conftest.err conftest.i conftest.$ac_ext
  6217. done
  6218. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6219. rm -f conftest.i conftest.err conftest.$ac_ext
  6220. if $ac_preproc_ok; then :
  6221. break
  6222. fi
  6223. done
  6224. ac_cv_prog_CPP=$CPP
  6225. fi
  6226. CPP=$ac_cv_prog_CPP
  6227. else
  6228. ac_cv_prog_CPP=$CPP
  6229. fi
  6230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6231. $as_echo "$CPP" >&6; }
  6232. ac_preproc_ok=false
  6233. for ac_c_preproc_warn_flag in '' yes
  6234. do
  6235. # Use a header file that comes with gcc, so configuring glibc
  6236. # with a fresh cross-compiler works.
  6237. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6238. # <limits.h> exists even on freestanding compilers.
  6239. # On the NeXT, cc -E runs the code through the compiler's parser,
  6240. # not just through cpp. "Syntax error" is here to catch this case.
  6241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6242. /* end confdefs.h. */
  6243. #ifdef __STDC__
  6244. # include <limits.h>
  6245. #else
  6246. # include <assert.h>
  6247. #endif
  6248. Syntax error
  6249. _ACEOF
  6250. if ac_fn_c_try_cpp "$LINENO"; then :
  6251. else
  6252. # Broken: fails on valid input.
  6253. continue
  6254. fi
  6255. rm -f conftest.err conftest.i conftest.$ac_ext
  6256. # OK, works on sane cases. Now check whether nonexistent headers
  6257. # can be detected and how.
  6258. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6259. /* end confdefs.h. */
  6260. #include <ac_nonexistent.h>
  6261. _ACEOF
  6262. if ac_fn_c_try_cpp "$LINENO"; then :
  6263. # Broken: success on invalid input.
  6264. continue
  6265. else
  6266. # Passes both tests.
  6267. ac_preproc_ok=:
  6268. break
  6269. fi
  6270. rm -f conftest.err conftest.i conftest.$ac_ext
  6271. done
  6272. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6273. rm -f conftest.i conftest.err conftest.$ac_ext
  6274. if $ac_preproc_ok; then :
  6275. else
  6276. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6277. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6278. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6279. See \`config.log' for more details" "$LINENO" 5; }
  6280. fi
  6281. ac_ext=c
  6282. ac_cpp='$CPP $CPPFLAGS'
  6283. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6284. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6285. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6287. $as_echo_n "checking for ANSI C header files... " >&6; }
  6288. if ${ac_cv_header_stdc+:} false; then :
  6289. $as_echo_n "(cached) " >&6
  6290. else
  6291. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6292. /* end confdefs.h. */
  6293. #include <stdlib.h>
  6294. #include <stdarg.h>
  6295. #include <string.h>
  6296. #include <float.h>
  6297. int
  6298. main ()
  6299. {
  6300. ;
  6301. return 0;
  6302. }
  6303. _ACEOF
  6304. if ac_fn_c_try_compile "$LINENO"; then :
  6305. ac_cv_header_stdc=yes
  6306. else
  6307. ac_cv_header_stdc=no
  6308. fi
  6309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6310. if test $ac_cv_header_stdc = yes; then
  6311. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6313. /* end confdefs.h. */
  6314. #include <string.h>
  6315. _ACEOF
  6316. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6317. $EGREP "memchr" >/dev/null 2>&1; then :
  6318. else
  6319. ac_cv_header_stdc=no
  6320. fi
  6321. rm -f conftest*
  6322. fi
  6323. if test $ac_cv_header_stdc = yes; then
  6324. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6326. /* end confdefs.h. */
  6327. #include <stdlib.h>
  6328. _ACEOF
  6329. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6330. $EGREP "free" >/dev/null 2>&1; then :
  6331. else
  6332. ac_cv_header_stdc=no
  6333. fi
  6334. rm -f conftest*
  6335. fi
  6336. if test $ac_cv_header_stdc = yes; then
  6337. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6338. if test "$cross_compiling" = yes; then :
  6339. :
  6340. else
  6341. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6342. /* end confdefs.h. */
  6343. #include <ctype.h>
  6344. #include <stdlib.h>
  6345. #if ((' ' & 0x0FF) == 0x020)
  6346. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6347. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6348. #else
  6349. # define ISLOWER(c) \
  6350. (('a' <= (c) && (c) <= 'i') \
  6351. || ('j' <= (c) && (c) <= 'r') \
  6352. || ('s' <= (c) && (c) <= 'z'))
  6353. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6354. #endif
  6355. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6356. int
  6357. main ()
  6358. {
  6359. int i;
  6360. for (i = 0; i < 256; i++)
  6361. if (XOR (islower (i), ISLOWER (i))
  6362. || toupper (i) != TOUPPER (i))
  6363. return 2;
  6364. return 0;
  6365. }
  6366. _ACEOF
  6367. if ac_fn_c_try_run "$LINENO"; then :
  6368. else
  6369. ac_cv_header_stdc=no
  6370. fi
  6371. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6372. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6373. fi
  6374. fi
  6375. fi
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6377. $as_echo "$ac_cv_header_stdc" >&6; }
  6378. if test $ac_cv_header_stdc = yes; then
  6379. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6380. fi
  6381. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6382. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6383. inttypes.h stdint.h unistd.h
  6384. do :
  6385. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6386. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6387. "
  6388. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6389. cat >>confdefs.h <<_ACEOF
  6390. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6391. _ACEOF
  6392. fi
  6393. done
  6394. for ac_header in dlfcn.h
  6395. do :
  6396. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6397. "
  6398. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6399. cat >>confdefs.h <<_ACEOF
  6400. #define HAVE_DLFCN_H 1
  6401. _ACEOF
  6402. fi
  6403. done
  6404. # Set options
  6405. enable_dlopen=no
  6406. enable_win32_dll=no
  6407. # Check whether --enable-shared was given.
  6408. if test "${enable_shared+set}" = set; then :
  6409. enableval=$enable_shared; p=${PACKAGE-default}
  6410. case $enableval in
  6411. yes) enable_shared=yes ;;
  6412. no) enable_shared=no ;;
  6413. *)
  6414. enable_shared=no
  6415. # Look at the argument we got. We use all the common list separators.
  6416. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6417. for pkg in $enableval; do
  6418. IFS="$lt_save_ifs"
  6419. if test "X$pkg" = "X$p"; then
  6420. enable_shared=yes
  6421. fi
  6422. done
  6423. IFS="$lt_save_ifs"
  6424. ;;
  6425. esac
  6426. else
  6427. enable_shared=yes
  6428. fi
  6429. # Check whether --enable-static was given.
  6430. if test "${enable_static+set}" = set; then :
  6431. enableval=$enable_static; p=${PACKAGE-default}
  6432. case $enableval in
  6433. yes) enable_static=yes ;;
  6434. no) enable_static=no ;;
  6435. *)
  6436. enable_static=no
  6437. # Look at the argument we got. We use all the common list separators.
  6438. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6439. for pkg in $enableval; do
  6440. IFS="$lt_save_ifs"
  6441. if test "X$pkg" = "X$p"; then
  6442. enable_static=yes
  6443. fi
  6444. done
  6445. IFS="$lt_save_ifs"
  6446. ;;
  6447. esac
  6448. else
  6449. enable_static=yes
  6450. fi
  6451. # Check whether --with-pic was given.
  6452. if test "${with_pic+set}" = set; then :
  6453. withval=$with_pic; pic_mode="$withval"
  6454. else
  6455. pic_mode=default
  6456. fi
  6457. test -z "$pic_mode" && pic_mode=default
  6458. # Check whether --enable-fast-install was given.
  6459. if test "${enable_fast_install+set}" = set; then :
  6460. enableval=$enable_fast_install; p=${PACKAGE-default}
  6461. case $enableval in
  6462. yes) enable_fast_install=yes ;;
  6463. no) enable_fast_install=no ;;
  6464. *)
  6465. enable_fast_install=no
  6466. # Look at the argument we got. We use all the common list separators.
  6467. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6468. for pkg in $enableval; do
  6469. IFS="$lt_save_ifs"
  6470. if test "X$pkg" = "X$p"; then
  6471. enable_fast_install=yes
  6472. fi
  6473. done
  6474. IFS="$lt_save_ifs"
  6475. ;;
  6476. esac
  6477. else
  6478. enable_fast_install=yes
  6479. fi
  6480. # This can be used to rebuild libtool when needed
  6481. LIBTOOL_DEPS="$ltmain"
  6482. # Always use our own libtool.
  6483. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6484. test -z "$LN_S" && LN_S="ln -s"
  6485. if test -n "${ZSH_VERSION+set}" ; then
  6486. setopt NO_GLOB_SUBST
  6487. fi
  6488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6489. $as_echo_n "checking for objdir... " >&6; }
  6490. if ${lt_cv_objdir+:} false; then :
  6491. $as_echo_n "(cached) " >&6
  6492. else
  6493. rm -f .libs 2>/dev/null
  6494. mkdir .libs 2>/dev/null
  6495. if test -d .libs; then
  6496. lt_cv_objdir=.libs
  6497. else
  6498. # MS-DOS does not allow filenames that begin with a dot.
  6499. lt_cv_objdir=_libs
  6500. fi
  6501. rmdir .libs 2>/dev/null
  6502. fi
  6503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6504. $as_echo "$lt_cv_objdir" >&6; }
  6505. objdir=$lt_cv_objdir
  6506. cat >>confdefs.h <<_ACEOF
  6507. #define LT_OBJDIR "$lt_cv_objdir/"
  6508. _ACEOF
  6509. case $host_os in
  6510. aix3*)
  6511. # AIX sometimes has problems with the GCC collect2 program. For some
  6512. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6513. # vanish in a puff of smoke.
  6514. if test "X${COLLECT_NAMES+set}" != Xset; then
  6515. COLLECT_NAMES=
  6516. export COLLECT_NAMES
  6517. fi
  6518. ;;
  6519. esac
  6520. # Global variables:
  6521. ofile=libtool
  6522. can_build_shared=yes
  6523. # All known linkers require a `.a' archive for static linking (except MSVC,
  6524. # which needs '.lib').
  6525. libext=a
  6526. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6527. old_CC="$CC"
  6528. old_CFLAGS="$CFLAGS"
  6529. # Set sane defaults for various variables
  6530. test -z "$CC" && CC=cc
  6531. test -z "$LTCC" && LTCC=$CC
  6532. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6533. test -z "$LD" && LD=ld
  6534. test -z "$ac_objext" && ac_objext=o
  6535. for cc_temp in $compiler""; do
  6536. case $cc_temp in
  6537. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6538. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6539. \-*) ;;
  6540. *) break;;
  6541. esac
  6542. done
  6543. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6544. # Only perform the check for file, if the check method requires it
  6545. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6546. case $deplibs_check_method in
  6547. file_magic*)
  6548. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6550. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6551. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6552. $as_echo_n "(cached) " >&6
  6553. else
  6554. case $MAGIC_CMD in
  6555. [\\/*] | ?:[\\/]*)
  6556. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6557. ;;
  6558. *)
  6559. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6560. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6561. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6562. for ac_dir in $ac_dummy; do
  6563. IFS="$lt_save_ifs"
  6564. test -z "$ac_dir" && ac_dir=.
  6565. if test -f $ac_dir/${ac_tool_prefix}file; then
  6566. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6567. if test -n "$file_magic_test_file"; then
  6568. case $deplibs_check_method in
  6569. "file_magic "*)
  6570. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6571. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6572. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6573. $EGREP "$file_magic_regex" > /dev/null; then
  6574. :
  6575. else
  6576. cat <<_LT_EOF 1>&2
  6577. *** Warning: the command libtool uses to detect shared libraries,
  6578. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6579. *** The result is that libtool may fail to recognize shared libraries
  6580. *** as such. This will affect the creation of libtool libraries that
  6581. *** depend on shared libraries, but programs linked with such libtool
  6582. *** libraries will work regardless of this problem. Nevertheless, you
  6583. *** may want to report the problem to your system manager and/or to
  6584. *** bug-libtool@gnu.org
  6585. _LT_EOF
  6586. fi ;;
  6587. esac
  6588. fi
  6589. break
  6590. fi
  6591. done
  6592. IFS="$lt_save_ifs"
  6593. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6594. ;;
  6595. esac
  6596. fi
  6597. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6598. if test -n "$MAGIC_CMD"; then
  6599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6600. $as_echo "$MAGIC_CMD" >&6; }
  6601. else
  6602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6603. $as_echo "no" >&6; }
  6604. fi
  6605. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6606. if test -n "$ac_tool_prefix"; then
  6607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6608. $as_echo_n "checking for file... " >&6; }
  6609. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6610. $as_echo_n "(cached) " >&6
  6611. else
  6612. case $MAGIC_CMD in
  6613. [\\/*] | ?:[\\/]*)
  6614. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6615. ;;
  6616. *)
  6617. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6618. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6619. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6620. for ac_dir in $ac_dummy; do
  6621. IFS="$lt_save_ifs"
  6622. test -z "$ac_dir" && ac_dir=.
  6623. if test -f $ac_dir/file; then
  6624. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6625. if test -n "$file_magic_test_file"; then
  6626. case $deplibs_check_method in
  6627. "file_magic "*)
  6628. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6629. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6630. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6631. $EGREP "$file_magic_regex" > /dev/null; then
  6632. :
  6633. else
  6634. cat <<_LT_EOF 1>&2
  6635. *** Warning: the command libtool uses to detect shared libraries,
  6636. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6637. *** The result is that libtool may fail to recognize shared libraries
  6638. *** as such. This will affect the creation of libtool libraries that
  6639. *** depend on shared libraries, but programs linked with such libtool
  6640. *** libraries will work regardless of this problem. Nevertheless, you
  6641. *** may want to report the problem to your system manager and/or to
  6642. *** bug-libtool@gnu.org
  6643. _LT_EOF
  6644. fi ;;
  6645. esac
  6646. fi
  6647. break
  6648. fi
  6649. done
  6650. IFS="$lt_save_ifs"
  6651. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6652. ;;
  6653. esac
  6654. fi
  6655. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6656. if test -n "$MAGIC_CMD"; then
  6657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6658. $as_echo "$MAGIC_CMD" >&6; }
  6659. else
  6660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6661. $as_echo "no" >&6; }
  6662. fi
  6663. else
  6664. MAGIC_CMD=:
  6665. fi
  6666. fi
  6667. fi
  6668. ;;
  6669. esac
  6670. # Use C for the default configuration in the libtool script
  6671. lt_save_CC="$CC"
  6672. ac_ext=c
  6673. ac_cpp='$CPP $CPPFLAGS'
  6674. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6675. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6676. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6677. # Source file extension for C test sources.
  6678. ac_ext=c
  6679. # Object file extension for compiled C test sources.
  6680. objext=o
  6681. objext=$objext
  6682. # Code to be used in simple compile tests
  6683. lt_simple_compile_test_code="int some_variable = 0;"
  6684. # Code to be used in simple link tests
  6685. lt_simple_link_test_code='int main(){return(0);}'
  6686. # If no C compiler was specified, use CC.
  6687. LTCC=${LTCC-"$CC"}
  6688. # If no C compiler flags were specified, use CFLAGS.
  6689. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6690. # Allow CC to be a program name with arguments.
  6691. compiler=$CC
  6692. # Save the default compiler, since it gets overwritten when the other
  6693. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6694. compiler_DEFAULT=$CC
  6695. # save warnings/boilerplate of simple test code
  6696. ac_outfile=conftest.$ac_objext
  6697. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6698. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6699. _lt_compiler_boilerplate=`cat conftest.err`
  6700. $RM conftest*
  6701. ac_outfile=conftest.$ac_objext
  6702. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6703. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6704. _lt_linker_boilerplate=`cat conftest.err`
  6705. $RM -r conftest*
  6706. ## CAVEAT EMPTOR:
  6707. ## There is no encapsulation within the following macros, do not change
  6708. ## the running order or otherwise move them around unless you know exactly
  6709. ## what you are doing...
  6710. if test -n "$compiler"; then
  6711. lt_prog_compiler_no_builtin_flag=
  6712. if test "$GCC" = yes; then
  6713. case $cc_basename in
  6714. nvcc*)
  6715. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6716. *)
  6717. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6718. esac
  6719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6720. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6721. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6722. $as_echo_n "(cached) " >&6
  6723. else
  6724. lt_cv_prog_compiler_rtti_exceptions=no
  6725. ac_outfile=conftest.$ac_objext
  6726. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6727. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6728. # Insert the option either (1) after the last *FLAGS variable, or
  6729. # (2) before a word containing "conftest.", or (3) at the end.
  6730. # Note that $ac_compile itself does not contain backslashes and begins
  6731. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6732. # The option is referenced via a variable to avoid confusing sed.
  6733. lt_compile=`echo "$ac_compile" | $SED \
  6734. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6735. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6736. -e 's:$: $lt_compiler_flag:'`
  6737. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6738. (eval "$lt_compile" 2>conftest.err)
  6739. ac_status=$?
  6740. cat conftest.err >&5
  6741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6742. if (exit $ac_status) && test -s "$ac_outfile"; then
  6743. # The compiler can only warn and ignore the option if not recognized
  6744. # So say no if there are warnings other than the usual output.
  6745. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6746. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6747. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6748. lt_cv_prog_compiler_rtti_exceptions=yes
  6749. fi
  6750. fi
  6751. $RM conftest*
  6752. fi
  6753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6754. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6755. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6756. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6757. else
  6758. :
  6759. fi
  6760. fi
  6761. lt_prog_compiler_wl=
  6762. lt_prog_compiler_pic=
  6763. lt_prog_compiler_static=
  6764. if test "$GCC" = yes; then
  6765. lt_prog_compiler_wl='-Wl,'
  6766. lt_prog_compiler_static='-static'
  6767. case $host_os in
  6768. aix*)
  6769. # All AIX code is PIC.
  6770. if test "$host_cpu" = ia64; then
  6771. # AIX 5 now supports IA64 processor
  6772. lt_prog_compiler_static='-Bstatic'
  6773. fi
  6774. ;;
  6775. amigaos*)
  6776. case $host_cpu in
  6777. powerpc)
  6778. # see comment about AmigaOS4 .so support
  6779. lt_prog_compiler_pic='-fPIC'
  6780. ;;
  6781. m68k)
  6782. # FIXME: we need at least 68020 code to build shared libraries, but
  6783. # adding the `-m68020' flag to GCC prevents building anything better,
  6784. # like `-m68040'.
  6785. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6786. ;;
  6787. esac
  6788. ;;
  6789. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6790. # PIC is the default for these OSes.
  6791. ;;
  6792. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6793. # This hack is so that the source file can tell whether it is being
  6794. # built for inclusion in a dll (and should export symbols for example).
  6795. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6796. # (--disable-auto-import) libraries
  6797. lt_prog_compiler_pic='-DDLL_EXPORT'
  6798. ;;
  6799. darwin* | rhapsody*)
  6800. # PIC is the default on this platform
  6801. # Common symbols not allowed in MH_DYLIB files
  6802. lt_prog_compiler_pic='-fno-common'
  6803. ;;
  6804. haiku*)
  6805. # PIC is the default for Haiku.
  6806. # The "-static" flag exists, but is broken.
  6807. lt_prog_compiler_static=
  6808. ;;
  6809. hpux*)
  6810. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6811. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6812. # sets the default TLS model and affects inlining.
  6813. case $host_cpu in
  6814. hppa*64*)
  6815. # +Z the default
  6816. ;;
  6817. *)
  6818. lt_prog_compiler_pic='-fPIC'
  6819. ;;
  6820. esac
  6821. ;;
  6822. interix[3-9]*)
  6823. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6824. # Instead, we relocate shared libraries at runtime.
  6825. ;;
  6826. msdosdjgpp*)
  6827. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6828. # on systems that don't support them.
  6829. lt_prog_compiler_can_build_shared=no
  6830. enable_shared=no
  6831. ;;
  6832. *nto* | *qnx*)
  6833. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6834. # it will coredump.
  6835. lt_prog_compiler_pic='-fPIC -shared'
  6836. ;;
  6837. sysv4*MP*)
  6838. if test -d /usr/nec; then
  6839. lt_prog_compiler_pic=-Kconform_pic
  6840. fi
  6841. ;;
  6842. *)
  6843. lt_prog_compiler_pic='-fPIC'
  6844. ;;
  6845. esac
  6846. case $cc_basename in
  6847. nvcc*) # Cuda Compiler Driver 2.2
  6848. lt_prog_compiler_wl='-Xlinker '
  6849. lt_prog_compiler_pic='-Xcompiler -fPIC'
  6850. ;;
  6851. esac
  6852. else
  6853. # PORTME Check for flag to pass linker flags through the system compiler.
  6854. case $host_os in
  6855. aix*)
  6856. lt_prog_compiler_wl='-Wl,'
  6857. if test "$host_cpu" = ia64; then
  6858. # AIX 5 now supports IA64 processor
  6859. lt_prog_compiler_static='-Bstatic'
  6860. else
  6861. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6862. fi
  6863. ;;
  6864. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6865. # This hack is so that the source file can tell whether it is being
  6866. # built for inclusion in a dll (and should export symbols for example).
  6867. lt_prog_compiler_pic='-DDLL_EXPORT'
  6868. ;;
  6869. hpux9* | hpux10* | hpux11*)
  6870. lt_prog_compiler_wl='-Wl,'
  6871. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6872. # not for PA HP-UX.
  6873. case $host_cpu in
  6874. hppa*64*|ia64*)
  6875. # +Z the default
  6876. ;;
  6877. *)
  6878. lt_prog_compiler_pic='+Z'
  6879. ;;
  6880. esac
  6881. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6882. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6883. ;;
  6884. irix5* | irix6* | nonstopux*)
  6885. lt_prog_compiler_wl='-Wl,'
  6886. # PIC (with -KPIC) is the default.
  6887. lt_prog_compiler_static='-non_shared'
  6888. ;;
  6889. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6890. case $cc_basename in
  6891. # old Intel for x86_64 which still supported -KPIC.
  6892. ecc*)
  6893. lt_prog_compiler_wl='-Wl,'
  6894. lt_prog_compiler_pic='-KPIC'
  6895. lt_prog_compiler_static='-static'
  6896. ;;
  6897. # icc used to be incompatible with GCC.
  6898. # ICC 10 doesn't accept -KPIC any more.
  6899. icc* | ifort*)
  6900. lt_prog_compiler_wl='-Wl,'
  6901. lt_prog_compiler_pic='-fPIC'
  6902. lt_prog_compiler_static='-static'
  6903. ;;
  6904. # Lahey Fortran 8.1.
  6905. lf95*)
  6906. lt_prog_compiler_wl='-Wl,'
  6907. lt_prog_compiler_pic='--shared'
  6908. lt_prog_compiler_static='--static'
  6909. ;;
  6910. nagfor*)
  6911. # NAG Fortran compiler
  6912. lt_prog_compiler_wl='-Wl,-Wl,,'
  6913. lt_prog_compiler_pic='-PIC'
  6914. lt_prog_compiler_static='-Bstatic'
  6915. ;;
  6916. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  6917. # Portland Group compilers (*not* the Pentium gcc compiler,
  6918. # which looks to be a dead project)
  6919. lt_prog_compiler_wl='-Wl,'
  6920. lt_prog_compiler_pic='-fpic'
  6921. lt_prog_compiler_static='-Bstatic'
  6922. ;;
  6923. ccc*)
  6924. lt_prog_compiler_wl='-Wl,'
  6925. # All Alpha code is PIC.
  6926. lt_prog_compiler_static='-non_shared'
  6927. ;;
  6928. xl* | bgxl* | bgf* | mpixl*)
  6929. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  6930. lt_prog_compiler_wl='-Wl,'
  6931. lt_prog_compiler_pic='-qpic'
  6932. lt_prog_compiler_static='-qstaticlink'
  6933. ;;
  6934. *)
  6935. case `$CC -V 2>&1 | sed 5q` in
  6936. *Sun\ F* | *Sun*Fortran*)
  6937. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6938. lt_prog_compiler_pic='-KPIC'
  6939. lt_prog_compiler_static='-Bstatic'
  6940. lt_prog_compiler_wl=''
  6941. ;;
  6942. *Sun\ C*)
  6943. # Sun C 5.9
  6944. lt_prog_compiler_pic='-KPIC'
  6945. lt_prog_compiler_static='-Bstatic'
  6946. lt_prog_compiler_wl='-Wl,'
  6947. ;;
  6948. esac
  6949. ;;
  6950. esac
  6951. ;;
  6952. newsos6)
  6953. lt_prog_compiler_pic='-KPIC'
  6954. lt_prog_compiler_static='-Bstatic'
  6955. ;;
  6956. *nto* | *qnx*)
  6957. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6958. # it will coredump.
  6959. lt_prog_compiler_pic='-fPIC -shared'
  6960. ;;
  6961. osf3* | osf4* | osf5*)
  6962. lt_prog_compiler_wl='-Wl,'
  6963. # All OSF/1 code is PIC.
  6964. lt_prog_compiler_static='-non_shared'
  6965. ;;
  6966. rdos*)
  6967. lt_prog_compiler_static='-non_shared'
  6968. ;;
  6969. solaris*)
  6970. lt_prog_compiler_pic='-KPIC'
  6971. lt_prog_compiler_static='-Bstatic'
  6972. case $cc_basename in
  6973. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  6974. lt_prog_compiler_wl='-Qoption ld ';;
  6975. *)
  6976. lt_prog_compiler_wl='-Wl,';;
  6977. esac
  6978. ;;
  6979. sunos4*)
  6980. lt_prog_compiler_wl='-Qoption ld '
  6981. lt_prog_compiler_pic='-PIC'
  6982. lt_prog_compiler_static='-Bstatic'
  6983. ;;
  6984. sysv4 | sysv4.2uw2* | sysv4.3*)
  6985. lt_prog_compiler_wl='-Wl,'
  6986. lt_prog_compiler_pic='-KPIC'
  6987. lt_prog_compiler_static='-Bstatic'
  6988. ;;
  6989. sysv4*MP*)
  6990. if test -d /usr/nec ;then
  6991. lt_prog_compiler_pic='-Kconform_pic'
  6992. lt_prog_compiler_static='-Bstatic'
  6993. fi
  6994. ;;
  6995. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6996. lt_prog_compiler_wl='-Wl,'
  6997. lt_prog_compiler_pic='-KPIC'
  6998. lt_prog_compiler_static='-Bstatic'
  6999. ;;
  7000. unicos*)
  7001. lt_prog_compiler_wl='-Wl,'
  7002. lt_prog_compiler_can_build_shared=no
  7003. ;;
  7004. uts4*)
  7005. lt_prog_compiler_pic='-pic'
  7006. lt_prog_compiler_static='-Bstatic'
  7007. ;;
  7008. *)
  7009. lt_prog_compiler_can_build_shared=no
  7010. ;;
  7011. esac
  7012. fi
  7013. case $host_os in
  7014. # For platforms which do not support PIC, -DPIC is meaningless:
  7015. *djgpp*)
  7016. lt_prog_compiler_pic=
  7017. ;;
  7018. *)
  7019. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7020. ;;
  7021. esac
  7022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7023. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7024. if ${lt_cv_prog_compiler_pic+:} false; then :
  7025. $as_echo_n "(cached) " >&6
  7026. else
  7027. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7028. fi
  7029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7030. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7031. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7032. #
  7033. # Check to make sure the PIC flag actually works.
  7034. #
  7035. if test -n "$lt_prog_compiler_pic"; then
  7036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7037. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7038. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7039. $as_echo_n "(cached) " >&6
  7040. else
  7041. lt_cv_prog_compiler_pic_works=no
  7042. ac_outfile=conftest.$ac_objext
  7043. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7044. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7045. # Insert the option either (1) after the last *FLAGS variable, or
  7046. # (2) before a word containing "conftest.", or (3) at the end.
  7047. # Note that $ac_compile itself does not contain backslashes and begins
  7048. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7049. # The option is referenced via a variable to avoid confusing sed.
  7050. lt_compile=`echo "$ac_compile" | $SED \
  7051. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7052. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7053. -e 's:$: $lt_compiler_flag:'`
  7054. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7055. (eval "$lt_compile" 2>conftest.err)
  7056. ac_status=$?
  7057. cat conftest.err >&5
  7058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7059. if (exit $ac_status) && test -s "$ac_outfile"; then
  7060. # The compiler can only warn and ignore the option if not recognized
  7061. # So say no if there are warnings other than the usual output.
  7062. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7063. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7064. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7065. lt_cv_prog_compiler_pic_works=yes
  7066. fi
  7067. fi
  7068. $RM conftest*
  7069. fi
  7070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7071. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7072. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7073. case $lt_prog_compiler_pic in
  7074. "" | " "*) ;;
  7075. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7076. esac
  7077. else
  7078. lt_prog_compiler_pic=
  7079. lt_prog_compiler_can_build_shared=no
  7080. fi
  7081. fi
  7082. #
  7083. # Check to make sure the static flag actually works.
  7084. #
  7085. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7087. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7088. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7089. $as_echo_n "(cached) " >&6
  7090. else
  7091. lt_cv_prog_compiler_static_works=no
  7092. save_LDFLAGS="$LDFLAGS"
  7093. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7094. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7095. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7096. # The linker can only warn and ignore the option if not recognized
  7097. # So say no if there are warnings
  7098. if test -s conftest.err; then
  7099. # Append any errors to the config.log.
  7100. cat conftest.err 1>&5
  7101. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7102. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7103. if diff conftest.exp conftest.er2 >/dev/null; then
  7104. lt_cv_prog_compiler_static_works=yes
  7105. fi
  7106. else
  7107. lt_cv_prog_compiler_static_works=yes
  7108. fi
  7109. fi
  7110. $RM -r conftest*
  7111. LDFLAGS="$save_LDFLAGS"
  7112. fi
  7113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7114. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7115. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7116. :
  7117. else
  7118. lt_prog_compiler_static=
  7119. fi
  7120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7121. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7122. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7123. $as_echo_n "(cached) " >&6
  7124. else
  7125. lt_cv_prog_compiler_c_o=no
  7126. $RM -r conftest 2>/dev/null
  7127. mkdir conftest
  7128. cd conftest
  7129. mkdir out
  7130. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7131. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7132. # Insert the option either (1) after the last *FLAGS variable, or
  7133. # (2) before a word containing "conftest.", or (3) at the end.
  7134. # Note that $ac_compile itself does not contain backslashes and begins
  7135. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7136. lt_compile=`echo "$ac_compile" | $SED \
  7137. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7138. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7139. -e 's:$: $lt_compiler_flag:'`
  7140. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7141. (eval "$lt_compile" 2>out/conftest.err)
  7142. ac_status=$?
  7143. cat out/conftest.err >&5
  7144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7145. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7146. then
  7147. # The compiler can only warn and ignore the option if not recognized
  7148. # So say no if there are warnings
  7149. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7150. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7151. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7152. lt_cv_prog_compiler_c_o=yes
  7153. fi
  7154. fi
  7155. chmod u+w . 2>&5
  7156. $RM conftest*
  7157. # SGI C++ compiler will create directory out/ii_files/ for
  7158. # template instantiation
  7159. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7160. $RM out/* && rmdir out
  7161. cd ..
  7162. $RM -r conftest
  7163. $RM conftest*
  7164. fi
  7165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7166. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7168. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7169. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7170. $as_echo_n "(cached) " >&6
  7171. else
  7172. lt_cv_prog_compiler_c_o=no
  7173. $RM -r conftest 2>/dev/null
  7174. mkdir conftest
  7175. cd conftest
  7176. mkdir out
  7177. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7178. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7179. # Insert the option either (1) after the last *FLAGS variable, or
  7180. # (2) before a word containing "conftest.", or (3) at the end.
  7181. # Note that $ac_compile itself does not contain backslashes and begins
  7182. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7183. lt_compile=`echo "$ac_compile" | $SED \
  7184. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7185. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7186. -e 's:$: $lt_compiler_flag:'`
  7187. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7188. (eval "$lt_compile" 2>out/conftest.err)
  7189. ac_status=$?
  7190. cat out/conftest.err >&5
  7191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7192. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7193. then
  7194. # The compiler can only warn and ignore the option if not recognized
  7195. # So say no if there are warnings
  7196. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7197. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7198. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7199. lt_cv_prog_compiler_c_o=yes
  7200. fi
  7201. fi
  7202. chmod u+w . 2>&5
  7203. $RM conftest*
  7204. # SGI C++ compiler will create directory out/ii_files/ for
  7205. # template instantiation
  7206. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7207. $RM out/* && rmdir out
  7208. cd ..
  7209. $RM -r conftest
  7210. $RM conftest*
  7211. fi
  7212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7213. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7214. hard_links="nottested"
  7215. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7216. # do not overwrite the value of need_locks provided by the user
  7217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7218. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7219. hard_links=yes
  7220. $RM conftest*
  7221. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7222. touch conftest.a
  7223. ln conftest.a conftest.b 2>&5 || hard_links=no
  7224. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7226. $as_echo "$hard_links" >&6; }
  7227. if test "$hard_links" = no; then
  7228. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7229. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7230. need_locks=warn
  7231. fi
  7232. else
  7233. need_locks=no
  7234. fi
  7235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7236. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7237. runpath_var=
  7238. allow_undefined_flag=
  7239. always_export_symbols=no
  7240. archive_cmds=
  7241. archive_expsym_cmds=
  7242. compiler_needs_object=no
  7243. enable_shared_with_static_runtimes=no
  7244. export_dynamic_flag_spec=
  7245. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7246. hardcode_automatic=no
  7247. hardcode_direct=no
  7248. hardcode_direct_absolute=no
  7249. hardcode_libdir_flag_spec=
  7250. hardcode_libdir_flag_spec_ld=
  7251. hardcode_libdir_separator=
  7252. hardcode_minus_L=no
  7253. hardcode_shlibpath_var=unsupported
  7254. inherit_rpath=no
  7255. link_all_deplibs=unknown
  7256. module_cmds=
  7257. module_expsym_cmds=
  7258. old_archive_from_new_cmds=
  7259. old_archive_from_expsyms_cmds=
  7260. thread_safe_flag_spec=
  7261. whole_archive_flag_spec=
  7262. # include_expsyms should be a list of space-separated symbols to be *always*
  7263. # included in the symbol list
  7264. include_expsyms=
  7265. # exclude_expsyms can be an extended regexp of symbols to exclude
  7266. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7267. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7268. # as well as any symbol that contains `d'.
  7269. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7270. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7271. # platforms (ab)use it in PIC code, but their linkers get confused if
  7272. # the symbol is explicitly referenced. Since portable code cannot
  7273. # rely on this symbol name, it's probably fine to never include it in
  7274. # preloaded symbol tables.
  7275. # Exclude shared library initialization/finalization symbols.
  7276. extract_expsyms_cmds=
  7277. case $host_os in
  7278. cygwin* | mingw* | pw32* | cegcc*)
  7279. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7280. # When not using gcc, we currently assume that we are using
  7281. # Microsoft Visual C++.
  7282. if test "$GCC" != yes; then
  7283. with_gnu_ld=no
  7284. fi
  7285. ;;
  7286. interix*)
  7287. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7288. with_gnu_ld=yes
  7289. ;;
  7290. openbsd*)
  7291. with_gnu_ld=no
  7292. ;;
  7293. esac
  7294. ld_shlibs=yes
  7295. # On some targets, GNU ld is compatible enough with the native linker
  7296. # that we're better off using the native interface for both.
  7297. lt_use_gnu_ld_interface=no
  7298. if test "$with_gnu_ld" = yes; then
  7299. case $host_os in
  7300. aix*)
  7301. # The AIX port of GNU ld has always aspired to compatibility
  7302. # with the native linker. However, as the warning in the GNU ld
  7303. # block says, versions before 2.19.5* couldn't really create working
  7304. # shared libraries, regardless of the interface used.
  7305. case `$LD -v 2>&1` in
  7306. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7307. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7308. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7309. *)
  7310. lt_use_gnu_ld_interface=yes
  7311. ;;
  7312. esac
  7313. ;;
  7314. *)
  7315. lt_use_gnu_ld_interface=yes
  7316. ;;
  7317. esac
  7318. fi
  7319. if test "$lt_use_gnu_ld_interface" = yes; then
  7320. # If archive_cmds runs LD, not CC, wlarc should be empty
  7321. wlarc='${wl}'
  7322. # Set some defaults for GNU ld with shared library support. These
  7323. # are reset later if shared libraries are not supported. Putting them
  7324. # here allows them to be overridden if necessary.
  7325. runpath_var=LD_RUN_PATH
  7326. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7327. export_dynamic_flag_spec='${wl}--export-dynamic'
  7328. # ancient GNU ld didn't support --whole-archive et. al.
  7329. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7330. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7331. else
  7332. whole_archive_flag_spec=
  7333. fi
  7334. supports_anon_versioning=no
  7335. case `$LD -v 2>&1` in
  7336. *GNU\ gold*) supports_anon_versioning=yes ;;
  7337. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7338. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7339. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7340. *\ 2.11.*) ;; # other 2.11 versions
  7341. *) supports_anon_versioning=yes ;;
  7342. esac
  7343. # See if GNU ld supports shared libraries.
  7344. case $host_os in
  7345. aix[3-9]*)
  7346. # On AIX/PPC, the GNU linker is very broken
  7347. if test "$host_cpu" != ia64; then
  7348. ld_shlibs=no
  7349. cat <<_LT_EOF 1>&2
  7350. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7351. *** to be unable to reliably create shared libraries on AIX.
  7352. *** Therefore, libtool is disabling shared libraries support. If you
  7353. *** really care for shared libraries, you may want to install binutils
  7354. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7355. *** You will then need to restart the configuration process.
  7356. _LT_EOF
  7357. fi
  7358. ;;
  7359. amigaos*)
  7360. case $host_cpu in
  7361. powerpc)
  7362. # see comment about AmigaOS4 .so support
  7363. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7364. archive_expsym_cmds=''
  7365. ;;
  7366. m68k)
  7367. 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)'
  7368. hardcode_libdir_flag_spec='-L$libdir'
  7369. hardcode_minus_L=yes
  7370. ;;
  7371. esac
  7372. ;;
  7373. beos*)
  7374. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7375. allow_undefined_flag=unsupported
  7376. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7377. # support --undefined. This deserves some investigation. FIXME
  7378. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7379. else
  7380. ld_shlibs=no
  7381. fi
  7382. ;;
  7383. cygwin* | mingw* | pw32* | cegcc*)
  7384. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7385. # as there is no search path for DLLs.
  7386. hardcode_libdir_flag_spec='-L$libdir'
  7387. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7388. allow_undefined_flag=unsupported
  7389. always_export_symbols=no
  7390. enable_shared_with_static_runtimes=yes
  7391. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  7392. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7393. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7394. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7395. # If the export-symbols file already is a .def file (1st line
  7396. # is EXPORTS), use it as is; otherwise, prepend...
  7397. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7398. cp $export_symbols $output_objdir/$soname.def;
  7399. else
  7400. echo EXPORTS > $output_objdir/$soname.def;
  7401. cat $export_symbols >> $output_objdir/$soname.def;
  7402. fi~
  7403. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7404. else
  7405. ld_shlibs=no
  7406. fi
  7407. ;;
  7408. haiku*)
  7409. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7410. link_all_deplibs=yes
  7411. ;;
  7412. interix[3-9]*)
  7413. hardcode_direct=no
  7414. hardcode_shlibpath_var=no
  7415. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7416. export_dynamic_flag_spec='${wl}-E'
  7417. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7418. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7419. # default) and relocated if they conflict, which is a slow very memory
  7420. # consuming and fragmenting process. To avoid this, we pick a random,
  7421. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7422. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7423. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7424. 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'
  7425. ;;
  7426. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7427. tmp_diet=no
  7428. if test "$host_os" = linux-dietlibc; then
  7429. case $cc_basename in
  7430. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7431. esac
  7432. fi
  7433. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7434. && test "$tmp_diet" = no
  7435. then
  7436. tmp_addflag=' $pic_flag'
  7437. tmp_sharedflag='-shared'
  7438. case $cc_basename,$host_cpu in
  7439. pgcc*) # Portland Group C compiler
  7440. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7441. tmp_addflag=' $pic_flag'
  7442. ;;
  7443. pgf77* | pgf90* | pgf95* | pgfortran*)
  7444. # Portland Group f77 and f90 compilers
  7445. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7446. tmp_addflag=' $pic_flag -Mnomain' ;;
  7447. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7448. tmp_addflag=' -i_dynamic' ;;
  7449. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7450. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7451. ifc* | ifort*) # Intel Fortran compiler
  7452. tmp_addflag=' -nofor_main' ;;
  7453. lf95*) # Lahey Fortran 8.1
  7454. whole_archive_flag_spec=
  7455. tmp_sharedflag='--shared' ;;
  7456. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7457. tmp_sharedflag='-qmkshrobj'
  7458. tmp_addflag= ;;
  7459. nvcc*) # Cuda Compiler Driver 2.2
  7460. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7461. compiler_needs_object=yes
  7462. ;;
  7463. esac
  7464. case `$CC -V 2>&1 | sed 5q` in
  7465. *Sun\ C*) # Sun C 5.9
  7466. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7467. compiler_needs_object=yes
  7468. tmp_sharedflag='-G' ;;
  7469. *Sun\ F*) # Sun Fortran 8.3
  7470. tmp_sharedflag='-G' ;;
  7471. esac
  7472. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7473. if test "x$supports_anon_versioning" = xyes; then
  7474. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7475. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7476. echo "local: *; };" >> $output_objdir/$libname.ver~
  7477. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7478. fi
  7479. case $cc_basename in
  7480. xlf* | bgf* | bgxlf* | mpixlf*)
  7481. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7482. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7483. hardcode_libdir_flag_spec=
  7484. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7485. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7486. if test "x$supports_anon_versioning" = xyes; then
  7487. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7488. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7489. echo "local: *; };" >> $output_objdir/$libname.ver~
  7490. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7491. fi
  7492. ;;
  7493. esac
  7494. else
  7495. ld_shlibs=no
  7496. fi
  7497. ;;
  7498. netbsd*)
  7499. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7500. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7501. wlarc=
  7502. else
  7503. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7504. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7505. fi
  7506. ;;
  7507. solaris*)
  7508. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7509. ld_shlibs=no
  7510. cat <<_LT_EOF 1>&2
  7511. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7512. *** create shared libraries on Solaris systems. Therefore, libtool
  7513. *** is disabling shared libraries support. We urge you to upgrade GNU
  7514. *** binutils to release 2.9.1 or newer. Another option is to modify
  7515. *** your PATH or compiler configuration so that the native linker is
  7516. *** used, and then restart.
  7517. _LT_EOF
  7518. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7519. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7520. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7521. else
  7522. ld_shlibs=no
  7523. fi
  7524. ;;
  7525. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7526. case `$LD -v 2>&1` in
  7527. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7528. ld_shlibs=no
  7529. cat <<_LT_EOF 1>&2
  7530. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7531. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7532. *** is disabling shared libraries support. We urge you to upgrade GNU
  7533. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7534. *** your PATH or compiler configuration so that the native linker is
  7535. *** used, and then restart.
  7536. _LT_EOF
  7537. ;;
  7538. *)
  7539. # For security reasons, it is highly recommended that you always
  7540. # use absolute paths for naming shared libraries, and exclude the
  7541. # DT_RUNPATH tag from executables and libraries. But doing so
  7542. # requires that you compile everything twice, which is a pain.
  7543. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7544. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7545. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7546. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7547. else
  7548. ld_shlibs=no
  7549. fi
  7550. ;;
  7551. esac
  7552. ;;
  7553. sunos4*)
  7554. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7555. wlarc=
  7556. hardcode_direct=yes
  7557. hardcode_shlibpath_var=no
  7558. ;;
  7559. *)
  7560. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7561. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7562. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7563. else
  7564. ld_shlibs=no
  7565. fi
  7566. ;;
  7567. esac
  7568. if test "$ld_shlibs" = no; then
  7569. runpath_var=
  7570. hardcode_libdir_flag_spec=
  7571. export_dynamic_flag_spec=
  7572. whole_archive_flag_spec=
  7573. fi
  7574. else
  7575. # PORTME fill in a description of your system's linker (not GNU ld)
  7576. case $host_os in
  7577. aix3*)
  7578. allow_undefined_flag=unsupported
  7579. always_export_symbols=yes
  7580. 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'
  7581. # Note: this linker hardcodes the directories in LIBPATH if there
  7582. # are no directories specified by -L.
  7583. hardcode_minus_L=yes
  7584. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7585. # Neither direct hardcoding nor static linking is supported with a
  7586. # broken collect2.
  7587. hardcode_direct=unsupported
  7588. fi
  7589. ;;
  7590. aix[4-9]*)
  7591. if test "$host_cpu" = ia64; then
  7592. # On IA64, the linker does run time linking by default, so we don't
  7593. # have to do anything special.
  7594. aix_use_runtimelinking=no
  7595. exp_sym_flag='-Bexport'
  7596. no_entry_flag=""
  7597. else
  7598. # If we're using GNU nm, then we don't want the "-C" option.
  7599. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7600. # Also, AIX nm treats weak defined symbols like other global
  7601. # defined symbols, whereas GNU nm marks them as "W".
  7602. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7603. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7604. else
  7605. 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'
  7606. fi
  7607. aix_use_runtimelinking=no
  7608. # Test if we are trying to use run time linking or normal
  7609. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7610. # need to do runtime linking.
  7611. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7612. for ld_flag in $LDFLAGS; do
  7613. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7614. aix_use_runtimelinking=yes
  7615. break
  7616. fi
  7617. done
  7618. ;;
  7619. esac
  7620. exp_sym_flag='-bexport'
  7621. no_entry_flag='-bnoentry'
  7622. fi
  7623. # When large executables or shared objects are built, AIX ld can
  7624. # have problems creating the table of contents. If linking a library
  7625. # or program results in "error TOC overflow" add -mminimal-toc to
  7626. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7627. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7628. archive_cmds=''
  7629. hardcode_direct=yes
  7630. hardcode_direct_absolute=yes
  7631. hardcode_libdir_separator=':'
  7632. link_all_deplibs=yes
  7633. file_list_spec='${wl}-f,'
  7634. if test "$GCC" = yes; then
  7635. case $host_os in aix4.[012]|aix4.[012].*)
  7636. # We only want to do this on AIX 4.2 and lower, the check
  7637. # below for broken collect2 doesn't work under 4.3+
  7638. collect2name=`${CC} -print-prog-name=collect2`
  7639. if test -f "$collect2name" &&
  7640. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7641. then
  7642. # We have reworked collect2
  7643. :
  7644. else
  7645. # We have old collect2
  7646. hardcode_direct=unsupported
  7647. # It fails to find uninstalled libraries when the uninstalled
  7648. # path is not listed in the libpath. Setting hardcode_minus_L
  7649. # to unsupported forces relinking
  7650. hardcode_minus_L=yes
  7651. hardcode_libdir_flag_spec='-L$libdir'
  7652. hardcode_libdir_separator=
  7653. fi
  7654. ;;
  7655. esac
  7656. shared_flag='-shared'
  7657. if test "$aix_use_runtimelinking" = yes; then
  7658. shared_flag="$shared_flag "'${wl}-G'
  7659. fi
  7660. else
  7661. # not using gcc
  7662. if test "$host_cpu" = ia64; then
  7663. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7664. # chokes on -Wl,-G. The following line is correct:
  7665. shared_flag='-G'
  7666. else
  7667. if test "$aix_use_runtimelinking" = yes; then
  7668. shared_flag='${wl}-G'
  7669. else
  7670. shared_flag='${wl}-bM:SRE'
  7671. fi
  7672. fi
  7673. fi
  7674. export_dynamic_flag_spec='${wl}-bexpall'
  7675. # It seems that -bexpall does not export symbols beginning with
  7676. # underscore (_), so it is better to generate a list of symbols to export.
  7677. always_export_symbols=yes
  7678. if test "$aix_use_runtimelinking" = yes; then
  7679. # Warning - without using the other runtime loading flags (-brtl),
  7680. # -berok will link without error, but may produce a broken library.
  7681. allow_undefined_flag='-berok'
  7682. # Determine the default libpath from the value encoded in an
  7683. # empty executable.
  7684. if test "${lt_cv_aix_libpath+set}" = set; then
  7685. aix_libpath=$lt_cv_aix_libpath
  7686. else
  7687. if ${lt_cv_aix_libpath_+:} false; then :
  7688. $as_echo_n "(cached) " >&6
  7689. else
  7690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7691. /* end confdefs.h. */
  7692. int
  7693. main ()
  7694. {
  7695. ;
  7696. return 0;
  7697. }
  7698. _ACEOF
  7699. if ac_fn_c_try_link "$LINENO"; then :
  7700. lt_aix_libpath_sed='
  7701. /Import File Strings/,/^$/ {
  7702. /^0/ {
  7703. s/^0 *\([^ ]*\) *$/\1/
  7704. p
  7705. }
  7706. }'
  7707. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7708. # Check for a 64-bit object if we didn't find anything.
  7709. if test -z "$lt_cv_aix_libpath_"; then
  7710. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7711. fi
  7712. fi
  7713. rm -f core conftest.err conftest.$ac_objext \
  7714. conftest$ac_exeext conftest.$ac_ext
  7715. if test -z "$lt_cv_aix_libpath_"; then
  7716. lt_cv_aix_libpath_="/usr/lib:/lib"
  7717. fi
  7718. fi
  7719. aix_libpath=$lt_cv_aix_libpath_
  7720. fi
  7721. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7722. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7723. else
  7724. if test "$host_cpu" = ia64; then
  7725. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7726. allow_undefined_flag="-z nodefs"
  7727. 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"
  7728. else
  7729. # Determine the default libpath from the value encoded in an
  7730. # empty executable.
  7731. if test "${lt_cv_aix_libpath+set}" = set; then
  7732. aix_libpath=$lt_cv_aix_libpath
  7733. else
  7734. if ${lt_cv_aix_libpath_+:} false; then :
  7735. $as_echo_n "(cached) " >&6
  7736. else
  7737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7738. /* end confdefs.h. */
  7739. int
  7740. main ()
  7741. {
  7742. ;
  7743. return 0;
  7744. }
  7745. _ACEOF
  7746. if ac_fn_c_try_link "$LINENO"; then :
  7747. lt_aix_libpath_sed='
  7748. /Import File Strings/,/^$/ {
  7749. /^0/ {
  7750. s/^0 *\([^ ]*\) *$/\1/
  7751. p
  7752. }
  7753. }'
  7754. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7755. # Check for a 64-bit object if we didn't find anything.
  7756. if test -z "$lt_cv_aix_libpath_"; then
  7757. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7758. fi
  7759. fi
  7760. rm -f core conftest.err conftest.$ac_objext \
  7761. conftest$ac_exeext conftest.$ac_ext
  7762. if test -z "$lt_cv_aix_libpath_"; then
  7763. lt_cv_aix_libpath_="/usr/lib:/lib"
  7764. fi
  7765. fi
  7766. aix_libpath=$lt_cv_aix_libpath_
  7767. fi
  7768. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7769. # Warning - without using the other run time loading flags,
  7770. # -berok will link without error, but may produce a broken library.
  7771. no_undefined_flag=' ${wl}-bernotok'
  7772. allow_undefined_flag=' ${wl}-berok'
  7773. if test "$with_gnu_ld" = yes; then
  7774. # We only use this code for GNU lds that support --whole-archive.
  7775. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7776. else
  7777. # Exported symbols can be pulled into shared objects from archives
  7778. whole_archive_flag_spec='$convenience'
  7779. fi
  7780. archive_cmds_need_lc=yes
  7781. # This is similar to how AIX traditionally builds its shared libraries.
  7782. 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'
  7783. fi
  7784. fi
  7785. ;;
  7786. amigaos*)
  7787. case $host_cpu in
  7788. powerpc)
  7789. # see comment about AmigaOS4 .so support
  7790. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7791. archive_expsym_cmds=''
  7792. ;;
  7793. m68k)
  7794. 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)'
  7795. hardcode_libdir_flag_spec='-L$libdir'
  7796. hardcode_minus_L=yes
  7797. ;;
  7798. esac
  7799. ;;
  7800. bsdi[45]*)
  7801. export_dynamic_flag_spec=-rdynamic
  7802. ;;
  7803. cygwin* | mingw* | pw32* | cegcc*)
  7804. # When not using gcc, we currently assume that we are using
  7805. # Microsoft Visual C++.
  7806. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7807. # no search path for DLLs.
  7808. case $cc_basename in
  7809. cl*)
  7810. # Native MSVC
  7811. hardcode_libdir_flag_spec=' '
  7812. allow_undefined_flag=unsupported
  7813. always_export_symbols=yes
  7814. file_list_spec='@'
  7815. # Tell ltmain to make .lib files, not .a files.
  7816. libext=lib
  7817. # Tell ltmain to make .dll files, not .so files.
  7818. shrext_cmds=".dll"
  7819. # FIXME: Setting linknames here is a bad hack.
  7820. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7821. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7822. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7823. else
  7824. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7825. fi~
  7826. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7827. linknames='
  7828. # The linker will not automatically build a static lib if we build a DLL.
  7829. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7830. enable_shared_with_static_runtimes=yes
  7831. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7832. # Don't use ranlib
  7833. old_postinstall_cmds='chmod 644 $oldlib'
  7834. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7835. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7836. case $lt_outputfile in
  7837. *.exe|*.EXE) ;;
  7838. *)
  7839. lt_outputfile="$lt_outputfile.exe"
  7840. lt_tool_outputfile="$lt_tool_outputfile.exe"
  7841. ;;
  7842. esac~
  7843. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  7844. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  7845. $RM "$lt_outputfile.manifest";
  7846. fi'
  7847. ;;
  7848. *)
  7849. # Assume MSVC wrapper
  7850. hardcode_libdir_flag_spec=' '
  7851. allow_undefined_flag=unsupported
  7852. # Tell ltmain to make .lib files, not .a files.
  7853. libext=lib
  7854. # Tell ltmain to make .dll files, not .so files.
  7855. shrext_cmds=".dll"
  7856. # FIXME: Setting linknames here is a bad hack.
  7857. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7858. # The linker will automatically build a .lib file if we build a DLL.
  7859. old_archive_from_new_cmds='true'
  7860. # FIXME: Should let the user specify the lib program.
  7861. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7862. enable_shared_with_static_runtimes=yes
  7863. ;;
  7864. esac
  7865. ;;
  7866. darwin* | rhapsody*)
  7867. archive_cmds_need_lc=no
  7868. hardcode_direct=no
  7869. hardcode_automatic=yes
  7870. hardcode_shlibpath_var=unsupported
  7871. if test "$lt_cv_ld_force_load" = "yes"; then
  7872. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  7873. else
  7874. whole_archive_flag_spec=''
  7875. fi
  7876. link_all_deplibs=yes
  7877. allow_undefined_flag="$_lt_dar_allow_undefined"
  7878. case $cc_basename in
  7879. ifort*) _lt_dar_can_shared=yes ;;
  7880. *) _lt_dar_can_shared=$GCC ;;
  7881. esac
  7882. if test "$_lt_dar_can_shared" = "yes"; then
  7883. output_verbose_link_cmd=func_echo_all
  7884. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7885. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7886. 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}"
  7887. 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}"
  7888. else
  7889. ld_shlibs=no
  7890. fi
  7891. ;;
  7892. dgux*)
  7893. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7894. hardcode_libdir_flag_spec='-L$libdir'
  7895. hardcode_shlibpath_var=no
  7896. ;;
  7897. freebsd1*)
  7898. ld_shlibs=no
  7899. ;;
  7900. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7901. # support. Future versions do this automatically, but an explicit c++rt0.o
  7902. # does not break anything, and helps significantly (at the cost of a little
  7903. # extra space).
  7904. freebsd2.2*)
  7905. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7906. hardcode_libdir_flag_spec='-R$libdir'
  7907. hardcode_direct=yes
  7908. hardcode_shlibpath_var=no
  7909. ;;
  7910. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7911. freebsd2*)
  7912. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7913. hardcode_direct=yes
  7914. hardcode_minus_L=yes
  7915. hardcode_shlibpath_var=no
  7916. ;;
  7917. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7918. freebsd* | dragonfly*)
  7919. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7920. hardcode_libdir_flag_spec='-R$libdir'
  7921. hardcode_direct=yes
  7922. hardcode_shlibpath_var=no
  7923. ;;
  7924. hpux9*)
  7925. if test "$GCC" = yes; then
  7926. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7927. else
  7928. 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'
  7929. fi
  7930. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7931. hardcode_libdir_separator=:
  7932. hardcode_direct=yes
  7933. # hardcode_minus_L: Not really in the search PATH,
  7934. # but as the default location of the library.
  7935. hardcode_minus_L=yes
  7936. export_dynamic_flag_spec='${wl}-E'
  7937. ;;
  7938. hpux10*)
  7939. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7940. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7941. else
  7942. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7943. fi
  7944. if test "$with_gnu_ld" = no; then
  7945. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7946. hardcode_libdir_flag_spec_ld='+b $libdir'
  7947. hardcode_libdir_separator=:
  7948. hardcode_direct=yes
  7949. hardcode_direct_absolute=yes
  7950. export_dynamic_flag_spec='${wl}-E'
  7951. # hardcode_minus_L: Not really in the search PATH,
  7952. # but as the default location of the library.
  7953. hardcode_minus_L=yes
  7954. fi
  7955. ;;
  7956. hpux11*)
  7957. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7958. case $host_cpu in
  7959. hppa*64*)
  7960. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7961. ;;
  7962. ia64*)
  7963. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7964. ;;
  7965. *)
  7966. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7967. ;;
  7968. esac
  7969. else
  7970. case $host_cpu in
  7971. hppa*64*)
  7972. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7973. ;;
  7974. ia64*)
  7975. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7976. ;;
  7977. *)
  7978. # Older versions of the 11.00 compiler do not understand -b yet
  7979. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  7980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  7981. $as_echo_n "checking if $CC understands -b... " >&6; }
  7982. if ${lt_cv_prog_compiler__b+:} false; then :
  7983. $as_echo_n "(cached) " >&6
  7984. else
  7985. lt_cv_prog_compiler__b=no
  7986. save_LDFLAGS="$LDFLAGS"
  7987. LDFLAGS="$LDFLAGS -b"
  7988. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7989. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7990. # The linker can only warn and ignore the option if not recognized
  7991. # So say no if there are warnings
  7992. if test -s conftest.err; then
  7993. # Append any errors to the config.log.
  7994. cat conftest.err 1>&5
  7995. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7996. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7997. if diff conftest.exp conftest.er2 >/dev/null; then
  7998. lt_cv_prog_compiler__b=yes
  7999. fi
  8000. else
  8001. lt_cv_prog_compiler__b=yes
  8002. fi
  8003. fi
  8004. $RM -r conftest*
  8005. LDFLAGS="$save_LDFLAGS"
  8006. fi
  8007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8008. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8009. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8010. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8011. else
  8012. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8013. fi
  8014. ;;
  8015. esac
  8016. fi
  8017. if test "$with_gnu_ld" = no; then
  8018. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8019. hardcode_libdir_separator=:
  8020. case $host_cpu in
  8021. hppa*64*|ia64*)
  8022. hardcode_direct=no
  8023. hardcode_shlibpath_var=no
  8024. ;;
  8025. *)
  8026. hardcode_direct=yes
  8027. hardcode_direct_absolute=yes
  8028. export_dynamic_flag_spec='${wl}-E'
  8029. # hardcode_minus_L: Not really in the search PATH,
  8030. # but as the default location of the library.
  8031. hardcode_minus_L=yes
  8032. ;;
  8033. esac
  8034. fi
  8035. ;;
  8036. irix5* | irix6* | nonstopux*)
  8037. if test "$GCC" = yes; then
  8038. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8039. # Try to use the -exported_symbol ld option, if it does not
  8040. # work, assume that -exports_file does not work either and
  8041. # implicitly export all symbols.
  8042. # This should be the same for all languages, so no per-tag cache variable.
  8043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8044. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8045. if ${lt_cv_irix_exported_symbol+:} false; then :
  8046. $as_echo_n "(cached) " >&6
  8047. else
  8048. save_LDFLAGS="$LDFLAGS"
  8049. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8050. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8051. /* end confdefs.h. */
  8052. int foo (void) { return 0; }
  8053. _ACEOF
  8054. if ac_fn_c_try_link "$LINENO"; then :
  8055. lt_cv_irix_exported_symbol=yes
  8056. else
  8057. lt_cv_irix_exported_symbol=no
  8058. fi
  8059. rm -f core conftest.err conftest.$ac_objext \
  8060. conftest$ac_exeext conftest.$ac_ext
  8061. LDFLAGS="$save_LDFLAGS"
  8062. fi
  8063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8064. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8065. if test "$lt_cv_irix_exported_symbol" = yes; then
  8066. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8067. fi
  8068. else
  8069. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8070. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8071. fi
  8072. archive_cmds_need_lc='no'
  8073. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8074. hardcode_libdir_separator=:
  8075. inherit_rpath=yes
  8076. link_all_deplibs=yes
  8077. ;;
  8078. netbsd*)
  8079. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8080. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8081. else
  8082. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8083. fi
  8084. hardcode_libdir_flag_spec='-R$libdir'
  8085. hardcode_direct=yes
  8086. hardcode_shlibpath_var=no
  8087. ;;
  8088. newsos6)
  8089. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8090. hardcode_direct=yes
  8091. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8092. hardcode_libdir_separator=:
  8093. hardcode_shlibpath_var=no
  8094. ;;
  8095. *nto* | *qnx*)
  8096. ;;
  8097. openbsd*)
  8098. if test -f /usr/libexec/ld.so; then
  8099. hardcode_direct=yes
  8100. hardcode_shlibpath_var=no
  8101. hardcode_direct_absolute=yes
  8102. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8103. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8104. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8105. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8106. export_dynamic_flag_spec='${wl}-E'
  8107. else
  8108. case $host_os in
  8109. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8110. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8111. hardcode_libdir_flag_spec='-R$libdir'
  8112. ;;
  8113. *)
  8114. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8115. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8116. ;;
  8117. esac
  8118. fi
  8119. else
  8120. ld_shlibs=no
  8121. fi
  8122. ;;
  8123. os2*)
  8124. hardcode_libdir_flag_spec='-L$libdir'
  8125. hardcode_minus_L=yes
  8126. allow_undefined_flag=unsupported
  8127. 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'
  8128. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8129. ;;
  8130. osf3*)
  8131. if test "$GCC" = yes; then
  8132. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8133. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8134. else
  8135. allow_undefined_flag=' -expect_unresolved \*'
  8136. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8137. fi
  8138. archive_cmds_need_lc='no'
  8139. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8140. hardcode_libdir_separator=:
  8141. ;;
  8142. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8143. if test "$GCC" = yes; then
  8144. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8145. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8146. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8147. else
  8148. allow_undefined_flag=' -expect_unresolved \*'
  8149. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8150. 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~
  8151. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8152. # Both c and cxx compiler support -rpath directly
  8153. hardcode_libdir_flag_spec='-rpath $libdir'
  8154. fi
  8155. archive_cmds_need_lc='no'
  8156. hardcode_libdir_separator=:
  8157. ;;
  8158. solaris*)
  8159. no_undefined_flag=' -z defs'
  8160. if test "$GCC" = yes; then
  8161. wlarc='${wl}'
  8162. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8163. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8164. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8165. else
  8166. case `$CC -V 2>&1` in
  8167. *"Compilers 5.0"*)
  8168. wlarc=''
  8169. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8170. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8171. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8172. ;;
  8173. *)
  8174. wlarc='${wl}'
  8175. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8176. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8177. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8178. ;;
  8179. esac
  8180. fi
  8181. hardcode_libdir_flag_spec='-R$libdir'
  8182. hardcode_shlibpath_var=no
  8183. case $host_os in
  8184. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8185. *)
  8186. # The compiler driver will combine and reorder linker options,
  8187. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8188. # but is careful enough not to reorder.
  8189. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8190. if test "$GCC" = yes; then
  8191. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8192. else
  8193. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8194. fi
  8195. ;;
  8196. esac
  8197. link_all_deplibs=yes
  8198. ;;
  8199. sunos4*)
  8200. if test "x$host_vendor" = xsequent; then
  8201. # Use $CC to link under sequent, because it throws in some extra .o
  8202. # files that make .init and .fini sections work.
  8203. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8204. else
  8205. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8206. fi
  8207. hardcode_libdir_flag_spec='-L$libdir'
  8208. hardcode_direct=yes
  8209. hardcode_minus_L=yes
  8210. hardcode_shlibpath_var=no
  8211. ;;
  8212. sysv4)
  8213. case $host_vendor in
  8214. sni)
  8215. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8216. hardcode_direct=yes # is this really true???
  8217. ;;
  8218. siemens)
  8219. ## LD is ld it makes a PLAMLIB
  8220. ## CC just makes a GrossModule.
  8221. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8222. reload_cmds='$CC -r -o $output$reload_objs'
  8223. hardcode_direct=no
  8224. ;;
  8225. motorola)
  8226. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8227. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8228. ;;
  8229. esac
  8230. runpath_var='LD_RUN_PATH'
  8231. hardcode_shlibpath_var=no
  8232. ;;
  8233. sysv4.3*)
  8234. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8235. hardcode_shlibpath_var=no
  8236. export_dynamic_flag_spec='-Bexport'
  8237. ;;
  8238. sysv4*MP*)
  8239. if test -d /usr/nec; then
  8240. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8241. hardcode_shlibpath_var=no
  8242. runpath_var=LD_RUN_PATH
  8243. hardcode_runpath_var=yes
  8244. ld_shlibs=yes
  8245. fi
  8246. ;;
  8247. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8248. no_undefined_flag='${wl}-z,text'
  8249. archive_cmds_need_lc=no
  8250. hardcode_shlibpath_var=no
  8251. runpath_var='LD_RUN_PATH'
  8252. if test "$GCC" = yes; then
  8253. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8254. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8255. else
  8256. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8257. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8258. fi
  8259. ;;
  8260. sysv5* | sco3.2v5* | sco5v6*)
  8261. # Note: We can NOT use -z defs as we might desire, because we do not
  8262. # link with -lc, and that would cause any symbols used from libc to
  8263. # always be unresolved, which means just about no library would
  8264. # ever link correctly. If we're not using GNU ld we use -z text
  8265. # though, which does catch some bad symbols but isn't as heavy-handed
  8266. # as -z defs.
  8267. no_undefined_flag='${wl}-z,text'
  8268. allow_undefined_flag='${wl}-z,nodefs'
  8269. archive_cmds_need_lc=no
  8270. hardcode_shlibpath_var=no
  8271. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8272. hardcode_libdir_separator=':'
  8273. link_all_deplibs=yes
  8274. export_dynamic_flag_spec='${wl}-Bexport'
  8275. runpath_var='LD_RUN_PATH'
  8276. if test "$GCC" = yes; then
  8277. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8278. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8279. else
  8280. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8281. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8282. fi
  8283. ;;
  8284. uts4*)
  8285. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8286. hardcode_libdir_flag_spec='-L$libdir'
  8287. hardcode_shlibpath_var=no
  8288. ;;
  8289. *)
  8290. ld_shlibs=no
  8291. ;;
  8292. esac
  8293. if test x$host_vendor = xsni; then
  8294. case $host in
  8295. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8296. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8297. ;;
  8298. esac
  8299. fi
  8300. fi
  8301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8302. $as_echo "$ld_shlibs" >&6; }
  8303. test "$ld_shlibs" = no && can_build_shared=no
  8304. with_gnu_ld=$with_gnu_ld
  8305. #
  8306. # Do we need to explicitly link libc?
  8307. #
  8308. case "x$archive_cmds_need_lc" in
  8309. x|xyes)
  8310. # Assume -lc should be added
  8311. archive_cmds_need_lc=yes
  8312. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8313. case $archive_cmds in
  8314. *'~'*)
  8315. # FIXME: we may have to deal with multi-command sequences.
  8316. ;;
  8317. '$CC '*)
  8318. # Test whether the compiler implicitly links with -lc since on some
  8319. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8320. # to ld, don't add -lc before -lgcc.
  8321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8322. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8323. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8324. $as_echo_n "(cached) " >&6
  8325. else
  8326. $RM conftest*
  8327. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8328. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8329. (eval $ac_compile) 2>&5
  8330. ac_status=$?
  8331. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8332. test $ac_status = 0; } 2>conftest.err; then
  8333. soname=conftest
  8334. lib=conftest
  8335. libobjs=conftest.$ac_objext
  8336. deplibs=
  8337. wl=$lt_prog_compiler_wl
  8338. pic_flag=$lt_prog_compiler_pic
  8339. compiler_flags=-v
  8340. linker_flags=-v
  8341. verstring=
  8342. output_objdir=.
  8343. libname=conftest
  8344. lt_save_allow_undefined_flag=$allow_undefined_flag
  8345. allow_undefined_flag=
  8346. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8347. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8348. ac_status=$?
  8349. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8350. test $ac_status = 0; }
  8351. then
  8352. lt_cv_archive_cmds_need_lc=no
  8353. else
  8354. lt_cv_archive_cmds_need_lc=yes
  8355. fi
  8356. allow_undefined_flag=$lt_save_allow_undefined_flag
  8357. else
  8358. cat conftest.err 1>&5
  8359. fi
  8360. $RM conftest*
  8361. fi
  8362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8363. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8364. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8365. ;;
  8366. esac
  8367. fi
  8368. ;;
  8369. esac
  8370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8371. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8372. if test "$GCC" = yes; then
  8373. case $host_os in
  8374. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8375. *) lt_awk_arg="/^libraries:/" ;;
  8376. esac
  8377. case $host_os in
  8378. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8379. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8380. esac
  8381. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8382. case $lt_search_path_spec in
  8383. *\;*)
  8384. # if the path contains ";" then we assume it to be the separator
  8385. # otherwise default to the standard path separator (i.e. ":") - it is
  8386. # assumed that no part of a normal pathname contains ";" but that should
  8387. # okay in the real world where ";" in dirpaths is itself problematic.
  8388. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8389. ;;
  8390. *)
  8391. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8392. ;;
  8393. esac
  8394. # Ok, now we have the path, separated by spaces, we can step through it
  8395. # and add multilib dir if necessary.
  8396. lt_tmp_lt_search_path_spec=
  8397. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8398. for lt_sys_path in $lt_search_path_spec; do
  8399. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8400. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8401. else
  8402. test -d "$lt_sys_path" && \
  8403. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8404. fi
  8405. done
  8406. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8407. BEGIN {RS=" "; FS="/|\n";} {
  8408. lt_foo="";
  8409. lt_count=0;
  8410. for (lt_i = NF; lt_i > 0; lt_i--) {
  8411. if ($lt_i != "" && $lt_i != ".") {
  8412. if ($lt_i == "..") {
  8413. lt_count++;
  8414. } else {
  8415. if (lt_count == 0) {
  8416. lt_foo="/" $lt_i lt_foo;
  8417. } else {
  8418. lt_count--;
  8419. }
  8420. }
  8421. }
  8422. }
  8423. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8424. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8425. }'`
  8426. # AWK program above erroneously prepends '/' to C:/dos/paths
  8427. # for these hosts.
  8428. case $host_os in
  8429. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8430. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8431. esac
  8432. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8433. else
  8434. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8435. fi
  8436. library_names_spec=
  8437. libname_spec='lib$name'
  8438. soname_spec=
  8439. shrext_cmds=".so"
  8440. postinstall_cmds=
  8441. postuninstall_cmds=
  8442. finish_cmds=
  8443. finish_eval=
  8444. shlibpath_var=
  8445. shlibpath_overrides_runpath=unknown
  8446. version_type=none
  8447. dynamic_linker="$host_os ld.so"
  8448. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8449. need_lib_prefix=unknown
  8450. hardcode_into_libs=no
  8451. # when you set need_version to no, make sure it does not cause -set_version
  8452. # flags to be left without arguments
  8453. need_version=unknown
  8454. case $host_os in
  8455. aix3*)
  8456. version_type=linux
  8457. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8458. shlibpath_var=LIBPATH
  8459. # AIX 3 has no versioning support, so we append a major version to the name.
  8460. soname_spec='${libname}${release}${shared_ext}$major'
  8461. ;;
  8462. aix[4-9]*)
  8463. version_type=linux
  8464. need_lib_prefix=no
  8465. need_version=no
  8466. hardcode_into_libs=yes
  8467. if test "$host_cpu" = ia64; then
  8468. # AIX 5 supports IA64
  8469. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8470. shlibpath_var=LD_LIBRARY_PATH
  8471. else
  8472. # With GCC up to 2.95.x, collect2 would create an import file
  8473. # for dependence libraries. The import file would start with
  8474. # the line `#! .'. This would cause the generated library to
  8475. # depend on `.', always an invalid library. This was fixed in
  8476. # development snapshots of GCC prior to 3.0.
  8477. case $host_os in
  8478. aix4 | aix4.[01] | aix4.[01].*)
  8479. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8480. echo ' yes '
  8481. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8482. :
  8483. else
  8484. can_build_shared=no
  8485. fi
  8486. ;;
  8487. esac
  8488. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8489. # soname into executable. Probably we can add versioning support to
  8490. # collect2, so additional links can be useful in future.
  8491. if test "$aix_use_runtimelinking" = yes; then
  8492. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8493. # instead of lib<name>.a to let people know that these are not
  8494. # typical AIX shared libraries.
  8495. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8496. else
  8497. # We preserve .a as extension for shared libraries through AIX4.2
  8498. # and later when we are not doing run time linking.
  8499. library_names_spec='${libname}${release}.a $libname.a'
  8500. soname_spec='${libname}${release}${shared_ext}$major'
  8501. fi
  8502. shlibpath_var=LIBPATH
  8503. fi
  8504. ;;
  8505. amigaos*)
  8506. case $host_cpu in
  8507. powerpc)
  8508. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8509. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8510. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8511. ;;
  8512. m68k)
  8513. library_names_spec='$libname.ixlibrary $libname.a'
  8514. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8515. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
  8516. ;;
  8517. esac
  8518. ;;
  8519. beos*)
  8520. library_names_spec='${libname}${shared_ext}'
  8521. dynamic_linker="$host_os ld.so"
  8522. shlibpath_var=LIBRARY_PATH
  8523. ;;
  8524. bsdi[45]*)
  8525. version_type=linux
  8526. need_version=no
  8527. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8528. soname_spec='${libname}${release}${shared_ext}$major'
  8529. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8530. shlibpath_var=LD_LIBRARY_PATH
  8531. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8532. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8533. # the default ld.so.conf also contains /usr/contrib/lib and
  8534. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8535. # libtool to hard-code these into programs
  8536. ;;
  8537. cygwin* | mingw* | pw32* | cegcc*)
  8538. version_type=windows
  8539. shrext_cmds=".dll"
  8540. need_version=no
  8541. need_lib_prefix=no
  8542. case $GCC,$cc_basename in
  8543. yes,*)
  8544. # gcc
  8545. library_names_spec='$libname.dll.a'
  8546. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8547. postinstall_cmds='base_file=`basename \${file}`~
  8548. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8549. dldir=$destdir/`dirname \$dlpath`~
  8550. test -d \$dldir || mkdir -p \$dldir~
  8551. $install_prog $dir/$dlname \$dldir/$dlname~
  8552. chmod a+x \$dldir/$dlname~
  8553. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8554. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8555. fi'
  8556. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8557. dlpath=$dir/\$dldll~
  8558. $RM \$dlpath'
  8559. shlibpath_overrides_runpath=yes
  8560. case $host_os in
  8561. cygwin*)
  8562. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8563. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8564. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8565. ;;
  8566. mingw* | cegcc*)
  8567. # MinGW DLLs use traditional 'lib' prefix
  8568. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8569. ;;
  8570. pw32*)
  8571. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8572. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8573. ;;
  8574. esac
  8575. dynamic_linker='Win32 ld.exe'
  8576. ;;
  8577. *,cl*)
  8578. # Native MSVC
  8579. libname_spec='$name'
  8580. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8581. library_names_spec='${libname}.dll.lib'
  8582. case $build_os in
  8583. mingw*)
  8584. sys_lib_search_path_spec=
  8585. lt_save_ifs=$IFS
  8586. IFS=';'
  8587. for lt_path in $LIB
  8588. do
  8589. IFS=$lt_save_ifs
  8590. # Let DOS variable expansion print the short 8.3 style file name.
  8591. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8592. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8593. done
  8594. IFS=$lt_save_ifs
  8595. # Convert to MSYS style.
  8596. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8597. ;;
  8598. cygwin*)
  8599. # Convert to unix form, then to dos form, then back to unix form
  8600. # but this time dos style (no spaces!) so that the unix form looks
  8601. # like /cygdrive/c/PROGRA~1:/cygdr...
  8602. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8603. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8604. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8605. ;;
  8606. *)
  8607. sys_lib_search_path_spec="$LIB"
  8608. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8609. # It is most probably a Windows format PATH.
  8610. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8611. else
  8612. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8613. fi
  8614. # FIXME: find the short name or the path components, as spaces are
  8615. # common. (e.g. "Program Files" -> "PROGRA~1")
  8616. ;;
  8617. esac
  8618. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8619. postinstall_cmds='base_file=`basename \${file}`~
  8620. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8621. dldir=$destdir/`dirname \$dlpath`~
  8622. test -d \$dldir || mkdir -p \$dldir~
  8623. $install_prog $dir/$dlname \$dldir/$dlname'
  8624. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8625. dlpath=$dir/\$dldll~
  8626. $RM \$dlpath'
  8627. shlibpath_overrides_runpath=yes
  8628. dynamic_linker='Win32 link.exe'
  8629. ;;
  8630. *)
  8631. # Assume MSVC wrapper
  8632. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8633. dynamic_linker='Win32 ld.exe'
  8634. ;;
  8635. esac
  8636. # FIXME: first we should search . and the directory the executable is in
  8637. shlibpath_var=PATH
  8638. ;;
  8639. darwin* | rhapsody*)
  8640. dynamic_linker="$host_os dyld"
  8641. version_type=darwin
  8642. need_lib_prefix=no
  8643. need_version=no
  8644. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8645. soname_spec='${libname}${release}${major}$shared_ext'
  8646. shlibpath_overrides_runpath=yes
  8647. shlibpath_var=DYLD_LIBRARY_PATH
  8648. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8649. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8650. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8651. ;;
  8652. dgux*)
  8653. version_type=linux
  8654. need_lib_prefix=no
  8655. need_version=no
  8656. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8657. soname_spec='${libname}${release}${shared_ext}$major'
  8658. shlibpath_var=LD_LIBRARY_PATH
  8659. ;;
  8660. freebsd1*)
  8661. dynamic_linker=no
  8662. ;;
  8663. freebsd* | dragonfly*)
  8664. # DragonFly does not have aout. When/if they implement a new
  8665. # versioning mechanism, adjust this.
  8666. if test -x /usr/bin/objformat; then
  8667. objformat=`/usr/bin/objformat`
  8668. else
  8669. case $host_os in
  8670. freebsd[123]*) objformat=aout ;;
  8671. *) objformat=elf ;;
  8672. esac
  8673. fi
  8674. version_type=freebsd-$objformat
  8675. case $version_type in
  8676. freebsd-elf*)
  8677. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8678. need_version=no
  8679. need_lib_prefix=no
  8680. ;;
  8681. freebsd-*)
  8682. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8683. need_version=yes
  8684. ;;
  8685. esac
  8686. shlibpath_var=LD_LIBRARY_PATH
  8687. case $host_os in
  8688. freebsd2*)
  8689. shlibpath_overrides_runpath=yes
  8690. ;;
  8691. freebsd3.[01]* | freebsdelf3.[01]*)
  8692. shlibpath_overrides_runpath=yes
  8693. hardcode_into_libs=yes
  8694. ;;
  8695. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8696. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8697. shlibpath_overrides_runpath=no
  8698. hardcode_into_libs=yes
  8699. ;;
  8700. *) # from 4.6 on, and DragonFly
  8701. shlibpath_overrides_runpath=yes
  8702. hardcode_into_libs=yes
  8703. ;;
  8704. esac
  8705. ;;
  8706. gnu*)
  8707. version_type=linux
  8708. need_lib_prefix=no
  8709. need_version=no
  8710. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8711. soname_spec='${libname}${release}${shared_ext}$major'
  8712. shlibpath_var=LD_LIBRARY_PATH
  8713. hardcode_into_libs=yes
  8714. ;;
  8715. haiku*)
  8716. version_type=linux
  8717. need_lib_prefix=no
  8718. need_version=no
  8719. dynamic_linker="$host_os runtime_loader"
  8720. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8721. soname_spec='${libname}${release}${shared_ext}$major'
  8722. shlibpath_var=LIBRARY_PATH
  8723. shlibpath_overrides_runpath=yes
  8724. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8725. hardcode_into_libs=yes
  8726. ;;
  8727. hpux9* | hpux10* | hpux11*)
  8728. # Give a soname corresponding to the major version so that dld.sl refuses to
  8729. # link against other versions.
  8730. version_type=sunos
  8731. need_lib_prefix=no
  8732. need_version=no
  8733. case $host_cpu in
  8734. ia64*)
  8735. shrext_cmds='.so'
  8736. hardcode_into_libs=yes
  8737. dynamic_linker="$host_os dld.so"
  8738. shlibpath_var=LD_LIBRARY_PATH
  8739. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8740. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8741. soname_spec='${libname}${release}${shared_ext}$major'
  8742. if test "X$HPUX_IA64_MODE" = X32; then
  8743. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8744. else
  8745. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8746. fi
  8747. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8748. ;;
  8749. hppa*64*)
  8750. shrext_cmds='.sl'
  8751. hardcode_into_libs=yes
  8752. dynamic_linker="$host_os dld.sl"
  8753. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8754. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8755. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8756. soname_spec='${libname}${release}${shared_ext}$major'
  8757. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8758. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8759. ;;
  8760. *)
  8761. shrext_cmds='.sl'
  8762. dynamic_linker="$host_os dld.sl"
  8763. shlibpath_var=SHLIB_PATH
  8764. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8765. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8766. soname_spec='${libname}${release}${shared_ext}$major'
  8767. ;;
  8768. esac
  8769. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8770. postinstall_cmds='chmod 555 $lib'
  8771. # or fails outright, so override atomically:
  8772. install_override_mode=555
  8773. ;;
  8774. interix[3-9]*)
  8775. version_type=linux
  8776. need_lib_prefix=no
  8777. need_version=no
  8778. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8779. soname_spec='${libname}${release}${shared_ext}$major'
  8780. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8781. shlibpath_var=LD_LIBRARY_PATH
  8782. shlibpath_overrides_runpath=no
  8783. hardcode_into_libs=yes
  8784. ;;
  8785. irix5* | irix6* | nonstopux*)
  8786. case $host_os in
  8787. nonstopux*) version_type=nonstopux ;;
  8788. *)
  8789. if test "$lt_cv_prog_gnu_ld" = yes; then
  8790. version_type=linux
  8791. else
  8792. version_type=irix
  8793. fi ;;
  8794. esac
  8795. need_lib_prefix=no
  8796. need_version=no
  8797. soname_spec='${libname}${release}${shared_ext}$major'
  8798. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8799. case $host_os in
  8800. irix5* | nonstopux*)
  8801. libsuff= shlibsuff=
  8802. ;;
  8803. *)
  8804. case $LD in # libtool.m4 will add one of these switches to LD
  8805. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8806. libsuff= shlibsuff= libmagic=32-bit;;
  8807. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8808. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8809. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8810. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8811. *) libsuff= shlibsuff= libmagic=never-match;;
  8812. esac
  8813. ;;
  8814. esac
  8815. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8816. shlibpath_overrides_runpath=no
  8817. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8818. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8819. hardcode_into_libs=yes
  8820. ;;
  8821. # No shared lib support for Linux oldld, aout, or coff.
  8822. linux*oldld* | linux*aout* | linux*coff*)
  8823. dynamic_linker=no
  8824. ;;
  8825. # This must be Linux ELF.
  8826. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8827. version_type=linux
  8828. need_lib_prefix=no
  8829. need_version=no
  8830. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8831. soname_spec='${libname}${release}${shared_ext}$major'
  8832. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8833. shlibpath_var=LD_LIBRARY_PATH
  8834. shlibpath_overrides_runpath=no
  8835. # Some binutils ld are patched to set DT_RUNPATH
  8836. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8837. $as_echo_n "(cached) " >&6
  8838. else
  8839. lt_cv_shlibpath_overrides_runpath=no
  8840. save_LDFLAGS=$LDFLAGS
  8841. save_libdir=$libdir
  8842. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8843. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8844. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8845. /* end confdefs.h. */
  8846. int
  8847. main ()
  8848. {
  8849. ;
  8850. return 0;
  8851. }
  8852. _ACEOF
  8853. if ac_fn_c_try_link "$LINENO"; then :
  8854. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8855. lt_cv_shlibpath_overrides_runpath=yes
  8856. fi
  8857. fi
  8858. rm -f core conftest.err conftest.$ac_objext \
  8859. conftest$ac_exeext conftest.$ac_ext
  8860. LDFLAGS=$save_LDFLAGS
  8861. libdir=$save_libdir
  8862. fi
  8863. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8864. # This implies no fast_install, which is unacceptable.
  8865. # Some rework will be needed to allow for fast_install
  8866. # before this can be enabled.
  8867. hardcode_into_libs=yes
  8868. # Append ld.so.conf contents to the search path
  8869. if test -f /etc/ld.so.conf; then
  8870. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  8871. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8872. fi
  8873. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8874. # powerpc, because MkLinux only supported shared libraries with the
  8875. # GNU dynamic linker. Since this was broken with cross compilers,
  8876. # most powerpc-linux boxes support dynamic linking these days and
  8877. # people can always --disable-shared, the test was removed, and we
  8878. # assume the GNU/Linux dynamic linker is in use.
  8879. dynamic_linker='GNU/Linux ld.so'
  8880. ;;
  8881. netbsd*)
  8882. version_type=sunos
  8883. need_lib_prefix=no
  8884. need_version=no
  8885. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8886. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8887. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8888. dynamic_linker='NetBSD (a.out) ld.so'
  8889. else
  8890. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8891. soname_spec='${libname}${release}${shared_ext}$major'
  8892. dynamic_linker='NetBSD ld.elf_so'
  8893. fi
  8894. shlibpath_var=LD_LIBRARY_PATH
  8895. shlibpath_overrides_runpath=yes
  8896. hardcode_into_libs=yes
  8897. ;;
  8898. newsos6)
  8899. version_type=linux
  8900. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8901. shlibpath_var=LD_LIBRARY_PATH
  8902. shlibpath_overrides_runpath=yes
  8903. ;;
  8904. *nto* | *qnx*)
  8905. version_type=qnx
  8906. need_lib_prefix=no
  8907. need_version=no
  8908. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8909. soname_spec='${libname}${release}${shared_ext}$major'
  8910. shlibpath_var=LD_LIBRARY_PATH
  8911. shlibpath_overrides_runpath=no
  8912. hardcode_into_libs=yes
  8913. dynamic_linker='ldqnx.so'
  8914. ;;
  8915. openbsd*)
  8916. version_type=sunos
  8917. sys_lib_dlsearch_path_spec="/usr/lib"
  8918. need_lib_prefix=no
  8919. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8920. case $host_os in
  8921. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8922. *) need_version=no ;;
  8923. esac
  8924. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8925. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8926. shlibpath_var=LD_LIBRARY_PATH
  8927. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8928. case $host_os in
  8929. openbsd2.[89] | openbsd2.[89].*)
  8930. shlibpath_overrides_runpath=no
  8931. ;;
  8932. *)
  8933. shlibpath_overrides_runpath=yes
  8934. ;;
  8935. esac
  8936. else
  8937. shlibpath_overrides_runpath=yes
  8938. fi
  8939. ;;
  8940. os2*)
  8941. libname_spec='$name'
  8942. shrext_cmds=".dll"
  8943. need_lib_prefix=no
  8944. library_names_spec='$libname${shared_ext} $libname.a'
  8945. dynamic_linker='OS/2 ld.exe'
  8946. shlibpath_var=LIBPATH
  8947. ;;
  8948. osf3* | osf4* | osf5*)
  8949. version_type=osf
  8950. need_lib_prefix=no
  8951. need_version=no
  8952. soname_spec='${libname}${release}${shared_ext}$major'
  8953. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8954. shlibpath_var=LD_LIBRARY_PATH
  8955. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8956. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8957. ;;
  8958. rdos*)
  8959. dynamic_linker=no
  8960. ;;
  8961. solaris*)
  8962. version_type=linux
  8963. need_lib_prefix=no
  8964. need_version=no
  8965. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8966. soname_spec='${libname}${release}${shared_ext}$major'
  8967. shlibpath_var=LD_LIBRARY_PATH
  8968. shlibpath_overrides_runpath=yes
  8969. hardcode_into_libs=yes
  8970. # ldd complains unless libraries are executable
  8971. postinstall_cmds='chmod +x $lib'
  8972. ;;
  8973. sunos4*)
  8974. version_type=sunos
  8975. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8976. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8977. shlibpath_var=LD_LIBRARY_PATH
  8978. shlibpath_overrides_runpath=yes
  8979. if test "$with_gnu_ld" = yes; then
  8980. need_lib_prefix=no
  8981. fi
  8982. need_version=yes
  8983. ;;
  8984. sysv4 | sysv4.3*)
  8985. version_type=linux
  8986. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8987. soname_spec='${libname}${release}${shared_ext}$major'
  8988. shlibpath_var=LD_LIBRARY_PATH
  8989. case $host_vendor in
  8990. sni)
  8991. shlibpath_overrides_runpath=no
  8992. need_lib_prefix=no
  8993. runpath_var=LD_RUN_PATH
  8994. ;;
  8995. siemens)
  8996. need_lib_prefix=no
  8997. ;;
  8998. motorola)
  8999. need_lib_prefix=no
  9000. need_version=no
  9001. shlibpath_overrides_runpath=no
  9002. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9003. ;;
  9004. esac
  9005. ;;
  9006. sysv4*MP*)
  9007. if test -d /usr/nec ;then
  9008. version_type=linux
  9009. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9010. soname_spec='$libname${shared_ext}.$major'
  9011. shlibpath_var=LD_LIBRARY_PATH
  9012. fi
  9013. ;;
  9014. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9015. version_type=freebsd-elf
  9016. need_lib_prefix=no
  9017. need_version=no
  9018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9019. soname_spec='${libname}${release}${shared_ext}$major'
  9020. shlibpath_var=LD_LIBRARY_PATH
  9021. shlibpath_overrides_runpath=yes
  9022. hardcode_into_libs=yes
  9023. if test "$with_gnu_ld" = yes; then
  9024. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9025. else
  9026. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9027. case $host_os in
  9028. sco3.2v5*)
  9029. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9030. ;;
  9031. esac
  9032. fi
  9033. sys_lib_dlsearch_path_spec='/usr/lib'
  9034. ;;
  9035. tpf*)
  9036. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9037. version_type=linux
  9038. need_lib_prefix=no
  9039. need_version=no
  9040. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9041. shlibpath_var=LD_LIBRARY_PATH
  9042. shlibpath_overrides_runpath=no
  9043. hardcode_into_libs=yes
  9044. ;;
  9045. uts4*)
  9046. version_type=linux
  9047. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9048. soname_spec='${libname}${release}${shared_ext}$major'
  9049. shlibpath_var=LD_LIBRARY_PATH
  9050. ;;
  9051. *)
  9052. dynamic_linker=no
  9053. ;;
  9054. esac
  9055. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9056. $as_echo "$dynamic_linker" >&6; }
  9057. test "$dynamic_linker" = no && can_build_shared=no
  9058. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9059. if test "$GCC" = yes; then
  9060. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9061. fi
  9062. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9063. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9064. fi
  9065. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9066. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9067. fi
  9068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9069. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9070. hardcode_action=
  9071. if test -n "$hardcode_libdir_flag_spec" ||
  9072. test -n "$runpath_var" ||
  9073. test "X$hardcode_automatic" = "Xyes" ; then
  9074. # We can hardcode non-existent directories.
  9075. if test "$hardcode_direct" != no &&
  9076. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9077. # have to relink, otherwise we might link with an installed library
  9078. # when we should be linking with a yet-to-be-installed one
  9079. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9080. test "$hardcode_minus_L" != no; then
  9081. # Linking always hardcodes the temporary library directory.
  9082. hardcode_action=relink
  9083. else
  9084. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9085. hardcode_action=immediate
  9086. fi
  9087. else
  9088. # We cannot hardcode anything, or else we can only hardcode existing
  9089. # directories.
  9090. hardcode_action=unsupported
  9091. fi
  9092. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9093. $as_echo "$hardcode_action" >&6; }
  9094. if test "$hardcode_action" = relink ||
  9095. test "$inherit_rpath" = yes; then
  9096. # Fast installation is not supported
  9097. enable_fast_install=no
  9098. elif test "$shlibpath_overrides_runpath" = yes ||
  9099. test "$enable_shared" = no; then
  9100. # Fast installation is not necessary
  9101. enable_fast_install=needless
  9102. fi
  9103. if test "x$enable_dlopen" != xyes; then
  9104. enable_dlopen=unknown
  9105. enable_dlopen_self=unknown
  9106. enable_dlopen_self_static=unknown
  9107. else
  9108. lt_cv_dlopen=no
  9109. lt_cv_dlopen_libs=
  9110. case $host_os in
  9111. beos*)
  9112. lt_cv_dlopen="load_add_on"
  9113. lt_cv_dlopen_libs=
  9114. lt_cv_dlopen_self=yes
  9115. ;;
  9116. mingw* | pw32* | cegcc*)
  9117. lt_cv_dlopen="LoadLibrary"
  9118. lt_cv_dlopen_libs=
  9119. ;;
  9120. cygwin*)
  9121. lt_cv_dlopen="dlopen"
  9122. lt_cv_dlopen_libs=
  9123. ;;
  9124. darwin*)
  9125. # if libdl is installed we need to link against it
  9126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9127. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9128. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9129. $as_echo_n "(cached) " >&6
  9130. else
  9131. ac_check_lib_save_LIBS=$LIBS
  9132. LIBS="-ldl $LIBS"
  9133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9134. /* end confdefs.h. */
  9135. /* Override any GCC internal prototype to avoid an error.
  9136. Use char because int might match the return type of a GCC
  9137. builtin and then its argument prototype would still apply. */
  9138. #ifdef __cplusplus
  9139. extern "C"
  9140. #endif
  9141. char dlopen ();
  9142. int
  9143. main ()
  9144. {
  9145. return dlopen ();
  9146. ;
  9147. return 0;
  9148. }
  9149. _ACEOF
  9150. if ac_fn_c_try_link "$LINENO"; then :
  9151. ac_cv_lib_dl_dlopen=yes
  9152. else
  9153. ac_cv_lib_dl_dlopen=no
  9154. fi
  9155. rm -f core conftest.err conftest.$ac_objext \
  9156. conftest$ac_exeext conftest.$ac_ext
  9157. LIBS=$ac_check_lib_save_LIBS
  9158. fi
  9159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9160. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9161. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9162. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9163. else
  9164. lt_cv_dlopen="dyld"
  9165. lt_cv_dlopen_libs=
  9166. lt_cv_dlopen_self=yes
  9167. fi
  9168. ;;
  9169. *)
  9170. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9171. if test "x$ac_cv_func_shl_load" = xyes; then :
  9172. lt_cv_dlopen="shl_load"
  9173. else
  9174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9175. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9176. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9177. $as_echo_n "(cached) " >&6
  9178. else
  9179. ac_check_lib_save_LIBS=$LIBS
  9180. LIBS="-ldld $LIBS"
  9181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9182. /* end confdefs.h. */
  9183. /* Override any GCC internal prototype to avoid an error.
  9184. Use char because int might match the return type of a GCC
  9185. builtin and then its argument prototype would still apply. */
  9186. #ifdef __cplusplus
  9187. extern "C"
  9188. #endif
  9189. char shl_load ();
  9190. int
  9191. main ()
  9192. {
  9193. return shl_load ();
  9194. ;
  9195. return 0;
  9196. }
  9197. _ACEOF
  9198. if ac_fn_c_try_link "$LINENO"; then :
  9199. ac_cv_lib_dld_shl_load=yes
  9200. else
  9201. ac_cv_lib_dld_shl_load=no
  9202. fi
  9203. rm -f core conftest.err conftest.$ac_objext \
  9204. conftest$ac_exeext conftest.$ac_ext
  9205. LIBS=$ac_check_lib_save_LIBS
  9206. fi
  9207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9208. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9209. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9210. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9211. else
  9212. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9213. if test "x$ac_cv_func_dlopen" = xyes; then :
  9214. lt_cv_dlopen="dlopen"
  9215. else
  9216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9217. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9218. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9219. $as_echo_n "(cached) " >&6
  9220. else
  9221. ac_check_lib_save_LIBS=$LIBS
  9222. LIBS="-ldl $LIBS"
  9223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9224. /* end confdefs.h. */
  9225. /* Override any GCC internal prototype to avoid an error.
  9226. Use char because int might match the return type of a GCC
  9227. builtin and then its argument prototype would still apply. */
  9228. #ifdef __cplusplus
  9229. extern "C"
  9230. #endif
  9231. char dlopen ();
  9232. int
  9233. main ()
  9234. {
  9235. return dlopen ();
  9236. ;
  9237. return 0;
  9238. }
  9239. _ACEOF
  9240. if ac_fn_c_try_link "$LINENO"; then :
  9241. ac_cv_lib_dl_dlopen=yes
  9242. else
  9243. ac_cv_lib_dl_dlopen=no
  9244. fi
  9245. rm -f core conftest.err conftest.$ac_objext \
  9246. conftest$ac_exeext conftest.$ac_ext
  9247. LIBS=$ac_check_lib_save_LIBS
  9248. fi
  9249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9250. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9251. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9252. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9253. else
  9254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9255. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9256. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9257. $as_echo_n "(cached) " >&6
  9258. else
  9259. ac_check_lib_save_LIBS=$LIBS
  9260. LIBS="-lsvld $LIBS"
  9261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9262. /* end confdefs.h. */
  9263. /* Override any GCC internal prototype to avoid an error.
  9264. Use char because int might match the return type of a GCC
  9265. builtin and then its argument prototype would still apply. */
  9266. #ifdef __cplusplus
  9267. extern "C"
  9268. #endif
  9269. char dlopen ();
  9270. int
  9271. main ()
  9272. {
  9273. return dlopen ();
  9274. ;
  9275. return 0;
  9276. }
  9277. _ACEOF
  9278. if ac_fn_c_try_link "$LINENO"; then :
  9279. ac_cv_lib_svld_dlopen=yes
  9280. else
  9281. ac_cv_lib_svld_dlopen=no
  9282. fi
  9283. rm -f core conftest.err conftest.$ac_objext \
  9284. conftest$ac_exeext conftest.$ac_ext
  9285. LIBS=$ac_check_lib_save_LIBS
  9286. fi
  9287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9288. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9289. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9290. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9291. else
  9292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9293. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9294. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9295. $as_echo_n "(cached) " >&6
  9296. else
  9297. ac_check_lib_save_LIBS=$LIBS
  9298. LIBS="-ldld $LIBS"
  9299. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9300. /* end confdefs.h. */
  9301. /* Override any GCC internal prototype to avoid an error.
  9302. Use char because int might match the return type of a GCC
  9303. builtin and then its argument prototype would still apply. */
  9304. #ifdef __cplusplus
  9305. extern "C"
  9306. #endif
  9307. char dld_link ();
  9308. int
  9309. main ()
  9310. {
  9311. return dld_link ();
  9312. ;
  9313. return 0;
  9314. }
  9315. _ACEOF
  9316. if ac_fn_c_try_link "$LINENO"; then :
  9317. ac_cv_lib_dld_dld_link=yes
  9318. else
  9319. ac_cv_lib_dld_dld_link=no
  9320. fi
  9321. rm -f core conftest.err conftest.$ac_objext \
  9322. conftest$ac_exeext conftest.$ac_ext
  9323. LIBS=$ac_check_lib_save_LIBS
  9324. fi
  9325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9326. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9327. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9328. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9329. fi
  9330. fi
  9331. fi
  9332. fi
  9333. fi
  9334. fi
  9335. ;;
  9336. esac
  9337. if test "x$lt_cv_dlopen" != xno; then
  9338. enable_dlopen=yes
  9339. else
  9340. enable_dlopen=no
  9341. fi
  9342. case $lt_cv_dlopen in
  9343. dlopen)
  9344. save_CPPFLAGS="$CPPFLAGS"
  9345. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9346. save_LDFLAGS="$LDFLAGS"
  9347. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9348. save_LIBS="$LIBS"
  9349. LIBS="$lt_cv_dlopen_libs $LIBS"
  9350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9351. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9352. if ${lt_cv_dlopen_self+:} false; then :
  9353. $as_echo_n "(cached) " >&6
  9354. else
  9355. if test "$cross_compiling" = yes; then :
  9356. lt_cv_dlopen_self=cross
  9357. else
  9358. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9359. lt_status=$lt_dlunknown
  9360. cat > conftest.$ac_ext <<_LT_EOF
  9361. #line $LINENO "configure"
  9362. #include "confdefs.h"
  9363. #if HAVE_DLFCN_H
  9364. #include <dlfcn.h>
  9365. #endif
  9366. #include <stdio.h>
  9367. #ifdef RTLD_GLOBAL
  9368. # define LT_DLGLOBAL RTLD_GLOBAL
  9369. #else
  9370. # ifdef DL_GLOBAL
  9371. # define LT_DLGLOBAL DL_GLOBAL
  9372. # else
  9373. # define LT_DLGLOBAL 0
  9374. # endif
  9375. #endif
  9376. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9377. find out it does not work in some platform. */
  9378. #ifndef LT_DLLAZY_OR_NOW
  9379. # ifdef RTLD_LAZY
  9380. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9381. # else
  9382. # ifdef DL_LAZY
  9383. # define LT_DLLAZY_OR_NOW DL_LAZY
  9384. # else
  9385. # ifdef RTLD_NOW
  9386. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9387. # else
  9388. # ifdef DL_NOW
  9389. # define LT_DLLAZY_OR_NOW DL_NOW
  9390. # else
  9391. # define LT_DLLAZY_OR_NOW 0
  9392. # endif
  9393. # endif
  9394. # endif
  9395. # endif
  9396. #endif
  9397. /* When -fvisbility=hidden is used, assume the code has been annotated
  9398. correspondingly for the symbols needed. */
  9399. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9400. int fnord () __attribute__((visibility("default")));
  9401. #endif
  9402. int fnord () { return 42; }
  9403. int main ()
  9404. {
  9405. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9406. int status = $lt_dlunknown;
  9407. if (self)
  9408. {
  9409. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9410. else
  9411. {
  9412. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9413. else puts (dlerror ());
  9414. }
  9415. /* dlclose (self); */
  9416. }
  9417. else
  9418. puts (dlerror ());
  9419. return status;
  9420. }
  9421. _LT_EOF
  9422. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9423. (eval $ac_link) 2>&5
  9424. ac_status=$?
  9425. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9426. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9427. (./conftest; exit; ) >&5 2>/dev/null
  9428. lt_status=$?
  9429. case x$lt_status in
  9430. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9431. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9432. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9433. esac
  9434. else :
  9435. # compilation failed
  9436. lt_cv_dlopen_self=no
  9437. fi
  9438. fi
  9439. rm -fr conftest*
  9440. fi
  9441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9442. $as_echo "$lt_cv_dlopen_self" >&6; }
  9443. if test "x$lt_cv_dlopen_self" = xyes; then
  9444. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9446. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9447. if ${lt_cv_dlopen_self_static+:} false; then :
  9448. $as_echo_n "(cached) " >&6
  9449. else
  9450. if test "$cross_compiling" = yes; then :
  9451. lt_cv_dlopen_self_static=cross
  9452. else
  9453. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9454. lt_status=$lt_dlunknown
  9455. cat > conftest.$ac_ext <<_LT_EOF
  9456. #line $LINENO "configure"
  9457. #include "confdefs.h"
  9458. #if HAVE_DLFCN_H
  9459. #include <dlfcn.h>
  9460. #endif
  9461. #include <stdio.h>
  9462. #ifdef RTLD_GLOBAL
  9463. # define LT_DLGLOBAL RTLD_GLOBAL
  9464. #else
  9465. # ifdef DL_GLOBAL
  9466. # define LT_DLGLOBAL DL_GLOBAL
  9467. # else
  9468. # define LT_DLGLOBAL 0
  9469. # endif
  9470. #endif
  9471. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9472. find out it does not work in some platform. */
  9473. #ifndef LT_DLLAZY_OR_NOW
  9474. # ifdef RTLD_LAZY
  9475. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9476. # else
  9477. # ifdef DL_LAZY
  9478. # define LT_DLLAZY_OR_NOW DL_LAZY
  9479. # else
  9480. # ifdef RTLD_NOW
  9481. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9482. # else
  9483. # ifdef DL_NOW
  9484. # define LT_DLLAZY_OR_NOW DL_NOW
  9485. # else
  9486. # define LT_DLLAZY_OR_NOW 0
  9487. # endif
  9488. # endif
  9489. # endif
  9490. # endif
  9491. #endif
  9492. /* When -fvisbility=hidden is used, assume the code has been annotated
  9493. correspondingly for the symbols needed. */
  9494. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9495. int fnord () __attribute__((visibility("default")));
  9496. #endif
  9497. int fnord () { return 42; }
  9498. int main ()
  9499. {
  9500. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9501. int status = $lt_dlunknown;
  9502. if (self)
  9503. {
  9504. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9505. else
  9506. {
  9507. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9508. else puts (dlerror ());
  9509. }
  9510. /* dlclose (self); */
  9511. }
  9512. else
  9513. puts (dlerror ());
  9514. return status;
  9515. }
  9516. _LT_EOF
  9517. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9518. (eval $ac_link) 2>&5
  9519. ac_status=$?
  9520. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9521. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9522. (./conftest; exit; ) >&5 2>/dev/null
  9523. lt_status=$?
  9524. case x$lt_status in
  9525. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9526. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9527. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9528. esac
  9529. else :
  9530. # compilation failed
  9531. lt_cv_dlopen_self_static=no
  9532. fi
  9533. fi
  9534. rm -fr conftest*
  9535. fi
  9536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9537. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9538. fi
  9539. CPPFLAGS="$save_CPPFLAGS"
  9540. LDFLAGS="$save_LDFLAGS"
  9541. LIBS="$save_LIBS"
  9542. ;;
  9543. esac
  9544. case $lt_cv_dlopen_self in
  9545. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9546. *) enable_dlopen_self=unknown ;;
  9547. esac
  9548. case $lt_cv_dlopen_self_static in
  9549. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9550. *) enable_dlopen_self_static=unknown ;;
  9551. esac
  9552. fi
  9553. striplib=
  9554. old_striplib=
  9555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9556. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9557. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9558. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9559. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9561. $as_echo "yes" >&6; }
  9562. else
  9563. # FIXME - insert some real tests, host_os isn't really good enough
  9564. case $host_os in
  9565. darwin*)
  9566. if test -n "$STRIP" ; then
  9567. striplib="$STRIP -x"
  9568. old_striplib="$STRIP -S"
  9569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9570. $as_echo "yes" >&6; }
  9571. else
  9572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9573. $as_echo "no" >&6; }
  9574. fi
  9575. ;;
  9576. *)
  9577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9578. $as_echo "no" >&6; }
  9579. ;;
  9580. esac
  9581. fi
  9582. # Report which library types will actually be built
  9583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9584. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9586. $as_echo "$can_build_shared" >&6; }
  9587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9588. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9589. test "$can_build_shared" = "no" && enable_shared=no
  9590. # On AIX, shared libraries and static libraries use the same namespace, and
  9591. # are all built from PIC.
  9592. case $host_os in
  9593. aix3*)
  9594. test "$enable_shared" = yes && enable_static=no
  9595. if test -n "$RANLIB"; then
  9596. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9597. postinstall_cmds='$RANLIB $lib'
  9598. fi
  9599. ;;
  9600. aix[4-9]*)
  9601. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9602. test "$enable_shared" = yes && enable_static=no
  9603. fi
  9604. ;;
  9605. esac
  9606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9607. $as_echo "$enable_shared" >&6; }
  9608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9609. $as_echo_n "checking whether to build static libraries... " >&6; }
  9610. # Make sure either enable_shared or enable_static is yes.
  9611. test "$enable_shared" = yes || enable_static=yes
  9612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9613. $as_echo "$enable_static" >&6; }
  9614. fi
  9615. ac_ext=c
  9616. ac_cpp='$CPP $CPPFLAGS'
  9617. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9618. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9619. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9620. CC="$lt_save_CC"
  9621. ac_config_commands="$ac_config_commands libtool"
  9622. # Only expand once:
  9623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5
  9624. $as_echo_n "checking for exp in -lm... " >&6; }
  9625. if ${ac_cv_lib_m_exp+:} false; then :
  9626. $as_echo_n "(cached) " >&6
  9627. else
  9628. ac_check_lib_save_LIBS=$LIBS
  9629. LIBS="-lm $LIBS"
  9630. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9631. /* end confdefs.h. */
  9632. /* Override any GCC internal prototype to avoid an error.
  9633. Use char because int might match the return type of a GCC
  9634. builtin and then its argument prototype would still apply. */
  9635. #ifdef __cplusplus
  9636. extern "C"
  9637. #endif
  9638. char exp ();
  9639. int
  9640. main ()
  9641. {
  9642. return exp ();
  9643. ;
  9644. return 0;
  9645. }
  9646. _ACEOF
  9647. if ac_fn_c_try_link "$LINENO"; then :
  9648. ac_cv_lib_m_exp=yes
  9649. else
  9650. ac_cv_lib_m_exp=no
  9651. fi
  9652. rm -f core conftest.err conftest.$ac_objext \
  9653. conftest$ac_exeext conftest.$ac_ext
  9654. LIBS=$ac_check_lib_save_LIBS
  9655. fi
  9656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5
  9657. $as_echo "$ac_cv_lib_m_exp" >&6; }
  9658. if test "x$ac_cv_lib_m_exp" = xyes; then :
  9659. cat >>confdefs.h <<_ACEOF
  9660. #define HAVE_LIBM 1
  9661. _ACEOF
  9662. LIBS="-lm $LIBS"
  9663. fi
  9664. ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
  9665. if test "x$ac_cv_header_sys_time_h" = xyes; then :
  9666. $as_echo "#define HAVE_SYS_TIME_H 1" >>confdefs.h
  9667. fi
  9668. ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  9669. if test "x$ac_cv_func_gettimeofday" = xyes; then :
  9670. $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
  9671. fi
  9672. if test "$with_gmp" = "yes"; then
  9673. ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
  9674. if test "x$ac_cv_header_gmp_h" = xyes; then :
  9675. else
  9676. as_fn_error $? "gmp.h header not found" "$LINENO" 5
  9677. fi
  9678. fi
  9679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use GNU MP bignum library" >&5
  9680. $as_echo_n "checking whether to use GNU MP bignum library... " >&6; }
  9681. if test "$with_gmp" = "yes"; then
  9682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9683. $as_echo "yes" >&6; }
  9684. $as_echo "#define HAVE_GMP 1" >>confdefs.h
  9685. LIBS="-lgmp $LIBS"
  9686. else
  9687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9688. $as_echo "no" >&6; }
  9689. fi
  9690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable shared library support" >&5
  9691. $as_echo_n "checking whether to enable shared library support... " >&6; }
  9692. if test "$enable_dl" = "yes"; then
  9693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ltdl" >&5
  9694. $as_echo "ltdl" >&6; }
  9695. $as_echo "#define HAVE_LTDL 1" >>confdefs.h
  9696. LIBS="-lltdl $LIBS"
  9697. elif test "$enable_dl" = "ltdl"; then
  9698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ltdl" >&5
  9699. $as_echo "ltdl" >&6; }
  9700. $as_echo "#define HAVE_LTDL 1" >>confdefs.h
  9701. LIBS="-lltdl $LIBS"
  9702. elif test "$enable_dl" = "dlfcn"; then
  9703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: dlfcn" >&5
  9704. $as_echo "dlfcn" >&6; }
  9705. $as_echo "#define HAVE_DLFCN 1" >>confdefs.h
  9706. else
  9707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9708. $as_echo "no" >&6; }
  9709. fi
  9710. case $host_os in
  9711. darwin* | macosx*)
  9712. LIBIODBC="libiodbc.dylib"
  9713. LIBODBC="libodbc.dylib"
  9714. LIBMYSQL="libmysqlclient.dylib"
  9715. ;;
  9716. *)
  9717. LIBIODBC="libiodbc.so"
  9718. LIBODBC="libodbc.so"
  9719. LIBMYSQL="libmysqlclient.so"
  9720. ;;
  9721. esac
  9722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable MathProg ODBC support" >&5
  9723. $as_echo_n "checking whether to enable MathProg ODBC support... " >&6; }
  9724. if test "$enable_odbc" = "yes"; then
  9725. if test "$enable_dl" = "no"; then
  9726. as_fn_error $? "--enable-odbc requires --enable-dl" "$LINENO" 5
  9727. fi
  9728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9729. $as_echo "yes" >&6; }
  9730. CFLAGS="$(iodbc-config --cflags) $CFLAGS"
  9731. cat >>confdefs.h <<_ACEOF
  9732. #define ODBC_DLNAME "$LIBIODBC"
  9733. _ACEOF
  9734. elif test "$enable_odbc" = "unix"; then
  9735. if test "$enable_dl" = "no"; then
  9736. as_fn_error $? "--enable-odbc requires --enable-dl" "$LINENO" 5
  9737. fi
  9738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix" >&5
  9739. $as_echo "unix" >&6; }
  9740. cat >>confdefs.h <<_ACEOF
  9741. #define ODBC_DLNAME "$LIBODBC"
  9742. _ACEOF
  9743. else
  9744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9745. $as_echo "no" >&6; }
  9746. fi
  9747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable MathProg MySQL support" >&5
  9748. $as_echo_n "checking whether to enable MathProg MySQL support... " >&6; }
  9749. if test "$enable_mysql" = "yes"; then
  9750. if test "$enable_dl" = "no"; then
  9751. as_fn_error $? "--enable-mysql requires --enable-dl" "$LINENO" 5
  9752. fi
  9753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9754. $as_echo "yes" >&6; }
  9755. CPPFLAGS="-I/usr/include/mysql $CPPFLAGS"
  9756. cat >>confdefs.h <<_ACEOF
  9757. #define MYSQL_DLNAME "$LIBMYSQL"
  9758. _ACEOF
  9759. else
  9760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9761. $as_echo "no" >&6; }
  9762. fi
  9763. ac_config_files="$ac_config_files src/Makefile examples/Makefile Makefile"
  9764. cat >confcache <<\_ACEOF
  9765. # This file is a shell script that caches the results of configure
  9766. # tests run on this system so they can be shared between configure
  9767. # scripts and configure runs, see configure's option --config-cache.
  9768. # It is not useful on other systems. If it contains results you don't
  9769. # want to keep, you may remove or edit it.
  9770. #
  9771. # config.status only pays attention to the cache file if you give it
  9772. # the --recheck option to rerun configure.
  9773. #
  9774. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9775. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9776. # following values.
  9777. _ACEOF
  9778. # The following way of writing the cache mishandles newlines in values,
  9779. # but we know of no workaround that is simple, portable, and efficient.
  9780. # So, we kill variables containing newlines.
  9781. # Ultrix sh set writes to stderr and can't be redirected directly,
  9782. # and sets the high bit in the cache file unless we assign to the vars.
  9783. (
  9784. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9785. eval ac_val=\$$ac_var
  9786. case $ac_val in #(
  9787. *${as_nl}*)
  9788. case $ac_var in #(
  9789. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9790. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9791. esac
  9792. case $ac_var in #(
  9793. _ | IFS | as_nl) ;; #(
  9794. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9795. *) { eval $ac_var=; unset $ac_var;} ;;
  9796. esac ;;
  9797. esac
  9798. done
  9799. (set) 2>&1 |
  9800. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9801. *${as_nl}ac_space=\ *)
  9802. # `set' does not quote correctly, so add quotes: double-quote
  9803. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9804. sed -n \
  9805. "s/'/'\\\\''/g;
  9806. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9807. ;; #(
  9808. *)
  9809. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9810. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9811. ;;
  9812. esac |
  9813. sort
  9814. ) |
  9815. sed '
  9816. /^ac_cv_env_/b end
  9817. t clear
  9818. :clear
  9819. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9820. t end
  9821. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9822. :end' >>confcache
  9823. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9824. if test -w "$cache_file"; then
  9825. if test "x$cache_file" != "x/dev/null"; then
  9826. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9827. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9828. if test ! -f "$cache_file" || test -h "$cache_file"; then
  9829. cat confcache >"$cache_file"
  9830. else
  9831. case $cache_file in #(
  9832. */* | ?:*)
  9833. mv -f confcache "$cache_file"$$ &&
  9834. mv -f "$cache_file"$$ "$cache_file" ;; #(
  9835. *)
  9836. mv -f confcache "$cache_file" ;;
  9837. esac
  9838. fi
  9839. fi
  9840. else
  9841. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9842. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9843. fi
  9844. fi
  9845. rm -f confcache
  9846. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9847. # Let make expand exec_prefix.
  9848. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9849. DEFS=-DHAVE_CONFIG_H
  9850. ac_libobjs=
  9851. ac_ltlibobjs=
  9852. U=
  9853. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9854. # 1. Remove the extension, and $U if already installed.
  9855. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9856. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9857. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9858. # will be set to the directory where LIBOBJS objects are built.
  9859. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9860. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9861. done
  9862. LIBOBJS=$ac_libobjs
  9863. LTLIBOBJS=$ac_ltlibobjs
  9864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  9865. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  9866. if test -n "$am_sleep_pid"; then
  9867. # Hide warnings about reused PIDs.
  9868. wait $am_sleep_pid 2>/dev/null
  9869. fi
  9870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  9871. $as_echo "done" >&6; }
  9872. if test -n "$EXEEXT"; then
  9873. am__EXEEXT_TRUE=
  9874. am__EXEEXT_FALSE='#'
  9875. else
  9876. am__EXEEXT_TRUE='#'
  9877. am__EXEEXT_FALSE=
  9878. fi
  9879. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9880. as_fn_error $? "conditional \"AMDEP\" was never defined.
  9881. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9882. fi
  9883. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9884. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  9885. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9886. fi
  9887. : "${CONFIG_STATUS=./config.status}"
  9888. ac_write_fail=0
  9889. ac_clean_files_save=$ac_clean_files
  9890. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9891. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9892. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9893. as_write_fail=0
  9894. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9895. #! $SHELL
  9896. # Generated by $as_me.
  9897. # Run this file to recreate the current configuration.
  9898. # Compiler output produced by configure, useful for debugging
  9899. # configure, is in config.log if it exists.
  9900. debug=false
  9901. ac_cs_recheck=false
  9902. ac_cs_silent=false
  9903. SHELL=\${CONFIG_SHELL-$SHELL}
  9904. export SHELL
  9905. _ASEOF
  9906. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9907. ## -------------------- ##
  9908. ## M4sh Initialization. ##
  9909. ## -------------------- ##
  9910. # Be more Bourne compatible
  9911. DUALCASE=1; export DUALCASE # for MKS sh
  9912. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  9913. emulate sh
  9914. NULLCMD=:
  9915. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9916. # is contrary to our usage. Disable this feature.
  9917. alias -g '${1+"$@"}'='"$@"'
  9918. setopt NO_GLOB_SUBST
  9919. else
  9920. case `(set -o) 2>/dev/null` in #(
  9921. *posix*) :
  9922. set -o posix ;; #(
  9923. *) :
  9924. ;;
  9925. esac
  9926. fi
  9927. as_nl='
  9928. '
  9929. export as_nl
  9930. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9931. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9932. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9933. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9934. # Prefer a ksh shell builtin over an external printf program on Solaris,
  9935. # but without wasting forks for bash or zsh.
  9936. if test -z "$BASH_VERSION$ZSH_VERSION" \
  9937. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  9938. as_echo='print -r --'
  9939. as_echo_n='print -rn --'
  9940. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9941. as_echo='printf %s\n'
  9942. as_echo_n='printf %s'
  9943. else
  9944. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9945. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9946. as_echo_n='/usr/ucb/echo -n'
  9947. else
  9948. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9949. as_echo_n_body='eval
  9950. arg=$1;
  9951. case $arg in #(
  9952. *"$as_nl"*)
  9953. expr "X$arg" : "X\\(.*\\)$as_nl";
  9954. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9955. esac;
  9956. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9957. '
  9958. export as_echo_n_body
  9959. as_echo_n='sh -c $as_echo_n_body as_echo'
  9960. fi
  9961. export as_echo_body
  9962. as_echo='sh -c $as_echo_body as_echo'
  9963. fi
  9964. # The user is always right.
  9965. if test "${PATH_SEPARATOR+set}" != set; then
  9966. PATH_SEPARATOR=:
  9967. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9968. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9969. PATH_SEPARATOR=';'
  9970. }
  9971. fi
  9972. # IFS
  9973. # We need space, tab and new line, in precisely that order. Quoting is
  9974. # there to prevent editors from complaining about space-tab.
  9975. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9976. # splitting by setting IFS to empty value.)
  9977. IFS=" "" $as_nl"
  9978. # Find who we are. Look in the path if we contain no directory separator.
  9979. as_myself=
  9980. case $0 in #((
  9981. *[\\/]* ) as_myself=$0 ;;
  9982. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9983. for as_dir in $PATH
  9984. do
  9985. IFS=$as_save_IFS
  9986. test -z "$as_dir" && as_dir=.
  9987. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9988. done
  9989. IFS=$as_save_IFS
  9990. ;;
  9991. esac
  9992. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9993. # in which case we are not to be found in the path.
  9994. if test "x$as_myself" = x; then
  9995. as_myself=$0
  9996. fi
  9997. if test ! -f "$as_myself"; then
  9998. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9999. exit 1
  10000. fi
  10001. # Unset variables that we do not need and which cause bugs (e.g. in
  10002. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10003. # suppresses any "Segmentation fault" message there. '((' could
  10004. # trigger a bug in pdksh 5.2.14.
  10005. for as_var in BASH_ENV ENV MAIL MAILPATH
  10006. do eval test x\${$as_var+set} = xset \
  10007. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10008. done
  10009. PS1='$ '
  10010. PS2='> '
  10011. PS4='+ '
  10012. # NLS nuisances.
  10013. LC_ALL=C
  10014. export LC_ALL
  10015. LANGUAGE=C
  10016. export LANGUAGE
  10017. # CDPATH.
  10018. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10019. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  10020. # ----------------------------------------
  10021. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10022. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10023. # script with STATUS, using 1 if that was 0.
  10024. as_fn_error ()
  10025. {
  10026. as_status=$1; test $as_status -eq 0 && as_status=1
  10027. if test "$4"; then
  10028. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10029. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10030. fi
  10031. $as_echo "$as_me: error: $2" >&2
  10032. as_fn_exit $as_status
  10033. } # as_fn_error
  10034. # as_fn_set_status STATUS
  10035. # -----------------------
  10036. # Set $? to STATUS, without forking.
  10037. as_fn_set_status ()
  10038. {
  10039. return $1
  10040. } # as_fn_set_status
  10041. # as_fn_exit STATUS
  10042. # -----------------
  10043. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10044. as_fn_exit ()
  10045. {
  10046. set +e
  10047. as_fn_set_status $1
  10048. exit $1
  10049. } # as_fn_exit
  10050. # as_fn_unset VAR
  10051. # ---------------
  10052. # Portably unset VAR.
  10053. as_fn_unset ()
  10054. {
  10055. { eval $1=; unset $1;}
  10056. }
  10057. as_unset=as_fn_unset
  10058. # as_fn_append VAR VALUE
  10059. # ----------------------
  10060. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10061. # advantage of any shell optimizations that allow amortized linear growth over
  10062. # repeated appends, instead of the typical quadratic growth present in naive
  10063. # implementations.
  10064. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10065. eval 'as_fn_append ()
  10066. {
  10067. eval $1+=\$2
  10068. }'
  10069. else
  10070. as_fn_append ()
  10071. {
  10072. eval $1=\$$1\$2
  10073. }
  10074. fi # as_fn_append
  10075. # as_fn_arith ARG...
  10076. # ------------------
  10077. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10078. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10079. # must be portable across $(()) and expr.
  10080. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10081. eval 'as_fn_arith ()
  10082. {
  10083. as_val=$(( $* ))
  10084. }'
  10085. else
  10086. as_fn_arith ()
  10087. {
  10088. as_val=`expr "$@" || test $? -eq 1`
  10089. }
  10090. fi # as_fn_arith
  10091. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10092. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10093. as_expr=expr
  10094. else
  10095. as_expr=false
  10096. fi
  10097. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10098. as_basename=basename
  10099. else
  10100. as_basename=false
  10101. fi
  10102. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10103. as_dirname=dirname
  10104. else
  10105. as_dirname=false
  10106. fi
  10107. as_me=`$as_basename -- "$0" ||
  10108. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10109. X"$0" : 'X\(//\)$' \| \
  10110. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10111. $as_echo X/"$0" |
  10112. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10113. s//\1/
  10114. q
  10115. }
  10116. /^X\/\(\/\/\)$/{
  10117. s//\1/
  10118. q
  10119. }
  10120. /^X\/\(\/\).*/{
  10121. s//\1/
  10122. q
  10123. }
  10124. s/.*/./; q'`
  10125. # Avoid depending upon Character Ranges.
  10126. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10127. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10128. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10129. as_cr_digits='0123456789'
  10130. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10131. ECHO_C= ECHO_N= ECHO_T=
  10132. case `echo -n x` in #(((((
  10133. -n*)
  10134. case `echo 'xy\c'` in
  10135. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10136. xy) ECHO_C='\c';;
  10137. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10138. ECHO_T=' ';;
  10139. esac;;
  10140. *)
  10141. ECHO_N='-n';;
  10142. esac
  10143. rm -f conf$$ conf$$.exe conf$$.file
  10144. if test -d conf$$.dir; then
  10145. rm -f conf$$.dir/conf$$.file
  10146. else
  10147. rm -f conf$$.dir
  10148. mkdir conf$$.dir 2>/dev/null
  10149. fi
  10150. if (echo >conf$$.file) 2>/dev/null; then
  10151. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10152. as_ln_s='ln -s'
  10153. # ... but there are two gotchas:
  10154. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10155. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10156. # In both cases, we have to default to `cp -pR'.
  10157. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10158. as_ln_s='cp -pR'
  10159. elif ln conf$$.file conf$$ 2>/dev/null; then
  10160. as_ln_s=ln
  10161. else
  10162. as_ln_s='cp -pR'
  10163. fi
  10164. else
  10165. as_ln_s='cp -pR'
  10166. fi
  10167. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10168. rmdir conf$$.dir 2>/dev/null
  10169. # as_fn_mkdir_p
  10170. # -------------
  10171. # Create "$as_dir" as a directory, including parents if necessary.
  10172. as_fn_mkdir_p ()
  10173. {
  10174. case $as_dir in #(
  10175. -*) as_dir=./$as_dir;;
  10176. esac
  10177. test -d "$as_dir" || eval $as_mkdir_p || {
  10178. as_dirs=
  10179. while :; do
  10180. case $as_dir in #(
  10181. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10182. *) as_qdir=$as_dir;;
  10183. esac
  10184. as_dirs="'$as_qdir' $as_dirs"
  10185. as_dir=`$as_dirname -- "$as_dir" ||
  10186. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10187. X"$as_dir" : 'X\(//\)[^/]' \| \
  10188. X"$as_dir" : 'X\(//\)$' \| \
  10189. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10190. $as_echo X"$as_dir" |
  10191. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10192. s//\1/
  10193. q
  10194. }
  10195. /^X\(\/\/\)[^/].*/{
  10196. s//\1/
  10197. q
  10198. }
  10199. /^X\(\/\/\)$/{
  10200. s//\1/
  10201. q
  10202. }
  10203. /^X\(\/\).*/{
  10204. s//\1/
  10205. q
  10206. }
  10207. s/.*/./; q'`
  10208. test -d "$as_dir" && break
  10209. done
  10210. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10211. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  10212. } # as_fn_mkdir_p
  10213. if mkdir -p . 2>/dev/null; then
  10214. as_mkdir_p='mkdir -p "$as_dir"'
  10215. else
  10216. test -d ./-p && rmdir ./-p
  10217. as_mkdir_p=false
  10218. fi
  10219. # as_fn_executable_p FILE
  10220. # -----------------------
  10221. # Test if FILE is an executable regular file.
  10222. as_fn_executable_p ()
  10223. {
  10224. test -f "$1" && test -x "$1"
  10225. } # as_fn_executable_p
  10226. as_test_x='test -x'
  10227. as_executable_p=as_fn_executable_p
  10228. # Sed expression to map a string onto a valid CPP name.
  10229. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10230. # Sed expression to map a string onto a valid variable name.
  10231. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10232. exec 6>&1
  10233. ## ----------------------------------- ##
  10234. ## Main body of $CONFIG_STATUS script. ##
  10235. ## ----------------------------------- ##
  10236. _ASEOF
  10237. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10238. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10239. # Save the log message, to keep $0 and so on meaningful, and to
  10240. # report actual input values of CONFIG_FILES etc. instead of their
  10241. # values after options handling.
  10242. ac_log="
  10243. This file was extended by GLPK $as_me 4.57, which was
  10244. generated by GNU Autoconf 2.69. Invocation command line was
  10245. CONFIG_FILES = $CONFIG_FILES
  10246. CONFIG_HEADERS = $CONFIG_HEADERS
  10247. CONFIG_LINKS = $CONFIG_LINKS
  10248. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10249. $ $0 $@
  10250. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10251. "
  10252. _ACEOF
  10253. case $ac_config_files in *"
  10254. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10255. esac
  10256. case $ac_config_headers in *"
  10257. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  10258. esac
  10259. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10260. # Files that config.status was made for.
  10261. config_files="$ac_config_files"
  10262. config_headers="$ac_config_headers"
  10263. config_commands="$ac_config_commands"
  10264. _ACEOF
  10265. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10266. ac_cs_usage="\
  10267. \`$as_me' instantiates files and other configuration actions
  10268. from templates according to the current configuration. Unless the files
  10269. and actions are specified as TAGs, all are instantiated by default.
  10270. Usage: $0 [OPTION]... [TAG]...
  10271. -h, --help print this help, then exit
  10272. -V, --version print version number and configuration settings, then exit
  10273. --config print configuration, then exit
  10274. -q, --quiet, --silent
  10275. do not print progress messages
  10276. -d, --debug don't remove temporary files
  10277. --recheck update $as_me by reconfiguring in the same conditions
  10278. --file=FILE[:TEMPLATE]
  10279. instantiate the configuration file FILE
  10280. --header=FILE[:TEMPLATE]
  10281. instantiate the configuration header FILE
  10282. Configuration files:
  10283. $config_files
  10284. Configuration headers:
  10285. $config_headers
  10286. Configuration commands:
  10287. $config_commands
  10288. Report bugs to <bug-glpk@gnu.org>."
  10289. _ACEOF
  10290. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10291. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  10292. ac_cs_version="\\
  10293. GLPK config.status 4.57
  10294. configured by $0, generated by GNU Autoconf 2.69,
  10295. with options \\"\$ac_cs_config\\"
  10296. Copyright (C) 2012 Free Software Foundation, Inc.
  10297. This config.status script is free software; the Free Software Foundation
  10298. gives unlimited permission to copy, distribute and modify it."
  10299. ac_pwd='$ac_pwd'
  10300. srcdir='$srcdir'
  10301. INSTALL='$INSTALL'
  10302. MKDIR_P='$MKDIR_P'
  10303. AWK='$AWK'
  10304. test -n "\$AWK" || AWK=awk
  10305. _ACEOF
  10306. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10307. # The default lists apply if the user does not specify any file.
  10308. ac_need_defaults=:
  10309. while test $# != 0
  10310. do
  10311. case $1 in
  10312. --*=?*)
  10313. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10314. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10315. ac_shift=:
  10316. ;;
  10317. --*=)
  10318. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10319. ac_optarg=
  10320. ac_shift=:
  10321. ;;
  10322. *)
  10323. ac_option=$1
  10324. ac_optarg=$2
  10325. ac_shift=shift
  10326. ;;
  10327. esac
  10328. case $ac_option in
  10329. # Handling of the options.
  10330. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10331. ac_cs_recheck=: ;;
  10332. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10333. $as_echo "$ac_cs_version"; exit ;;
  10334. --config | --confi | --conf | --con | --co | --c )
  10335. $as_echo "$ac_cs_config"; exit ;;
  10336. --debug | --debu | --deb | --de | --d | -d )
  10337. debug=: ;;
  10338. --file | --fil | --fi | --f )
  10339. $ac_shift
  10340. case $ac_optarg in
  10341. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10342. '') as_fn_error $? "missing file argument" ;;
  10343. esac
  10344. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10345. ac_need_defaults=false;;
  10346. --header | --heade | --head | --hea )
  10347. $ac_shift
  10348. case $ac_optarg in
  10349. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10350. esac
  10351. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  10352. ac_need_defaults=false;;
  10353. --he | --h)
  10354. # Conflict between --help and --header
  10355. as_fn_error $? "ambiguous option: \`$1'
  10356. Try \`$0 --help' for more information.";;
  10357. --help | --hel | -h )
  10358. $as_echo "$ac_cs_usage"; exit ;;
  10359. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10360. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10361. ac_cs_silent=: ;;
  10362. # This is an error.
  10363. -*) as_fn_error $? "unrecognized option: \`$1'
  10364. Try \`$0 --help' for more information." ;;
  10365. *) as_fn_append ac_config_targets " $1"
  10366. ac_need_defaults=false ;;
  10367. esac
  10368. shift
  10369. done
  10370. ac_configure_extra_args=
  10371. if $ac_cs_silent; then
  10372. exec 6>/dev/null
  10373. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10374. fi
  10375. _ACEOF
  10376. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10377. if \$ac_cs_recheck; then
  10378. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10379. shift
  10380. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10381. CONFIG_SHELL='$SHELL'
  10382. export CONFIG_SHELL
  10383. exec "\$@"
  10384. fi
  10385. _ACEOF
  10386. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10387. exec 5>>config.log
  10388. {
  10389. echo
  10390. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10391. ## Running $as_me. ##
  10392. _ASBOX
  10393. $as_echo "$ac_log"
  10394. } >&5
  10395. _ACEOF
  10396. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10397. #
  10398. # INIT-COMMANDS
  10399. #
  10400. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10401. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10402. # if CDPATH is set.
  10403. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10404. sed_quote_subst='$sed_quote_subst'
  10405. double_quote_subst='$double_quote_subst'
  10406. delay_variable_subst='$delay_variable_subst'
  10407. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  10408. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  10409. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  10410. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  10411. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  10412. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  10413. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  10414. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  10415. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  10416. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  10417. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  10418. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  10419. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  10420. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  10421. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  10422. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  10423. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  10424. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  10425. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  10426. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  10427. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  10428. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  10429. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  10430. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  10431. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  10432. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  10433. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  10434. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  10435. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  10436. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  10437. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  10438. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  10439. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  10440. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  10441. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  10442. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  10443. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  10444. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  10445. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  10446. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  10447. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  10448. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  10449. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  10450. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  10451. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10452. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10453. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  10454. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  10455. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  10456. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  10457. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  10458. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  10459. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  10460. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  10461. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  10462. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10463. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  10464. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  10465. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  10466. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  10467. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  10468. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  10469. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  10470. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  10471. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  10472. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  10473. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  10474. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  10475. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  10476. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  10477. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  10478. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  10479. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  10480. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  10481. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10482. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  10483. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  10484. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  10485. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  10486. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  10487. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  10488. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10489. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  10490. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10491. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  10492. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10493. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  10494. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10495. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10496. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  10497. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  10498. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  10499. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  10500. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  10501. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  10502. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10503. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  10504. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  10505. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  10506. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  10507. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  10508. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  10509. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  10510. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  10511. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  10512. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  10513. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  10514. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10515. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  10516. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  10517. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  10518. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10519. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  10520. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  10521. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  10522. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  10523. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  10524. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10525. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10526. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  10527. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  10528. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  10529. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  10530. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  10531. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  10532. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  10533. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  10534. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  10535. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  10536. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  10537. LTCC='$LTCC'
  10538. LTCFLAGS='$LTCFLAGS'
  10539. compiler='$compiler_DEFAULT'
  10540. # A function that is used when there is no print builtin or printf.
  10541. func_fallback_echo ()
  10542. {
  10543. eval 'cat <<_LTECHO_EOF
  10544. \$1
  10545. _LTECHO_EOF'
  10546. }
  10547. # Quote evaled strings.
  10548. for var in SHELL \
  10549. ECHO \
  10550. SED \
  10551. GREP \
  10552. EGREP \
  10553. FGREP \
  10554. LD \
  10555. NM \
  10556. LN_S \
  10557. lt_SP2NL \
  10558. lt_NL2SP \
  10559. reload_flag \
  10560. OBJDUMP \
  10561. deplibs_check_method \
  10562. file_magic_cmd \
  10563. file_magic_glob \
  10564. want_nocaseglob \
  10565. DLLTOOL \
  10566. sharedlib_from_linklib_cmd \
  10567. AR \
  10568. AR_FLAGS \
  10569. archiver_list_spec \
  10570. STRIP \
  10571. RANLIB \
  10572. CC \
  10573. CFLAGS \
  10574. compiler \
  10575. lt_cv_sys_global_symbol_pipe \
  10576. lt_cv_sys_global_symbol_to_cdecl \
  10577. lt_cv_sys_global_symbol_to_c_name_address \
  10578. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  10579. nm_file_list_spec \
  10580. lt_prog_compiler_no_builtin_flag \
  10581. lt_prog_compiler_pic \
  10582. lt_prog_compiler_wl \
  10583. lt_prog_compiler_static \
  10584. lt_cv_prog_compiler_c_o \
  10585. need_locks \
  10586. MANIFEST_TOOL \
  10587. DSYMUTIL \
  10588. NMEDIT \
  10589. LIPO \
  10590. OTOOL \
  10591. OTOOL64 \
  10592. shrext_cmds \
  10593. export_dynamic_flag_spec \
  10594. whole_archive_flag_spec \
  10595. compiler_needs_object \
  10596. with_gnu_ld \
  10597. allow_undefined_flag \
  10598. no_undefined_flag \
  10599. hardcode_libdir_flag_spec \
  10600. hardcode_libdir_flag_spec_ld \
  10601. hardcode_libdir_separator \
  10602. exclude_expsyms \
  10603. include_expsyms \
  10604. file_list_spec \
  10605. variables_saved_for_relink \
  10606. libname_spec \
  10607. library_names_spec \
  10608. soname_spec \
  10609. install_override_mode \
  10610. finish_eval \
  10611. old_striplib \
  10612. striplib; do
  10613. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10614. *[\\\\\\\`\\"\\\$]*)
  10615. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  10616. ;;
  10617. *)
  10618. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10619. ;;
  10620. esac
  10621. done
  10622. # Double-quote double-evaled strings.
  10623. for var in reload_cmds \
  10624. old_postinstall_cmds \
  10625. old_postuninstall_cmds \
  10626. old_archive_cmds \
  10627. extract_expsyms_cmds \
  10628. old_archive_from_new_cmds \
  10629. old_archive_from_expsyms_cmds \
  10630. archive_cmds \
  10631. archive_expsym_cmds \
  10632. module_cmds \
  10633. module_expsym_cmds \
  10634. export_symbols_cmds \
  10635. prelink_cmds \
  10636. postlink_cmds \
  10637. postinstall_cmds \
  10638. postuninstall_cmds \
  10639. finish_cmds \
  10640. sys_lib_search_path_spec \
  10641. sys_lib_dlsearch_path_spec; do
  10642. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10643. *[\\\\\\\`\\"\\\$]*)
  10644. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  10645. ;;
  10646. *)
  10647. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10648. ;;
  10649. esac
  10650. done
  10651. ac_aux_dir='$ac_aux_dir'
  10652. xsi_shell='$xsi_shell'
  10653. lt_shell_append='$lt_shell_append'
  10654. # See if we are running on zsh, and set the options which allow our
  10655. # commands through without removal of \ escapes INIT.
  10656. if test -n "\${ZSH_VERSION+set}" ; then
  10657. setopt NO_GLOB_SUBST
  10658. fi
  10659. PACKAGE='$PACKAGE'
  10660. VERSION='$VERSION'
  10661. TIMESTAMP='$TIMESTAMP'
  10662. RM='$RM'
  10663. ofile='$ofile'
  10664. _ACEOF
  10665. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10666. # Handling of arguments.
  10667. for ac_config_target in $ac_config_targets
  10668. do
  10669. case $ac_config_target in
  10670. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10671. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10672. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  10673. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  10674. "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  10675. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10676. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10677. esac
  10678. done
  10679. # If the user did not use the arguments to specify the items to instantiate,
  10680. # then the envvar interface is used. Set only those that are not.
  10681. # We use the long form for the default assignment because of an extremely
  10682. # bizarre bug on SunOS 4.1.3.
  10683. if $ac_need_defaults; then
  10684. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10685. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10686. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10687. fi
  10688. # Have a temporary directory for convenience. Make it in the build tree
  10689. # simply because there is no reason against having it here, and in addition,
  10690. # creating and moving files from /tmp can sometimes cause problems.
  10691. # Hook for its removal unless debugging.
  10692. # Note that there is a small window in which the directory will not be cleaned:
  10693. # after its creation but before its name has been assigned to `$tmp'.
  10694. $debug ||
  10695. {
  10696. tmp= ac_tmp=
  10697. trap 'exit_status=$?
  10698. : "${ac_tmp:=$tmp}"
  10699. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  10700. ' 0
  10701. trap 'as_fn_exit 1' 1 2 13 15
  10702. }
  10703. # Create a (secure) tmp directory for tmp files.
  10704. {
  10705. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10706. test -d "$tmp"
  10707. } ||
  10708. {
  10709. tmp=./conf$$-$RANDOM
  10710. (umask 077 && mkdir "$tmp")
  10711. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  10712. ac_tmp=$tmp
  10713. # Set up the scripts for CONFIG_FILES section.
  10714. # No need to generate them if there are no CONFIG_FILES.
  10715. # This happens for instance with `./config.status config.h'.
  10716. if test -n "$CONFIG_FILES"; then
  10717. ac_cr=`echo X | tr X '\015'`
  10718. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10719. # But we know of no other shell where ac_cr would be empty at this
  10720. # point, so we can use a bashism as a fallback.
  10721. if test "x$ac_cr" = x; then
  10722. eval ac_cr=\$\'\\r\'
  10723. fi
  10724. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10725. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10726. ac_cs_awk_cr='\\r'
  10727. else
  10728. ac_cs_awk_cr=$ac_cr
  10729. fi
  10730. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  10731. _ACEOF
  10732. {
  10733. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10734. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10735. echo "_ACEOF"
  10736. } >conf$$subs.sh ||
  10737. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10738. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  10739. ac_delim='%!_!# '
  10740. for ac_last_try in false false false false false :; do
  10741. . ./conf$$subs.sh ||
  10742. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10743. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10744. if test $ac_delim_n = $ac_delim_num; then
  10745. break
  10746. elif $ac_last_try; then
  10747. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10748. else
  10749. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10750. fi
  10751. done
  10752. rm -f conf$$subs.sh
  10753. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10754. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  10755. _ACEOF
  10756. sed -n '
  10757. h
  10758. s/^/S["/; s/!.*/"]=/
  10759. p
  10760. g
  10761. s/^[^!]*!//
  10762. :repl
  10763. t repl
  10764. s/'"$ac_delim"'$//
  10765. t delim
  10766. :nl
  10767. h
  10768. s/\(.\{148\}\)..*/\1/
  10769. t more1
  10770. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10771. p
  10772. n
  10773. b repl
  10774. :more1
  10775. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10776. p
  10777. g
  10778. s/.\{148\}//
  10779. t nl
  10780. :delim
  10781. h
  10782. s/\(.\{148\}\)..*/\1/
  10783. t more2
  10784. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10785. p
  10786. b
  10787. :more2
  10788. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10789. p
  10790. g
  10791. s/.\{148\}//
  10792. t delim
  10793. ' <conf$$subs.awk | sed '
  10794. /^[^""]/{
  10795. N
  10796. s/\n//
  10797. }
  10798. ' >>$CONFIG_STATUS || ac_write_fail=1
  10799. rm -f conf$$subs.awk
  10800. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10801. _ACAWK
  10802. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  10803. for (key in S) S_is_set[key] = 1
  10804. FS = ""
  10805. }
  10806. {
  10807. line = $ 0
  10808. nfields = split(line, field, "@")
  10809. substed = 0
  10810. len = length(field[1])
  10811. for (i = 2; i < nfields; i++) {
  10812. key = field[i]
  10813. keylen = length(key)
  10814. if (S_is_set[key]) {
  10815. value = S[key]
  10816. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10817. len += length(value) + length(field[++i])
  10818. substed = 1
  10819. } else
  10820. len += 1 + keylen
  10821. }
  10822. print line
  10823. }
  10824. _ACAWK
  10825. _ACEOF
  10826. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10827. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10828. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10829. else
  10830. cat
  10831. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  10832. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  10833. _ACEOF
  10834. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  10835. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  10836. # trailing colons and then remove the whole line if VPATH becomes empty
  10837. # (actually we leave an empty line to preserve line numbers).
  10838. if test "x$srcdir" = x.; then
  10839. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  10840. h
  10841. s///
  10842. s/^/:/
  10843. s/[ ]*$/:/
  10844. s/:\$(srcdir):/:/g
  10845. s/:\${srcdir}:/:/g
  10846. s/:@srcdir@:/:/g
  10847. s/^:*//
  10848. s/:*$//
  10849. x
  10850. s/\(=[ ]*\).*/\1/
  10851. G
  10852. s/\n//
  10853. s/^[^=]*=[ ]*$//
  10854. }'
  10855. fi
  10856. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10857. fi # test -n "$CONFIG_FILES"
  10858. # Set up the scripts for CONFIG_HEADERS section.
  10859. # No need to generate them if there are no CONFIG_HEADERS.
  10860. # This happens for instance with `./config.status Makefile'.
  10861. if test -n "$CONFIG_HEADERS"; then
  10862. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  10863. BEGIN {
  10864. _ACEOF
  10865. # Transform confdefs.h into an awk script `defines.awk', embedded as
  10866. # here-document in config.status, that substitutes the proper values into
  10867. # config.h.in to produce config.h.
  10868. # Create a delimiter string that does not exist in confdefs.h, to ease
  10869. # handling of long lines.
  10870. ac_delim='%!_!# '
  10871. for ac_last_try in false false :; do
  10872. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  10873. if test -z "$ac_tt"; then
  10874. break
  10875. elif $ac_last_try; then
  10876. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  10877. else
  10878. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10879. fi
  10880. done
  10881. # For the awk script, D is an array of macro values keyed by name,
  10882. # likewise P contains macro parameters if any. Preserve backslash
  10883. # newline sequences.
  10884. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  10885. sed -n '
  10886. s/.\{148\}/&'"$ac_delim"'/g
  10887. t rset
  10888. :rset
  10889. s/^[ ]*#[ ]*define[ ][ ]*/ /
  10890. t def
  10891. d
  10892. :def
  10893. s/\\$//
  10894. t bsnl
  10895. s/["\\]/\\&/g
  10896. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10897. D["\1"]=" \3"/p
  10898. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  10899. d
  10900. :bsnl
  10901. s/["\\]/\\&/g
  10902. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  10903. D["\1"]=" \3\\\\\\n"\\/p
  10904. t cont
  10905. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  10906. t cont
  10907. d
  10908. :cont
  10909. n
  10910. s/.\{148\}/&'"$ac_delim"'/g
  10911. t clear
  10912. :clear
  10913. s/\\$//
  10914. t bsnlc
  10915. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  10916. d
  10917. :bsnlc
  10918. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  10919. b cont
  10920. ' <confdefs.h | sed '
  10921. s/'"$ac_delim"'/"\\\
  10922. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  10923. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10924. for (key in D) D_is_set[key] = 1
  10925. FS = ""
  10926. }
  10927. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  10928. line = \$ 0
  10929. split(line, arg, " ")
  10930. if (arg[1] == "#") {
  10931. defundef = arg[2]
  10932. mac1 = arg[3]
  10933. } else {
  10934. defundef = substr(arg[1], 2)
  10935. mac1 = arg[2]
  10936. }
  10937. split(mac1, mac2, "(") #)
  10938. macro = mac2[1]
  10939. prefix = substr(line, 1, index(line, defundef) - 1)
  10940. if (D_is_set[macro]) {
  10941. # Preserve the white space surrounding the "#".
  10942. print prefix "define", macro P[macro] D[macro]
  10943. next
  10944. } else {
  10945. # Replace #undef with comments. This is necessary, for example,
  10946. # in the case of _POSIX_SOURCE, which is predefined and required
  10947. # on some systems where configure will not decide to define it.
  10948. if (defundef == "undef") {
  10949. print "/*", prefix defundef, macro, "*/"
  10950. next
  10951. }
  10952. }
  10953. }
  10954. { print }
  10955. _ACAWK
  10956. _ACEOF
  10957. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10958. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  10959. fi # test -n "$CONFIG_HEADERS"
  10960. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  10961. shift
  10962. for ac_tag
  10963. do
  10964. case $ac_tag in
  10965. :[FHLC]) ac_mode=$ac_tag; continue;;
  10966. esac
  10967. case $ac_mode$ac_tag in
  10968. :[FHL]*:*);;
  10969. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  10970. :[FH]-) ac_tag=-:-;;
  10971. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10972. esac
  10973. ac_save_IFS=$IFS
  10974. IFS=:
  10975. set x $ac_tag
  10976. IFS=$ac_save_IFS
  10977. shift
  10978. ac_file=$1
  10979. shift
  10980. case $ac_mode in
  10981. :L) ac_source=$1;;
  10982. :[FH])
  10983. ac_file_inputs=
  10984. for ac_f
  10985. do
  10986. case $ac_f in
  10987. -) ac_f="$ac_tmp/stdin";;
  10988. *) # Look for the file first in the build tree, then in the source tree
  10989. # (if the path is not absolute). The absolute path cannot be DOS-style,
  10990. # because $ac_f cannot contain `:'.
  10991. test -f "$ac_f" ||
  10992. case $ac_f in
  10993. [\\/$]*) false;;
  10994. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10995. esac ||
  10996. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  10997. esac
  10998. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  10999. as_fn_append ac_file_inputs " '$ac_f'"
  11000. done
  11001. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11002. # use $as_me), people would be surprised to read:
  11003. # /* config.h. Generated by config.status. */
  11004. configure_input='Generated from '`
  11005. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11006. `' by configure.'
  11007. if test x"$ac_file" != x-; then
  11008. configure_input="$ac_file. $configure_input"
  11009. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11010. $as_echo "$as_me: creating $ac_file" >&6;}
  11011. fi
  11012. # Neutralize special characters interpreted by sed in replacement strings.
  11013. case $configure_input in #(
  11014. *\&* | *\|* | *\\* )
  11015. ac_sed_conf_input=`$as_echo "$configure_input" |
  11016. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11017. *) ac_sed_conf_input=$configure_input;;
  11018. esac
  11019. case $ac_tag in
  11020. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  11021. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  11022. esac
  11023. ;;
  11024. esac
  11025. ac_dir=`$as_dirname -- "$ac_file" ||
  11026. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11027. X"$ac_file" : 'X\(//\)[^/]' \| \
  11028. X"$ac_file" : 'X\(//\)$' \| \
  11029. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11030. $as_echo X"$ac_file" |
  11031. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11032. s//\1/
  11033. q
  11034. }
  11035. /^X\(\/\/\)[^/].*/{
  11036. s//\1/
  11037. q
  11038. }
  11039. /^X\(\/\/\)$/{
  11040. s//\1/
  11041. q
  11042. }
  11043. /^X\(\/\).*/{
  11044. s//\1/
  11045. q
  11046. }
  11047. s/.*/./; q'`
  11048. as_dir="$ac_dir"; as_fn_mkdir_p
  11049. ac_builddir=.
  11050. case "$ac_dir" in
  11051. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11052. *)
  11053. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11054. # A ".." for each directory in $ac_dir_suffix.
  11055. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11056. case $ac_top_builddir_sub in
  11057. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11058. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11059. esac ;;
  11060. esac
  11061. ac_abs_top_builddir=$ac_pwd
  11062. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11063. # for backward compatibility:
  11064. ac_top_builddir=$ac_top_build_prefix
  11065. case $srcdir in
  11066. .) # We are building in place.
  11067. ac_srcdir=.
  11068. ac_top_srcdir=$ac_top_builddir_sub
  11069. ac_abs_top_srcdir=$ac_pwd ;;
  11070. [\\/]* | ?:[\\/]* ) # Absolute name.
  11071. ac_srcdir=$srcdir$ac_dir_suffix;
  11072. ac_top_srcdir=$srcdir
  11073. ac_abs_top_srcdir=$srcdir ;;
  11074. *) # Relative name.
  11075. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11076. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11077. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11078. esac
  11079. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11080. case $ac_mode in
  11081. :F)
  11082. #
  11083. # CONFIG_FILE
  11084. #
  11085. case $INSTALL in
  11086. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11087. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11088. esac
  11089. ac_MKDIR_P=$MKDIR_P
  11090. case $MKDIR_P in
  11091. [\\/$]* | ?:[\\/]* ) ;;
  11092. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11093. esac
  11094. _ACEOF
  11095. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11096. # If the template does not know about datarootdir, expand it.
  11097. # FIXME: This hack should be removed a few years after 2.60.
  11098. ac_datarootdir_hack=; ac_datarootdir_seen=
  11099. ac_sed_dataroot='
  11100. /datarootdir/ {
  11101. p
  11102. q
  11103. }
  11104. /@datadir@/p
  11105. /@docdir@/p
  11106. /@infodir@/p
  11107. /@localedir@/p
  11108. /@mandir@/p'
  11109. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11110. *datarootdir*) ac_datarootdir_seen=yes;;
  11111. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11112. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11113. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11114. _ACEOF
  11115. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11116. ac_datarootdir_hack='
  11117. s&@datadir@&$datadir&g
  11118. s&@docdir@&$docdir&g
  11119. s&@infodir@&$infodir&g
  11120. s&@localedir@&$localedir&g
  11121. s&@mandir@&$mandir&g
  11122. s&\\\${datarootdir}&$datarootdir&g' ;;
  11123. esac
  11124. _ACEOF
  11125. # Neutralize VPATH when `$srcdir' = `.'.
  11126. # Shell code in configure.ac might set extrasub.
  11127. # FIXME: do we really want to maintain this feature?
  11128. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11129. ac_sed_extra="$ac_vpsub
  11130. $extrasub
  11131. _ACEOF
  11132. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11133. :t
  11134. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11135. s|@configure_input@|$ac_sed_conf_input|;t t
  11136. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11137. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11138. s&@srcdir@&$ac_srcdir&;t t
  11139. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11140. s&@top_srcdir@&$ac_top_srcdir&;t t
  11141. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11142. s&@builddir@&$ac_builddir&;t t
  11143. s&@abs_builddir@&$ac_abs_builddir&;t t
  11144. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11145. s&@INSTALL@&$ac_INSTALL&;t t
  11146. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  11147. $ac_datarootdir_hack
  11148. "
  11149. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  11150. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11151. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11152. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  11153. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  11154. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  11155. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11156. which seems to be undefined. Please make sure it is defined" >&5
  11157. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11158. which seems to be undefined. Please make sure it is defined" >&2;}
  11159. rm -f "$ac_tmp/stdin"
  11160. case $ac_file in
  11161. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  11162. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  11163. esac \
  11164. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11165. ;;
  11166. :H)
  11167. #
  11168. # CONFIG_HEADER
  11169. #
  11170. if test x"$ac_file" != x-; then
  11171. {
  11172. $as_echo "/* $configure_input */" \
  11173. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  11174. } >"$ac_tmp/config.h" \
  11175. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11176. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  11177. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  11178. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  11179. else
  11180. rm -f "$ac_file"
  11181. mv "$ac_tmp/config.h" "$ac_file" \
  11182. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11183. fi
  11184. else
  11185. $as_echo "/* $configure_input */" \
  11186. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  11187. || as_fn_error $? "could not create -" "$LINENO" 5
  11188. fi
  11189. # Compute "$ac_file"'s index in $config_headers.
  11190. _am_arg="$ac_file"
  11191. _am_stamp_count=1
  11192. for _am_header in $config_headers :; do
  11193. case $_am_header in
  11194. $_am_arg | $_am_arg:* )
  11195. break ;;
  11196. * )
  11197. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11198. esac
  11199. done
  11200. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  11201. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11202. X"$_am_arg" : 'X\(//\)[^/]' \| \
  11203. X"$_am_arg" : 'X\(//\)$' \| \
  11204. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  11205. $as_echo X"$_am_arg" |
  11206. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11207. s//\1/
  11208. q
  11209. }
  11210. /^X\(\/\/\)[^/].*/{
  11211. s//\1/
  11212. q
  11213. }
  11214. /^X\(\/\/\)$/{
  11215. s//\1/
  11216. q
  11217. }
  11218. /^X\(\/\).*/{
  11219. s//\1/
  11220. q
  11221. }
  11222. s/.*/./; q'`/stamp-h$_am_stamp_count
  11223. ;;
  11224. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11225. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11226. ;;
  11227. esac
  11228. case $ac_file$ac_mode in
  11229. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  11230. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  11231. # are listed without --file. Let's play safe and only enable the eval
  11232. # if we detect the quoting.
  11233. case $CONFIG_FILES in
  11234. *\'*) eval set x "$CONFIG_FILES" ;;
  11235. *) set x $CONFIG_FILES ;;
  11236. esac
  11237. shift
  11238. for mf
  11239. do
  11240. # Strip MF so we end up with the name of the file.
  11241. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11242. # Check whether this is an Automake generated Makefile or not.
  11243. # We used to match only the files named 'Makefile.in', but
  11244. # some people rename them; so instead we look at the file content.
  11245. # Grep'ing the first line is not enough: some people post-process
  11246. # each Makefile.in and add a new line on top of each file to say so.
  11247. # Grep'ing the whole file is not good either: AIX grep has a line
  11248. # limit of 2048, but all sed's we know have understand at least 4000.
  11249. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11250. dirpart=`$as_dirname -- "$mf" ||
  11251. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11252. X"$mf" : 'X\(//\)[^/]' \| \
  11253. X"$mf" : 'X\(//\)$' \| \
  11254. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  11255. $as_echo X"$mf" |
  11256. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11257. s//\1/
  11258. q
  11259. }
  11260. /^X\(\/\/\)[^/].*/{
  11261. s//\1/
  11262. q
  11263. }
  11264. /^X\(\/\/\)$/{
  11265. s//\1/
  11266. q
  11267. }
  11268. /^X\(\/\).*/{
  11269. s//\1/
  11270. q
  11271. }
  11272. s/.*/./; q'`
  11273. else
  11274. continue
  11275. fi
  11276. # Extract the definition of DEPDIR, am__include, and am__quote
  11277. # from the Makefile without running 'make'.
  11278. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11279. test -z "$DEPDIR" && continue
  11280. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11281. test -z "am__include" && continue
  11282. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11283. # Find all dependency output files, they are included files with
  11284. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11285. # simplest approach to changing $(DEPDIR) to its actual value in the
  11286. # expansion.
  11287. for file in `sed -n "
  11288. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11289. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  11290. # Make sure the directory exists.
  11291. test -f "$dirpart/$file" && continue
  11292. fdir=`$as_dirname -- "$file" ||
  11293. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11294. X"$file" : 'X\(//\)[^/]' \| \
  11295. X"$file" : 'X\(//\)$' \| \
  11296. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  11297. $as_echo X"$file" |
  11298. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11299. s//\1/
  11300. q
  11301. }
  11302. /^X\(\/\/\)[^/].*/{
  11303. s//\1/
  11304. q
  11305. }
  11306. /^X\(\/\/\)$/{
  11307. s//\1/
  11308. q
  11309. }
  11310. /^X\(\/\).*/{
  11311. s//\1/
  11312. q
  11313. }
  11314. s/.*/./; q'`
  11315. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  11316. # echo "creating $dirpart/$file"
  11317. echo '# dummy' > "$dirpart/$file"
  11318. done
  11319. done
  11320. }
  11321. ;;
  11322. "libtool":C)
  11323. # See if we are running on zsh, and set the options which allow our
  11324. # commands through without removal of \ escapes.
  11325. if test -n "${ZSH_VERSION+set}" ; then
  11326. setopt NO_GLOB_SUBST
  11327. fi
  11328. cfgfile="${ofile}T"
  11329. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  11330. $RM "$cfgfile"
  11331. cat <<_LT_EOF >> "$cfgfile"
  11332. #! $SHELL
  11333. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11334. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  11335. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11336. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11337. #
  11338. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11339. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  11340. # Inc.
  11341. # Written by Gordon Matzigkeit, 1996
  11342. #
  11343. # This file is part of GNU Libtool.
  11344. #
  11345. # GNU Libtool is free software; you can redistribute it and/or
  11346. # modify it under the terms of the GNU General Public License as
  11347. # published by the Free Software Foundation; either version 2 of
  11348. # the License, or (at your option) any later version.
  11349. #
  11350. # As a special exception to the GNU General Public License,
  11351. # if you distribute this file as part of a program or library that
  11352. # is built using GNU Libtool, you may include this file under the
  11353. # same distribution terms that you use for the rest of that program.
  11354. #
  11355. # GNU Libtool is distributed in the hope that it will be useful,
  11356. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11357. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11358. # GNU General Public License for more details.
  11359. #
  11360. # You should have received a copy of the GNU General Public License
  11361. # along with GNU Libtool; see the file COPYING. If not, a copy
  11362. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11363. # obtained by writing to the Free Software Foundation, Inc.,
  11364. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11365. # The names of the tagged configurations supported by this script.
  11366. available_tags=""
  11367. # ### BEGIN LIBTOOL CONFIG
  11368. # Which release of libtool.m4 was used?
  11369. macro_version=$macro_version
  11370. macro_revision=$macro_revision
  11371. # Whether or not to build shared libraries.
  11372. build_libtool_libs=$enable_shared
  11373. # Whether or not to build static libraries.
  11374. build_old_libs=$enable_static
  11375. # What type of objects to build.
  11376. pic_mode=$pic_mode
  11377. # Whether or not to optimize for fast installation.
  11378. fast_install=$enable_fast_install
  11379. # Shell to use when invoking shell scripts.
  11380. SHELL=$lt_SHELL
  11381. # An echo program that protects backslashes.
  11382. ECHO=$lt_ECHO
  11383. # The host system.
  11384. host_alias=$host_alias
  11385. host=$host
  11386. host_os=$host_os
  11387. # The build system.
  11388. build_alias=$build_alias
  11389. build=$build
  11390. build_os=$build_os
  11391. # A sed program that does not truncate output.
  11392. SED=$lt_SED
  11393. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11394. Xsed="\$SED -e 1s/^X//"
  11395. # A grep program that handles long lines.
  11396. GREP=$lt_GREP
  11397. # An ERE matcher.
  11398. EGREP=$lt_EGREP
  11399. # A literal string matcher.
  11400. FGREP=$lt_FGREP
  11401. # A BSD- or MS-compatible name lister.
  11402. NM=$lt_NM
  11403. # Whether we need soft or hard links.
  11404. LN_S=$lt_LN_S
  11405. # What is the maximum length of a command?
  11406. max_cmd_len=$max_cmd_len
  11407. # Object file suffix (normally "o").
  11408. objext=$ac_objext
  11409. # Executable file suffix (normally "").
  11410. exeext=$exeext
  11411. # whether the shell understands "unset".
  11412. lt_unset=$lt_unset
  11413. # turn spaces into newlines.
  11414. SP2NL=$lt_lt_SP2NL
  11415. # turn newlines into spaces.
  11416. NL2SP=$lt_lt_NL2SP
  11417. # convert \$build file names to \$host format.
  11418. to_host_file_cmd=$lt_cv_to_host_file_cmd
  11419. # convert \$build files to toolchain format.
  11420. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  11421. # An object symbol dumper.
  11422. OBJDUMP=$lt_OBJDUMP
  11423. # Method to check whether dependent libraries are shared objects.
  11424. deplibs_check_method=$lt_deplibs_check_method
  11425. # Command to use when deplibs_check_method = "file_magic".
  11426. file_magic_cmd=$lt_file_magic_cmd
  11427. # How to find potential files when deplibs_check_method = "file_magic".
  11428. file_magic_glob=$lt_file_magic_glob
  11429. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  11430. want_nocaseglob=$lt_want_nocaseglob
  11431. # DLL creation program.
  11432. DLLTOOL=$lt_DLLTOOL
  11433. # Command to associate shared and link libraries.
  11434. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  11435. # The archiver.
  11436. AR=$lt_AR
  11437. # Flags to create an archive.
  11438. AR_FLAGS=$lt_AR_FLAGS
  11439. # How to feed a file listing to the archiver.
  11440. archiver_list_spec=$lt_archiver_list_spec
  11441. # A symbol stripping program.
  11442. STRIP=$lt_STRIP
  11443. # Commands used to install an old-style archive.
  11444. RANLIB=$lt_RANLIB
  11445. old_postinstall_cmds=$lt_old_postinstall_cmds
  11446. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11447. # Whether to use a lock for old archive extraction.
  11448. lock_old_archive_extraction=$lock_old_archive_extraction
  11449. # A C compiler.
  11450. LTCC=$lt_CC
  11451. # LTCC compiler flags.
  11452. LTCFLAGS=$lt_CFLAGS
  11453. # Take the output of nm and produce a listing of raw symbols and C names.
  11454. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11455. # Transform the output of nm in a proper C declaration.
  11456. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11457. # Transform the output of nm in a C name address pair.
  11458. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11459. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11460. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11461. # Specify filename containing input files for \$NM.
  11462. nm_file_list_spec=$lt_nm_file_list_spec
  11463. # The root where to search for dependent libraries,and in which our libraries should be installed.
  11464. lt_sysroot=$lt_sysroot
  11465. # The name of the directory that contains temporary libtool files.
  11466. objdir=$objdir
  11467. # Used to examine libraries when file_magic_cmd begins with "file".
  11468. MAGIC_CMD=$MAGIC_CMD
  11469. # Must we lock files when doing compilation?
  11470. need_locks=$lt_need_locks
  11471. # Manifest tool.
  11472. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  11473. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  11474. DSYMUTIL=$lt_DSYMUTIL
  11475. # Tool to change global to local symbols on Mac OS X.
  11476. NMEDIT=$lt_NMEDIT
  11477. # Tool to manipulate fat objects and archives on Mac OS X.
  11478. LIPO=$lt_LIPO
  11479. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  11480. OTOOL=$lt_OTOOL
  11481. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  11482. OTOOL64=$lt_OTOOL64
  11483. # Old archive suffix (normally "a").
  11484. libext=$libext
  11485. # Shared library suffix (normally ".so").
  11486. shrext_cmds=$lt_shrext_cmds
  11487. # The commands to extract the exported symbol list from a shared archive.
  11488. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11489. # Variables whose values should be saved in libtool wrapper scripts and
  11490. # restored at link time.
  11491. variables_saved_for_relink=$lt_variables_saved_for_relink
  11492. # Do we need the "lib" prefix for modules?
  11493. need_lib_prefix=$need_lib_prefix
  11494. # Do we need a version for libraries?
  11495. need_version=$need_version
  11496. # Library versioning type.
  11497. version_type=$version_type
  11498. # Shared library runtime path variable.
  11499. runpath_var=$runpath_var
  11500. # Shared library path variable.
  11501. shlibpath_var=$shlibpath_var
  11502. # Is shlibpath searched before the hard-coded library search path?
  11503. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11504. # Format of library name prefix.
  11505. libname_spec=$lt_libname_spec
  11506. # List of archive names. First name is the real one, the rest are links.
  11507. # The last name is the one that the linker finds with -lNAME
  11508. library_names_spec=$lt_library_names_spec
  11509. # The coded name of the library, if different from the real name.
  11510. soname_spec=$lt_soname_spec
  11511. # Permission mode override for installation of shared libraries.
  11512. install_override_mode=$lt_install_override_mode
  11513. # Command to use after installation of a shared archive.
  11514. postinstall_cmds=$lt_postinstall_cmds
  11515. # Command to use after uninstallation of a shared archive.
  11516. postuninstall_cmds=$lt_postuninstall_cmds
  11517. # Commands used to finish a libtool library installation in a directory.
  11518. finish_cmds=$lt_finish_cmds
  11519. # As "finish_cmds", except a single script fragment to be evaled but
  11520. # not shown.
  11521. finish_eval=$lt_finish_eval
  11522. # Whether we should hardcode library paths into libraries.
  11523. hardcode_into_libs=$hardcode_into_libs
  11524. # Compile-time system search path for libraries.
  11525. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11526. # Run-time system search path for libraries.
  11527. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11528. # Whether dlopen is supported.
  11529. dlopen_support=$enable_dlopen
  11530. # Whether dlopen of programs is supported.
  11531. dlopen_self=$enable_dlopen_self
  11532. # Whether dlopen of statically linked programs is supported.
  11533. dlopen_self_static=$enable_dlopen_self_static
  11534. # Commands to strip libraries.
  11535. old_striplib=$lt_old_striplib
  11536. striplib=$lt_striplib
  11537. # The linker used to build libraries.
  11538. LD=$lt_LD
  11539. # How to create reloadable object files.
  11540. reload_flag=$lt_reload_flag
  11541. reload_cmds=$lt_reload_cmds
  11542. # Commands used to build an old-style archive.
  11543. old_archive_cmds=$lt_old_archive_cmds
  11544. # A language specific compiler.
  11545. CC=$lt_compiler
  11546. # Is the compiler the GNU compiler?
  11547. with_gcc=$GCC
  11548. # Compiler flag to turn off builtin functions.
  11549. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11550. # Additional compiler flags for building library objects.
  11551. pic_flag=$lt_lt_prog_compiler_pic
  11552. # How to pass a linker flag through the compiler.
  11553. wl=$lt_lt_prog_compiler_wl
  11554. # Compiler flag to prevent dynamic linking.
  11555. link_static_flag=$lt_lt_prog_compiler_static
  11556. # Does compiler simultaneously support -c and -o options?
  11557. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11558. # Whether or not to add -lc for building shared libraries.
  11559. build_libtool_need_lc=$archive_cmds_need_lc
  11560. # Whether or not to disallow shared libs when runtime libs are static.
  11561. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11562. # Compiler flag to allow reflexive dlopens.
  11563. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11564. # Compiler flag to generate shared objects directly from archives.
  11565. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11566. # Whether the compiler copes with passing no objects directly.
  11567. compiler_needs_object=$lt_compiler_needs_object
  11568. # Create an old-style archive from a shared archive.
  11569. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11570. # Create a temporary old-style archive to link instead of a shared archive.
  11571. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11572. # Commands used to build a shared archive.
  11573. archive_cmds=$lt_archive_cmds
  11574. archive_expsym_cmds=$lt_archive_expsym_cmds
  11575. # Commands used to build a loadable module if different from building
  11576. # a shared archive.
  11577. module_cmds=$lt_module_cmds
  11578. module_expsym_cmds=$lt_module_expsym_cmds
  11579. # Whether we are building with GNU ld or not.
  11580. with_gnu_ld=$lt_with_gnu_ld
  11581. # Flag that allows shared libraries with undefined symbols to be built.
  11582. allow_undefined_flag=$lt_allow_undefined_flag
  11583. # Flag that enforces no undefined symbols.
  11584. no_undefined_flag=$lt_no_undefined_flag
  11585. # Flag to hardcode \$libdir into a binary during linking.
  11586. # This must work even if \$libdir does not exist
  11587. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11588. # If ld is used when linking, flag to hardcode \$libdir into a binary
  11589. # during linking. This must work even if \$libdir does not exist.
  11590. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  11591. # Whether we need a single "-rpath" flag with a separated argument.
  11592. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11593. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11594. # DIR into the resulting binary.
  11595. hardcode_direct=$hardcode_direct
  11596. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11597. # DIR into the resulting binary and the resulting library dependency is
  11598. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11599. # library is relocated.
  11600. hardcode_direct_absolute=$hardcode_direct_absolute
  11601. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11602. # into the resulting binary.
  11603. hardcode_minus_L=$hardcode_minus_L
  11604. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11605. # into the resulting binary.
  11606. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11607. # Set to "yes" if building a shared library automatically hardcodes DIR
  11608. # into the library and all subsequent libraries and executables linked
  11609. # against it.
  11610. hardcode_automatic=$hardcode_automatic
  11611. # Set to yes if linker adds runtime paths of dependent libraries
  11612. # to runtime path list.
  11613. inherit_rpath=$inherit_rpath
  11614. # Whether libtool must link a program against all its dependency libraries.
  11615. link_all_deplibs=$link_all_deplibs
  11616. # Set to "yes" if exported symbols are required.
  11617. always_export_symbols=$always_export_symbols
  11618. # The commands to list exported symbols.
  11619. export_symbols_cmds=$lt_export_symbols_cmds
  11620. # Symbols that should not be listed in the preloaded symbols.
  11621. exclude_expsyms=$lt_exclude_expsyms
  11622. # Symbols that must always be exported.
  11623. include_expsyms=$lt_include_expsyms
  11624. # Commands necessary for linking programs (against libraries) with templates.
  11625. prelink_cmds=$lt_prelink_cmds
  11626. # Commands necessary for finishing linking programs.
  11627. postlink_cmds=$lt_postlink_cmds
  11628. # Specify filename containing input files.
  11629. file_list_spec=$lt_file_list_spec
  11630. # How to hardcode a shared library path into an executable.
  11631. hardcode_action=$hardcode_action
  11632. # ### END LIBTOOL CONFIG
  11633. _LT_EOF
  11634. case $host_os in
  11635. aix3*)
  11636. cat <<\_LT_EOF >> "$cfgfile"
  11637. # AIX sometimes has problems with the GCC collect2 program. For some
  11638. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11639. # vanish in a puff of smoke.
  11640. if test "X${COLLECT_NAMES+set}" != Xset; then
  11641. COLLECT_NAMES=
  11642. export COLLECT_NAMES
  11643. fi
  11644. _LT_EOF
  11645. ;;
  11646. esac
  11647. ltmain="$ac_aux_dir/ltmain.sh"
  11648. # We use sed instead of cat because bash on DJGPP gets confused if
  11649. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11650. # text mode, it properly converts lines to CR/LF. This bash problem
  11651. # is reportedly fixed, but why not run on old versions too?
  11652. sed '$q' "$ltmain" >> "$cfgfile" \
  11653. || (rm -f "$cfgfile"; exit 1)
  11654. if test x"$xsi_shell" = xyes; then
  11655. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  11656. func_dirname ()\
  11657. {\
  11658. \ case ${1} in\
  11659. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  11660. \ * ) func_dirname_result="${3}" ;;\
  11661. \ esac\
  11662. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  11663. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11664. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11665. test 0 -eq $? || _lt_function_replace_fail=:
  11666. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  11667. func_basename ()\
  11668. {\
  11669. \ func_basename_result="${1##*/}"\
  11670. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  11671. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11672. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11673. test 0 -eq $? || _lt_function_replace_fail=:
  11674. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  11675. func_dirname_and_basename ()\
  11676. {\
  11677. \ case ${1} in\
  11678. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  11679. \ * ) func_dirname_result="${3}" ;;\
  11680. \ esac\
  11681. \ func_basename_result="${1##*/}"\
  11682. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  11683. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11684. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11685. test 0 -eq $? || _lt_function_replace_fail=:
  11686. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  11687. func_stripname ()\
  11688. {\
  11689. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  11690. \ # positional parameters, so assign one to ordinary parameter first.\
  11691. \ func_stripname_result=${3}\
  11692. \ func_stripname_result=${func_stripname_result#"${1}"}\
  11693. \ func_stripname_result=${func_stripname_result%"${2}"}\
  11694. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  11695. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11696. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11697. test 0 -eq $? || _lt_function_replace_fail=:
  11698. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  11699. func_split_long_opt ()\
  11700. {\
  11701. \ func_split_long_opt_name=${1%%=*}\
  11702. \ func_split_long_opt_arg=${1#*=}\
  11703. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  11704. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11705. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11706. test 0 -eq $? || _lt_function_replace_fail=:
  11707. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  11708. func_split_short_opt ()\
  11709. {\
  11710. \ func_split_short_opt_arg=${1#??}\
  11711. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  11712. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  11713. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11714. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11715. test 0 -eq $? || _lt_function_replace_fail=:
  11716. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  11717. func_lo2o ()\
  11718. {\
  11719. \ case ${1} in\
  11720. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  11721. \ *) func_lo2o_result=${1} ;;\
  11722. \ esac\
  11723. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  11724. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11725. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11726. test 0 -eq $? || _lt_function_replace_fail=:
  11727. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  11728. func_xform ()\
  11729. {\
  11730. func_xform_result=${1%.*}.lo\
  11731. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  11732. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11733. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11734. test 0 -eq $? || _lt_function_replace_fail=:
  11735. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  11736. func_arith ()\
  11737. {\
  11738. func_arith_result=$(( $* ))\
  11739. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  11740. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11741. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11742. test 0 -eq $? || _lt_function_replace_fail=:
  11743. sed -e '/^func_len ()$/,/^} # func_len /c\
  11744. func_len ()\
  11745. {\
  11746. func_len_result=${#1}\
  11747. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  11748. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11749. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11750. test 0 -eq $? || _lt_function_replace_fail=:
  11751. fi
  11752. if test x"$lt_shell_append" = xyes; then
  11753. sed -e '/^func_append ()$/,/^} # func_append /c\
  11754. func_append ()\
  11755. {\
  11756. eval "${1}+=\\${2}"\
  11757. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  11758. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11759. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11760. test 0 -eq $? || _lt_function_replace_fail=:
  11761. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  11762. func_append_quoted ()\
  11763. {\
  11764. \ func_quote_for_eval "${2}"\
  11765. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  11766. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  11767. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11768. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11769. test 0 -eq $? || _lt_function_replace_fail=:
  11770. # Save a `func_append' function call where possible by direct use of '+='
  11771. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  11772. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11773. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11774. test 0 -eq $? || _lt_function_replace_fail=:
  11775. else
  11776. # Save a `func_append' function call even when '+=' is not available
  11777. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  11778. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11779. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11780. test 0 -eq $? || _lt_function_replace_fail=:
  11781. fi
  11782. if test x"$_lt_function_replace_fail" = x":"; then
  11783. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  11784. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  11785. fi
  11786. mv -f "$cfgfile" "$ofile" ||
  11787. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11788. chmod +x "$ofile"
  11789. ;;
  11790. esac
  11791. done # for ac_tag
  11792. as_fn_exit 0
  11793. _ACEOF
  11794. ac_clean_files=$ac_clean_files_save
  11795. test $ac_write_fail = 0 ||
  11796. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  11797. # configure is writing to config.log, and then calls config.status.
  11798. # config.status does its own redirection, appending to config.log.
  11799. # Unfortunately, on DOS this fails, as config.log is still kept open
  11800. # by configure, so config.status won't be able to write to it; its
  11801. # output is simply discarded. So we exec the FD to /dev/null,
  11802. # effectively closing config.log, so it can be properly (re)opened and
  11803. # appended to by config.status. When coming back to configure, we
  11804. # need to make the FD available again.
  11805. if test "$no_create" != yes; then
  11806. ac_cs_success=:
  11807. ac_config_status_args=
  11808. test "$silent" = yes &&
  11809. ac_config_status_args="$ac_config_status_args --quiet"
  11810. exec 5>/dev/null
  11811. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11812. exec 5>>config.log
  11813. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11814. # would make configure fail if this is the last instruction.
  11815. $ac_cs_success || as_fn_exit 1
  11816. fi
  11817. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11818. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11819. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11820. fi