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.

19890 lines
593 KiB

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for cudd 3.0.0.
  4. #
  5. # Report bugs to <Fabio@Colorado.EDU>.
  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 Fabio@Colorado.EDU
  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='cudd'
  542. PACKAGE_TARNAME='cudd'
  543. PACKAGE_VERSION='3.0.0'
  544. PACKAGE_STRING='cudd 3.0.0'
  545. PACKAGE_BUGREPORT='Fabio@Colorado.EDU'
  546. PACKAGE_URL=''
  547. # Factoring default headers for most tests.
  548. ac_includes_default="\
  549. #include <stdio.h>
  550. #ifdef HAVE_SYS_TYPES_H
  551. # include <sys/types.h>
  552. #endif
  553. #ifdef HAVE_SYS_STAT_H
  554. # include <sys/stat.h>
  555. #endif
  556. #ifdef STDC_HEADERS
  557. # include <stdlib.h>
  558. # include <stddef.h>
  559. #else
  560. # ifdef HAVE_STDLIB_H
  561. # include <stdlib.h>
  562. # endif
  563. #endif
  564. #ifdef HAVE_STRING_H
  565. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  566. # include <memory.h>
  567. # endif
  568. # include <string.h>
  569. #endif
  570. #ifdef HAVE_STRINGS_H
  571. # include <strings.h>
  572. #endif
  573. #ifdef HAVE_INTTYPES_H
  574. # include <inttypes.h>
  575. #endif
  576. #ifdef HAVE_STDINT_H
  577. # include <stdint.h>
  578. #endif
  579. #ifdef HAVE_UNISTD_H
  580. # include <unistd.h>
  581. #endif"
  582. ac_unique_file="st/st.c"
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. LIBOBJS
  587. MINGW64_FALSE
  588. MINGW64_TRUE
  589. HAVE_PTHREADS_FALSE
  590. HAVE_PTHREADS_TRUE
  591. HAVE_PDFLATEX_FALSE
  592. HAVE_PDFLATEX_TRUE
  593. MAKEINDEX
  594. PDFLATEX
  595. HAVE_DOXYGEN_FALSE
  596. HAVE_DOXYGEN_TRUE
  597. DOXYGEN
  598. CROSS_COMPILING_FALSE
  599. CROSS_COMPILING_TRUE
  600. CXXCPP
  601. CPP
  602. OTOOL64
  603. OTOOL
  604. LIPO
  605. NMEDIT
  606. DSYMUTIL
  607. MANIFEST_TOOL
  608. RANLIB
  609. LN_S
  610. NM
  611. ac_ct_DUMPBIN
  612. DUMPBIN
  613. LD
  614. FGREP
  615. EGREP
  616. GREP
  617. SED
  618. LIBTOOL
  619. OBJDUMP
  620. DLLTOOL
  621. AS
  622. ac_ct_AR
  623. AR
  624. am__fastdepCXX_FALSE
  625. am__fastdepCXX_TRUE
  626. CXXDEPMODE
  627. ac_ct_CXX
  628. CXXFLAGS
  629. CXX
  630. am__fastdepCC_FALSE
  631. am__fastdepCC_TRUE
  632. CCDEPMODE
  633. am__nodep
  634. AMDEPBACKSLASH
  635. AMDEP_FALSE
  636. AMDEP_TRUE
  637. am__quote
  638. am__include
  639. DEPDIR
  640. OBJEXT
  641. EXEEXT
  642. ac_ct_CC
  643. CPPFLAGS
  644. LDFLAGS
  645. CFLAGS
  646. CC
  647. OBJ_FALSE
  648. OBJ_TRUE
  649. DDDMP_FALSE
  650. DDDMP_TRUE
  651. AM_BACKSLASH
  652. AM_DEFAULT_VERBOSITY
  653. AM_DEFAULT_V
  654. AM_V
  655. am__untar
  656. am__tar
  657. AMTAR
  658. am__leading_dot
  659. SET_MAKE
  660. AWK
  661. mkdir_p
  662. MKDIR_P
  663. INSTALL_STRIP_PROGRAM
  664. STRIP
  665. install_sh
  666. MAKEINFO
  667. AUTOHEADER
  668. AUTOMAKE
  669. AUTOCONF
  670. ACLOCAL
  671. VERSION
  672. PACKAGE
  673. CYGPATH_W
  674. am__isrc
  675. INSTALL_DATA
  676. INSTALL_SCRIPT
  677. INSTALL_PROGRAM
  678. host_os
  679. host_vendor
  680. host_cpu
  681. host
  682. build_os
  683. build_vendor
  684. build_cpu
  685. build
  686. target_alias
  687. host_alias
  688. build_alias
  689. LIBS
  690. ECHO_T
  691. ECHO_N
  692. ECHO_C
  693. DEFS
  694. mandir
  695. localedir
  696. libdir
  697. psdir
  698. pdfdir
  699. dvidir
  700. htmldir
  701. infodir
  702. docdir
  703. oldincludedir
  704. includedir
  705. localstatedir
  706. sharedstatedir
  707. sysconfdir
  708. datadir
  709. datarootdir
  710. libexecdir
  711. sbindir
  712. bindir
  713. program_transform_name
  714. prefix
  715. exec_prefix
  716. PACKAGE_URL
  717. PACKAGE_BUGREPORT
  718. PACKAGE_STRING
  719. PACKAGE_VERSION
  720. PACKAGE_TARNAME
  721. PACKAGE_NAME
  722. PATH_SEPARATOR
  723. SHELL'
  724. ac_subst_files=''
  725. ac_user_opts='
  726. enable_option_checking
  727. enable_silent_rules
  728. enable_dddmp
  729. enable_obj
  730. with_system_qsort
  731. enable_dependency_tracking
  732. enable_shared
  733. enable_static
  734. with_pic
  735. enable_fast_install
  736. with_gnu_ld
  737. with_sysroot
  738. enable_libtool_lock
  739. '
  740. ac_precious_vars='build_alias
  741. host_alias
  742. target_alias
  743. CC
  744. CFLAGS
  745. LDFLAGS
  746. LIBS
  747. CPPFLAGS
  748. CXX
  749. CXXFLAGS
  750. CCC
  751. CPP
  752. CXXCPP'
  753. # Initialize some variables set by options.
  754. ac_init_help=
  755. ac_init_version=false
  756. ac_unrecognized_opts=
  757. ac_unrecognized_sep=
  758. # The variables have the same names as the options, with
  759. # dashes changed to underlines.
  760. cache_file=/dev/null
  761. exec_prefix=NONE
  762. no_create=
  763. no_recursion=
  764. prefix=NONE
  765. program_prefix=NONE
  766. program_suffix=NONE
  767. program_transform_name=s,x,x,
  768. silent=
  769. site=
  770. srcdir=
  771. verbose=
  772. x_includes=NONE
  773. x_libraries=NONE
  774. # Installation directory options.
  775. # These are left unexpanded so users can "make install exec_prefix=/foo"
  776. # and all the variables that are supposed to be based on exec_prefix
  777. # by default will actually change.
  778. # Use braces instead of parens because sh, perl, etc. also accept them.
  779. # (The list follows the same order as the GNU Coding Standards.)
  780. bindir='${exec_prefix}/bin'
  781. sbindir='${exec_prefix}/sbin'
  782. libexecdir='${exec_prefix}/libexec'
  783. datarootdir='${prefix}/share'
  784. datadir='${datarootdir}'
  785. sysconfdir='${prefix}/etc'
  786. sharedstatedir='${prefix}/com'
  787. localstatedir='${prefix}/var'
  788. includedir='${prefix}/include'
  789. oldincludedir='/usr/include'
  790. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  791. infodir='${datarootdir}/info'
  792. htmldir='${docdir}'
  793. dvidir='${docdir}'
  794. pdfdir='${docdir}'
  795. psdir='${docdir}'
  796. libdir='${exec_prefix}/lib'
  797. localedir='${datarootdir}/locale'
  798. mandir='${datarootdir}/man'
  799. ac_prev=
  800. ac_dashdash=
  801. for ac_option
  802. do
  803. # If the previous option needs an argument, assign it.
  804. if test -n "$ac_prev"; then
  805. eval $ac_prev=\$ac_option
  806. ac_prev=
  807. continue
  808. fi
  809. case $ac_option in
  810. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  811. *=) ac_optarg= ;;
  812. *) ac_optarg=yes ;;
  813. esac
  814. # Accept the important Cygnus configure options, so we can diagnose typos.
  815. case $ac_dashdash$ac_option in
  816. --)
  817. ac_dashdash=yes ;;
  818. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  819. ac_prev=bindir ;;
  820. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  821. bindir=$ac_optarg ;;
  822. -build | --build | --buil | --bui | --bu)
  823. ac_prev=build_alias ;;
  824. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  825. build_alias=$ac_optarg ;;
  826. -cache-file | --cache-file | --cache-fil | --cache-fi \
  827. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  828. ac_prev=cache_file ;;
  829. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  830. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  831. cache_file=$ac_optarg ;;
  832. --config-cache | -C)
  833. cache_file=config.cache ;;
  834. -datadir | --datadir | --datadi | --datad)
  835. ac_prev=datadir ;;
  836. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  837. datadir=$ac_optarg ;;
  838. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  839. | --dataroo | --dataro | --datar)
  840. ac_prev=datarootdir ;;
  841. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  842. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  843. datarootdir=$ac_optarg ;;
  844. -disable-* | --disable-*)
  845. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  846. # Reject names that are not valid shell variable names.
  847. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  848. as_fn_error $? "invalid feature name: $ac_useropt"
  849. ac_useropt_orig=$ac_useropt
  850. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  851. case $ac_user_opts in
  852. *"
  853. "enable_$ac_useropt"
  854. "*) ;;
  855. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  856. ac_unrecognized_sep=', ';;
  857. esac
  858. eval enable_$ac_useropt=no ;;
  859. -docdir | --docdir | --docdi | --doc | --do)
  860. ac_prev=docdir ;;
  861. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  862. docdir=$ac_optarg ;;
  863. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  864. ac_prev=dvidir ;;
  865. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  866. dvidir=$ac_optarg ;;
  867. -enable-* | --enable-*)
  868. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  869. # Reject names that are not valid shell variable names.
  870. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  871. as_fn_error $? "invalid feature name: $ac_useropt"
  872. ac_useropt_orig=$ac_useropt
  873. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  874. case $ac_user_opts in
  875. *"
  876. "enable_$ac_useropt"
  877. "*) ;;
  878. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  879. ac_unrecognized_sep=', ';;
  880. esac
  881. eval enable_$ac_useropt=\$ac_optarg ;;
  882. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  883. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  884. | --exec | --exe | --ex)
  885. ac_prev=exec_prefix ;;
  886. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  887. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  888. | --exec=* | --exe=* | --ex=*)
  889. exec_prefix=$ac_optarg ;;
  890. -gas | --gas | --ga | --g)
  891. # Obsolete; use --with-gas.
  892. with_gas=yes ;;
  893. -help | --help | --hel | --he | -h)
  894. ac_init_help=long ;;
  895. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  896. ac_init_help=recursive ;;
  897. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  898. ac_init_help=short ;;
  899. -host | --host | --hos | --ho)
  900. ac_prev=host_alias ;;
  901. -host=* | --host=* | --hos=* | --ho=*)
  902. host_alias=$ac_optarg ;;
  903. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  904. ac_prev=htmldir ;;
  905. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  906. | --ht=*)
  907. htmldir=$ac_optarg ;;
  908. -includedir | --includedir | --includedi | --included | --include \
  909. | --includ | --inclu | --incl | --inc)
  910. ac_prev=includedir ;;
  911. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  912. | --includ=* | --inclu=* | --incl=* | --inc=*)
  913. includedir=$ac_optarg ;;
  914. -infodir | --infodir | --infodi | --infod | --info | --inf)
  915. ac_prev=infodir ;;
  916. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  917. infodir=$ac_optarg ;;
  918. -libdir | --libdir | --libdi | --libd)
  919. ac_prev=libdir ;;
  920. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  921. libdir=$ac_optarg ;;
  922. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  923. | --libexe | --libex | --libe)
  924. ac_prev=libexecdir ;;
  925. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  926. | --libexe=* | --libex=* | --libe=*)
  927. libexecdir=$ac_optarg ;;
  928. -localedir | --localedir | --localedi | --localed | --locale)
  929. ac_prev=localedir ;;
  930. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  931. localedir=$ac_optarg ;;
  932. -localstatedir | --localstatedir | --localstatedi | --localstated \
  933. | --localstate | --localstat | --localsta | --localst | --locals)
  934. ac_prev=localstatedir ;;
  935. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  936. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  937. localstatedir=$ac_optarg ;;
  938. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  939. ac_prev=mandir ;;
  940. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  941. mandir=$ac_optarg ;;
  942. -nfp | --nfp | --nf)
  943. # Obsolete; use --without-fp.
  944. with_fp=no ;;
  945. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  946. | --no-cr | --no-c | -n)
  947. no_create=yes ;;
  948. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  949. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  950. no_recursion=yes ;;
  951. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  952. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  953. | --oldin | --oldi | --old | --ol | --o)
  954. ac_prev=oldincludedir ;;
  955. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  956. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  957. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  958. oldincludedir=$ac_optarg ;;
  959. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  960. ac_prev=prefix ;;
  961. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  962. prefix=$ac_optarg ;;
  963. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  964. | --program-pre | --program-pr | --program-p)
  965. ac_prev=program_prefix ;;
  966. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  967. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  968. program_prefix=$ac_optarg ;;
  969. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  970. | --program-suf | --program-su | --program-s)
  971. ac_prev=program_suffix ;;
  972. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  973. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  974. program_suffix=$ac_optarg ;;
  975. -program-transform-name | --program-transform-name \
  976. | --program-transform-nam | --program-transform-na \
  977. | --program-transform-n | --program-transform- \
  978. | --program-transform | --program-transfor \
  979. | --program-transfo | --program-transf \
  980. | --program-trans | --program-tran \
  981. | --progr-tra | --program-tr | --program-t)
  982. ac_prev=program_transform_name ;;
  983. -program-transform-name=* | --program-transform-name=* \
  984. | --program-transform-nam=* | --program-transform-na=* \
  985. | --program-transform-n=* | --program-transform-=* \
  986. | --program-transform=* | --program-transfor=* \
  987. | --program-transfo=* | --program-transf=* \
  988. | --program-trans=* | --program-tran=* \
  989. | --progr-tra=* | --program-tr=* | --program-t=*)
  990. program_transform_name=$ac_optarg ;;
  991. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  992. ac_prev=pdfdir ;;
  993. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  994. pdfdir=$ac_optarg ;;
  995. -psdir | --psdir | --psdi | --psd | --ps)
  996. ac_prev=psdir ;;
  997. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  998. psdir=$ac_optarg ;;
  999. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1000. | -silent | --silent | --silen | --sile | --sil)
  1001. silent=yes ;;
  1002. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1003. ac_prev=sbindir ;;
  1004. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1005. | --sbi=* | --sb=*)
  1006. sbindir=$ac_optarg ;;
  1007. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1008. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1009. | --sharedst | --shareds | --shared | --share | --shar \
  1010. | --sha | --sh)
  1011. ac_prev=sharedstatedir ;;
  1012. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1013. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1014. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1015. | --sha=* | --sh=*)
  1016. sharedstatedir=$ac_optarg ;;
  1017. -site | --site | --sit)
  1018. ac_prev=site ;;
  1019. -site=* | --site=* | --sit=*)
  1020. site=$ac_optarg ;;
  1021. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1022. ac_prev=srcdir ;;
  1023. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1024. srcdir=$ac_optarg ;;
  1025. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1026. | --syscon | --sysco | --sysc | --sys | --sy)
  1027. ac_prev=sysconfdir ;;
  1028. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1029. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1030. sysconfdir=$ac_optarg ;;
  1031. -target | --target | --targe | --targ | --tar | --ta | --t)
  1032. ac_prev=target_alias ;;
  1033. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1034. target_alias=$ac_optarg ;;
  1035. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1036. verbose=yes ;;
  1037. -version | --version | --versio | --versi | --vers | -V)
  1038. ac_init_version=: ;;
  1039. -with-* | --with-*)
  1040. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1041. # Reject names that are not valid shell variable names.
  1042. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1043. as_fn_error $? "invalid package name: $ac_useropt"
  1044. ac_useropt_orig=$ac_useropt
  1045. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1046. case $ac_user_opts in
  1047. *"
  1048. "with_$ac_useropt"
  1049. "*) ;;
  1050. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1051. ac_unrecognized_sep=', ';;
  1052. esac
  1053. eval with_$ac_useropt=\$ac_optarg ;;
  1054. -without-* | --without-*)
  1055. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1056. # Reject names that are not valid shell variable names.
  1057. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1058. as_fn_error $? "invalid package name: $ac_useropt"
  1059. ac_useropt_orig=$ac_useropt
  1060. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1061. case $ac_user_opts in
  1062. *"
  1063. "with_$ac_useropt"
  1064. "*) ;;
  1065. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1066. ac_unrecognized_sep=', ';;
  1067. esac
  1068. eval with_$ac_useropt=no ;;
  1069. --x)
  1070. # Obsolete; use --with-x.
  1071. with_x=yes ;;
  1072. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1073. | --x-incl | --x-inc | --x-in | --x-i)
  1074. ac_prev=x_includes ;;
  1075. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1076. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1077. x_includes=$ac_optarg ;;
  1078. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1079. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1080. ac_prev=x_libraries ;;
  1081. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1082. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1083. x_libraries=$ac_optarg ;;
  1084. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1085. Try \`$0 --help' for more information"
  1086. ;;
  1087. *=*)
  1088. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1089. # Reject names that are not valid shell variable names.
  1090. case $ac_envvar in #(
  1091. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1092. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1093. esac
  1094. eval $ac_envvar=\$ac_optarg
  1095. export $ac_envvar ;;
  1096. *)
  1097. # FIXME: should be removed in autoconf 3.0.
  1098. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1099. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1100. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1101. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1102. ;;
  1103. esac
  1104. done
  1105. if test -n "$ac_prev"; then
  1106. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1107. as_fn_error $? "missing argument to $ac_option"
  1108. fi
  1109. if test -n "$ac_unrecognized_opts"; then
  1110. case $enable_option_checking in
  1111. no) ;;
  1112. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1113. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1114. esac
  1115. fi
  1116. # Check all directory arguments for consistency.
  1117. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1118. datadir sysconfdir sharedstatedir localstatedir includedir \
  1119. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1120. libdir localedir mandir
  1121. do
  1122. eval ac_val=\$$ac_var
  1123. # Remove trailing slashes.
  1124. case $ac_val in
  1125. */ )
  1126. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1127. eval $ac_var=\$ac_val;;
  1128. esac
  1129. # Be sure to have absolute directory names.
  1130. case $ac_val in
  1131. [\\/$]* | ?:[\\/]* ) continue;;
  1132. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1133. esac
  1134. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1135. done
  1136. # There might be people who depend on the old broken behavior: `$host'
  1137. # used to hold the argument of --host etc.
  1138. # FIXME: To remove some day.
  1139. build=$build_alias
  1140. host=$host_alias
  1141. target=$target_alias
  1142. # FIXME: To remove some day.
  1143. if test "x$host_alias" != x; then
  1144. if test "x$build_alias" = x; then
  1145. cross_compiling=maybe
  1146. elif test "x$build_alias" != "x$host_alias"; then
  1147. cross_compiling=yes
  1148. fi
  1149. fi
  1150. ac_tool_prefix=
  1151. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1152. test "$silent" = yes && exec 6>/dev/null
  1153. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1154. ac_ls_di=`ls -di .` &&
  1155. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1156. as_fn_error $? "working directory cannot be determined"
  1157. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1158. as_fn_error $? "pwd does not report name of working directory"
  1159. # Find the source files, if location was not specified.
  1160. if test -z "$srcdir"; then
  1161. ac_srcdir_defaulted=yes
  1162. # Try the directory containing this script, then the parent directory.
  1163. ac_confdir=`$as_dirname -- "$as_myself" ||
  1164. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1165. X"$as_myself" : 'X\(//\)[^/]' \| \
  1166. X"$as_myself" : 'X\(//\)$' \| \
  1167. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1168. $as_echo X"$as_myself" |
  1169. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1170. s//\1/
  1171. q
  1172. }
  1173. /^X\(\/\/\)[^/].*/{
  1174. s//\1/
  1175. q
  1176. }
  1177. /^X\(\/\/\)$/{
  1178. s//\1/
  1179. q
  1180. }
  1181. /^X\(\/\).*/{
  1182. s//\1/
  1183. q
  1184. }
  1185. s/.*/./; q'`
  1186. srcdir=$ac_confdir
  1187. if test ! -r "$srcdir/$ac_unique_file"; then
  1188. srcdir=..
  1189. fi
  1190. else
  1191. ac_srcdir_defaulted=no
  1192. fi
  1193. if test ! -r "$srcdir/$ac_unique_file"; then
  1194. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1195. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1196. fi
  1197. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1198. ac_abs_confdir=`(
  1199. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1200. pwd)`
  1201. # When building in place, set srcdir=.
  1202. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1203. srcdir=.
  1204. fi
  1205. # Remove unnecessary trailing slashes from srcdir.
  1206. # Double slashes in file names in object file debugging info
  1207. # mess up M-x gdb in Emacs.
  1208. case $srcdir in
  1209. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1210. esac
  1211. for ac_var in $ac_precious_vars; do
  1212. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1213. eval ac_env_${ac_var}_value=\$${ac_var}
  1214. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1215. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1216. done
  1217. #
  1218. # Report the --help message.
  1219. #
  1220. if test "$ac_init_help" = "long"; then
  1221. # Omit some internal or obsolete options to make the list less imposing.
  1222. # This message is too long to be a string in the A/UX 3.1 sh.
  1223. cat <<_ACEOF
  1224. \`configure' configures cudd 3.0.0 to adapt to many kinds of systems.
  1225. Usage: $0 [OPTION]... [VAR=VALUE]...
  1226. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1227. VAR=VALUE. See below for descriptions of some of the useful variables.
  1228. Defaults for the options are specified in brackets.
  1229. Configuration:
  1230. -h, --help display this help and exit
  1231. --help=short display options specific to this package
  1232. --help=recursive display the short help of all the included packages
  1233. -V, --version display version information and exit
  1234. -q, --quiet, --silent do not print \`checking ...' messages
  1235. --cache-file=FILE cache test results in FILE [disabled]
  1236. -C, --config-cache alias for \`--cache-file=config.cache'
  1237. -n, --no-create do not create output files
  1238. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1239. Installation directories:
  1240. --prefix=PREFIX install architecture-independent files in PREFIX
  1241. [$ac_default_prefix]
  1242. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1243. [PREFIX]
  1244. By default, \`make install' will install all the files in
  1245. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1246. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1247. for instance \`--prefix=\$HOME'.
  1248. For better control, use the options below.
  1249. Fine tuning of the installation directories:
  1250. --bindir=DIR user executables [EPREFIX/bin]
  1251. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1252. --libexecdir=DIR program executables [EPREFIX/libexec]
  1253. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1254. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1255. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1256. --libdir=DIR object code libraries [EPREFIX/lib]
  1257. --includedir=DIR C header files [PREFIX/include]
  1258. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1259. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1260. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1261. --infodir=DIR info documentation [DATAROOTDIR/info]
  1262. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1263. --mandir=DIR man documentation [DATAROOTDIR/man]
  1264. --docdir=DIR documentation root [DATAROOTDIR/doc/cudd]
  1265. --htmldir=DIR html documentation [DOCDIR]
  1266. --dvidir=DIR dvi documentation [DOCDIR]
  1267. --pdfdir=DIR pdf documentation [DOCDIR]
  1268. --psdir=DIR ps documentation [DOCDIR]
  1269. _ACEOF
  1270. cat <<\_ACEOF
  1271. Program names:
  1272. --program-prefix=PREFIX prepend PREFIX to installed program names
  1273. --program-suffix=SUFFIX append SUFFIX to installed program names
  1274. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1275. System types:
  1276. --build=BUILD configure for building on BUILD [guessed]
  1277. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1278. _ACEOF
  1279. fi
  1280. if test -n "$ac_init_help"; then
  1281. case $ac_init_help in
  1282. short | recursive ) echo "Configuration of cudd 3.0.0:";;
  1283. esac
  1284. cat <<\_ACEOF
  1285. Optional Features:
  1286. --disable-option-checking ignore unrecognized --enable/--with options
  1287. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1288. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1289. --enable-silent-rules less verbose build output (undo: "make V=1")
  1290. --disable-silent-rules verbose build output (undo: "make V=0")
  1291. --enable-dddmp include libdddmp in libcudd
  1292. --enable-obj include libobj in libcudd
  1293. --enable-dependency-tracking
  1294. do not reject slow dependency extractors
  1295. --disable-dependency-tracking
  1296. speeds up one-time build
  1297. --enable-shared[=PKGS] build shared libraries [default=no]
  1298. --enable-static[=PKGS] build static libraries [default=yes]
  1299. --enable-fast-install[=PKGS]
  1300. optimize for fast installation [default=yes]
  1301. --disable-libtool-lock avoid locking (might break parallel builds)
  1302. Optional Packages:
  1303. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1304. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1305. --with-system-qsort use system qsort instead of portable one
  1306. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1307. both]
  1308. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1309. --with-sysroot=DIR Search for dependent libraries within DIR
  1310. (or the compiler's sysroot if not specified).
  1311. Some influential environment variables:
  1312. CC C compiler command
  1313. CFLAGS C compiler flags
  1314. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1315. nonstandard directory <lib dir>
  1316. LIBS libraries to pass to the linker, e.g. -l<library>
  1317. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1318. you have headers in a nonstandard directory <include dir>
  1319. CXX C++ compiler command
  1320. CXXFLAGS C++ compiler flags
  1321. CPP C preprocessor
  1322. CXXCPP C++ preprocessor
  1323. Use these variables to override the choices made by `configure' or to help
  1324. it to find libraries and programs with nonstandard names/locations.
  1325. Report bugs to <Fabio@Colorado.EDU>.
  1326. _ACEOF
  1327. ac_status=$?
  1328. fi
  1329. if test "$ac_init_help" = "recursive"; then
  1330. # If there are subdirs, report their specific --help.
  1331. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1332. test -d "$ac_dir" ||
  1333. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1334. continue
  1335. ac_builddir=.
  1336. case "$ac_dir" in
  1337. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1338. *)
  1339. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1340. # A ".." for each directory in $ac_dir_suffix.
  1341. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1342. case $ac_top_builddir_sub in
  1343. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1344. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1345. esac ;;
  1346. esac
  1347. ac_abs_top_builddir=$ac_pwd
  1348. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1349. # for backward compatibility:
  1350. ac_top_builddir=$ac_top_build_prefix
  1351. case $srcdir in
  1352. .) # We are building in place.
  1353. ac_srcdir=.
  1354. ac_top_srcdir=$ac_top_builddir_sub
  1355. ac_abs_top_srcdir=$ac_pwd ;;
  1356. [\\/]* | ?:[\\/]* ) # Absolute name.
  1357. ac_srcdir=$srcdir$ac_dir_suffix;
  1358. ac_top_srcdir=$srcdir
  1359. ac_abs_top_srcdir=$srcdir ;;
  1360. *) # Relative name.
  1361. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1362. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1363. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1364. esac
  1365. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1366. cd "$ac_dir" || { ac_status=$?; continue; }
  1367. # Check for guested configure.
  1368. if test -f "$ac_srcdir/configure.gnu"; then
  1369. echo &&
  1370. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1371. elif test -f "$ac_srcdir/configure"; then
  1372. echo &&
  1373. $SHELL "$ac_srcdir/configure" --help=recursive
  1374. else
  1375. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1376. fi || ac_status=$?
  1377. cd "$ac_pwd" || { ac_status=$?; break; }
  1378. done
  1379. fi
  1380. test -n "$ac_init_help" && exit $ac_status
  1381. if $ac_init_version; then
  1382. cat <<\_ACEOF
  1383. cudd configure 3.0.0
  1384. generated by GNU Autoconf 2.69
  1385. Copyright (C) 2012 Free Software Foundation, Inc.
  1386. This configure script is free software; the Free Software Foundation
  1387. gives unlimited permission to copy, distribute and modify it.
  1388. _ACEOF
  1389. exit
  1390. fi
  1391. ## ------------------------ ##
  1392. ## Autoconf initialization. ##
  1393. ## ------------------------ ##
  1394. # ac_fn_c_try_compile LINENO
  1395. # --------------------------
  1396. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1397. ac_fn_c_try_compile ()
  1398. {
  1399. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1400. rm -f conftest.$ac_objext
  1401. if { { ac_try="$ac_compile"
  1402. case "(($ac_try" in
  1403. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1404. *) ac_try_echo=$ac_try;;
  1405. esac
  1406. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1407. $as_echo "$ac_try_echo"; } >&5
  1408. (eval "$ac_compile") 2>conftest.err
  1409. ac_status=$?
  1410. if test -s conftest.err; then
  1411. grep -v '^ *+' conftest.err >conftest.er1
  1412. cat conftest.er1 >&5
  1413. mv -f conftest.er1 conftest.err
  1414. fi
  1415. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1416. test $ac_status = 0; } && {
  1417. test -z "$ac_c_werror_flag" ||
  1418. test ! -s conftest.err
  1419. } && test -s conftest.$ac_objext; then :
  1420. ac_retval=0
  1421. else
  1422. $as_echo "$as_me: failed program was:" >&5
  1423. sed 's/^/| /' conftest.$ac_ext >&5
  1424. ac_retval=1
  1425. fi
  1426. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1427. as_fn_set_status $ac_retval
  1428. } # ac_fn_c_try_compile
  1429. # ac_fn_cxx_try_compile LINENO
  1430. # ----------------------------
  1431. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1432. ac_fn_cxx_try_compile ()
  1433. {
  1434. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1435. rm -f conftest.$ac_objext
  1436. if { { ac_try="$ac_compile"
  1437. case "(($ac_try" in
  1438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1439. *) ac_try_echo=$ac_try;;
  1440. esac
  1441. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1442. $as_echo "$ac_try_echo"; } >&5
  1443. (eval "$ac_compile") 2>conftest.err
  1444. ac_status=$?
  1445. if test -s conftest.err; then
  1446. grep -v '^ *+' conftest.err >conftest.er1
  1447. cat conftest.er1 >&5
  1448. mv -f conftest.er1 conftest.err
  1449. fi
  1450. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1451. test $ac_status = 0; } && {
  1452. test -z "$ac_cxx_werror_flag" ||
  1453. test ! -s conftest.err
  1454. } && test -s conftest.$ac_objext; then :
  1455. ac_retval=0
  1456. else
  1457. $as_echo "$as_me: failed program was:" >&5
  1458. sed 's/^/| /' conftest.$ac_ext >&5
  1459. ac_retval=1
  1460. fi
  1461. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1462. as_fn_set_status $ac_retval
  1463. } # ac_fn_cxx_try_compile
  1464. # ac_fn_c_try_link LINENO
  1465. # -----------------------
  1466. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1467. ac_fn_c_try_link ()
  1468. {
  1469. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1470. rm -f conftest.$ac_objext conftest$ac_exeext
  1471. if { { ac_try="$ac_link"
  1472. case "(($ac_try" in
  1473. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1474. *) ac_try_echo=$ac_try;;
  1475. esac
  1476. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1477. $as_echo "$ac_try_echo"; } >&5
  1478. (eval "$ac_link") 2>conftest.err
  1479. ac_status=$?
  1480. if test -s conftest.err; then
  1481. grep -v '^ *+' conftest.err >conftest.er1
  1482. cat conftest.er1 >&5
  1483. mv -f conftest.er1 conftest.err
  1484. fi
  1485. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1486. test $ac_status = 0; } && {
  1487. test -z "$ac_c_werror_flag" ||
  1488. test ! -s conftest.err
  1489. } && test -s conftest$ac_exeext && {
  1490. test "$cross_compiling" = yes ||
  1491. test -x conftest$ac_exeext
  1492. }; then :
  1493. ac_retval=0
  1494. else
  1495. $as_echo "$as_me: failed program was:" >&5
  1496. sed 's/^/| /' conftest.$ac_ext >&5
  1497. ac_retval=1
  1498. fi
  1499. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1500. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1501. # interfere with the next link command; also delete a directory that is
  1502. # left behind by Apple's compiler. We do this before executing the actions.
  1503. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1504. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1505. as_fn_set_status $ac_retval
  1506. } # ac_fn_c_try_link
  1507. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1508. # -------------------------------------------------------
  1509. # Tests whether HEADER exists and can be compiled using the include files in
  1510. # INCLUDES, setting the cache variable VAR accordingly.
  1511. ac_fn_c_check_header_compile ()
  1512. {
  1513. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1515. $as_echo_n "checking for $2... " >&6; }
  1516. if eval \${$3+:} false; then :
  1517. $as_echo_n "(cached) " >&6
  1518. else
  1519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1520. /* end confdefs.h. */
  1521. $4
  1522. #include <$2>
  1523. _ACEOF
  1524. if ac_fn_c_try_compile "$LINENO"; then :
  1525. eval "$3=yes"
  1526. else
  1527. eval "$3=no"
  1528. fi
  1529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1530. fi
  1531. eval ac_res=\$$3
  1532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1533. $as_echo "$ac_res" >&6; }
  1534. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1535. } # ac_fn_c_check_header_compile
  1536. # ac_fn_c_try_cpp LINENO
  1537. # ----------------------
  1538. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1539. ac_fn_c_try_cpp ()
  1540. {
  1541. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1542. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1543. case "(($ac_try" in
  1544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1545. *) ac_try_echo=$ac_try;;
  1546. esac
  1547. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1548. $as_echo "$ac_try_echo"; } >&5
  1549. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1550. ac_status=$?
  1551. if test -s conftest.err; then
  1552. grep -v '^ *+' conftest.err >conftest.er1
  1553. cat conftest.er1 >&5
  1554. mv -f conftest.er1 conftest.err
  1555. fi
  1556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1557. test $ac_status = 0; } > conftest.i && {
  1558. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1559. test ! -s conftest.err
  1560. }; then :
  1561. ac_retval=0
  1562. else
  1563. $as_echo "$as_me: failed program was:" >&5
  1564. sed 's/^/| /' conftest.$ac_ext >&5
  1565. ac_retval=1
  1566. fi
  1567. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1568. as_fn_set_status $ac_retval
  1569. } # ac_fn_c_try_cpp
  1570. # ac_fn_c_try_run LINENO
  1571. # ----------------------
  1572. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1573. # that executables *can* be run.
  1574. ac_fn_c_try_run ()
  1575. {
  1576. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1577. if { { ac_try="$ac_link"
  1578. case "(($ac_try" in
  1579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1580. *) ac_try_echo=$ac_try;;
  1581. esac
  1582. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1583. $as_echo "$ac_try_echo"; } >&5
  1584. (eval "$ac_link") 2>&5
  1585. ac_status=$?
  1586. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1587. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1588. { { case "(($ac_try" in
  1589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1590. *) ac_try_echo=$ac_try;;
  1591. esac
  1592. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1593. $as_echo "$ac_try_echo"; } >&5
  1594. (eval "$ac_try") 2>&5
  1595. ac_status=$?
  1596. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1597. test $ac_status = 0; }; }; then :
  1598. ac_retval=0
  1599. else
  1600. $as_echo "$as_me: program exited with status $ac_status" >&5
  1601. $as_echo "$as_me: failed program was:" >&5
  1602. sed 's/^/| /' conftest.$ac_ext >&5
  1603. ac_retval=$ac_status
  1604. fi
  1605. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1606. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1607. as_fn_set_status $ac_retval
  1608. } # ac_fn_c_try_run
  1609. # ac_fn_c_check_func LINENO FUNC VAR
  1610. # ----------------------------------
  1611. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1612. ac_fn_c_check_func ()
  1613. {
  1614. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1616. $as_echo_n "checking for $2... " >&6; }
  1617. if eval \${$3+:} false; then :
  1618. $as_echo_n "(cached) " >&6
  1619. else
  1620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1621. /* end confdefs.h. */
  1622. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1623. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1624. #define $2 innocuous_$2
  1625. /* System header to define __stub macros and hopefully few prototypes,
  1626. which can conflict with char $2 (); below.
  1627. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1628. <limits.h> exists even on freestanding compilers. */
  1629. #ifdef __STDC__
  1630. # include <limits.h>
  1631. #else
  1632. # include <assert.h>
  1633. #endif
  1634. #undef $2
  1635. /* Override any GCC internal prototype to avoid an error.
  1636. Use char because int might match the return type of a GCC
  1637. builtin and then its argument prototype would still apply. */
  1638. #ifdef __cplusplus
  1639. extern "C"
  1640. #endif
  1641. char $2 ();
  1642. /* The GNU C library defines this for functions which it implements
  1643. to always fail with ENOSYS. Some functions are actually named
  1644. something starting with __ and the normal name is an alias. */
  1645. #if defined __stub_$2 || defined __stub___$2
  1646. choke me
  1647. #endif
  1648. int
  1649. main ()
  1650. {
  1651. return $2 ();
  1652. ;
  1653. return 0;
  1654. }
  1655. _ACEOF
  1656. if ac_fn_c_try_link "$LINENO"; then :
  1657. eval "$3=yes"
  1658. else
  1659. eval "$3=no"
  1660. fi
  1661. rm -f core conftest.err conftest.$ac_objext \
  1662. conftest$ac_exeext conftest.$ac_ext
  1663. fi
  1664. eval ac_res=\$$3
  1665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1666. $as_echo "$ac_res" >&6; }
  1667. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1668. } # ac_fn_c_check_func
  1669. # ac_fn_cxx_try_cpp LINENO
  1670. # ------------------------
  1671. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1672. ac_fn_cxx_try_cpp ()
  1673. {
  1674. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1675. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1676. case "(($ac_try" in
  1677. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1678. *) ac_try_echo=$ac_try;;
  1679. esac
  1680. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1681. $as_echo "$ac_try_echo"; } >&5
  1682. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1683. ac_status=$?
  1684. if test -s conftest.err; then
  1685. grep -v '^ *+' conftest.err >conftest.er1
  1686. cat conftest.er1 >&5
  1687. mv -f conftest.er1 conftest.err
  1688. fi
  1689. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1690. test $ac_status = 0; } > conftest.i && {
  1691. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1692. test ! -s conftest.err
  1693. }; then :
  1694. ac_retval=0
  1695. else
  1696. $as_echo "$as_me: failed program was:" >&5
  1697. sed 's/^/| /' conftest.$ac_ext >&5
  1698. ac_retval=1
  1699. fi
  1700. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1701. as_fn_set_status $ac_retval
  1702. } # ac_fn_cxx_try_cpp
  1703. # ac_fn_cxx_try_link LINENO
  1704. # -------------------------
  1705. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1706. ac_fn_cxx_try_link ()
  1707. {
  1708. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1709. rm -f conftest.$ac_objext conftest$ac_exeext
  1710. if { { ac_try="$ac_link"
  1711. case "(($ac_try" in
  1712. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1713. *) ac_try_echo=$ac_try;;
  1714. esac
  1715. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1716. $as_echo "$ac_try_echo"; } >&5
  1717. (eval "$ac_link") 2>conftest.err
  1718. ac_status=$?
  1719. if test -s conftest.err; then
  1720. grep -v '^ *+' conftest.err >conftest.er1
  1721. cat conftest.er1 >&5
  1722. mv -f conftest.er1 conftest.err
  1723. fi
  1724. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1725. test $ac_status = 0; } && {
  1726. test -z "$ac_cxx_werror_flag" ||
  1727. test ! -s conftest.err
  1728. } && test -s conftest$ac_exeext && {
  1729. test "$cross_compiling" = yes ||
  1730. test -x conftest$ac_exeext
  1731. }; then :
  1732. ac_retval=0
  1733. else
  1734. $as_echo "$as_me: failed program was:" >&5
  1735. sed 's/^/| /' conftest.$ac_ext >&5
  1736. ac_retval=1
  1737. fi
  1738. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1739. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1740. # interfere with the next link command; also delete a directory that is
  1741. # left behind by Apple's compiler. We do this before executing the actions.
  1742. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1743. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1744. as_fn_set_status $ac_retval
  1745. } # ac_fn_cxx_try_link
  1746. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1747. # -------------------------------------------------------
  1748. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1749. # the include files in INCLUDES and setting the cache variable VAR
  1750. # accordingly.
  1751. ac_fn_c_check_header_mongrel ()
  1752. {
  1753. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1754. if eval \${$3+:} false; then :
  1755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1756. $as_echo_n "checking for $2... " >&6; }
  1757. if eval \${$3+:} false; then :
  1758. $as_echo_n "(cached) " >&6
  1759. fi
  1760. eval ac_res=\$$3
  1761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1762. $as_echo "$ac_res" >&6; }
  1763. else
  1764. # Is the header compilable?
  1765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1766. $as_echo_n "checking $2 usability... " >&6; }
  1767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1768. /* end confdefs.h. */
  1769. $4
  1770. #include <$2>
  1771. _ACEOF
  1772. if ac_fn_c_try_compile "$LINENO"; then :
  1773. ac_header_compiler=yes
  1774. else
  1775. ac_header_compiler=no
  1776. fi
  1777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1779. $as_echo "$ac_header_compiler" >&6; }
  1780. # Is the header present?
  1781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1782. $as_echo_n "checking $2 presence... " >&6; }
  1783. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1784. /* end confdefs.h. */
  1785. #include <$2>
  1786. _ACEOF
  1787. if ac_fn_c_try_cpp "$LINENO"; then :
  1788. ac_header_preproc=yes
  1789. else
  1790. ac_header_preproc=no
  1791. fi
  1792. rm -f conftest.err conftest.i conftest.$ac_ext
  1793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1794. $as_echo "$ac_header_preproc" >&6; }
  1795. # So? What about this header?
  1796. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1797. yes:no: )
  1798. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1799. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1800. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1801. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1802. ;;
  1803. no:yes:* )
  1804. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1805. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1806. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1807. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1808. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1809. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1810. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1811. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1812. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1813. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1814. ( $as_echo "## --------------------------------- ##
  1815. ## Report this to Fabio@Colorado.EDU ##
  1816. ## --------------------------------- ##"
  1817. ) | sed "s/^/$as_me: WARNING: /" >&2
  1818. ;;
  1819. esac
  1820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1821. $as_echo_n "checking for $2... " >&6; }
  1822. if eval \${$3+:} false; then :
  1823. $as_echo_n "(cached) " >&6
  1824. else
  1825. eval "$3=\$ac_header_compiler"
  1826. fi
  1827. eval ac_res=\$$3
  1828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1829. $as_echo "$ac_res" >&6; }
  1830. fi
  1831. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1832. } # ac_fn_c_check_header_mongrel
  1833. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1834. # -------------------------------------------
  1835. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1836. # variable VAR accordingly.
  1837. ac_fn_c_check_type ()
  1838. {
  1839. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1841. $as_echo_n "checking for $2... " >&6; }
  1842. if eval \${$3+:} false; then :
  1843. $as_echo_n "(cached) " >&6
  1844. else
  1845. eval "$3=no"
  1846. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1847. /* end confdefs.h. */
  1848. $4
  1849. int
  1850. main ()
  1851. {
  1852. if (sizeof ($2))
  1853. return 0;
  1854. ;
  1855. return 0;
  1856. }
  1857. _ACEOF
  1858. if ac_fn_c_try_compile "$LINENO"; then :
  1859. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1860. /* end confdefs.h. */
  1861. $4
  1862. int
  1863. main ()
  1864. {
  1865. if (sizeof (($2)))
  1866. return 0;
  1867. ;
  1868. return 0;
  1869. }
  1870. _ACEOF
  1871. if ac_fn_c_try_compile "$LINENO"; then :
  1872. else
  1873. eval "$3=yes"
  1874. fi
  1875. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1876. fi
  1877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1878. fi
  1879. eval ac_res=\$$3
  1880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1881. $as_echo "$ac_res" >&6; }
  1882. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1883. } # ac_fn_c_check_type
  1884. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1885. # ------------------------------------
  1886. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1887. # accordingly.
  1888. ac_fn_c_find_uintX_t ()
  1889. {
  1890. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1892. $as_echo_n "checking for uint$2_t... " >&6; }
  1893. if eval \${$3+:} false; then :
  1894. $as_echo_n "(cached) " >&6
  1895. else
  1896. eval "$3=no"
  1897. # Order is important - never check a type that is potentially smaller
  1898. # than half of the expected target width.
  1899. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1900. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1902. /* end confdefs.h. */
  1903. $ac_includes_default
  1904. int
  1905. main ()
  1906. {
  1907. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1908. test_array [0] = 0;
  1909. return test_array [0];
  1910. ;
  1911. return 0;
  1912. }
  1913. _ACEOF
  1914. if ac_fn_c_try_compile "$LINENO"; then :
  1915. case $ac_type in #(
  1916. uint$2_t) :
  1917. eval "$3=yes" ;; #(
  1918. *) :
  1919. eval "$3=\$ac_type" ;;
  1920. esac
  1921. fi
  1922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1923. if eval test \"x\$"$3"\" = x"no"; then :
  1924. else
  1925. break
  1926. fi
  1927. done
  1928. fi
  1929. eval ac_res=\$$3
  1930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1931. $as_echo "$ac_res" >&6; }
  1932. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1933. } # ac_fn_c_find_uintX_t
  1934. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1935. # --------------------------------------------
  1936. # Tries to find the compile-time value of EXPR in a program that includes
  1937. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1938. # computed
  1939. ac_fn_c_compute_int ()
  1940. {
  1941. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1942. if test "$cross_compiling" = yes; then
  1943. # Depending upon the size, compute the lo and hi bounds.
  1944. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1945. /* end confdefs.h. */
  1946. $4
  1947. int
  1948. main ()
  1949. {
  1950. static int test_array [1 - 2 * !(($2) >= 0)];
  1951. test_array [0] = 0;
  1952. return test_array [0];
  1953. ;
  1954. return 0;
  1955. }
  1956. _ACEOF
  1957. if ac_fn_c_try_compile "$LINENO"; then :
  1958. ac_lo=0 ac_mid=0
  1959. while :; do
  1960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1961. /* end confdefs.h. */
  1962. $4
  1963. int
  1964. main ()
  1965. {
  1966. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1967. test_array [0] = 0;
  1968. return test_array [0];
  1969. ;
  1970. return 0;
  1971. }
  1972. _ACEOF
  1973. if ac_fn_c_try_compile "$LINENO"; then :
  1974. ac_hi=$ac_mid; break
  1975. else
  1976. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1977. if test $ac_lo -le $ac_mid; then
  1978. ac_lo= ac_hi=
  1979. break
  1980. fi
  1981. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1982. fi
  1983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1984. done
  1985. else
  1986. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1987. /* end confdefs.h. */
  1988. $4
  1989. int
  1990. main ()
  1991. {
  1992. static int test_array [1 - 2 * !(($2) < 0)];
  1993. test_array [0] = 0;
  1994. return test_array [0];
  1995. ;
  1996. return 0;
  1997. }
  1998. _ACEOF
  1999. if ac_fn_c_try_compile "$LINENO"; then :
  2000. ac_hi=-1 ac_mid=-1
  2001. while :; do
  2002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2003. /* end confdefs.h. */
  2004. $4
  2005. int
  2006. main ()
  2007. {
  2008. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2009. test_array [0] = 0;
  2010. return test_array [0];
  2011. ;
  2012. return 0;
  2013. }
  2014. _ACEOF
  2015. if ac_fn_c_try_compile "$LINENO"; then :
  2016. ac_lo=$ac_mid; break
  2017. else
  2018. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2019. if test $ac_mid -le $ac_hi; then
  2020. ac_lo= ac_hi=
  2021. break
  2022. fi
  2023. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2024. fi
  2025. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2026. done
  2027. else
  2028. ac_lo= ac_hi=
  2029. fi
  2030. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2031. fi
  2032. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2033. # Binary search between lo and hi bounds.
  2034. while test "x$ac_lo" != "x$ac_hi"; do
  2035. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2037. /* end confdefs.h. */
  2038. $4
  2039. int
  2040. main ()
  2041. {
  2042. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2043. test_array [0] = 0;
  2044. return test_array [0];
  2045. ;
  2046. return 0;
  2047. }
  2048. _ACEOF
  2049. if ac_fn_c_try_compile "$LINENO"; then :
  2050. ac_hi=$ac_mid
  2051. else
  2052. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2053. fi
  2054. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2055. done
  2056. case $ac_lo in #((
  2057. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2058. '') ac_retval=1 ;;
  2059. esac
  2060. else
  2061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2062. /* end confdefs.h. */
  2063. $4
  2064. static long int longval () { return $2; }
  2065. static unsigned long int ulongval () { return $2; }
  2066. #include <stdio.h>
  2067. #include <stdlib.h>
  2068. int
  2069. main ()
  2070. {
  2071. FILE *f = fopen ("conftest.val", "w");
  2072. if (! f)
  2073. return 1;
  2074. if (($2) < 0)
  2075. {
  2076. long int i = longval ();
  2077. if (i != ($2))
  2078. return 1;
  2079. fprintf (f, "%ld", i);
  2080. }
  2081. else
  2082. {
  2083. unsigned long int i = ulongval ();
  2084. if (i != ($2))
  2085. return 1;
  2086. fprintf (f, "%lu", i);
  2087. }
  2088. /* Do not output a trailing newline, as this causes \r\n confusion
  2089. on some platforms. */
  2090. return ferror (f) || fclose (f) != 0;
  2091. ;
  2092. return 0;
  2093. }
  2094. _ACEOF
  2095. if ac_fn_c_try_run "$LINENO"; then :
  2096. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2097. else
  2098. ac_retval=1
  2099. fi
  2100. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2101. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2102. rm -f conftest.val
  2103. fi
  2104. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2105. as_fn_set_status $ac_retval
  2106. } # ac_fn_c_compute_int
  2107. cat >config.log <<_ACEOF
  2108. This file contains any messages produced by compilers while
  2109. running configure, to aid debugging if configure makes a mistake.
  2110. It was created by cudd $as_me 3.0.0, which was
  2111. generated by GNU Autoconf 2.69. Invocation command line was
  2112. $ $0 $@
  2113. _ACEOF
  2114. exec 5>>config.log
  2115. {
  2116. cat <<_ASUNAME
  2117. ## --------- ##
  2118. ## Platform. ##
  2119. ## --------- ##
  2120. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2121. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2122. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2123. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2124. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2125. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2126. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2127. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2128. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2129. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2130. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2131. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2132. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2133. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2134. _ASUNAME
  2135. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2136. for as_dir in $PATH
  2137. do
  2138. IFS=$as_save_IFS
  2139. test -z "$as_dir" && as_dir=.
  2140. $as_echo "PATH: $as_dir"
  2141. done
  2142. IFS=$as_save_IFS
  2143. } >&5
  2144. cat >&5 <<_ACEOF
  2145. ## ----------- ##
  2146. ## Core tests. ##
  2147. ## ----------- ##
  2148. _ACEOF
  2149. # Keep a trace of the command line.
  2150. # Strip out --no-create and --no-recursion so they do not pile up.
  2151. # Strip out --silent because we don't want to record it for future runs.
  2152. # Also quote any args containing shell meta-characters.
  2153. # Make two passes to allow for proper duplicate-argument suppression.
  2154. ac_configure_args=
  2155. ac_configure_args0=
  2156. ac_configure_args1=
  2157. ac_must_keep_next=false
  2158. for ac_pass in 1 2
  2159. do
  2160. for ac_arg
  2161. do
  2162. case $ac_arg in
  2163. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2164. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2165. | -silent | --silent | --silen | --sile | --sil)
  2166. continue ;;
  2167. *\'*)
  2168. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2169. esac
  2170. case $ac_pass in
  2171. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2172. 2)
  2173. as_fn_append ac_configure_args1 " '$ac_arg'"
  2174. if test $ac_must_keep_next = true; then
  2175. ac_must_keep_next=false # Got value, back to normal.
  2176. else
  2177. case $ac_arg in
  2178. *=* | --config-cache | -C | -disable-* | --disable-* \
  2179. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2180. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2181. | -with-* | --with-* | -without-* | --without-* | --x)
  2182. case "$ac_configure_args0 " in
  2183. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2184. esac
  2185. ;;
  2186. -* ) ac_must_keep_next=true ;;
  2187. esac
  2188. fi
  2189. as_fn_append ac_configure_args " '$ac_arg'"
  2190. ;;
  2191. esac
  2192. done
  2193. done
  2194. { ac_configure_args0=; unset ac_configure_args0;}
  2195. { ac_configure_args1=; unset ac_configure_args1;}
  2196. # When interrupted or exit'd, cleanup temporary files, and complete
  2197. # config.log. We remove comments because anyway the quotes in there
  2198. # would cause problems or look ugly.
  2199. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2200. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2201. trap 'exit_status=$?
  2202. # Save into config.log some information that might help in debugging.
  2203. {
  2204. echo
  2205. $as_echo "## ---------------- ##
  2206. ## Cache variables. ##
  2207. ## ---------------- ##"
  2208. echo
  2209. # The following way of writing the cache mishandles newlines in values,
  2210. (
  2211. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2212. eval ac_val=\$$ac_var
  2213. case $ac_val in #(
  2214. *${as_nl}*)
  2215. case $ac_var in #(
  2216. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2217. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2218. esac
  2219. case $ac_var in #(
  2220. _ | IFS | as_nl) ;; #(
  2221. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2222. *) { eval $ac_var=; unset $ac_var;} ;;
  2223. esac ;;
  2224. esac
  2225. done
  2226. (set) 2>&1 |
  2227. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2228. *${as_nl}ac_space=\ *)
  2229. sed -n \
  2230. "s/'\''/'\''\\\\'\'''\''/g;
  2231. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2232. ;; #(
  2233. *)
  2234. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2235. ;;
  2236. esac |
  2237. sort
  2238. )
  2239. echo
  2240. $as_echo "## ----------------- ##
  2241. ## Output variables. ##
  2242. ## ----------------- ##"
  2243. echo
  2244. for ac_var in $ac_subst_vars
  2245. do
  2246. eval ac_val=\$$ac_var
  2247. case $ac_val in
  2248. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2249. esac
  2250. $as_echo "$ac_var='\''$ac_val'\''"
  2251. done | sort
  2252. echo
  2253. if test -n "$ac_subst_files"; then
  2254. $as_echo "## ------------------- ##
  2255. ## File substitutions. ##
  2256. ## ------------------- ##"
  2257. echo
  2258. for ac_var in $ac_subst_files
  2259. do
  2260. eval ac_val=\$$ac_var
  2261. case $ac_val in
  2262. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2263. esac
  2264. $as_echo "$ac_var='\''$ac_val'\''"
  2265. done | sort
  2266. echo
  2267. fi
  2268. if test -s confdefs.h; then
  2269. $as_echo "## ----------- ##
  2270. ## confdefs.h. ##
  2271. ## ----------- ##"
  2272. echo
  2273. cat confdefs.h
  2274. echo
  2275. fi
  2276. test "$ac_signal" != 0 &&
  2277. $as_echo "$as_me: caught signal $ac_signal"
  2278. $as_echo "$as_me: exit $exit_status"
  2279. } >&5
  2280. rm -f core *.core core.conftest.* &&
  2281. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2282. exit $exit_status
  2283. ' 0
  2284. for ac_signal in 1 2 13 15; do
  2285. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2286. done
  2287. ac_signal=0
  2288. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2289. rm -f -r conftest* confdefs.h
  2290. $as_echo "/* confdefs.h */" > confdefs.h
  2291. # Predefined preprocessor variables.
  2292. cat >>confdefs.h <<_ACEOF
  2293. #define PACKAGE_NAME "$PACKAGE_NAME"
  2294. _ACEOF
  2295. cat >>confdefs.h <<_ACEOF
  2296. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2297. _ACEOF
  2298. cat >>confdefs.h <<_ACEOF
  2299. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2300. _ACEOF
  2301. cat >>confdefs.h <<_ACEOF
  2302. #define PACKAGE_STRING "$PACKAGE_STRING"
  2303. _ACEOF
  2304. cat >>confdefs.h <<_ACEOF
  2305. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2306. _ACEOF
  2307. cat >>confdefs.h <<_ACEOF
  2308. #define PACKAGE_URL "$PACKAGE_URL"
  2309. _ACEOF
  2310. # Let the site file select an alternate cache file if it wants to.
  2311. # Prefer an explicitly selected file to automatically selected ones.
  2312. ac_site_file1=NONE
  2313. ac_site_file2=NONE
  2314. if test -n "$CONFIG_SITE"; then
  2315. # We do not want a PATH search for config.site.
  2316. case $CONFIG_SITE in #((
  2317. -*) ac_site_file1=./$CONFIG_SITE;;
  2318. */*) ac_site_file1=$CONFIG_SITE;;
  2319. *) ac_site_file1=./$CONFIG_SITE;;
  2320. esac
  2321. elif test "x$prefix" != xNONE; then
  2322. ac_site_file1=$prefix/share/config.site
  2323. ac_site_file2=$prefix/etc/config.site
  2324. else
  2325. ac_site_file1=$ac_default_prefix/share/config.site
  2326. ac_site_file2=$ac_default_prefix/etc/config.site
  2327. fi
  2328. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2329. do
  2330. test "x$ac_site_file" = xNONE && continue
  2331. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2332. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2333. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2334. sed 's/^/| /' "$ac_site_file" >&5
  2335. . "$ac_site_file" \
  2336. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2337. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2338. as_fn_error $? "failed to load site script $ac_site_file
  2339. See \`config.log' for more details" "$LINENO" 5; }
  2340. fi
  2341. done
  2342. if test -r "$cache_file"; then
  2343. # Some versions of bash will fail to source /dev/null (special files
  2344. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2345. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2346. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2347. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2348. case $cache_file in
  2349. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2350. *) . "./$cache_file";;
  2351. esac
  2352. fi
  2353. else
  2354. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2355. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2356. >$cache_file
  2357. fi
  2358. # Check that the precious variables saved in the cache have kept the same
  2359. # value.
  2360. ac_cache_corrupted=false
  2361. for ac_var in $ac_precious_vars; do
  2362. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2363. eval ac_new_set=\$ac_env_${ac_var}_set
  2364. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2365. eval ac_new_val=\$ac_env_${ac_var}_value
  2366. case $ac_old_set,$ac_new_set in
  2367. set,)
  2368. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2369. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2370. ac_cache_corrupted=: ;;
  2371. ,set)
  2372. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2373. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2374. ac_cache_corrupted=: ;;
  2375. ,);;
  2376. *)
  2377. if test "x$ac_old_val" != "x$ac_new_val"; then
  2378. # differences in whitespace do not lead to failure.
  2379. ac_old_val_w=`echo x $ac_old_val`
  2380. ac_new_val_w=`echo x $ac_new_val`
  2381. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2382. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2383. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2384. ac_cache_corrupted=:
  2385. else
  2386. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2387. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2388. eval $ac_var=\$ac_old_val
  2389. fi
  2390. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2391. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2392. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2393. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2394. fi;;
  2395. esac
  2396. # Pass precious variables to config.status.
  2397. if test "$ac_new_set" = set; then
  2398. case $ac_new_val in
  2399. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2400. *) ac_arg=$ac_var=$ac_new_val ;;
  2401. esac
  2402. case " $ac_configure_args " in
  2403. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2404. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2405. esac
  2406. fi
  2407. done
  2408. if $ac_cache_corrupted; then
  2409. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2410. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2411. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2412. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2413. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2414. fi
  2415. ## -------------------- ##
  2416. ## Main body of script. ##
  2417. ## -------------------- ##
  2418. ac_ext=c
  2419. ac_cpp='$CPP $CPPFLAGS'
  2420. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2421. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2422. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2423. ac_aux_dir=
  2424. for ac_dir in build-aux "$srcdir"/build-aux; do
  2425. if test -f "$ac_dir/install-sh"; then
  2426. ac_aux_dir=$ac_dir
  2427. ac_install_sh="$ac_aux_dir/install-sh -c"
  2428. break
  2429. elif test -f "$ac_dir/install.sh"; then
  2430. ac_aux_dir=$ac_dir
  2431. ac_install_sh="$ac_aux_dir/install.sh -c"
  2432. break
  2433. elif test -f "$ac_dir/shtool"; then
  2434. ac_aux_dir=$ac_dir
  2435. ac_install_sh="$ac_aux_dir/shtool install -c"
  2436. break
  2437. fi
  2438. done
  2439. if test -z "$ac_aux_dir"; then
  2440. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
  2441. fi
  2442. # These three variables are undocumented and unsupported,
  2443. # and are intended to be withdrawn in a future Autoconf release.
  2444. # They can cause serious problems if a builder's source tree is in a directory
  2445. # whose full name contains unusual characters.
  2446. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2447. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2448. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2449. # Make sure we can run config.sub.
  2450. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2451. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2453. $as_echo_n "checking build system type... " >&6; }
  2454. if ${ac_cv_build+:} false; then :
  2455. $as_echo_n "(cached) " >&6
  2456. else
  2457. ac_build_alias=$build_alias
  2458. test "x$ac_build_alias" = x &&
  2459. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2460. test "x$ac_build_alias" = x &&
  2461. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2462. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2463. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2464. fi
  2465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2466. $as_echo "$ac_cv_build" >&6; }
  2467. case $ac_cv_build in
  2468. *-*-*) ;;
  2469. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2470. esac
  2471. build=$ac_cv_build
  2472. ac_save_IFS=$IFS; IFS='-'
  2473. set x $ac_cv_build
  2474. shift
  2475. build_cpu=$1
  2476. build_vendor=$2
  2477. shift; shift
  2478. # Remember, the first character of IFS is used to create $*,
  2479. # except with old shells:
  2480. build_os=$*
  2481. IFS=$ac_save_IFS
  2482. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2483. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2484. $as_echo_n "checking host system type... " >&6; }
  2485. if ${ac_cv_host+:} false; then :
  2486. $as_echo_n "(cached) " >&6
  2487. else
  2488. if test "x$host_alias" = x; then
  2489. ac_cv_host=$ac_cv_build
  2490. else
  2491. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2492. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2493. fi
  2494. fi
  2495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2496. $as_echo "$ac_cv_host" >&6; }
  2497. case $ac_cv_host in
  2498. *-*-*) ;;
  2499. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2500. esac
  2501. host=$ac_cv_host
  2502. ac_save_IFS=$IFS; IFS='-'
  2503. set x $ac_cv_host
  2504. shift
  2505. host_cpu=$1
  2506. host_vendor=$2
  2507. shift; shift
  2508. # Remember, the first character of IFS is used to create $*,
  2509. # except with old shells:
  2510. host_os=$*
  2511. IFS=$ac_save_IFS
  2512. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2513. am__api_version='1.15'
  2514. # Find a good install program. We prefer a C program (faster),
  2515. # so one script is as good as another. But avoid the broken or
  2516. # incompatible versions:
  2517. # SysV /etc/install, /usr/sbin/install
  2518. # SunOS /usr/etc/install
  2519. # IRIX /sbin/install
  2520. # AIX /bin/install
  2521. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2522. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2523. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2524. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2525. # OS/2's system install, which has a completely different semantic
  2526. # ./install, which can be erroneously created by make from ./install.sh.
  2527. # Reject install programs that cannot install multiple files.
  2528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2529. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2530. if test -z "$INSTALL"; then
  2531. if ${ac_cv_path_install+:} false; then :
  2532. $as_echo_n "(cached) " >&6
  2533. else
  2534. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2535. for as_dir in $PATH
  2536. do
  2537. IFS=$as_save_IFS
  2538. test -z "$as_dir" && as_dir=.
  2539. # Account for people who put trailing slashes in PATH elements.
  2540. case $as_dir/ in #((
  2541. ./ | .// | /[cC]/* | \
  2542. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2543. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2544. /usr/ucb/* ) ;;
  2545. *)
  2546. # OSF1 and SCO ODT 3.0 have their own names for install.
  2547. # Don't use installbsd from OSF since it installs stuff as root
  2548. # by default.
  2549. for ac_prog in ginstall scoinst install; do
  2550. for ac_exec_ext in '' $ac_executable_extensions; do
  2551. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2552. if test $ac_prog = install &&
  2553. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2554. # AIX install. It has an incompatible calling convention.
  2555. :
  2556. elif test $ac_prog = install &&
  2557. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2558. # program-specific install script used by HP pwplus--don't use.
  2559. :
  2560. else
  2561. rm -rf conftest.one conftest.two conftest.dir
  2562. echo one > conftest.one
  2563. echo two > conftest.two
  2564. mkdir conftest.dir
  2565. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2566. test -s conftest.one && test -s conftest.two &&
  2567. test -s conftest.dir/conftest.one &&
  2568. test -s conftest.dir/conftest.two
  2569. then
  2570. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2571. break 3
  2572. fi
  2573. fi
  2574. fi
  2575. done
  2576. done
  2577. ;;
  2578. esac
  2579. done
  2580. IFS=$as_save_IFS
  2581. rm -rf conftest.one conftest.two conftest.dir
  2582. fi
  2583. if test "${ac_cv_path_install+set}" = set; then
  2584. INSTALL=$ac_cv_path_install
  2585. else
  2586. # As a last resort, use the slow shell script. Don't cache a
  2587. # value for INSTALL within a source directory, because that will
  2588. # break other packages using the cache if that directory is
  2589. # removed, or if the value is a relative name.
  2590. INSTALL=$ac_install_sh
  2591. fi
  2592. fi
  2593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2594. $as_echo "$INSTALL" >&6; }
  2595. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2596. # It thinks the first close brace ends the variable substitution.
  2597. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2598. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2599. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2601. $as_echo_n "checking whether build environment is sane... " >&6; }
  2602. # Reject unsafe characters in $srcdir or the absolute working directory
  2603. # name. Accept space and tab only in the latter.
  2604. am_lf='
  2605. '
  2606. case `pwd` in
  2607. *[\\\"\#\$\&\'\`$am_lf]*)
  2608. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2609. esac
  2610. case $srcdir in
  2611. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2612. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2613. esac
  2614. # Do 'set' in a subshell so we don't clobber the current shell's
  2615. # arguments. Must try -L first in case configure is actually a
  2616. # symlink; some systems play weird games with the mod time of symlinks
  2617. # (eg FreeBSD returns the mod time of the symlink's containing
  2618. # directory).
  2619. if (
  2620. am_has_slept=no
  2621. for am_try in 1 2; do
  2622. echo "timestamp, slept: $am_has_slept" > conftest.file
  2623. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2624. if test "$*" = "X"; then
  2625. # -L didn't work.
  2626. set X `ls -t "$srcdir/configure" conftest.file`
  2627. fi
  2628. if test "$*" != "X $srcdir/configure conftest.file" \
  2629. && test "$*" != "X conftest.file $srcdir/configure"; then
  2630. # If neither matched, then we have a broken ls. This can happen
  2631. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2632. # broken ls alias from the environment. This has actually
  2633. # happened. Such a system could not be considered "sane".
  2634. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2635. alias in your environment" "$LINENO" 5
  2636. fi
  2637. if test "$2" = conftest.file || test $am_try -eq 2; then
  2638. break
  2639. fi
  2640. # Just in case.
  2641. sleep 1
  2642. am_has_slept=yes
  2643. done
  2644. test "$2" = conftest.file
  2645. )
  2646. then
  2647. # Ok.
  2648. :
  2649. else
  2650. as_fn_error $? "newly created file is older than distributed files!
  2651. Check your system clock" "$LINENO" 5
  2652. fi
  2653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2654. $as_echo "yes" >&6; }
  2655. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2656. # generated files are strictly newer.
  2657. am_sleep_pid=
  2658. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2659. ( sleep 1 ) &
  2660. am_sleep_pid=$!
  2661. fi
  2662. rm -f conftest.file
  2663. test "$program_prefix" != NONE &&
  2664. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2665. # Use a double $ so make ignores it.
  2666. test "$program_suffix" != NONE &&
  2667. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2668. # Double any \ or $.
  2669. # By default was `s,x,x', remove it if useless.
  2670. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2671. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2672. # Expand $ac_aux_dir to an absolute path.
  2673. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2674. if test x"${MISSING+set}" != xset; then
  2675. case $am_aux_dir in
  2676. *\ * | *\ *)
  2677. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2678. *)
  2679. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2680. esac
  2681. fi
  2682. # Use eval to expand $SHELL
  2683. if eval "$MISSING --is-lightweight"; then
  2684. am_missing_run="$MISSING "
  2685. else
  2686. am_missing_run=
  2687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2688. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2689. fi
  2690. if test x"${install_sh+set}" != xset; then
  2691. case $am_aux_dir in
  2692. *\ * | *\ *)
  2693. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2694. *)
  2695. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2696. esac
  2697. fi
  2698. # Installed binaries are usually stripped using 'strip' when the user
  2699. # run "make install-strip". However 'strip' might not be the right
  2700. # tool to use in cross-compilation environments, therefore Automake
  2701. # will honor the 'STRIP' environment variable to overrule this program.
  2702. if test "$cross_compiling" != no; then
  2703. if test -n "$ac_tool_prefix"; then
  2704. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2705. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2707. $as_echo_n "checking for $ac_word... " >&6; }
  2708. if ${ac_cv_prog_STRIP+:} false; then :
  2709. $as_echo_n "(cached) " >&6
  2710. else
  2711. if test -n "$STRIP"; then
  2712. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2713. else
  2714. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2715. for as_dir in $PATH
  2716. do
  2717. IFS=$as_save_IFS
  2718. test -z "$as_dir" && as_dir=.
  2719. for ac_exec_ext in '' $ac_executable_extensions; do
  2720. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2721. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2722. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2723. break 2
  2724. fi
  2725. done
  2726. done
  2727. IFS=$as_save_IFS
  2728. fi
  2729. fi
  2730. STRIP=$ac_cv_prog_STRIP
  2731. if test -n "$STRIP"; then
  2732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2733. $as_echo "$STRIP" >&6; }
  2734. else
  2735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2736. $as_echo "no" >&6; }
  2737. fi
  2738. fi
  2739. if test -z "$ac_cv_prog_STRIP"; then
  2740. ac_ct_STRIP=$STRIP
  2741. # Extract the first word of "strip", so it can be a program name with args.
  2742. set dummy strip; ac_word=$2
  2743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2744. $as_echo_n "checking for $ac_word... " >&6; }
  2745. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2746. $as_echo_n "(cached) " >&6
  2747. else
  2748. if test -n "$ac_ct_STRIP"; then
  2749. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2750. else
  2751. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2752. for as_dir in $PATH
  2753. do
  2754. IFS=$as_save_IFS
  2755. test -z "$as_dir" && as_dir=.
  2756. for ac_exec_ext in '' $ac_executable_extensions; do
  2757. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2758. ac_cv_prog_ac_ct_STRIP="strip"
  2759. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2760. break 2
  2761. fi
  2762. done
  2763. done
  2764. IFS=$as_save_IFS
  2765. fi
  2766. fi
  2767. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2768. if test -n "$ac_ct_STRIP"; then
  2769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2770. $as_echo "$ac_ct_STRIP" >&6; }
  2771. else
  2772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2773. $as_echo "no" >&6; }
  2774. fi
  2775. if test "x$ac_ct_STRIP" = x; then
  2776. STRIP=":"
  2777. else
  2778. case $cross_compiling:$ac_tool_warned in
  2779. yes:)
  2780. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2781. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2782. ac_tool_warned=yes ;;
  2783. esac
  2784. STRIP=$ac_ct_STRIP
  2785. fi
  2786. else
  2787. STRIP="$ac_cv_prog_STRIP"
  2788. fi
  2789. fi
  2790. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2791. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2792. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2793. if test -z "$MKDIR_P"; then
  2794. if ${ac_cv_path_mkdir+:} false; then :
  2795. $as_echo_n "(cached) " >&6
  2796. else
  2797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2798. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2799. do
  2800. IFS=$as_save_IFS
  2801. test -z "$as_dir" && as_dir=.
  2802. for ac_prog in mkdir gmkdir; do
  2803. for ac_exec_ext in '' $ac_executable_extensions; do
  2804. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2805. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2806. 'mkdir (GNU coreutils) '* | \
  2807. 'mkdir (coreutils) '* | \
  2808. 'mkdir (fileutils) '4.1*)
  2809. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2810. break 3;;
  2811. esac
  2812. done
  2813. done
  2814. done
  2815. IFS=$as_save_IFS
  2816. fi
  2817. test -d ./--version && rmdir ./--version
  2818. if test "${ac_cv_path_mkdir+set}" = set; then
  2819. MKDIR_P="$ac_cv_path_mkdir -p"
  2820. else
  2821. # As a last resort, use the slow shell script. Don't cache a
  2822. # value for MKDIR_P within a source directory, because that will
  2823. # break other packages using the cache if that directory is
  2824. # removed, or if the value is a relative name.
  2825. MKDIR_P="$ac_install_sh -d"
  2826. fi
  2827. fi
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2829. $as_echo "$MKDIR_P" >&6; }
  2830. for ac_prog in gawk mawk nawk awk
  2831. do
  2832. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2833. set dummy $ac_prog; ac_word=$2
  2834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2835. $as_echo_n "checking for $ac_word... " >&6; }
  2836. if ${ac_cv_prog_AWK+:} false; then :
  2837. $as_echo_n "(cached) " >&6
  2838. else
  2839. if test -n "$AWK"; then
  2840. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2841. else
  2842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2843. for as_dir in $PATH
  2844. do
  2845. IFS=$as_save_IFS
  2846. test -z "$as_dir" && as_dir=.
  2847. for ac_exec_ext in '' $ac_executable_extensions; do
  2848. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2849. ac_cv_prog_AWK="$ac_prog"
  2850. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2851. break 2
  2852. fi
  2853. done
  2854. done
  2855. IFS=$as_save_IFS
  2856. fi
  2857. fi
  2858. AWK=$ac_cv_prog_AWK
  2859. if test -n "$AWK"; then
  2860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2861. $as_echo "$AWK" >&6; }
  2862. else
  2863. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2864. $as_echo "no" >&6; }
  2865. fi
  2866. test -n "$AWK" && break
  2867. done
  2868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2869. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2870. set x ${MAKE-make}
  2871. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2872. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2873. $as_echo_n "(cached) " >&6
  2874. else
  2875. cat >conftest.make <<\_ACEOF
  2876. SHELL = /bin/sh
  2877. all:
  2878. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2879. _ACEOF
  2880. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2881. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2882. *@@@%%%=?*=@@@%%%*)
  2883. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2884. *)
  2885. eval ac_cv_prog_make_${ac_make}_set=no;;
  2886. esac
  2887. rm -f conftest.make
  2888. fi
  2889. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2891. $as_echo "yes" >&6; }
  2892. SET_MAKE=
  2893. else
  2894. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2895. $as_echo "no" >&6; }
  2896. SET_MAKE="MAKE=${MAKE-make}"
  2897. fi
  2898. rm -rf .tst 2>/dev/null
  2899. mkdir .tst 2>/dev/null
  2900. if test -d .tst; then
  2901. am__leading_dot=.
  2902. else
  2903. am__leading_dot=_
  2904. fi
  2905. rmdir .tst 2>/dev/null
  2906. # Check whether --enable-silent-rules was given.
  2907. if test "${enable_silent_rules+set}" = set; then :
  2908. enableval=$enable_silent_rules;
  2909. fi
  2910. case $enable_silent_rules in # (((
  2911. yes) AM_DEFAULT_VERBOSITY=0;;
  2912. no) AM_DEFAULT_VERBOSITY=1;;
  2913. *) AM_DEFAULT_VERBOSITY=1;;
  2914. esac
  2915. am_make=${MAKE-make}
  2916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2917. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2918. if ${am_cv_make_support_nested_variables+:} false; then :
  2919. $as_echo_n "(cached) " >&6
  2920. else
  2921. if $as_echo 'TRUE=$(BAR$(V))
  2922. BAR0=false
  2923. BAR1=true
  2924. V=1
  2925. am__doit:
  2926. @$(TRUE)
  2927. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2928. am_cv_make_support_nested_variables=yes
  2929. else
  2930. am_cv_make_support_nested_variables=no
  2931. fi
  2932. fi
  2933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2934. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2935. if test $am_cv_make_support_nested_variables = yes; then
  2936. AM_V='$(V)'
  2937. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2938. else
  2939. AM_V=$AM_DEFAULT_VERBOSITY
  2940. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2941. fi
  2942. AM_BACKSLASH='\'
  2943. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2944. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2945. # is not polluted with repeated "-I."
  2946. am__isrc=' -I$(srcdir)'
  2947. # test to see if srcdir already configured
  2948. if test -f $srcdir/config.status; then
  2949. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2950. fi
  2951. fi
  2952. # test whether we have cygpath
  2953. if test -z "$CYGPATH_W"; then
  2954. if (cygpath --version) >/dev/null 2>/dev/null; then
  2955. CYGPATH_W='cygpath -w'
  2956. else
  2957. CYGPATH_W=echo
  2958. fi
  2959. fi
  2960. # Define the identity of the package.
  2961. PACKAGE='cudd'
  2962. VERSION='3.0.0'
  2963. cat >>confdefs.h <<_ACEOF
  2964. #define PACKAGE "$PACKAGE"
  2965. _ACEOF
  2966. cat >>confdefs.h <<_ACEOF
  2967. #define VERSION "$VERSION"
  2968. _ACEOF
  2969. # Some tools Automake needs.
  2970. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2971. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2972. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2973. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2974. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2975. # For better backward compatibility. To be removed once Automake 1.9.x
  2976. # dies out for good. For more background, see:
  2977. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2978. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2979. mkdir_p='$(MKDIR_P)'
  2980. # We need awk for the "check" target (and possibly the TAP driver). The
  2981. # system "awk" is bad on some platforms.
  2982. # Always define AMTAR for backward compatibility. Yes, it's still used
  2983. # in the wild :-( We should find a proper way to deprecate it ...
  2984. AMTAR='$${TAR-tar}'
  2985. # We'll loop over all known methods to create a tar archive until one works.
  2986. _am_tools='gnutar pax cpio none'
  2987. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2988. # POSIX will say in a future version that running "rm -f" with no argument
  2989. # is OK; and we want to be able to make that assumption in our Makefile
  2990. # recipes. So use an aggressive probe to check that the usage we want is
  2991. # actually supported "in the wild" to an acceptable degree.
  2992. # See automake bug#10828.
  2993. # To make any issue more visible, cause the running configure to be aborted
  2994. # by default if the 'rm' program in use doesn't match our expectations; the
  2995. # user can still override this though.
  2996. if rm -f && rm -fr && rm -rf; then : OK; else
  2997. cat >&2 <<'END'
  2998. Oops!
  2999. Your 'rm' program seems unable to run without file operands specified
  3000. on the command line, even when the '-f' option is present. This is contrary
  3001. to the behaviour of most rm programs out there, and not conforming with
  3002. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3003. Please tell bug-automake@gnu.org about your system, including the value
  3004. of your $PATH and any error possibly output before this message. This
  3005. can help us improve future automake versions.
  3006. END
  3007. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3008. echo 'Configuration will proceed anyway, since you have set the' >&2
  3009. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3010. echo >&2
  3011. else
  3012. cat >&2 <<'END'
  3013. Aborting the configuration process, to ensure you take notice of the issue.
  3014. You can download and install GNU coreutils to get an 'rm' implementation
  3015. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3016. If you want to complete the configuration process using your problematic
  3017. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3018. to "yes", and re-run configure.
  3019. END
  3020. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3021. fi
  3022. fi
  3023. # Check whether --enable-dddmp was given.
  3024. if test "${enable_dddmp+set}" = set; then :
  3025. enableval=$enable_dddmp;
  3026. fi
  3027. if test x$enable_dddmp = xyes; then
  3028. DDDMP_TRUE=
  3029. DDDMP_FALSE='#'
  3030. else
  3031. DDDMP_TRUE='#'
  3032. DDDMP_FALSE=
  3033. fi
  3034. # Check whether --enable-obj was given.
  3035. if test "${enable_obj+set}" = set; then :
  3036. enableval=$enable_obj;
  3037. fi
  3038. if test x$enable_obj = xyes; then
  3039. OBJ_TRUE=
  3040. OBJ_FALSE='#'
  3041. else
  3042. OBJ_TRUE='#'
  3043. OBJ_FALSE=
  3044. fi
  3045. # Check whether --with-system-qsort was given.
  3046. if test "${with_system_qsort+set}" = set; then :
  3047. withval=$with_system_qsort;
  3048. else
  3049. with_system_qsort=no
  3050. fi
  3051. if test x$with_system_qsort != xno ; then
  3052. $as_echo "#define USE_SYSTEM_QSORT 1" >>confdefs.h
  3053. fi
  3054. # Set our own default (instead of "-g -O2") unless CFLAGS is already defined.
  3055. : ${CFLAGS="-Wall -Wextra -g -O3"}
  3056. : ${CXXFLAGS="-Wall -Wextra -std=c++0x -g -O3"}
  3057. ac_ext=c
  3058. ac_cpp='$CPP $CPPFLAGS'
  3059. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3060. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3061. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3062. if test -n "$ac_tool_prefix"; then
  3063. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3064. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3066. $as_echo_n "checking for $ac_word... " >&6; }
  3067. if ${ac_cv_prog_CC+:} false; then :
  3068. $as_echo_n "(cached) " >&6
  3069. else
  3070. if test -n "$CC"; then
  3071. ac_cv_prog_CC="$CC" # Let the user override the test.
  3072. else
  3073. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3074. for as_dir in $PATH
  3075. do
  3076. IFS=$as_save_IFS
  3077. test -z "$as_dir" && as_dir=.
  3078. for ac_exec_ext in '' $ac_executable_extensions; do
  3079. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3080. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3081. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3082. break 2
  3083. fi
  3084. done
  3085. done
  3086. IFS=$as_save_IFS
  3087. fi
  3088. fi
  3089. CC=$ac_cv_prog_CC
  3090. if test -n "$CC"; then
  3091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3092. $as_echo "$CC" >&6; }
  3093. else
  3094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3095. $as_echo "no" >&6; }
  3096. fi
  3097. fi
  3098. if test -z "$ac_cv_prog_CC"; then
  3099. ac_ct_CC=$CC
  3100. # Extract the first word of "gcc", so it can be a program name with args.
  3101. set dummy gcc; ac_word=$2
  3102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3103. $as_echo_n "checking for $ac_word... " >&6; }
  3104. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3105. $as_echo_n "(cached) " >&6
  3106. else
  3107. if test -n "$ac_ct_CC"; then
  3108. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3109. else
  3110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3111. for as_dir in $PATH
  3112. do
  3113. IFS=$as_save_IFS
  3114. test -z "$as_dir" && as_dir=.
  3115. for ac_exec_ext in '' $ac_executable_extensions; do
  3116. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3117. ac_cv_prog_ac_ct_CC="gcc"
  3118. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3119. break 2
  3120. fi
  3121. done
  3122. done
  3123. IFS=$as_save_IFS
  3124. fi
  3125. fi
  3126. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3127. if test -n "$ac_ct_CC"; then
  3128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3129. $as_echo "$ac_ct_CC" >&6; }
  3130. else
  3131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3132. $as_echo "no" >&6; }
  3133. fi
  3134. if test "x$ac_ct_CC" = x; then
  3135. CC=""
  3136. else
  3137. case $cross_compiling:$ac_tool_warned in
  3138. yes:)
  3139. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3140. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3141. ac_tool_warned=yes ;;
  3142. esac
  3143. CC=$ac_ct_CC
  3144. fi
  3145. else
  3146. CC="$ac_cv_prog_CC"
  3147. fi
  3148. if test -z "$CC"; then
  3149. if test -n "$ac_tool_prefix"; then
  3150. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3151. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3152. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3153. $as_echo_n "checking for $ac_word... " >&6; }
  3154. if ${ac_cv_prog_CC+:} false; then :
  3155. $as_echo_n "(cached) " >&6
  3156. else
  3157. if test -n "$CC"; then
  3158. ac_cv_prog_CC="$CC" # Let the user override the test.
  3159. else
  3160. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3161. for as_dir in $PATH
  3162. do
  3163. IFS=$as_save_IFS
  3164. test -z "$as_dir" && as_dir=.
  3165. for ac_exec_ext in '' $ac_executable_extensions; do
  3166. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3167. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3168. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3169. break 2
  3170. fi
  3171. done
  3172. done
  3173. IFS=$as_save_IFS
  3174. fi
  3175. fi
  3176. CC=$ac_cv_prog_CC
  3177. if test -n "$CC"; then
  3178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3179. $as_echo "$CC" >&6; }
  3180. else
  3181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3182. $as_echo "no" >&6; }
  3183. fi
  3184. fi
  3185. fi
  3186. if test -z "$CC"; then
  3187. # Extract the first word of "cc", so it can be a program name with args.
  3188. set dummy cc; ac_word=$2
  3189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3190. $as_echo_n "checking for $ac_word... " >&6; }
  3191. if ${ac_cv_prog_CC+:} false; then :
  3192. $as_echo_n "(cached) " >&6
  3193. else
  3194. if test -n "$CC"; then
  3195. ac_cv_prog_CC="$CC" # Let the user override the test.
  3196. else
  3197. ac_prog_rejected=no
  3198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3199. for as_dir in $PATH
  3200. do
  3201. IFS=$as_save_IFS
  3202. test -z "$as_dir" && as_dir=.
  3203. for ac_exec_ext in '' $ac_executable_extensions; do
  3204. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3205. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3206. ac_prog_rejected=yes
  3207. continue
  3208. fi
  3209. ac_cv_prog_CC="cc"
  3210. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3211. break 2
  3212. fi
  3213. done
  3214. done
  3215. IFS=$as_save_IFS
  3216. if test $ac_prog_rejected = yes; then
  3217. # We found a bogon in the path, so make sure we never use it.
  3218. set dummy $ac_cv_prog_CC
  3219. shift
  3220. if test $# != 0; then
  3221. # We chose a different compiler from the bogus one.
  3222. # However, it has the same basename, so the bogon will be chosen
  3223. # first if we set CC to just the basename; use the full file name.
  3224. shift
  3225. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3226. fi
  3227. fi
  3228. fi
  3229. fi
  3230. CC=$ac_cv_prog_CC
  3231. if test -n "$CC"; then
  3232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3233. $as_echo "$CC" >&6; }
  3234. else
  3235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3236. $as_echo "no" >&6; }
  3237. fi
  3238. fi
  3239. if test -z "$CC"; then
  3240. if test -n "$ac_tool_prefix"; then
  3241. for ac_prog in cl.exe
  3242. do
  3243. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3244. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3246. $as_echo_n "checking for $ac_word... " >&6; }
  3247. if ${ac_cv_prog_CC+:} false; then :
  3248. $as_echo_n "(cached) " >&6
  3249. else
  3250. if test -n "$CC"; then
  3251. ac_cv_prog_CC="$CC" # Let the user override the test.
  3252. else
  3253. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3254. for as_dir in $PATH
  3255. do
  3256. IFS=$as_save_IFS
  3257. test -z "$as_dir" && as_dir=.
  3258. for ac_exec_ext in '' $ac_executable_extensions; do
  3259. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3260. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3261. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3262. break 2
  3263. fi
  3264. done
  3265. done
  3266. IFS=$as_save_IFS
  3267. fi
  3268. fi
  3269. CC=$ac_cv_prog_CC
  3270. if test -n "$CC"; then
  3271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3272. $as_echo "$CC" >&6; }
  3273. else
  3274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3275. $as_echo "no" >&6; }
  3276. fi
  3277. test -n "$CC" && break
  3278. done
  3279. fi
  3280. if test -z "$CC"; then
  3281. ac_ct_CC=$CC
  3282. for ac_prog in cl.exe
  3283. do
  3284. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3285. set dummy $ac_prog; ac_word=$2
  3286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3287. $as_echo_n "checking for $ac_word... " >&6; }
  3288. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3289. $as_echo_n "(cached) " >&6
  3290. else
  3291. if test -n "$ac_ct_CC"; then
  3292. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3293. else
  3294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3295. for as_dir in $PATH
  3296. do
  3297. IFS=$as_save_IFS
  3298. test -z "$as_dir" && as_dir=.
  3299. for ac_exec_ext in '' $ac_executable_extensions; do
  3300. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3301. ac_cv_prog_ac_ct_CC="$ac_prog"
  3302. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3303. break 2
  3304. fi
  3305. done
  3306. done
  3307. IFS=$as_save_IFS
  3308. fi
  3309. fi
  3310. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3311. if test -n "$ac_ct_CC"; then
  3312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3313. $as_echo "$ac_ct_CC" >&6; }
  3314. else
  3315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3316. $as_echo "no" >&6; }
  3317. fi
  3318. test -n "$ac_ct_CC" && break
  3319. done
  3320. if test "x$ac_ct_CC" = x; then
  3321. CC=""
  3322. else
  3323. case $cross_compiling:$ac_tool_warned in
  3324. yes:)
  3325. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3326. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3327. ac_tool_warned=yes ;;
  3328. esac
  3329. CC=$ac_ct_CC
  3330. fi
  3331. fi
  3332. fi
  3333. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3334. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3335. as_fn_error $? "no acceptable C compiler found in \$PATH
  3336. See \`config.log' for more details" "$LINENO" 5; }
  3337. # Provide some information about the compiler.
  3338. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3339. set X $ac_compile
  3340. ac_compiler=$2
  3341. for ac_option in --version -v -V -qversion; do
  3342. { { ac_try="$ac_compiler $ac_option >&5"
  3343. case "(($ac_try" in
  3344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3345. *) ac_try_echo=$ac_try;;
  3346. esac
  3347. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3348. $as_echo "$ac_try_echo"; } >&5
  3349. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3350. ac_status=$?
  3351. if test -s conftest.err; then
  3352. sed '10a\
  3353. ... rest of stderr output deleted ...
  3354. 10q' conftest.err >conftest.er1
  3355. cat conftest.er1 >&5
  3356. fi
  3357. rm -f conftest.er1 conftest.err
  3358. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3359. test $ac_status = 0; }
  3360. done
  3361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3362. /* end confdefs.h. */
  3363. int
  3364. main ()
  3365. {
  3366. ;
  3367. return 0;
  3368. }
  3369. _ACEOF
  3370. ac_clean_files_save=$ac_clean_files
  3371. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3372. # Try to create an executable without -o first, disregard a.out.
  3373. # It will help us diagnose broken compilers, and finding out an intuition
  3374. # of exeext.
  3375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3376. $as_echo_n "checking whether the C compiler works... " >&6; }
  3377. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3378. # The possible output files:
  3379. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3380. ac_rmfiles=
  3381. for ac_file in $ac_files
  3382. do
  3383. case $ac_file in
  3384. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3385. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3386. esac
  3387. done
  3388. rm -f $ac_rmfiles
  3389. if { { ac_try="$ac_link_default"
  3390. case "(($ac_try" in
  3391. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3392. *) ac_try_echo=$ac_try;;
  3393. esac
  3394. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3395. $as_echo "$ac_try_echo"; } >&5
  3396. (eval "$ac_link_default") 2>&5
  3397. ac_status=$?
  3398. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3399. test $ac_status = 0; }; then :
  3400. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3401. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3402. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3403. # so that the user can short-circuit this test for compilers unknown to
  3404. # Autoconf.
  3405. for ac_file in $ac_files ''
  3406. do
  3407. test -f "$ac_file" || continue
  3408. case $ac_file in
  3409. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3410. ;;
  3411. [ab].out )
  3412. # We found the default executable, but exeext='' is most
  3413. # certainly right.
  3414. break;;
  3415. *.* )
  3416. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3417. then :; else
  3418. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3419. fi
  3420. # We set ac_cv_exeext here because the later test for it is not
  3421. # safe: cross compilers may not add the suffix if given an `-o'
  3422. # argument, so we may need to know it at that point already.
  3423. # Even if this section looks crufty: it has the advantage of
  3424. # actually working.
  3425. break;;
  3426. * )
  3427. break;;
  3428. esac
  3429. done
  3430. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3431. else
  3432. ac_file=''
  3433. fi
  3434. if test -z "$ac_file"; then :
  3435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3436. $as_echo "no" >&6; }
  3437. $as_echo "$as_me: failed program was:" >&5
  3438. sed 's/^/| /' conftest.$ac_ext >&5
  3439. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3440. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3441. as_fn_error 77 "C compiler cannot create executables
  3442. See \`config.log' for more details" "$LINENO" 5; }
  3443. else
  3444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3445. $as_echo "yes" >&6; }
  3446. fi
  3447. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3448. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3450. $as_echo "$ac_file" >&6; }
  3451. ac_exeext=$ac_cv_exeext
  3452. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3453. ac_clean_files=$ac_clean_files_save
  3454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3455. $as_echo_n "checking for suffix of executables... " >&6; }
  3456. if { { ac_try="$ac_link"
  3457. case "(($ac_try" in
  3458. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3459. *) ac_try_echo=$ac_try;;
  3460. esac
  3461. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3462. $as_echo "$ac_try_echo"; } >&5
  3463. (eval "$ac_link") 2>&5
  3464. ac_status=$?
  3465. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3466. test $ac_status = 0; }; then :
  3467. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3468. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3469. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3470. # `rm'.
  3471. for ac_file in conftest.exe conftest conftest.*; do
  3472. test -f "$ac_file" || continue
  3473. case $ac_file in
  3474. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3475. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3476. break;;
  3477. * ) break;;
  3478. esac
  3479. done
  3480. else
  3481. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3482. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3483. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3484. See \`config.log' for more details" "$LINENO" 5; }
  3485. fi
  3486. rm -f conftest conftest$ac_cv_exeext
  3487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3488. $as_echo "$ac_cv_exeext" >&6; }
  3489. rm -f conftest.$ac_ext
  3490. EXEEXT=$ac_cv_exeext
  3491. ac_exeext=$EXEEXT
  3492. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3493. /* end confdefs.h. */
  3494. #include <stdio.h>
  3495. int
  3496. main ()
  3497. {
  3498. FILE *f = fopen ("conftest.out", "w");
  3499. return ferror (f) || fclose (f) != 0;
  3500. ;
  3501. return 0;
  3502. }
  3503. _ACEOF
  3504. ac_clean_files="$ac_clean_files conftest.out"
  3505. # Check that the compiler produces executables we can run. If not, either
  3506. # the compiler is broken, or we cross compile.
  3507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3508. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3509. if test "$cross_compiling" != yes; then
  3510. { { ac_try="$ac_link"
  3511. case "(($ac_try" in
  3512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3513. *) ac_try_echo=$ac_try;;
  3514. esac
  3515. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3516. $as_echo "$ac_try_echo"; } >&5
  3517. (eval "$ac_link") 2>&5
  3518. ac_status=$?
  3519. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3520. test $ac_status = 0; }
  3521. if { ac_try='./conftest$ac_cv_exeext'
  3522. { { case "(($ac_try" in
  3523. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3524. *) ac_try_echo=$ac_try;;
  3525. esac
  3526. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3527. $as_echo "$ac_try_echo"; } >&5
  3528. (eval "$ac_try") 2>&5
  3529. ac_status=$?
  3530. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3531. test $ac_status = 0; }; }; then
  3532. cross_compiling=no
  3533. else
  3534. if test "$cross_compiling" = maybe; then
  3535. cross_compiling=yes
  3536. else
  3537. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3538. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3539. as_fn_error $? "cannot run C compiled programs.
  3540. If you meant to cross compile, use \`--host'.
  3541. See \`config.log' for more details" "$LINENO" 5; }
  3542. fi
  3543. fi
  3544. fi
  3545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3546. $as_echo "$cross_compiling" >&6; }
  3547. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3548. ac_clean_files=$ac_clean_files_save
  3549. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3550. $as_echo_n "checking for suffix of object files... " >&6; }
  3551. if ${ac_cv_objext+:} false; then :
  3552. $as_echo_n "(cached) " >&6
  3553. else
  3554. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3555. /* end confdefs.h. */
  3556. int
  3557. main ()
  3558. {
  3559. ;
  3560. return 0;
  3561. }
  3562. _ACEOF
  3563. rm -f conftest.o conftest.obj
  3564. if { { ac_try="$ac_compile"
  3565. case "(($ac_try" in
  3566. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3567. *) ac_try_echo=$ac_try;;
  3568. esac
  3569. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3570. $as_echo "$ac_try_echo"; } >&5
  3571. (eval "$ac_compile") 2>&5
  3572. ac_status=$?
  3573. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3574. test $ac_status = 0; }; then :
  3575. for ac_file in conftest.o conftest.obj conftest.*; do
  3576. test -f "$ac_file" || continue;
  3577. case $ac_file in
  3578. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3579. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3580. break;;
  3581. esac
  3582. done
  3583. else
  3584. $as_echo "$as_me: failed program was:" >&5
  3585. sed 's/^/| /' conftest.$ac_ext >&5
  3586. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3587. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3588. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3589. See \`config.log' for more details" "$LINENO" 5; }
  3590. fi
  3591. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3592. fi
  3593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3594. $as_echo "$ac_cv_objext" >&6; }
  3595. OBJEXT=$ac_cv_objext
  3596. ac_objext=$OBJEXT
  3597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3598. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3599. if ${ac_cv_c_compiler_gnu+:} false; then :
  3600. $as_echo_n "(cached) " >&6
  3601. else
  3602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3603. /* end confdefs.h. */
  3604. int
  3605. main ()
  3606. {
  3607. #ifndef __GNUC__
  3608. choke me
  3609. #endif
  3610. ;
  3611. return 0;
  3612. }
  3613. _ACEOF
  3614. if ac_fn_c_try_compile "$LINENO"; then :
  3615. ac_compiler_gnu=yes
  3616. else
  3617. ac_compiler_gnu=no
  3618. fi
  3619. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3620. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3621. fi
  3622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3623. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3624. if test $ac_compiler_gnu = yes; then
  3625. GCC=yes
  3626. else
  3627. GCC=
  3628. fi
  3629. ac_test_CFLAGS=${CFLAGS+set}
  3630. ac_save_CFLAGS=$CFLAGS
  3631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3632. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3633. if ${ac_cv_prog_cc_g+:} false; then :
  3634. $as_echo_n "(cached) " >&6
  3635. else
  3636. ac_save_c_werror_flag=$ac_c_werror_flag
  3637. ac_c_werror_flag=yes
  3638. ac_cv_prog_cc_g=no
  3639. CFLAGS="-g"
  3640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3641. /* end confdefs.h. */
  3642. int
  3643. main ()
  3644. {
  3645. ;
  3646. return 0;
  3647. }
  3648. _ACEOF
  3649. if ac_fn_c_try_compile "$LINENO"; then :
  3650. ac_cv_prog_cc_g=yes
  3651. else
  3652. CFLAGS=""
  3653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3654. /* end confdefs.h. */
  3655. int
  3656. main ()
  3657. {
  3658. ;
  3659. return 0;
  3660. }
  3661. _ACEOF
  3662. if ac_fn_c_try_compile "$LINENO"; then :
  3663. else
  3664. ac_c_werror_flag=$ac_save_c_werror_flag
  3665. CFLAGS="-g"
  3666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3667. /* end confdefs.h. */
  3668. int
  3669. main ()
  3670. {
  3671. ;
  3672. return 0;
  3673. }
  3674. _ACEOF
  3675. if ac_fn_c_try_compile "$LINENO"; then :
  3676. ac_cv_prog_cc_g=yes
  3677. fi
  3678. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3679. fi
  3680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3681. fi
  3682. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3683. ac_c_werror_flag=$ac_save_c_werror_flag
  3684. fi
  3685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3686. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3687. if test "$ac_test_CFLAGS" = set; then
  3688. CFLAGS=$ac_save_CFLAGS
  3689. elif test $ac_cv_prog_cc_g = yes; then
  3690. if test "$GCC" = yes; then
  3691. CFLAGS="-g -O2"
  3692. else
  3693. CFLAGS="-g"
  3694. fi
  3695. else
  3696. if test "$GCC" = yes; then
  3697. CFLAGS="-O2"
  3698. else
  3699. CFLAGS=
  3700. fi
  3701. fi
  3702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3703. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3704. if ${ac_cv_prog_cc_c89+:} false; then :
  3705. $as_echo_n "(cached) " >&6
  3706. else
  3707. ac_cv_prog_cc_c89=no
  3708. ac_save_CC=$CC
  3709. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3710. /* end confdefs.h. */
  3711. #include <stdarg.h>
  3712. #include <stdio.h>
  3713. struct stat;
  3714. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3715. struct buf { int x; };
  3716. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3717. static char *e (p, i)
  3718. char **p;
  3719. int i;
  3720. {
  3721. return p[i];
  3722. }
  3723. static char *f (char * (*g) (char **, int), char **p, ...)
  3724. {
  3725. char *s;
  3726. va_list v;
  3727. va_start (v,p);
  3728. s = g (p, va_arg (v,int));
  3729. va_end (v);
  3730. return s;
  3731. }
  3732. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3733. function prototypes and stuff, but not '\xHH' hex character constants.
  3734. These don't provoke an error unfortunately, instead are silently treated
  3735. as 'x'. The following induces an error, until -std is added to get
  3736. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3737. array size at least. It's necessary to write '\x00'==0 to get something
  3738. that's true only with -std. */
  3739. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3740. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3741. inside strings and character constants. */
  3742. #define FOO(x) 'x'
  3743. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3744. int test (int i, double x);
  3745. struct s1 {int (*f) (int a);};
  3746. struct s2 {int (*f) (double a);};
  3747. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3748. int argc;
  3749. char **argv;
  3750. int
  3751. main ()
  3752. {
  3753. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3754. ;
  3755. return 0;
  3756. }
  3757. _ACEOF
  3758. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3759. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3760. do
  3761. CC="$ac_save_CC $ac_arg"
  3762. if ac_fn_c_try_compile "$LINENO"; then :
  3763. ac_cv_prog_cc_c89=$ac_arg
  3764. fi
  3765. rm -f core conftest.err conftest.$ac_objext
  3766. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3767. done
  3768. rm -f conftest.$ac_ext
  3769. CC=$ac_save_CC
  3770. fi
  3771. # AC_CACHE_VAL
  3772. case "x$ac_cv_prog_cc_c89" in
  3773. x)
  3774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3775. $as_echo "none needed" >&6; } ;;
  3776. xno)
  3777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3778. $as_echo "unsupported" >&6; } ;;
  3779. *)
  3780. CC="$CC $ac_cv_prog_cc_c89"
  3781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3782. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3783. esac
  3784. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3785. fi
  3786. ac_ext=c
  3787. ac_cpp='$CPP $CPPFLAGS'
  3788. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3789. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3790. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3791. ac_ext=c
  3792. ac_cpp='$CPP $CPPFLAGS'
  3793. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3794. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3795. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3797. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3798. if ${am_cv_prog_cc_c_o+:} false; then :
  3799. $as_echo_n "(cached) " >&6
  3800. else
  3801. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3802. /* end confdefs.h. */
  3803. int
  3804. main ()
  3805. {
  3806. ;
  3807. return 0;
  3808. }
  3809. _ACEOF
  3810. # Make sure it works both with $CC and with simple cc.
  3811. # Following AC_PROG_CC_C_O, we do the test twice because some
  3812. # compilers refuse to overwrite an existing .o file with -o,
  3813. # though they will create one.
  3814. am_cv_prog_cc_c_o=yes
  3815. for am_i in 1 2; do
  3816. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3817. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3818. ac_status=$?
  3819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3820. (exit $ac_status); } \
  3821. && test -f conftest2.$ac_objext; then
  3822. : OK
  3823. else
  3824. am_cv_prog_cc_c_o=no
  3825. break
  3826. fi
  3827. done
  3828. rm -f core conftest*
  3829. unset am_i
  3830. fi
  3831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3832. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3833. if test "$am_cv_prog_cc_c_o" != yes; then
  3834. # Losing compiler, so override with the script.
  3835. # FIXME: It is wrong to rewrite CC.
  3836. # But if we don't then we get into trouble of one sort or another.
  3837. # A longer-term fix would be to have automake use am__CC in this case,
  3838. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3839. CC="$am_aux_dir/compile $CC"
  3840. fi
  3841. ac_ext=c
  3842. ac_cpp='$CPP $CPPFLAGS'
  3843. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3844. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3845. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3846. DEPDIR="${am__leading_dot}deps"
  3847. ac_config_commands="$ac_config_commands depfiles"
  3848. am_make=${MAKE-make}
  3849. cat > confinc << 'END'
  3850. am__doit:
  3851. @echo this is the am__doit target
  3852. .PHONY: am__doit
  3853. END
  3854. # If we don't find an include directive, just comment out the code.
  3855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3856. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3857. am__include="#"
  3858. am__quote=
  3859. _am_result=none
  3860. # First try GNU make style include.
  3861. echo "include confinc" > confmf
  3862. # Ignore all kinds of additional output from 'make'.
  3863. case `$am_make -s -f confmf 2> /dev/null` in #(
  3864. *the\ am__doit\ target*)
  3865. am__include=include
  3866. am__quote=
  3867. _am_result=GNU
  3868. ;;
  3869. esac
  3870. # Now try BSD make style include.
  3871. if test "$am__include" = "#"; then
  3872. echo '.include "confinc"' > confmf
  3873. case `$am_make -s -f confmf 2> /dev/null` in #(
  3874. *the\ am__doit\ target*)
  3875. am__include=.include
  3876. am__quote="\""
  3877. _am_result=BSD
  3878. ;;
  3879. esac
  3880. fi
  3881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3882. $as_echo "$_am_result" >&6; }
  3883. rm -f confinc confmf
  3884. # Check whether --enable-dependency-tracking was given.
  3885. if test "${enable_dependency_tracking+set}" = set; then :
  3886. enableval=$enable_dependency_tracking;
  3887. fi
  3888. if test "x$enable_dependency_tracking" != xno; then
  3889. am_depcomp="$ac_aux_dir/depcomp"
  3890. AMDEPBACKSLASH='\'
  3891. am__nodep='_no'
  3892. fi
  3893. if test "x$enable_dependency_tracking" != xno; then
  3894. AMDEP_TRUE=
  3895. AMDEP_FALSE='#'
  3896. else
  3897. AMDEP_TRUE='#'
  3898. AMDEP_FALSE=
  3899. fi
  3900. depcc="$CC" am_compiler_list=
  3901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3902. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3903. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3904. $as_echo_n "(cached) " >&6
  3905. else
  3906. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3907. # We make a subdir and do the tests there. Otherwise we can end up
  3908. # making bogus files that we don't know about and never remove. For
  3909. # instance it was reported that on HP-UX the gcc test will end up
  3910. # making a dummy file named 'D' -- because '-MD' means "put the output
  3911. # in D".
  3912. rm -rf conftest.dir
  3913. mkdir conftest.dir
  3914. # Copy depcomp to subdir because otherwise we won't find it if we're
  3915. # using a relative directory.
  3916. cp "$am_depcomp" conftest.dir
  3917. cd conftest.dir
  3918. # We will build objects and dependencies in a subdirectory because
  3919. # it helps to detect inapplicable dependency modes. For instance
  3920. # both Tru64's cc and ICC support -MD to output dependencies as a
  3921. # side effect of compilation, but ICC will put the dependencies in
  3922. # the current directory while Tru64 will put them in the object
  3923. # directory.
  3924. mkdir sub
  3925. am_cv_CC_dependencies_compiler_type=none
  3926. if test "$am_compiler_list" = ""; then
  3927. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3928. fi
  3929. am__universal=false
  3930. case " $depcc " in #(
  3931. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3932. esac
  3933. for depmode in $am_compiler_list; do
  3934. # Setup a source with many dependencies, because some compilers
  3935. # like to wrap large dependency lists on column 80 (with \), and
  3936. # we should not choose a depcomp mode which is confused by this.
  3937. #
  3938. # We need to recreate these files for each test, as the compiler may
  3939. # overwrite some of them when testing with obscure command lines.
  3940. # This happens at least with the AIX C compiler.
  3941. : > sub/conftest.c
  3942. for i in 1 2 3 4 5 6; do
  3943. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3944. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3945. # Solaris 10 /bin/sh.
  3946. echo '/* dummy */' > sub/conftst$i.h
  3947. done
  3948. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3949. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3950. # mode. It turns out that the SunPro C++ compiler does not properly
  3951. # handle '-M -o', and we need to detect this. Also, some Intel
  3952. # versions had trouble with output in subdirs.
  3953. am__obj=sub/conftest.${OBJEXT-o}
  3954. am__minus_obj="-o $am__obj"
  3955. case $depmode in
  3956. gcc)
  3957. # This depmode causes a compiler race in universal mode.
  3958. test "$am__universal" = false || continue
  3959. ;;
  3960. nosideeffect)
  3961. # After this tag, mechanisms are not by side-effect, so they'll
  3962. # only be used when explicitly requested.
  3963. if test "x$enable_dependency_tracking" = xyes; then
  3964. continue
  3965. else
  3966. break
  3967. fi
  3968. ;;
  3969. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3970. # This compiler won't grok '-c -o', but also, the minuso test has
  3971. # not run yet. These depmodes are late enough in the game, and
  3972. # so weak that their functioning should not be impacted.
  3973. am__obj=conftest.${OBJEXT-o}
  3974. am__minus_obj=
  3975. ;;
  3976. none) break ;;
  3977. esac
  3978. if depmode=$depmode \
  3979. source=sub/conftest.c object=$am__obj \
  3980. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3981. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3982. >/dev/null 2>conftest.err &&
  3983. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3984. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3985. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3986. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3987. # icc doesn't choke on unknown options, it will just issue warnings
  3988. # or remarks (even with -Werror). So we grep stderr for any message
  3989. # that says an option was ignored or not supported.
  3990. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3991. # icc: Command line warning: ignoring option '-M'; no argument required
  3992. # The diagnosis changed in icc 8.0:
  3993. # icc: Command line remark: option '-MP' not supported
  3994. if (grep 'ignoring option' conftest.err ||
  3995. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3996. am_cv_CC_dependencies_compiler_type=$depmode
  3997. break
  3998. fi
  3999. fi
  4000. done
  4001. cd ..
  4002. rm -rf conftest.dir
  4003. else
  4004. am_cv_CC_dependencies_compiler_type=none
  4005. fi
  4006. fi
  4007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4008. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4009. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4010. if
  4011. test "x$enable_dependency_tracking" != xno \
  4012. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4013. am__fastdepCC_TRUE=
  4014. am__fastdepCC_FALSE='#'
  4015. else
  4016. am__fastdepCC_TRUE='#'
  4017. am__fastdepCC_FALSE=
  4018. fi
  4019. ac_ext=cpp
  4020. ac_cpp='$CXXCPP $CPPFLAGS'
  4021. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4022. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4023. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4024. if test -z "$CXX"; then
  4025. if test -n "$CCC"; then
  4026. CXX=$CCC
  4027. else
  4028. if test -n "$ac_tool_prefix"; then
  4029. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4030. do
  4031. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4032. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4034. $as_echo_n "checking for $ac_word... " >&6; }
  4035. if ${ac_cv_prog_CXX+:} false; then :
  4036. $as_echo_n "(cached) " >&6
  4037. else
  4038. if test -n "$CXX"; then
  4039. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4040. else
  4041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4042. for as_dir in $PATH
  4043. do
  4044. IFS=$as_save_IFS
  4045. test -z "$as_dir" && as_dir=.
  4046. for ac_exec_ext in '' $ac_executable_extensions; do
  4047. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4048. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4049. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4050. break 2
  4051. fi
  4052. done
  4053. done
  4054. IFS=$as_save_IFS
  4055. fi
  4056. fi
  4057. CXX=$ac_cv_prog_CXX
  4058. if test -n "$CXX"; then
  4059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4060. $as_echo "$CXX" >&6; }
  4061. else
  4062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4063. $as_echo "no" >&6; }
  4064. fi
  4065. test -n "$CXX" && break
  4066. done
  4067. fi
  4068. if test -z "$CXX"; then
  4069. ac_ct_CXX=$CXX
  4070. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4071. do
  4072. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4073. set dummy $ac_prog; ac_word=$2
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4075. $as_echo_n "checking for $ac_word... " >&6; }
  4076. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4077. $as_echo_n "(cached) " >&6
  4078. else
  4079. if test -n "$ac_ct_CXX"; then
  4080. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4081. else
  4082. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4083. for as_dir in $PATH
  4084. do
  4085. IFS=$as_save_IFS
  4086. test -z "$as_dir" && as_dir=.
  4087. for ac_exec_ext in '' $ac_executable_extensions; do
  4088. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4089. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4090. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4091. break 2
  4092. fi
  4093. done
  4094. done
  4095. IFS=$as_save_IFS
  4096. fi
  4097. fi
  4098. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4099. if test -n "$ac_ct_CXX"; then
  4100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4101. $as_echo "$ac_ct_CXX" >&6; }
  4102. else
  4103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4104. $as_echo "no" >&6; }
  4105. fi
  4106. test -n "$ac_ct_CXX" && break
  4107. done
  4108. if test "x$ac_ct_CXX" = x; then
  4109. CXX="g++"
  4110. else
  4111. case $cross_compiling:$ac_tool_warned in
  4112. yes:)
  4113. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4114. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4115. ac_tool_warned=yes ;;
  4116. esac
  4117. CXX=$ac_ct_CXX
  4118. fi
  4119. fi
  4120. fi
  4121. fi
  4122. # Provide some information about the compiler.
  4123. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4124. set X $ac_compile
  4125. ac_compiler=$2
  4126. for ac_option in --version -v -V -qversion; do
  4127. { { ac_try="$ac_compiler $ac_option >&5"
  4128. case "(($ac_try" in
  4129. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4130. *) ac_try_echo=$ac_try;;
  4131. esac
  4132. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4133. $as_echo "$ac_try_echo"; } >&5
  4134. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4135. ac_status=$?
  4136. if test -s conftest.err; then
  4137. sed '10a\
  4138. ... rest of stderr output deleted ...
  4139. 10q' conftest.err >conftest.er1
  4140. cat conftest.er1 >&5
  4141. fi
  4142. rm -f conftest.er1 conftest.err
  4143. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4144. test $ac_status = 0; }
  4145. done
  4146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4147. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4148. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4149. $as_echo_n "(cached) " >&6
  4150. else
  4151. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4152. /* end confdefs.h. */
  4153. int
  4154. main ()
  4155. {
  4156. #ifndef __GNUC__
  4157. choke me
  4158. #endif
  4159. ;
  4160. return 0;
  4161. }
  4162. _ACEOF
  4163. if ac_fn_cxx_try_compile "$LINENO"; then :
  4164. ac_compiler_gnu=yes
  4165. else
  4166. ac_compiler_gnu=no
  4167. fi
  4168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4169. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4170. fi
  4171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4172. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4173. if test $ac_compiler_gnu = yes; then
  4174. GXX=yes
  4175. else
  4176. GXX=
  4177. fi
  4178. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4179. ac_save_CXXFLAGS=$CXXFLAGS
  4180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4181. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4182. if ${ac_cv_prog_cxx_g+:} false; then :
  4183. $as_echo_n "(cached) " >&6
  4184. else
  4185. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4186. ac_cxx_werror_flag=yes
  4187. ac_cv_prog_cxx_g=no
  4188. CXXFLAGS="-g"
  4189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4190. /* end confdefs.h. */
  4191. int
  4192. main ()
  4193. {
  4194. ;
  4195. return 0;
  4196. }
  4197. _ACEOF
  4198. if ac_fn_cxx_try_compile "$LINENO"; then :
  4199. ac_cv_prog_cxx_g=yes
  4200. else
  4201. CXXFLAGS=""
  4202. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4203. /* end confdefs.h. */
  4204. int
  4205. main ()
  4206. {
  4207. ;
  4208. return 0;
  4209. }
  4210. _ACEOF
  4211. if ac_fn_cxx_try_compile "$LINENO"; then :
  4212. else
  4213. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4214. CXXFLAGS="-g"
  4215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4216. /* end confdefs.h. */
  4217. int
  4218. main ()
  4219. {
  4220. ;
  4221. return 0;
  4222. }
  4223. _ACEOF
  4224. if ac_fn_cxx_try_compile "$LINENO"; then :
  4225. ac_cv_prog_cxx_g=yes
  4226. fi
  4227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4228. fi
  4229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4230. fi
  4231. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4232. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4233. fi
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4235. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4236. if test "$ac_test_CXXFLAGS" = set; then
  4237. CXXFLAGS=$ac_save_CXXFLAGS
  4238. elif test $ac_cv_prog_cxx_g = yes; then
  4239. if test "$GXX" = yes; then
  4240. CXXFLAGS="-g -O2"
  4241. else
  4242. CXXFLAGS="-g"
  4243. fi
  4244. else
  4245. if test "$GXX" = yes; then
  4246. CXXFLAGS="-O2"
  4247. else
  4248. CXXFLAGS=
  4249. fi
  4250. fi
  4251. ac_ext=c
  4252. ac_cpp='$CPP $CPPFLAGS'
  4253. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4254. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4255. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4256. depcc="$CXX" am_compiler_list=
  4257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4258. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4259. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  4260. $as_echo_n "(cached) " >&6
  4261. else
  4262. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4263. # We make a subdir and do the tests there. Otherwise we can end up
  4264. # making bogus files that we don't know about and never remove. For
  4265. # instance it was reported that on HP-UX the gcc test will end up
  4266. # making a dummy file named 'D' -- because '-MD' means "put the output
  4267. # in D".
  4268. rm -rf conftest.dir
  4269. mkdir conftest.dir
  4270. # Copy depcomp to subdir because otherwise we won't find it if we're
  4271. # using a relative directory.
  4272. cp "$am_depcomp" conftest.dir
  4273. cd conftest.dir
  4274. # We will build objects and dependencies in a subdirectory because
  4275. # it helps to detect inapplicable dependency modes. For instance
  4276. # both Tru64's cc and ICC support -MD to output dependencies as a
  4277. # side effect of compilation, but ICC will put the dependencies in
  4278. # the current directory while Tru64 will put them in the object
  4279. # directory.
  4280. mkdir sub
  4281. am_cv_CXX_dependencies_compiler_type=none
  4282. if test "$am_compiler_list" = ""; then
  4283. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4284. fi
  4285. am__universal=false
  4286. case " $depcc " in #(
  4287. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4288. esac
  4289. for depmode in $am_compiler_list; do
  4290. # Setup a source with many dependencies, because some compilers
  4291. # like to wrap large dependency lists on column 80 (with \), and
  4292. # we should not choose a depcomp mode which is confused by this.
  4293. #
  4294. # We need to recreate these files for each test, as the compiler may
  4295. # overwrite some of them when testing with obscure command lines.
  4296. # This happens at least with the AIX C compiler.
  4297. : > sub/conftest.c
  4298. for i in 1 2 3 4 5 6; do
  4299. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4300. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4301. # Solaris 10 /bin/sh.
  4302. echo '/* dummy */' > sub/conftst$i.h
  4303. done
  4304. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4305. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4306. # mode. It turns out that the SunPro C++ compiler does not properly
  4307. # handle '-M -o', and we need to detect this. Also, some Intel
  4308. # versions had trouble with output in subdirs.
  4309. am__obj=sub/conftest.${OBJEXT-o}
  4310. am__minus_obj="-o $am__obj"
  4311. case $depmode in
  4312. gcc)
  4313. # This depmode causes a compiler race in universal mode.
  4314. test "$am__universal" = false || continue
  4315. ;;
  4316. nosideeffect)
  4317. # After this tag, mechanisms are not by side-effect, so they'll
  4318. # only be used when explicitly requested.
  4319. if test "x$enable_dependency_tracking" = xyes; then
  4320. continue
  4321. else
  4322. break
  4323. fi
  4324. ;;
  4325. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4326. # This compiler won't grok '-c -o', but also, the minuso test has
  4327. # not run yet. These depmodes are late enough in the game, and
  4328. # so weak that their functioning should not be impacted.
  4329. am__obj=conftest.${OBJEXT-o}
  4330. am__minus_obj=
  4331. ;;
  4332. none) break ;;
  4333. esac
  4334. if depmode=$depmode \
  4335. source=sub/conftest.c object=$am__obj \
  4336. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4337. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4338. >/dev/null 2>conftest.err &&
  4339. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4340. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4341. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4342. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4343. # icc doesn't choke on unknown options, it will just issue warnings
  4344. # or remarks (even with -Werror). So we grep stderr for any message
  4345. # that says an option was ignored or not supported.
  4346. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4347. # icc: Command line warning: ignoring option '-M'; no argument required
  4348. # The diagnosis changed in icc 8.0:
  4349. # icc: Command line remark: option '-MP' not supported
  4350. if (grep 'ignoring option' conftest.err ||
  4351. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4352. am_cv_CXX_dependencies_compiler_type=$depmode
  4353. break
  4354. fi
  4355. fi
  4356. done
  4357. cd ..
  4358. rm -rf conftest.dir
  4359. else
  4360. am_cv_CXX_dependencies_compiler_type=none
  4361. fi
  4362. fi
  4363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4364. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4365. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4366. if
  4367. test "x$enable_dependency_tracking" != xno \
  4368. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4369. am__fastdepCXX_TRUE=
  4370. am__fastdepCXX_FALSE='#'
  4371. else
  4372. am__fastdepCXX_TRUE='#'
  4373. am__fastdepCXX_FALSE=
  4374. fi
  4375. if test -n "$ac_tool_prefix"; then
  4376. for ac_prog in ar lib "link -lib"
  4377. do
  4378. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4379. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4381. $as_echo_n "checking for $ac_word... " >&6; }
  4382. if ${ac_cv_prog_AR+:} false; then :
  4383. $as_echo_n "(cached) " >&6
  4384. else
  4385. if test -n "$AR"; then
  4386. ac_cv_prog_AR="$AR" # Let the user override the test.
  4387. else
  4388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4389. for as_dir in $PATH
  4390. do
  4391. IFS=$as_save_IFS
  4392. test -z "$as_dir" && as_dir=.
  4393. for ac_exec_ext in '' $ac_executable_extensions; do
  4394. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4395. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4396. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4397. break 2
  4398. fi
  4399. done
  4400. done
  4401. IFS=$as_save_IFS
  4402. fi
  4403. fi
  4404. AR=$ac_cv_prog_AR
  4405. if test -n "$AR"; then
  4406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4407. $as_echo "$AR" >&6; }
  4408. else
  4409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4410. $as_echo "no" >&6; }
  4411. fi
  4412. test -n "$AR" && break
  4413. done
  4414. fi
  4415. if test -z "$AR"; then
  4416. ac_ct_AR=$AR
  4417. for ac_prog in ar lib "link -lib"
  4418. do
  4419. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4420. set dummy $ac_prog; ac_word=$2
  4421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4422. $as_echo_n "checking for $ac_word... " >&6; }
  4423. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4424. $as_echo_n "(cached) " >&6
  4425. else
  4426. if test -n "$ac_ct_AR"; then
  4427. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4428. else
  4429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4430. for as_dir in $PATH
  4431. do
  4432. IFS=$as_save_IFS
  4433. test -z "$as_dir" && as_dir=.
  4434. for ac_exec_ext in '' $ac_executable_extensions; do
  4435. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4436. ac_cv_prog_ac_ct_AR="$ac_prog"
  4437. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4438. break 2
  4439. fi
  4440. done
  4441. done
  4442. IFS=$as_save_IFS
  4443. fi
  4444. fi
  4445. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4446. if test -n "$ac_ct_AR"; then
  4447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4448. $as_echo "$ac_ct_AR" >&6; }
  4449. else
  4450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4451. $as_echo "no" >&6; }
  4452. fi
  4453. test -n "$ac_ct_AR" && break
  4454. done
  4455. if test "x$ac_ct_AR" = x; then
  4456. AR="false"
  4457. else
  4458. case $cross_compiling:$ac_tool_warned in
  4459. yes:)
  4460. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4461. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4462. ac_tool_warned=yes ;;
  4463. esac
  4464. AR=$ac_ct_AR
  4465. fi
  4466. fi
  4467. : ${AR=ar}
  4468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  4469. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  4470. if ${am_cv_ar_interface+:} false; then :
  4471. $as_echo_n "(cached) " >&6
  4472. else
  4473. ac_ext=c
  4474. ac_cpp='$CPP $CPPFLAGS'
  4475. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4476. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4477. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4478. am_cv_ar_interface=ar
  4479. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4480. /* end confdefs.h. */
  4481. int some_variable = 0;
  4482. _ACEOF
  4483. if ac_fn_c_try_compile "$LINENO"; then :
  4484. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  4485. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4486. (eval $am_ar_try) 2>&5
  4487. ac_status=$?
  4488. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4489. test $ac_status = 0; }
  4490. if test "$ac_status" -eq 0; then
  4491. am_cv_ar_interface=ar
  4492. else
  4493. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  4494. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  4495. (eval $am_ar_try) 2>&5
  4496. ac_status=$?
  4497. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4498. test $ac_status = 0; }
  4499. if test "$ac_status" -eq 0; then
  4500. am_cv_ar_interface=lib
  4501. else
  4502. am_cv_ar_interface=unknown
  4503. fi
  4504. fi
  4505. rm -f conftest.lib libconftest.a
  4506. fi
  4507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4508. ac_ext=c
  4509. ac_cpp='$CPP $CPPFLAGS'
  4510. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4511. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4512. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4513. fi
  4514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  4515. $as_echo "$am_cv_ar_interface" >&6; }
  4516. case $am_cv_ar_interface in
  4517. ar)
  4518. ;;
  4519. lib)
  4520. # Microsoft lib, so override with the ar-lib wrapper script.
  4521. # FIXME: It is wrong to rewrite AR.
  4522. # But if we don't then we get into trouble of one sort or another.
  4523. # A longer-term fix would be to have automake use am__AR in this case,
  4524. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  4525. # similar.
  4526. AR="$am_aux_dir/ar-lib $AR"
  4527. ;;
  4528. unknown)
  4529. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  4530. ;;
  4531. esac
  4532. case `pwd` in
  4533. *\ * | *\ *)
  4534. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4535. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4536. esac
  4537. macro_version='2.4.2'
  4538. macro_revision='1.3337'
  4539. ltmain="$ac_aux_dir/ltmain.sh"
  4540. # Backslashify metacharacters that are still active within
  4541. # double-quoted strings.
  4542. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4543. # Same as above, but do not quote variable references.
  4544. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4545. # Sed substitution to delay expansion of an escaped shell variable in a
  4546. # double_quote_subst'ed string.
  4547. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4548. # Sed substitution to delay expansion of an escaped single quote.
  4549. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4550. # Sed substitution to avoid accidental globbing in evaled expressions
  4551. no_glob_subst='s/\*/\\\*/g'
  4552. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4553. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4554. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4556. $as_echo_n "checking how to print strings... " >&6; }
  4557. # Test print first, because it will be a builtin if present.
  4558. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4559. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4560. ECHO='print -r --'
  4561. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4562. ECHO='printf %s\n'
  4563. else
  4564. # Use this function as a fallback that always works.
  4565. func_fallback_echo ()
  4566. {
  4567. eval 'cat <<_LTECHO_EOF
  4568. $1
  4569. _LTECHO_EOF'
  4570. }
  4571. ECHO='func_fallback_echo'
  4572. fi
  4573. # func_echo_all arg...
  4574. # Invoke $ECHO with all args, space-separated.
  4575. func_echo_all ()
  4576. {
  4577. $ECHO ""
  4578. }
  4579. case "$ECHO" in
  4580. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4581. $as_echo "printf" >&6; } ;;
  4582. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4583. $as_echo "print -r" >&6; } ;;
  4584. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4585. $as_echo "cat" >&6; } ;;
  4586. esac
  4587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4588. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4589. if ${ac_cv_path_SED+:} false; then :
  4590. $as_echo_n "(cached) " >&6
  4591. else
  4592. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4593. for ac_i in 1 2 3 4 5 6 7; do
  4594. ac_script="$ac_script$as_nl$ac_script"
  4595. done
  4596. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4597. { ac_script=; unset ac_script;}
  4598. if test -z "$SED"; then
  4599. ac_path_SED_found=false
  4600. # Loop through the user's path and test for each of PROGNAME-LIST
  4601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4602. for as_dir in $PATH
  4603. do
  4604. IFS=$as_save_IFS
  4605. test -z "$as_dir" && as_dir=.
  4606. for ac_prog in sed gsed; do
  4607. for ac_exec_ext in '' $ac_executable_extensions; do
  4608. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4609. as_fn_executable_p "$ac_path_SED" || continue
  4610. # Check for GNU ac_path_SED and select it if it is found.
  4611. # Check for GNU $ac_path_SED
  4612. case `"$ac_path_SED" --version 2>&1` in
  4613. *GNU*)
  4614. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4615. *)
  4616. ac_count=0
  4617. $as_echo_n 0123456789 >"conftest.in"
  4618. while :
  4619. do
  4620. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4621. mv "conftest.tmp" "conftest.in"
  4622. cp "conftest.in" "conftest.nl"
  4623. $as_echo '' >> "conftest.nl"
  4624. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4625. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4626. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4627. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4628. # Best one so far, save it but keep looking for a better one
  4629. ac_cv_path_SED="$ac_path_SED"
  4630. ac_path_SED_max=$ac_count
  4631. fi
  4632. # 10*(2^10) chars as input seems more than enough
  4633. test $ac_count -gt 10 && break
  4634. done
  4635. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4636. esac
  4637. $ac_path_SED_found && break 3
  4638. done
  4639. done
  4640. done
  4641. IFS=$as_save_IFS
  4642. if test -z "$ac_cv_path_SED"; then
  4643. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4644. fi
  4645. else
  4646. ac_cv_path_SED=$SED
  4647. fi
  4648. fi
  4649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4650. $as_echo "$ac_cv_path_SED" >&6; }
  4651. SED="$ac_cv_path_SED"
  4652. rm -f conftest.sed
  4653. test -z "$SED" && SED=sed
  4654. Xsed="$SED -e 1s/^X//"
  4655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4656. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4657. if ${ac_cv_path_GREP+:} false; then :
  4658. $as_echo_n "(cached) " >&6
  4659. else
  4660. if test -z "$GREP"; then
  4661. ac_path_GREP_found=false
  4662. # Loop through the user's path and test for each of PROGNAME-LIST
  4663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4664. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4665. do
  4666. IFS=$as_save_IFS
  4667. test -z "$as_dir" && as_dir=.
  4668. for ac_prog in grep ggrep; do
  4669. for ac_exec_ext in '' $ac_executable_extensions; do
  4670. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4671. as_fn_executable_p "$ac_path_GREP" || continue
  4672. # Check for GNU ac_path_GREP and select it if it is found.
  4673. # Check for GNU $ac_path_GREP
  4674. case `"$ac_path_GREP" --version 2>&1` in
  4675. *GNU*)
  4676. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4677. *)
  4678. ac_count=0
  4679. $as_echo_n 0123456789 >"conftest.in"
  4680. while :
  4681. do
  4682. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4683. mv "conftest.tmp" "conftest.in"
  4684. cp "conftest.in" "conftest.nl"
  4685. $as_echo 'GREP' >> "conftest.nl"
  4686. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4687. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4688. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4689. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4690. # Best one so far, save it but keep looking for a better one
  4691. ac_cv_path_GREP="$ac_path_GREP"
  4692. ac_path_GREP_max=$ac_count
  4693. fi
  4694. # 10*(2^10) chars as input seems more than enough
  4695. test $ac_count -gt 10 && break
  4696. done
  4697. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4698. esac
  4699. $ac_path_GREP_found && break 3
  4700. done
  4701. done
  4702. done
  4703. IFS=$as_save_IFS
  4704. if test -z "$ac_cv_path_GREP"; then
  4705. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4706. fi
  4707. else
  4708. ac_cv_path_GREP=$GREP
  4709. fi
  4710. fi
  4711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4712. $as_echo "$ac_cv_path_GREP" >&6; }
  4713. GREP="$ac_cv_path_GREP"
  4714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4715. $as_echo_n "checking for egrep... " >&6; }
  4716. if ${ac_cv_path_EGREP+:} false; then :
  4717. $as_echo_n "(cached) " >&6
  4718. else
  4719. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4720. then ac_cv_path_EGREP="$GREP -E"
  4721. else
  4722. if test -z "$EGREP"; then
  4723. ac_path_EGREP_found=false
  4724. # Loop through the user's path and test for each of PROGNAME-LIST
  4725. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4726. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4727. do
  4728. IFS=$as_save_IFS
  4729. test -z "$as_dir" && as_dir=.
  4730. for ac_prog in egrep; do
  4731. for ac_exec_ext in '' $ac_executable_extensions; do
  4732. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4733. as_fn_executable_p "$ac_path_EGREP" || continue
  4734. # Check for GNU ac_path_EGREP and select it if it is found.
  4735. # Check for GNU $ac_path_EGREP
  4736. case `"$ac_path_EGREP" --version 2>&1` in
  4737. *GNU*)
  4738. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4739. *)
  4740. ac_count=0
  4741. $as_echo_n 0123456789 >"conftest.in"
  4742. while :
  4743. do
  4744. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4745. mv "conftest.tmp" "conftest.in"
  4746. cp "conftest.in" "conftest.nl"
  4747. $as_echo 'EGREP' >> "conftest.nl"
  4748. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4749. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4750. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4751. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4752. # Best one so far, save it but keep looking for a better one
  4753. ac_cv_path_EGREP="$ac_path_EGREP"
  4754. ac_path_EGREP_max=$ac_count
  4755. fi
  4756. # 10*(2^10) chars as input seems more than enough
  4757. test $ac_count -gt 10 && break
  4758. done
  4759. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4760. esac
  4761. $ac_path_EGREP_found && break 3
  4762. done
  4763. done
  4764. done
  4765. IFS=$as_save_IFS
  4766. if test -z "$ac_cv_path_EGREP"; then
  4767. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4768. fi
  4769. else
  4770. ac_cv_path_EGREP=$EGREP
  4771. fi
  4772. fi
  4773. fi
  4774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4775. $as_echo "$ac_cv_path_EGREP" >&6; }
  4776. EGREP="$ac_cv_path_EGREP"
  4777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4778. $as_echo_n "checking for fgrep... " >&6; }
  4779. if ${ac_cv_path_FGREP+:} false; then :
  4780. $as_echo_n "(cached) " >&6
  4781. else
  4782. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4783. then ac_cv_path_FGREP="$GREP -F"
  4784. else
  4785. if test -z "$FGREP"; then
  4786. ac_path_FGREP_found=false
  4787. # Loop through the user's path and test for each of PROGNAME-LIST
  4788. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4789. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4790. do
  4791. IFS=$as_save_IFS
  4792. test -z "$as_dir" && as_dir=.
  4793. for ac_prog in fgrep; do
  4794. for ac_exec_ext in '' $ac_executable_extensions; do
  4795. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4796. as_fn_executable_p "$ac_path_FGREP" || continue
  4797. # Check for GNU ac_path_FGREP and select it if it is found.
  4798. # Check for GNU $ac_path_FGREP
  4799. case `"$ac_path_FGREP" --version 2>&1` in
  4800. *GNU*)
  4801. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4802. *)
  4803. ac_count=0
  4804. $as_echo_n 0123456789 >"conftest.in"
  4805. while :
  4806. do
  4807. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4808. mv "conftest.tmp" "conftest.in"
  4809. cp "conftest.in" "conftest.nl"
  4810. $as_echo 'FGREP' >> "conftest.nl"
  4811. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4812. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4813. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4814. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4815. # Best one so far, save it but keep looking for a better one
  4816. ac_cv_path_FGREP="$ac_path_FGREP"
  4817. ac_path_FGREP_max=$ac_count
  4818. fi
  4819. # 10*(2^10) chars as input seems more than enough
  4820. test $ac_count -gt 10 && break
  4821. done
  4822. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4823. esac
  4824. $ac_path_FGREP_found && break 3
  4825. done
  4826. done
  4827. done
  4828. IFS=$as_save_IFS
  4829. if test -z "$ac_cv_path_FGREP"; then
  4830. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4831. fi
  4832. else
  4833. ac_cv_path_FGREP=$FGREP
  4834. fi
  4835. fi
  4836. fi
  4837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4838. $as_echo "$ac_cv_path_FGREP" >&6; }
  4839. FGREP="$ac_cv_path_FGREP"
  4840. test -z "$GREP" && GREP=grep
  4841. # Check whether --with-gnu-ld was given.
  4842. if test "${with_gnu_ld+set}" = set; then :
  4843. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4844. else
  4845. with_gnu_ld=no
  4846. fi
  4847. ac_prog=ld
  4848. if test "$GCC" = yes; then
  4849. # Check if gcc -print-prog-name=ld gives a path.
  4850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4851. $as_echo_n "checking for ld used by $CC... " >&6; }
  4852. case $host in
  4853. *-*-mingw*)
  4854. # gcc leaves a trailing carriage return which upsets mingw
  4855. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4856. *)
  4857. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4858. esac
  4859. case $ac_prog in
  4860. # Accept absolute paths.
  4861. [\\/]* | ?:[\\/]*)
  4862. re_direlt='/[^/][^/]*/\.\./'
  4863. # Canonicalize the pathname of ld
  4864. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4865. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4866. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4867. done
  4868. test -z "$LD" && LD="$ac_prog"
  4869. ;;
  4870. "")
  4871. # If it fails, then pretend we aren't using GCC.
  4872. ac_prog=ld
  4873. ;;
  4874. *)
  4875. # If it is relative, then search for the first ld in PATH.
  4876. with_gnu_ld=unknown
  4877. ;;
  4878. esac
  4879. elif test "$with_gnu_ld" = yes; then
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4881. $as_echo_n "checking for GNU ld... " >&6; }
  4882. else
  4883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4884. $as_echo_n "checking for non-GNU ld... " >&6; }
  4885. fi
  4886. if ${lt_cv_path_LD+:} false; then :
  4887. $as_echo_n "(cached) " >&6
  4888. else
  4889. if test -z "$LD"; then
  4890. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4891. for ac_dir in $PATH; do
  4892. IFS="$lt_save_ifs"
  4893. test -z "$ac_dir" && ac_dir=.
  4894. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4895. lt_cv_path_LD="$ac_dir/$ac_prog"
  4896. # Check to see if the program is GNU ld. I'd rather use --version,
  4897. # but apparently some variants of GNU ld only accept -v.
  4898. # Break only if it was the GNU/non-GNU ld that we prefer.
  4899. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4900. *GNU* | *'with BFD'*)
  4901. test "$with_gnu_ld" != no && break
  4902. ;;
  4903. *)
  4904. test "$with_gnu_ld" != yes && break
  4905. ;;
  4906. esac
  4907. fi
  4908. done
  4909. IFS="$lt_save_ifs"
  4910. else
  4911. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4912. fi
  4913. fi
  4914. LD="$lt_cv_path_LD"
  4915. if test -n "$LD"; then
  4916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4917. $as_echo "$LD" >&6; }
  4918. else
  4919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4920. $as_echo "no" >&6; }
  4921. fi
  4922. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4924. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4925. if ${lt_cv_prog_gnu_ld+:} false; then :
  4926. $as_echo_n "(cached) " >&6
  4927. else
  4928. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4929. case `$LD -v 2>&1 </dev/null` in
  4930. *GNU* | *'with BFD'*)
  4931. lt_cv_prog_gnu_ld=yes
  4932. ;;
  4933. *)
  4934. lt_cv_prog_gnu_ld=no
  4935. ;;
  4936. esac
  4937. fi
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4939. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4940. with_gnu_ld=$lt_cv_prog_gnu_ld
  4941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4942. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4943. if ${lt_cv_path_NM+:} false; then :
  4944. $as_echo_n "(cached) " >&6
  4945. else
  4946. if test -n "$NM"; then
  4947. # Let the user override the test.
  4948. lt_cv_path_NM="$NM"
  4949. else
  4950. lt_nm_to_check="${ac_tool_prefix}nm"
  4951. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4952. lt_nm_to_check="$lt_nm_to_check nm"
  4953. fi
  4954. for lt_tmp_nm in $lt_nm_to_check; do
  4955. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4956. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4957. IFS="$lt_save_ifs"
  4958. test -z "$ac_dir" && ac_dir=.
  4959. tmp_nm="$ac_dir/$lt_tmp_nm"
  4960. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4961. # Check to see if the nm accepts a BSD-compat flag.
  4962. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4963. # nm: unknown option "B" ignored
  4964. # Tru64's nm complains that /dev/null is an invalid object file
  4965. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4966. */dev/null* | *'Invalid file or object type'*)
  4967. lt_cv_path_NM="$tmp_nm -B"
  4968. break
  4969. ;;
  4970. *)
  4971. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4972. */dev/null*)
  4973. lt_cv_path_NM="$tmp_nm -p"
  4974. break
  4975. ;;
  4976. *)
  4977. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4978. continue # so that we can try to find one that supports BSD flags
  4979. ;;
  4980. esac
  4981. ;;
  4982. esac
  4983. fi
  4984. done
  4985. IFS="$lt_save_ifs"
  4986. done
  4987. : ${lt_cv_path_NM=no}
  4988. fi
  4989. fi
  4990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4991. $as_echo "$lt_cv_path_NM" >&6; }
  4992. if test "$lt_cv_path_NM" != "no"; then
  4993. NM="$lt_cv_path_NM"
  4994. else
  4995. # Didn't find any BSD compatible name lister, look for dumpbin.
  4996. if test -n "$DUMPBIN"; then :
  4997. # Let the user override the test.
  4998. else
  4999. if test -n "$ac_tool_prefix"; then
  5000. for ac_prog in dumpbin "link -dump"
  5001. do
  5002. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5003. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5005. $as_echo_n "checking for $ac_word... " >&6; }
  5006. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5007. $as_echo_n "(cached) " >&6
  5008. else
  5009. if test -n "$DUMPBIN"; then
  5010. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5011. else
  5012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5013. for as_dir in $PATH
  5014. do
  5015. IFS=$as_save_IFS
  5016. test -z "$as_dir" && as_dir=.
  5017. for ac_exec_ext in '' $ac_executable_extensions; do
  5018. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5019. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5020. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5021. break 2
  5022. fi
  5023. done
  5024. done
  5025. IFS=$as_save_IFS
  5026. fi
  5027. fi
  5028. DUMPBIN=$ac_cv_prog_DUMPBIN
  5029. if test -n "$DUMPBIN"; then
  5030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5031. $as_echo "$DUMPBIN" >&6; }
  5032. else
  5033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5034. $as_echo "no" >&6; }
  5035. fi
  5036. test -n "$DUMPBIN" && break
  5037. done
  5038. fi
  5039. if test -z "$DUMPBIN"; then
  5040. ac_ct_DUMPBIN=$DUMPBIN
  5041. for ac_prog in dumpbin "link -dump"
  5042. do
  5043. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5044. set dummy $ac_prog; ac_word=$2
  5045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5046. $as_echo_n "checking for $ac_word... " >&6; }
  5047. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5048. $as_echo_n "(cached) " >&6
  5049. else
  5050. if test -n "$ac_ct_DUMPBIN"; then
  5051. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5052. else
  5053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5054. for as_dir in $PATH
  5055. do
  5056. IFS=$as_save_IFS
  5057. test -z "$as_dir" && as_dir=.
  5058. for ac_exec_ext in '' $ac_executable_extensions; do
  5059. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5060. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5061. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5062. break 2
  5063. fi
  5064. done
  5065. done
  5066. IFS=$as_save_IFS
  5067. fi
  5068. fi
  5069. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5070. if test -n "$ac_ct_DUMPBIN"; then
  5071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5072. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5073. else
  5074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5075. $as_echo "no" >&6; }
  5076. fi
  5077. test -n "$ac_ct_DUMPBIN" && break
  5078. done
  5079. if test "x$ac_ct_DUMPBIN" = x; then
  5080. DUMPBIN=":"
  5081. else
  5082. case $cross_compiling:$ac_tool_warned in
  5083. yes:)
  5084. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5085. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5086. ac_tool_warned=yes ;;
  5087. esac
  5088. DUMPBIN=$ac_ct_DUMPBIN
  5089. fi
  5090. fi
  5091. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5092. *COFF*)
  5093. DUMPBIN="$DUMPBIN -symbols"
  5094. ;;
  5095. *)
  5096. DUMPBIN=:
  5097. ;;
  5098. esac
  5099. fi
  5100. if test "$DUMPBIN" != ":"; then
  5101. NM="$DUMPBIN"
  5102. fi
  5103. fi
  5104. test -z "$NM" && NM=nm
  5105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5106. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5107. if ${lt_cv_nm_interface+:} false; then :
  5108. $as_echo_n "(cached) " >&6
  5109. else
  5110. lt_cv_nm_interface="BSD nm"
  5111. echo "int some_variable = 0;" > conftest.$ac_ext
  5112. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5113. (eval "$ac_compile" 2>conftest.err)
  5114. cat conftest.err >&5
  5115. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5116. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5117. cat conftest.err >&5
  5118. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5119. cat conftest.out >&5
  5120. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5121. lt_cv_nm_interface="MS dumpbin"
  5122. fi
  5123. rm -f conftest*
  5124. fi
  5125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5126. $as_echo "$lt_cv_nm_interface" >&6; }
  5127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5128. $as_echo_n "checking whether ln -s works... " >&6; }
  5129. LN_S=$as_ln_s
  5130. if test "$LN_S" = "ln -s"; then
  5131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5132. $as_echo "yes" >&6; }
  5133. else
  5134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5135. $as_echo "no, using $LN_S" >&6; }
  5136. fi
  5137. # find the maximum length of command line arguments
  5138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5139. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5140. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5141. $as_echo_n "(cached) " >&6
  5142. else
  5143. i=0
  5144. teststring="ABCD"
  5145. case $build_os in
  5146. msdosdjgpp*)
  5147. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5148. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5149. # during glob expansion). Even if it were fixed, the result of this
  5150. # check would be larger than it should be.
  5151. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5152. ;;
  5153. gnu*)
  5154. # Under GNU Hurd, this test is not required because there is
  5155. # no limit to the length of command line arguments.
  5156. # Libtool will interpret -1 as no limit whatsoever
  5157. lt_cv_sys_max_cmd_len=-1;
  5158. ;;
  5159. cygwin* | mingw* | cegcc*)
  5160. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5161. # about 5 minutes as the teststring grows exponentially.
  5162. # Worse, since 9x/ME are not pre-emptively multitasking,
  5163. # you end up with a "frozen" computer, even though with patience
  5164. # the test eventually succeeds (with a max line length of 256k).
  5165. # Instead, let's just punt: use the minimum linelength reported by
  5166. # all of the supported platforms: 8192 (on NT/2K/XP).
  5167. lt_cv_sys_max_cmd_len=8192;
  5168. ;;
  5169. mint*)
  5170. # On MiNT this can take a long time and run out of memory.
  5171. lt_cv_sys_max_cmd_len=8192;
  5172. ;;
  5173. amigaos*)
  5174. # On AmigaOS with pdksh, this test takes hours, literally.
  5175. # So we just punt and use a minimum line length of 8192.
  5176. lt_cv_sys_max_cmd_len=8192;
  5177. ;;
  5178. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5179. # This has been around since 386BSD, at least. Likely further.
  5180. if test -x /sbin/sysctl; then
  5181. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5182. elif test -x /usr/sbin/sysctl; then
  5183. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5184. else
  5185. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5186. fi
  5187. # And add a safety zone
  5188. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5189. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5190. ;;
  5191. interix*)
  5192. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5193. lt_cv_sys_max_cmd_len=196608
  5194. ;;
  5195. os2*)
  5196. # The test takes a long time on OS/2.
  5197. lt_cv_sys_max_cmd_len=8192
  5198. ;;
  5199. osf*)
  5200. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5201. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5202. # nice to cause kernel panics so lets avoid the loop below.
  5203. # First set a reasonable default.
  5204. lt_cv_sys_max_cmd_len=16384
  5205. #
  5206. if test -x /sbin/sysconfig; then
  5207. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5208. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5209. esac
  5210. fi
  5211. ;;
  5212. sco3.2v5*)
  5213. lt_cv_sys_max_cmd_len=102400
  5214. ;;
  5215. sysv5* | sco5v6* | sysv4.2uw2*)
  5216. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5217. if test -n "$kargmax"; then
  5218. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5219. else
  5220. lt_cv_sys_max_cmd_len=32768
  5221. fi
  5222. ;;
  5223. *)
  5224. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5225. if test -n "$lt_cv_sys_max_cmd_len" && \
  5226. test undefined != "$lt_cv_sys_max_cmd_len"; then
  5227. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5228. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5229. else
  5230. # Make teststring a little bigger before we do anything with it.
  5231. # a 1K string should be a reasonable start.
  5232. for i in 1 2 3 4 5 6 7 8 ; do
  5233. teststring=$teststring$teststring
  5234. done
  5235. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5236. # If test is not a shell built-in, we'll probably end up computing a
  5237. # maximum length that is only half of the actual maximum length, but
  5238. # we can't tell.
  5239. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5240. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5241. test $i != 17 # 1/2 MB should be enough
  5242. do
  5243. i=`expr $i + 1`
  5244. teststring=$teststring$teststring
  5245. done
  5246. # Only check the string length outside the loop.
  5247. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5248. teststring=
  5249. # Add a significant safety factor because C++ compilers can tack on
  5250. # massive amounts of additional arguments before passing them to the
  5251. # linker. It appears as though 1/2 is a usable value.
  5252. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5253. fi
  5254. ;;
  5255. esac
  5256. fi
  5257. if test -n $lt_cv_sys_max_cmd_len ; then
  5258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5259. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5260. else
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5262. $as_echo "none" >&6; }
  5263. fi
  5264. max_cmd_len=$lt_cv_sys_max_cmd_len
  5265. : ${CP="cp -f"}
  5266. : ${MV="mv -f"}
  5267. : ${RM="rm -f"}
  5268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5269. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5270. # Try some XSI features
  5271. xsi_shell=no
  5272. ( _lt_dummy="a/b/c"
  5273. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5274. = c,a/b,b/c, \
  5275. && eval 'test $(( 1 + 1 )) -eq 2 \
  5276. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5277. && xsi_shell=yes
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5279. $as_echo "$xsi_shell" >&6; }
  5280. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5281. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5282. lt_shell_append=no
  5283. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5284. >/dev/null 2>&1 \
  5285. && lt_shell_append=yes
  5286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5287. $as_echo "$lt_shell_append" >&6; }
  5288. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5289. lt_unset=unset
  5290. else
  5291. lt_unset=false
  5292. fi
  5293. # test EBCDIC or ASCII
  5294. case `echo X|tr X '\101'` in
  5295. A) # ASCII based system
  5296. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5297. lt_SP2NL='tr \040 \012'
  5298. lt_NL2SP='tr \015\012 \040\040'
  5299. ;;
  5300. *) # EBCDIC based system
  5301. lt_SP2NL='tr \100 \n'
  5302. lt_NL2SP='tr \r\n \100\100'
  5303. ;;
  5304. esac
  5305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5306. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5307. if ${lt_cv_to_host_file_cmd+:} false; then :
  5308. $as_echo_n "(cached) " >&6
  5309. else
  5310. case $host in
  5311. *-*-mingw* )
  5312. case $build in
  5313. *-*-mingw* ) # actually msys
  5314. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5315. ;;
  5316. *-*-cygwin* )
  5317. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5318. ;;
  5319. * ) # otherwise, assume *nix
  5320. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5321. ;;
  5322. esac
  5323. ;;
  5324. *-*-cygwin* )
  5325. case $build in
  5326. *-*-mingw* ) # actually msys
  5327. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5328. ;;
  5329. *-*-cygwin* )
  5330. lt_cv_to_host_file_cmd=func_convert_file_noop
  5331. ;;
  5332. * ) # otherwise, assume *nix
  5333. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5334. ;;
  5335. esac
  5336. ;;
  5337. * ) # unhandled hosts (and "normal" native builds)
  5338. lt_cv_to_host_file_cmd=func_convert_file_noop
  5339. ;;
  5340. esac
  5341. fi
  5342. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5344. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5346. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5347. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5348. $as_echo_n "(cached) " >&6
  5349. else
  5350. #assume ordinary cross tools, or native build.
  5351. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5352. case $host in
  5353. *-*-mingw* )
  5354. case $build in
  5355. *-*-mingw* ) # actually msys
  5356. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5357. ;;
  5358. esac
  5359. ;;
  5360. esac
  5361. fi
  5362. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5364. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5366. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5367. if ${lt_cv_ld_reload_flag+:} false; then :
  5368. $as_echo_n "(cached) " >&6
  5369. else
  5370. lt_cv_ld_reload_flag='-r'
  5371. fi
  5372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5373. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5374. reload_flag=$lt_cv_ld_reload_flag
  5375. case $reload_flag in
  5376. "" | " "*) ;;
  5377. *) reload_flag=" $reload_flag" ;;
  5378. esac
  5379. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5380. case $host_os in
  5381. cygwin* | mingw* | pw32* | cegcc*)
  5382. if test "$GCC" != yes; then
  5383. reload_cmds=false
  5384. fi
  5385. ;;
  5386. darwin*)
  5387. if test "$GCC" = yes; then
  5388. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5389. else
  5390. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5391. fi
  5392. ;;
  5393. esac
  5394. if test -n "$ac_tool_prefix"; then
  5395. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5396. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5398. $as_echo_n "checking for $ac_word... " >&6; }
  5399. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5400. $as_echo_n "(cached) " >&6
  5401. else
  5402. if test -n "$OBJDUMP"; then
  5403. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5404. else
  5405. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5406. for as_dir in $PATH
  5407. do
  5408. IFS=$as_save_IFS
  5409. test -z "$as_dir" && as_dir=.
  5410. for ac_exec_ext in '' $ac_executable_extensions; do
  5411. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5412. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5413. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5414. break 2
  5415. fi
  5416. done
  5417. done
  5418. IFS=$as_save_IFS
  5419. fi
  5420. fi
  5421. OBJDUMP=$ac_cv_prog_OBJDUMP
  5422. if test -n "$OBJDUMP"; then
  5423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5424. $as_echo "$OBJDUMP" >&6; }
  5425. else
  5426. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5427. $as_echo "no" >&6; }
  5428. fi
  5429. fi
  5430. if test -z "$ac_cv_prog_OBJDUMP"; then
  5431. ac_ct_OBJDUMP=$OBJDUMP
  5432. # Extract the first word of "objdump", so it can be a program name with args.
  5433. set dummy objdump; ac_word=$2
  5434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5435. $as_echo_n "checking for $ac_word... " >&6; }
  5436. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5437. $as_echo_n "(cached) " >&6
  5438. else
  5439. if test -n "$ac_ct_OBJDUMP"; then
  5440. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5441. else
  5442. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5443. for as_dir in $PATH
  5444. do
  5445. IFS=$as_save_IFS
  5446. test -z "$as_dir" && as_dir=.
  5447. for ac_exec_ext in '' $ac_executable_extensions; do
  5448. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5449. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5450. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5451. break 2
  5452. fi
  5453. done
  5454. done
  5455. IFS=$as_save_IFS
  5456. fi
  5457. fi
  5458. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5459. if test -n "$ac_ct_OBJDUMP"; then
  5460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5461. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5462. else
  5463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5464. $as_echo "no" >&6; }
  5465. fi
  5466. if test "x$ac_ct_OBJDUMP" = x; then
  5467. OBJDUMP="false"
  5468. else
  5469. case $cross_compiling:$ac_tool_warned in
  5470. yes:)
  5471. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5472. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5473. ac_tool_warned=yes ;;
  5474. esac
  5475. OBJDUMP=$ac_ct_OBJDUMP
  5476. fi
  5477. else
  5478. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5479. fi
  5480. test -z "$OBJDUMP" && OBJDUMP=objdump
  5481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5482. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5483. if ${lt_cv_deplibs_check_method+:} false; then :
  5484. $as_echo_n "(cached) " >&6
  5485. else
  5486. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5487. lt_cv_file_magic_test_file=
  5488. lt_cv_deplibs_check_method='unknown'
  5489. # Need to set the preceding variable on all platforms that support
  5490. # interlibrary dependencies.
  5491. # 'none' -- dependencies not supported.
  5492. # `unknown' -- same as none, but documents that we really don't know.
  5493. # 'pass_all' -- all dependencies passed with no checks.
  5494. # 'test_compile' -- check by making test program.
  5495. # 'file_magic [[regex]]' -- check by looking for files in library path
  5496. # which responds to the $file_magic_cmd with a given extended regex.
  5497. # If you have `file' or equivalent on your system and you're not sure
  5498. # whether `pass_all' will *always* work, you probably want this one.
  5499. case $host_os in
  5500. aix[4-9]*)
  5501. lt_cv_deplibs_check_method=pass_all
  5502. ;;
  5503. beos*)
  5504. lt_cv_deplibs_check_method=pass_all
  5505. ;;
  5506. bsdi[45]*)
  5507. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5508. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5509. lt_cv_file_magic_test_file=/shlib/libc.so
  5510. ;;
  5511. cygwin*)
  5512. # func_win32_libid is a shell function defined in ltmain.sh
  5513. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5514. lt_cv_file_magic_cmd='func_win32_libid'
  5515. ;;
  5516. mingw* | pw32*)
  5517. # Base MSYS/MinGW do not provide the 'file' command needed by
  5518. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5519. # unless we find 'file', for example because we are cross-compiling.
  5520. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5521. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5522. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5523. lt_cv_file_magic_cmd='func_win32_libid'
  5524. else
  5525. # Keep this pattern in sync with the one in func_win32_libid.
  5526. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5527. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5528. fi
  5529. ;;
  5530. cegcc*)
  5531. # use the weaker test based on 'objdump'. See mingw*.
  5532. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5533. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5534. ;;
  5535. darwin* | rhapsody*)
  5536. lt_cv_deplibs_check_method=pass_all
  5537. ;;
  5538. freebsd* | dragonfly*)
  5539. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5540. case $host_cpu in
  5541. i*86 )
  5542. # Not sure whether the presence of OpenBSD here was a mistake.
  5543. # Let's accept both of them until this is cleared up.
  5544. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5545. lt_cv_file_magic_cmd=/usr/bin/file
  5546. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5547. ;;
  5548. esac
  5549. else
  5550. lt_cv_deplibs_check_method=pass_all
  5551. fi
  5552. ;;
  5553. haiku*)
  5554. lt_cv_deplibs_check_method=pass_all
  5555. ;;
  5556. hpux10.20* | hpux11*)
  5557. lt_cv_file_magic_cmd=/usr/bin/file
  5558. case $host_cpu in
  5559. ia64*)
  5560. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5561. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5562. ;;
  5563. hppa*64*)
  5564. 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]'
  5565. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5566. ;;
  5567. *)
  5568. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5569. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5570. ;;
  5571. esac
  5572. ;;
  5573. interix[3-9]*)
  5574. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5575. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5576. ;;
  5577. irix5* | irix6* | nonstopux*)
  5578. case $LD in
  5579. *-32|*"-32 ") libmagic=32-bit;;
  5580. *-n32|*"-n32 ") libmagic=N32;;
  5581. *-64|*"-64 ") libmagic=64-bit;;
  5582. *) libmagic=never-match;;
  5583. esac
  5584. lt_cv_deplibs_check_method=pass_all
  5585. ;;
  5586. # This must be glibc/ELF.
  5587. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  5588. lt_cv_deplibs_check_method=pass_all
  5589. ;;
  5590. netbsd* | netbsdelf*-gnu)
  5591. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5592. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5593. else
  5594. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5595. fi
  5596. ;;
  5597. newos6*)
  5598. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5599. lt_cv_file_magic_cmd=/usr/bin/file
  5600. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5601. ;;
  5602. *nto* | *qnx*)
  5603. lt_cv_deplibs_check_method=pass_all
  5604. ;;
  5605. openbsd*)
  5606. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5607. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5608. else
  5609. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5610. fi
  5611. ;;
  5612. osf3* | osf4* | osf5*)
  5613. lt_cv_deplibs_check_method=pass_all
  5614. ;;
  5615. rdos*)
  5616. lt_cv_deplibs_check_method=pass_all
  5617. ;;
  5618. solaris*)
  5619. lt_cv_deplibs_check_method=pass_all
  5620. ;;
  5621. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5622. lt_cv_deplibs_check_method=pass_all
  5623. ;;
  5624. sysv4 | sysv4.3*)
  5625. case $host_vendor in
  5626. motorola)
  5627. 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]'
  5628. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5629. ;;
  5630. ncr)
  5631. lt_cv_deplibs_check_method=pass_all
  5632. ;;
  5633. sequent)
  5634. lt_cv_file_magic_cmd='/bin/file'
  5635. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5636. ;;
  5637. sni)
  5638. lt_cv_file_magic_cmd='/bin/file'
  5639. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5640. lt_cv_file_magic_test_file=/lib/libc.so
  5641. ;;
  5642. siemens)
  5643. lt_cv_deplibs_check_method=pass_all
  5644. ;;
  5645. pc)
  5646. lt_cv_deplibs_check_method=pass_all
  5647. ;;
  5648. esac
  5649. ;;
  5650. tpf*)
  5651. lt_cv_deplibs_check_method=pass_all
  5652. ;;
  5653. esac
  5654. fi
  5655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5656. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5657. file_magic_glob=
  5658. want_nocaseglob=no
  5659. if test "$build" = "$host"; then
  5660. case $host_os in
  5661. mingw* | pw32*)
  5662. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5663. want_nocaseglob=yes
  5664. else
  5665. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5666. fi
  5667. ;;
  5668. esac
  5669. fi
  5670. file_magic_cmd=$lt_cv_file_magic_cmd
  5671. deplibs_check_method=$lt_cv_deplibs_check_method
  5672. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5673. if test -n "$ac_tool_prefix"; then
  5674. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5675. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5677. $as_echo_n "checking for $ac_word... " >&6; }
  5678. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5679. $as_echo_n "(cached) " >&6
  5680. else
  5681. if test -n "$DLLTOOL"; then
  5682. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5683. else
  5684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5685. for as_dir in $PATH
  5686. do
  5687. IFS=$as_save_IFS
  5688. test -z "$as_dir" && as_dir=.
  5689. for ac_exec_ext in '' $ac_executable_extensions; do
  5690. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5691. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5692. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5693. break 2
  5694. fi
  5695. done
  5696. done
  5697. IFS=$as_save_IFS
  5698. fi
  5699. fi
  5700. DLLTOOL=$ac_cv_prog_DLLTOOL
  5701. if test -n "$DLLTOOL"; then
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5703. $as_echo "$DLLTOOL" >&6; }
  5704. else
  5705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5706. $as_echo "no" >&6; }
  5707. fi
  5708. fi
  5709. if test -z "$ac_cv_prog_DLLTOOL"; then
  5710. ac_ct_DLLTOOL=$DLLTOOL
  5711. # Extract the first word of "dlltool", so it can be a program name with args.
  5712. set dummy dlltool; ac_word=$2
  5713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5714. $as_echo_n "checking for $ac_word... " >&6; }
  5715. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5716. $as_echo_n "(cached) " >&6
  5717. else
  5718. if test -n "$ac_ct_DLLTOOL"; then
  5719. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5720. else
  5721. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5722. for as_dir in $PATH
  5723. do
  5724. IFS=$as_save_IFS
  5725. test -z "$as_dir" && as_dir=.
  5726. for ac_exec_ext in '' $ac_executable_extensions; do
  5727. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5728. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5729. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5730. break 2
  5731. fi
  5732. done
  5733. done
  5734. IFS=$as_save_IFS
  5735. fi
  5736. fi
  5737. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5738. if test -n "$ac_ct_DLLTOOL"; then
  5739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5740. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5741. else
  5742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5743. $as_echo "no" >&6; }
  5744. fi
  5745. if test "x$ac_ct_DLLTOOL" = x; then
  5746. DLLTOOL="false"
  5747. else
  5748. case $cross_compiling:$ac_tool_warned in
  5749. yes:)
  5750. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5751. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5752. ac_tool_warned=yes ;;
  5753. esac
  5754. DLLTOOL=$ac_ct_DLLTOOL
  5755. fi
  5756. else
  5757. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5758. fi
  5759. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5761. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5762. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5763. $as_echo_n "(cached) " >&6
  5764. else
  5765. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5766. case $host_os in
  5767. cygwin* | mingw* | pw32* | cegcc*)
  5768. # two different shell functions defined in ltmain.sh
  5769. # decide which to use based on capabilities of $DLLTOOL
  5770. case `$DLLTOOL --help 2>&1` in
  5771. *--identify-strict*)
  5772. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5773. ;;
  5774. *)
  5775. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5776. ;;
  5777. esac
  5778. ;;
  5779. *)
  5780. # fallback: assume linklib IS sharedlib
  5781. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5782. ;;
  5783. esac
  5784. fi
  5785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5786. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5787. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5788. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5789. if test -n "$ac_tool_prefix"; then
  5790. for ac_prog in ar
  5791. do
  5792. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5793. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5794. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5795. $as_echo_n "checking for $ac_word... " >&6; }
  5796. if ${ac_cv_prog_AR+:} false; then :
  5797. $as_echo_n "(cached) " >&6
  5798. else
  5799. if test -n "$AR"; then
  5800. ac_cv_prog_AR="$AR" # Let the user override the test.
  5801. else
  5802. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5803. for as_dir in $PATH
  5804. do
  5805. IFS=$as_save_IFS
  5806. test -z "$as_dir" && as_dir=.
  5807. for ac_exec_ext in '' $ac_executable_extensions; do
  5808. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5809. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5810. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5811. break 2
  5812. fi
  5813. done
  5814. done
  5815. IFS=$as_save_IFS
  5816. fi
  5817. fi
  5818. AR=$ac_cv_prog_AR
  5819. if test -n "$AR"; then
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5821. $as_echo "$AR" >&6; }
  5822. else
  5823. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5824. $as_echo "no" >&6; }
  5825. fi
  5826. test -n "$AR" && break
  5827. done
  5828. fi
  5829. if test -z "$AR"; then
  5830. ac_ct_AR=$AR
  5831. for ac_prog in ar
  5832. do
  5833. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5834. set dummy $ac_prog; ac_word=$2
  5835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5836. $as_echo_n "checking for $ac_word... " >&6; }
  5837. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5838. $as_echo_n "(cached) " >&6
  5839. else
  5840. if test -n "$ac_ct_AR"; then
  5841. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5842. else
  5843. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5844. for as_dir in $PATH
  5845. do
  5846. IFS=$as_save_IFS
  5847. test -z "$as_dir" && as_dir=.
  5848. for ac_exec_ext in '' $ac_executable_extensions; do
  5849. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5850. ac_cv_prog_ac_ct_AR="$ac_prog"
  5851. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5852. break 2
  5853. fi
  5854. done
  5855. done
  5856. IFS=$as_save_IFS
  5857. fi
  5858. fi
  5859. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5860. if test -n "$ac_ct_AR"; then
  5861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5862. $as_echo "$ac_ct_AR" >&6; }
  5863. else
  5864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5865. $as_echo "no" >&6; }
  5866. fi
  5867. test -n "$ac_ct_AR" && break
  5868. done
  5869. if test "x$ac_ct_AR" = x; then
  5870. AR="false"
  5871. else
  5872. case $cross_compiling:$ac_tool_warned in
  5873. yes:)
  5874. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5875. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5876. ac_tool_warned=yes ;;
  5877. esac
  5878. AR=$ac_ct_AR
  5879. fi
  5880. fi
  5881. : ${AR=ar}
  5882. : ${AR_FLAGS=cru}
  5883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5884. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5885. if ${lt_cv_ar_at_file+:} false; then :
  5886. $as_echo_n "(cached) " >&6
  5887. else
  5888. lt_cv_ar_at_file=no
  5889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5890. /* end confdefs.h. */
  5891. int
  5892. main ()
  5893. {
  5894. ;
  5895. return 0;
  5896. }
  5897. _ACEOF
  5898. if ac_fn_c_try_compile "$LINENO"; then :
  5899. echo conftest.$ac_objext > conftest.lst
  5900. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5901. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5902. (eval $lt_ar_try) 2>&5
  5903. ac_status=$?
  5904. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5905. test $ac_status = 0; }
  5906. if test "$ac_status" -eq 0; then
  5907. # Ensure the archiver fails upon bogus file names.
  5908. rm -f conftest.$ac_objext libconftest.a
  5909. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5910. (eval $lt_ar_try) 2>&5
  5911. ac_status=$?
  5912. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5913. test $ac_status = 0; }
  5914. if test "$ac_status" -ne 0; then
  5915. lt_cv_ar_at_file=@
  5916. fi
  5917. fi
  5918. rm -f conftest.* libconftest.a
  5919. fi
  5920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5921. fi
  5922. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5923. $as_echo "$lt_cv_ar_at_file" >&6; }
  5924. if test "x$lt_cv_ar_at_file" = xno; then
  5925. archiver_list_spec=
  5926. else
  5927. archiver_list_spec=$lt_cv_ar_at_file
  5928. fi
  5929. if test -n "$ac_tool_prefix"; then
  5930. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5931. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5933. $as_echo_n "checking for $ac_word... " >&6; }
  5934. if ${ac_cv_prog_STRIP+:} false; then :
  5935. $as_echo_n "(cached) " >&6
  5936. else
  5937. if test -n "$STRIP"; then
  5938. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5939. else
  5940. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5941. for as_dir in $PATH
  5942. do
  5943. IFS=$as_save_IFS
  5944. test -z "$as_dir" && as_dir=.
  5945. for ac_exec_ext in '' $ac_executable_extensions; do
  5946. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5947. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5948. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5949. break 2
  5950. fi
  5951. done
  5952. done
  5953. IFS=$as_save_IFS
  5954. fi
  5955. fi
  5956. STRIP=$ac_cv_prog_STRIP
  5957. if test -n "$STRIP"; then
  5958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5959. $as_echo "$STRIP" >&6; }
  5960. else
  5961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5962. $as_echo "no" >&6; }
  5963. fi
  5964. fi
  5965. if test -z "$ac_cv_prog_STRIP"; then
  5966. ac_ct_STRIP=$STRIP
  5967. # Extract the first word of "strip", so it can be a program name with args.
  5968. set dummy strip; ac_word=$2
  5969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5970. $as_echo_n "checking for $ac_word... " >&6; }
  5971. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5972. $as_echo_n "(cached) " >&6
  5973. else
  5974. if test -n "$ac_ct_STRIP"; then
  5975. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5976. else
  5977. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5978. for as_dir in $PATH
  5979. do
  5980. IFS=$as_save_IFS
  5981. test -z "$as_dir" && as_dir=.
  5982. for ac_exec_ext in '' $ac_executable_extensions; do
  5983. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5984. ac_cv_prog_ac_ct_STRIP="strip"
  5985. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5986. break 2
  5987. fi
  5988. done
  5989. done
  5990. IFS=$as_save_IFS
  5991. fi
  5992. fi
  5993. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5994. if test -n "$ac_ct_STRIP"; then
  5995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5996. $as_echo "$ac_ct_STRIP" >&6; }
  5997. else
  5998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5999. $as_echo "no" >&6; }
  6000. fi
  6001. if test "x$ac_ct_STRIP" = x; then
  6002. STRIP=":"
  6003. else
  6004. case $cross_compiling:$ac_tool_warned in
  6005. yes:)
  6006. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6007. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6008. ac_tool_warned=yes ;;
  6009. esac
  6010. STRIP=$ac_ct_STRIP
  6011. fi
  6012. else
  6013. STRIP="$ac_cv_prog_STRIP"
  6014. fi
  6015. test -z "$STRIP" && STRIP=:
  6016. if test -n "$ac_tool_prefix"; then
  6017. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6018. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6020. $as_echo_n "checking for $ac_word... " >&6; }
  6021. if ${ac_cv_prog_RANLIB+:} false; then :
  6022. $as_echo_n "(cached) " >&6
  6023. else
  6024. if test -n "$RANLIB"; then
  6025. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6026. else
  6027. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6028. for as_dir in $PATH
  6029. do
  6030. IFS=$as_save_IFS
  6031. test -z "$as_dir" && as_dir=.
  6032. for ac_exec_ext in '' $ac_executable_extensions; do
  6033. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6034. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6035. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6036. break 2
  6037. fi
  6038. done
  6039. done
  6040. IFS=$as_save_IFS
  6041. fi
  6042. fi
  6043. RANLIB=$ac_cv_prog_RANLIB
  6044. if test -n "$RANLIB"; then
  6045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6046. $as_echo "$RANLIB" >&6; }
  6047. else
  6048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6049. $as_echo "no" >&6; }
  6050. fi
  6051. fi
  6052. if test -z "$ac_cv_prog_RANLIB"; then
  6053. ac_ct_RANLIB=$RANLIB
  6054. # Extract the first word of "ranlib", so it can be a program name with args.
  6055. set dummy ranlib; ac_word=$2
  6056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6057. $as_echo_n "checking for $ac_word... " >&6; }
  6058. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6059. $as_echo_n "(cached) " >&6
  6060. else
  6061. if test -n "$ac_ct_RANLIB"; then
  6062. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6063. else
  6064. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6065. for as_dir in $PATH
  6066. do
  6067. IFS=$as_save_IFS
  6068. test -z "$as_dir" && as_dir=.
  6069. for ac_exec_ext in '' $ac_executable_extensions; do
  6070. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6071. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6072. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6073. break 2
  6074. fi
  6075. done
  6076. done
  6077. IFS=$as_save_IFS
  6078. fi
  6079. fi
  6080. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6081. if test -n "$ac_ct_RANLIB"; then
  6082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6083. $as_echo "$ac_ct_RANLIB" >&6; }
  6084. else
  6085. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6086. $as_echo "no" >&6; }
  6087. fi
  6088. if test "x$ac_ct_RANLIB" = x; then
  6089. RANLIB=":"
  6090. else
  6091. case $cross_compiling:$ac_tool_warned in
  6092. yes:)
  6093. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6094. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6095. ac_tool_warned=yes ;;
  6096. esac
  6097. RANLIB=$ac_ct_RANLIB
  6098. fi
  6099. else
  6100. RANLIB="$ac_cv_prog_RANLIB"
  6101. fi
  6102. test -z "$RANLIB" && RANLIB=:
  6103. # Determine commands to create old-style static archives.
  6104. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6105. old_postinstall_cmds='chmod 644 $oldlib'
  6106. old_postuninstall_cmds=
  6107. if test -n "$RANLIB"; then
  6108. case $host_os in
  6109. openbsd*)
  6110. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6111. ;;
  6112. *)
  6113. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6114. ;;
  6115. esac
  6116. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6117. fi
  6118. case $host_os in
  6119. darwin*)
  6120. lock_old_archive_extraction=yes ;;
  6121. *)
  6122. lock_old_archive_extraction=no ;;
  6123. esac
  6124. # If no C compiler was specified, use CC.
  6125. LTCC=${LTCC-"$CC"}
  6126. # If no C compiler flags were specified, use CFLAGS.
  6127. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6128. # Allow CC to be a program name with arguments.
  6129. compiler=$CC
  6130. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6132. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6133. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6134. $as_echo_n "(cached) " >&6
  6135. else
  6136. # These are sane defaults that work on at least a few old systems.
  6137. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6138. # Character class describing NM global symbol codes.
  6139. symcode='[BCDEGRST]'
  6140. # Regexp to match symbols that can be accessed directly from C.
  6141. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6142. # Define system-specific variables.
  6143. case $host_os in
  6144. aix*)
  6145. symcode='[BCDT]'
  6146. ;;
  6147. cygwin* | mingw* | pw32* | cegcc*)
  6148. symcode='[ABCDGISTW]'
  6149. ;;
  6150. hpux*)
  6151. if test "$host_cpu" = ia64; then
  6152. symcode='[ABCDEGRST]'
  6153. fi
  6154. ;;
  6155. irix* | nonstopux*)
  6156. symcode='[BCDEGRST]'
  6157. ;;
  6158. osf*)
  6159. symcode='[BCDEGQRST]'
  6160. ;;
  6161. solaris*)
  6162. symcode='[BDRT]'
  6163. ;;
  6164. sco3.2v5*)
  6165. symcode='[DT]'
  6166. ;;
  6167. sysv4.2uw2*)
  6168. symcode='[DT]'
  6169. ;;
  6170. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6171. symcode='[ABDT]'
  6172. ;;
  6173. sysv4)
  6174. symcode='[DFNSTU]'
  6175. ;;
  6176. esac
  6177. # If we're using GNU nm, then use its standard symbol codes.
  6178. case `$NM -V 2>&1` in
  6179. *GNU* | *'with BFD'*)
  6180. symcode='[ABCDGIRSTW]' ;;
  6181. esac
  6182. # Transform an extracted symbol line into a proper C declaration.
  6183. # Some systems (esp. on ia64) link data and code symbols differently,
  6184. # so use this general approach.
  6185. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6186. # Transform an extracted symbol line into symbol name and symbol address
  6187. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6188. 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'"
  6189. # Handle CRLF in mingw tool chain
  6190. opt_cr=
  6191. case $build_os in
  6192. mingw*)
  6193. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6194. ;;
  6195. esac
  6196. # Try without a prefix underscore, then with it.
  6197. for ac_symprfx in "" "_"; do
  6198. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6199. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6200. # Write the raw and C identifiers.
  6201. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6202. # Fake it for dumpbin and say T for any non-static function
  6203. # and D for any global variable.
  6204. # Also find C++ and __fastcall symbols from MSVC++,
  6205. # which start with @ or ?.
  6206. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6207. " {last_section=section; section=\$ 3};"\
  6208. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6209. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6210. " \$ 0!~/External *\|/{next};"\
  6211. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6212. " {if(hide[section]) next};"\
  6213. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6214. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6215. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6216. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6217. " ' prfx=^$ac_symprfx"
  6218. else
  6219. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6220. fi
  6221. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6222. # Check to see that the pipe works correctly.
  6223. pipe_works=no
  6224. rm -f conftest*
  6225. cat > conftest.$ac_ext <<_LT_EOF
  6226. #ifdef __cplusplus
  6227. extern "C" {
  6228. #endif
  6229. char nm_test_var;
  6230. void nm_test_func(void);
  6231. void nm_test_func(void){}
  6232. #ifdef __cplusplus
  6233. }
  6234. #endif
  6235. int main(){nm_test_var='a';nm_test_func();return(0);}
  6236. _LT_EOF
  6237. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6238. (eval $ac_compile) 2>&5
  6239. ac_status=$?
  6240. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6241. test $ac_status = 0; }; then
  6242. # Now try to grab the symbols.
  6243. nlist=conftest.nm
  6244. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6245. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6246. ac_status=$?
  6247. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6248. test $ac_status = 0; } && test -s "$nlist"; then
  6249. # Try sorting and uniquifying the output.
  6250. if sort "$nlist" | uniq > "$nlist"T; then
  6251. mv -f "$nlist"T "$nlist"
  6252. else
  6253. rm -f "$nlist"T
  6254. fi
  6255. # Make sure that we snagged all the symbols we need.
  6256. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6257. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6258. cat <<_LT_EOF > conftest.$ac_ext
  6259. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6260. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6261. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6262. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6263. # define LT_DLSYM_CONST
  6264. #elif defined(__osf__)
  6265. /* This system does not cope well with relocations in const data. */
  6266. # define LT_DLSYM_CONST
  6267. #else
  6268. # define LT_DLSYM_CONST const
  6269. #endif
  6270. #ifdef __cplusplus
  6271. extern "C" {
  6272. #endif
  6273. _LT_EOF
  6274. # Now generate the symbol file.
  6275. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6276. cat <<_LT_EOF >> conftest.$ac_ext
  6277. /* The mapping between symbol names and symbols. */
  6278. LT_DLSYM_CONST struct {
  6279. const char *name;
  6280. void *address;
  6281. }
  6282. lt__PROGRAM__LTX_preloaded_symbols[] =
  6283. {
  6284. { "@PROGRAM@", (void *) 0 },
  6285. _LT_EOF
  6286. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6287. cat <<\_LT_EOF >> conftest.$ac_ext
  6288. {0, (void *) 0}
  6289. };
  6290. /* This works around a problem in FreeBSD linker */
  6291. #ifdef FREEBSD_WORKAROUND
  6292. static const void *lt_preloaded_setup() {
  6293. return lt__PROGRAM__LTX_preloaded_symbols;
  6294. }
  6295. #endif
  6296. #ifdef __cplusplus
  6297. }
  6298. #endif
  6299. _LT_EOF
  6300. # Now try linking the two files.
  6301. mv conftest.$ac_objext conftstm.$ac_objext
  6302. lt_globsym_save_LIBS=$LIBS
  6303. lt_globsym_save_CFLAGS=$CFLAGS
  6304. LIBS="conftstm.$ac_objext"
  6305. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6306. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6307. (eval $ac_link) 2>&5
  6308. ac_status=$?
  6309. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6310. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6311. pipe_works=yes
  6312. fi
  6313. LIBS=$lt_globsym_save_LIBS
  6314. CFLAGS=$lt_globsym_save_CFLAGS
  6315. else
  6316. echo "cannot find nm_test_func in $nlist" >&5
  6317. fi
  6318. else
  6319. echo "cannot find nm_test_var in $nlist" >&5
  6320. fi
  6321. else
  6322. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6323. fi
  6324. else
  6325. echo "$progname: failed program was:" >&5
  6326. cat conftest.$ac_ext >&5
  6327. fi
  6328. rm -rf conftest* conftst*
  6329. # Do not use the global_symbol_pipe unless it works.
  6330. if test "$pipe_works" = yes; then
  6331. break
  6332. else
  6333. lt_cv_sys_global_symbol_pipe=
  6334. fi
  6335. done
  6336. fi
  6337. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6338. lt_cv_sys_global_symbol_to_cdecl=
  6339. fi
  6340. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6342. $as_echo "failed" >&6; }
  6343. else
  6344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6345. $as_echo "ok" >&6; }
  6346. fi
  6347. # Response file support.
  6348. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6349. nm_file_list_spec='@'
  6350. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6351. nm_file_list_spec='@'
  6352. fi
  6353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6354. $as_echo_n "checking for sysroot... " >&6; }
  6355. # Check whether --with-sysroot was given.
  6356. if test "${with_sysroot+set}" = set; then :
  6357. withval=$with_sysroot;
  6358. else
  6359. with_sysroot=no
  6360. fi
  6361. lt_sysroot=
  6362. case ${with_sysroot} in #(
  6363. yes)
  6364. if test "$GCC" = yes; then
  6365. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6366. fi
  6367. ;; #(
  6368. /*)
  6369. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6370. ;; #(
  6371. no|'')
  6372. ;; #(
  6373. *)
  6374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6375. $as_echo "${with_sysroot}" >&6; }
  6376. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6377. ;;
  6378. esac
  6379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6380. $as_echo "${lt_sysroot:-no}" >&6; }
  6381. # Check whether --enable-libtool-lock was given.
  6382. if test "${enable_libtool_lock+set}" = set; then :
  6383. enableval=$enable_libtool_lock;
  6384. fi
  6385. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6386. # Some flags need to be propagated to the compiler or linker for good
  6387. # libtool support.
  6388. case $host in
  6389. ia64-*-hpux*)
  6390. # Find out which ABI we are using.
  6391. echo 'int i;' > conftest.$ac_ext
  6392. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6393. (eval $ac_compile) 2>&5
  6394. ac_status=$?
  6395. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6396. test $ac_status = 0; }; then
  6397. case `/usr/bin/file conftest.$ac_objext` in
  6398. *ELF-32*)
  6399. HPUX_IA64_MODE="32"
  6400. ;;
  6401. *ELF-64*)
  6402. HPUX_IA64_MODE="64"
  6403. ;;
  6404. esac
  6405. fi
  6406. rm -rf conftest*
  6407. ;;
  6408. *-*-irix6*)
  6409. # Find out which ABI we are using.
  6410. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6411. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6412. (eval $ac_compile) 2>&5
  6413. ac_status=$?
  6414. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6415. test $ac_status = 0; }; then
  6416. if test "$lt_cv_prog_gnu_ld" = yes; then
  6417. case `/usr/bin/file conftest.$ac_objext` in
  6418. *32-bit*)
  6419. LD="${LD-ld} -melf32bsmip"
  6420. ;;
  6421. *N32*)
  6422. LD="${LD-ld} -melf32bmipn32"
  6423. ;;
  6424. *64-bit*)
  6425. LD="${LD-ld} -melf64bmip"
  6426. ;;
  6427. esac
  6428. else
  6429. case `/usr/bin/file conftest.$ac_objext` in
  6430. *32-bit*)
  6431. LD="${LD-ld} -32"
  6432. ;;
  6433. *N32*)
  6434. LD="${LD-ld} -n32"
  6435. ;;
  6436. *64-bit*)
  6437. LD="${LD-ld} -64"
  6438. ;;
  6439. esac
  6440. fi
  6441. fi
  6442. rm -rf conftest*
  6443. ;;
  6444. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6445. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6446. # Find out which ABI we are using.
  6447. echo 'int i;' > conftest.$ac_ext
  6448. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6449. (eval $ac_compile) 2>&5
  6450. ac_status=$?
  6451. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6452. test $ac_status = 0; }; then
  6453. case `/usr/bin/file conftest.o` in
  6454. *32-bit*)
  6455. case $host in
  6456. x86_64-*kfreebsd*-gnu)
  6457. LD="${LD-ld} -m elf_i386_fbsd"
  6458. ;;
  6459. x86_64-*linux*)
  6460. case `/usr/bin/file conftest.o` in
  6461. *x86-64*)
  6462. LD="${LD-ld} -m elf32_x86_64"
  6463. ;;
  6464. *)
  6465. LD="${LD-ld} -m elf_i386"
  6466. ;;
  6467. esac
  6468. ;;
  6469. powerpc64le-*)
  6470. LD="${LD-ld} -m elf32lppclinux"
  6471. ;;
  6472. powerpc64-*)
  6473. LD="${LD-ld} -m elf32ppclinux"
  6474. ;;
  6475. s390x-*linux*)
  6476. LD="${LD-ld} -m elf_s390"
  6477. ;;
  6478. sparc64-*linux*)
  6479. LD="${LD-ld} -m elf32_sparc"
  6480. ;;
  6481. esac
  6482. ;;
  6483. *64-bit*)
  6484. case $host in
  6485. x86_64-*kfreebsd*-gnu)
  6486. LD="${LD-ld} -m elf_x86_64_fbsd"
  6487. ;;
  6488. x86_64-*linux*)
  6489. LD="${LD-ld} -m elf_x86_64"
  6490. ;;
  6491. powerpcle-*)
  6492. LD="${LD-ld} -m elf64lppc"
  6493. ;;
  6494. powerpc-*)
  6495. LD="${LD-ld} -m elf64ppc"
  6496. ;;
  6497. s390*-*linux*|s390*-*tpf*)
  6498. LD="${LD-ld} -m elf64_s390"
  6499. ;;
  6500. sparc*-*linux*)
  6501. LD="${LD-ld} -m elf64_sparc"
  6502. ;;
  6503. esac
  6504. ;;
  6505. esac
  6506. fi
  6507. rm -rf conftest*
  6508. ;;
  6509. *-*-sco3.2v5*)
  6510. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6511. SAVE_CFLAGS="$CFLAGS"
  6512. CFLAGS="$CFLAGS -belf"
  6513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6514. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6515. if ${lt_cv_cc_needs_belf+:} false; then :
  6516. $as_echo_n "(cached) " >&6
  6517. else
  6518. ac_ext=c
  6519. ac_cpp='$CPP $CPPFLAGS'
  6520. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6521. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6522. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6524. /* end confdefs.h. */
  6525. int
  6526. main ()
  6527. {
  6528. ;
  6529. return 0;
  6530. }
  6531. _ACEOF
  6532. if ac_fn_c_try_link "$LINENO"; then :
  6533. lt_cv_cc_needs_belf=yes
  6534. else
  6535. lt_cv_cc_needs_belf=no
  6536. fi
  6537. rm -f core conftest.err conftest.$ac_objext \
  6538. conftest$ac_exeext conftest.$ac_ext
  6539. ac_ext=c
  6540. ac_cpp='$CPP $CPPFLAGS'
  6541. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6542. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6543. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6544. fi
  6545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6546. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6547. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6548. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6549. CFLAGS="$SAVE_CFLAGS"
  6550. fi
  6551. ;;
  6552. *-*solaris*)
  6553. # Find out which ABI we are using.
  6554. echo 'int i;' > conftest.$ac_ext
  6555. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6556. (eval $ac_compile) 2>&5
  6557. ac_status=$?
  6558. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6559. test $ac_status = 0; }; then
  6560. case `/usr/bin/file conftest.o` in
  6561. *64-bit*)
  6562. case $lt_cv_prog_gnu_ld in
  6563. yes*)
  6564. case $host in
  6565. i?86-*-solaris*)
  6566. LD="${LD-ld} -m elf_x86_64"
  6567. ;;
  6568. sparc*-*-solaris*)
  6569. LD="${LD-ld} -m elf64_sparc"
  6570. ;;
  6571. esac
  6572. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6573. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6574. LD="${LD-ld}_sol2"
  6575. fi
  6576. ;;
  6577. *)
  6578. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6579. LD="${LD-ld} -64"
  6580. fi
  6581. ;;
  6582. esac
  6583. ;;
  6584. esac
  6585. fi
  6586. rm -rf conftest*
  6587. ;;
  6588. esac
  6589. need_locks="$enable_libtool_lock"
  6590. if test -n "$ac_tool_prefix"; then
  6591. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6592. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6594. $as_echo_n "checking for $ac_word... " >&6; }
  6595. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6596. $as_echo_n "(cached) " >&6
  6597. else
  6598. if test -n "$MANIFEST_TOOL"; then
  6599. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6600. else
  6601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6602. for as_dir in $PATH
  6603. do
  6604. IFS=$as_save_IFS
  6605. test -z "$as_dir" && as_dir=.
  6606. for ac_exec_ext in '' $ac_executable_extensions; do
  6607. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6608. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6610. break 2
  6611. fi
  6612. done
  6613. done
  6614. IFS=$as_save_IFS
  6615. fi
  6616. fi
  6617. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6618. if test -n "$MANIFEST_TOOL"; then
  6619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6620. $as_echo "$MANIFEST_TOOL" >&6; }
  6621. else
  6622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6623. $as_echo "no" >&6; }
  6624. fi
  6625. fi
  6626. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6627. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6628. # Extract the first word of "mt", so it can be a program name with args.
  6629. set dummy mt; ac_word=$2
  6630. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6631. $as_echo_n "checking for $ac_word... " >&6; }
  6632. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6633. $as_echo_n "(cached) " >&6
  6634. else
  6635. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6636. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6637. else
  6638. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6639. for as_dir in $PATH
  6640. do
  6641. IFS=$as_save_IFS
  6642. test -z "$as_dir" && as_dir=.
  6643. for ac_exec_ext in '' $ac_executable_extensions; do
  6644. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6645. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6646. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6647. break 2
  6648. fi
  6649. done
  6650. done
  6651. IFS=$as_save_IFS
  6652. fi
  6653. fi
  6654. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6655. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6657. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6658. else
  6659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6660. $as_echo "no" >&6; }
  6661. fi
  6662. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6663. MANIFEST_TOOL=":"
  6664. else
  6665. case $cross_compiling:$ac_tool_warned in
  6666. yes:)
  6667. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6668. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6669. ac_tool_warned=yes ;;
  6670. esac
  6671. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6672. fi
  6673. else
  6674. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6675. fi
  6676. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6678. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6679. if ${lt_cv_path_mainfest_tool+:} false; then :
  6680. $as_echo_n "(cached) " >&6
  6681. else
  6682. lt_cv_path_mainfest_tool=no
  6683. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6684. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6685. cat conftest.err >&5
  6686. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6687. lt_cv_path_mainfest_tool=yes
  6688. fi
  6689. rm -f conftest*
  6690. fi
  6691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6692. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6693. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6694. MANIFEST_TOOL=:
  6695. fi
  6696. case $host_os in
  6697. rhapsody* | darwin*)
  6698. if test -n "$ac_tool_prefix"; then
  6699. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6700. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6702. $as_echo_n "checking for $ac_word... " >&6; }
  6703. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6704. $as_echo_n "(cached) " >&6
  6705. else
  6706. if test -n "$DSYMUTIL"; then
  6707. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6708. else
  6709. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6710. for as_dir in $PATH
  6711. do
  6712. IFS=$as_save_IFS
  6713. test -z "$as_dir" && as_dir=.
  6714. for ac_exec_ext in '' $ac_executable_extensions; do
  6715. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6716. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6717. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6718. break 2
  6719. fi
  6720. done
  6721. done
  6722. IFS=$as_save_IFS
  6723. fi
  6724. fi
  6725. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6726. if test -n "$DSYMUTIL"; then
  6727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6728. $as_echo "$DSYMUTIL" >&6; }
  6729. else
  6730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6731. $as_echo "no" >&6; }
  6732. fi
  6733. fi
  6734. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6735. ac_ct_DSYMUTIL=$DSYMUTIL
  6736. # Extract the first word of "dsymutil", so it can be a program name with args.
  6737. set dummy dsymutil; ac_word=$2
  6738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6739. $as_echo_n "checking for $ac_word... " >&6; }
  6740. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6741. $as_echo_n "(cached) " >&6
  6742. else
  6743. if test -n "$ac_ct_DSYMUTIL"; then
  6744. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6745. else
  6746. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6747. for as_dir in $PATH
  6748. do
  6749. IFS=$as_save_IFS
  6750. test -z "$as_dir" && as_dir=.
  6751. for ac_exec_ext in '' $ac_executable_extensions; do
  6752. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6753. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6754. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6755. break 2
  6756. fi
  6757. done
  6758. done
  6759. IFS=$as_save_IFS
  6760. fi
  6761. fi
  6762. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6763. if test -n "$ac_ct_DSYMUTIL"; then
  6764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6765. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6766. else
  6767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6768. $as_echo "no" >&6; }
  6769. fi
  6770. if test "x$ac_ct_DSYMUTIL" = x; then
  6771. DSYMUTIL=":"
  6772. else
  6773. case $cross_compiling:$ac_tool_warned in
  6774. yes:)
  6775. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6776. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6777. ac_tool_warned=yes ;;
  6778. esac
  6779. DSYMUTIL=$ac_ct_DSYMUTIL
  6780. fi
  6781. else
  6782. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6783. fi
  6784. if test -n "$ac_tool_prefix"; then
  6785. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6786. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6788. $as_echo_n "checking for $ac_word... " >&6; }
  6789. if ${ac_cv_prog_NMEDIT+:} false; then :
  6790. $as_echo_n "(cached) " >&6
  6791. else
  6792. if test -n "$NMEDIT"; then
  6793. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6794. else
  6795. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6796. for as_dir in $PATH
  6797. do
  6798. IFS=$as_save_IFS
  6799. test -z "$as_dir" && as_dir=.
  6800. for ac_exec_ext in '' $ac_executable_extensions; do
  6801. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6802. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6803. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6804. break 2
  6805. fi
  6806. done
  6807. done
  6808. IFS=$as_save_IFS
  6809. fi
  6810. fi
  6811. NMEDIT=$ac_cv_prog_NMEDIT
  6812. if test -n "$NMEDIT"; then
  6813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6814. $as_echo "$NMEDIT" >&6; }
  6815. else
  6816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6817. $as_echo "no" >&6; }
  6818. fi
  6819. fi
  6820. if test -z "$ac_cv_prog_NMEDIT"; then
  6821. ac_ct_NMEDIT=$NMEDIT
  6822. # Extract the first word of "nmedit", so it can be a program name with args.
  6823. set dummy nmedit; ac_word=$2
  6824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6825. $as_echo_n "checking for $ac_word... " >&6; }
  6826. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6827. $as_echo_n "(cached) " >&6
  6828. else
  6829. if test -n "$ac_ct_NMEDIT"; then
  6830. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6831. else
  6832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6833. for as_dir in $PATH
  6834. do
  6835. IFS=$as_save_IFS
  6836. test -z "$as_dir" && as_dir=.
  6837. for ac_exec_ext in '' $ac_executable_extensions; do
  6838. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6839. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6840. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6841. break 2
  6842. fi
  6843. done
  6844. done
  6845. IFS=$as_save_IFS
  6846. fi
  6847. fi
  6848. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6849. if test -n "$ac_ct_NMEDIT"; then
  6850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6851. $as_echo "$ac_ct_NMEDIT" >&6; }
  6852. else
  6853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6854. $as_echo "no" >&6; }
  6855. fi
  6856. if test "x$ac_ct_NMEDIT" = x; then
  6857. NMEDIT=":"
  6858. else
  6859. case $cross_compiling:$ac_tool_warned in
  6860. yes:)
  6861. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6862. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6863. ac_tool_warned=yes ;;
  6864. esac
  6865. NMEDIT=$ac_ct_NMEDIT
  6866. fi
  6867. else
  6868. NMEDIT="$ac_cv_prog_NMEDIT"
  6869. fi
  6870. if test -n "$ac_tool_prefix"; then
  6871. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6872. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6874. $as_echo_n "checking for $ac_word... " >&6; }
  6875. if ${ac_cv_prog_LIPO+:} false; then :
  6876. $as_echo_n "(cached) " >&6
  6877. else
  6878. if test -n "$LIPO"; then
  6879. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6880. else
  6881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6882. for as_dir in $PATH
  6883. do
  6884. IFS=$as_save_IFS
  6885. test -z "$as_dir" && as_dir=.
  6886. for ac_exec_ext in '' $ac_executable_extensions; do
  6887. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6888. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6889. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6890. break 2
  6891. fi
  6892. done
  6893. done
  6894. IFS=$as_save_IFS
  6895. fi
  6896. fi
  6897. LIPO=$ac_cv_prog_LIPO
  6898. if test -n "$LIPO"; then
  6899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6900. $as_echo "$LIPO" >&6; }
  6901. else
  6902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6903. $as_echo "no" >&6; }
  6904. fi
  6905. fi
  6906. if test -z "$ac_cv_prog_LIPO"; then
  6907. ac_ct_LIPO=$LIPO
  6908. # Extract the first word of "lipo", so it can be a program name with args.
  6909. set dummy lipo; ac_word=$2
  6910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6911. $as_echo_n "checking for $ac_word... " >&6; }
  6912. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6913. $as_echo_n "(cached) " >&6
  6914. else
  6915. if test -n "$ac_ct_LIPO"; then
  6916. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6917. else
  6918. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6919. for as_dir in $PATH
  6920. do
  6921. IFS=$as_save_IFS
  6922. test -z "$as_dir" && as_dir=.
  6923. for ac_exec_ext in '' $ac_executable_extensions; do
  6924. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6925. ac_cv_prog_ac_ct_LIPO="lipo"
  6926. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6927. break 2
  6928. fi
  6929. done
  6930. done
  6931. IFS=$as_save_IFS
  6932. fi
  6933. fi
  6934. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6935. if test -n "$ac_ct_LIPO"; then
  6936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6937. $as_echo "$ac_ct_LIPO" >&6; }
  6938. else
  6939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6940. $as_echo "no" >&6; }
  6941. fi
  6942. if test "x$ac_ct_LIPO" = x; then
  6943. LIPO=":"
  6944. else
  6945. case $cross_compiling:$ac_tool_warned in
  6946. yes:)
  6947. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6948. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6949. ac_tool_warned=yes ;;
  6950. esac
  6951. LIPO=$ac_ct_LIPO
  6952. fi
  6953. else
  6954. LIPO="$ac_cv_prog_LIPO"
  6955. fi
  6956. if test -n "$ac_tool_prefix"; then
  6957. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6958. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6960. $as_echo_n "checking for $ac_word... " >&6; }
  6961. if ${ac_cv_prog_OTOOL+:} false; then :
  6962. $as_echo_n "(cached) " >&6
  6963. else
  6964. if test -n "$OTOOL"; then
  6965. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6966. else
  6967. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6968. for as_dir in $PATH
  6969. do
  6970. IFS=$as_save_IFS
  6971. test -z "$as_dir" && as_dir=.
  6972. for ac_exec_ext in '' $ac_executable_extensions; do
  6973. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6974. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6975. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6976. break 2
  6977. fi
  6978. done
  6979. done
  6980. IFS=$as_save_IFS
  6981. fi
  6982. fi
  6983. OTOOL=$ac_cv_prog_OTOOL
  6984. if test -n "$OTOOL"; then
  6985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6986. $as_echo "$OTOOL" >&6; }
  6987. else
  6988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6989. $as_echo "no" >&6; }
  6990. fi
  6991. fi
  6992. if test -z "$ac_cv_prog_OTOOL"; then
  6993. ac_ct_OTOOL=$OTOOL
  6994. # Extract the first word of "otool", so it can be a program name with args.
  6995. set dummy otool; ac_word=$2
  6996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6997. $as_echo_n "checking for $ac_word... " >&6; }
  6998. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6999. $as_echo_n "(cached) " >&6
  7000. else
  7001. if test -n "$ac_ct_OTOOL"; then
  7002. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7003. else
  7004. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7005. for as_dir in $PATH
  7006. do
  7007. IFS=$as_save_IFS
  7008. test -z "$as_dir" && as_dir=.
  7009. for ac_exec_ext in '' $ac_executable_extensions; do
  7010. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7011. ac_cv_prog_ac_ct_OTOOL="otool"
  7012. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7013. break 2
  7014. fi
  7015. done
  7016. done
  7017. IFS=$as_save_IFS
  7018. fi
  7019. fi
  7020. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7021. if test -n "$ac_ct_OTOOL"; then
  7022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7023. $as_echo "$ac_ct_OTOOL" >&6; }
  7024. else
  7025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7026. $as_echo "no" >&6; }
  7027. fi
  7028. if test "x$ac_ct_OTOOL" = x; then
  7029. OTOOL=":"
  7030. else
  7031. case $cross_compiling:$ac_tool_warned in
  7032. yes:)
  7033. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7034. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7035. ac_tool_warned=yes ;;
  7036. esac
  7037. OTOOL=$ac_ct_OTOOL
  7038. fi
  7039. else
  7040. OTOOL="$ac_cv_prog_OTOOL"
  7041. fi
  7042. if test -n "$ac_tool_prefix"; then
  7043. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7044. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7046. $as_echo_n "checking for $ac_word... " >&6; }
  7047. if ${ac_cv_prog_OTOOL64+:} false; then :
  7048. $as_echo_n "(cached) " >&6
  7049. else
  7050. if test -n "$OTOOL64"; then
  7051. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7052. else
  7053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7054. for as_dir in $PATH
  7055. do
  7056. IFS=$as_save_IFS
  7057. test -z "$as_dir" && as_dir=.
  7058. for ac_exec_ext in '' $ac_executable_extensions; do
  7059. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7060. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7061. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7062. break 2
  7063. fi
  7064. done
  7065. done
  7066. IFS=$as_save_IFS
  7067. fi
  7068. fi
  7069. OTOOL64=$ac_cv_prog_OTOOL64
  7070. if test -n "$OTOOL64"; then
  7071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7072. $as_echo "$OTOOL64" >&6; }
  7073. else
  7074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7075. $as_echo "no" >&6; }
  7076. fi
  7077. fi
  7078. if test -z "$ac_cv_prog_OTOOL64"; then
  7079. ac_ct_OTOOL64=$OTOOL64
  7080. # Extract the first word of "otool64", so it can be a program name with args.
  7081. set dummy otool64; ac_word=$2
  7082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7083. $as_echo_n "checking for $ac_word... " >&6; }
  7084. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7085. $as_echo_n "(cached) " >&6
  7086. else
  7087. if test -n "$ac_ct_OTOOL64"; then
  7088. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7089. else
  7090. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7091. for as_dir in $PATH
  7092. do
  7093. IFS=$as_save_IFS
  7094. test -z "$as_dir" && as_dir=.
  7095. for ac_exec_ext in '' $ac_executable_extensions; do
  7096. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7097. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7098. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7099. break 2
  7100. fi
  7101. done
  7102. done
  7103. IFS=$as_save_IFS
  7104. fi
  7105. fi
  7106. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7107. if test -n "$ac_ct_OTOOL64"; then
  7108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7109. $as_echo "$ac_ct_OTOOL64" >&6; }
  7110. else
  7111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7112. $as_echo "no" >&6; }
  7113. fi
  7114. if test "x$ac_ct_OTOOL64" = x; then
  7115. OTOOL64=":"
  7116. else
  7117. case $cross_compiling:$ac_tool_warned in
  7118. yes:)
  7119. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7120. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7121. ac_tool_warned=yes ;;
  7122. esac
  7123. OTOOL64=$ac_ct_OTOOL64
  7124. fi
  7125. else
  7126. OTOOL64="$ac_cv_prog_OTOOL64"
  7127. fi
  7128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7129. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7130. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7131. $as_echo_n "(cached) " >&6
  7132. else
  7133. lt_cv_apple_cc_single_mod=no
  7134. if test -z "${LT_MULTI_MODULE}"; then
  7135. # By default we will add the -single_module flag. You can override
  7136. # by either setting the environment variable LT_MULTI_MODULE
  7137. # non-empty at configure time, or by adding -multi_module to the
  7138. # link flags.
  7139. rm -rf libconftest.dylib*
  7140. echo "int foo(void){return 1;}" > conftest.c
  7141. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7142. -dynamiclib -Wl,-single_module conftest.c" >&5
  7143. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7144. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7145. _lt_result=$?
  7146. # If there is a non-empty error log, and "single_module"
  7147. # appears in it, assume the flag caused a linker warning
  7148. if test -s conftest.err && $GREP single_module conftest.err; then
  7149. cat conftest.err >&5
  7150. # Otherwise, if the output was created with a 0 exit code from
  7151. # the compiler, it worked.
  7152. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7153. lt_cv_apple_cc_single_mod=yes
  7154. else
  7155. cat conftest.err >&5
  7156. fi
  7157. rm -rf libconftest.dylib*
  7158. rm -f conftest.*
  7159. fi
  7160. fi
  7161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7162. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7164. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7165. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7166. $as_echo_n "(cached) " >&6
  7167. else
  7168. lt_cv_ld_exported_symbols_list=no
  7169. save_LDFLAGS=$LDFLAGS
  7170. echo "_main" > conftest.sym
  7171. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7173. /* end confdefs.h. */
  7174. int
  7175. main ()
  7176. {
  7177. ;
  7178. return 0;
  7179. }
  7180. _ACEOF
  7181. if ac_fn_c_try_link "$LINENO"; then :
  7182. lt_cv_ld_exported_symbols_list=yes
  7183. else
  7184. lt_cv_ld_exported_symbols_list=no
  7185. fi
  7186. rm -f core conftest.err conftest.$ac_objext \
  7187. conftest$ac_exeext conftest.$ac_ext
  7188. LDFLAGS="$save_LDFLAGS"
  7189. fi
  7190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7191. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7193. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7194. if ${lt_cv_ld_force_load+:} false; then :
  7195. $as_echo_n "(cached) " >&6
  7196. else
  7197. lt_cv_ld_force_load=no
  7198. cat > conftest.c << _LT_EOF
  7199. int forced_loaded() { return 2;}
  7200. _LT_EOF
  7201. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7202. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7203. echo "$AR cru libconftest.a conftest.o" >&5
  7204. $AR cru libconftest.a conftest.o 2>&5
  7205. echo "$RANLIB libconftest.a" >&5
  7206. $RANLIB libconftest.a 2>&5
  7207. cat > conftest.c << _LT_EOF
  7208. int main() { return 0;}
  7209. _LT_EOF
  7210. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7211. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7212. _lt_result=$?
  7213. if test -s conftest.err && $GREP force_load conftest.err; then
  7214. cat conftest.err >&5
  7215. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7216. lt_cv_ld_force_load=yes
  7217. else
  7218. cat conftest.err >&5
  7219. fi
  7220. rm -f conftest.err libconftest.a conftest conftest.c
  7221. rm -rf conftest.dSYM
  7222. fi
  7223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7224. $as_echo "$lt_cv_ld_force_load" >&6; }
  7225. case $host_os in
  7226. rhapsody* | darwin1.[012])
  7227. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7228. darwin1.*)
  7229. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7230. darwin*) # darwin 5.x on
  7231. # if running on 10.5 or later, the deployment target defaults
  7232. # to the OS version, if on x86, and 10.4, the deployment
  7233. # target defaults to 10.4. Don't you love it?
  7234. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7235. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7236. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7237. 10.[012]*)
  7238. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7239. 10.*)
  7240. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7241. esac
  7242. ;;
  7243. esac
  7244. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7245. _lt_dar_single_mod='$single_module'
  7246. fi
  7247. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7248. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7249. else
  7250. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7251. fi
  7252. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7253. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7254. else
  7255. _lt_dsymutil=
  7256. fi
  7257. ;;
  7258. esac
  7259. ac_ext=c
  7260. ac_cpp='$CPP $CPPFLAGS'
  7261. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7262. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7263. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7265. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7266. # On Suns, sometimes $CPP names a directory.
  7267. if test -n "$CPP" && test -d "$CPP"; then
  7268. CPP=
  7269. fi
  7270. if test -z "$CPP"; then
  7271. if ${ac_cv_prog_CPP+:} false; then :
  7272. $as_echo_n "(cached) " >&6
  7273. else
  7274. # Double quotes because CPP needs to be expanded
  7275. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7276. do
  7277. ac_preproc_ok=false
  7278. for ac_c_preproc_warn_flag in '' yes
  7279. do
  7280. # Use a header file that comes with gcc, so configuring glibc
  7281. # with a fresh cross-compiler works.
  7282. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7283. # <limits.h> exists even on freestanding compilers.
  7284. # On the NeXT, cc -E runs the code through the compiler's parser,
  7285. # not just through cpp. "Syntax error" is here to catch this case.
  7286. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7287. /* end confdefs.h. */
  7288. #ifdef __STDC__
  7289. # include <limits.h>
  7290. #else
  7291. # include <assert.h>
  7292. #endif
  7293. Syntax error
  7294. _ACEOF
  7295. if ac_fn_c_try_cpp "$LINENO"; then :
  7296. else
  7297. # Broken: fails on valid input.
  7298. continue
  7299. fi
  7300. rm -f conftest.err conftest.i conftest.$ac_ext
  7301. # OK, works on sane cases. Now check whether nonexistent headers
  7302. # can be detected and how.
  7303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7304. /* end confdefs.h. */
  7305. #include <ac_nonexistent.h>
  7306. _ACEOF
  7307. if ac_fn_c_try_cpp "$LINENO"; then :
  7308. # Broken: success on invalid input.
  7309. continue
  7310. else
  7311. # Passes both tests.
  7312. ac_preproc_ok=:
  7313. break
  7314. fi
  7315. rm -f conftest.err conftest.i conftest.$ac_ext
  7316. done
  7317. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7318. rm -f conftest.i conftest.err conftest.$ac_ext
  7319. if $ac_preproc_ok; then :
  7320. break
  7321. fi
  7322. done
  7323. ac_cv_prog_CPP=$CPP
  7324. fi
  7325. CPP=$ac_cv_prog_CPP
  7326. else
  7327. ac_cv_prog_CPP=$CPP
  7328. fi
  7329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7330. $as_echo "$CPP" >&6; }
  7331. ac_preproc_ok=false
  7332. for ac_c_preproc_warn_flag in '' yes
  7333. do
  7334. # Use a header file that comes with gcc, so configuring glibc
  7335. # with a fresh cross-compiler works.
  7336. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7337. # <limits.h> exists even on freestanding compilers.
  7338. # On the NeXT, cc -E runs the code through the compiler's parser,
  7339. # not just through cpp. "Syntax error" is here to catch this case.
  7340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7341. /* end confdefs.h. */
  7342. #ifdef __STDC__
  7343. # include <limits.h>
  7344. #else
  7345. # include <assert.h>
  7346. #endif
  7347. Syntax error
  7348. _ACEOF
  7349. if ac_fn_c_try_cpp "$LINENO"; then :
  7350. else
  7351. # Broken: fails on valid input.
  7352. continue
  7353. fi
  7354. rm -f conftest.err conftest.i conftest.$ac_ext
  7355. # OK, works on sane cases. Now check whether nonexistent headers
  7356. # can be detected and how.
  7357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7358. /* end confdefs.h. */
  7359. #include <ac_nonexistent.h>
  7360. _ACEOF
  7361. if ac_fn_c_try_cpp "$LINENO"; then :
  7362. # Broken: success on invalid input.
  7363. continue
  7364. else
  7365. # Passes both tests.
  7366. ac_preproc_ok=:
  7367. break
  7368. fi
  7369. rm -f conftest.err conftest.i conftest.$ac_ext
  7370. done
  7371. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7372. rm -f conftest.i conftest.err conftest.$ac_ext
  7373. if $ac_preproc_ok; then :
  7374. else
  7375. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7376. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7377. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7378. See \`config.log' for more details" "$LINENO" 5; }
  7379. fi
  7380. ac_ext=c
  7381. ac_cpp='$CPP $CPPFLAGS'
  7382. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7383. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7384. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7386. $as_echo_n "checking for ANSI C header files... " >&6; }
  7387. if ${ac_cv_header_stdc+:} false; then :
  7388. $as_echo_n "(cached) " >&6
  7389. else
  7390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7391. /* end confdefs.h. */
  7392. #include <stdlib.h>
  7393. #include <stdarg.h>
  7394. #include <string.h>
  7395. #include <float.h>
  7396. int
  7397. main ()
  7398. {
  7399. ;
  7400. return 0;
  7401. }
  7402. _ACEOF
  7403. if ac_fn_c_try_compile "$LINENO"; then :
  7404. ac_cv_header_stdc=yes
  7405. else
  7406. ac_cv_header_stdc=no
  7407. fi
  7408. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7409. if test $ac_cv_header_stdc = yes; then
  7410. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7411. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7412. /* end confdefs.h. */
  7413. #include <string.h>
  7414. _ACEOF
  7415. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7416. $EGREP "memchr" >/dev/null 2>&1; then :
  7417. else
  7418. ac_cv_header_stdc=no
  7419. fi
  7420. rm -f conftest*
  7421. fi
  7422. if test $ac_cv_header_stdc = yes; then
  7423. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7425. /* end confdefs.h. */
  7426. #include <stdlib.h>
  7427. _ACEOF
  7428. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7429. $EGREP "free" >/dev/null 2>&1; then :
  7430. else
  7431. ac_cv_header_stdc=no
  7432. fi
  7433. rm -f conftest*
  7434. fi
  7435. if test $ac_cv_header_stdc = yes; then
  7436. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7437. if test "$cross_compiling" = yes; then :
  7438. :
  7439. else
  7440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7441. /* end confdefs.h. */
  7442. #include <ctype.h>
  7443. #include <stdlib.h>
  7444. #if ((' ' & 0x0FF) == 0x020)
  7445. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7446. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7447. #else
  7448. # define ISLOWER(c) \
  7449. (('a' <= (c) && (c) <= 'i') \
  7450. || ('j' <= (c) && (c) <= 'r') \
  7451. || ('s' <= (c) && (c) <= 'z'))
  7452. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7453. #endif
  7454. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7455. int
  7456. main ()
  7457. {
  7458. int i;
  7459. for (i = 0; i < 256; i++)
  7460. if (XOR (islower (i), ISLOWER (i))
  7461. || toupper (i) != TOUPPER (i))
  7462. return 2;
  7463. return 0;
  7464. }
  7465. _ACEOF
  7466. if ac_fn_c_try_run "$LINENO"; then :
  7467. else
  7468. ac_cv_header_stdc=no
  7469. fi
  7470. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7471. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7472. fi
  7473. fi
  7474. fi
  7475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7476. $as_echo "$ac_cv_header_stdc" >&6; }
  7477. if test $ac_cv_header_stdc = yes; then
  7478. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7479. fi
  7480. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7481. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7482. inttypes.h stdint.h unistd.h
  7483. do :
  7484. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7485. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7486. "
  7487. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7488. cat >>confdefs.h <<_ACEOF
  7489. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7490. _ACEOF
  7491. fi
  7492. done
  7493. for ac_header in dlfcn.h
  7494. do :
  7495. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7496. "
  7497. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7498. cat >>confdefs.h <<_ACEOF
  7499. #define HAVE_DLFCN_H 1
  7500. _ACEOF
  7501. fi
  7502. done
  7503. func_stripname_cnf ()
  7504. {
  7505. case ${2} in
  7506. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7507. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7508. esac
  7509. } # func_stripname_cnf
  7510. # Set options
  7511. enable_win32_dll=yes
  7512. case $host in
  7513. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7514. if test -n "$ac_tool_prefix"; then
  7515. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  7516. set dummy ${ac_tool_prefix}as; ac_word=$2
  7517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7518. $as_echo_n "checking for $ac_word... " >&6; }
  7519. if ${ac_cv_prog_AS+:} false; then :
  7520. $as_echo_n "(cached) " >&6
  7521. else
  7522. if test -n "$AS"; then
  7523. ac_cv_prog_AS="$AS" # Let the user override the test.
  7524. else
  7525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7526. for as_dir in $PATH
  7527. do
  7528. IFS=$as_save_IFS
  7529. test -z "$as_dir" && as_dir=.
  7530. for ac_exec_ext in '' $ac_executable_extensions; do
  7531. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7532. ac_cv_prog_AS="${ac_tool_prefix}as"
  7533. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7534. break 2
  7535. fi
  7536. done
  7537. done
  7538. IFS=$as_save_IFS
  7539. fi
  7540. fi
  7541. AS=$ac_cv_prog_AS
  7542. if test -n "$AS"; then
  7543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  7544. $as_echo "$AS" >&6; }
  7545. else
  7546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7547. $as_echo "no" >&6; }
  7548. fi
  7549. fi
  7550. if test -z "$ac_cv_prog_AS"; then
  7551. ac_ct_AS=$AS
  7552. # Extract the first word of "as", so it can be a program name with args.
  7553. set dummy as; ac_word=$2
  7554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7555. $as_echo_n "checking for $ac_word... " >&6; }
  7556. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  7557. $as_echo_n "(cached) " >&6
  7558. else
  7559. if test -n "$ac_ct_AS"; then
  7560. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  7561. else
  7562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7563. for as_dir in $PATH
  7564. do
  7565. IFS=$as_save_IFS
  7566. test -z "$as_dir" && as_dir=.
  7567. for ac_exec_ext in '' $ac_executable_extensions; do
  7568. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7569. ac_cv_prog_ac_ct_AS="as"
  7570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7571. break 2
  7572. fi
  7573. done
  7574. done
  7575. IFS=$as_save_IFS
  7576. fi
  7577. fi
  7578. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  7579. if test -n "$ac_ct_AS"; then
  7580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  7581. $as_echo "$ac_ct_AS" >&6; }
  7582. else
  7583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7584. $as_echo "no" >&6; }
  7585. fi
  7586. if test "x$ac_ct_AS" = x; then
  7587. AS="false"
  7588. else
  7589. case $cross_compiling:$ac_tool_warned in
  7590. yes:)
  7591. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7592. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7593. ac_tool_warned=yes ;;
  7594. esac
  7595. AS=$ac_ct_AS
  7596. fi
  7597. else
  7598. AS="$ac_cv_prog_AS"
  7599. fi
  7600. if test -n "$ac_tool_prefix"; then
  7601. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  7602. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  7603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7604. $as_echo_n "checking for $ac_word... " >&6; }
  7605. if ${ac_cv_prog_DLLTOOL+:} false; then :
  7606. $as_echo_n "(cached) " >&6
  7607. else
  7608. if test -n "$DLLTOOL"; then
  7609. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  7610. else
  7611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7612. for as_dir in $PATH
  7613. do
  7614. IFS=$as_save_IFS
  7615. test -z "$as_dir" && as_dir=.
  7616. for ac_exec_ext in '' $ac_executable_extensions; do
  7617. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7618. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  7619. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7620. break 2
  7621. fi
  7622. done
  7623. done
  7624. IFS=$as_save_IFS
  7625. fi
  7626. fi
  7627. DLLTOOL=$ac_cv_prog_DLLTOOL
  7628. if test -n "$DLLTOOL"; then
  7629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  7630. $as_echo "$DLLTOOL" >&6; }
  7631. else
  7632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7633. $as_echo "no" >&6; }
  7634. fi
  7635. fi
  7636. if test -z "$ac_cv_prog_DLLTOOL"; then
  7637. ac_ct_DLLTOOL=$DLLTOOL
  7638. # Extract the first word of "dlltool", so it can be a program name with args.
  7639. set dummy dlltool; ac_word=$2
  7640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7641. $as_echo_n "checking for $ac_word... " >&6; }
  7642. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  7643. $as_echo_n "(cached) " >&6
  7644. else
  7645. if test -n "$ac_ct_DLLTOOL"; then
  7646. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  7647. else
  7648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7649. for as_dir in $PATH
  7650. do
  7651. IFS=$as_save_IFS
  7652. test -z "$as_dir" && as_dir=.
  7653. for ac_exec_ext in '' $ac_executable_extensions; do
  7654. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7655. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  7656. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7657. break 2
  7658. fi
  7659. done
  7660. done
  7661. IFS=$as_save_IFS
  7662. fi
  7663. fi
  7664. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  7665. if test -n "$ac_ct_DLLTOOL"; then
  7666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  7667. $as_echo "$ac_ct_DLLTOOL" >&6; }
  7668. else
  7669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7670. $as_echo "no" >&6; }
  7671. fi
  7672. if test "x$ac_ct_DLLTOOL" = x; then
  7673. DLLTOOL="false"
  7674. else
  7675. case $cross_compiling:$ac_tool_warned in
  7676. yes:)
  7677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7678. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7679. ac_tool_warned=yes ;;
  7680. esac
  7681. DLLTOOL=$ac_ct_DLLTOOL
  7682. fi
  7683. else
  7684. DLLTOOL="$ac_cv_prog_DLLTOOL"
  7685. fi
  7686. if test -n "$ac_tool_prefix"; then
  7687. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  7688. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  7689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7690. $as_echo_n "checking for $ac_word... " >&6; }
  7691. if ${ac_cv_prog_OBJDUMP+:} false; then :
  7692. $as_echo_n "(cached) " >&6
  7693. else
  7694. if test -n "$OBJDUMP"; then
  7695. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  7696. else
  7697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7698. for as_dir in $PATH
  7699. do
  7700. IFS=$as_save_IFS
  7701. test -z "$as_dir" && as_dir=.
  7702. for ac_exec_ext in '' $ac_executable_extensions; do
  7703. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7704. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  7705. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7706. break 2
  7707. fi
  7708. done
  7709. done
  7710. IFS=$as_save_IFS
  7711. fi
  7712. fi
  7713. OBJDUMP=$ac_cv_prog_OBJDUMP
  7714. if test -n "$OBJDUMP"; then
  7715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  7716. $as_echo "$OBJDUMP" >&6; }
  7717. else
  7718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7719. $as_echo "no" >&6; }
  7720. fi
  7721. fi
  7722. if test -z "$ac_cv_prog_OBJDUMP"; then
  7723. ac_ct_OBJDUMP=$OBJDUMP
  7724. # Extract the first word of "objdump", so it can be a program name with args.
  7725. set dummy objdump; ac_word=$2
  7726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7727. $as_echo_n "checking for $ac_word... " >&6; }
  7728. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  7729. $as_echo_n "(cached) " >&6
  7730. else
  7731. if test -n "$ac_ct_OBJDUMP"; then
  7732. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  7733. else
  7734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7735. for as_dir in $PATH
  7736. do
  7737. IFS=$as_save_IFS
  7738. test -z "$as_dir" && as_dir=.
  7739. for ac_exec_ext in '' $ac_executable_extensions; do
  7740. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7741. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  7742. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7743. break 2
  7744. fi
  7745. done
  7746. done
  7747. IFS=$as_save_IFS
  7748. fi
  7749. fi
  7750. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  7751. if test -n "$ac_ct_OBJDUMP"; then
  7752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  7753. $as_echo "$ac_ct_OBJDUMP" >&6; }
  7754. else
  7755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7756. $as_echo "no" >&6; }
  7757. fi
  7758. if test "x$ac_ct_OBJDUMP" = x; then
  7759. OBJDUMP="false"
  7760. else
  7761. case $cross_compiling:$ac_tool_warned in
  7762. yes:)
  7763. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7764. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7765. ac_tool_warned=yes ;;
  7766. esac
  7767. OBJDUMP=$ac_ct_OBJDUMP
  7768. fi
  7769. else
  7770. OBJDUMP="$ac_cv_prog_OBJDUMP"
  7771. fi
  7772. ;;
  7773. esac
  7774. test -z "$AS" && AS=as
  7775. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7776. test -z "$OBJDUMP" && OBJDUMP=objdump
  7777. # Check whether --enable-shared was given.
  7778. if test "${enable_shared+set}" = set; then :
  7779. enableval=$enable_shared; p=${PACKAGE-default}
  7780. case $enableval in
  7781. yes) enable_shared=yes ;;
  7782. no) enable_shared=no ;;
  7783. *)
  7784. enable_shared=no
  7785. # Look at the argument we got. We use all the common list separators.
  7786. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7787. for pkg in $enableval; do
  7788. IFS="$lt_save_ifs"
  7789. if test "X$pkg" = "X$p"; then
  7790. enable_shared=yes
  7791. fi
  7792. done
  7793. IFS="$lt_save_ifs"
  7794. ;;
  7795. esac
  7796. else
  7797. enable_shared=no
  7798. fi
  7799. enable_dlopen=no
  7800. # Check whether --enable-static was given.
  7801. if test "${enable_static+set}" = set; then :
  7802. enableval=$enable_static; p=${PACKAGE-default}
  7803. case $enableval in
  7804. yes) enable_static=yes ;;
  7805. no) enable_static=no ;;
  7806. *)
  7807. enable_static=no
  7808. # Look at the argument we got. We use all the common list separators.
  7809. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7810. for pkg in $enableval; do
  7811. IFS="$lt_save_ifs"
  7812. if test "X$pkg" = "X$p"; then
  7813. enable_static=yes
  7814. fi
  7815. done
  7816. IFS="$lt_save_ifs"
  7817. ;;
  7818. esac
  7819. else
  7820. enable_static=yes
  7821. fi
  7822. # Check whether --with-pic was given.
  7823. if test "${with_pic+set}" = set; then :
  7824. withval=$with_pic; lt_p=${PACKAGE-default}
  7825. case $withval in
  7826. yes|no) pic_mode=$withval ;;
  7827. *)
  7828. pic_mode=default
  7829. # Look at the argument we got. We use all the common list separators.
  7830. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7831. for lt_pkg in $withval; do
  7832. IFS="$lt_save_ifs"
  7833. if test "X$lt_pkg" = "X$lt_p"; then
  7834. pic_mode=yes
  7835. fi
  7836. done
  7837. IFS="$lt_save_ifs"
  7838. ;;
  7839. esac
  7840. else
  7841. pic_mode=default
  7842. fi
  7843. test -z "$pic_mode" && pic_mode=default
  7844. # Check whether --enable-fast-install was given.
  7845. if test "${enable_fast_install+set}" = set; then :
  7846. enableval=$enable_fast_install; p=${PACKAGE-default}
  7847. case $enableval in
  7848. yes) enable_fast_install=yes ;;
  7849. no) enable_fast_install=no ;;
  7850. *)
  7851. enable_fast_install=no
  7852. # Look at the argument we got. We use all the common list separators.
  7853. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7854. for pkg in $enableval; do
  7855. IFS="$lt_save_ifs"
  7856. if test "X$pkg" = "X$p"; then
  7857. enable_fast_install=yes
  7858. fi
  7859. done
  7860. IFS="$lt_save_ifs"
  7861. ;;
  7862. esac
  7863. else
  7864. enable_fast_install=yes
  7865. fi
  7866. # This can be used to rebuild libtool when needed
  7867. LIBTOOL_DEPS="$ltmain"
  7868. # Always use our own libtool.
  7869. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7870. test -z "$LN_S" && LN_S="ln -s"
  7871. if test -n "${ZSH_VERSION+set}" ; then
  7872. setopt NO_GLOB_SUBST
  7873. fi
  7874. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7875. $as_echo_n "checking for objdir... " >&6; }
  7876. if ${lt_cv_objdir+:} false; then :
  7877. $as_echo_n "(cached) " >&6
  7878. else
  7879. rm -f .libs 2>/dev/null
  7880. mkdir .libs 2>/dev/null
  7881. if test -d .libs; then
  7882. lt_cv_objdir=.libs
  7883. else
  7884. # MS-DOS does not allow filenames that begin with a dot.
  7885. lt_cv_objdir=_libs
  7886. fi
  7887. rmdir .libs 2>/dev/null
  7888. fi
  7889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7890. $as_echo "$lt_cv_objdir" >&6; }
  7891. objdir=$lt_cv_objdir
  7892. cat >>confdefs.h <<_ACEOF
  7893. #define LT_OBJDIR "$lt_cv_objdir/"
  7894. _ACEOF
  7895. case $host_os in
  7896. aix3*)
  7897. # AIX sometimes has problems with the GCC collect2 program. For some
  7898. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7899. # vanish in a puff of smoke.
  7900. if test "X${COLLECT_NAMES+set}" != Xset; then
  7901. COLLECT_NAMES=
  7902. export COLLECT_NAMES
  7903. fi
  7904. ;;
  7905. esac
  7906. # Global variables:
  7907. ofile=libtool
  7908. can_build_shared=yes
  7909. # All known linkers require a `.a' archive for static linking (except MSVC,
  7910. # which needs '.lib').
  7911. libext=a
  7912. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7913. old_CC="$CC"
  7914. old_CFLAGS="$CFLAGS"
  7915. # Set sane defaults for various variables
  7916. test -z "$CC" && CC=cc
  7917. test -z "$LTCC" && LTCC=$CC
  7918. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7919. test -z "$LD" && LD=ld
  7920. test -z "$ac_objext" && ac_objext=o
  7921. for cc_temp in $compiler""; do
  7922. case $cc_temp in
  7923. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7924. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7925. \-*) ;;
  7926. *) break;;
  7927. esac
  7928. done
  7929. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7930. # Only perform the check for file, if the check method requires it
  7931. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7932. case $deplibs_check_method in
  7933. file_magic*)
  7934. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7936. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7937. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7938. $as_echo_n "(cached) " >&6
  7939. else
  7940. case $MAGIC_CMD in
  7941. [\\/*] | ?:[\\/]*)
  7942. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7943. ;;
  7944. *)
  7945. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7946. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7947. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7948. for ac_dir in $ac_dummy; do
  7949. IFS="$lt_save_ifs"
  7950. test -z "$ac_dir" && ac_dir=.
  7951. if test -f $ac_dir/${ac_tool_prefix}file; then
  7952. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7953. if test -n "$file_magic_test_file"; then
  7954. case $deplibs_check_method in
  7955. "file_magic "*)
  7956. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7957. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7958. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7959. $EGREP "$file_magic_regex" > /dev/null; then
  7960. :
  7961. else
  7962. cat <<_LT_EOF 1>&2
  7963. *** Warning: the command libtool uses to detect shared libraries,
  7964. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7965. *** The result is that libtool may fail to recognize shared libraries
  7966. *** as such. This will affect the creation of libtool libraries that
  7967. *** depend on shared libraries, but programs linked with such libtool
  7968. *** libraries will work regardless of this problem. Nevertheless, you
  7969. *** may want to report the problem to your system manager and/or to
  7970. *** bug-libtool@gnu.org
  7971. _LT_EOF
  7972. fi ;;
  7973. esac
  7974. fi
  7975. break
  7976. fi
  7977. done
  7978. IFS="$lt_save_ifs"
  7979. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7980. ;;
  7981. esac
  7982. fi
  7983. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7984. if test -n "$MAGIC_CMD"; then
  7985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7986. $as_echo "$MAGIC_CMD" >&6; }
  7987. else
  7988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7989. $as_echo "no" >&6; }
  7990. fi
  7991. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7992. if test -n "$ac_tool_prefix"; then
  7993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7994. $as_echo_n "checking for file... " >&6; }
  7995. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7996. $as_echo_n "(cached) " >&6
  7997. else
  7998. case $MAGIC_CMD in
  7999. [\\/*] | ?:[\\/]*)
  8000. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8001. ;;
  8002. *)
  8003. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8004. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8005. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8006. for ac_dir in $ac_dummy; do
  8007. IFS="$lt_save_ifs"
  8008. test -z "$ac_dir" && ac_dir=.
  8009. if test -f $ac_dir/file; then
  8010. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  8011. if test -n "$file_magic_test_file"; then
  8012. case $deplibs_check_method in
  8013. "file_magic "*)
  8014. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8015. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8016. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8017. $EGREP "$file_magic_regex" > /dev/null; then
  8018. :
  8019. else
  8020. cat <<_LT_EOF 1>&2
  8021. *** Warning: the command libtool uses to detect shared libraries,
  8022. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8023. *** The result is that libtool may fail to recognize shared libraries
  8024. *** as such. This will affect the creation of libtool libraries that
  8025. *** depend on shared libraries, but programs linked with such libtool
  8026. *** libraries will work regardless of this problem. Nevertheless, you
  8027. *** may want to report the problem to your system manager and/or to
  8028. *** bug-libtool@gnu.org
  8029. _LT_EOF
  8030. fi ;;
  8031. esac
  8032. fi
  8033. break
  8034. fi
  8035. done
  8036. IFS="$lt_save_ifs"
  8037. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8038. ;;
  8039. esac
  8040. fi
  8041. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8042. if test -n "$MAGIC_CMD"; then
  8043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  8044. $as_echo "$MAGIC_CMD" >&6; }
  8045. else
  8046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8047. $as_echo "no" >&6; }
  8048. fi
  8049. else
  8050. MAGIC_CMD=:
  8051. fi
  8052. fi
  8053. fi
  8054. ;;
  8055. esac
  8056. # Use C for the default configuration in the libtool script
  8057. lt_save_CC="$CC"
  8058. ac_ext=c
  8059. ac_cpp='$CPP $CPPFLAGS'
  8060. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8061. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8062. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8063. # Source file extension for C test sources.
  8064. ac_ext=c
  8065. # Object file extension for compiled C test sources.
  8066. objext=o
  8067. objext=$objext
  8068. # Code to be used in simple compile tests
  8069. lt_simple_compile_test_code="int some_variable = 0;"
  8070. # Code to be used in simple link tests
  8071. lt_simple_link_test_code='int main(){return(0);}'
  8072. # If no C compiler was specified, use CC.
  8073. LTCC=${LTCC-"$CC"}
  8074. # If no C compiler flags were specified, use CFLAGS.
  8075. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8076. # Allow CC to be a program name with arguments.
  8077. compiler=$CC
  8078. # Save the default compiler, since it gets overwritten when the other
  8079. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8080. compiler_DEFAULT=$CC
  8081. # save warnings/boilerplate of simple test code
  8082. ac_outfile=conftest.$ac_objext
  8083. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  8084. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8085. _lt_compiler_boilerplate=`cat conftest.err`
  8086. $RM conftest*
  8087. ac_outfile=conftest.$ac_objext
  8088. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  8089. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8090. _lt_linker_boilerplate=`cat conftest.err`
  8091. $RM -r conftest*
  8092. ## CAVEAT EMPTOR:
  8093. ## There is no encapsulation within the following macros, do not change
  8094. ## the running order or otherwise move them around unless you know exactly
  8095. ## what you are doing...
  8096. if test -n "$compiler"; then
  8097. lt_prog_compiler_no_builtin_flag=
  8098. if test "$GCC" = yes; then
  8099. case $cc_basename in
  8100. nvcc*)
  8101. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  8102. *)
  8103. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  8104. esac
  8105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8106. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  8107. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  8108. $as_echo_n "(cached) " >&6
  8109. else
  8110. lt_cv_prog_compiler_rtti_exceptions=no
  8111. ac_outfile=conftest.$ac_objext
  8112. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8113. lt_compiler_flag="-fno-rtti -fno-exceptions"
  8114. # Insert the option either (1) after the last *FLAGS variable, or
  8115. # (2) before a word containing "conftest.", or (3) at the end.
  8116. # Note that $ac_compile itself does not contain backslashes and begins
  8117. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8118. # The option is referenced via a variable to avoid confusing sed.
  8119. lt_compile=`echo "$ac_compile" | $SED \
  8120. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8121. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8122. -e 's:$: $lt_compiler_flag:'`
  8123. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8124. (eval "$lt_compile" 2>conftest.err)
  8125. ac_status=$?
  8126. cat conftest.err >&5
  8127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8128. if (exit $ac_status) && test -s "$ac_outfile"; then
  8129. # The compiler can only warn and ignore the option if not recognized
  8130. # So say no if there are warnings other than the usual output.
  8131. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8132. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8133. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8134. lt_cv_prog_compiler_rtti_exceptions=yes
  8135. fi
  8136. fi
  8137. $RM conftest*
  8138. fi
  8139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8140. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8141. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8142. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8143. else
  8144. :
  8145. fi
  8146. fi
  8147. lt_prog_compiler_wl=
  8148. lt_prog_compiler_pic=
  8149. lt_prog_compiler_static=
  8150. if test "$GCC" = yes; then
  8151. lt_prog_compiler_wl='-Wl,'
  8152. lt_prog_compiler_static='-static'
  8153. case $host_os in
  8154. aix*)
  8155. # All AIX code is PIC.
  8156. if test "$host_cpu" = ia64; then
  8157. # AIX 5 now supports IA64 processor
  8158. lt_prog_compiler_static='-Bstatic'
  8159. fi
  8160. ;;
  8161. amigaos*)
  8162. case $host_cpu in
  8163. powerpc)
  8164. # see comment about AmigaOS4 .so support
  8165. lt_prog_compiler_pic='-fPIC'
  8166. ;;
  8167. m68k)
  8168. # FIXME: we need at least 68020 code to build shared libraries, but
  8169. # adding the `-m68020' flag to GCC prevents building anything better,
  8170. # like `-m68040'.
  8171. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8172. ;;
  8173. esac
  8174. ;;
  8175. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8176. # PIC is the default for these OSes.
  8177. ;;
  8178. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8179. # This hack is so that the source file can tell whether it is being
  8180. # built for inclusion in a dll (and should export symbols for example).
  8181. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8182. # (--disable-auto-import) libraries
  8183. lt_prog_compiler_pic='-DDLL_EXPORT'
  8184. ;;
  8185. darwin* | rhapsody*)
  8186. # PIC is the default on this platform
  8187. # Common symbols not allowed in MH_DYLIB files
  8188. lt_prog_compiler_pic='-fno-common'
  8189. ;;
  8190. haiku*)
  8191. # PIC is the default for Haiku.
  8192. # The "-static" flag exists, but is broken.
  8193. lt_prog_compiler_static=
  8194. ;;
  8195. hpux*)
  8196. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8197. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8198. # sets the default TLS model and affects inlining.
  8199. case $host_cpu in
  8200. hppa*64*)
  8201. # +Z the default
  8202. ;;
  8203. *)
  8204. lt_prog_compiler_pic='-fPIC'
  8205. ;;
  8206. esac
  8207. ;;
  8208. interix[3-9]*)
  8209. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8210. # Instead, we relocate shared libraries at runtime.
  8211. ;;
  8212. msdosdjgpp*)
  8213. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8214. # on systems that don't support them.
  8215. lt_prog_compiler_can_build_shared=no
  8216. enable_shared=no
  8217. ;;
  8218. *nto* | *qnx*)
  8219. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8220. # it will coredump.
  8221. lt_prog_compiler_pic='-fPIC -shared'
  8222. ;;
  8223. sysv4*MP*)
  8224. if test -d /usr/nec; then
  8225. lt_prog_compiler_pic=-Kconform_pic
  8226. fi
  8227. ;;
  8228. *)
  8229. lt_prog_compiler_pic='-fPIC'
  8230. ;;
  8231. esac
  8232. case $cc_basename in
  8233. nvcc*) # Cuda Compiler Driver 2.2
  8234. lt_prog_compiler_wl='-Xlinker '
  8235. if test -n "$lt_prog_compiler_pic"; then
  8236. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  8237. fi
  8238. ;;
  8239. esac
  8240. else
  8241. # PORTME Check for flag to pass linker flags through the system compiler.
  8242. case $host_os in
  8243. aix*)
  8244. lt_prog_compiler_wl='-Wl,'
  8245. if test "$host_cpu" = ia64; then
  8246. # AIX 5 now supports IA64 processor
  8247. lt_prog_compiler_static='-Bstatic'
  8248. else
  8249. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8250. fi
  8251. ;;
  8252. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8253. # This hack is so that the source file can tell whether it is being
  8254. # built for inclusion in a dll (and should export symbols for example).
  8255. lt_prog_compiler_pic='-DDLL_EXPORT'
  8256. ;;
  8257. hpux9* | hpux10* | hpux11*)
  8258. lt_prog_compiler_wl='-Wl,'
  8259. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8260. # not for PA HP-UX.
  8261. case $host_cpu in
  8262. hppa*64*|ia64*)
  8263. # +Z the default
  8264. ;;
  8265. *)
  8266. lt_prog_compiler_pic='+Z'
  8267. ;;
  8268. esac
  8269. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8270. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8271. ;;
  8272. irix5* | irix6* | nonstopux*)
  8273. lt_prog_compiler_wl='-Wl,'
  8274. # PIC (with -KPIC) is the default.
  8275. lt_prog_compiler_static='-non_shared'
  8276. ;;
  8277. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8278. case $cc_basename in
  8279. # old Intel for x86_64 which still supported -KPIC.
  8280. ecc*)
  8281. lt_prog_compiler_wl='-Wl,'
  8282. lt_prog_compiler_pic='-KPIC'
  8283. lt_prog_compiler_static='-static'
  8284. ;;
  8285. # icc used to be incompatible with GCC.
  8286. # ICC 10 doesn't accept -KPIC any more.
  8287. icc* | ifort*)
  8288. lt_prog_compiler_wl='-Wl,'
  8289. lt_prog_compiler_pic='-fPIC'
  8290. lt_prog_compiler_static='-static'
  8291. ;;
  8292. # Lahey Fortran 8.1.
  8293. lf95*)
  8294. lt_prog_compiler_wl='-Wl,'
  8295. lt_prog_compiler_pic='--shared'
  8296. lt_prog_compiler_static='--static'
  8297. ;;
  8298. nagfor*)
  8299. # NAG Fortran compiler
  8300. lt_prog_compiler_wl='-Wl,-Wl,,'
  8301. lt_prog_compiler_pic='-PIC'
  8302. lt_prog_compiler_static='-Bstatic'
  8303. ;;
  8304. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8305. # Portland Group compilers (*not* the Pentium gcc compiler,
  8306. # which looks to be a dead project)
  8307. lt_prog_compiler_wl='-Wl,'
  8308. lt_prog_compiler_pic='-fpic'
  8309. lt_prog_compiler_static='-Bstatic'
  8310. ;;
  8311. ccc*)
  8312. lt_prog_compiler_wl='-Wl,'
  8313. # All Alpha code is PIC.
  8314. lt_prog_compiler_static='-non_shared'
  8315. ;;
  8316. xl* | bgxl* | bgf* | mpixl*)
  8317. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8318. lt_prog_compiler_wl='-Wl,'
  8319. lt_prog_compiler_pic='-qpic'
  8320. lt_prog_compiler_static='-qstaticlink'
  8321. ;;
  8322. *)
  8323. case `$CC -V 2>&1 | sed 5q` in
  8324. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  8325. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8326. lt_prog_compiler_pic='-KPIC'
  8327. lt_prog_compiler_static='-Bstatic'
  8328. lt_prog_compiler_wl=''
  8329. ;;
  8330. *Sun\ F* | *Sun*Fortran*)
  8331. lt_prog_compiler_pic='-KPIC'
  8332. lt_prog_compiler_static='-Bstatic'
  8333. lt_prog_compiler_wl='-Qoption ld '
  8334. ;;
  8335. *Sun\ C*)
  8336. # Sun C 5.9
  8337. lt_prog_compiler_pic='-KPIC'
  8338. lt_prog_compiler_static='-Bstatic'
  8339. lt_prog_compiler_wl='-Wl,'
  8340. ;;
  8341. *Intel*\ [CF]*Compiler*)
  8342. lt_prog_compiler_wl='-Wl,'
  8343. lt_prog_compiler_pic='-fPIC'
  8344. lt_prog_compiler_static='-static'
  8345. ;;
  8346. *Portland\ Group*)
  8347. lt_prog_compiler_wl='-Wl,'
  8348. lt_prog_compiler_pic='-fpic'
  8349. lt_prog_compiler_static='-Bstatic'
  8350. ;;
  8351. esac
  8352. ;;
  8353. esac
  8354. ;;
  8355. newsos6)
  8356. lt_prog_compiler_pic='-KPIC'
  8357. lt_prog_compiler_static='-Bstatic'
  8358. ;;
  8359. *nto* | *qnx*)
  8360. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8361. # it will coredump.
  8362. lt_prog_compiler_pic='-fPIC -shared'
  8363. ;;
  8364. osf3* | osf4* | osf5*)
  8365. lt_prog_compiler_wl='-Wl,'
  8366. # All OSF/1 code is PIC.
  8367. lt_prog_compiler_static='-non_shared'
  8368. ;;
  8369. rdos*)
  8370. lt_prog_compiler_static='-non_shared'
  8371. ;;
  8372. solaris*)
  8373. lt_prog_compiler_pic='-KPIC'
  8374. lt_prog_compiler_static='-Bstatic'
  8375. case $cc_basename in
  8376. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8377. lt_prog_compiler_wl='-Qoption ld ';;
  8378. *)
  8379. lt_prog_compiler_wl='-Wl,';;
  8380. esac
  8381. ;;
  8382. sunos4*)
  8383. lt_prog_compiler_wl='-Qoption ld '
  8384. lt_prog_compiler_pic='-PIC'
  8385. lt_prog_compiler_static='-Bstatic'
  8386. ;;
  8387. sysv4 | sysv4.2uw2* | sysv4.3*)
  8388. lt_prog_compiler_wl='-Wl,'
  8389. lt_prog_compiler_pic='-KPIC'
  8390. lt_prog_compiler_static='-Bstatic'
  8391. ;;
  8392. sysv4*MP*)
  8393. if test -d /usr/nec ;then
  8394. lt_prog_compiler_pic='-Kconform_pic'
  8395. lt_prog_compiler_static='-Bstatic'
  8396. fi
  8397. ;;
  8398. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8399. lt_prog_compiler_wl='-Wl,'
  8400. lt_prog_compiler_pic='-KPIC'
  8401. lt_prog_compiler_static='-Bstatic'
  8402. ;;
  8403. unicos*)
  8404. lt_prog_compiler_wl='-Wl,'
  8405. lt_prog_compiler_can_build_shared=no
  8406. ;;
  8407. uts4*)
  8408. lt_prog_compiler_pic='-pic'
  8409. lt_prog_compiler_static='-Bstatic'
  8410. ;;
  8411. *)
  8412. lt_prog_compiler_can_build_shared=no
  8413. ;;
  8414. esac
  8415. fi
  8416. case $host_os in
  8417. # For platforms which do not support PIC, -DPIC is meaningless:
  8418. *djgpp*)
  8419. lt_prog_compiler_pic=
  8420. ;;
  8421. *)
  8422. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8423. ;;
  8424. esac
  8425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8426. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8427. if ${lt_cv_prog_compiler_pic+:} false; then :
  8428. $as_echo_n "(cached) " >&6
  8429. else
  8430. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8431. fi
  8432. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8433. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8434. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8435. #
  8436. # Check to make sure the PIC flag actually works.
  8437. #
  8438. if test -n "$lt_prog_compiler_pic"; then
  8439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8440. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8441. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8442. $as_echo_n "(cached) " >&6
  8443. else
  8444. lt_cv_prog_compiler_pic_works=no
  8445. ac_outfile=conftest.$ac_objext
  8446. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8447. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8448. # Insert the option either (1) after the last *FLAGS variable, or
  8449. # (2) before a word containing "conftest.", or (3) at the end.
  8450. # Note that $ac_compile itself does not contain backslashes and begins
  8451. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8452. # The option is referenced via a variable to avoid confusing sed.
  8453. lt_compile=`echo "$ac_compile" | $SED \
  8454. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8455. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8456. -e 's:$: $lt_compiler_flag:'`
  8457. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8458. (eval "$lt_compile" 2>conftest.err)
  8459. ac_status=$?
  8460. cat conftest.err >&5
  8461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8462. if (exit $ac_status) && test -s "$ac_outfile"; then
  8463. # The compiler can only warn and ignore the option if not recognized
  8464. # So say no if there are warnings other than the usual output.
  8465. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8466. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8467. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8468. lt_cv_prog_compiler_pic_works=yes
  8469. fi
  8470. fi
  8471. $RM conftest*
  8472. fi
  8473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8474. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8475. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8476. case $lt_prog_compiler_pic in
  8477. "" | " "*) ;;
  8478. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8479. esac
  8480. else
  8481. lt_prog_compiler_pic=
  8482. lt_prog_compiler_can_build_shared=no
  8483. fi
  8484. fi
  8485. #
  8486. # Check to make sure the static flag actually works.
  8487. #
  8488. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8490. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8491. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8492. $as_echo_n "(cached) " >&6
  8493. else
  8494. lt_cv_prog_compiler_static_works=no
  8495. save_LDFLAGS="$LDFLAGS"
  8496. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8497. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8498. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8499. # The linker can only warn and ignore the option if not recognized
  8500. # So say no if there are warnings
  8501. if test -s conftest.err; then
  8502. # Append any errors to the config.log.
  8503. cat conftest.err 1>&5
  8504. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8505. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8506. if diff conftest.exp conftest.er2 >/dev/null; then
  8507. lt_cv_prog_compiler_static_works=yes
  8508. fi
  8509. else
  8510. lt_cv_prog_compiler_static_works=yes
  8511. fi
  8512. fi
  8513. $RM -r conftest*
  8514. LDFLAGS="$save_LDFLAGS"
  8515. fi
  8516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8517. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8518. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8519. :
  8520. else
  8521. lt_prog_compiler_static=
  8522. fi
  8523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8524. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8525. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8526. $as_echo_n "(cached) " >&6
  8527. else
  8528. lt_cv_prog_compiler_c_o=no
  8529. $RM -r conftest 2>/dev/null
  8530. mkdir conftest
  8531. cd conftest
  8532. mkdir out
  8533. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8534. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8535. # Insert the option either (1) after the last *FLAGS variable, or
  8536. # (2) before a word containing "conftest.", or (3) at the end.
  8537. # Note that $ac_compile itself does not contain backslashes and begins
  8538. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8539. lt_compile=`echo "$ac_compile" | $SED \
  8540. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8541. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8542. -e 's:$: $lt_compiler_flag:'`
  8543. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8544. (eval "$lt_compile" 2>out/conftest.err)
  8545. ac_status=$?
  8546. cat out/conftest.err >&5
  8547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8548. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8549. then
  8550. # The compiler can only warn and ignore the option if not recognized
  8551. # So say no if there are warnings
  8552. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8553. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8554. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8555. lt_cv_prog_compiler_c_o=yes
  8556. fi
  8557. fi
  8558. chmod u+w . 2>&5
  8559. $RM conftest*
  8560. # SGI C++ compiler will create directory out/ii_files/ for
  8561. # template instantiation
  8562. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8563. $RM out/* && rmdir out
  8564. cd ..
  8565. $RM -r conftest
  8566. $RM conftest*
  8567. fi
  8568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8569. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8571. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8572. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8573. $as_echo_n "(cached) " >&6
  8574. else
  8575. lt_cv_prog_compiler_c_o=no
  8576. $RM -r conftest 2>/dev/null
  8577. mkdir conftest
  8578. cd conftest
  8579. mkdir out
  8580. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8581. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8582. # Insert the option either (1) after the last *FLAGS variable, or
  8583. # (2) before a word containing "conftest.", or (3) at the end.
  8584. # Note that $ac_compile itself does not contain backslashes and begins
  8585. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8586. lt_compile=`echo "$ac_compile" | $SED \
  8587. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8588. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8589. -e 's:$: $lt_compiler_flag:'`
  8590. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8591. (eval "$lt_compile" 2>out/conftest.err)
  8592. ac_status=$?
  8593. cat out/conftest.err >&5
  8594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8595. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8596. then
  8597. # The compiler can only warn and ignore the option if not recognized
  8598. # So say no if there are warnings
  8599. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8600. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8601. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8602. lt_cv_prog_compiler_c_o=yes
  8603. fi
  8604. fi
  8605. chmod u+w . 2>&5
  8606. $RM conftest*
  8607. # SGI C++ compiler will create directory out/ii_files/ for
  8608. # template instantiation
  8609. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8610. $RM out/* && rmdir out
  8611. cd ..
  8612. $RM -r conftest
  8613. $RM conftest*
  8614. fi
  8615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8616. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8617. hard_links="nottested"
  8618. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8619. # do not overwrite the value of need_locks provided by the user
  8620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8621. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8622. hard_links=yes
  8623. $RM conftest*
  8624. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8625. touch conftest.a
  8626. ln conftest.a conftest.b 2>&5 || hard_links=no
  8627. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8629. $as_echo "$hard_links" >&6; }
  8630. if test "$hard_links" = no; then
  8631. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8632. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8633. need_locks=warn
  8634. fi
  8635. else
  8636. need_locks=no
  8637. fi
  8638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8639. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8640. runpath_var=
  8641. allow_undefined_flag=
  8642. always_export_symbols=no
  8643. archive_cmds=
  8644. archive_expsym_cmds=
  8645. compiler_needs_object=no
  8646. enable_shared_with_static_runtimes=no
  8647. export_dynamic_flag_spec=
  8648. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8649. hardcode_automatic=no
  8650. hardcode_direct=no
  8651. hardcode_direct_absolute=no
  8652. hardcode_libdir_flag_spec=
  8653. hardcode_libdir_separator=
  8654. hardcode_minus_L=no
  8655. hardcode_shlibpath_var=unsupported
  8656. inherit_rpath=no
  8657. link_all_deplibs=unknown
  8658. module_cmds=
  8659. module_expsym_cmds=
  8660. old_archive_from_new_cmds=
  8661. old_archive_from_expsyms_cmds=
  8662. thread_safe_flag_spec=
  8663. whole_archive_flag_spec=
  8664. # include_expsyms should be a list of space-separated symbols to be *always*
  8665. # included in the symbol list
  8666. include_expsyms=
  8667. # exclude_expsyms can be an extended regexp of symbols to exclude
  8668. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8669. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8670. # as well as any symbol that contains `d'.
  8671. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8672. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8673. # platforms (ab)use it in PIC code, but their linkers get confused if
  8674. # the symbol is explicitly referenced. Since portable code cannot
  8675. # rely on this symbol name, it's probably fine to never include it in
  8676. # preloaded symbol tables.
  8677. # Exclude shared library initialization/finalization symbols.
  8678. extract_expsyms_cmds=
  8679. case $host_os in
  8680. cygwin* | mingw* | pw32* | cegcc*)
  8681. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8682. # When not using gcc, we currently assume that we are using
  8683. # Microsoft Visual C++.
  8684. if test "$GCC" != yes; then
  8685. with_gnu_ld=no
  8686. fi
  8687. ;;
  8688. interix*)
  8689. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8690. with_gnu_ld=yes
  8691. ;;
  8692. openbsd*)
  8693. with_gnu_ld=no
  8694. ;;
  8695. linux* | k*bsd*-gnu | gnu*)
  8696. link_all_deplibs=no
  8697. ;;
  8698. esac
  8699. ld_shlibs=yes
  8700. # On some targets, GNU ld is compatible enough with the native linker
  8701. # that we're better off using the native interface for both.
  8702. lt_use_gnu_ld_interface=no
  8703. if test "$with_gnu_ld" = yes; then
  8704. case $host_os in
  8705. aix*)
  8706. # The AIX port of GNU ld has always aspired to compatibility
  8707. # with the native linker. However, as the warning in the GNU ld
  8708. # block says, versions before 2.19.5* couldn't really create working
  8709. # shared libraries, regardless of the interface used.
  8710. case `$LD -v 2>&1` in
  8711. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8712. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8713. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8714. *)
  8715. lt_use_gnu_ld_interface=yes
  8716. ;;
  8717. esac
  8718. ;;
  8719. *)
  8720. lt_use_gnu_ld_interface=yes
  8721. ;;
  8722. esac
  8723. fi
  8724. if test "$lt_use_gnu_ld_interface" = yes; then
  8725. # If archive_cmds runs LD, not CC, wlarc should be empty
  8726. wlarc='${wl}'
  8727. # Set some defaults for GNU ld with shared library support. These
  8728. # are reset later if shared libraries are not supported. Putting them
  8729. # here allows them to be overridden if necessary.
  8730. runpath_var=LD_RUN_PATH
  8731. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8732. export_dynamic_flag_spec='${wl}--export-dynamic'
  8733. # ancient GNU ld didn't support --whole-archive et. al.
  8734. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8735. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8736. else
  8737. whole_archive_flag_spec=
  8738. fi
  8739. supports_anon_versioning=no
  8740. case `$LD -v 2>&1` in
  8741. *GNU\ gold*) supports_anon_versioning=yes ;;
  8742. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8743. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8744. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8745. *\ 2.11.*) ;; # other 2.11 versions
  8746. *) supports_anon_versioning=yes ;;
  8747. esac
  8748. # See if GNU ld supports shared libraries.
  8749. case $host_os in
  8750. aix[3-9]*)
  8751. # On AIX/PPC, the GNU linker is very broken
  8752. if test "$host_cpu" != ia64; then
  8753. ld_shlibs=no
  8754. cat <<_LT_EOF 1>&2
  8755. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8756. *** to be unable to reliably create shared libraries on AIX.
  8757. *** Therefore, libtool is disabling shared libraries support. If you
  8758. *** really care for shared libraries, you may want to install binutils
  8759. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8760. *** You will then need to restart the configuration process.
  8761. _LT_EOF
  8762. fi
  8763. ;;
  8764. amigaos*)
  8765. case $host_cpu in
  8766. powerpc)
  8767. # see comment about AmigaOS4 .so support
  8768. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8769. archive_expsym_cmds=''
  8770. ;;
  8771. m68k)
  8772. 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)'
  8773. hardcode_libdir_flag_spec='-L$libdir'
  8774. hardcode_minus_L=yes
  8775. ;;
  8776. esac
  8777. ;;
  8778. beos*)
  8779. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8780. allow_undefined_flag=unsupported
  8781. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8782. # support --undefined. This deserves some investigation. FIXME
  8783. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8784. else
  8785. ld_shlibs=no
  8786. fi
  8787. ;;
  8788. cygwin* | mingw* | pw32* | cegcc*)
  8789. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8790. # as there is no search path for DLLs.
  8791. hardcode_libdir_flag_spec='-L$libdir'
  8792. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8793. allow_undefined_flag=unsupported
  8794. always_export_symbols=no
  8795. enable_shared_with_static_runtimes=yes
  8796. 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'
  8797. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8798. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8799. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8800. # If the export-symbols file already is a .def file (1st line
  8801. # is EXPORTS), use it as is; otherwise, prepend...
  8802. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8803. cp $export_symbols $output_objdir/$soname.def;
  8804. else
  8805. echo EXPORTS > $output_objdir/$soname.def;
  8806. cat $export_symbols >> $output_objdir/$soname.def;
  8807. fi~
  8808. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8809. else
  8810. ld_shlibs=no
  8811. fi
  8812. ;;
  8813. haiku*)
  8814. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8815. link_all_deplibs=yes
  8816. ;;
  8817. interix[3-9]*)
  8818. hardcode_direct=no
  8819. hardcode_shlibpath_var=no
  8820. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8821. export_dynamic_flag_spec='${wl}-E'
  8822. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8823. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8824. # default) and relocated if they conflict, which is a slow very memory
  8825. # consuming and fragmenting process. To avoid this, we pick a random,
  8826. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8827. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8828. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8829. 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'
  8830. ;;
  8831. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8832. tmp_diet=no
  8833. if test "$host_os" = linux-dietlibc; then
  8834. case $cc_basename in
  8835. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8836. esac
  8837. fi
  8838. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8839. && test "$tmp_diet" = no
  8840. then
  8841. tmp_addflag=' $pic_flag'
  8842. tmp_sharedflag='-shared'
  8843. case $cc_basename,$host_cpu in
  8844. pgcc*) # Portland Group C compiler
  8845. 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'
  8846. tmp_addflag=' $pic_flag'
  8847. ;;
  8848. pgf77* | pgf90* | pgf95* | pgfortran*)
  8849. # Portland Group f77 and f90 compilers
  8850. 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'
  8851. tmp_addflag=' $pic_flag -Mnomain' ;;
  8852. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8853. tmp_addflag=' -i_dynamic' ;;
  8854. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8855. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8856. ifc* | ifort*) # Intel Fortran compiler
  8857. tmp_addflag=' -nofor_main' ;;
  8858. lf95*) # Lahey Fortran 8.1
  8859. whole_archive_flag_spec=
  8860. tmp_sharedflag='--shared' ;;
  8861. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8862. tmp_sharedflag='-qmkshrobj'
  8863. tmp_addflag= ;;
  8864. nvcc*) # Cuda Compiler Driver 2.2
  8865. 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'
  8866. compiler_needs_object=yes
  8867. ;;
  8868. esac
  8869. case `$CC -V 2>&1 | sed 5q` in
  8870. *Sun\ C*) # Sun C 5.9
  8871. 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'
  8872. compiler_needs_object=yes
  8873. tmp_sharedflag='-G' ;;
  8874. *Sun\ F*) # Sun Fortran 8.3
  8875. tmp_sharedflag='-G' ;;
  8876. esac
  8877. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8878. if test "x$supports_anon_versioning" = xyes; then
  8879. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8880. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8881. echo "local: *; };" >> $output_objdir/$libname.ver~
  8882. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8883. fi
  8884. case $cc_basename in
  8885. xlf* | bgf* | bgxlf* | mpixlf*)
  8886. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8887. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8888. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8889. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8890. if test "x$supports_anon_versioning" = xyes; then
  8891. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8892. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8893. echo "local: *; };" >> $output_objdir/$libname.ver~
  8894. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8895. fi
  8896. ;;
  8897. esac
  8898. else
  8899. ld_shlibs=no
  8900. fi
  8901. ;;
  8902. netbsd* | netbsdelf*-gnu)
  8903. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8904. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8905. wlarc=
  8906. else
  8907. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8908. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8909. fi
  8910. ;;
  8911. solaris*)
  8912. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8913. ld_shlibs=no
  8914. cat <<_LT_EOF 1>&2
  8915. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8916. *** create shared libraries on Solaris systems. Therefore, libtool
  8917. *** is disabling shared libraries support. We urge you to upgrade GNU
  8918. *** binutils to release 2.9.1 or newer. Another option is to modify
  8919. *** your PATH or compiler configuration so that the native linker is
  8920. *** used, and then restart.
  8921. _LT_EOF
  8922. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8923. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8924. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8925. else
  8926. ld_shlibs=no
  8927. fi
  8928. ;;
  8929. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8930. case `$LD -v 2>&1` in
  8931. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8932. ld_shlibs=no
  8933. cat <<_LT_EOF 1>&2
  8934. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8935. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8936. *** is disabling shared libraries support. We urge you to upgrade GNU
  8937. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8938. *** your PATH or compiler configuration so that the native linker is
  8939. *** used, and then restart.
  8940. _LT_EOF
  8941. ;;
  8942. *)
  8943. # For security reasons, it is highly recommended that you always
  8944. # use absolute paths for naming shared libraries, and exclude the
  8945. # DT_RUNPATH tag from executables and libraries. But doing so
  8946. # requires that you compile everything twice, which is a pain.
  8947. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8948. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8949. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8950. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8951. else
  8952. ld_shlibs=no
  8953. fi
  8954. ;;
  8955. esac
  8956. ;;
  8957. sunos4*)
  8958. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8959. wlarc=
  8960. hardcode_direct=yes
  8961. hardcode_shlibpath_var=no
  8962. ;;
  8963. *)
  8964. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8965. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8966. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8967. else
  8968. ld_shlibs=no
  8969. fi
  8970. ;;
  8971. esac
  8972. if test "$ld_shlibs" = no; then
  8973. runpath_var=
  8974. hardcode_libdir_flag_spec=
  8975. export_dynamic_flag_spec=
  8976. whole_archive_flag_spec=
  8977. fi
  8978. else
  8979. # PORTME fill in a description of your system's linker (not GNU ld)
  8980. case $host_os in
  8981. aix3*)
  8982. allow_undefined_flag=unsupported
  8983. always_export_symbols=yes
  8984. 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'
  8985. # Note: this linker hardcodes the directories in LIBPATH if there
  8986. # are no directories specified by -L.
  8987. hardcode_minus_L=yes
  8988. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8989. # Neither direct hardcoding nor static linking is supported with a
  8990. # broken collect2.
  8991. hardcode_direct=unsupported
  8992. fi
  8993. ;;
  8994. aix[4-9]*)
  8995. if test "$host_cpu" = ia64; then
  8996. # On IA64, the linker does run time linking by default, so we don't
  8997. # have to do anything special.
  8998. aix_use_runtimelinking=no
  8999. exp_sym_flag='-Bexport'
  9000. no_entry_flag=""
  9001. else
  9002. # If we're using GNU nm, then we don't want the "-C" option.
  9003. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9004. # Also, AIX nm treats weak defined symbols like other global
  9005. # defined symbols, whereas GNU nm marks them as "W".
  9006. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  9007. 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'
  9008. else
  9009. 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'
  9010. fi
  9011. aix_use_runtimelinking=no
  9012. # Test if we are trying to use run time linking or normal
  9013. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9014. # need to do runtime linking.
  9015. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  9016. for ld_flag in $LDFLAGS; do
  9017. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  9018. aix_use_runtimelinking=yes
  9019. break
  9020. fi
  9021. done
  9022. ;;
  9023. esac
  9024. exp_sym_flag='-bexport'
  9025. no_entry_flag='-bnoentry'
  9026. fi
  9027. # When large executables or shared objects are built, AIX ld can
  9028. # have problems creating the table of contents. If linking a library
  9029. # or program results in "error TOC overflow" add -mminimal-toc to
  9030. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9031. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9032. archive_cmds=''
  9033. hardcode_direct=yes
  9034. hardcode_direct_absolute=yes
  9035. hardcode_libdir_separator=':'
  9036. link_all_deplibs=yes
  9037. file_list_spec='${wl}-f,'
  9038. if test "$GCC" = yes; then
  9039. case $host_os in aix4.[012]|aix4.[012].*)
  9040. # We only want to do this on AIX 4.2 and lower, the check
  9041. # below for broken collect2 doesn't work under 4.3+
  9042. collect2name=`${CC} -print-prog-name=collect2`
  9043. if test -f "$collect2name" &&
  9044. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9045. then
  9046. # We have reworked collect2
  9047. :
  9048. else
  9049. # We have old collect2
  9050. hardcode_direct=unsupported
  9051. # It fails to find uninstalled libraries when the uninstalled
  9052. # path is not listed in the libpath. Setting hardcode_minus_L
  9053. # to unsupported forces relinking
  9054. hardcode_minus_L=yes
  9055. hardcode_libdir_flag_spec='-L$libdir'
  9056. hardcode_libdir_separator=
  9057. fi
  9058. ;;
  9059. esac
  9060. shared_flag='-shared'
  9061. if test "$aix_use_runtimelinking" = yes; then
  9062. shared_flag="$shared_flag "'${wl}-G'
  9063. fi
  9064. link_all_deplibs=no
  9065. else
  9066. # not using gcc
  9067. if test "$host_cpu" = ia64; then
  9068. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9069. # chokes on -Wl,-G. The following line is correct:
  9070. shared_flag='-G'
  9071. else
  9072. if test "$aix_use_runtimelinking" = yes; then
  9073. shared_flag='${wl}-G'
  9074. else
  9075. shared_flag='${wl}-bM:SRE'
  9076. fi
  9077. fi
  9078. fi
  9079. export_dynamic_flag_spec='${wl}-bexpall'
  9080. # It seems that -bexpall does not export symbols beginning with
  9081. # underscore (_), so it is better to generate a list of symbols to export.
  9082. always_export_symbols=yes
  9083. if test "$aix_use_runtimelinking" = yes; then
  9084. # Warning - without using the other runtime loading flags (-brtl),
  9085. # -berok will link without error, but may produce a broken library.
  9086. allow_undefined_flag='-berok'
  9087. # Determine the default libpath from the value encoded in an
  9088. # empty executable.
  9089. if test "${lt_cv_aix_libpath+set}" = set; then
  9090. aix_libpath=$lt_cv_aix_libpath
  9091. else
  9092. if ${lt_cv_aix_libpath_+:} false; then :
  9093. $as_echo_n "(cached) " >&6
  9094. else
  9095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9096. /* end confdefs.h. */
  9097. int
  9098. main ()
  9099. {
  9100. ;
  9101. return 0;
  9102. }
  9103. _ACEOF
  9104. if ac_fn_c_try_link "$LINENO"; then :
  9105. lt_aix_libpath_sed='
  9106. /Import File Strings/,/^$/ {
  9107. /^0/ {
  9108. s/^0 *\([^ ]*\) *$/\1/
  9109. p
  9110. }
  9111. }'
  9112. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9113. # Check for a 64-bit object if we didn't find anything.
  9114. if test -z "$lt_cv_aix_libpath_"; then
  9115. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9116. fi
  9117. fi
  9118. rm -f core conftest.err conftest.$ac_objext \
  9119. conftest$ac_exeext conftest.$ac_ext
  9120. if test -z "$lt_cv_aix_libpath_"; then
  9121. lt_cv_aix_libpath_="/usr/lib:/lib"
  9122. fi
  9123. fi
  9124. aix_libpath=$lt_cv_aix_libpath_
  9125. fi
  9126. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9127. 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"
  9128. else
  9129. if test "$host_cpu" = ia64; then
  9130. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9131. allow_undefined_flag="-z nodefs"
  9132. 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"
  9133. else
  9134. # Determine the default libpath from the value encoded in an
  9135. # empty executable.
  9136. if test "${lt_cv_aix_libpath+set}" = set; then
  9137. aix_libpath=$lt_cv_aix_libpath
  9138. else
  9139. if ${lt_cv_aix_libpath_+:} false; then :
  9140. $as_echo_n "(cached) " >&6
  9141. else
  9142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9143. /* end confdefs.h. */
  9144. int
  9145. main ()
  9146. {
  9147. ;
  9148. return 0;
  9149. }
  9150. _ACEOF
  9151. if ac_fn_c_try_link "$LINENO"; then :
  9152. lt_aix_libpath_sed='
  9153. /Import File Strings/,/^$/ {
  9154. /^0/ {
  9155. s/^0 *\([^ ]*\) *$/\1/
  9156. p
  9157. }
  9158. }'
  9159. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9160. # Check for a 64-bit object if we didn't find anything.
  9161. if test -z "$lt_cv_aix_libpath_"; then
  9162. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  9163. fi
  9164. fi
  9165. rm -f core conftest.err conftest.$ac_objext \
  9166. conftest$ac_exeext conftest.$ac_ext
  9167. if test -z "$lt_cv_aix_libpath_"; then
  9168. lt_cv_aix_libpath_="/usr/lib:/lib"
  9169. fi
  9170. fi
  9171. aix_libpath=$lt_cv_aix_libpath_
  9172. fi
  9173. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  9174. # Warning - without using the other run time loading flags,
  9175. # -berok will link without error, but may produce a broken library.
  9176. no_undefined_flag=' ${wl}-bernotok'
  9177. allow_undefined_flag=' ${wl}-berok'
  9178. if test "$with_gnu_ld" = yes; then
  9179. # We only use this code for GNU lds that support --whole-archive.
  9180. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9181. else
  9182. # Exported symbols can be pulled into shared objects from archives
  9183. whole_archive_flag_spec='$convenience'
  9184. fi
  9185. archive_cmds_need_lc=yes
  9186. # This is similar to how AIX traditionally builds its shared libraries.
  9187. 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'
  9188. fi
  9189. fi
  9190. ;;
  9191. amigaos*)
  9192. case $host_cpu in
  9193. powerpc)
  9194. # see comment about AmigaOS4 .so support
  9195. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9196. archive_expsym_cmds=''
  9197. ;;
  9198. m68k)
  9199. 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)'
  9200. hardcode_libdir_flag_spec='-L$libdir'
  9201. hardcode_minus_L=yes
  9202. ;;
  9203. esac
  9204. ;;
  9205. bsdi[45]*)
  9206. export_dynamic_flag_spec=-rdynamic
  9207. ;;
  9208. cygwin* | mingw* | pw32* | cegcc*)
  9209. # When not using gcc, we currently assume that we are using
  9210. # Microsoft Visual C++.
  9211. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9212. # no search path for DLLs.
  9213. case $cc_basename in
  9214. cl*)
  9215. # Native MSVC
  9216. hardcode_libdir_flag_spec=' '
  9217. allow_undefined_flag=unsupported
  9218. always_export_symbols=yes
  9219. file_list_spec='@'
  9220. # Tell ltmain to make .lib files, not .a files.
  9221. libext=lib
  9222. # Tell ltmain to make .dll files, not .so files.
  9223. shrext_cmds=".dll"
  9224. # FIXME: Setting linknames here is a bad hack.
  9225. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  9226. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9227. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  9228. else
  9229. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  9230. fi~
  9231. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  9232. linknames='
  9233. # The linker will not automatically build a static lib if we build a DLL.
  9234. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  9235. enable_shared_with_static_runtimes=yes
  9236. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  9237. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  9238. # Don't use ranlib
  9239. old_postinstall_cmds='chmod 644 $oldlib'
  9240. postlink_cmds='lt_outputfile="@OUTPUT@"~
  9241. lt_tool_outputfile="@TOOL_OUTPUT@"~
  9242. case $lt_outputfile in
  9243. *.exe|*.EXE) ;;
  9244. *)
  9245. lt_outputfile="$lt_outputfile.exe"
  9246. lt_tool_outputfile="$lt_tool_outputfile.exe"
  9247. ;;
  9248. esac~
  9249. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  9250. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  9251. $RM "$lt_outputfile.manifest";
  9252. fi'
  9253. ;;
  9254. *)
  9255. # Assume MSVC wrapper
  9256. hardcode_libdir_flag_spec=' '
  9257. allow_undefined_flag=unsupported
  9258. # Tell ltmain to make .lib files, not .a files.
  9259. libext=lib
  9260. # Tell ltmain to make .dll files, not .so files.
  9261. shrext_cmds=".dll"
  9262. # FIXME: Setting linknames here is a bad hack.
  9263. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9264. # The linker will automatically build a .lib file if we build a DLL.
  9265. old_archive_from_new_cmds='true'
  9266. # FIXME: Should let the user specify the lib program.
  9267. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9268. enable_shared_with_static_runtimes=yes
  9269. ;;
  9270. esac
  9271. ;;
  9272. darwin* | rhapsody*)
  9273. archive_cmds_need_lc=no
  9274. hardcode_direct=no
  9275. hardcode_automatic=yes
  9276. hardcode_shlibpath_var=unsupported
  9277. if test "$lt_cv_ld_force_load" = "yes"; then
  9278. 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\"`'
  9279. else
  9280. whole_archive_flag_spec=''
  9281. fi
  9282. link_all_deplibs=yes
  9283. allow_undefined_flag="$_lt_dar_allow_undefined"
  9284. case $cc_basename in
  9285. ifort*) _lt_dar_can_shared=yes ;;
  9286. *) _lt_dar_can_shared=$GCC ;;
  9287. esac
  9288. if test "$_lt_dar_can_shared" = "yes"; then
  9289. output_verbose_link_cmd=func_echo_all
  9290. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9291. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9292. 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}"
  9293. 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}"
  9294. else
  9295. ld_shlibs=no
  9296. fi
  9297. ;;
  9298. dgux*)
  9299. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9300. hardcode_libdir_flag_spec='-L$libdir'
  9301. hardcode_shlibpath_var=no
  9302. ;;
  9303. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9304. # support. Future versions do this automatically, but an explicit c++rt0.o
  9305. # does not break anything, and helps significantly (at the cost of a little
  9306. # extra space).
  9307. freebsd2.2*)
  9308. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9309. hardcode_libdir_flag_spec='-R$libdir'
  9310. hardcode_direct=yes
  9311. hardcode_shlibpath_var=no
  9312. ;;
  9313. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9314. freebsd2.*)
  9315. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9316. hardcode_direct=yes
  9317. hardcode_minus_L=yes
  9318. hardcode_shlibpath_var=no
  9319. ;;
  9320. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9321. freebsd* | dragonfly*)
  9322. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9323. hardcode_libdir_flag_spec='-R$libdir'
  9324. hardcode_direct=yes
  9325. hardcode_shlibpath_var=no
  9326. ;;
  9327. hpux9*)
  9328. if test "$GCC" = yes; then
  9329. 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'
  9330. else
  9331. 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'
  9332. fi
  9333. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9334. hardcode_libdir_separator=:
  9335. hardcode_direct=yes
  9336. # hardcode_minus_L: Not really in the search PATH,
  9337. # but as the default location of the library.
  9338. hardcode_minus_L=yes
  9339. export_dynamic_flag_spec='${wl}-E'
  9340. ;;
  9341. hpux10*)
  9342. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9343. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9344. else
  9345. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9346. fi
  9347. if test "$with_gnu_ld" = no; then
  9348. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9349. hardcode_libdir_separator=:
  9350. hardcode_direct=yes
  9351. hardcode_direct_absolute=yes
  9352. export_dynamic_flag_spec='${wl}-E'
  9353. # hardcode_minus_L: Not really in the search PATH,
  9354. # but as the default location of the library.
  9355. hardcode_minus_L=yes
  9356. fi
  9357. ;;
  9358. hpux11*)
  9359. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9360. case $host_cpu in
  9361. hppa*64*)
  9362. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9363. ;;
  9364. ia64*)
  9365. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9366. ;;
  9367. *)
  9368. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9369. ;;
  9370. esac
  9371. else
  9372. case $host_cpu in
  9373. hppa*64*)
  9374. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9375. ;;
  9376. ia64*)
  9377. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9378. ;;
  9379. *)
  9380. # Older versions of the 11.00 compiler do not understand -b yet
  9381. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9383. $as_echo_n "checking if $CC understands -b... " >&6; }
  9384. if ${lt_cv_prog_compiler__b+:} false; then :
  9385. $as_echo_n "(cached) " >&6
  9386. else
  9387. lt_cv_prog_compiler__b=no
  9388. save_LDFLAGS="$LDFLAGS"
  9389. LDFLAGS="$LDFLAGS -b"
  9390. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9391. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9392. # The linker can only warn and ignore the option if not recognized
  9393. # So say no if there are warnings
  9394. if test -s conftest.err; then
  9395. # Append any errors to the config.log.
  9396. cat conftest.err 1>&5
  9397. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9398. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9399. if diff conftest.exp conftest.er2 >/dev/null; then
  9400. lt_cv_prog_compiler__b=yes
  9401. fi
  9402. else
  9403. lt_cv_prog_compiler__b=yes
  9404. fi
  9405. fi
  9406. $RM -r conftest*
  9407. LDFLAGS="$save_LDFLAGS"
  9408. fi
  9409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9410. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9411. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9412. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9413. else
  9414. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9415. fi
  9416. ;;
  9417. esac
  9418. fi
  9419. if test "$with_gnu_ld" = no; then
  9420. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9421. hardcode_libdir_separator=:
  9422. case $host_cpu in
  9423. hppa*64*|ia64*)
  9424. hardcode_direct=no
  9425. hardcode_shlibpath_var=no
  9426. ;;
  9427. *)
  9428. hardcode_direct=yes
  9429. hardcode_direct_absolute=yes
  9430. export_dynamic_flag_spec='${wl}-E'
  9431. # hardcode_minus_L: Not really in the search PATH,
  9432. # but as the default location of the library.
  9433. hardcode_minus_L=yes
  9434. ;;
  9435. esac
  9436. fi
  9437. ;;
  9438. irix5* | irix6* | nonstopux*)
  9439. if test "$GCC" = yes; then
  9440. 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'
  9441. # Try to use the -exported_symbol ld option, if it does not
  9442. # work, assume that -exports_file does not work either and
  9443. # implicitly export all symbols.
  9444. # This should be the same for all languages, so no per-tag cache variable.
  9445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9446. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9447. if ${lt_cv_irix_exported_symbol+:} false; then :
  9448. $as_echo_n "(cached) " >&6
  9449. else
  9450. save_LDFLAGS="$LDFLAGS"
  9451. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9453. /* end confdefs.h. */
  9454. int foo (void) { return 0; }
  9455. _ACEOF
  9456. if ac_fn_c_try_link "$LINENO"; then :
  9457. lt_cv_irix_exported_symbol=yes
  9458. else
  9459. lt_cv_irix_exported_symbol=no
  9460. fi
  9461. rm -f core conftest.err conftest.$ac_objext \
  9462. conftest$ac_exeext conftest.$ac_ext
  9463. LDFLAGS="$save_LDFLAGS"
  9464. fi
  9465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9466. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9467. if test "$lt_cv_irix_exported_symbol" = yes; then
  9468. 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'
  9469. fi
  9470. else
  9471. 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'
  9472. 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'
  9473. fi
  9474. archive_cmds_need_lc='no'
  9475. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9476. hardcode_libdir_separator=:
  9477. inherit_rpath=yes
  9478. link_all_deplibs=yes
  9479. ;;
  9480. netbsd* | netbsdelf*-gnu)
  9481. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9482. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9483. else
  9484. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9485. fi
  9486. hardcode_libdir_flag_spec='-R$libdir'
  9487. hardcode_direct=yes
  9488. hardcode_shlibpath_var=no
  9489. ;;
  9490. newsos6)
  9491. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9492. hardcode_direct=yes
  9493. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9494. hardcode_libdir_separator=:
  9495. hardcode_shlibpath_var=no
  9496. ;;
  9497. *nto* | *qnx*)
  9498. ;;
  9499. openbsd*)
  9500. if test -f /usr/libexec/ld.so; then
  9501. hardcode_direct=yes
  9502. hardcode_shlibpath_var=no
  9503. hardcode_direct_absolute=yes
  9504. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9505. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9506. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9507. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9508. export_dynamic_flag_spec='${wl}-E'
  9509. else
  9510. case $host_os in
  9511. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9512. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9513. hardcode_libdir_flag_spec='-R$libdir'
  9514. ;;
  9515. *)
  9516. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9517. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9518. ;;
  9519. esac
  9520. fi
  9521. else
  9522. ld_shlibs=no
  9523. fi
  9524. ;;
  9525. os2*)
  9526. hardcode_libdir_flag_spec='-L$libdir'
  9527. hardcode_minus_L=yes
  9528. allow_undefined_flag=unsupported
  9529. 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'
  9530. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9531. ;;
  9532. osf3*)
  9533. if test "$GCC" = yes; then
  9534. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9535. 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'
  9536. else
  9537. allow_undefined_flag=' -expect_unresolved \*'
  9538. 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'
  9539. fi
  9540. archive_cmds_need_lc='no'
  9541. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9542. hardcode_libdir_separator=:
  9543. ;;
  9544. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9545. if test "$GCC" = yes; then
  9546. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9547. 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'
  9548. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9549. else
  9550. allow_undefined_flag=' -expect_unresolved \*'
  9551. 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'
  9552. 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~
  9553. $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'
  9554. # Both c and cxx compiler support -rpath directly
  9555. hardcode_libdir_flag_spec='-rpath $libdir'
  9556. fi
  9557. archive_cmds_need_lc='no'
  9558. hardcode_libdir_separator=:
  9559. ;;
  9560. solaris*)
  9561. no_undefined_flag=' -z defs'
  9562. if test "$GCC" = yes; then
  9563. wlarc='${wl}'
  9564. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9565. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9566. $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'
  9567. else
  9568. case `$CC -V 2>&1` in
  9569. *"Compilers 5.0"*)
  9570. wlarc=''
  9571. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9572. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9573. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9574. ;;
  9575. *)
  9576. wlarc='${wl}'
  9577. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9578. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9579. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9580. ;;
  9581. esac
  9582. fi
  9583. hardcode_libdir_flag_spec='-R$libdir'
  9584. hardcode_shlibpath_var=no
  9585. case $host_os in
  9586. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9587. *)
  9588. # The compiler driver will combine and reorder linker options,
  9589. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9590. # but is careful enough not to reorder.
  9591. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9592. if test "$GCC" = yes; then
  9593. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9594. else
  9595. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9596. fi
  9597. ;;
  9598. esac
  9599. link_all_deplibs=yes
  9600. ;;
  9601. sunos4*)
  9602. if test "x$host_vendor" = xsequent; then
  9603. # Use $CC to link under sequent, because it throws in some extra .o
  9604. # files that make .init and .fini sections work.
  9605. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9606. else
  9607. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9608. fi
  9609. hardcode_libdir_flag_spec='-L$libdir'
  9610. hardcode_direct=yes
  9611. hardcode_minus_L=yes
  9612. hardcode_shlibpath_var=no
  9613. ;;
  9614. sysv4)
  9615. case $host_vendor in
  9616. sni)
  9617. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9618. hardcode_direct=yes # is this really true???
  9619. ;;
  9620. siemens)
  9621. ## LD is ld it makes a PLAMLIB
  9622. ## CC just makes a GrossModule.
  9623. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9624. reload_cmds='$CC -r -o $output$reload_objs'
  9625. hardcode_direct=no
  9626. ;;
  9627. motorola)
  9628. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9629. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9630. ;;
  9631. esac
  9632. runpath_var='LD_RUN_PATH'
  9633. hardcode_shlibpath_var=no
  9634. ;;
  9635. sysv4.3*)
  9636. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9637. hardcode_shlibpath_var=no
  9638. export_dynamic_flag_spec='-Bexport'
  9639. ;;
  9640. sysv4*MP*)
  9641. if test -d /usr/nec; then
  9642. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9643. hardcode_shlibpath_var=no
  9644. runpath_var=LD_RUN_PATH
  9645. hardcode_runpath_var=yes
  9646. ld_shlibs=yes
  9647. fi
  9648. ;;
  9649. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9650. no_undefined_flag='${wl}-z,text'
  9651. archive_cmds_need_lc=no
  9652. hardcode_shlibpath_var=no
  9653. runpath_var='LD_RUN_PATH'
  9654. if test "$GCC" = yes; then
  9655. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9656. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9657. else
  9658. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9659. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9660. fi
  9661. ;;
  9662. sysv5* | sco3.2v5* | sco5v6*)
  9663. # Note: We can NOT use -z defs as we might desire, because we do not
  9664. # link with -lc, and that would cause any symbols used from libc to
  9665. # always be unresolved, which means just about no library would
  9666. # ever link correctly. If we're not using GNU ld we use -z text
  9667. # though, which does catch some bad symbols but isn't as heavy-handed
  9668. # as -z defs.
  9669. no_undefined_flag='${wl}-z,text'
  9670. allow_undefined_flag='${wl}-z,nodefs'
  9671. archive_cmds_need_lc=no
  9672. hardcode_shlibpath_var=no
  9673. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9674. hardcode_libdir_separator=':'
  9675. link_all_deplibs=yes
  9676. export_dynamic_flag_spec='${wl}-Bexport'
  9677. runpath_var='LD_RUN_PATH'
  9678. if test "$GCC" = yes; then
  9679. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9680. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9681. else
  9682. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9683. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9684. fi
  9685. ;;
  9686. uts4*)
  9687. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9688. hardcode_libdir_flag_spec='-L$libdir'
  9689. hardcode_shlibpath_var=no
  9690. ;;
  9691. *)
  9692. ld_shlibs=no
  9693. ;;
  9694. esac
  9695. if test x$host_vendor = xsni; then
  9696. case $host in
  9697. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9698. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9699. ;;
  9700. esac
  9701. fi
  9702. fi
  9703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9704. $as_echo "$ld_shlibs" >&6; }
  9705. test "$ld_shlibs" = no && can_build_shared=no
  9706. with_gnu_ld=$with_gnu_ld
  9707. #
  9708. # Do we need to explicitly link libc?
  9709. #
  9710. case "x$archive_cmds_need_lc" in
  9711. x|xyes)
  9712. # Assume -lc should be added
  9713. archive_cmds_need_lc=yes
  9714. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9715. case $archive_cmds in
  9716. *'~'*)
  9717. # FIXME: we may have to deal with multi-command sequences.
  9718. ;;
  9719. '$CC '*)
  9720. # Test whether the compiler implicitly links with -lc since on some
  9721. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9722. # to ld, don't add -lc before -lgcc.
  9723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9724. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9725. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9726. $as_echo_n "(cached) " >&6
  9727. else
  9728. $RM conftest*
  9729. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9730. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9731. (eval $ac_compile) 2>&5
  9732. ac_status=$?
  9733. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9734. test $ac_status = 0; } 2>conftest.err; then
  9735. soname=conftest
  9736. lib=conftest
  9737. libobjs=conftest.$ac_objext
  9738. deplibs=
  9739. wl=$lt_prog_compiler_wl
  9740. pic_flag=$lt_prog_compiler_pic
  9741. compiler_flags=-v
  9742. linker_flags=-v
  9743. verstring=
  9744. output_objdir=.
  9745. libname=conftest
  9746. lt_save_allow_undefined_flag=$allow_undefined_flag
  9747. allow_undefined_flag=
  9748. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9749. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9750. ac_status=$?
  9751. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9752. test $ac_status = 0; }
  9753. then
  9754. lt_cv_archive_cmds_need_lc=no
  9755. else
  9756. lt_cv_archive_cmds_need_lc=yes
  9757. fi
  9758. allow_undefined_flag=$lt_save_allow_undefined_flag
  9759. else
  9760. cat conftest.err 1>&5
  9761. fi
  9762. $RM conftest*
  9763. fi
  9764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9765. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9766. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9767. ;;
  9768. esac
  9769. fi
  9770. ;;
  9771. esac
  9772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9773. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9774. if test "$GCC" = yes; then
  9775. case $host_os in
  9776. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9777. *) lt_awk_arg="/^libraries:/" ;;
  9778. esac
  9779. case $host_os in
  9780. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9781. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9782. esac
  9783. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9784. case $lt_search_path_spec in
  9785. *\;*)
  9786. # if the path contains ";" then we assume it to be the separator
  9787. # otherwise default to the standard path separator (i.e. ":") - it is
  9788. # assumed that no part of a normal pathname contains ";" but that should
  9789. # okay in the real world where ";" in dirpaths is itself problematic.
  9790. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9791. ;;
  9792. *)
  9793. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9794. ;;
  9795. esac
  9796. # Ok, now we have the path, separated by spaces, we can step through it
  9797. # and add multilib dir if necessary.
  9798. lt_tmp_lt_search_path_spec=
  9799. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9800. for lt_sys_path in $lt_search_path_spec; do
  9801. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9802. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9803. else
  9804. test -d "$lt_sys_path" && \
  9805. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9806. fi
  9807. done
  9808. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9809. BEGIN {RS=" "; FS="/|\n";} {
  9810. lt_foo="";
  9811. lt_count=0;
  9812. for (lt_i = NF; lt_i > 0; lt_i--) {
  9813. if ($lt_i != "" && $lt_i != ".") {
  9814. if ($lt_i == "..") {
  9815. lt_count++;
  9816. } else {
  9817. if (lt_count == 0) {
  9818. lt_foo="/" $lt_i lt_foo;
  9819. } else {
  9820. lt_count--;
  9821. }
  9822. }
  9823. }
  9824. }
  9825. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9826. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9827. }'`
  9828. # AWK program above erroneously prepends '/' to C:/dos/paths
  9829. # for these hosts.
  9830. case $host_os in
  9831. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9832. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9833. esac
  9834. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9835. else
  9836. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9837. fi
  9838. library_names_spec=
  9839. libname_spec='lib$name'
  9840. soname_spec=
  9841. shrext_cmds=".so"
  9842. postinstall_cmds=
  9843. postuninstall_cmds=
  9844. finish_cmds=
  9845. finish_eval=
  9846. shlibpath_var=
  9847. shlibpath_overrides_runpath=unknown
  9848. version_type=none
  9849. dynamic_linker="$host_os ld.so"
  9850. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9851. need_lib_prefix=unknown
  9852. hardcode_into_libs=no
  9853. # when you set need_version to no, make sure it does not cause -set_version
  9854. # flags to be left without arguments
  9855. need_version=unknown
  9856. case $host_os in
  9857. aix3*)
  9858. version_type=linux # correct to gnu/linux during the next big refactor
  9859. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9860. shlibpath_var=LIBPATH
  9861. # AIX 3 has no versioning support, so we append a major version to the name.
  9862. soname_spec='${libname}${release}${shared_ext}$major'
  9863. ;;
  9864. aix[4-9]*)
  9865. version_type=linux # correct to gnu/linux during the next big refactor
  9866. need_lib_prefix=no
  9867. need_version=no
  9868. hardcode_into_libs=yes
  9869. if test "$host_cpu" = ia64; then
  9870. # AIX 5 supports IA64
  9871. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9872. shlibpath_var=LD_LIBRARY_PATH
  9873. else
  9874. # With GCC up to 2.95.x, collect2 would create an import file
  9875. # for dependence libraries. The import file would start with
  9876. # the line `#! .'. This would cause the generated library to
  9877. # depend on `.', always an invalid library. This was fixed in
  9878. # development snapshots of GCC prior to 3.0.
  9879. case $host_os in
  9880. aix4 | aix4.[01] | aix4.[01].*)
  9881. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9882. echo ' yes '
  9883. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9884. :
  9885. else
  9886. can_build_shared=no
  9887. fi
  9888. ;;
  9889. esac
  9890. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9891. # soname into executable. Probably we can add versioning support to
  9892. # collect2, so additional links can be useful in future.
  9893. if test "$aix_use_runtimelinking" = yes; then
  9894. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9895. # instead of lib<name>.a to let people know that these are not
  9896. # typical AIX shared libraries.
  9897. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9898. else
  9899. # We preserve .a as extension for shared libraries through AIX4.2
  9900. # and later when we are not doing run time linking.
  9901. library_names_spec='${libname}${release}.a $libname.a'
  9902. soname_spec='${libname}${release}${shared_ext}$major'
  9903. fi
  9904. shlibpath_var=LIBPATH
  9905. fi
  9906. ;;
  9907. amigaos*)
  9908. case $host_cpu in
  9909. powerpc)
  9910. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9911. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9912. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9913. ;;
  9914. m68k)
  9915. library_names_spec='$libname.ixlibrary $libname.a'
  9916. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9917. 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'
  9918. ;;
  9919. esac
  9920. ;;
  9921. beos*)
  9922. library_names_spec='${libname}${shared_ext}'
  9923. dynamic_linker="$host_os ld.so"
  9924. shlibpath_var=LIBRARY_PATH
  9925. ;;
  9926. bsdi[45]*)
  9927. version_type=linux # correct to gnu/linux during the next big refactor
  9928. need_version=no
  9929. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9930. soname_spec='${libname}${release}${shared_ext}$major'
  9931. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9932. shlibpath_var=LD_LIBRARY_PATH
  9933. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9934. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9935. # the default ld.so.conf also contains /usr/contrib/lib and
  9936. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9937. # libtool to hard-code these into programs
  9938. ;;
  9939. cygwin* | mingw* | pw32* | cegcc*)
  9940. version_type=windows
  9941. shrext_cmds=".dll"
  9942. need_version=no
  9943. need_lib_prefix=no
  9944. case $GCC,$cc_basename in
  9945. yes,*)
  9946. # gcc
  9947. library_names_spec='$libname.dll.a'
  9948. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9949. postinstall_cmds='base_file=`basename \${file}`~
  9950. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9951. dldir=$destdir/`dirname \$dlpath`~
  9952. test -d \$dldir || mkdir -p \$dldir~
  9953. $install_prog $dir/$dlname \$dldir/$dlname~
  9954. chmod a+x \$dldir/$dlname~
  9955. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9956. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9957. fi'
  9958. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9959. dlpath=$dir/\$dldll~
  9960. $RM \$dlpath'
  9961. shlibpath_overrides_runpath=yes
  9962. case $host_os in
  9963. cygwin*)
  9964. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9965. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9966. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9967. ;;
  9968. mingw* | cegcc*)
  9969. # MinGW DLLs use traditional 'lib' prefix
  9970. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9971. ;;
  9972. pw32*)
  9973. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9974. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9975. ;;
  9976. esac
  9977. dynamic_linker='Win32 ld.exe'
  9978. ;;
  9979. *,cl*)
  9980. # Native MSVC
  9981. libname_spec='$name'
  9982. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9983. library_names_spec='${libname}.dll.lib'
  9984. case $build_os in
  9985. mingw*)
  9986. sys_lib_search_path_spec=
  9987. lt_save_ifs=$IFS
  9988. IFS=';'
  9989. for lt_path in $LIB
  9990. do
  9991. IFS=$lt_save_ifs
  9992. # Let DOS variable expansion print the short 8.3 style file name.
  9993. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9994. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9995. done
  9996. IFS=$lt_save_ifs
  9997. # Convert to MSYS style.
  9998. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9999. ;;
  10000. cygwin*)
  10001. # Convert to unix form, then to dos form, then back to unix form
  10002. # but this time dos style (no spaces!) so that the unix form looks
  10003. # like /cygdrive/c/PROGRA~1:/cygdr...
  10004. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  10005. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  10006. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10007. ;;
  10008. *)
  10009. sys_lib_search_path_spec="$LIB"
  10010. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  10011. # It is most probably a Windows format PATH.
  10012. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  10013. else
  10014. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  10015. fi
  10016. # FIXME: find the short name or the path components, as spaces are
  10017. # common. (e.g. "Program Files" -> "PROGRA~1")
  10018. ;;
  10019. esac
  10020. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  10021. postinstall_cmds='base_file=`basename \${file}`~
  10022. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  10023. dldir=$destdir/`dirname \$dlpath`~
  10024. test -d \$dldir || mkdir -p \$dldir~
  10025. $install_prog $dir/$dlname \$dldir/$dlname'
  10026. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  10027. dlpath=$dir/\$dldll~
  10028. $RM \$dlpath'
  10029. shlibpath_overrides_runpath=yes
  10030. dynamic_linker='Win32 link.exe'
  10031. ;;
  10032. *)
  10033. # Assume MSVC wrapper
  10034. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  10035. dynamic_linker='Win32 ld.exe'
  10036. ;;
  10037. esac
  10038. # FIXME: first we should search . and the directory the executable is in
  10039. shlibpath_var=PATH
  10040. ;;
  10041. darwin* | rhapsody*)
  10042. dynamic_linker="$host_os dyld"
  10043. version_type=darwin
  10044. need_lib_prefix=no
  10045. need_version=no
  10046. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  10047. soname_spec='${libname}${release}${major}$shared_ext'
  10048. shlibpath_overrides_runpath=yes
  10049. shlibpath_var=DYLD_LIBRARY_PATH
  10050. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  10051. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  10052. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  10053. ;;
  10054. dgux*)
  10055. version_type=linux # correct to gnu/linux during the next big refactor
  10056. need_lib_prefix=no
  10057. need_version=no
  10058. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  10059. soname_spec='${libname}${release}${shared_ext}$major'
  10060. shlibpath_var=LD_LIBRARY_PATH
  10061. ;;
  10062. freebsd* | dragonfly*)
  10063. # DragonFly does not have aout. When/if they implement a new
  10064. # versioning mechanism, adjust this.
  10065. if test -x /usr/bin/objformat; then
  10066. objformat=`/usr/bin/objformat`
  10067. else
  10068. case $host_os in
  10069. freebsd[23].*) objformat=aout ;;
  10070. *) objformat=elf ;;
  10071. esac
  10072. fi
  10073. version_type=freebsd-$objformat
  10074. case $version_type in
  10075. freebsd-elf*)
  10076. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10077. need_version=no
  10078. need_lib_prefix=no
  10079. ;;
  10080. freebsd-*)
  10081. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  10082. need_version=yes
  10083. ;;
  10084. esac
  10085. shlibpath_var=LD_LIBRARY_PATH
  10086. case $host_os in
  10087. freebsd2.*)
  10088. shlibpath_overrides_runpath=yes
  10089. ;;
  10090. freebsd3.[01]* | freebsdelf3.[01]*)
  10091. shlibpath_overrides_runpath=yes
  10092. hardcode_into_libs=yes
  10093. ;;
  10094. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  10095. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  10096. shlibpath_overrides_runpath=no
  10097. hardcode_into_libs=yes
  10098. ;;
  10099. *) # from 4.6 on, and DragonFly
  10100. shlibpath_overrides_runpath=yes
  10101. hardcode_into_libs=yes
  10102. ;;
  10103. esac
  10104. ;;
  10105. haiku*)
  10106. version_type=linux # correct to gnu/linux during the next big refactor
  10107. need_lib_prefix=no
  10108. need_version=no
  10109. dynamic_linker="$host_os runtime_loader"
  10110. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10111. soname_spec='${libname}${release}${shared_ext}$major'
  10112. shlibpath_var=LIBRARY_PATH
  10113. shlibpath_overrides_runpath=yes
  10114. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  10115. hardcode_into_libs=yes
  10116. ;;
  10117. hpux9* | hpux10* | hpux11*)
  10118. # Give a soname corresponding to the major version so that dld.sl refuses to
  10119. # link against other versions.
  10120. version_type=sunos
  10121. need_lib_prefix=no
  10122. need_version=no
  10123. case $host_cpu in
  10124. ia64*)
  10125. shrext_cmds='.so'
  10126. hardcode_into_libs=yes
  10127. dynamic_linker="$host_os dld.so"
  10128. shlibpath_var=LD_LIBRARY_PATH
  10129. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10130. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10131. soname_spec='${libname}${release}${shared_ext}$major'
  10132. if test "X$HPUX_IA64_MODE" = X32; then
  10133. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10134. else
  10135. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10136. fi
  10137. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10138. ;;
  10139. hppa*64*)
  10140. shrext_cmds='.sl'
  10141. hardcode_into_libs=yes
  10142. dynamic_linker="$host_os dld.sl"
  10143. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10144. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10145. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10146. soname_spec='${libname}${release}${shared_ext}$major'
  10147. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10148. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10149. ;;
  10150. *)
  10151. shrext_cmds='.sl'
  10152. dynamic_linker="$host_os dld.sl"
  10153. shlibpath_var=SHLIB_PATH
  10154. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10155. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10156. soname_spec='${libname}${release}${shared_ext}$major'
  10157. ;;
  10158. esac
  10159. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  10160. postinstall_cmds='chmod 555 $lib'
  10161. # or fails outright, so override atomically:
  10162. install_override_mode=555
  10163. ;;
  10164. interix[3-9]*)
  10165. version_type=linux # correct to gnu/linux during the next big refactor
  10166. need_lib_prefix=no
  10167. need_version=no
  10168. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10169. soname_spec='${libname}${release}${shared_ext}$major'
  10170. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10171. shlibpath_var=LD_LIBRARY_PATH
  10172. shlibpath_overrides_runpath=no
  10173. hardcode_into_libs=yes
  10174. ;;
  10175. irix5* | irix6* | nonstopux*)
  10176. case $host_os in
  10177. nonstopux*) version_type=nonstopux ;;
  10178. *)
  10179. if test "$lt_cv_prog_gnu_ld" = yes; then
  10180. version_type=linux # correct to gnu/linux during the next big refactor
  10181. else
  10182. version_type=irix
  10183. fi ;;
  10184. esac
  10185. need_lib_prefix=no
  10186. need_version=no
  10187. soname_spec='${libname}${release}${shared_ext}$major'
  10188. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10189. case $host_os in
  10190. irix5* | nonstopux*)
  10191. libsuff= shlibsuff=
  10192. ;;
  10193. *)
  10194. case $LD in # libtool.m4 will add one of these switches to LD
  10195. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10196. libsuff= shlibsuff= libmagic=32-bit;;
  10197. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10198. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10199. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10200. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10201. *) libsuff= shlibsuff= libmagic=never-match;;
  10202. esac
  10203. ;;
  10204. esac
  10205. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10206. shlibpath_overrides_runpath=no
  10207. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10208. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10209. hardcode_into_libs=yes
  10210. ;;
  10211. # No shared lib support for Linux oldld, aout, or coff.
  10212. linux*oldld* | linux*aout* | linux*coff*)
  10213. dynamic_linker=no
  10214. ;;
  10215. # This must be glibc/ELF.
  10216. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  10217. version_type=linux # correct to gnu/linux during the next big refactor
  10218. need_lib_prefix=no
  10219. need_version=no
  10220. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10221. soname_spec='${libname}${release}${shared_ext}$major'
  10222. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10223. shlibpath_var=LD_LIBRARY_PATH
  10224. shlibpath_overrides_runpath=no
  10225. # Some binutils ld are patched to set DT_RUNPATH
  10226. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  10227. $as_echo_n "(cached) " >&6
  10228. else
  10229. lt_cv_shlibpath_overrides_runpath=no
  10230. save_LDFLAGS=$LDFLAGS
  10231. save_libdir=$libdir
  10232. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10233. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10235. /* end confdefs.h. */
  10236. int
  10237. main ()
  10238. {
  10239. ;
  10240. return 0;
  10241. }
  10242. _ACEOF
  10243. if ac_fn_c_try_link "$LINENO"; then :
  10244. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  10245. lt_cv_shlibpath_overrides_runpath=yes
  10246. fi
  10247. fi
  10248. rm -f core conftest.err conftest.$ac_objext \
  10249. conftest$ac_exeext conftest.$ac_ext
  10250. LDFLAGS=$save_LDFLAGS
  10251. libdir=$save_libdir
  10252. fi
  10253. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  10254. # This implies no fast_install, which is unacceptable.
  10255. # Some rework will be needed to allow for fast_install
  10256. # before this can be enabled.
  10257. hardcode_into_libs=yes
  10258. # Append ld.so.conf contents to the search path
  10259. if test -f /etc/ld.so.conf; then
  10260. 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' ' '`
  10261. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  10262. fi
  10263. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10264. # powerpc, because MkLinux only supported shared libraries with the
  10265. # GNU dynamic linker. Since this was broken with cross compilers,
  10266. # most powerpc-linux boxes support dynamic linking these days and
  10267. # people can always --disable-shared, the test was removed, and we
  10268. # assume the GNU/Linux dynamic linker is in use.
  10269. dynamic_linker='GNU/Linux ld.so'
  10270. ;;
  10271. netbsdelf*-gnu)
  10272. version_type=linux
  10273. need_lib_prefix=no
  10274. need_version=no
  10275. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10276. soname_spec='${libname}${release}${shared_ext}$major'
  10277. shlibpath_var=LD_LIBRARY_PATH
  10278. shlibpath_overrides_runpath=no
  10279. hardcode_into_libs=yes
  10280. dynamic_linker='NetBSD ld.elf_so'
  10281. ;;
  10282. netbsd*)
  10283. version_type=sunos
  10284. need_lib_prefix=no
  10285. need_version=no
  10286. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10288. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10289. dynamic_linker='NetBSD (a.out) ld.so'
  10290. else
  10291. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10292. soname_spec='${libname}${release}${shared_ext}$major'
  10293. dynamic_linker='NetBSD ld.elf_so'
  10294. fi
  10295. shlibpath_var=LD_LIBRARY_PATH
  10296. shlibpath_overrides_runpath=yes
  10297. hardcode_into_libs=yes
  10298. ;;
  10299. newsos6)
  10300. version_type=linux # correct to gnu/linux during the next big refactor
  10301. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10302. shlibpath_var=LD_LIBRARY_PATH
  10303. shlibpath_overrides_runpath=yes
  10304. ;;
  10305. *nto* | *qnx*)
  10306. version_type=qnx
  10307. need_lib_prefix=no
  10308. need_version=no
  10309. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10310. soname_spec='${libname}${release}${shared_ext}$major'
  10311. shlibpath_var=LD_LIBRARY_PATH
  10312. shlibpath_overrides_runpath=no
  10313. hardcode_into_libs=yes
  10314. dynamic_linker='ldqnx.so'
  10315. ;;
  10316. openbsd*)
  10317. version_type=sunos
  10318. sys_lib_dlsearch_path_spec="/usr/lib"
  10319. need_lib_prefix=no
  10320. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10321. case $host_os in
  10322. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10323. *) need_version=no ;;
  10324. esac
  10325. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10326. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10327. shlibpath_var=LD_LIBRARY_PATH
  10328. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10329. case $host_os in
  10330. openbsd2.[89] | openbsd2.[89].*)
  10331. shlibpath_overrides_runpath=no
  10332. ;;
  10333. *)
  10334. shlibpath_overrides_runpath=yes
  10335. ;;
  10336. esac
  10337. else
  10338. shlibpath_overrides_runpath=yes
  10339. fi
  10340. ;;
  10341. os2*)
  10342. libname_spec='$name'
  10343. shrext_cmds=".dll"
  10344. need_lib_prefix=no
  10345. library_names_spec='$libname${shared_ext} $libname.a'
  10346. dynamic_linker='OS/2 ld.exe'
  10347. shlibpath_var=LIBPATH
  10348. ;;
  10349. osf3* | osf4* | osf5*)
  10350. version_type=osf
  10351. need_lib_prefix=no
  10352. need_version=no
  10353. soname_spec='${libname}${release}${shared_ext}$major'
  10354. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10355. shlibpath_var=LD_LIBRARY_PATH
  10356. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10357. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10358. ;;
  10359. rdos*)
  10360. dynamic_linker=no
  10361. ;;
  10362. solaris*)
  10363. version_type=linux # correct to gnu/linux during the next big refactor
  10364. need_lib_prefix=no
  10365. need_version=no
  10366. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10367. soname_spec='${libname}${release}${shared_ext}$major'
  10368. shlibpath_var=LD_LIBRARY_PATH
  10369. shlibpath_overrides_runpath=yes
  10370. hardcode_into_libs=yes
  10371. # ldd complains unless libraries are executable
  10372. postinstall_cmds='chmod +x $lib'
  10373. ;;
  10374. sunos4*)
  10375. version_type=sunos
  10376. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10377. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10378. shlibpath_var=LD_LIBRARY_PATH
  10379. shlibpath_overrides_runpath=yes
  10380. if test "$with_gnu_ld" = yes; then
  10381. need_lib_prefix=no
  10382. fi
  10383. need_version=yes
  10384. ;;
  10385. sysv4 | sysv4.3*)
  10386. version_type=linux # correct to gnu/linux during the next big refactor
  10387. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10388. soname_spec='${libname}${release}${shared_ext}$major'
  10389. shlibpath_var=LD_LIBRARY_PATH
  10390. case $host_vendor in
  10391. sni)
  10392. shlibpath_overrides_runpath=no
  10393. need_lib_prefix=no
  10394. runpath_var=LD_RUN_PATH
  10395. ;;
  10396. siemens)
  10397. need_lib_prefix=no
  10398. ;;
  10399. motorola)
  10400. need_lib_prefix=no
  10401. need_version=no
  10402. shlibpath_overrides_runpath=no
  10403. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10404. ;;
  10405. esac
  10406. ;;
  10407. sysv4*MP*)
  10408. if test -d /usr/nec ;then
  10409. version_type=linux # correct to gnu/linux during the next big refactor
  10410. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10411. soname_spec='$libname${shared_ext}.$major'
  10412. shlibpath_var=LD_LIBRARY_PATH
  10413. fi
  10414. ;;
  10415. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10416. version_type=freebsd-elf
  10417. need_lib_prefix=no
  10418. need_version=no
  10419. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10420. soname_spec='${libname}${release}${shared_ext}$major'
  10421. shlibpath_var=LD_LIBRARY_PATH
  10422. shlibpath_overrides_runpath=yes
  10423. hardcode_into_libs=yes
  10424. if test "$with_gnu_ld" = yes; then
  10425. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10426. else
  10427. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10428. case $host_os in
  10429. sco3.2v5*)
  10430. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10431. ;;
  10432. esac
  10433. fi
  10434. sys_lib_dlsearch_path_spec='/usr/lib'
  10435. ;;
  10436. tpf*)
  10437. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10438. version_type=linux # correct to gnu/linux during the next big refactor
  10439. need_lib_prefix=no
  10440. need_version=no
  10441. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10442. shlibpath_var=LD_LIBRARY_PATH
  10443. shlibpath_overrides_runpath=no
  10444. hardcode_into_libs=yes
  10445. ;;
  10446. uts4*)
  10447. version_type=linux # correct to gnu/linux during the next big refactor
  10448. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10449. soname_spec='${libname}${release}${shared_ext}$major'
  10450. shlibpath_var=LD_LIBRARY_PATH
  10451. ;;
  10452. *)
  10453. dynamic_linker=no
  10454. ;;
  10455. esac
  10456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10457. $as_echo "$dynamic_linker" >&6; }
  10458. test "$dynamic_linker" = no && can_build_shared=no
  10459. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10460. if test "$GCC" = yes; then
  10461. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10462. fi
  10463. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10464. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10465. fi
  10466. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10467. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10468. fi
  10469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10470. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10471. hardcode_action=
  10472. if test -n "$hardcode_libdir_flag_spec" ||
  10473. test -n "$runpath_var" ||
  10474. test "X$hardcode_automatic" = "Xyes" ; then
  10475. # We can hardcode non-existent directories.
  10476. if test "$hardcode_direct" != no &&
  10477. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10478. # have to relink, otherwise we might link with an installed library
  10479. # when we should be linking with a yet-to-be-installed one
  10480. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10481. test "$hardcode_minus_L" != no; then
  10482. # Linking always hardcodes the temporary library directory.
  10483. hardcode_action=relink
  10484. else
  10485. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10486. hardcode_action=immediate
  10487. fi
  10488. else
  10489. # We cannot hardcode anything, or else we can only hardcode existing
  10490. # directories.
  10491. hardcode_action=unsupported
  10492. fi
  10493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10494. $as_echo "$hardcode_action" >&6; }
  10495. if test "$hardcode_action" = relink ||
  10496. test "$inherit_rpath" = yes; then
  10497. # Fast installation is not supported
  10498. enable_fast_install=no
  10499. elif test "$shlibpath_overrides_runpath" = yes ||
  10500. test "$enable_shared" = no; then
  10501. # Fast installation is not necessary
  10502. enable_fast_install=needless
  10503. fi
  10504. if test "x$enable_dlopen" != xyes; then
  10505. enable_dlopen=unknown
  10506. enable_dlopen_self=unknown
  10507. enable_dlopen_self_static=unknown
  10508. else
  10509. lt_cv_dlopen=no
  10510. lt_cv_dlopen_libs=
  10511. case $host_os in
  10512. beos*)
  10513. lt_cv_dlopen="load_add_on"
  10514. lt_cv_dlopen_libs=
  10515. lt_cv_dlopen_self=yes
  10516. ;;
  10517. mingw* | pw32* | cegcc*)
  10518. lt_cv_dlopen="LoadLibrary"
  10519. lt_cv_dlopen_libs=
  10520. ;;
  10521. cygwin*)
  10522. lt_cv_dlopen="dlopen"
  10523. lt_cv_dlopen_libs=
  10524. ;;
  10525. darwin*)
  10526. # if libdl is installed we need to link against it
  10527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10528. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10529. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10530. $as_echo_n "(cached) " >&6
  10531. else
  10532. ac_check_lib_save_LIBS=$LIBS
  10533. LIBS="-ldl $LIBS"
  10534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10535. /* end confdefs.h. */
  10536. /* Override any GCC internal prototype to avoid an error.
  10537. Use char because int might match the return type of a GCC
  10538. builtin and then its argument prototype would still apply. */
  10539. #ifdef __cplusplus
  10540. extern "C"
  10541. #endif
  10542. char dlopen ();
  10543. int
  10544. main ()
  10545. {
  10546. return dlopen ();
  10547. ;
  10548. return 0;
  10549. }
  10550. _ACEOF
  10551. if ac_fn_c_try_link "$LINENO"; then :
  10552. ac_cv_lib_dl_dlopen=yes
  10553. else
  10554. ac_cv_lib_dl_dlopen=no
  10555. fi
  10556. rm -f core conftest.err conftest.$ac_objext \
  10557. conftest$ac_exeext conftest.$ac_ext
  10558. LIBS=$ac_check_lib_save_LIBS
  10559. fi
  10560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10561. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10562. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10563. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10564. else
  10565. lt_cv_dlopen="dyld"
  10566. lt_cv_dlopen_libs=
  10567. lt_cv_dlopen_self=yes
  10568. fi
  10569. ;;
  10570. *)
  10571. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10572. if test "x$ac_cv_func_shl_load" = xyes; then :
  10573. lt_cv_dlopen="shl_load"
  10574. else
  10575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10576. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10577. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10578. $as_echo_n "(cached) " >&6
  10579. else
  10580. ac_check_lib_save_LIBS=$LIBS
  10581. LIBS="-ldld $LIBS"
  10582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10583. /* end confdefs.h. */
  10584. /* Override any GCC internal prototype to avoid an error.
  10585. Use char because int might match the return type of a GCC
  10586. builtin and then its argument prototype would still apply. */
  10587. #ifdef __cplusplus
  10588. extern "C"
  10589. #endif
  10590. char shl_load ();
  10591. int
  10592. main ()
  10593. {
  10594. return shl_load ();
  10595. ;
  10596. return 0;
  10597. }
  10598. _ACEOF
  10599. if ac_fn_c_try_link "$LINENO"; then :
  10600. ac_cv_lib_dld_shl_load=yes
  10601. else
  10602. ac_cv_lib_dld_shl_load=no
  10603. fi
  10604. rm -f core conftest.err conftest.$ac_objext \
  10605. conftest$ac_exeext conftest.$ac_ext
  10606. LIBS=$ac_check_lib_save_LIBS
  10607. fi
  10608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10609. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10610. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10611. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10612. else
  10613. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10614. if test "x$ac_cv_func_dlopen" = xyes; then :
  10615. lt_cv_dlopen="dlopen"
  10616. else
  10617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10618. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10619. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10620. $as_echo_n "(cached) " >&6
  10621. else
  10622. ac_check_lib_save_LIBS=$LIBS
  10623. LIBS="-ldl $LIBS"
  10624. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10625. /* end confdefs.h. */
  10626. /* Override any GCC internal prototype to avoid an error.
  10627. Use char because int might match the return type of a GCC
  10628. builtin and then its argument prototype would still apply. */
  10629. #ifdef __cplusplus
  10630. extern "C"
  10631. #endif
  10632. char dlopen ();
  10633. int
  10634. main ()
  10635. {
  10636. return dlopen ();
  10637. ;
  10638. return 0;
  10639. }
  10640. _ACEOF
  10641. if ac_fn_c_try_link "$LINENO"; then :
  10642. ac_cv_lib_dl_dlopen=yes
  10643. else
  10644. ac_cv_lib_dl_dlopen=no
  10645. fi
  10646. rm -f core conftest.err conftest.$ac_objext \
  10647. conftest$ac_exeext conftest.$ac_ext
  10648. LIBS=$ac_check_lib_save_LIBS
  10649. fi
  10650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10651. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10652. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10653. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10654. else
  10655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10656. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10657. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10658. $as_echo_n "(cached) " >&6
  10659. else
  10660. ac_check_lib_save_LIBS=$LIBS
  10661. LIBS="-lsvld $LIBS"
  10662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10663. /* end confdefs.h. */
  10664. /* Override any GCC internal prototype to avoid an error.
  10665. Use char because int might match the return type of a GCC
  10666. builtin and then its argument prototype would still apply. */
  10667. #ifdef __cplusplus
  10668. extern "C"
  10669. #endif
  10670. char dlopen ();
  10671. int
  10672. main ()
  10673. {
  10674. return dlopen ();
  10675. ;
  10676. return 0;
  10677. }
  10678. _ACEOF
  10679. if ac_fn_c_try_link "$LINENO"; then :
  10680. ac_cv_lib_svld_dlopen=yes
  10681. else
  10682. ac_cv_lib_svld_dlopen=no
  10683. fi
  10684. rm -f core conftest.err conftest.$ac_objext \
  10685. conftest$ac_exeext conftest.$ac_ext
  10686. LIBS=$ac_check_lib_save_LIBS
  10687. fi
  10688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10689. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10690. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10691. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10692. else
  10693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10694. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10695. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10696. $as_echo_n "(cached) " >&6
  10697. else
  10698. ac_check_lib_save_LIBS=$LIBS
  10699. LIBS="-ldld $LIBS"
  10700. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10701. /* end confdefs.h. */
  10702. /* Override any GCC internal prototype to avoid an error.
  10703. Use char because int might match the return type of a GCC
  10704. builtin and then its argument prototype would still apply. */
  10705. #ifdef __cplusplus
  10706. extern "C"
  10707. #endif
  10708. char dld_link ();
  10709. int
  10710. main ()
  10711. {
  10712. return dld_link ();
  10713. ;
  10714. return 0;
  10715. }
  10716. _ACEOF
  10717. if ac_fn_c_try_link "$LINENO"; then :
  10718. ac_cv_lib_dld_dld_link=yes
  10719. else
  10720. ac_cv_lib_dld_dld_link=no
  10721. fi
  10722. rm -f core conftest.err conftest.$ac_objext \
  10723. conftest$ac_exeext conftest.$ac_ext
  10724. LIBS=$ac_check_lib_save_LIBS
  10725. fi
  10726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10727. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10728. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10729. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10730. fi
  10731. fi
  10732. fi
  10733. fi
  10734. fi
  10735. fi
  10736. ;;
  10737. esac
  10738. if test "x$lt_cv_dlopen" != xno; then
  10739. enable_dlopen=yes
  10740. else
  10741. enable_dlopen=no
  10742. fi
  10743. case $lt_cv_dlopen in
  10744. dlopen)
  10745. save_CPPFLAGS="$CPPFLAGS"
  10746. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10747. save_LDFLAGS="$LDFLAGS"
  10748. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10749. save_LIBS="$LIBS"
  10750. LIBS="$lt_cv_dlopen_libs $LIBS"
  10751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10752. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10753. if ${lt_cv_dlopen_self+:} false; then :
  10754. $as_echo_n "(cached) " >&6
  10755. else
  10756. if test "$cross_compiling" = yes; then :
  10757. lt_cv_dlopen_self=cross
  10758. else
  10759. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10760. lt_status=$lt_dlunknown
  10761. cat > conftest.$ac_ext <<_LT_EOF
  10762. #line $LINENO "configure"
  10763. #include "confdefs.h"
  10764. #if HAVE_DLFCN_H
  10765. #include <dlfcn.h>
  10766. #endif
  10767. #include <stdio.h>
  10768. #ifdef RTLD_GLOBAL
  10769. # define LT_DLGLOBAL RTLD_GLOBAL
  10770. #else
  10771. # ifdef DL_GLOBAL
  10772. # define LT_DLGLOBAL DL_GLOBAL
  10773. # else
  10774. # define LT_DLGLOBAL 0
  10775. # endif
  10776. #endif
  10777. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10778. find out it does not work in some platform. */
  10779. #ifndef LT_DLLAZY_OR_NOW
  10780. # ifdef RTLD_LAZY
  10781. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10782. # else
  10783. # ifdef DL_LAZY
  10784. # define LT_DLLAZY_OR_NOW DL_LAZY
  10785. # else
  10786. # ifdef RTLD_NOW
  10787. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10788. # else
  10789. # ifdef DL_NOW
  10790. # define LT_DLLAZY_OR_NOW DL_NOW
  10791. # else
  10792. # define LT_DLLAZY_OR_NOW 0
  10793. # endif
  10794. # endif
  10795. # endif
  10796. # endif
  10797. #endif
  10798. /* When -fvisbility=hidden is used, assume the code has been annotated
  10799. correspondingly for the symbols needed. */
  10800. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10801. int fnord () __attribute__((visibility("default")));
  10802. #endif
  10803. int fnord () { return 42; }
  10804. int main ()
  10805. {
  10806. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10807. int status = $lt_dlunknown;
  10808. if (self)
  10809. {
  10810. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10811. else
  10812. {
  10813. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10814. else puts (dlerror ());
  10815. }
  10816. /* dlclose (self); */
  10817. }
  10818. else
  10819. puts (dlerror ());
  10820. return status;
  10821. }
  10822. _LT_EOF
  10823. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10824. (eval $ac_link) 2>&5
  10825. ac_status=$?
  10826. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10827. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10828. (./conftest; exit; ) >&5 2>/dev/null
  10829. lt_status=$?
  10830. case x$lt_status in
  10831. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10832. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10833. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10834. esac
  10835. else :
  10836. # compilation failed
  10837. lt_cv_dlopen_self=no
  10838. fi
  10839. fi
  10840. rm -fr conftest*
  10841. fi
  10842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10843. $as_echo "$lt_cv_dlopen_self" >&6; }
  10844. if test "x$lt_cv_dlopen_self" = xyes; then
  10845. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10847. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10848. if ${lt_cv_dlopen_self_static+:} false; then :
  10849. $as_echo_n "(cached) " >&6
  10850. else
  10851. if test "$cross_compiling" = yes; then :
  10852. lt_cv_dlopen_self_static=cross
  10853. else
  10854. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10855. lt_status=$lt_dlunknown
  10856. cat > conftest.$ac_ext <<_LT_EOF
  10857. #line $LINENO "configure"
  10858. #include "confdefs.h"
  10859. #if HAVE_DLFCN_H
  10860. #include <dlfcn.h>
  10861. #endif
  10862. #include <stdio.h>
  10863. #ifdef RTLD_GLOBAL
  10864. # define LT_DLGLOBAL RTLD_GLOBAL
  10865. #else
  10866. # ifdef DL_GLOBAL
  10867. # define LT_DLGLOBAL DL_GLOBAL
  10868. # else
  10869. # define LT_DLGLOBAL 0
  10870. # endif
  10871. #endif
  10872. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10873. find out it does not work in some platform. */
  10874. #ifndef LT_DLLAZY_OR_NOW
  10875. # ifdef RTLD_LAZY
  10876. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10877. # else
  10878. # ifdef DL_LAZY
  10879. # define LT_DLLAZY_OR_NOW DL_LAZY
  10880. # else
  10881. # ifdef RTLD_NOW
  10882. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10883. # else
  10884. # ifdef DL_NOW
  10885. # define LT_DLLAZY_OR_NOW DL_NOW
  10886. # else
  10887. # define LT_DLLAZY_OR_NOW 0
  10888. # endif
  10889. # endif
  10890. # endif
  10891. # endif
  10892. #endif
  10893. /* When -fvisbility=hidden is used, assume the code has been annotated
  10894. correspondingly for the symbols needed. */
  10895. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10896. int fnord () __attribute__((visibility("default")));
  10897. #endif
  10898. int fnord () { return 42; }
  10899. int main ()
  10900. {
  10901. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10902. int status = $lt_dlunknown;
  10903. if (self)
  10904. {
  10905. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10906. else
  10907. {
  10908. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10909. else puts (dlerror ());
  10910. }
  10911. /* dlclose (self); */
  10912. }
  10913. else
  10914. puts (dlerror ());
  10915. return status;
  10916. }
  10917. _LT_EOF
  10918. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10919. (eval $ac_link) 2>&5
  10920. ac_status=$?
  10921. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10922. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10923. (./conftest; exit; ) >&5 2>/dev/null
  10924. lt_status=$?
  10925. case x$lt_status in
  10926. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10927. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10928. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10929. esac
  10930. else :
  10931. # compilation failed
  10932. lt_cv_dlopen_self_static=no
  10933. fi
  10934. fi
  10935. rm -fr conftest*
  10936. fi
  10937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10938. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10939. fi
  10940. CPPFLAGS="$save_CPPFLAGS"
  10941. LDFLAGS="$save_LDFLAGS"
  10942. LIBS="$save_LIBS"
  10943. ;;
  10944. esac
  10945. case $lt_cv_dlopen_self in
  10946. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10947. *) enable_dlopen_self=unknown ;;
  10948. esac
  10949. case $lt_cv_dlopen_self_static in
  10950. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10951. *) enable_dlopen_self_static=unknown ;;
  10952. esac
  10953. fi
  10954. striplib=
  10955. old_striplib=
  10956. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10957. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10958. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10959. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10960. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10962. $as_echo "yes" >&6; }
  10963. else
  10964. # FIXME - insert some real tests, host_os isn't really good enough
  10965. case $host_os in
  10966. darwin*)
  10967. if test -n "$STRIP" ; then
  10968. striplib="$STRIP -x"
  10969. old_striplib="$STRIP -S"
  10970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10971. $as_echo "yes" >&6; }
  10972. else
  10973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10974. $as_echo "no" >&6; }
  10975. fi
  10976. ;;
  10977. *)
  10978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10979. $as_echo "no" >&6; }
  10980. ;;
  10981. esac
  10982. fi
  10983. # Report which library types will actually be built
  10984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10985. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10987. $as_echo "$can_build_shared" >&6; }
  10988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10989. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10990. test "$can_build_shared" = "no" && enable_shared=no
  10991. # On AIX, shared libraries and static libraries use the same namespace, and
  10992. # are all built from PIC.
  10993. case $host_os in
  10994. aix3*)
  10995. test "$enable_shared" = yes && enable_static=no
  10996. if test -n "$RANLIB"; then
  10997. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10998. postinstall_cmds='$RANLIB $lib'
  10999. fi
  11000. ;;
  11001. aix[4-9]*)
  11002. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11003. test "$enable_shared" = yes && enable_static=no
  11004. fi
  11005. ;;
  11006. esac
  11007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  11008. $as_echo "$enable_shared" >&6; }
  11009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  11010. $as_echo_n "checking whether to build static libraries... " >&6; }
  11011. # Make sure either enable_shared or enable_static is yes.
  11012. test "$enable_shared" = yes || enable_static=yes
  11013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  11014. $as_echo "$enable_static" >&6; }
  11015. fi
  11016. ac_ext=c
  11017. ac_cpp='$CPP $CPPFLAGS'
  11018. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11019. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11020. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11021. CC="$lt_save_CC"
  11022. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  11023. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  11024. (test "X$CXX" != "Xg++"))) ; then
  11025. ac_ext=cpp
  11026. ac_cpp='$CXXCPP $CPPFLAGS'
  11027. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11028. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11029. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  11031. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  11032. if test -z "$CXXCPP"; then
  11033. if ${ac_cv_prog_CXXCPP+:} false; then :
  11034. $as_echo_n "(cached) " >&6
  11035. else
  11036. # Double quotes because CXXCPP needs to be expanded
  11037. for CXXCPP in "$CXX -E" "/lib/cpp"
  11038. do
  11039. ac_preproc_ok=false
  11040. for ac_cxx_preproc_warn_flag in '' yes
  11041. do
  11042. # Use a header file that comes with gcc, so configuring glibc
  11043. # with a fresh cross-compiler works.
  11044. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11045. # <limits.h> exists even on freestanding compilers.
  11046. # On the NeXT, cc -E runs the code through the compiler's parser,
  11047. # not just through cpp. "Syntax error" is here to catch this case.
  11048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11049. /* end confdefs.h. */
  11050. #ifdef __STDC__
  11051. # include <limits.h>
  11052. #else
  11053. # include <assert.h>
  11054. #endif
  11055. Syntax error
  11056. _ACEOF
  11057. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11058. else
  11059. # Broken: fails on valid input.
  11060. continue
  11061. fi
  11062. rm -f conftest.err conftest.i conftest.$ac_ext
  11063. # OK, works on sane cases. Now check whether nonexistent headers
  11064. # can be detected and how.
  11065. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11066. /* end confdefs.h. */
  11067. #include <ac_nonexistent.h>
  11068. _ACEOF
  11069. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11070. # Broken: success on invalid input.
  11071. continue
  11072. else
  11073. # Passes both tests.
  11074. ac_preproc_ok=:
  11075. break
  11076. fi
  11077. rm -f conftest.err conftest.i conftest.$ac_ext
  11078. done
  11079. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11080. rm -f conftest.i conftest.err conftest.$ac_ext
  11081. if $ac_preproc_ok; then :
  11082. break
  11083. fi
  11084. done
  11085. ac_cv_prog_CXXCPP=$CXXCPP
  11086. fi
  11087. CXXCPP=$ac_cv_prog_CXXCPP
  11088. else
  11089. ac_cv_prog_CXXCPP=$CXXCPP
  11090. fi
  11091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  11092. $as_echo "$CXXCPP" >&6; }
  11093. ac_preproc_ok=false
  11094. for ac_cxx_preproc_warn_flag in '' yes
  11095. do
  11096. # Use a header file that comes with gcc, so configuring glibc
  11097. # with a fresh cross-compiler works.
  11098. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11099. # <limits.h> exists even on freestanding compilers.
  11100. # On the NeXT, cc -E runs the code through the compiler's parser,
  11101. # not just through cpp. "Syntax error" is here to catch this case.
  11102. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11103. /* end confdefs.h. */
  11104. #ifdef __STDC__
  11105. # include <limits.h>
  11106. #else
  11107. # include <assert.h>
  11108. #endif
  11109. Syntax error
  11110. _ACEOF
  11111. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11112. else
  11113. # Broken: fails on valid input.
  11114. continue
  11115. fi
  11116. rm -f conftest.err conftest.i conftest.$ac_ext
  11117. # OK, works on sane cases. Now check whether nonexistent headers
  11118. # can be detected and how.
  11119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11120. /* end confdefs.h. */
  11121. #include <ac_nonexistent.h>
  11122. _ACEOF
  11123. if ac_fn_cxx_try_cpp "$LINENO"; then :
  11124. # Broken: success on invalid input.
  11125. continue
  11126. else
  11127. # Passes both tests.
  11128. ac_preproc_ok=:
  11129. break
  11130. fi
  11131. rm -f conftest.err conftest.i conftest.$ac_ext
  11132. done
  11133. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  11134. rm -f conftest.i conftest.err conftest.$ac_ext
  11135. if $ac_preproc_ok; then :
  11136. else
  11137. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11138. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11139. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  11140. See \`config.log' for more details" "$LINENO" 5; }
  11141. fi
  11142. ac_ext=c
  11143. ac_cpp='$CPP $CPPFLAGS'
  11144. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11145. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11146. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11147. else
  11148. _lt_caught_CXX_error=yes
  11149. fi
  11150. ac_ext=cpp
  11151. ac_cpp='$CXXCPP $CPPFLAGS'
  11152. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11153. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11154. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11155. archive_cmds_need_lc_CXX=no
  11156. allow_undefined_flag_CXX=
  11157. always_export_symbols_CXX=no
  11158. archive_expsym_cmds_CXX=
  11159. compiler_needs_object_CXX=no
  11160. export_dynamic_flag_spec_CXX=
  11161. hardcode_direct_CXX=no
  11162. hardcode_direct_absolute_CXX=no
  11163. hardcode_libdir_flag_spec_CXX=
  11164. hardcode_libdir_separator_CXX=
  11165. hardcode_minus_L_CXX=no
  11166. hardcode_shlibpath_var_CXX=unsupported
  11167. hardcode_automatic_CXX=no
  11168. inherit_rpath_CXX=no
  11169. module_cmds_CXX=
  11170. module_expsym_cmds_CXX=
  11171. link_all_deplibs_CXX=unknown
  11172. old_archive_cmds_CXX=$old_archive_cmds
  11173. reload_flag_CXX=$reload_flag
  11174. reload_cmds_CXX=$reload_cmds
  11175. no_undefined_flag_CXX=
  11176. whole_archive_flag_spec_CXX=
  11177. enable_shared_with_static_runtimes_CXX=no
  11178. # Source file extension for C++ test sources.
  11179. ac_ext=cpp
  11180. # Object file extension for compiled C++ test sources.
  11181. objext=o
  11182. objext_CXX=$objext
  11183. # No sense in running all these tests if we already determined that
  11184. # the CXX compiler isn't working. Some variables (like enable_shared)
  11185. # are currently assumed to apply to all compilers on this platform,
  11186. # and will be corrupted by setting them based on a non-working compiler.
  11187. if test "$_lt_caught_CXX_error" != yes; then
  11188. # Code to be used in simple compile tests
  11189. lt_simple_compile_test_code="int some_variable = 0;"
  11190. # Code to be used in simple link tests
  11191. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  11192. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11193. # If no C compiler was specified, use CC.
  11194. LTCC=${LTCC-"$CC"}
  11195. # If no C compiler flags were specified, use CFLAGS.
  11196. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11197. # Allow CC to be a program name with arguments.
  11198. compiler=$CC
  11199. # save warnings/boilerplate of simple test code
  11200. ac_outfile=conftest.$ac_objext
  11201. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  11202. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11203. _lt_compiler_boilerplate=`cat conftest.err`
  11204. $RM conftest*
  11205. ac_outfile=conftest.$ac_objext
  11206. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  11207. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11208. _lt_linker_boilerplate=`cat conftest.err`
  11209. $RM -r conftest*
  11210. # Allow CC to be a program name with arguments.
  11211. lt_save_CC=$CC
  11212. lt_save_CFLAGS=$CFLAGS
  11213. lt_save_LD=$LD
  11214. lt_save_GCC=$GCC
  11215. GCC=$GXX
  11216. lt_save_with_gnu_ld=$with_gnu_ld
  11217. lt_save_path_LD=$lt_cv_path_LD
  11218. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11219. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11220. else
  11221. $as_unset lt_cv_prog_gnu_ld
  11222. fi
  11223. if test -n "${lt_cv_path_LDCXX+set}"; then
  11224. lt_cv_path_LD=$lt_cv_path_LDCXX
  11225. else
  11226. $as_unset lt_cv_path_LD
  11227. fi
  11228. test -z "${LDCXX+set}" || LD=$LDCXX
  11229. CC=${CXX-"c++"}
  11230. CFLAGS=$CXXFLAGS
  11231. compiler=$CC
  11232. compiler_CXX=$CC
  11233. for cc_temp in $compiler""; do
  11234. case $cc_temp in
  11235. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11236. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11237. \-*) ;;
  11238. *) break;;
  11239. esac
  11240. done
  11241. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  11242. if test -n "$compiler"; then
  11243. # We don't want -fno-exception when compiling C++ code, so set the
  11244. # no_builtin_flag separately
  11245. if test "$GXX" = yes; then
  11246. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11247. else
  11248. lt_prog_compiler_no_builtin_flag_CXX=
  11249. fi
  11250. if test "$GXX" = yes; then
  11251. # Set up default GNU C++ configuration
  11252. # Check whether --with-gnu-ld was given.
  11253. if test "${with_gnu_ld+set}" = set; then :
  11254. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11255. else
  11256. with_gnu_ld=no
  11257. fi
  11258. ac_prog=ld
  11259. if test "$GCC" = yes; then
  11260. # Check if gcc -print-prog-name=ld gives a path.
  11261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  11262. $as_echo_n "checking for ld used by $CC... " >&6; }
  11263. case $host in
  11264. *-*-mingw*)
  11265. # gcc leaves a trailing carriage return which upsets mingw
  11266. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11267. *)
  11268. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11269. esac
  11270. case $ac_prog in
  11271. # Accept absolute paths.
  11272. [\\/]* | ?:[\\/]*)
  11273. re_direlt='/[^/][^/]*/\.\./'
  11274. # Canonicalize the pathname of ld
  11275. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  11276. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  11277. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  11278. done
  11279. test -z "$LD" && LD="$ac_prog"
  11280. ;;
  11281. "")
  11282. # If it fails, then pretend we aren't using GCC.
  11283. ac_prog=ld
  11284. ;;
  11285. *)
  11286. # If it is relative, then search for the first ld in PATH.
  11287. with_gnu_ld=unknown
  11288. ;;
  11289. esac
  11290. elif test "$with_gnu_ld" = yes; then
  11291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  11292. $as_echo_n "checking for GNU ld... " >&6; }
  11293. else
  11294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  11295. $as_echo_n "checking for non-GNU ld... " >&6; }
  11296. fi
  11297. if ${lt_cv_path_LD+:} false; then :
  11298. $as_echo_n "(cached) " >&6
  11299. else
  11300. if test -z "$LD"; then
  11301. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11302. for ac_dir in $PATH; do
  11303. IFS="$lt_save_ifs"
  11304. test -z "$ac_dir" && ac_dir=.
  11305. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11306. lt_cv_path_LD="$ac_dir/$ac_prog"
  11307. # Check to see if the program is GNU ld. I'd rather use --version,
  11308. # but apparently some variants of GNU ld only accept -v.
  11309. # Break only if it was the GNU/non-GNU ld that we prefer.
  11310. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11311. *GNU* | *'with BFD'*)
  11312. test "$with_gnu_ld" != no && break
  11313. ;;
  11314. *)
  11315. test "$with_gnu_ld" != yes && break
  11316. ;;
  11317. esac
  11318. fi
  11319. done
  11320. IFS="$lt_save_ifs"
  11321. else
  11322. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11323. fi
  11324. fi
  11325. LD="$lt_cv_path_LD"
  11326. if test -n "$LD"; then
  11327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  11328. $as_echo "$LD" >&6; }
  11329. else
  11330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11331. $as_echo "no" >&6; }
  11332. fi
  11333. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  11334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  11335. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11336. if ${lt_cv_prog_gnu_ld+:} false; then :
  11337. $as_echo_n "(cached) " >&6
  11338. else
  11339. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11340. case `$LD -v 2>&1 </dev/null` in
  11341. *GNU* | *'with BFD'*)
  11342. lt_cv_prog_gnu_ld=yes
  11343. ;;
  11344. *)
  11345. lt_cv_prog_gnu_ld=no
  11346. ;;
  11347. esac
  11348. fi
  11349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  11350. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  11351. with_gnu_ld=$lt_cv_prog_gnu_ld
  11352. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11353. # archiving commands below assume that GNU ld is being used.
  11354. if test "$with_gnu_ld" = yes; then
  11355. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11356. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11357. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11358. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11359. # If archive_cmds runs LD, not CC, wlarc should be empty
  11360. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11361. # investigate it a little bit more. (MM)
  11362. wlarc='${wl}'
  11363. # ancient GNU ld didn't support --whole-archive et. al.
  11364. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11365. $GREP 'no-whole-archive' > /dev/null; then
  11366. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11367. else
  11368. whole_archive_flag_spec_CXX=
  11369. fi
  11370. else
  11371. with_gnu_ld=no
  11372. wlarc=
  11373. # A generic and very simple default shared library creation
  11374. # command for GNU C++ for the case where it uses the native
  11375. # linker, instead of GNU ld. If possible, this setting should
  11376. # overridden to take advantage of the native linker features on
  11377. # the platform it is being used on.
  11378. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11379. fi
  11380. # Commands to make compiler produce verbose output that lists
  11381. # what "hidden" libraries, object files and flags are used when
  11382. # linking a shared library.
  11383. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11384. else
  11385. GXX=no
  11386. with_gnu_ld=no
  11387. wlarc=
  11388. fi
  11389. # PORTME: fill in a description of your system's C++ link characteristics
  11390. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11391. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11392. ld_shlibs_CXX=yes
  11393. case $host_os in
  11394. aix3*)
  11395. # FIXME: insert proper C++ library support
  11396. ld_shlibs_CXX=no
  11397. ;;
  11398. aix[4-9]*)
  11399. if test "$host_cpu" = ia64; then
  11400. # On IA64, the linker does run time linking by default, so we don't
  11401. # have to do anything special.
  11402. aix_use_runtimelinking=no
  11403. exp_sym_flag='-Bexport'
  11404. no_entry_flag=""
  11405. else
  11406. aix_use_runtimelinking=no
  11407. # Test if we are trying to use run time linking or normal
  11408. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11409. # need to do runtime linking.
  11410. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11411. for ld_flag in $LDFLAGS; do
  11412. case $ld_flag in
  11413. *-brtl*)
  11414. aix_use_runtimelinking=yes
  11415. break
  11416. ;;
  11417. esac
  11418. done
  11419. ;;
  11420. esac
  11421. exp_sym_flag='-bexport'
  11422. no_entry_flag='-bnoentry'
  11423. fi
  11424. # When large executables or shared objects are built, AIX ld can
  11425. # have problems creating the table of contents. If linking a library
  11426. # or program results in "error TOC overflow" add -mminimal-toc to
  11427. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11428. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11429. archive_cmds_CXX=''
  11430. hardcode_direct_CXX=yes
  11431. hardcode_direct_absolute_CXX=yes
  11432. hardcode_libdir_separator_CXX=':'
  11433. link_all_deplibs_CXX=yes
  11434. file_list_spec_CXX='${wl}-f,'
  11435. if test "$GXX" = yes; then
  11436. case $host_os in aix4.[012]|aix4.[012].*)
  11437. # We only want to do this on AIX 4.2 and lower, the check
  11438. # below for broken collect2 doesn't work under 4.3+
  11439. collect2name=`${CC} -print-prog-name=collect2`
  11440. if test -f "$collect2name" &&
  11441. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11442. then
  11443. # We have reworked collect2
  11444. :
  11445. else
  11446. # We have old collect2
  11447. hardcode_direct_CXX=unsupported
  11448. # It fails to find uninstalled libraries when the uninstalled
  11449. # path is not listed in the libpath. Setting hardcode_minus_L
  11450. # to unsupported forces relinking
  11451. hardcode_minus_L_CXX=yes
  11452. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11453. hardcode_libdir_separator_CXX=
  11454. fi
  11455. esac
  11456. shared_flag='-shared'
  11457. if test "$aix_use_runtimelinking" = yes; then
  11458. shared_flag="$shared_flag "'${wl}-G'
  11459. fi
  11460. else
  11461. # not using gcc
  11462. if test "$host_cpu" = ia64; then
  11463. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11464. # chokes on -Wl,-G. The following line is correct:
  11465. shared_flag='-G'
  11466. else
  11467. if test "$aix_use_runtimelinking" = yes; then
  11468. shared_flag='${wl}-G'
  11469. else
  11470. shared_flag='${wl}-bM:SRE'
  11471. fi
  11472. fi
  11473. fi
  11474. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11475. # It seems that -bexpall does not export symbols beginning with
  11476. # underscore (_), so it is better to generate a list of symbols to
  11477. # export.
  11478. always_export_symbols_CXX=yes
  11479. if test "$aix_use_runtimelinking" = yes; then
  11480. # Warning - without using the other runtime loading flags (-brtl),
  11481. # -berok will link without error, but may produce a broken library.
  11482. allow_undefined_flag_CXX='-berok'
  11483. # Determine the default libpath from the value encoded in an empty
  11484. # executable.
  11485. if test "${lt_cv_aix_libpath+set}" = set; then
  11486. aix_libpath=$lt_cv_aix_libpath
  11487. else
  11488. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11489. $as_echo_n "(cached) " >&6
  11490. else
  11491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11492. /* end confdefs.h. */
  11493. int
  11494. main ()
  11495. {
  11496. ;
  11497. return 0;
  11498. }
  11499. _ACEOF
  11500. if ac_fn_cxx_try_link "$LINENO"; then :
  11501. lt_aix_libpath_sed='
  11502. /Import File Strings/,/^$/ {
  11503. /^0/ {
  11504. s/^0 *\([^ ]*\) *$/\1/
  11505. p
  11506. }
  11507. }'
  11508. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11509. # Check for a 64-bit object if we didn't find anything.
  11510. if test -z "$lt_cv_aix_libpath__CXX"; then
  11511. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11512. fi
  11513. fi
  11514. rm -f core conftest.err conftest.$ac_objext \
  11515. conftest$ac_exeext conftest.$ac_ext
  11516. if test -z "$lt_cv_aix_libpath__CXX"; then
  11517. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11518. fi
  11519. fi
  11520. aix_libpath=$lt_cv_aix_libpath__CXX
  11521. fi
  11522. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11523. archive_expsym_cmds_CXX='$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"
  11524. else
  11525. if test "$host_cpu" = ia64; then
  11526. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11527. allow_undefined_flag_CXX="-z nodefs"
  11528. archive_expsym_cmds_CXX="\$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"
  11529. else
  11530. # Determine the default libpath from the value encoded in an
  11531. # empty executable.
  11532. if test "${lt_cv_aix_libpath+set}" = set; then
  11533. aix_libpath=$lt_cv_aix_libpath
  11534. else
  11535. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11536. $as_echo_n "(cached) " >&6
  11537. else
  11538. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11539. /* end confdefs.h. */
  11540. int
  11541. main ()
  11542. {
  11543. ;
  11544. return 0;
  11545. }
  11546. _ACEOF
  11547. if ac_fn_cxx_try_link "$LINENO"; then :
  11548. lt_aix_libpath_sed='
  11549. /Import File Strings/,/^$/ {
  11550. /^0/ {
  11551. s/^0 *\([^ ]*\) *$/\1/
  11552. p
  11553. }
  11554. }'
  11555. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11556. # Check for a 64-bit object if we didn't find anything.
  11557. if test -z "$lt_cv_aix_libpath__CXX"; then
  11558. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11559. fi
  11560. fi
  11561. rm -f core conftest.err conftest.$ac_objext \
  11562. conftest$ac_exeext conftest.$ac_ext
  11563. if test -z "$lt_cv_aix_libpath__CXX"; then
  11564. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11565. fi
  11566. fi
  11567. aix_libpath=$lt_cv_aix_libpath__CXX
  11568. fi
  11569. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11570. # Warning - without using the other run time loading flags,
  11571. # -berok will link without error, but may produce a broken library.
  11572. no_undefined_flag_CXX=' ${wl}-bernotok'
  11573. allow_undefined_flag_CXX=' ${wl}-berok'
  11574. if test "$with_gnu_ld" = yes; then
  11575. # We only use this code for GNU lds that support --whole-archive.
  11576. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11577. else
  11578. # Exported symbols can be pulled into shared objects from archives
  11579. whole_archive_flag_spec_CXX='$convenience'
  11580. fi
  11581. archive_cmds_need_lc_CXX=yes
  11582. # This is similar to how AIX traditionally builds its shared
  11583. # libraries.
  11584. archive_expsym_cmds_CXX="\$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'
  11585. fi
  11586. fi
  11587. ;;
  11588. beos*)
  11589. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11590. allow_undefined_flag_CXX=unsupported
  11591. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11592. # support --undefined. This deserves some investigation. FIXME
  11593. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11594. else
  11595. ld_shlibs_CXX=no
  11596. fi
  11597. ;;
  11598. chorus*)
  11599. case $cc_basename in
  11600. *)
  11601. # FIXME: insert proper C++ library support
  11602. ld_shlibs_CXX=no
  11603. ;;
  11604. esac
  11605. ;;
  11606. cygwin* | mingw* | pw32* | cegcc*)
  11607. case $GXX,$cc_basename in
  11608. ,cl* | no,cl*)
  11609. # Native MSVC
  11610. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11611. # no search path for DLLs.
  11612. hardcode_libdir_flag_spec_CXX=' '
  11613. allow_undefined_flag_CXX=unsupported
  11614. always_export_symbols_CXX=yes
  11615. file_list_spec_CXX='@'
  11616. # Tell ltmain to make .lib files, not .a files.
  11617. libext=lib
  11618. # Tell ltmain to make .dll files, not .so files.
  11619. shrext_cmds=".dll"
  11620. # FIXME: Setting linknames here is a bad hack.
  11621. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11622. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11623. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11624. else
  11625. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11626. fi~
  11627. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11628. linknames='
  11629. # The linker will not automatically build a static lib if we build a DLL.
  11630. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11631. enable_shared_with_static_runtimes_CXX=yes
  11632. # Don't use ranlib
  11633. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11634. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11635. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11636. case $lt_outputfile in
  11637. *.exe|*.EXE) ;;
  11638. *)
  11639. lt_outputfile="$lt_outputfile.exe"
  11640. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11641. ;;
  11642. esac~
  11643. func_to_tool_file "$lt_outputfile"~
  11644. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11645. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11646. $RM "$lt_outputfile.manifest";
  11647. fi'
  11648. ;;
  11649. *)
  11650. # g++
  11651. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11652. # as there is no search path for DLLs.
  11653. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11654. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11655. allow_undefined_flag_CXX=unsupported
  11656. always_export_symbols_CXX=no
  11657. enable_shared_with_static_runtimes_CXX=yes
  11658. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11659. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11660. # If the export-symbols file already is a .def file (1st line
  11661. # is EXPORTS), use it as is; otherwise, prepend...
  11662. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11663. cp $export_symbols $output_objdir/$soname.def;
  11664. else
  11665. echo EXPORTS > $output_objdir/$soname.def;
  11666. cat $export_symbols >> $output_objdir/$soname.def;
  11667. fi~
  11668. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11669. else
  11670. ld_shlibs_CXX=no
  11671. fi
  11672. ;;
  11673. esac
  11674. ;;
  11675. darwin* | rhapsody*)
  11676. archive_cmds_need_lc_CXX=no
  11677. hardcode_direct_CXX=no
  11678. hardcode_automatic_CXX=yes
  11679. hardcode_shlibpath_var_CXX=unsupported
  11680. if test "$lt_cv_ld_force_load" = "yes"; then
  11681. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11682. else
  11683. whole_archive_flag_spec_CXX=''
  11684. fi
  11685. link_all_deplibs_CXX=yes
  11686. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11687. case $cc_basename in
  11688. ifort*) _lt_dar_can_shared=yes ;;
  11689. *) _lt_dar_can_shared=$GCC ;;
  11690. esac
  11691. if test "$_lt_dar_can_shared" = "yes"; then
  11692. output_verbose_link_cmd=func_echo_all
  11693. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11694. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11695. archive_expsym_cmds_CXX="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}"
  11696. module_expsym_cmds_CXX="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}"
  11697. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11698. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  11699. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  11700. fi
  11701. else
  11702. ld_shlibs_CXX=no
  11703. fi
  11704. ;;
  11705. dgux*)
  11706. case $cc_basename in
  11707. ec++*)
  11708. # FIXME: insert proper C++ library support
  11709. ld_shlibs_CXX=no
  11710. ;;
  11711. ghcx*)
  11712. # Green Hills C++ Compiler
  11713. # FIXME: insert proper C++ library support
  11714. ld_shlibs_CXX=no
  11715. ;;
  11716. *)
  11717. # FIXME: insert proper C++ library support
  11718. ld_shlibs_CXX=no
  11719. ;;
  11720. esac
  11721. ;;
  11722. freebsd2.*)
  11723. # C++ shared libraries reported to be fairly broken before
  11724. # switch to ELF
  11725. ld_shlibs_CXX=no
  11726. ;;
  11727. freebsd-elf*)
  11728. archive_cmds_need_lc_CXX=no
  11729. ;;
  11730. freebsd* | dragonfly*)
  11731. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11732. # conventions
  11733. ld_shlibs_CXX=yes
  11734. ;;
  11735. haiku*)
  11736. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11737. link_all_deplibs_CXX=yes
  11738. ;;
  11739. hpux9*)
  11740. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11741. hardcode_libdir_separator_CXX=:
  11742. export_dynamic_flag_spec_CXX='${wl}-E'
  11743. hardcode_direct_CXX=yes
  11744. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11745. # but as the default
  11746. # location of the library.
  11747. case $cc_basename in
  11748. CC*)
  11749. # FIXME: insert proper C++ library support
  11750. ld_shlibs_CXX=no
  11751. ;;
  11752. aCC*)
  11753. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11754. # Commands to make compiler produce verbose output that lists
  11755. # what "hidden" libraries, object files and flags are used when
  11756. # linking a shared library.
  11757. #
  11758. # There doesn't appear to be a way to prevent this compiler from
  11759. # explicitly linking system object files so we need to strip them
  11760. # from the output so that they don't get included in the library
  11761. # dependencies.
  11762. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11763. ;;
  11764. *)
  11765. if test "$GXX" = yes; then
  11766. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11767. else
  11768. # FIXME: insert proper C++ library support
  11769. ld_shlibs_CXX=no
  11770. fi
  11771. ;;
  11772. esac
  11773. ;;
  11774. hpux10*|hpux11*)
  11775. if test $with_gnu_ld = no; then
  11776. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11777. hardcode_libdir_separator_CXX=:
  11778. case $host_cpu in
  11779. hppa*64*|ia64*)
  11780. ;;
  11781. *)
  11782. export_dynamic_flag_spec_CXX='${wl}-E'
  11783. ;;
  11784. esac
  11785. fi
  11786. case $host_cpu in
  11787. hppa*64*|ia64*)
  11788. hardcode_direct_CXX=no
  11789. hardcode_shlibpath_var_CXX=no
  11790. ;;
  11791. *)
  11792. hardcode_direct_CXX=yes
  11793. hardcode_direct_absolute_CXX=yes
  11794. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11795. # but as the default
  11796. # location of the library.
  11797. ;;
  11798. esac
  11799. case $cc_basename in
  11800. CC*)
  11801. # FIXME: insert proper C++ library support
  11802. ld_shlibs_CXX=no
  11803. ;;
  11804. aCC*)
  11805. case $host_cpu in
  11806. hppa*64*)
  11807. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11808. ;;
  11809. ia64*)
  11810. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11811. ;;
  11812. *)
  11813. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11814. ;;
  11815. esac
  11816. # Commands to make compiler produce verbose output that lists
  11817. # what "hidden" libraries, object files and flags are used when
  11818. # linking a shared library.
  11819. #
  11820. # There doesn't appear to be a way to prevent this compiler from
  11821. # explicitly linking system object files so we need to strip them
  11822. # from the output so that they don't get included in the library
  11823. # dependencies.
  11824. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11825. ;;
  11826. *)
  11827. if test "$GXX" = yes; then
  11828. if test $with_gnu_ld = no; then
  11829. case $host_cpu in
  11830. hppa*64*)
  11831. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11832. ;;
  11833. ia64*)
  11834. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11835. ;;
  11836. *)
  11837. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11838. ;;
  11839. esac
  11840. fi
  11841. else
  11842. # FIXME: insert proper C++ library support
  11843. ld_shlibs_CXX=no
  11844. fi
  11845. ;;
  11846. esac
  11847. ;;
  11848. interix[3-9]*)
  11849. hardcode_direct_CXX=no
  11850. hardcode_shlibpath_var_CXX=no
  11851. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11852. export_dynamic_flag_spec_CXX='${wl}-E'
  11853. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11854. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11855. # default) and relocated if they conflict, which is a slow very memory
  11856. # consuming and fragmenting process. To avoid this, we pick a random,
  11857. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11858. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11859. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11860. archive_expsym_cmds_CXX='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'
  11861. ;;
  11862. irix5* | irix6*)
  11863. case $cc_basename in
  11864. CC*)
  11865. # SGI C++
  11866. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11867. # Archives containing C++ object files must be created using
  11868. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11869. # necessary to make sure instantiated templates are included
  11870. # in the archive.
  11871. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11872. ;;
  11873. *)
  11874. if test "$GXX" = yes; then
  11875. if test "$with_gnu_ld" = no; then
  11876. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
  11877. else
  11878. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  11879. fi
  11880. fi
  11881. link_all_deplibs_CXX=yes
  11882. ;;
  11883. esac
  11884. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11885. hardcode_libdir_separator_CXX=:
  11886. inherit_rpath_CXX=yes
  11887. ;;
  11888. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  11889. case $cc_basename in
  11890. KCC*)
  11891. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11892. # KCC will only create a shared library if the output file
  11893. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11894. # to its proper name (with version) after linking.
  11895. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11896. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  11897. # Commands to make compiler produce verbose output that lists
  11898. # what "hidden" libraries, object files and flags are used when
  11899. # linking a shared library.
  11900. #
  11901. # There doesn't appear to be a way to prevent this compiler from
  11902. # explicitly linking system object files so we need to strip them
  11903. # from the output so that they don't get included in the library
  11904. # dependencies.
  11905. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11906. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11907. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11908. # Archives containing C++ object files must be created using
  11909. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11910. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11911. ;;
  11912. icpc* | ecpc* )
  11913. # Intel C++
  11914. with_gnu_ld=yes
  11915. # version 8.0 and above of icpc choke on multiply defined symbols
  11916. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11917. # earlier do not add the objects themselves.
  11918. case `$CC -V 2>&1` in
  11919. *"Version 7."*)
  11920. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11921. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11922. ;;
  11923. *) # Version 8.0 or newer
  11924. tmp_idyn=
  11925. case $host_cpu in
  11926. ia64*) tmp_idyn=' -i_dynamic';;
  11927. esac
  11928. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11929. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11930. ;;
  11931. esac
  11932. archive_cmds_need_lc_CXX=no
  11933. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11934. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11935. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11936. ;;
  11937. pgCC* | pgcpp*)
  11938. # Portland Group C++ compiler
  11939. case `$CC -V` in
  11940. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11941. prelink_cmds_CXX='tpldir=Template.dir~
  11942. rm -rf $tpldir~
  11943. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11944. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11945. old_archive_cmds_CXX='tpldir=Template.dir~
  11946. rm -rf $tpldir~
  11947. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11948. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11949. $RANLIB $oldlib'
  11950. archive_cmds_CXX='tpldir=Template.dir~
  11951. rm -rf $tpldir~
  11952. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11953. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11954. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11955. rm -rf $tpldir~
  11956. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11957. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11958. ;;
  11959. *) # Version 6 and above use weak symbols
  11960. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11961. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11962. ;;
  11963. esac
  11964. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11965. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11966. whole_archive_flag_spec_CXX='${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'
  11967. ;;
  11968. cxx*)
  11969. # Compaq C++
  11970. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11971. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  11972. runpath_var=LD_RUN_PATH
  11973. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11974. hardcode_libdir_separator_CXX=:
  11975. # Commands to make compiler produce verbose output that lists
  11976. # what "hidden" libraries, object files and flags are used when
  11977. # linking a shared library.
  11978. #
  11979. # There doesn't appear to be a way to prevent this compiler from
  11980. # explicitly linking system object files so we need to strip them
  11981. # from the output so that they don't get included in the library
  11982. # dependencies.
  11983. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  11984. ;;
  11985. xl* | mpixl* | bgxl*)
  11986. # IBM XL 8.0 on PPC, with GNU ld
  11987. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11988. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11989. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11990. if test "x$supports_anon_versioning" = xyes; then
  11991. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11992. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11993. echo "local: *; };" >> $output_objdir/$libname.ver~
  11994. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11995. fi
  11996. ;;
  11997. *)
  11998. case `$CC -V 2>&1 | sed 5q` in
  11999. *Sun\ C*)
  12000. # Sun C++ 5.9
  12001. no_undefined_flag_CXX=' -zdefs'
  12002. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12003. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  12004. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12005. whole_archive_flag_spec_CXX='${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'
  12006. compiler_needs_object_CXX=yes
  12007. # Not sure whether something based on
  12008. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  12009. # would be better.
  12010. output_verbose_link_cmd='func_echo_all'
  12011. # Archives containing C++ object files must be created using
  12012. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12013. # necessary to make sure instantiated templates are included
  12014. # in the archive.
  12015. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12016. ;;
  12017. esac
  12018. ;;
  12019. esac
  12020. ;;
  12021. lynxos*)
  12022. # FIXME: insert proper C++ library support
  12023. ld_shlibs_CXX=no
  12024. ;;
  12025. m88k*)
  12026. # FIXME: insert proper C++ library support
  12027. ld_shlibs_CXX=no
  12028. ;;
  12029. mvs*)
  12030. case $cc_basename in
  12031. cxx*)
  12032. # FIXME: insert proper C++ library support
  12033. ld_shlibs_CXX=no
  12034. ;;
  12035. *)
  12036. # FIXME: insert proper C++ library support
  12037. ld_shlibs_CXX=no
  12038. ;;
  12039. esac
  12040. ;;
  12041. netbsd*)
  12042. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12043. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12044. wlarc=
  12045. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12046. hardcode_direct_CXX=yes
  12047. hardcode_shlibpath_var_CXX=no
  12048. fi
  12049. # Workaround some broken pre-1.5 toolchains
  12050. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12051. ;;
  12052. *nto* | *qnx*)
  12053. ld_shlibs_CXX=yes
  12054. ;;
  12055. openbsd2*)
  12056. # C++ shared libraries are fairly broken
  12057. ld_shlibs_CXX=no
  12058. ;;
  12059. openbsd*)
  12060. if test -f /usr/libexec/ld.so; then
  12061. hardcode_direct_CXX=yes
  12062. hardcode_shlibpath_var_CXX=no
  12063. hardcode_direct_absolute_CXX=yes
  12064. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12065. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12066. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12067. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  12068. export_dynamic_flag_spec_CXX='${wl}-E'
  12069. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12070. fi
  12071. output_verbose_link_cmd=func_echo_all
  12072. else
  12073. ld_shlibs_CXX=no
  12074. fi
  12075. ;;
  12076. osf3* | osf4* | osf5*)
  12077. case $cc_basename in
  12078. KCC*)
  12079. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12080. # KCC will only create a shared library if the output file
  12081. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12082. # to its proper name (with version) after linking.
  12083. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  12084. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12085. hardcode_libdir_separator_CXX=:
  12086. # Archives containing C++ object files must be created using
  12087. # the KAI C++ compiler.
  12088. case $host in
  12089. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  12090. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  12091. esac
  12092. ;;
  12093. RCC*)
  12094. # Rational C++ 2.4.1
  12095. # FIXME: insert proper C++ library support
  12096. ld_shlibs_CXX=no
  12097. ;;
  12098. cxx*)
  12099. case $host in
  12100. osf3*)
  12101. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12102. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  12103. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12104. ;;
  12105. *)
  12106. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12107. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  12108. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12109. echo "-hidden">> $lib.exp~
  12110. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  12111. $RM $lib.exp'
  12112. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12113. ;;
  12114. esac
  12115. hardcode_libdir_separator_CXX=:
  12116. # Commands to make compiler produce verbose output that lists
  12117. # what "hidden" libraries, object files and flags are used when
  12118. # linking a shared library.
  12119. #
  12120. # There doesn't appear to be a way to prevent this compiler from
  12121. # explicitly linking system object files so we need to strip them
  12122. # from the output so that they don't get included in the library
  12123. # dependencies.
  12124. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  12125. ;;
  12126. *)
  12127. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12128. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12129. case $host in
  12130. osf3*)
  12131. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
  12132. ;;
  12133. *)
  12134. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
  12135. ;;
  12136. esac
  12137. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12138. hardcode_libdir_separator_CXX=:
  12139. # Commands to make compiler produce verbose output that lists
  12140. # what "hidden" libraries, object files and flags are used when
  12141. # linking a shared library.
  12142. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12143. else
  12144. # FIXME: insert proper C++ library support
  12145. ld_shlibs_CXX=no
  12146. fi
  12147. ;;
  12148. esac
  12149. ;;
  12150. psos*)
  12151. # FIXME: insert proper C++ library support
  12152. ld_shlibs_CXX=no
  12153. ;;
  12154. sunos4*)
  12155. case $cc_basename in
  12156. CC*)
  12157. # Sun C++ 4.x
  12158. # FIXME: insert proper C++ library support
  12159. ld_shlibs_CXX=no
  12160. ;;
  12161. lcc*)
  12162. # Lucid
  12163. # FIXME: insert proper C++ library support
  12164. ld_shlibs_CXX=no
  12165. ;;
  12166. *)
  12167. # FIXME: insert proper C++ library support
  12168. ld_shlibs_CXX=no
  12169. ;;
  12170. esac
  12171. ;;
  12172. solaris*)
  12173. case $cc_basename in
  12174. CC* | sunCC*)
  12175. # Sun C++ 4.2, 5.x and Centerline C++
  12176. archive_cmds_need_lc_CXX=yes
  12177. no_undefined_flag_CXX=' -zdefs'
  12178. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12179. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12180. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12181. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12182. hardcode_shlibpath_var_CXX=no
  12183. case $host_os in
  12184. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12185. *)
  12186. # The compiler driver will combine and reorder linker options,
  12187. # but understands `-z linker_flag'.
  12188. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12189. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  12190. ;;
  12191. esac
  12192. link_all_deplibs_CXX=yes
  12193. output_verbose_link_cmd='func_echo_all'
  12194. # Archives containing C++ object files must be created using
  12195. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12196. # necessary to make sure instantiated templates are included
  12197. # in the archive.
  12198. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12199. ;;
  12200. gcx*)
  12201. # Green Hills C++ Compiler
  12202. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12203. # The C++ compiler must be used to create the archive.
  12204. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12205. ;;
  12206. *)
  12207. # GNU C++ compiler with Solaris linker
  12208. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12209. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12210. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  12211. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12212. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12213. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12214. # Commands to make compiler produce verbose output that lists
  12215. # what "hidden" libraries, object files and flags are used when
  12216. # linking a shared library.
  12217. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12218. else
  12219. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12220. # platform.
  12221. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12222. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  12223. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  12224. # Commands to make compiler produce verbose output that lists
  12225. # what "hidden" libraries, object files and flags are used when
  12226. # linking a shared library.
  12227. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  12228. fi
  12229. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12230. case $host_os in
  12231. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12232. *)
  12233. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  12234. ;;
  12235. esac
  12236. fi
  12237. ;;
  12238. esac
  12239. ;;
  12240. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12241. no_undefined_flag_CXX='${wl}-z,text'
  12242. archive_cmds_need_lc_CXX=no
  12243. hardcode_shlibpath_var_CXX=no
  12244. runpath_var='LD_RUN_PATH'
  12245. case $cc_basename in
  12246. CC*)
  12247. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12248. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12249. ;;
  12250. *)
  12251. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12252. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12253. ;;
  12254. esac
  12255. ;;
  12256. sysv5* | sco3.2v5* | sco5v6*)
  12257. # Note: We can NOT use -z defs as we might desire, because we do not
  12258. # link with -lc, and that would cause any symbols used from libc to
  12259. # always be unresolved, which means just about no library would
  12260. # ever link correctly. If we're not using GNU ld we use -z text
  12261. # though, which does catch some bad symbols but isn't as heavy-handed
  12262. # as -z defs.
  12263. no_undefined_flag_CXX='${wl}-z,text'
  12264. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12265. archive_cmds_need_lc_CXX=no
  12266. hardcode_shlibpath_var_CXX=no
  12267. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  12268. hardcode_libdir_separator_CXX=':'
  12269. link_all_deplibs_CXX=yes
  12270. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12271. runpath_var='LD_RUN_PATH'
  12272. case $cc_basename in
  12273. CC*)
  12274. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12275. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12276. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  12277. '"$old_archive_cmds_CXX"
  12278. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  12279. '"$reload_cmds_CXX"
  12280. ;;
  12281. *)
  12282. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12283. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12284. ;;
  12285. esac
  12286. ;;
  12287. tandem*)
  12288. case $cc_basename in
  12289. NCC*)
  12290. # NonStop-UX NCC 3.20
  12291. # FIXME: insert proper C++ library support
  12292. ld_shlibs_CXX=no
  12293. ;;
  12294. *)
  12295. # FIXME: insert proper C++ library support
  12296. ld_shlibs_CXX=no
  12297. ;;
  12298. esac
  12299. ;;
  12300. vxworks*)
  12301. # FIXME: insert proper C++ library support
  12302. ld_shlibs_CXX=no
  12303. ;;
  12304. *)
  12305. # FIXME: insert proper C++ library support
  12306. ld_shlibs_CXX=no
  12307. ;;
  12308. esac
  12309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12310. $as_echo "$ld_shlibs_CXX" >&6; }
  12311. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12312. GCC_CXX="$GXX"
  12313. LD_CXX="$LD"
  12314. ## CAVEAT EMPTOR:
  12315. ## There is no encapsulation within the following macros, do not change
  12316. ## the running order or otherwise move them around unless you know exactly
  12317. ## what you are doing...
  12318. # Dependencies to place before and after the object being linked:
  12319. predep_objects_CXX=
  12320. postdep_objects_CXX=
  12321. predeps_CXX=
  12322. postdeps_CXX=
  12323. compiler_lib_search_path_CXX=
  12324. cat > conftest.$ac_ext <<_LT_EOF
  12325. class Foo
  12326. {
  12327. public:
  12328. Foo (void) { a = 0; }
  12329. private:
  12330. int a;
  12331. };
  12332. _LT_EOF
  12333. _lt_libdeps_save_CFLAGS=$CFLAGS
  12334. case "$CC $CFLAGS " in #(
  12335. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  12336. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  12337. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  12338. esac
  12339. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12340. (eval $ac_compile) 2>&5
  12341. ac_status=$?
  12342. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12343. test $ac_status = 0; }; then
  12344. # Parse the compiler output and extract the necessary
  12345. # objects, libraries and library flags.
  12346. # Sentinel used to keep track of whether or not we are before
  12347. # the conftest object file.
  12348. pre_test_object_deps_done=no
  12349. for p in `eval "$output_verbose_link_cmd"`; do
  12350. case ${prev}${p} in
  12351. -L* | -R* | -l*)
  12352. # Some compilers place space between "-{L,R}" and the path.
  12353. # Remove the space.
  12354. if test $p = "-L" ||
  12355. test $p = "-R"; then
  12356. prev=$p
  12357. continue
  12358. fi
  12359. # Expand the sysroot to ease extracting the directories later.
  12360. if test -z "$prev"; then
  12361. case $p in
  12362. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12363. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12364. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12365. esac
  12366. fi
  12367. case $p in
  12368. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12369. esac
  12370. if test "$pre_test_object_deps_done" = no; then
  12371. case ${prev} in
  12372. -L | -R)
  12373. # Internal compiler library paths should come after those
  12374. # provided the user. The postdeps already come after the
  12375. # user supplied libs so there is no need to process them.
  12376. if test -z "$compiler_lib_search_path_CXX"; then
  12377. compiler_lib_search_path_CXX="${prev}${p}"
  12378. else
  12379. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12380. fi
  12381. ;;
  12382. # The "-l" case would never come before the object being
  12383. # linked, so don't bother handling this case.
  12384. esac
  12385. else
  12386. if test -z "$postdeps_CXX"; then
  12387. postdeps_CXX="${prev}${p}"
  12388. else
  12389. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12390. fi
  12391. fi
  12392. prev=
  12393. ;;
  12394. *.lto.$objext) ;; # Ignore GCC LTO objects
  12395. *.$objext)
  12396. # This assumes that the test object file only shows up
  12397. # once in the compiler output.
  12398. if test "$p" = "conftest.$objext"; then
  12399. pre_test_object_deps_done=yes
  12400. continue
  12401. fi
  12402. if test "$pre_test_object_deps_done" = no; then
  12403. if test -z "$predep_objects_CXX"; then
  12404. predep_objects_CXX="$p"
  12405. else
  12406. predep_objects_CXX="$predep_objects_CXX $p"
  12407. fi
  12408. else
  12409. if test -z "$postdep_objects_CXX"; then
  12410. postdep_objects_CXX="$p"
  12411. else
  12412. postdep_objects_CXX="$postdep_objects_CXX $p"
  12413. fi
  12414. fi
  12415. ;;
  12416. *) ;; # Ignore the rest.
  12417. esac
  12418. done
  12419. # Clean up.
  12420. rm -f a.out a.exe
  12421. else
  12422. echo "libtool.m4: error: problem compiling CXX test program"
  12423. fi
  12424. $RM -f confest.$objext
  12425. CFLAGS=$_lt_libdeps_save_CFLAGS
  12426. # PORTME: override above test on systems where it is broken
  12427. case $host_os in
  12428. interix[3-9]*)
  12429. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12430. # hack all around it, let's just trust "g++" to DTRT.
  12431. predep_objects_CXX=
  12432. postdep_objects_CXX=
  12433. postdeps_CXX=
  12434. ;;
  12435. linux*)
  12436. case `$CC -V 2>&1 | sed 5q` in
  12437. *Sun\ C*)
  12438. # Sun C++ 5.9
  12439. # The more standards-conforming stlport4 library is
  12440. # incompatible with the Cstd library. Avoid specifying
  12441. # it if it's in CXXFLAGS. Ignore libCrun as
  12442. # -library=stlport4 depends on it.
  12443. case " $CXX $CXXFLAGS " in
  12444. *" -library=stlport4 "*)
  12445. solaris_use_stlport4=yes
  12446. ;;
  12447. esac
  12448. if test "$solaris_use_stlport4" != yes; then
  12449. postdeps_CXX='-library=Cstd -library=Crun'
  12450. fi
  12451. ;;
  12452. esac
  12453. ;;
  12454. solaris*)
  12455. case $cc_basename in
  12456. CC* | sunCC*)
  12457. # The more standards-conforming stlport4 library is
  12458. # incompatible with the Cstd library. Avoid specifying
  12459. # it if it's in CXXFLAGS. Ignore libCrun as
  12460. # -library=stlport4 depends on it.
  12461. case " $CXX $CXXFLAGS " in
  12462. *" -library=stlport4 "*)
  12463. solaris_use_stlport4=yes
  12464. ;;
  12465. esac
  12466. # Adding this requires a known-good setup of shared libraries for
  12467. # Sun compiler versions before 5.6, else PIC objects from an old
  12468. # archive will be linked into the output, leading to subtle bugs.
  12469. if test "$solaris_use_stlport4" != yes; then
  12470. postdeps_CXX='-library=Cstd -library=Crun'
  12471. fi
  12472. ;;
  12473. esac
  12474. ;;
  12475. esac
  12476. case " $postdeps_CXX " in
  12477. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12478. esac
  12479. compiler_lib_search_dirs_CXX=
  12480. if test -n "${compiler_lib_search_path_CXX}"; then
  12481. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12482. fi
  12483. lt_prog_compiler_wl_CXX=
  12484. lt_prog_compiler_pic_CXX=
  12485. lt_prog_compiler_static_CXX=
  12486. # C++ specific cases for pic, static, wl, etc.
  12487. if test "$GXX" = yes; then
  12488. lt_prog_compiler_wl_CXX='-Wl,'
  12489. lt_prog_compiler_static_CXX='-static'
  12490. case $host_os in
  12491. aix*)
  12492. # All AIX code is PIC.
  12493. if test "$host_cpu" = ia64; then
  12494. # AIX 5 now supports IA64 processor
  12495. lt_prog_compiler_static_CXX='-Bstatic'
  12496. fi
  12497. ;;
  12498. amigaos*)
  12499. case $host_cpu in
  12500. powerpc)
  12501. # see comment about AmigaOS4 .so support
  12502. lt_prog_compiler_pic_CXX='-fPIC'
  12503. ;;
  12504. m68k)
  12505. # FIXME: we need at least 68020 code to build shared libraries, but
  12506. # adding the `-m68020' flag to GCC prevents building anything better,
  12507. # like `-m68040'.
  12508. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12509. ;;
  12510. esac
  12511. ;;
  12512. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12513. # PIC is the default for these OSes.
  12514. ;;
  12515. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12516. # This hack is so that the source file can tell whether it is being
  12517. # built for inclusion in a dll (and should export symbols for example).
  12518. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12519. # (--disable-auto-import) libraries
  12520. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12521. ;;
  12522. darwin* | rhapsody*)
  12523. # PIC is the default on this platform
  12524. # Common symbols not allowed in MH_DYLIB files
  12525. lt_prog_compiler_pic_CXX='-fno-common'
  12526. ;;
  12527. *djgpp*)
  12528. # DJGPP does not support shared libraries at all
  12529. lt_prog_compiler_pic_CXX=
  12530. ;;
  12531. haiku*)
  12532. # PIC is the default for Haiku.
  12533. # The "-static" flag exists, but is broken.
  12534. lt_prog_compiler_static_CXX=
  12535. ;;
  12536. interix[3-9]*)
  12537. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12538. # Instead, we relocate shared libraries at runtime.
  12539. ;;
  12540. sysv4*MP*)
  12541. if test -d /usr/nec; then
  12542. lt_prog_compiler_pic_CXX=-Kconform_pic
  12543. fi
  12544. ;;
  12545. hpux*)
  12546. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12547. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12548. # sets the default TLS model and affects inlining.
  12549. case $host_cpu in
  12550. hppa*64*)
  12551. ;;
  12552. *)
  12553. lt_prog_compiler_pic_CXX='-fPIC'
  12554. ;;
  12555. esac
  12556. ;;
  12557. *qnx* | *nto*)
  12558. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12559. # it will coredump.
  12560. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12561. ;;
  12562. *)
  12563. lt_prog_compiler_pic_CXX='-fPIC'
  12564. ;;
  12565. esac
  12566. else
  12567. case $host_os in
  12568. aix[4-9]*)
  12569. # All AIX code is PIC.
  12570. if test "$host_cpu" = ia64; then
  12571. # AIX 5 now supports IA64 processor
  12572. lt_prog_compiler_static_CXX='-Bstatic'
  12573. else
  12574. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12575. fi
  12576. ;;
  12577. chorus*)
  12578. case $cc_basename in
  12579. cxch68*)
  12580. # Green Hills C++ Compiler
  12581. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  12582. ;;
  12583. esac
  12584. ;;
  12585. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12586. # This hack is so that the source file can tell whether it is being
  12587. # built for inclusion in a dll (and should export symbols for example).
  12588. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12589. ;;
  12590. dgux*)
  12591. case $cc_basename in
  12592. ec++*)
  12593. lt_prog_compiler_pic_CXX='-KPIC'
  12594. ;;
  12595. ghcx*)
  12596. # Green Hills C++ Compiler
  12597. lt_prog_compiler_pic_CXX='-pic'
  12598. ;;
  12599. *)
  12600. ;;
  12601. esac
  12602. ;;
  12603. freebsd* | dragonfly*)
  12604. # FreeBSD uses GNU C++
  12605. ;;
  12606. hpux9* | hpux10* | hpux11*)
  12607. case $cc_basename in
  12608. CC*)
  12609. lt_prog_compiler_wl_CXX='-Wl,'
  12610. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12611. if test "$host_cpu" != ia64; then
  12612. lt_prog_compiler_pic_CXX='+Z'
  12613. fi
  12614. ;;
  12615. aCC*)
  12616. lt_prog_compiler_wl_CXX='-Wl,'
  12617. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12618. case $host_cpu in
  12619. hppa*64*|ia64*)
  12620. # +Z the default
  12621. ;;
  12622. *)
  12623. lt_prog_compiler_pic_CXX='+Z'
  12624. ;;
  12625. esac
  12626. ;;
  12627. *)
  12628. ;;
  12629. esac
  12630. ;;
  12631. interix*)
  12632. # This is c89, which is MS Visual C++ (no shared libs)
  12633. # Anyone wants to do a port?
  12634. ;;
  12635. irix5* | irix6* | nonstopux*)
  12636. case $cc_basename in
  12637. CC*)
  12638. lt_prog_compiler_wl_CXX='-Wl,'
  12639. lt_prog_compiler_static_CXX='-non_shared'
  12640. # CC pic flag -KPIC is the default.
  12641. ;;
  12642. *)
  12643. ;;
  12644. esac
  12645. ;;
  12646. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  12647. case $cc_basename in
  12648. KCC*)
  12649. # KAI C++ Compiler
  12650. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12651. lt_prog_compiler_pic_CXX='-fPIC'
  12652. ;;
  12653. ecpc* )
  12654. # old Intel C++ for x86_64 which still supported -KPIC.
  12655. lt_prog_compiler_wl_CXX='-Wl,'
  12656. lt_prog_compiler_pic_CXX='-KPIC'
  12657. lt_prog_compiler_static_CXX='-static'
  12658. ;;
  12659. icpc* )
  12660. # Intel C++, used to be incompatible with GCC.
  12661. # ICC 10 doesn't accept -KPIC any more.
  12662. lt_prog_compiler_wl_CXX='-Wl,'
  12663. lt_prog_compiler_pic_CXX='-fPIC'
  12664. lt_prog_compiler_static_CXX='-static'
  12665. ;;
  12666. pgCC* | pgcpp*)
  12667. # Portland Group C++ compiler
  12668. lt_prog_compiler_wl_CXX='-Wl,'
  12669. lt_prog_compiler_pic_CXX='-fpic'
  12670. lt_prog_compiler_static_CXX='-Bstatic'
  12671. ;;
  12672. cxx*)
  12673. # Compaq C++
  12674. # Make sure the PIC flag is empty. It appears that all Alpha
  12675. # Linux and Compaq Tru64 Unix objects are PIC.
  12676. lt_prog_compiler_pic_CXX=
  12677. lt_prog_compiler_static_CXX='-non_shared'
  12678. ;;
  12679. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12680. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12681. lt_prog_compiler_wl_CXX='-Wl,'
  12682. lt_prog_compiler_pic_CXX='-qpic'
  12683. lt_prog_compiler_static_CXX='-qstaticlink'
  12684. ;;
  12685. *)
  12686. case `$CC -V 2>&1 | sed 5q` in
  12687. *Sun\ C*)
  12688. # Sun C++ 5.9
  12689. lt_prog_compiler_pic_CXX='-KPIC'
  12690. lt_prog_compiler_static_CXX='-Bstatic'
  12691. lt_prog_compiler_wl_CXX='-Qoption ld '
  12692. ;;
  12693. esac
  12694. ;;
  12695. esac
  12696. ;;
  12697. lynxos*)
  12698. ;;
  12699. m88k*)
  12700. ;;
  12701. mvs*)
  12702. case $cc_basename in
  12703. cxx*)
  12704. lt_prog_compiler_pic_CXX='-W c,exportall'
  12705. ;;
  12706. *)
  12707. ;;
  12708. esac
  12709. ;;
  12710. netbsd* | netbsdelf*-gnu)
  12711. ;;
  12712. *qnx* | *nto*)
  12713. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12714. # it will coredump.
  12715. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12716. ;;
  12717. osf3* | osf4* | osf5*)
  12718. case $cc_basename in
  12719. KCC*)
  12720. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12721. ;;
  12722. RCC*)
  12723. # Rational C++ 2.4.1
  12724. lt_prog_compiler_pic_CXX='-pic'
  12725. ;;
  12726. cxx*)
  12727. # Digital/Compaq C++
  12728. lt_prog_compiler_wl_CXX='-Wl,'
  12729. # Make sure the PIC flag is empty. It appears that all Alpha
  12730. # Linux and Compaq Tru64 Unix objects are PIC.
  12731. lt_prog_compiler_pic_CXX=
  12732. lt_prog_compiler_static_CXX='-non_shared'
  12733. ;;
  12734. *)
  12735. ;;
  12736. esac
  12737. ;;
  12738. psos*)
  12739. ;;
  12740. solaris*)
  12741. case $cc_basename in
  12742. CC* | sunCC*)
  12743. # Sun C++ 4.2, 5.x and Centerline C++
  12744. lt_prog_compiler_pic_CXX='-KPIC'
  12745. lt_prog_compiler_static_CXX='-Bstatic'
  12746. lt_prog_compiler_wl_CXX='-Qoption ld '
  12747. ;;
  12748. gcx*)
  12749. # Green Hills C++ Compiler
  12750. lt_prog_compiler_pic_CXX='-PIC'
  12751. ;;
  12752. *)
  12753. ;;
  12754. esac
  12755. ;;
  12756. sunos4*)
  12757. case $cc_basename in
  12758. CC*)
  12759. # Sun C++ 4.x
  12760. lt_prog_compiler_pic_CXX='-pic'
  12761. lt_prog_compiler_static_CXX='-Bstatic'
  12762. ;;
  12763. lcc*)
  12764. # Lucid
  12765. lt_prog_compiler_pic_CXX='-pic'
  12766. ;;
  12767. *)
  12768. ;;
  12769. esac
  12770. ;;
  12771. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12772. case $cc_basename in
  12773. CC*)
  12774. lt_prog_compiler_wl_CXX='-Wl,'
  12775. lt_prog_compiler_pic_CXX='-KPIC'
  12776. lt_prog_compiler_static_CXX='-Bstatic'
  12777. ;;
  12778. esac
  12779. ;;
  12780. tandem*)
  12781. case $cc_basename in
  12782. NCC*)
  12783. # NonStop-UX NCC 3.20
  12784. lt_prog_compiler_pic_CXX='-KPIC'
  12785. ;;
  12786. *)
  12787. ;;
  12788. esac
  12789. ;;
  12790. vxworks*)
  12791. ;;
  12792. *)
  12793. lt_prog_compiler_can_build_shared_CXX=no
  12794. ;;
  12795. esac
  12796. fi
  12797. case $host_os in
  12798. # For platforms which do not support PIC, -DPIC is meaningless:
  12799. *djgpp*)
  12800. lt_prog_compiler_pic_CXX=
  12801. ;;
  12802. *)
  12803. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12804. ;;
  12805. esac
  12806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12807. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12808. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12809. $as_echo_n "(cached) " >&6
  12810. else
  12811. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12812. fi
  12813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12814. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12815. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12816. #
  12817. # Check to make sure the PIC flag actually works.
  12818. #
  12819. if test -n "$lt_prog_compiler_pic_CXX"; then
  12820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12821. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12822. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12823. $as_echo_n "(cached) " >&6
  12824. else
  12825. lt_cv_prog_compiler_pic_works_CXX=no
  12826. ac_outfile=conftest.$ac_objext
  12827. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12828. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12829. # Insert the option either (1) after the last *FLAGS variable, or
  12830. # (2) before a word containing "conftest.", or (3) at the end.
  12831. # Note that $ac_compile itself does not contain backslashes and begins
  12832. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12833. # The option is referenced via a variable to avoid confusing sed.
  12834. lt_compile=`echo "$ac_compile" | $SED \
  12835. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12836. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12837. -e 's:$: $lt_compiler_flag:'`
  12838. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12839. (eval "$lt_compile" 2>conftest.err)
  12840. ac_status=$?
  12841. cat conftest.err >&5
  12842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12843. if (exit $ac_status) && test -s "$ac_outfile"; then
  12844. # The compiler can only warn and ignore the option if not recognized
  12845. # So say no if there are warnings other than the usual output.
  12846. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12847. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12848. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12849. lt_cv_prog_compiler_pic_works_CXX=yes
  12850. fi
  12851. fi
  12852. $RM conftest*
  12853. fi
  12854. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12855. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12856. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12857. case $lt_prog_compiler_pic_CXX in
  12858. "" | " "*) ;;
  12859. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12860. esac
  12861. else
  12862. lt_prog_compiler_pic_CXX=
  12863. lt_prog_compiler_can_build_shared_CXX=no
  12864. fi
  12865. fi
  12866. #
  12867. # Check to make sure the static flag actually works.
  12868. #
  12869. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12871. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12872. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12873. $as_echo_n "(cached) " >&6
  12874. else
  12875. lt_cv_prog_compiler_static_works_CXX=no
  12876. save_LDFLAGS="$LDFLAGS"
  12877. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12878. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12879. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12880. # The linker can only warn and ignore the option if not recognized
  12881. # So say no if there are warnings
  12882. if test -s conftest.err; then
  12883. # Append any errors to the config.log.
  12884. cat conftest.err 1>&5
  12885. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12886. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12887. if diff conftest.exp conftest.er2 >/dev/null; then
  12888. lt_cv_prog_compiler_static_works_CXX=yes
  12889. fi
  12890. else
  12891. lt_cv_prog_compiler_static_works_CXX=yes
  12892. fi
  12893. fi
  12894. $RM -r conftest*
  12895. LDFLAGS="$save_LDFLAGS"
  12896. fi
  12897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12898. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12899. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12900. :
  12901. else
  12902. lt_prog_compiler_static_CXX=
  12903. fi
  12904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12905. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12906. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12907. $as_echo_n "(cached) " >&6
  12908. else
  12909. lt_cv_prog_compiler_c_o_CXX=no
  12910. $RM -r conftest 2>/dev/null
  12911. mkdir conftest
  12912. cd conftest
  12913. mkdir out
  12914. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12915. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12916. # Insert the option either (1) after the last *FLAGS variable, or
  12917. # (2) before a word containing "conftest.", or (3) at the end.
  12918. # Note that $ac_compile itself does not contain backslashes and begins
  12919. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12920. lt_compile=`echo "$ac_compile" | $SED \
  12921. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12922. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12923. -e 's:$: $lt_compiler_flag:'`
  12924. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12925. (eval "$lt_compile" 2>out/conftest.err)
  12926. ac_status=$?
  12927. cat out/conftest.err >&5
  12928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12929. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12930. then
  12931. # The compiler can only warn and ignore the option if not recognized
  12932. # So say no if there are warnings
  12933. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12934. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12935. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12936. lt_cv_prog_compiler_c_o_CXX=yes
  12937. fi
  12938. fi
  12939. chmod u+w . 2>&5
  12940. $RM conftest*
  12941. # SGI C++ compiler will create directory out/ii_files/ for
  12942. # template instantiation
  12943. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12944. $RM out/* && rmdir out
  12945. cd ..
  12946. $RM -r conftest
  12947. $RM conftest*
  12948. fi
  12949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12950. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12952. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12953. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12954. $as_echo_n "(cached) " >&6
  12955. else
  12956. lt_cv_prog_compiler_c_o_CXX=no
  12957. $RM -r conftest 2>/dev/null
  12958. mkdir conftest
  12959. cd conftest
  12960. mkdir out
  12961. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12962. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12963. # Insert the option either (1) after the last *FLAGS variable, or
  12964. # (2) before a word containing "conftest.", or (3) at the end.
  12965. # Note that $ac_compile itself does not contain backslashes and begins
  12966. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12967. lt_compile=`echo "$ac_compile" | $SED \
  12968. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12969. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12970. -e 's:$: $lt_compiler_flag:'`
  12971. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12972. (eval "$lt_compile" 2>out/conftest.err)
  12973. ac_status=$?
  12974. cat out/conftest.err >&5
  12975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12976. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12977. then
  12978. # The compiler can only warn and ignore the option if not recognized
  12979. # So say no if there are warnings
  12980. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12981. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12982. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12983. lt_cv_prog_compiler_c_o_CXX=yes
  12984. fi
  12985. fi
  12986. chmod u+w . 2>&5
  12987. $RM conftest*
  12988. # SGI C++ compiler will create directory out/ii_files/ for
  12989. # template instantiation
  12990. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12991. $RM out/* && rmdir out
  12992. cd ..
  12993. $RM -r conftest
  12994. $RM conftest*
  12995. fi
  12996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12997. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12998. hard_links="nottested"
  12999. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  13000. # do not overwrite the value of need_locks provided by the user
  13001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13002. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13003. hard_links=yes
  13004. $RM conftest*
  13005. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13006. touch conftest.a
  13007. ln conftest.a conftest.b 2>&5 || hard_links=no
  13008. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13010. $as_echo "$hard_links" >&6; }
  13011. if test "$hard_links" = no; then
  13012. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13013. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13014. need_locks=warn
  13015. fi
  13016. else
  13017. need_locks=no
  13018. fi
  13019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13020. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13021. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13022. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13023. case $host_os in
  13024. aix[4-9]*)
  13025. # If we're using GNU nm, then we don't want the "-C" option.
  13026. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13027. # Also, AIX nm treats weak defined symbols like other global defined
  13028. # symbols, whereas GNU nm marks them as "W".
  13029. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13030. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  13031. else
  13032. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  13033. fi
  13034. ;;
  13035. pw32*)
  13036. export_symbols_cmds_CXX="$ltdll_cmds"
  13037. ;;
  13038. cygwin* | mingw* | cegcc*)
  13039. case $cc_basename in
  13040. cl*)
  13041. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13042. ;;
  13043. *)
  13044. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  13045. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13046. ;;
  13047. esac
  13048. ;;
  13049. linux* | k*bsd*-gnu | gnu*)
  13050. link_all_deplibs_CXX=no
  13051. ;;
  13052. *)
  13053. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13054. ;;
  13055. esac
  13056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  13057. $as_echo "$ld_shlibs_CXX" >&6; }
  13058. test "$ld_shlibs_CXX" = no && can_build_shared=no
  13059. with_gnu_ld_CXX=$with_gnu_ld
  13060. #
  13061. # Do we need to explicitly link libc?
  13062. #
  13063. case "x$archive_cmds_need_lc_CXX" in
  13064. x|xyes)
  13065. # Assume -lc should be added
  13066. archive_cmds_need_lc_CXX=yes
  13067. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13068. case $archive_cmds_CXX in
  13069. *'~'*)
  13070. # FIXME: we may have to deal with multi-command sequences.
  13071. ;;
  13072. '$CC '*)
  13073. # Test whether the compiler implicitly links with -lc since on some
  13074. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13075. # to ld, don't add -lc before -lgcc.
  13076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  13077. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  13078. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  13079. $as_echo_n "(cached) " >&6
  13080. else
  13081. $RM conftest*
  13082. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13083. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  13084. (eval $ac_compile) 2>&5
  13085. ac_status=$?
  13086. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13087. test $ac_status = 0; } 2>conftest.err; then
  13088. soname=conftest
  13089. lib=conftest
  13090. libobjs=conftest.$ac_objext
  13091. deplibs=
  13092. wl=$lt_prog_compiler_wl_CXX
  13093. pic_flag=$lt_prog_compiler_pic_CXX
  13094. compiler_flags=-v
  13095. linker_flags=-v
  13096. verstring=
  13097. output_objdir=.
  13098. libname=conftest
  13099. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  13100. allow_undefined_flag_CXX=
  13101. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  13102. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13103. ac_status=$?
  13104. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13105. test $ac_status = 0; }
  13106. then
  13107. lt_cv_archive_cmds_need_lc_CXX=no
  13108. else
  13109. lt_cv_archive_cmds_need_lc_CXX=yes
  13110. fi
  13111. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  13112. else
  13113. cat conftest.err 1>&5
  13114. fi
  13115. $RM conftest*
  13116. fi
  13117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  13118. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  13119. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  13120. ;;
  13121. esac
  13122. fi
  13123. ;;
  13124. esac
  13125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  13126. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  13127. library_names_spec=
  13128. libname_spec='lib$name'
  13129. soname_spec=
  13130. shrext_cmds=".so"
  13131. postinstall_cmds=
  13132. postuninstall_cmds=
  13133. finish_cmds=
  13134. finish_eval=
  13135. shlibpath_var=
  13136. shlibpath_overrides_runpath=unknown
  13137. version_type=none
  13138. dynamic_linker="$host_os ld.so"
  13139. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13140. need_lib_prefix=unknown
  13141. hardcode_into_libs=no
  13142. # when you set need_version to no, make sure it does not cause -set_version
  13143. # flags to be left without arguments
  13144. need_version=unknown
  13145. case $host_os in
  13146. aix3*)
  13147. version_type=linux # correct to gnu/linux during the next big refactor
  13148. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13149. shlibpath_var=LIBPATH
  13150. # AIX 3 has no versioning support, so we append a major version to the name.
  13151. soname_spec='${libname}${release}${shared_ext}$major'
  13152. ;;
  13153. aix[4-9]*)
  13154. version_type=linux # correct to gnu/linux during the next big refactor
  13155. need_lib_prefix=no
  13156. need_version=no
  13157. hardcode_into_libs=yes
  13158. if test "$host_cpu" = ia64; then
  13159. # AIX 5 supports IA64
  13160. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13161. shlibpath_var=LD_LIBRARY_PATH
  13162. else
  13163. # With GCC up to 2.95.x, collect2 would create an import file
  13164. # for dependence libraries. The import file would start with
  13165. # the line `#! .'. This would cause the generated library to
  13166. # depend on `.', always an invalid library. This was fixed in
  13167. # development snapshots of GCC prior to 3.0.
  13168. case $host_os in
  13169. aix4 | aix4.[01] | aix4.[01].*)
  13170. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13171. echo ' yes '
  13172. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  13173. :
  13174. else
  13175. can_build_shared=no
  13176. fi
  13177. ;;
  13178. esac
  13179. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13180. # soname into executable. Probably we can add versioning support to
  13181. # collect2, so additional links can be useful in future.
  13182. if test "$aix_use_runtimelinking" = yes; then
  13183. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13184. # instead of lib<name>.a to let people know that these are not
  13185. # typical AIX shared libraries.
  13186. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13187. else
  13188. # We preserve .a as extension for shared libraries through AIX4.2
  13189. # and later when we are not doing run time linking.
  13190. library_names_spec='${libname}${release}.a $libname.a'
  13191. soname_spec='${libname}${release}${shared_ext}$major'
  13192. fi
  13193. shlibpath_var=LIBPATH
  13194. fi
  13195. ;;
  13196. amigaos*)
  13197. case $host_cpu in
  13198. powerpc)
  13199. # Since July 2007 AmigaOS4 officially supports .so libraries.
  13200. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  13201. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13202. ;;
  13203. m68k)
  13204. library_names_spec='$libname.ixlibrary $libname.a'
  13205. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13206. 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'
  13207. ;;
  13208. esac
  13209. ;;
  13210. beos*)
  13211. library_names_spec='${libname}${shared_ext}'
  13212. dynamic_linker="$host_os ld.so"
  13213. shlibpath_var=LIBRARY_PATH
  13214. ;;
  13215. bsdi[45]*)
  13216. version_type=linux # correct to gnu/linux during the next big refactor
  13217. need_version=no
  13218. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13219. soname_spec='${libname}${release}${shared_ext}$major'
  13220. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13221. shlibpath_var=LD_LIBRARY_PATH
  13222. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13223. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13224. # the default ld.so.conf also contains /usr/contrib/lib and
  13225. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13226. # libtool to hard-code these into programs
  13227. ;;
  13228. cygwin* | mingw* | pw32* | cegcc*)
  13229. version_type=windows
  13230. shrext_cmds=".dll"
  13231. need_version=no
  13232. need_lib_prefix=no
  13233. case $GCC,$cc_basename in
  13234. yes,*)
  13235. # gcc
  13236. library_names_spec='$libname.dll.a'
  13237. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13238. postinstall_cmds='base_file=`basename \${file}`~
  13239. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13240. dldir=$destdir/`dirname \$dlpath`~
  13241. test -d \$dldir || mkdir -p \$dldir~
  13242. $install_prog $dir/$dlname \$dldir/$dlname~
  13243. chmod a+x \$dldir/$dlname~
  13244. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  13245. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  13246. fi'
  13247. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13248. dlpath=$dir/\$dldll~
  13249. $RM \$dlpath'
  13250. shlibpath_overrides_runpath=yes
  13251. case $host_os in
  13252. cygwin*)
  13253. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13254. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13255. ;;
  13256. mingw* | cegcc*)
  13257. # MinGW DLLs use traditional 'lib' prefix
  13258. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13259. ;;
  13260. pw32*)
  13261. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13262. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13263. ;;
  13264. esac
  13265. dynamic_linker='Win32 ld.exe'
  13266. ;;
  13267. *,cl*)
  13268. # Native MSVC
  13269. libname_spec='$name'
  13270. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13271. library_names_spec='${libname}.dll.lib'
  13272. case $build_os in
  13273. mingw*)
  13274. sys_lib_search_path_spec=
  13275. lt_save_ifs=$IFS
  13276. IFS=';'
  13277. for lt_path in $LIB
  13278. do
  13279. IFS=$lt_save_ifs
  13280. # Let DOS variable expansion print the short 8.3 style file name.
  13281. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  13282. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  13283. done
  13284. IFS=$lt_save_ifs
  13285. # Convert to MSYS style.
  13286. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  13287. ;;
  13288. cygwin*)
  13289. # Convert to unix form, then to dos form, then back to unix form
  13290. # but this time dos style (no spaces!) so that the unix form looks
  13291. # like /cygdrive/c/PROGRA~1:/cygdr...
  13292. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  13293. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  13294. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13295. ;;
  13296. *)
  13297. sys_lib_search_path_spec="$LIB"
  13298. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  13299. # It is most probably a Windows format PATH.
  13300. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13301. else
  13302. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13303. fi
  13304. # FIXME: find the short name or the path components, as spaces are
  13305. # common. (e.g. "Program Files" -> "PROGRA~1")
  13306. ;;
  13307. esac
  13308. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13309. postinstall_cmds='base_file=`basename \${file}`~
  13310. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  13311. dldir=$destdir/`dirname \$dlpath`~
  13312. test -d \$dldir || mkdir -p \$dldir~
  13313. $install_prog $dir/$dlname \$dldir/$dlname'
  13314. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13315. dlpath=$dir/\$dldll~
  13316. $RM \$dlpath'
  13317. shlibpath_overrides_runpath=yes
  13318. dynamic_linker='Win32 link.exe'
  13319. ;;
  13320. *)
  13321. # Assume MSVC wrapper
  13322. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13323. dynamic_linker='Win32 ld.exe'
  13324. ;;
  13325. esac
  13326. # FIXME: first we should search . and the directory the executable is in
  13327. shlibpath_var=PATH
  13328. ;;
  13329. darwin* | rhapsody*)
  13330. dynamic_linker="$host_os dyld"
  13331. version_type=darwin
  13332. need_lib_prefix=no
  13333. need_version=no
  13334. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13335. soname_spec='${libname}${release}${major}$shared_ext'
  13336. shlibpath_overrides_runpath=yes
  13337. shlibpath_var=DYLD_LIBRARY_PATH
  13338. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13339. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13340. ;;
  13341. dgux*)
  13342. version_type=linux # correct to gnu/linux during the next big refactor
  13343. need_lib_prefix=no
  13344. need_version=no
  13345. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13346. soname_spec='${libname}${release}${shared_ext}$major'
  13347. shlibpath_var=LD_LIBRARY_PATH
  13348. ;;
  13349. freebsd* | dragonfly*)
  13350. # DragonFly does not have aout. When/if they implement a new
  13351. # versioning mechanism, adjust this.
  13352. if test -x /usr/bin/objformat; then
  13353. objformat=`/usr/bin/objformat`
  13354. else
  13355. case $host_os in
  13356. freebsd[23].*) objformat=aout ;;
  13357. *) objformat=elf ;;
  13358. esac
  13359. fi
  13360. version_type=freebsd-$objformat
  13361. case $version_type in
  13362. freebsd-elf*)
  13363. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13364. need_version=no
  13365. need_lib_prefix=no
  13366. ;;
  13367. freebsd-*)
  13368. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13369. need_version=yes
  13370. ;;
  13371. esac
  13372. shlibpath_var=LD_LIBRARY_PATH
  13373. case $host_os in
  13374. freebsd2.*)
  13375. shlibpath_overrides_runpath=yes
  13376. ;;
  13377. freebsd3.[01]* | freebsdelf3.[01]*)
  13378. shlibpath_overrides_runpath=yes
  13379. hardcode_into_libs=yes
  13380. ;;
  13381. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13382. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13383. shlibpath_overrides_runpath=no
  13384. hardcode_into_libs=yes
  13385. ;;
  13386. *) # from 4.6 on, and DragonFly
  13387. shlibpath_overrides_runpath=yes
  13388. hardcode_into_libs=yes
  13389. ;;
  13390. esac
  13391. ;;
  13392. haiku*)
  13393. version_type=linux # correct to gnu/linux during the next big refactor
  13394. need_lib_prefix=no
  13395. need_version=no
  13396. dynamic_linker="$host_os runtime_loader"
  13397. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13398. soname_spec='${libname}${release}${shared_ext}$major'
  13399. shlibpath_var=LIBRARY_PATH
  13400. shlibpath_overrides_runpath=yes
  13401. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13402. hardcode_into_libs=yes
  13403. ;;
  13404. hpux9* | hpux10* | hpux11*)
  13405. # Give a soname corresponding to the major version so that dld.sl refuses to
  13406. # link against other versions.
  13407. version_type=sunos
  13408. need_lib_prefix=no
  13409. need_version=no
  13410. case $host_cpu in
  13411. ia64*)
  13412. shrext_cmds='.so'
  13413. hardcode_into_libs=yes
  13414. dynamic_linker="$host_os dld.so"
  13415. shlibpath_var=LD_LIBRARY_PATH
  13416. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13417. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13418. soname_spec='${libname}${release}${shared_ext}$major'
  13419. if test "X$HPUX_IA64_MODE" = X32; then
  13420. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13421. else
  13422. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13423. fi
  13424. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13425. ;;
  13426. hppa*64*)
  13427. shrext_cmds='.sl'
  13428. hardcode_into_libs=yes
  13429. dynamic_linker="$host_os dld.sl"
  13430. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13431. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13432. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13433. soname_spec='${libname}${release}${shared_ext}$major'
  13434. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13435. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13436. ;;
  13437. *)
  13438. shrext_cmds='.sl'
  13439. dynamic_linker="$host_os dld.sl"
  13440. shlibpath_var=SHLIB_PATH
  13441. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13442. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13443. soname_spec='${libname}${release}${shared_ext}$major'
  13444. ;;
  13445. esac
  13446. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13447. postinstall_cmds='chmod 555 $lib'
  13448. # or fails outright, so override atomically:
  13449. install_override_mode=555
  13450. ;;
  13451. interix[3-9]*)
  13452. version_type=linux # correct to gnu/linux during the next big refactor
  13453. need_lib_prefix=no
  13454. need_version=no
  13455. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13456. soname_spec='${libname}${release}${shared_ext}$major'
  13457. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13458. shlibpath_var=LD_LIBRARY_PATH
  13459. shlibpath_overrides_runpath=no
  13460. hardcode_into_libs=yes
  13461. ;;
  13462. irix5* | irix6* | nonstopux*)
  13463. case $host_os in
  13464. nonstopux*) version_type=nonstopux ;;
  13465. *)
  13466. if test "$lt_cv_prog_gnu_ld" = yes; then
  13467. version_type=linux # correct to gnu/linux during the next big refactor
  13468. else
  13469. version_type=irix
  13470. fi ;;
  13471. esac
  13472. need_lib_prefix=no
  13473. need_version=no
  13474. soname_spec='${libname}${release}${shared_ext}$major'
  13475. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13476. case $host_os in
  13477. irix5* | nonstopux*)
  13478. libsuff= shlibsuff=
  13479. ;;
  13480. *)
  13481. case $LD in # libtool.m4 will add one of these switches to LD
  13482. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13483. libsuff= shlibsuff= libmagic=32-bit;;
  13484. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13485. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13486. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13487. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13488. *) libsuff= shlibsuff= libmagic=never-match;;
  13489. esac
  13490. ;;
  13491. esac
  13492. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13493. shlibpath_overrides_runpath=no
  13494. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13495. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13496. hardcode_into_libs=yes
  13497. ;;
  13498. # No shared lib support for Linux oldld, aout, or coff.
  13499. linux*oldld* | linux*aout* | linux*coff*)
  13500. dynamic_linker=no
  13501. ;;
  13502. # This must be glibc/ELF.
  13503. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  13504. version_type=linux # correct to gnu/linux during the next big refactor
  13505. need_lib_prefix=no
  13506. need_version=no
  13507. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13508. soname_spec='${libname}${release}${shared_ext}$major'
  13509. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13510. shlibpath_var=LD_LIBRARY_PATH
  13511. shlibpath_overrides_runpath=no
  13512. # Some binutils ld are patched to set DT_RUNPATH
  13513. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13514. $as_echo_n "(cached) " >&6
  13515. else
  13516. lt_cv_shlibpath_overrides_runpath=no
  13517. save_LDFLAGS=$LDFLAGS
  13518. save_libdir=$libdir
  13519. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13520. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13522. /* end confdefs.h. */
  13523. int
  13524. main ()
  13525. {
  13526. ;
  13527. return 0;
  13528. }
  13529. _ACEOF
  13530. if ac_fn_cxx_try_link "$LINENO"; then :
  13531. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13532. lt_cv_shlibpath_overrides_runpath=yes
  13533. fi
  13534. fi
  13535. rm -f core conftest.err conftest.$ac_objext \
  13536. conftest$ac_exeext conftest.$ac_ext
  13537. LDFLAGS=$save_LDFLAGS
  13538. libdir=$save_libdir
  13539. fi
  13540. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13541. # This implies no fast_install, which is unacceptable.
  13542. # Some rework will be needed to allow for fast_install
  13543. # before this can be enabled.
  13544. hardcode_into_libs=yes
  13545. # Append ld.so.conf contents to the search path
  13546. if test -f /etc/ld.so.conf; then
  13547. 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' ' '`
  13548. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13549. fi
  13550. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13551. # powerpc, because MkLinux only supported shared libraries with the
  13552. # GNU dynamic linker. Since this was broken with cross compilers,
  13553. # most powerpc-linux boxes support dynamic linking these days and
  13554. # people can always --disable-shared, the test was removed, and we
  13555. # assume the GNU/Linux dynamic linker is in use.
  13556. dynamic_linker='GNU/Linux ld.so'
  13557. ;;
  13558. netbsdelf*-gnu)
  13559. version_type=linux
  13560. need_lib_prefix=no
  13561. need_version=no
  13562. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13563. soname_spec='${libname}${release}${shared_ext}$major'
  13564. shlibpath_var=LD_LIBRARY_PATH
  13565. shlibpath_overrides_runpath=no
  13566. hardcode_into_libs=yes
  13567. dynamic_linker='NetBSD ld.elf_so'
  13568. ;;
  13569. netbsd*)
  13570. version_type=sunos
  13571. need_lib_prefix=no
  13572. need_version=no
  13573. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13574. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13575. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13576. dynamic_linker='NetBSD (a.out) ld.so'
  13577. else
  13578. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13579. soname_spec='${libname}${release}${shared_ext}$major'
  13580. dynamic_linker='NetBSD ld.elf_so'
  13581. fi
  13582. shlibpath_var=LD_LIBRARY_PATH
  13583. shlibpath_overrides_runpath=yes
  13584. hardcode_into_libs=yes
  13585. ;;
  13586. newsos6)
  13587. version_type=linux # correct to gnu/linux during the next big refactor
  13588. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13589. shlibpath_var=LD_LIBRARY_PATH
  13590. shlibpath_overrides_runpath=yes
  13591. ;;
  13592. *nto* | *qnx*)
  13593. version_type=qnx
  13594. need_lib_prefix=no
  13595. need_version=no
  13596. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13597. soname_spec='${libname}${release}${shared_ext}$major'
  13598. shlibpath_var=LD_LIBRARY_PATH
  13599. shlibpath_overrides_runpath=no
  13600. hardcode_into_libs=yes
  13601. dynamic_linker='ldqnx.so'
  13602. ;;
  13603. openbsd*)
  13604. version_type=sunos
  13605. sys_lib_dlsearch_path_spec="/usr/lib"
  13606. need_lib_prefix=no
  13607. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13608. case $host_os in
  13609. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13610. *) need_version=no ;;
  13611. esac
  13612. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13613. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13614. shlibpath_var=LD_LIBRARY_PATH
  13615. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13616. case $host_os in
  13617. openbsd2.[89] | openbsd2.[89].*)
  13618. shlibpath_overrides_runpath=no
  13619. ;;
  13620. *)
  13621. shlibpath_overrides_runpath=yes
  13622. ;;
  13623. esac
  13624. else
  13625. shlibpath_overrides_runpath=yes
  13626. fi
  13627. ;;
  13628. os2*)
  13629. libname_spec='$name'
  13630. shrext_cmds=".dll"
  13631. need_lib_prefix=no
  13632. library_names_spec='$libname${shared_ext} $libname.a'
  13633. dynamic_linker='OS/2 ld.exe'
  13634. shlibpath_var=LIBPATH
  13635. ;;
  13636. osf3* | osf4* | osf5*)
  13637. version_type=osf
  13638. need_lib_prefix=no
  13639. need_version=no
  13640. soname_spec='${libname}${release}${shared_ext}$major'
  13641. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13642. shlibpath_var=LD_LIBRARY_PATH
  13643. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13644. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13645. ;;
  13646. rdos*)
  13647. dynamic_linker=no
  13648. ;;
  13649. solaris*)
  13650. version_type=linux # correct to gnu/linux during the next big refactor
  13651. need_lib_prefix=no
  13652. need_version=no
  13653. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13654. soname_spec='${libname}${release}${shared_ext}$major'
  13655. shlibpath_var=LD_LIBRARY_PATH
  13656. shlibpath_overrides_runpath=yes
  13657. hardcode_into_libs=yes
  13658. # ldd complains unless libraries are executable
  13659. postinstall_cmds='chmod +x $lib'
  13660. ;;
  13661. sunos4*)
  13662. version_type=sunos
  13663. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13664. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13665. shlibpath_var=LD_LIBRARY_PATH
  13666. shlibpath_overrides_runpath=yes
  13667. if test "$with_gnu_ld" = yes; then
  13668. need_lib_prefix=no
  13669. fi
  13670. need_version=yes
  13671. ;;
  13672. sysv4 | sysv4.3*)
  13673. version_type=linux # correct to gnu/linux during the next big refactor
  13674. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13675. soname_spec='${libname}${release}${shared_ext}$major'
  13676. shlibpath_var=LD_LIBRARY_PATH
  13677. case $host_vendor in
  13678. sni)
  13679. shlibpath_overrides_runpath=no
  13680. need_lib_prefix=no
  13681. runpath_var=LD_RUN_PATH
  13682. ;;
  13683. siemens)
  13684. need_lib_prefix=no
  13685. ;;
  13686. motorola)
  13687. need_lib_prefix=no
  13688. need_version=no
  13689. shlibpath_overrides_runpath=no
  13690. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13691. ;;
  13692. esac
  13693. ;;
  13694. sysv4*MP*)
  13695. if test -d /usr/nec ;then
  13696. version_type=linux # correct to gnu/linux during the next big refactor
  13697. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13698. soname_spec='$libname${shared_ext}.$major'
  13699. shlibpath_var=LD_LIBRARY_PATH
  13700. fi
  13701. ;;
  13702. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13703. version_type=freebsd-elf
  13704. need_lib_prefix=no
  13705. need_version=no
  13706. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13707. soname_spec='${libname}${release}${shared_ext}$major'
  13708. shlibpath_var=LD_LIBRARY_PATH
  13709. shlibpath_overrides_runpath=yes
  13710. hardcode_into_libs=yes
  13711. if test "$with_gnu_ld" = yes; then
  13712. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13713. else
  13714. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13715. case $host_os in
  13716. sco3.2v5*)
  13717. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13718. ;;
  13719. esac
  13720. fi
  13721. sys_lib_dlsearch_path_spec='/usr/lib'
  13722. ;;
  13723. tpf*)
  13724. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13725. version_type=linux # correct to gnu/linux during the next big refactor
  13726. need_lib_prefix=no
  13727. need_version=no
  13728. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13729. shlibpath_var=LD_LIBRARY_PATH
  13730. shlibpath_overrides_runpath=no
  13731. hardcode_into_libs=yes
  13732. ;;
  13733. uts4*)
  13734. version_type=linux # correct to gnu/linux during the next big refactor
  13735. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13736. soname_spec='${libname}${release}${shared_ext}$major'
  13737. shlibpath_var=LD_LIBRARY_PATH
  13738. ;;
  13739. *)
  13740. dynamic_linker=no
  13741. ;;
  13742. esac
  13743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13744. $as_echo "$dynamic_linker" >&6; }
  13745. test "$dynamic_linker" = no && can_build_shared=no
  13746. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13747. if test "$GCC" = yes; then
  13748. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13749. fi
  13750. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13751. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13752. fi
  13753. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13754. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13755. fi
  13756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13757. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13758. hardcode_action_CXX=
  13759. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13760. test -n "$runpath_var_CXX" ||
  13761. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13762. # We can hardcode non-existent directories.
  13763. if test "$hardcode_direct_CXX" != no &&
  13764. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13765. # have to relink, otherwise we might link with an installed library
  13766. # when we should be linking with a yet-to-be-installed one
  13767. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13768. test "$hardcode_minus_L_CXX" != no; then
  13769. # Linking always hardcodes the temporary library directory.
  13770. hardcode_action_CXX=relink
  13771. else
  13772. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13773. hardcode_action_CXX=immediate
  13774. fi
  13775. else
  13776. # We cannot hardcode anything, or else we can only hardcode existing
  13777. # directories.
  13778. hardcode_action_CXX=unsupported
  13779. fi
  13780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13781. $as_echo "$hardcode_action_CXX" >&6; }
  13782. if test "$hardcode_action_CXX" = relink ||
  13783. test "$inherit_rpath_CXX" = yes; then
  13784. # Fast installation is not supported
  13785. enable_fast_install=no
  13786. elif test "$shlibpath_overrides_runpath" = yes ||
  13787. test "$enable_shared" = no; then
  13788. # Fast installation is not necessary
  13789. enable_fast_install=needless
  13790. fi
  13791. fi # test -n "$compiler"
  13792. CC=$lt_save_CC
  13793. CFLAGS=$lt_save_CFLAGS
  13794. LDCXX=$LD
  13795. LD=$lt_save_LD
  13796. GCC=$lt_save_GCC
  13797. with_gnu_ld=$lt_save_with_gnu_ld
  13798. lt_cv_path_LDCXX=$lt_cv_path_LD
  13799. lt_cv_path_LD=$lt_save_path_LD
  13800. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13801. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13802. fi # test "$_lt_caught_CXX_error" != yes
  13803. ac_ext=c
  13804. ac_cpp='$CPP $CPPFLAGS'
  13805. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13806. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13807. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13808. ac_config_commands="$ac_config_commands libtool"
  13809. # Only expand once:
  13810. ac_config_headers="$ac_config_headers config.h"
  13811. # Checks for programs.
  13812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  13813. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  13814. if ${ac_cv_c_bigendian+:} false; then :
  13815. $as_echo_n "(cached) " >&6
  13816. else
  13817. ac_cv_c_bigendian=unknown
  13818. # See if we're dealing with a universal compiler.
  13819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13820. /* end confdefs.h. */
  13821. #ifndef __APPLE_CC__
  13822. not a universal capable compiler
  13823. #endif
  13824. typedef int dummy;
  13825. _ACEOF
  13826. if ac_fn_c_try_compile "$LINENO"; then :
  13827. # Check for potential -arch flags. It is not universal unless
  13828. # there are at least two -arch flags with different values.
  13829. ac_arch=
  13830. ac_prev=
  13831. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  13832. if test -n "$ac_prev"; then
  13833. case $ac_word in
  13834. i?86 | x86_64 | ppc | ppc64)
  13835. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  13836. ac_arch=$ac_word
  13837. else
  13838. ac_cv_c_bigendian=universal
  13839. break
  13840. fi
  13841. ;;
  13842. esac
  13843. ac_prev=
  13844. elif test "x$ac_word" = "x-arch"; then
  13845. ac_prev=arch
  13846. fi
  13847. done
  13848. fi
  13849. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13850. if test $ac_cv_c_bigendian = unknown; then
  13851. # See if sys/param.h defines the BYTE_ORDER macro.
  13852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13853. /* end confdefs.h. */
  13854. #include <sys/types.h>
  13855. #include <sys/param.h>
  13856. int
  13857. main ()
  13858. {
  13859. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  13860. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  13861. && LITTLE_ENDIAN)
  13862. bogus endian macros
  13863. #endif
  13864. ;
  13865. return 0;
  13866. }
  13867. _ACEOF
  13868. if ac_fn_c_try_compile "$LINENO"; then :
  13869. # It does; now see whether it defined to BIG_ENDIAN or not.
  13870. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13871. /* end confdefs.h. */
  13872. #include <sys/types.h>
  13873. #include <sys/param.h>
  13874. int
  13875. main ()
  13876. {
  13877. #if BYTE_ORDER != BIG_ENDIAN
  13878. not big endian
  13879. #endif
  13880. ;
  13881. return 0;
  13882. }
  13883. _ACEOF
  13884. if ac_fn_c_try_compile "$LINENO"; then :
  13885. ac_cv_c_bigendian=yes
  13886. else
  13887. ac_cv_c_bigendian=no
  13888. fi
  13889. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13890. fi
  13891. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13892. fi
  13893. if test $ac_cv_c_bigendian = unknown; then
  13894. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  13895. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13896. /* end confdefs.h. */
  13897. #include <limits.h>
  13898. int
  13899. main ()
  13900. {
  13901. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  13902. bogus endian macros
  13903. #endif
  13904. ;
  13905. return 0;
  13906. }
  13907. _ACEOF
  13908. if ac_fn_c_try_compile "$LINENO"; then :
  13909. # It does; now see whether it defined to _BIG_ENDIAN or not.
  13910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13911. /* end confdefs.h. */
  13912. #include <limits.h>
  13913. int
  13914. main ()
  13915. {
  13916. #ifndef _BIG_ENDIAN
  13917. not big endian
  13918. #endif
  13919. ;
  13920. return 0;
  13921. }
  13922. _ACEOF
  13923. if ac_fn_c_try_compile "$LINENO"; then :
  13924. ac_cv_c_bigendian=yes
  13925. else
  13926. ac_cv_c_bigendian=no
  13927. fi
  13928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13929. fi
  13930. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13931. fi
  13932. if test $ac_cv_c_bigendian = unknown; then
  13933. # Compile a test program.
  13934. if test "$cross_compiling" = yes; then :
  13935. # Try to guess by grepping values from an object file.
  13936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13937. /* end confdefs.h. */
  13938. short int ascii_mm[] =
  13939. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  13940. short int ascii_ii[] =
  13941. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  13942. int use_ascii (int i) {
  13943. return ascii_mm[i] + ascii_ii[i];
  13944. }
  13945. short int ebcdic_ii[] =
  13946. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  13947. short int ebcdic_mm[] =
  13948. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  13949. int use_ebcdic (int i) {
  13950. return ebcdic_mm[i] + ebcdic_ii[i];
  13951. }
  13952. extern int foo;
  13953. int
  13954. main ()
  13955. {
  13956. return use_ascii (foo) == use_ebcdic (foo);
  13957. ;
  13958. return 0;
  13959. }
  13960. _ACEOF
  13961. if ac_fn_c_try_compile "$LINENO"; then :
  13962. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  13963. ac_cv_c_bigendian=yes
  13964. fi
  13965. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  13966. if test "$ac_cv_c_bigendian" = unknown; then
  13967. ac_cv_c_bigendian=no
  13968. else
  13969. # finding both strings is unlikely to happen, but who knows?
  13970. ac_cv_c_bigendian=unknown
  13971. fi
  13972. fi
  13973. fi
  13974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13975. else
  13976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13977. /* end confdefs.h. */
  13978. $ac_includes_default
  13979. int
  13980. main ()
  13981. {
  13982. /* Are we little or big endian? From Harbison&Steele. */
  13983. union
  13984. {
  13985. long int l;
  13986. char c[sizeof (long int)];
  13987. } u;
  13988. u.l = 1;
  13989. return u.c[sizeof (long int) - 1] == 1;
  13990. ;
  13991. return 0;
  13992. }
  13993. _ACEOF
  13994. if ac_fn_c_try_run "$LINENO"; then :
  13995. ac_cv_c_bigendian=no
  13996. else
  13997. ac_cv_c_bigendian=yes
  13998. fi
  13999. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14000. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14001. fi
  14002. fi
  14003. fi
  14004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  14005. $as_echo "$ac_cv_c_bigendian" >&6; }
  14006. case $ac_cv_c_bigendian in #(
  14007. yes)
  14008. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  14009. ;; #(
  14010. no)
  14011. ;; #(
  14012. universal)
  14013. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  14014. ;; #(
  14015. *)
  14016. as_fn_error $? "unknown endianness
  14017. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  14018. esac
  14019. if test x$cross_compiling = xyes; then
  14020. CROSS_COMPILING_TRUE=
  14021. CROSS_COMPILING_FALSE='#'
  14022. else
  14023. CROSS_COMPILING_TRUE='#'
  14024. CROSS_COMPILING_FALSE=
  14025. fi
  14026. # Building documentation requires doxygen, pdflatex, and makeindex.
  14027. for ac_prog in doxygen
  14028. do
  14029. # Extract the first word of "$ac_prog", so it can be a program name with args.
  14030. set dummy $ac_prog; ac_word=$2
  14031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14032. $as_echo_n "checking for $ac_word... " >&6; }
  14033. if ${ac_cv_prog_DOXYGEN+:} false; then :
  14034. $as_echo_n "(cached) " >&6
  14035. else
  14036. if test -n "$DOXYGEN"; then
  14037. ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
  14038. else
  14039. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14040. for as_dir in $PATH
  14041. do
  14042. IFS=$as_save_IFS
  14043. test -z "$as_dir" && as_dir=.
  14044. for ac_exec_ext in '' $ac_executable_extensions; do
  14045. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14046. ac_cv_prog_DOXYGEN="$ac_prog"
  14047. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14048. break 2
  14049. fi
  14050. done
  14051. done
  14052. IFS=$as_save_IFS
  14053. fi
  14054. fi
  14055. DOXYGEN=$ac_cv_prog_DOXYGEN
  14056. if test -n "$DOXYGEN"; then
  14057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
  14058. $as_echo "$DOXYGEN" >&6; }
  14059. else
  14060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14061. $as_echo "no" >&6; }
  14062. fi
  14063. test -n "$DOXYGEN" && break
  14064. done
  14065. if test -z "$DOXYGEN"; then
  14066. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Doxygen not found - continuing without Doxygen support" >&5
  14067. $as_echo "$as_me: WARNING: Doxygen not found - continuing without Doxygen support" >&2;}
  14068. fi
  14069. if test -n "$DOXYGEN"; then
  14070. HAVE_DOXYGEN_TRUE=
  14071. HAVE_DOXYGEN_FALSE='#'
  14072. else
  14073. HAVE_DOXYGEN_TRUE='#'
  14074. HAVE_DOXYGEN_FALSE=
  14075. fi
  14076. if test -z "$HAVE_DOXYGEN_TRUE"; then :
  14077. ac_config_files="$ac_config_files Doxyfile"
  14078. fi
  14079. for ac_prog in pdflatex
  14080. do
  14081. # Extract the first word of "$ac_prog", so it can be a program name with args.
  14082. set dummy $ac_prog; ac_word=$2
  14083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14084. $as_echo_n "checking for $ac_word... " >&6; }
  14085. if ${ac_cv_prog_PDFLATEX+:} false; then :
  14086. $as_echo_n "(cached) " >&6
  14087. else
  14088. if test -n "$PDFLATEX"; then
  14089. ac_cv_prog_PDFLATEX="$PDFLATEX" # Let the user override the test.
  14090. else
  14091. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14092. for as_dir in $PATH
  14093. do
  14094. IFS=$as_save_IFS
  14095. test -z "$as_dir" && as_dir=.
  14096. for ac_exec_ext in '' $ac_executable_extensions; do
  14097. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14098. ac_cv_prog_PDFLATEX="$ac_prog"
  14099. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14100. break 2
  14101. fi
  14102. done
  14103. done
  14104. IFS=$as_save_IFS
  14105. fi
  14106. fi
  14107. PDFLATEX=$ac_cv_prog_PDFLATEX
  14108. if test -n "$PDFLATEX"; then
  14109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
  14110. $as_echo "$PDFLATEX" >&6; }
  14111. else
  14112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14113. $as_echo "no" >&6; }
  14114. fi
  14115. test -n "$PDFLATEX" && break
  14116. done
  14117. if test -z "$PDFLATEX"; then
  14118. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - unable to compile manual to PDF" >&5
  14119. $as_echo "$as_me: WARNING: pdflatex not found - unable to compile manual to PDF" >&2;}
  14120. fi
  14121. for ac_prog in makeindex
  14122. do
  14123. # Extract the first word of "$ac_prog", so it can be a program name with args.
  14124. set dummy $ac_prog; ac_word=$2
  14125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14126. $as_echo_n "checking for $ac_word... " >&6; }
  14127. if ${ac_cv_prog_MAKEINDEX+:} false; then :
  14128. $as_echo_n "(cached) " >&6
  14129. else
  14130. if test -n "$MAKEINDEX"; then
  14131. ac_cv_prog_MAKEINDEX="$MAKEINDEX" # Let the user override the test.
  14132. else
  14133. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14134. for as_dir in $PATH
  14135. do
  14136. IFS=$as_save_IFS
  14137. test -z "$as_dir" && as_dir=.
  14138. for ac_exec_ext in '' $ac_executable_extensions; do
  14139. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14140. ac_cv_prog_MAKEINDEX="$ac_prog"
  14141. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14142. break 2
  14143. fi
  14144. done
  14145. done
  14146. IFS=$as_save_IFS
  14147. fi
  14148. fi
  14149. MAKEINDEX=$ac_cv_prog_MAKEINDEX
  14150. if test -n "$MAKEINDEX"; then
  14151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINDEX" >&5
  14152. $as_echo "$MAKEINDEX" >&6; }
  14153. else
  14154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14155. $as_echo "no" >&6; }
  14156. fi
  14157. test -n "$MAKEINDEX" && break
  14158. done
  14159. if test -z "$MAKEINDEX"; then
  14160. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - unable to compile manual to PDF" >&5
  14161. $as_echo "$as_me: WARNING: makeindex not found - unable to compile manual to PDF" >&2;}
  14162. fi
  14163. if test -n "$PDFLATEX" && test -n "$MAKEINDEX"; then
  14164. HAVE_PDFLATEX_TRUE=
  14165. HAVE_PDFLATEX_FALSE='#'
  14166. else
  14167. HAVE_PDFLATEX_TRUE='#'
  14168. HAVE_PDFLATEX_FALSE=
  14169. fi
  14170. if test -z "$HAVE_PDFLATEX_TRUE"; then :
  14171. ac_config_files="$ac_config_files doc/cudd.tex"
  14172. fi
  14173. # Checks for libraries.
  14174. #AC_CHECK_LIB([m],[pow])
  14175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
  14176. $as_echo_n "checking for library containing pow... " >&6; }
  14177. if ${ac_cv_search_pow+:} false; then :
  14178. $as_echo_n "(cached) " >&6
  14179. else
  14180. ac_func_search_save_LIBS=$LIBS
  14181. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14182. /* end confdefs.h. */
  14183. /* Override any GCC internal prototype to avoid an error.
  14184. Use char because int might match the return type of a GCC
  14185. builtin and then its argument prototype would still apply. */
  14186. #ifdef __cplusplus
  14187. extern "C"
  14188. #endif
  14189. char pow ();
  14190. int
  14191. main ()
  14192. {
  14193. return pow ();
  14194. ;
  14195. return 0;
  14196. }
  14197. _ACEOF
  14198. for ac_lib in '' m; do
  14199. if test -z "$ac_lib"; then
  14200. ac_res="none required"
  14201. else
  14202. ac_res=-l$ac_lib
  14203. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14204. fi
  14205. if ac_fn_c_try_link "$LINENO"; then :
  14206. ac_cv_search_pow=$ac_res
  14207. fi
  14208. rm -f core conftest.err conftest.$ac_objext \
  14209. conftest$ac_exeext
  14210. if ${ac_cv_search_pow+:} false; then :
  14211. break
  14212. fi
  14213. done
  14214. if ${ac_cv_search_pow+:} false; then :
  14215. else
  14216. ac_cv_search_pow=no
  14217. fi
  14218. rm conftest.$ac_ext
  14219. LIBS=$ac_func_search_save_LIBS
  14220. fi
  14221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
  14222. $as_echo "$ac_cv_search_pow" >&6; }
  14223. ac_res=$ac_cv_search_pow
  14224. if test "$ac_res" != no; then :
  14225. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14226. fi
  14227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  14228. $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  14229. if ${ac_cv_lib_pthread_pthread_create+:} false; then :
  14230. $as_echo_n "(cached) " >&6
  14231. else
  14232. ac_check_lib_save_LIBS=$LIBS
  14233. LIBS="-lpthread $LIBS"
  14234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14235. /* end confdefs.h. */
  14236. /* Override any GCC internal prototype to avoid an error.
  14237. Use char because int might match the return type of a GCC
  14238. builtin and then its argument prototype would still apply. */
  14239. #ifdef __cplusplus
  14240. extern "C"
  14241. #endif
  14242. char pthread_create ();
  14243. int
  14244. main ()
  14245. {
  14246. return pthread_create ();
  14247. ;
  14248. return 0;
  14249. }
  14250. _ACEOF
  14251. if ac_fn_c_try_link "$LINENO"; then :
  14252. ac_cv_lib_pthread_pthread_create=yes
  14253. else
  14254. ac_cv_lib_pthread_pthread_create=no
  14255. fi
  14256. rm -f core conftest.err conftest.$ac_objext \
  14257. conftest$ac_exeext conftest.$ac_ext
  14258. LIBS=$ac_check_lib_save_LIBS
  14259. fi
  14260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
  14261. $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  14262. if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
  14263. have_pthreads=yes
  14264. else
  14265. have_pthreads=no
  14266. fi
  14267. if test x$have_pthreads = xyes; then
  14268. HAVE_PTHREADS_TRUE=
  14269. HAVE_PTHREADS_FALSE='#'
  14270. else
  14271. HAVE_PTHREADS_TRUE='#'
  14272. HAVE_PTHREADS_FALSE=
  14273. fi
  14274. # Check for Windows API functions.
  14275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing WSAStartup" >&5
  14276. $as_echo_n "checking for library containing WSAStartup... " >&6; }
  14277. if ${ac_cv_search_WSAStartup+:} false; then :
  14278. $as_echo_n "(cached) " >&6
  14279. else
  14280. ac_func_search_save_LIBS=$LIBS
  14281. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14282. /* end confdefs.h. */
  14283. /* Override any GCC internal prototype to avoid an error.
  14284. Use char because int might match the return type of a GCC
  14285. builtin and then its argument prototype would still apply. */
  14286. #ifdef __cplusplus
  14287. extern "C"
  14288. #endif
  14289. char WSAStartup ();
  14290. int
  14291. main ()
  14292. {
  14293. return WSAStartup ();
  14294. ;
  14295. return 0;
  14296. }
  14297. _ACEOF
  14298. for ac_lib in '' ws2_32; do
  14299. if test -z "$ac_lib"; then
  14300. ac_res="none required"
  14301. else
  14302. ac_res=-l$ac_lib
  14303. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14304. fi
  14305. if ac_fn_c_try_link "$LINENO"; then :
  14306. ac_cv_search_WSAStartup=$ac_res
  14307. fi
  14308. rm -f core conftest.err conftest.$ac_objext \
  14309. conftest$ac_exeext
  14310. if ${ac_cv_search_WSAStartup+:} false; then :
  14311. break
  14312. fi
  14313. done
  14314. if ${ac_cv_search_WSAStartup+:} false; then :
  14315. else
  14316. ac_cv_search_WSAStartup=no
  14317. fi
  14318. rm conftest.$ac_ext
  14319. LIBS=$ac_func_search_save_LIBS
  14320. fi
  14321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_WSAStartup" >&5
  14322. $as_echo "$ac_cv_search_WSAStartup" >&6; }
  14323. ac_res=$ac_cv_search_WSAStartup
  14324. if test "$ac_res" != no; then :
  14325. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14326. fi
  14327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GetProcessMemoryInfo" >&5
  14328. $as_echo_n "checking for library containing GetProcessMemoryInfo... " >&6; }
  14329. if ${ac_cv_search_GetProcessMemoryInfo+:} false; then :
  14330. $as_echo_n "(cached) " >&6
  14331. else
  14332. ac_func_search_save_LIBS=$LIBS
  14333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14334. /* end confdefs.h. */
  14335. /* Override any GCC internal prototype to avoid an error.
  14336. Use char because int might match the return type of a GCC
  14337. builtin and then its argument prototype would still apply. */
  14338. #ifdef __cplusplus
  14339. extern "C"
  14340. #endif
  14341. char GetProcessMemoryInfo ();
  14342. int
  14343. main ()
  14344. {
  14345. return GetProcessMemoryInfo ();
  14346. ;
  14347. return 0;
  14348. }
  14349. _ACEOF
  14350. for ac_lib in '' psapi; do
  14351. if test -z "$ac_lib"; then
  14352. ac_res="none required"
  14353. else
  14354. ac_res=-l$ac_lib
  14355. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14356. fi
  14357. if ac_fn_c_try_link "$LINENO"; then :
  14358. ac_cv_search_GetProcessMemoryInfo=$ac_res
  14359. fi
  14360. rm -f core conftest.err conftest.$ac_objext \
  14361. conftest$ac_exeext
  14362. if ${ac_cv_search_GetProcessMemoryInfo+:} false; then :
  14363. break
  14364. fi
  14365. done
  14366. if ${ac_cv_search_GetProcessMemoryInfo+:} false; then :
  14367. else
  14368. ac_cv_search_GetProcessMemoryInfo=no
  14369. fi
  14370. rm conftest.$ac_ext
  14371. LIBS=$ac_func_search_save_LIBS
  14372. fi
  14373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GetProcessMemoryInfo" >&5
  14374. $as_echo "$ac_cv_search_GetProcessMemoryInfo" >&6; }
  14375. ac_res=$ac_cv_search_GetProcessMemoryInfo
  14376. if test "$ac_res" != no; then :
  14377. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14378. fi
  14379. # Checks for header files.
  14380. # First check for mandatory headers...
  14381. for ac_header in float.h inttypes.h limits.h stddef.h stdlib.h string.h assert.h math.h
  14382. do :
  14383. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14384. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14385. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14386. cat >>confdefs.h <<_ACEOF
  14387. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14388. _ACEOF
  14389. else
  14390. have_mandatory_headers=no
  14391. fi
  14392. done
  14393. if test "x${have_mandatory_headers}" = xno; then
  14394. as_fn_error $? "One or more mandatory headers missing. Check 'config.log'." "$LINENO" 5
  14395. fi
  14396. # ...then check for optional C headers.
  14397. for ac_header in unistd.h sys/time.h sys/times.h sys/resource.h sys/wait.h
  14398. do :
  14399. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14400. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14401. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14402. cat >>confdefs.h <<_ACEOF
  14403. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14404. _ACEOF
  14405. fi
  14406. done
  14407. # Finally, check C++ optional headers.
  14408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working C++ thread header" >&5
  14409. $as_echo_n "checking for working C++ thread header... " >&6; }
  14410. ac_ext=cpp
  14411. ac_cpp='$CXXCPP $CPPFLAGS'
  14412. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14413. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14414. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14416. /* end confdefs.h. */
  14417. #include <thread>
  14418. int
  14419. main ()
  14420. {
  14421. std::thread([] {}).join()
  14422. ;
  14423. return 0;
  14424. }
  14425. _ACEOF
  14426. if ac_fn_cxx_try_compile "$LINENO"; then :
  14427. have_working_thread=yes
  14428. else
  14429. have_working_thread=no
  14430. fi
  14431. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14432. ac_ext=c
  14433. ac_cpp='$CPP $CPPFLAGS'
  14434. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14435. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14436. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14437. if test x$have_working_thread = xyes ; then
  14438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14439. $as_echo "yes" >&6; }
  14440. $as_echo "#define HAVE_WORKING_THREAD 1" >>confdefs.h
  14441. else
  14442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14443. $as_echo "no" >&6; }
  14444. fi
  14445. # Checks for typedefs, structures, and compiler characteristics.
  14446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
  14447. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  14448. if ${ac_cv_header_stdbool_h+:} false; then :
  14449. $as_echo_n "(cached) " >&6
  14450. else
  14451. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14452. /* end confdefs.h. */
  14453. #include <stdbool.h>
  14454. #ifndef bool
  14455. "error: bool is not defined"
  14456. #endif
  14457. #ifndef false
  14458. "error: false is not defined"
  14459. #endif
  14460. #if false
  14461. "error: false is not 0"
  14462. #endif
  14463. #ifndef true
  14464. "error: true is not defined"
  14465. #endif
  14466. #if true != 1
  14467. "error: true is not 1"
  14468. #endif
  14469. #ifndef __bool_true_false_are_defined
  14470. "error: __bool_true_false_are_defined is not defined"
  14471. #endif
  14472. struct s { _Bool s: 1; _Bool t; } s;
  14473. char a[true == 1 ? 1 : -1];
  14474. char b[false == 0 ? 1 : -1];
  14475. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  14476. char d[(bool) 0.5 == true ? 1 : -1];
  14477. /* See body of main program for 'e'. */
  14478. char f[(_Bool) 0.0 == false ? 1 : -1];
  14479. char g[true];
  14480. char h[sizeof (_Bool)];
  14481. char i[sizeof s.t];
  14482. enum { j = false, k = true, l = false * true, m = true * 256 };
  14483. /* The following fails for
  14484. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  14485. _Bool n[m];
  14486. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  14487. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  14488. /* Catch a bug in an HP-UX C compiler. See
  14489. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  14490. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  14491. */
  14492. _Bool q = true;
  14493. _Bool *pq = &q;
  14494. int
  14495. main ()
  14496. {
  14497. bool e = &s;
  14498. *pq |= q;
  14499. *pq |= ! q;
  14500. /* Refer to every declared value, to avoid compiler optimizations. */
  14501. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  14502. + !m + !n + !o + !p + !q + !pq);
  14503. ;
  14504. return 0;
  14505. }
  14506. _ACEOF
  14507. if ac_fn_c_try_compile "$LINENO"; then :
  14508. ac_cv_header_stdbool_h=yes
  14509. else
  14510. ac_cv_header_stdbool_h=no
  14511. fi
  14512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14513. fi
  14514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
  14515. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  14516. ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
  14517. if test "x$ac_cv_type__Bool" = xyes; then :
  14518. cat >>confdefs.h <<_ACEOF
  14519. #define HAVE__BOOL 1
  14520. _ACEOF
  14521. fi
  14522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  14523. $as_echo_n "checking for inline... " >&6; }
  14524. if ${ac_cv_c_inline+:} false; then :
  14525. $as_echo_n "(cached) " >&6
  14526. else
  14527. ac_cv_c_inline=no
  14528. for ac_kw in inline __inline__ __inline; do
  14529. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14530. /* end confdefs.h. */
  14531. #ifndef __cplusplus
  14532. typedef int foo_t;
  14533. static $ac_kw foo_t static_foo () {return 0; }
  14534. $ac_kw foo_t foo () {return 0; }
  14535. #endif
  14536. _ACEOF
  14537. if ac_fn_c_try_compile "$LINENO"; then :
  14538. ac_cv_c_inline=$ac_kw
  14539. fi
  14540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14541. test "$ac_cv_c_inline" != no && break
  14542. done
  14543. fi
  14544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  14545. $as_echo "$ac_cv_c_inline" >&6; }
  14546. case $ac_cv_c_inline in
  14547. inline | yes) ;;
  14548. *)
  14549. case $ac_cv_c_inline in
  14550. no) ac_val=;;
  14551. *) ac_val=$ac_cv_c_inline;;
  14552. esac
  14553. cat >>confdefs.h <<_ACEOF
  14554. #ifndef __cplusplus
  14555. #define inline $ac_val
  14556. #endif
  14557. _ACEOF
  14558. ;;
  14559. esac
  14560. ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
  14561. if test "x$ac_cv_type_size_t" = xyes; then :
  14562. else
  14563. cat >>confdefs.h <<_ACEOF
  14564. #define size_t unsigned int
  14565. _ACEOF
  14566. fi
  14567. ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
  14568. case $ac_cv_c_uint16_t in #(
  14569. no|yes) ;; #(
  14570. *)
  14571. cat >>confdefs.h <<_ACEOF
  14572. #define uint16_t $ac_cv_c_uint16_t
  14573. _ACEOF
  14574. ;;
  14575. esac
  14576. ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
  14577. case $ac_cv_c_uint32_t in #(
  14578. no|yes) ;; #(
  14579. *)
  14580. $as_echo "#define _UINT32_T 1" >>confdefs.h
  14581. cat >>confdefs.h <<_ACEOF
  14582. #define uint32_t $ac_cv_c_uint32_t
  14583. _ACEOF
  14584. ;;
  14585. esac
  14586. ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
  14587. if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
  14588. cat >>confdefs.h <<_ACEOF
  14589. #define HAVE_PTRDIFF_T 1
  14590. _ACEOF
  14591. fi
  14592. # The cast to long int works around a bug in the HP C Compiler
  14593. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14594. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14595. # This bug is HP SR number 8606223364.
  14596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  14597. $as_echo_n "checking size of int... " >&6; }
  14598. if ${ac_cv_sizeof_int+:} false; then :
  14599. $as_echo_n "(cached) " >&6
  14600. else
  14601. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  14602. else
  14603. if test "$ac_cv_type_int" = yes; then
  14604. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14605. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14606. as_fn_error 77 "cannot compute sizeof (int)
  14607. See \`config.log' for more details" "$LINENO" 5; }
  14608. else
  14609. ac_cv_sizeof_int=0
  14610. fi
  14611. fi
  14612. fi
  14613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  14614. $as_echo "$ac_cv_sizeof_int" >&6; }
  14615. cat >>confdefs.h <<_ACEOF
  14616. #define SIZEOF_INT $ac_cv_sizeof_int
  14617. _ACEOF
  14618. # The cast to long int works around a bug in the HP C Compiler
  14619. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14620. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14621. # This bug is HP SR number 8606223364.
  14622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  14623. $as_echo_n "checking size of long... " >&6; }
  14624. if ${ac_cv_sizeof_long+:} false; then :
  14625. $as_echo_n "(cached) " >&6
  14626. else
  14627. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  14628. else
  14629. if test "$ac_cv_type_long" = yes; then
  14630. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14631. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14632. as_fn_error 77 "cannot compute sizeof (long)
  14633. See \`config.log' for more details" "$LINENO" 5; }
  14634. else
  14635. ac_cv_sizeof_long=0
  14636. fi
  14637. fi
  14638. fi
  14639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  14640. $as_echo "$ac_cv_sizeof_long" >&6; }
  14641. cat >>confdefs.h <<_ACEOF
  14642. #define SIZEOF_LONG $ac_cv_sizeof_long
  14643. _ACEOF
  14644. # The cast to long int works around a bug in the HP C Compiler
  14645. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14646. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14647. # This bug is HP SR number 8606223364.
  14648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  14649. $as_echo_n "checking size of void *... " >&6; }
  14650. if ${ac_cv_sizeof_void_p+:} false; then :
  14651. $as_echo_n "(cached) " >&6
  14652. else
  14653. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  14654. else
  14655. if test "$ac_cv_type_void_p" = yes; then
  14656. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14657. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14658. as_fn_error 77 "cannot compute sizeof (void *)
  14659. See \`config.log' for more details" "$LINENO" 5; }
  14660. else
  14661. ac_cv_sizeof_void_p=0
  14662. fi
  14663. fi
  14664. fi
  14665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  14666. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  14667. cat >>confdefs.h <<_ACEOF
  14668. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  14669. _ACEOF
  14670. # The cast to long int works around a bug in the HP C Compiler
  14671. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14672. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14673. # This bug is HP SR number 8606223364.
  14674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
  14675. $as_echo_n "checking size of long double... " >&6; }
  14676. if ${ac_cv_sizeof_long_double+:} false; then :
  14677. $as_echo_n "(cached) " >&6
  14678. else
  14679. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
  14680. else
  14681. if test "$ac_cv_type_long_double" = yes; then
  14682. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14683. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14684. as_fn_error 77 "cannot compute sizeof (long double)
  14685. See \`config.log' for more details" "$LINENO" 5; }
  14686. else
  14687. ac_cv_sizeof_long_double=0
  14688. fi
  14689. fi
  14690. fi
  14691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
  14692. $as_echo "$ac_cv_sizeof_long_double" >&6; }
  14693. cat >>confdefs.h <<_ACEOF
  14694. #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
  14695. _ACEOF
  14696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are building for a Win32 host" >&5
  14697. $as_echo_n "checking whether we are building for a Win32 host... " >&6; }
  14698. if ${mingw_cv_win32_host+:} false; then :
  14699. $as_echo_n "(cached) " >&6
  14700. else
  14701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14702. /* end confdefs.h. */
  14703. #ifdef _WIN32
  14704. choke me
  14705. #endif
  14706. _ACEOF
  14707. if ac_fn_c_try_compile "$LINENO"; then :
  14708. mingw_cv_win32_host=no
  14709. else
  14710. mingw_cv_win32_host=yes
  14711. fi
  14712. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14713. fi
  14714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mingw_cv_win32_host" >&5
  14715. $as_echo "$mingw_cv_win32_host" >&6; }
  14716. if test x$mingw_cv_win32_host = xyes; then
  14717. MINGW64_TRUE=
  14718. MINGW64_FALSE='#'
  14719. else
  14720. MINGW64_TRUE='#'
  14721. MINGW64_FALSE=
  14722. fi
  14723. if test x$mingw_cv_win32_host = xyes ; then
  14724. $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
  14725. fi
  14726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether enough of C++11 is supported" >&5
  14727. $as_echo_n "checking whether enough of C++11 is supported... " >&6; }
  14728. if ${ac_cv_have_modern_cxx+:} false; then :
  14729. $as_echo_n "(cached) " >&6
  14730. else
  14731. ac_ext=cpp
  14732. ac_cpp='$CXXCPP $CPPFLAGS'
  14733. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14734. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14735. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14737. /* end confdefs.h. */
  14738. class Myclass { explicit operator bool() const { return true; } };
  14739. int main() {
  14740. void *p = nullptr;
  14741. }
  14742. _ACEOF
  14743. if ac_fn_cxx_try_compile "$LINENO"; then :
  14744. ac_cv_have_modern_cxx=yes
  14745. else
  14746. ac_cv_have_modern_cxx=no
  14747. fi
  14748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14749. ac_ext=c
  14750. ac_cpp='$CPP $CPPFLAGS'
  14751. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14752. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14753. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14754. fi
  14755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_modern_cxx" >&5
  14756. $as_echo "$ac_cv_have_modern_cxx" >&6; }
  14757. if test x$ac_cv_have_modern_cxx = xyes ; then
  14758. $as_echo "#define HAVE_MODERN_CXX 1" >>confdefs.h
  14759. fi
  14760. # Checks for library functions.
  14761. # First the mandatory functions...
  14762. for ac_func in pow sqrt strchr strstr
  14763. do :
  14764. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14765. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14766. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14767. cat >>confdefs.h <<_ACEOF
  14768. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14769. _ACEOF
  14770. else
  14771. have_mandatory_functions=no
  14772. fi
  14773. done
  14774. if test "x${have_mandatory_functions}" = xno; then
  14775. as_fn_error $? "One or more mandatory functions missing. Check 'config.log'." "$LINENO" 5
  14776. fi
  14777. # ...then check for optional functions.
  14778. for ac_func in powl gethostname getrlimit getrusage sysconf
  14779. do :
  14780. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14781. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14782. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14783. cat >>confdefs.h <<_ACEOF
  14784. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14785. _ACEOF
  14786. fi
  14787. done
  14788. # Check for a working implementation of IEEE 754 floating point
  14789. # Specifically, check for correct treatment of +Infinity
  14790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for +Infinity (IEEE 754 floating point)" >&5
  14791. $as_echo_n "checking for +Infinity (IEEE 754 floating point)... " >&6; }
  14792. if ${ac_cv_have_ieee_754+:} false; then :
  14793. $as_echo_n "(cached) " >&6
  14794. else
  14795. if test "$cross_compiling" = yes; then :
  14796. ac_cv_have_ieee_754=maybe
  14797. else
  14798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14799. /* end confdefs.h. */
  14800. #include <math.h>
  14801. main(void)
  14802. {
  14803. if (HUGE_VAL != HUGE_VAL * 3 || HUGE_VAL != HUGE_VAL / 3) return 1;
  14804. return 0;
  14805. }
  14806. _ACEOF
  14807. if ac_fn_c_try_run "$LINENO"; then :
  14808. ac_cv_have_ieee_754=yes
  14809. else
  14810. ac_cv_have_ieee_754=no
  14811. fi
  14812. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14813. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14814. fi
  14815. fi
  14816. if test x$ac_cv_have_ieee_754 = xmaybe ; then
  14817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14818. /* end confdefs.h. */
  14819. #include <math.h>
  14820. int
  14821. main ()
  14822. {
  14823. double x = INFINITY
  14824. ;
  14825. return 0;
  14826. }
  14827. _ACEOF
  14828. if ac_fn_c_try_compile "$LINENO"; then :
  14829. ac_cv_have_ieee_754=yes
  14830. else
  14831. ac_cv_have_ieee_754=no
  14832. fi
  14833. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14834. fi
  14835. if test x$ac_cv_have_ieee_754 = xyes ; then
  14836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14837. $as_echo "yes" >&6; }
  14838. $as_echo "#define HAVE_IEEE_754 1" >>confdefs.h
  14839. else
  14840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14841. $as_echo "no" >&6; }
  14842. fi
  14843. ac_config_files="$ac_config_files Makefile"
  14844. ac_config_files="$ac_config_files dddmp/exp/test1.sh"
  14845. ac_config_files="$ac_config_files dddmp/exp/test2.sh"
  14846. ac_config_files="$ac_config_files dddmp/exp/test3.sh"
  14847. ac_config_files="$ac_config_files dddmp/exp/test4.sh"
  14848. ac_config_files="$ac_config_files dddmp/exp/test5.sh"
  14849. ac_config_files="$ac_config_files dddmp/exp/test6.sh"
  14850. ac_config_files="$ac_config_files dddmp/exp/test7.sh"
  14851. cat >confcache <<\_ACEOF
  14852. # This file is a shell script that caches the results of configure
  14853. # tests run on this system so they can be shared between configure
  14854. # scripts and configure runs, see configure's option --config-cache.
  14855. # It is not useful on other systems. If it contains results you don't
  14856. # want to keep, you may remove or edit it.
  14857. #
  14858. # config.status only pays attention to the cache file if you give it
  14859. # the --recheck option to rerun configure.
  14860. #
  14861. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14862. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14863. # following values.
  14864. _ACEOF
  14865. # The following way of writing the cache mishandles newlines in values,
  14866. # but we know of no workaround that is simple, portable, and efficient.
  14867. # So, we kill variables containing newlines.
  14868. # Ultrix sh set writes to stderr and can't be redirected directly,
  14869. # and sets the high bit in the cache file unless we assign to the vars.
  14870. (
  14871. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14872. eval ac_val=\$$ac_var
  14873. case $ac_val in #(
  14874. *${as_nl}*)
  14875. case $ac_var in #(
  14876. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14877. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14878. esac
  14879. case $ac_var in #(
  14880. _ | IFS | as_nl) ;; #(
  14881. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14882. *) { eval $ac_var=; unset $ac_var;} ;;
  14883. esac ;;
  14884. esac
  14885. done
  14886. (set) 2>&1 |
  14887. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14888. *${as_nl}ac_space=\ *)
  14889. # `set' does not quote correctly, so add quotes: double-quote
  14890. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14891. sed -n \
  14892. "s/'/'\\\\''/g;
  14893. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14894. ;; #(
  14895. *)
  14896. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14897. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14898. ;;
  14899. esac |
  14900. sort
  14901. ) |
  14902. sed '
  14903. /^ac_cv_env_/b end
  14904. t clear
  14905. :clear
  14906. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14907. t end
  14908. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14909. :end' >>confcache
  14910. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14911. if test -w "$cache_file"; then
  14912. if test "x$cache_file" != "x/dev/null"; then
  14913. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14914. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14915. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14916. cat confcache >"$cache_file"
  14917. else
  14918. case $cache_file in #(
  14919. */* | ?:*)
  14920. mv -f confcache "$cache_file"$$ &&
  14921. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14922. *)
  14923. mv -f confcache "$cache_file" ;;
  14924. esac
  14925. fi
  14926. fi
  14927. else
  14928. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14929. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14930. fi
  14931. fi
  14932. rm -f confcache
  14933. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14934. # Let make expand exec_prefix.
  14935. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14936. DEFS=-DHAVE_CONFIG_H
  14937. ac_libobjs=
  14938. ac_ltlibobjs=
  14939. U=
  14940. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14941. # 1. Remove the extension, and $U if already installed.
  14942. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14943. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14944. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14945. # will be set to the directory where LIBOBJS objects are built.
  14946. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14947. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14948. done
  14949. LIBOBJS=$ac_libobjs
  14950. LTLIBOBJS=$ac_ltlibobjs
  14951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  14952. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  14953. if test -n "$am_sleep_pid"; then
  14954. # Hide warnings about reused PIDs.
  14955. wait $am_sleep_pid 2>/dev/null
  14956. fi
  14957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  14958. $as_echo "done" >&6; }
  14959. if test -n "$EXEEXT"; then
  14960. am__EXEEXT_TRUE=
  14961. am__EXEEXT_FALSE='#'
  14962. else
  14963. am__EXEEXT_TRUE='#'
  14964. am__EXEEXT_FALSE=
  14965. fi
  14966. if test -z "${DDDMP_TRUE}" && test -z "${DDDMP_FALSE}"; then
  14967. as_fn_error $? "conditional \"DDDMP\" was never defined.
  14968. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14969. fi
  14970. if test -z "${OBJ_TRUE}" && test -z "${OBJ_FALSE}"; then
  14971. as_fn_error $? "conditional \"OBJ\" was never defined.
  14972. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14973. fi
  14974. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14975. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14976. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14977. fi
  14978. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14979. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14980. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14981. fi
  14982. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14983. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14984. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14985. fi
  14986. if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
  14987. as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
  14988. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14989. fi
  14990. if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
  14991. as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
  14992. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14993. fi
  14994. if test -z "${HAVE_PDFLATEX_TRUE}" && test -z "${HAVE_PDFLATEX_FALSE}"; then
  14995. as_fn_error $? "conditional \"HAVE_PDFLATEX\" was never defined.
  14996. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14997. fi
  14998. if test -z "${HAVE_PTHREADS_TRUE}" && test -z "${HAVE_PTHREADS_FALSE}"; then
  14999. as_fn_error $? "conditional \"HAVE_PTHREADS\" was never defined.
  15000. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15001. fi
  15002. if test -z "${MINGW64_TRUE}" && test -z "${MINGW64_FALSE}"; then
  15003. as_fn_error $? "conditional \"MINGW64\" was never defined.
  15004. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15005. fi
  15006. : "${CONFIG_STATUS=./config.status}"
  15007. ac_write_fail=0
  15008. ac_clean_files_save=$ac_clean_files
  15009. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  15010. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  15011. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  15012. as_write_fail=0
  15013. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  15014. #! $SHELL
  15015. # Generated by $as_me.
  15016. # Run this file to recreate the current configuration.
  15017. # Compiler output produced by configure, useful for debugging
  15018. # configure, is in config.log if it exists.
  15019. debug=false
  15020. ac_cs_recheck=false
  15021. ac_cs_silent=false
  15022. SHELL=\${CONFIG_SHELL-$SHELL}
  15023. export SHELL
  15024. _ASEOF
  15025. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  15026. ## -------------------- ##
  15027. ## M4sh Initialization. ##
  15028. ## -------------------- ##
  15029. # Be more Bourne compatible
  15030. DUALCASE=1; export DUALCASE # for MKS sh
  15031. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  15032. emulate sh
  15033. NULLCMD=:
  15034. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  15035. # is contrary to our usage. Disable this feature.
  15036. alias -g '${1+"$@"}'='"$@"'
  15037. setopt NO_GLOB_SUBST
  15038. else
  15039. case `(set -o) 2>/dev/null` in #(
  15040. *posix*) :
  15041. set -o posix ;; #(
  15042. *) :
  15043. ;;
  15044. esac
  15045. fi
  15046. as_nl='
  15047. '
  15048. export as_nl
  15049. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  15050. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  15051. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  15052. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  15053. # Prefer a ksh shell builtin over an external printf program on Solaris,
  15054. # but without wasting forks for bash or zsh.
  15055. if test -z "$BASH_VERSION$ZSH_VERSION" \
  15056. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  15057. as_echo='print -r --'
  15058. as_echo_n='print -rn --'
  15059. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  15060. as_echo='printf %s\n'
  15061. as_echo_n='printf %s'
  15062. else
  15063. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  15064. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  15065. as_echo_n='/usr/ucb/echo -n'
  15066. else
  15067. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  15068. as_echo_n_body='eval
  15069. arg=$1;
  15070. case $arg in #(
  15071. *"$as_nl"*)
  15072. expr "X$arg" : "X\\(.*\\)$as_nl";
  15073. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  15074. esac;
  15075. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  15076. '
  15077. export as_echo_n_body
  15078. as_echo_n='sh -c $as_echo_n_body as_echo'
  15079. fi
  15080. export as_echo_body
  15081. as_echo='sh -c $as_echo_body as_echo'
  15082. fi
  15083. # The user is always right.
  15084. if test "${PATH_SEPARATOR+set}" != set; then
  15085. PATH_SEPARATOR=:
  15086. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15087. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15088. PATH_SEPARATOR=';'
  15089. }
  15090. fi
  15091. # IFS
  15092. # We need space, tab and new line, in precisely that order. Quoting is
  15093. # there to prevent editors from complaining about space-tab.
  15094. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15095. # splitting by setting IFS to empty value.)
  15096. IFS=" "" $as_nl"
  15097. # Find who we are. Look in the path if we contain no directory separator.
  15098. as_myself=
  15099. case $0 in #((
  15100. *[\\/]* ) as_myself=$0 ;;
  15101. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15102. for as_dir in $PATH
  15103. do
  15104. IFS=$as_save_IFS
  15105. test -z "$as_dir" && as_dir=.
  15106. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15107. done
  15108. IFS=$as_save_IFS
  15109. ;;
  15110. esac
  15111. # We did not find ourselves, most probably we were run as `sh COMMAND'
  15112. # in which case we are not to be found in the path.
  15113. if test "x$as_myself" = x; then
  15114. as_myself=$0
  15115. fi
  15116. if test ! -f "$as_myself"; then
  15117. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15118. exit 1
  15119. fi
  15120. # Unset variables that we do not need and which cause bugs (e.g. in
  15121. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  15122. # suppresses any "Segmentation fault" message there. '((' could
  15123. # trigger a bug in pdksh 5.2.14.
  15124. for as_var in BASH_ENV ENV MAIL MAILPATH
  15125. do eval test x\${$as_var+set} = xset \
  15126. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  15127. done
  15128. PS1='$ '
  15129. PS2='> '
  15130. PS4='+ '
  15131. # NLS nuisances.
  15132. LC_ALL=C
  15133. export LC_ALL
  15134. LANGUAGE=C
  15135. export LANGUAGE
  15136. # CDPATH.
  15137. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15138. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  15139. # ----------------------------------------
  15140. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  15141. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  15142. # script with STATUS, using 1 if that was 0.
  15143. as_fn_error ()
  15144. {
  15145. as_status=$1; test $as_status -eq 0 && as_status=1
  15146. if test "$4"; then
  15147. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15148. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  15149. fi
  15150. $as_echo "$as_me: error: $2" >&2
  15151. as_fn_exit $as_status
  15152. } # as_fn_error
  15153. # as_fn_set_status STATUS
  15154. # -----------------------
  15155. # Set $? to STATUS, without forking.
  15156. as_fn_set_status ()
  15157. {
  15158. return $1
  15159. } # as_fn_set_status
  15160. # as_fn_exit STATUS
  15161. # -----------------
  15162. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  15163. as_fn_exit ()
  15164. {
  15165. set +e
  15166. as_fn_set_status $1
  15167. exit $1
  15168. } # as_fn_exit
  15169. # as_fn_unset VAR
  15170. # ---------------
  15171. # Portably unset VAR.
  15172. as_fn_unset ()
  15173. {
  15174. { eval $1=; unset $1;}
  15175. }
  15176. as_unset=as_fn_unset
  15177. # as_fn_append VAR VALUE
  15178. # ----------------------
  15179. # Append the text in VALUE to the end of the definition contained in VAR. Take
  15180. # advantage of any shell optimizations that allow amortized linear growth over
  15181. # repeated appends, instead of the typical quadratic growth present in naive
  15182. # implementations.
  15183. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  15184. eval 'as_fn_append ()
  15185. {
  15186. eval $1+=\$2
  15187. }'
  15188. else
  15189. as_fn_append ()
  15190. {
  15191. eval $1=\$$1\$2
  15192. }
  15193. fi # as_fn_append
  15194. # as_fn_arith ARG...
  15195. # ------------------
  15196. # Perform arithmetic evaluation on the ARGs, and store the result in the
  15197. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  15198. # must be portable across $(()) and expr.
  15199. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  15200. eval 'as_fn_arith ()
  15201. {
  15202. as_val=$(( $* ))
  15203. }'
  15204. else
  15205. as_fn_arith ()
  15206. {
  15207. as_val=`expr "$@" || test $? -eq 1`
  15208. }
  15209. fi # as_fn_arith
  15210. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15211. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15212. as_expr=expr
  15213. else
  15214. as_expr=false
  15215. fi
  15216. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15217. as_basename=basename
  15218. else
  15219. as_basename=false
  15220. fi
  15221. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15222. as_dirname=dirname
  15223. else
  15224. as_dirname=false
  15225. fi
  15226. as_me=`$as_basename -- "$0" ||
  15227. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15228. X"$0" : 'X\(//\)$' \| \
  15229. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15230. $as_echo X/"$0" |
  15231. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15232. s//\1/
  15233. q
  15234. }
  15235. /^X\/\(\/\/\)$/{
  15236. s//\1/
  15237. q
  15238. }
  15239. /^X\/\(\/\).*/{
  15240. s//\1/
  15241. q
  15242. }
  15243. s/.*/./; q'`
  15244. # Avoid depending upon Character Ranges.
  15245. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15246. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15247. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15248. as_cr_digits='0123456789'
  15249. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15250. ECHO_C= ECHO_N= ECHO_T=
  15251. case `echo -n x` in #(((((
  15252. -n*)
  15253. case `echo 'xy\c'` in
  15254. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15255. xy) ECHO_C='\c';;
  15256. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15257. ECHO_T=' ';;
  15258. esac;;
  15259. *)
  15260. ECHO_N='-n';;
  15261. esac
  15262. rm -f conf$$ conf$$.exe conf$$.file
  15263. if test -d conf$$.dir; then
  15264. rm -f conf$$.dir/conf$$.file
  15265. else
  15266. rm -f conf$$.dir
  15267. mkdir conf$$.dir 2>/dev/null
  15268. fi
  15269. if (echo >conf$$.file) 2>/dev/null; then
  15270. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15271. as_ln_s='ln -s'
  15272. # ... but there are two gotchas:
  15273. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15274. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15275. # In both cases, we have to default to `cp -pR'.
  15276. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15277. as_ln_s='cp -pR'
  15278. elif ln conf$$.file conf$$ 2>/dev/null; then
  15279. as_ln_s=ln
  15280. else
  15281. as_ln_s='cp -pR'
  15282. fi
  15283. else
  15284. as_ln_s='cp -pR'
  15285. fi
  15286. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15287. rmdir conf$$.dir 2>/dev/null
  15288. # as_fn_mkdir_p
  15289. # -------------
  15290. # Create "$as_dir" as a directory, including parents if necessary.
  15291. as_fn_mkdir_p ()
  15292. {
  15293. case $as_dir in #(
  15294. -*) as_dir=./$as_dir;;
  15295. esac
  15296. test -d "$as_dir" || eval $as_mkdir_p || {
  15297. as_dirs=
  15298. while :; do
  15299. case $as_dir in #(
  15300. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15301. *) as_qdir=$as_dir;;
  15302. esac
  15303. as_dirs="'$as_qdir' $as_dirs"
  15304. as_dir=`$as_dirname -- "$as_dir" ||
  15305. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15306. X"$as_dir" : 'X\(//\)[^/]' \| \
  15307. X"$as_dir" : 'X\(//\)$' \| \
  15308. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15309. $as_echo X"$as_dir" |
  15310. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15311. s//\1/
  15312. q
  15313. }
  15314. /^X\(\/\/\)[^/].*/{
  15315. s//\1/
  15316. q
  15317. }
  15318. /^X\(\/\/\)$/{
  15319. s//\1/
  15320. q
  15321. }
  15322. /^X\(\/\).*/{
  15323. s//\1/
  15324. q
  15325. }
  15326. s/.*/./; q'`
  15327. test -d "$as_dir" && break
  15328. done
  15329. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15330. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  15331. } # as_fn_mkdir_p
  15332. if mkdir -p . 2>/dev/null; then
  15333. as_mkdir_p='mkdir -p "$as_dir"'
  15334. else
  15335. test -d ./-p && rmdir ./-p
  15336. as_mkdir_p=false
  15337. fi
  15338. # as_fn_executable_p FILE
  15339. # -----------------------
  15340. # Test if FILE is an executable regular file.
  15341. as_fn_executable_p ()
  15342. {
  15343. test -f "$1" && test -x "$1"
  15344. } # as_fn_executable_p
  15345. as_test_x='test -x'
  15346. as_executable_p=as_fn_executable_p
  15347. # Sed expression to map a string onto a valid CPP name.
  15348. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15349. # Sed expression to map a string onto a valid variable name.
  15350. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15351. exec 6>&1
  15352. ## ----------------------------------- ##
  15353. ## Main body of $CONFIG_STATUS script. ##
  15354. ## ----------------------------------- ##
  15355. _ASEOF
  15356. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15357. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15358. # Save the log message, to keep $0 and so on meaningful, and to
  15359. # report actual input values of CONFIG_FILES etc. instead of their
  15360. # values after options handling.
  15361. ac_log="
  15362. This file was extended by cudd $as_me 3.0.0, which was
  15363. generated by GNU Autoconf 2.69. Invocation command line was
  15364. CONFIG_FILES = $CONFIG_FILES
  15365. CONFIG_HEADERS = $CONFIG_HEADERS
  15366. CONFIG_LINKS = $CONFIG_LINKS
  15367. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15368. $ $0 $@
  15369. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15370. "
  15371. _ACEOF
  15372. case $ac_config_files in *"
  15373. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15374. esac
  15375. case $ac_config_headers in *"
  15376. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  15377. esac
  15378. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15379. # Files that config.status was made for.
  15380. config_files="$ac_config_files"
  15381. config_headers="$ac_config_headers"
  15382. config_commands="$ac_config_commands"
  15383. _ACEOF
  15384. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15385. ac_cs_usage="\
  15386. \`$as_me' instantiates files and other configuration actions
  15387. from templates according to the current configuration. Unless the files
  15388. and actions are specified as TAGs, all are instantiated by default.
  15389. Usage: $0 [OPTION]... [TAG]...
  15390. -h, --help print this help, then exit
  15391. -V, --version print version number and configuration settings, then exit
  15392. --config print configuration, then exit
  15393. -q, --quiet, --silent
  15394. do not print progress messages
  15395. -d, --debug don't remove temporary files
  15396. --recheck update $as_me by reconfiguring in the same conditions
  15397. --file=FILE[:TEMPLATE]
  15398. instantiate the configuration file FILE
  15399. --header=FILE[:TEMPLATE]
  15400. instantiate the configuration header FILE
  15401. Configuration files:
  15402. $config_files
  15403. Configuration headers:
  15404. $config_headers
  15405. Configuration commands:
  15406. $config_commands
  15407. Report bugs to <Fabio@Colorado.EDU>."
  15408. _ACEOF
  15409. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15410. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  15411. ac_cs_version="\\
  15412. cudd config.status 3.0.0
  15413. configured by $0, generated by GNU Autoconf 2.69,
  15414. with options \\"\$ac_cs_config\\"
  15415. Copyright (C) 2012 Free Software Foundation, Inc.
  15416. This config.status script is free software; the Free Software Foundation
  15417. gives unlimited permission to copy, distribute and modify it."
  15418. ac_pwd='$ac_pwd'
  15419. srcdir='$srcdir'
  15420. INSTALL='$INSTALL'
  15421. MKDIR_P='$MKDIR_P'
  15422. AWK='$AWK'
  15423. test -n "\$AWK" || AWK=awk
  15424. _ACEOF
  15425. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15426. # The default lists apply if the user does not specify any file.
  15427. ac_need_defaults=:
  15428. while test $# != 0
  15429. do
  15430. case $1 in
  15431. --*=?*)
  15432. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15433. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15434. ac_shift=:
  15435. ;;
  15436. --*=)
  15437. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15438. ac_optarg=
  15439. ac_shift=:
  15440. ;;
  15441. *)
  15442. ac_option=$1
  15443. ac_optarg=$2
  15444. ac_shift=shift
  15445. ;;
  15446. esac
  15447. case $ac_option in
  15448. # Handling of the options.
  15449. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15450. ac_cs_recheck=: ;;
  15451. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15452. $as_echo "$ac_cs_version"; exit ;;
  15453. --config | --confi | --conf | --con | --co | --c )
  15454. $as_echo "$ac_cs_config"; exit ;;
  15455. --debug | --debu | --deb | --de | --d | -d )
  15456. debug=: ;;
  15457. --file | --fil | --fi | --f )
  15458. $ac_shift
  15459. case $ac_optarg in
  15460. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15461. '') as_fn_error $? "missing file argument" ;;
  15462. esac
  15463. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15464. ac_need_defaults=false;;
  15465. --header | --heade | --head | --hea )
  15466. $ac_shift
  15467. case $ac_optarg in
  15468. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15469. esac
  15470. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  15471. ac_need_defaults=false;;
  15472. --he | --h)
  15473. # Conflict between --help and --header
  15474. as_fn_error $? "ambiguous option: \`$1'
  15475. Try \`$0 --help' for more information.";;
  15476. --help | --hel | -h )
  15477. $as_echo "$ac_cs_usage"; exit ;;
  15478. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15479. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15480. ac_cs_silent=: ;;
  15481. # This is an error.
  15482. -*) as_fn_error $? "unrecognized option: \`$1'
  15483. Try \`$0 --help' for more information." ;;
  15484. *) as_fn_append ac_config_targets " $1"
  15485. ac_need_defaults=false ;;
  15486. esac
  15487. shift
  15488. done
  15489. ac_configure_extra_args=
  15490. if $ac_cs_silent; then
  15491. exec 6>/dev/null
  15492. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15493. fi
  15494. _ACEOF
  15495. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15496. if \$ac_cs_recheck; then
  15497. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15498. shift
  15499. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15500. CONFIG_SHELL='$SHELL'
  15501. export CONFIG_SHELL
  15502. exec "\$@"
  15503. fi
  15504. _ACEOF
  15505. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15506. exec 5>>config.log
  15507. {
  15508. echo
  15509. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15510. ## Running $as_me. ##
  15511. _ASBOX
  15512. $as_echo "$ac_log"
  15513. } >&5
  15514. _ACEOF
  15515. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15516. #
  15517. # INIT-COMMANDS
  15518. #
  15519. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15520. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15521. # if CDPATH is set.
  15522. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15523. sed_quote_subst='$sed_quote_subst'
  15524. double_quote_subst='$double_quote_subst'
  15525. delay_variable_subst='$delay_variable_subst'
  15526. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15527. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15528. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  15529. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  15530. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15531. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15532. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15533. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15534. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15535. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15536. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15537. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  15538. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15539. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15540. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15541. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15542. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15543. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15544. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15545. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15546. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15547. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15548. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15549. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15550. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15551. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15552. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15553. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15554. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15555. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15556. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15557. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15558. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  15559. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  15560. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15561. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15562. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15563. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15564. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  15565. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  15566. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  15567. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15568. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15569. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  15570. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15571. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15572. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15573. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15574. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15575. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15576. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15577. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15578. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15579. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15580. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15581. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15582. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15583. 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"`'
  15584. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  15585. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15586. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15587. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15588. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15589. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15590. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15591. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15592. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15593. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15594. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15595. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15596. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15597. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15598. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15599. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15600. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15601. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15602. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15603. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15604. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15605. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15606. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15607. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15608. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15609. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15610. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15611. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15612. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15613. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15614. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15615. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15616. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15617. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15618. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15619. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15620. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15621. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15622. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15623. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15624. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15625. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15626. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15627. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15628. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15629. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15630. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15631. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15632. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15633. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15634. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15635. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15636. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15637. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15638. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15639. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15640. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15641. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15642. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15643. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15644. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15645. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15646. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15647. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15648. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15649. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15650. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15651. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15652. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15653. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15654. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15655. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15656. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15657. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  15658. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  15659. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  15660. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  15661. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  15662. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  15663. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  15664. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15665. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15666. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15667. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  15668. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  15669. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15670. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  15671. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  15672. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  15673. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  15674. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  15675. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  15676. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15677. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15678. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  15679. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15680. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15681. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15682. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15683. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15684. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15685. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15686. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15687. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15688. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15689. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  15690. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  15691. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  15692. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  15693. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  15694. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  15695. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  15696. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  15697. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  15698. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15699. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15700. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15701. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15702. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15703. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15704. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  15705. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  15706. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15707. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15708. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  15709. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  15710. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  15711. LTCC='$LTCC'
  15712. LTCFLAGS='$LTCFLAGS'
  15713. compiler='$compiler_DEFAULT'
  15714. # A function that is used when there is no print builtin or printf.
  15715. func_fallback_echo ()
  15716. {
  15717. eval 'cat <<_LTECHO_EOF
  15718. \$1
  15719. _LTECHO_EOF'
  15720. }
  15721. # Quote evaled strings.
  15722. for var in AS \
  15723. DLLTOOL \
  15724. OBJDUMP \
  15725. SHELL \
  15726. ECHO \
  15727. PATH_SEPARATOR \
  15728. SED \
  15729. GREP \
  15730. EGREP \
  15731. FGREP \
  15732. LD \
  15733. NM \
  15734. LN_S \
  15735. lt_SP2NL \
  15736. lt_NL2SP \
  15737. reload_flag \
  15738. deplibs_check_method \
  15739. file_magic_cmd \
  15740. file_magic_glob \
  15741. want_nocaseglob \
  15742. sharedlib_from_linklib_cmd \
  15743. AR \
  15744. AR_FLAGS \
  15745. archiver_list_spec \
  15746. STRIP \
  15747. RANLIB \
  15748. CC \
  15749. CFLAGS \
  15750. compiler \
  15751. lt_cv_sys_global_symbol_pipe \
  15752. lt_cv_sys_global_symbol_to_cdecl \
  15753. lt_cv_sys_global_symbol_to_c_name_address \
  15754. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15755. nm_file_list_spec \
  15756. lt_prog_compiler_no_builtin_flag \
  15757. lt_prog_compiler_pic \
  15758. lt_prog_compiler_wl \
  15759. lt_prog_compiler_static \
  15760. lt_cv_prog_compiler_c_o \
  15761. need_locks \
  15762. MANIFEST_TOOL \
  15763. DSYMUTIL \
  15764. NMEDIT \
  15765. LIPO \
  15766. OTOOL \
  15767. OTOOL64 \
  15768. shrext_cmds \
  15769. export_dynamic_flag_spec \
  15770. whole_archive_flag_spec \
  15771. compiler_needs_object \
  15772. with_gnu_ld \
  15773. allow_undefined_flag \
  15774. no_undefined_flag \
  15775. hardcode_libdir_flag_spec \
  15776. hardcode_libdir_separator \
  15777. exclude_expsyms \
  15778. include_expsyms \
  15779. file_list_spec \
  15780. variables_saved_for_relink \
  15781. libname_spec \
  15782. library_names_spec \
  15783. soname_spec \
  15784. install_override_mode \
  15785. finish_eval \
  15786. old_striplib \
  15787. striplib \
  15788. compiler_lib_search_dirs \
  15789. predep_objects \
  15790. postdep_objects \
  15791. predeps \
  15792. postdeps \
  15793. compiler_lib_search_path \
  15794. LD_CXX \
  15795. reload_flag_CXX \
  15796. compiler_CXX \
  15797. lt_prog_compiler_no_builtin_flag_CXX \
  15798. lt_prog_compiler_pic_CXX \
  15799. lt_prog_compiler_wl_CXX \
  15800. lt_prog_compiler_static_CXX \
  15801. lt_cv_prog_compiler_c_o_CXX \
  15802. export_dynamic_flag_spec_CXX \
  15803. whole_archive_flag_spec_CXX \
  15804. compiler_needs_object_CXX \
  15805. with_gnu_ld_CXX \
  15806. allow_undefined_flag_CXX \
  15807. no_undefined_flag_CXX \
  15808. hardcode_libdir_flag_spec_CXX \
  15809. hardcode_libdir_separator_CXX \
  15810. exclude_expsyms_CXX \
  15811. include_expsyms_CXX \
  15812. file_list_spec_CXX \
  15813. compiler_lib_search_dirs_CXX \
  15814. predep_objects_CXX \
  15815. postdep_objects_CXX \
  15816. predeps_CXX \
  15817. postdeps_CXX \
  15818. compiler_lib_search_path_CXX; do
  15819. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15820. *[\\\\\\\`\\"\\\$]*)
  15821. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15822. ;;
  15823. *)
  15824. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15825. ;;
  15826. esac
  15827. done
  15828. # Double-quote double-evaled strings.
  15829. for var in reload_cmds \
  15830. old_postinstall_cmds \
  15831. old_postuninstall_cmds \
  15832. old_archive_cmds \
  15833. extract_expsyms_cmds \
  15834. old_archive_from_new_cmds \
  15835. old_archive_from_expsyms_cmds \
  15836. archive_cmds \
  15837. archive_expsym_cmds \
  15838. module_cmds \
  15839. module_expsym_cmds \
  15840. export_symbols_cmds \
  15841. prelink_cmds \
  15842. postlink_cmds \
  15843. postinstall_cmds \
  15844. postuninstall_cmds \
  15845. finish_cmds \
  15846. sys_lib_search_path_spec \
  15847. sys_lib_dlsearch_path_spec \
  15848. reload_cmds_CXX \
  15849. old_archive_cmds_CXX \
  15850. old_archive_from_new_cmds_CXX \
  15851. old_archive_from_expsyms_cmds_CXX \
  15852. archive_cmds_CXX \
  15853. archive_expsym_cmds_CXX \
  15854. module_cmds_CXX \
  15855. module_expsym_cmds_CXX \
  15856. export_symbols_cmds_CXX \
  15857. prelink_cmds_CXX \
  15858. postlink_cmds_CXX; do
  15859. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15860. *[\\\\\\\`\\"\\\$]*)
  15861. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15862. ;;
  15863. *)
  15864. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15865. ;;
  15866. esac
  15867. done
  15868. ac_aux_dir='$ac_aux_dir'
  15869. xsi_shell='$xsi_shell'
  15870. lt_shell_append='$lt_shell_append'
  15871. # See if we are running on zsh, and set the options which allow our
  15872. # commands through without removal of \ escapes INIT.
  15873. if test -n "\${ZSH_VERSION+set}" ; then
  15874. setopt NO_GLOB_SUBST
  15875. fi
  15876. PACKAGE='$PACKAGE'
  15877. VERSION='$VERSION'
  15878. TIMESTAMP='$TIMESTAMP'
  15879. RM='$RM'
  15880. ofile='$ofile'
  15881. _ACEOF
  15882. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15883. # Handling of arguments.
  15884. for ac_config_target in $ac_config_targets
  15885. do
  15886. case $ac_config_target in
  15887. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15888. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15889. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  15890. "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
  15891. "doc/cudd.tex") CONFIG_FILES="$CONFIG_FILES doc/cudd.tex" ;;
  15892. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15893. "dddmp/exp/test1.sh") CONFIG_FILES="$CONFIG_FILES dddmp/exp/test1.sh" ;;
  15894. "dddmp/exp/test2.sh") CONFIG_FILES="$CONFIG_FILES dddmp/exp/test2.sh" ;;
  15895. "dddmp/exp/test3.sh") CONFIG_FILES="$CONFIG_FILES dddmp/exp/test3.sh" ;;
  15896. "dddmp/exp/test4.sh") CONFIG_FILES="$CONFIG_FILES dddmp/exp/test4.sh" ;;
  15897. "dddmp/exp/test5.sh") CONFIG_FILES="$CONFIG_FILES dddmp/exp/test5.sh" ;;
  15898. "dddmp/exp/test6.sh") CONFIG_FILES="$CONFIG_FILES dddmp/exp/test6.sh" ;;
  15899. "dddmp/exp/test7.sh") CONFIG_FILES="$CONFIG_FILES dddmp/exp/test7.sh" ;;
  15900. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15901. esac
  15902. done
  15903. # If the user did not use the arguments to specify the items to instantiate,
  15904. # then the envvar interface is used. Set only those that are not.
  15905. # We use the long form for the default assignment because of an extremely
  15906. # bizarre bug on SunOS 4.1.3.
  15907. if $ac_need_defaults; then
  15908. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15909. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15910. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15911. fi
  15912. # Have a temporary directory for convenience. Make it in the build tree
  15913. # simply because there is no reason against having it here, and in addition,
  15914. # creating and moving files from /tmp can sometimes cause problems.
  15915. # Hook for its removal unless debugging.
  15916. # Note that there is a small window in which the directory will not be cleaned:
  15917. # after its creation but before its name has been assigned to `$tmp'.
  15918. $debug ||
  15919. {
  15920. tmp= ac_tmp=
  15921. trap 'exit_status=$?
  15922. : "${ac_tmp:=$tmp}"
  15923. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15924. ' 0
  15925. trap 'as_fn_exit 1' 1 2 13 15
  15926. }
  15927. # Create a (secure) tmp directory for tmp files.
  15928. {
  15929. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15930. test -d "$tmp"
  15931. } ||
  15932. {
  15933. tmp=./conf$$-$RANDOM
  15934. (umask 077 && mkdir "$tmp")
  15935. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15936. ac_tmp=$tmp
  15937. # Set up the scripts for CONFIG_FILES section.
  15938. # No need to generate them if there are no CONFIG_FILES.
  15939. # This happens for instance with `./config.status config.h'.
  15940. if test -n "$CONFIG_FILES"; then
  15941. ac_cr=`echo X | tr X '\015'`
  15942. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15943. # But we know of no other shell where ac_cr would be empty at this
  15944. # point, so we can use a bashism as a fallback.
  15945. if test "x$ac_cr" = x; then
  15946. eval ac_cr=\$\'\\r\'
  15947. fi
  15948. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15949. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15950. ac_cs_awk_cr='\\r'
  15951. else
  15952. ac_cs_awk_cr=$ac_cr
  15953. fi
  15954. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15955. _ACEOF
  15956. {
  15957. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15958. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15959. echo "_ACEOF"
  15960. } >conf$$subs.sh ||
  15961. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15962. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15963. ac_delim='%!_!# '
  15964. for ac_last_try in false false false false false :; do
  15965. . ./conf$$subs.sh ||
  15966. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15967. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15968. if test $ac_delim_n = $ac_delim_num; then
  15969. break
  15970. elif $ac_last_try; then
  15971. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15972. else
  15973. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15974. fi
  15975. done
  15976. rm -f conf$$subs.sh
  15977. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15978. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15979. _ACEOF
  15980. sed -n '
  15981. h
  15982. s/^/S["/; s/!.*/"]=/
  15983. p
  15984. g
  15985. s/^[^!]*!//
  15986. :repl
  15987. t repl
  15988. s/'"$ac_delim"'$//
  15989. t delim
  15990. :nl
  15991. h
  15992. s/\(.\{148\}\)..*/\1/
  15993. t more1
  15994. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15995. p
  15996. n
  15997. b repl
  15998. :more1
  15999. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16000. p
  16001. g
  16002. s/.\{148\}//
  16003. t nl
  16004. :delim
  16005. h
  16006. s/\(.\{148\}\)..*/\1/
  16007. t more2
  16008. s/["\\]/\\&/g; s/^/"/; s/$/"/
  16009. p
  16010. b
  16011. :more2
  16012. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16013. p
  16014. g
  16015. s/.\{148\}//
  16016. t delim
  16017. ' <conf$$subs.awk | sed '
  16018. /^[^""]/{
  16019. N
  16020. s/\n//
  16021. }
  16022. ' >>$CONFIG_STATUS || ac_write_fail=1
  16023. rm -f conf$$subs.awk
  16024. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16025. _ACAWK
  16026. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  16027. for (key in S) S_is_set[key] = 1
  16028. FS = ""
  16029. }
  16030. {
  16031. line = $ 0
  16032. nfields = split(line, field, "@")
  16033. substed = 0
  16034. len = length(field[1])
  16035. for (i = 2; i < nfields; i++) {
  16036. key = field[i]
  16037. keylen = length(key)
  16038. if (S_is_set[key]) {
  16039. value = S[key]
  16040. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  16041. len += length(value) + length(field[++i])
  16042. substed = 1
  16043. } else
  16044. len += 1 + keylen
  16045. }
  16046. print line
  16047. }
  16048. _ACAWK
  16049. _ACEOF
  16050. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16051. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  16052. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  16053. else
  16054. cat
  16055. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  16056. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  16057. _ACEOF
  16058. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  16059. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  16060. # trailing colons and then remove the whole line if VPATH becomes empty
  16061. # (actually we leave an empty line to preserve line numbers).
  16062. if test "x$srcdir" = x.; then
  16063. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  16064. h
  16065. s///
  16066. s/^/:/
  16067. s/[ ]*$/:/
  16068. s/:\$(srcdir):/:/g
  16069. s/:\${srcdir}:/:/g
  16070. s/:@srcdir@:/:/g
  16071. s/^:*//
  16072. s/:*$//
  16073. x
  16074. s/\(=[ ]*\).*/\1/
  16075. G
  16076. s/\n//
  16077. s/^[^=]*=[ ]*$//
  16078. }'
  16079. fi
  16080. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16081. fi # test -n "$CONFIG_FILES"
  16082. # Set up the scripts for CONFIG_HEADERS section.
  16083. # No need to generate them if there are no CONFIG_HEADERS.
  16084. # This happens for instance with `./config.status Makefile'.
  16085. if test -n "$CONFIG_HEADERS"; then
  16086. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  16087. BEGIN {
  16088. _ACEOF
  16089. # Transform confdefs.h into an awk script `defines.awk', embedded as
  16090. # here-document in config.status, that substitutes the proper values into
  16091. # config.h.in to produce config.h.
  16092. # Create a delimiter string that does not exist in confdefs.h, to ease
  16093. # handling of long lines.
  16094. ac_delim='%!_!# '
  16095. for ac_last_try in false false :; do
  16096. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  16097. if test -z "$ac_tt"; then
  16098. break
  16099. elif $ac_last_try; then
  16100. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  16101. else
  16102. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16103. fi
  16104. done
  16105. # For the awk script, D is an array of macro values keyed by name,
  16106. # likewise P contains macro parameters if any. Preserve backslash
  16107. # newline sequences.
  16108. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  16109. sed -n '
  16110. s/.\{148\}/&'"$ac_delim"'/g
  16111. t rset
  16112. :rset
  16113. s/^[ ]*#[ ]*define[ ][ ]*/ /
  16114. t def
  16115. d
  16116. :def
  16117. s/\\$//
  16118. t bsnl
  16119. s/["\\]/\\&/g
  16120. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16121. D["\1"]=" \3"/p
  16122. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  16123. d
  16124. :bsnl
  16125. s/["\\]/\\&/g
  16126. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16127. D["\1"]=" \3\\\\\\n"\\/p
  16128. t cont
  16129. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  16130. t cont
  16131. d
  16132. :cont
  16133. n
  16134. s/.\{148\}/&'"$ac_delim"'/g
  16135. t clear
  16136. :clear
  16137. s/\\$//
  16138. t bsnlc
  16139. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  16140. d
  16141. :bsnlc
  16142. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  16143. b cont
  16144. ' <confdefs.h | sed '
  16145. s/'"$ac_delim"'/"\\\
  16146. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  16147. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16148. for (key in D) D_is_set[key] = 1
  16149. FS = ""
  16150. }
  16151. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  16152. line = \$ 0
  16153. split(line, arg, " ")
  16154. if (arg[1] == "#") {
  16155. defundef = arg[2]
  16156. mac1 = arg[3]
  16157. } else {
  16158. defundef = substr(arg[1], 2)
  16159. mac1 = arg[2]
  16160. }
  16161. split(mac1, mac2, "(") #)
  16162. macro = mac2[1]
  16163. prefix = substr(line, 1, index(line, defundef) - 1)
  16164. if (D_is_set[macro]) {
  16165. # Preserve the white space surrounding the "#".
  16166. print prefix "define", macro P[macro] D[macro]
  16167. next
  16168. } else {
  16169. # Replace #undef with comments. This is necessary, for example,
  16170. # in the case of _POSIX_SOURCE, which is predefined and required
  16171. # on some systems where configure will not decide to define it.
  16172. if (defundef == "undef") {
  16173. print "/*", prefix defundef, macro, "*/"
  16174. next
  16175. }
  16176. }
  16177. }
  16178. { print }
  16179. _ACAWK
  16180. _ACEOF
  16181. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16182. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  16183. fi # test -n "$CONFIG_HEADERS"
  16184. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  16185. shift
  16186. for ac_tag
  16187. do
  16188. case $ac_tag in
  16189. :[FHLC]) ac_mode=$ac_tag; continue;;
  16190. esac
  16191. case $ac_mode$ac_tag in
  16192. :[FHL]*:*);;
  16193. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  16194. :[FH]-) ac_tag=-:-;;
  16195. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  16196. esac
  16197. ac_save_IFS=$IFS
  16198. IFS=:
  16199. set x $ac_tag
  16200. IFS=$ac_save_IFS
  16201. shift
  16202. ac_file=$1
  16203. shift
  16204. case $ac_mode in
  16205. :L) ac_source=$1;;
  16206. :[FH])
  16207. ac_file_inputs=
  16208. for ac_f
  16209. do
  16210. case $ac_f in
  16211. -) ac_f="$ac_tmp/stdin";;
  16212. *) # Look for the file first in the build tree, then in the source tree
  16213. # (if the path is not absolute). The absolute path cannot be DOS-style,
  16214. # because $ac_f cannot contain `:'.
  16215. test -f "$ac_f" ||
  16216. case $ac_f in
  16217. [\\/$]*) false;;
  16218. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  16219. esac ||
  16220. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  16221. esac
  16222. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  16223. as_fn_append ac_file_inputs " '$ac_f'"
  16224. done
  16225. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16226. # use $as_me), people would be surprised to read:
  16227. # /* config.h. Generated by config.status. */
  16228. configure_input='Generated from '`
  16229. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  16230. `' by configure.'
  16231. if test x"$ac_file" != x-; then
  16232. configure_input="$ac_file. $configure_input"
  16233. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  16234. $as_echo "$as_me: creating $ac_file" >&6;}
  16235. fi
  16236. # Neutralize special characters interpreted by sed in replacement strings.
  16237. case $configure_input in #(
  16238. *\&* | *\|* | *\\* )
  16239. ac_sed_conf_input=`$as_echo "$configure_input" |
  16240. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16241. *) ac_sed_conf_input=$configure_input;;
  16242. esac
  16243. case $ac_tag in
  16244. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  16245. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  16246. esac
  16247. ;;
  16248. esac
  16249. ac_dir=`$as_dirname -- "$ac_file" ||
  16250. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16251. X"$ac_file" : 'X\(//\)[^/]' \| \
  16252. X"$ac_file" : 'X\(//\)$' \| \
  16253. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16254. $as_echo X"$ac_file" |
  16255. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16256. s//\1/
  16257. q
  16258. }
  16259. /^X\(\/\/\)[^/].*/{
  16260. s//\1/
  16261. q
  16262. }
  16263. /^X\(\/\/\)$/{
  16264. s//\1/
  16265. q
  16266. }
  16267. /^X\(\/\).*/{
  16268. s//\1/
  16269. q
  16270. }
  16271. s/.*/./; q'`
  16272. as_dir="$ac_dir"; as_fn_mkdir_p
  16273. ac_builddir=.
  16274. case "$ac_dir" in
  16275. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16276. *)
  16277. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16278. # A ".." for each directory in $ac_dir_suffix.
  16279. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16280. case $ac_top_builddir_sub in
  16281. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16282. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16283. esac ;;
  16284. esac
  16285. ac_abs_top_builddir=$ac_pwd
  16286. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16287. # for backward compatibility:
  16288. ac_top_builddir=$ac_top_build_prefix
  16289. case $srcdir in
  16290. .) # We are building in place.
  16291. ac_srcdir=.
  16292. ac_top_srcdir=$ac_top_builddir_sub
  16293. ac_abs_top_srcdir=$ac_pwd ;;
  16294. [\\/]* | ?:[\\/]* ) # Absolute name.
  16295. ac_srcdir=$srcdir$ac_dir_suffix;
  16296. ac_top_srcdir=$srcdir
  16297. ac_abs_top_srcdir=$srcdir ;;
  16298. *) # Relative name.
  16299. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16300. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16301. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16302. esac
  16303. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16304. case $ac_mode in
  16305. :F)
  16306. #
  16307. # CONFIG_FILE
  16308. #
  16309. case $INSTALL in
  16310. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16311. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16312. esac
  16313. ac_MKDIR_P=$MKDIR_P
  16314. case $MKDIR_P in
  16315. [\\/$]* | ?:[\\/]* ) ;;
  16316. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  16317. esac
  16318. _ACEOF
  16319. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16320. # If the template does not know about datarootdir, expand it.
  16321. # FIXME: This hack should be removed a few years after 2.60.
  16322. ac_datarootdir_hack=; ac_datarootdir_seen=
  16323. ac_sed_dataroot='
  16324. /datarootdir/ {
  16325. p
  16326. q
  16327. }
  16328. /@datadir@/p
  16329. /@docdir@/p
  16330. /@infodir@/p
  16331. /@localedir@/p
  16332. /@mandir@/p'
  16333. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16334. *datarootdir*) ac_datarootdir_seen=yes;;
  16335. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16336. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16337. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16338. _ACEOF
  16339. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16340. ac_datarootdir_hack='
  16341. s&@datadir@&$datadir&g
  16342. s&@docdir@&$docdir&g
  16343. s&@infodir@&$infodir&g
  16344. s&@localedir@&$localedir&g
  16345. s&@mandir@&$mandir&g
  16346. s&\\\${datarootdir}&$datarootdir&g' ;;
  16347. esac
  16348. _ACEOF
  16349. # Neutralize VPATH when `$srcdir' = `.'.
  16350. # Shell code in configure.ac might set extrasub.
  16351. # FIXME: do we really want to maintain this feature?
  16352. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16353. ac_sed_extra="$ac_vpsub
  16354. $extrasub
  16355. _ACEOF
  16356. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16357. :t
  16358. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16359. s|@configure_input@|$ac_sed_conf_input|;t t
  16360. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16361. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16362. s&@srcdir@&$ac_srcdir&;t t
  16363. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16364. s&@top_srcdir@&$ac_top_srcdir&;t t
  16365. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16366. s&@builddir@&$ac_builddir&;t t
  16367. s&@abs_builddir@&$ac_abs_builddir&;t t
  16368. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16369. s&@INSTALL@&$ac_INSTALL&;t t
  16370. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  16371. $ac_datarootdir_hack
  16372. "
  16373. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  16374. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16375. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16376. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  16377. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  16378. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  16379. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16380. which seems to be undefined. Please make sure it is defined" >&5
  16381. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16382. which seems to be undefined. Please make sure it is defined" >&2;}
  16383. rm -f "$ac_tmp/stdin"
  16384. case $ac_file in
  16385. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  16386. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  16387. esac \
  16388. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16389. ;;
  16390. :H)
  16391. #
  16392. # CONFIG_HEADER
  16393. #
  16394. if test x"$ac_file" != x-; then
  16395. {
  16396. $as_echo "/* $configure_input */" \
  16397. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  16398. } >"$ac_tmp/config.h" \
  16399. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16400. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  16401. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  16402. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  16403. else
  16404. rm -f "$ac_file"
  16405. mv "$ac_tmp/config.h" "$ac_file" \
  16406. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16407. fi
  16408. else
  16409. $as_echo "/* $configure_input */" \
  16410. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  16411. || as_fn_error $? "could not create -" "$LINENO" 5
  16412. fi
  16413. # Compute "$ac_file"'s index in $config_headers.
  16414. _am_arg="$ac_file"
  16415. _am_stamp_count=1
  16416. for _am_header in $config_headers :; do
  16417. case $_am_header in
  16418. $_am_arg | $_am_arg:* )
  16419. break ;;
  16420. * )
  16421. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  16422. esac
  16423. done
  16424. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  16425. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16426. X"$_am_arg" : 'X\(//\)[^/]' \| \
  16427. X"$_am_arg" : 'X\(//\)$' \| \
  16428. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  16429. $as_echo X"$_am_arg" |
  16430. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16431. s//\1/
  16432. q
  16433. }
  16434. /^X\(\/\/\)[^/].*/{
  16435. s//\1/
  16436. q
  16437. }
  16438. /^X\(\/\/\)$/{
  16439. s//\1/
  16440. q
  16441. }
  16442. /^X\(\/\).*/{
  16443. s//\1/
  16444. q
  16445. }
  16446. s/.*/./; q'`/stamp-h$_am_stamp_count
  16447. ;;
  16448. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16449. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16450. ;;
  16451. esac
  16452. case $ac_file$ac_mode in
  16453. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16454. # Older Autoconf quotes --file arguments for eval, but not when files
  16455. # are listed without --file. Let's play safe and only enable the eval
  16456. # if we detect the quoting.
  16457. case $CONFIG_FILES in
  16458. *\'*) eval set x "$CONFIG_FILES" ;;
  16459. *) set x $CONFIG_FILES ;;
  16460. esac
  16461. shift
  16462. for mf
  16463. do
  16464. # Strip MF so we end up with the name of the file.
  16465. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16466. # Check whether this is an Automake generated Makefile or not.
  16467. # We used to match only the files named 'Makefile.in', but
  16468. # some people rename them; so instead we look at the file content.
  16469. # Grep'ing the first line is not enough: some people post-process
  16470. # each Makefile.in and add a new line on top of each file to say so.
  16471. # Grep'ing the whole file is not good either: AIX grep has a line
  16472. # limit of 2048, but all sed's we know have understand at least 4000.
  16473. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16474. dirpart=`$as_dirname -- "$mf" ||
  16475. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16476. X"$mf" : 'X\(//\)[^/]' \| \
  16477. X"$mf" : 'X\(//\)$' \| \
  16478. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16479. $as_echo X"$mf" |
  16480. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16481. s//\1/
  16482. q
  16483. }
  16484. /^X\(\/\/\)[^/].*/{
  16485. s//\1/
  16486. q
  16487. }
  16488. /^X\(\/\/\)$/{
  16489. s//\1/
  16490. q
  16491. }
  16492. /^X\(\/\).*/{
  16493. s//\1/
  16494. q
  16495. }
  16496. s/.*/./; q'`
  16497. else
  16498. continue
  16499. fi
  16500. # Extract the definition of DEPDIR, am__include, and am__quote
  16501. # from the Makefile without running 'make'.
  16502. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16503. test -z "$DEPDIR" && continue
  16504. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16505. test -z "$am__include" && continue
  16506. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16507. # Find all dependency output files, they are included files with
  16508. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16509. # simplest approach to changing $(DEPDIR) to its actual value in the
  16510. # expansion.
  16511. for file in `sed -n "
  16512. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16513. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  16514. # Make sure the directory exists.
  16515. test -f "$dirpart/$file" && continue
  16516. fdir=`$as_dirname -- "$file" ||
  16517. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16518. X"$file" : 'X\(//\)[^/]' \| \
  16519. X"$file" : 'X\(//\)$' \| \
  16520. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16521. $as_echo X"$file" |
  16522. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16523. s//\1/
  16524. q
  16525. }
  16526. /^X\(\/\/\)[^/].*/{
  16527. s//\1/
  16528. q
  16529. }
  16530. /^X\(\/\/\)$/{
  16531. s//\1/
  16532. q
  16533. }
  16534. /^X\(\/\).*/{
  16535. s//\1/
  16536. q
  16537. }
  16538. s/.*/./; q'`
  16539. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16540. # echo "creating $dirpart/$file"
  16541. echo '# dummy' > "$dirpart/$file"
  16542. done
  16543. done
  16544. }
  16545. ;;
  16546. "libtool":C)
  16547. # See if we are running on zsh, and set the options which allow our
  16548. # commands through without removal of \ escapes.
  16549. if test -n "${ZSH_VERSION+set}" ; then
  16550. setopt NO_GLOB_SUBST
  16551. fi
  16552. cfgfile="${ofile}T"
  16553. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16554. $RM "$cfgfile"
  16555. cat <<_LT_EOF >> "$cfgfile"
  16556. #! $SHELL
  16557. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16558. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  16559. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16560. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16561. #
  16562. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  16563. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  16564. # Foundation, Inc.
  16565. # Written by Gordon Matzigkeit, 1996
  16566. #
  16567. # This file is part of GNU Libtool.
  16568. #
  16569. # GNU Libtool is free software; you can redistribute it and/or
  16570. # modify it under the terms of the GNU General Public License as
  16571. # published by the Free Software Foundation; either version 2 of
  16572. # the License, or (at your option) any later version.
  16573. #
  16574. # As a special exception to the GNU General Public License,
  16575. # if you distribute this file as part of a program or library that
  16576. # is built using GNU Libtool, you may include this file under the
  16577. # same distribution terms that you use for the rest of that program.
  16578. #
  16579. # GNU Libtool is distributed in the hope that it will be useful,
  16580. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16581. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16582. # GNU General Public License for more details.
  16583. #
  16584. # You should have received a copy of the GNU General Public License
  16585. # along with GNU Libtool; see the file COPYING. If not, a copy
  16586. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  16587. # obtained by writing to the Free Software Foundation, Inc.,
  16588. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16589. # The names of the tagged configurations supported by this script.
  16590. available_tags="CXX "
  16591. # ### BEGIN LIBTOOL CONFIG
  16592. # Which release of libtool.m4 was used?
  16593. macro_version=$macro_version
  16594. macro_revision=$macro_revision
  16595. # Assembler program.
  16596. AS=$lt_AS
  16597. # DLL creation program.
  16598. DLLTOOL=$lt_DLLTOOL
  16599. # Object dumper program.
  16600. OBJDUMP=$lt_OBJDUMP
  16601. # Whether or not to build shared libraries.
  16602. build_libtool_libs=$enable_shared
  16603. # Whether or not to build static libraries.
  16604. build_old_libs=$enable_static
  16605. # What type of objects to build.
  16606. pic_mode=$pic_mode
  16607. # Whether or not to optimize for fast installation.
  16608. fast_install=$enable_fast_install
  16609. # Shell to use when invoking shell scripts.
  16610. SHELL=$lt_SHELL
  16611. # An echo program that protects backslashes.
  16612. ECHO=$lt_ECHO
  16613. # The PATH separator for the build system.
  16614. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  16615. # The host system.
  16616. host_alias=$host_alias
  16617. host=$host
  16618. host_os=$host_os
  16619. # The build system.
  16620. build_alias=$build_alias
  16621. build=$build
  16622. build_os=$build_os
  16623. # A sed program that does not truncate output.
  16624. SED=$lt_SED
  16625. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16626. Xsed="\$SED -e 1s/^X//"
  16627. # A grep program that handles long lines.
  16628. GREP=$lt_GREP
  16629. # An ERE matcher.
  16630. EGREP=$lt_EGREP
  16631. # A literal string matcher.
  16632. FGREP=$lt_FGREP
  16633. # A BSD- or MS-compatible name lister.
  16634. NM=$lt_NM
  16635. # Whether we need soft or hard links.
  16636. LN_S=$lt_LN_S
  16637. # What is the maximum length of a command?
  16638. max_cmd_len=$max_cmd_len
  16639. # Object file suffix (normally "o").
  16640. objext=$ac_objext
  16641. # Executable file suffix (normally "").
  16642. exeext=$exeext
  16643. # whether the shell understands "unset".
  16644. lt_unset=$lt_unset
  16645. # turn spaces into newlines.
  16646. SP2NL=$lt_lt_SP2NL
  16647. # turn newlines into spaces.
  16648. NL2SP=$lt_lt_NL2SP
  16649. # convert \$build file names to \$host format.
  16650. to_host_file_cmd=$lt_cv_to_host_file_cmd
  16651. # convert \$build files to toolchain format.
  16652. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  16653. # Method to check whether dependent libraries are shared objects.
  16654. deplibs_check_method=$lt_deplibs_check_method
  16655. # Command to use when deplibs_check_method = "file_magic".
  16656. file_magic_cmd=$lt_file_magic_cmd
  16657. # How to find potential files when deplibs_check_method = "file_magic".
  16658. file_magic_glob=$lt_file_magic_glob
  16659. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  16660. want_nocaseglob=$lt_want_nocaseglob
  16661. # Command to associate shared and link libraries.
  16662. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  16663. # The archiver.
  16664. AR=$lt_AR
  16665. # Flags to create an archive.
  16666. AR_FLAGS=$lt_AR_FLAGS
  16667. # How to feed a file listing to the archiver.
  16668. archiver_list_spec=$lt_archiver_list_spec
  16669. # A symbol stripping program.
  16670. STRIP=$lt_STRIP
  16671. # Commands used to install an old-style archive.
  16672. RANLIB=$lt_RANLIB
  16673. old_postinstall_cmds=$lt_old_postinstall_cmds
  16674. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16675. # Whether to use a lock for old archive extraction.
  16676. lock_old_archive_extraction=$lock_old_archive_extraction
  16677. # A C compiler.
  16678. LTCC=$lt_CC
  16679. # LTCC compiler flags.
  16680. LTCFLAGS=$lt_CFLAGS
  16681. # Take the output of nm and produce a listing of raw symbols and C names.
  16682. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16683. # Transform the output of nm in a proper C declaration.
  16684. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16685. # Transform the output of nm in a C name address pair.
  16686. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16687. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16688. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16689. # Specify filename containing input files for \$NM.
  16690. nm_file_list_spec=$lt_nm_file_list_spec
  16691. # The root where to search for dependent libraries,and in which our libraries should be installed.
  16692. lt_sysroot=$lt_sysroot
  16693. # The name of the directory that contains temporary libtool files.
  16694. objdir=$objdir
  16695. # Used to examine libraries when file_magic_cmd begins with "file".
  16696. MAGIC_CMD=$MAGIC_CMD
  16697. # Must we lock files when doing compilation?
  16698. need_locks=$lt_need_locks
  16699. # Manifest tool.
  16700. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16701. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16702. DSYMUTIL=$lt_DSYMUTIL
  16703. # Tool to change global to local symbols on Mac OS X.
  16704. NMEDIT=$lt_NMEDIT
  16705. # Tool to manipulate fat objects and archives on Mac OS X.
  16706. LIPO=$lt_LIPO
  16707. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16708. OTOOL=$lt_OTOOL
  16709. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16710. OTOOL64=$lt_OTOOL64
  16711. # Old archive suffix (normally "a").
  16712. libext=$libext
  16713. # Shared library suffix (normally ".so").
  16714. shrext_cmds=$lt_shrext_cmds
  16715. # The commands to extract the exported symbol list from a shared archive.
  16716. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16717. # Variables whose values should be saved in libtool wrapper scripts and
  16718. # restored at link time.
  16719. variables_saved_for_relink=$lt_variables_saved_for_relink
  16720. # Do we need the "lib" prefix for modules?
  16721. need_lib_prefix=$need_lib_prefix
  16722. # Do we need a version for libraries?
  16723. need_version=$need_version
  16724. # Library versioning type.
  16725. version_type=$version_type
  16726. # Shared library runtime path variable.
  16727. runpath_var=$runpath_var
  16728. # Shared library path variable.
  16729. shlibpath_var=$shlibpath_var
  16730. # Is shlibpath searched before the hard-coded library search path?
  16731. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16732. # Format of library name prefix.
  16733. libname_spec=$lt_libname_spec
  16734. # List of archive names. First name is the real one, the rest are links.
  16735. # The last name is the one that the linker finds with -lNAME
  16736. library_names_spec=$lt_library_names_spec
  16737. # The coded name of the library, if different from the real name.
  16738. soname_spec=$lt_soname_spec
  16739. # Permission mode override for installation of shared libraries.
  16740. install_override_mode=$lt_install_override_mode
  16741. # Command to use after installation of a shared archive.
  16742. postinstall_cmds=$lt_postinstall_cmds
  16743. # Command to use after uninstallation of a shared archive.
  16744. postuninstall_cmds=$lt_postuninstall_cmds
  16745. # Commands used to finish a libtool library installation in a directory.
  16746. finish_cmds=$lt_finish_cmds
  16747. # As "finish_cmds", except a single script fragment to be evaled but
  16748. # not shown.
  16749. finish_eval=$lt_finish_eval
  16750. # Whether we should hardcode library paths into libraries.
  16751. hardcode_into_libs=$hardcode_into_libs
  16752. # Compile-time system search path for libraries.
  16753. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16754. # Run-time system search path for libraries.
  16755. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16756. # Whether dlopen is supported.
  16757. dlopen_support=$enable_dlopen
  16758. # Whether dlopen of programs is supported.
  16759. dlopen_self=$enable_dlopen_self
  16760. # Whether dlopen of statically linked programs is supported.
  16761. dlopen_self_static=$enable_dlopen_self_static
  16762. # Commands to strip libraries.
  16763. old_striplib=$lt_old_striplib
  16764. striplib=$lt_striplib
  16765. # The linker used to build libraries.
  16766. LD=$lt_LD
  16767. # How to create reloadable object files.
  16768. reload_flag=$lt_reload_flag
  16769. reload_cmds=$lt_reload_cmds
  16770. # Commands used to build an old-style archive.
  16771. old_archive_cmds=$lt_old_archive_cmds
  16772. # A language specific compiler.
  16773. CC=$lt_compiler
  16774. # Is the compiler the GNU compiler?
  16775. with_gcc=$GCC
  16776. # Compiler flag to turn off builtin functions.
  16777. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16778. # Additional compiler flags for building library objects.
  16779. pic_flag=$lt_lt_prog_compiler_pic
  16780. # How to pass a linker flag through the compiler.
  16781. wl=$lt_lt_prog_compiler_wl
  16782. # Compiler flag to prevent dynamic linking.
  16783. link_static_flag=$lt_lt_prog_compiler_static
  16784. # Does compiler simultaneously support -c and -o options?
  16785. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16786. # Whether or not to add -lc for building shared libraries.
  16787. build_libtool_need_lc=$archive_cmds_need_lc
  16788. # Whether or not to disallow shared libs when runtime libs are static.
  16789. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16790. # Compiler flag to allow reflexive dlopens.
  16791. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16792. # Compiler flag to generate shared objects directly from archives.
  16793. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16794. # Whether the compiler copes with passing no objects directly.
  16795. compiler_needs_object=$lt_compiler_needs_object
  16796. # Create an old-style archive from a shared archive.
  16797. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16798. # Create a temporary old-style archive to link instead of a shared archive.
  16799. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16800. # Commands used to build a shared archive.
  16801. archive_cmds=$lt_archive_cmds
  16802. archive_expsym_cmds=$lt_archive_expsym_cmds
  16803. # Commands used to build a loadable module if different from building
  16804. # a shared archive.
  16805. module_cmds=$lt_module_cmds
  16806. module_expsym_cmds=$lt_module_expsym_cmds
  16807. # Whether we are building with GNU ld or not.
  16808. with_gnu_ld=$lt_with_gnu_ld
  16809. # Flag that allows shared libraries with undefined symbols to be built.
  16810. allow_undefined_flag=$lt_allow_undefined_flag
  16811. # Flag that enforces no undefined symbols.
  16812. no_undefined_flag=$lt_no_undefined_flag
  16813. # Flag to hardcode \$libdir into a binary during linking.
  16814. # This must work even if \$libdir does not exist
  16815. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16816. # Whether we need a single "-rpath" flag with a separated argument.
  16817. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16818. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16819. # DIR into the resulting binary.
  16820. hardcode_direct=$hardcode_direct
  16821. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16822. # DIR into the resulting binary and the resulting library dependency is
  16823. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16824. # library is relocated.
  16825. hardcode_direct_absolute=$hardcode_direct_absolute
  16826. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16827. # into the resulting binary.
  16828. hardcode_minus_L=$hardcode_minus_L
  16829. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16830. # into the resulting binary.
  16831. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16832. # Set to "yes" if building a shared library automatically hardcodes DIR
  16833. # into the library and all subsequent libraries and executables linked
  16834. # against it.
  16835. hardcode_automatic=$hardcode_automatic
  16836. # Set to yes if linker adds runtime paths of dependent libraries
  16837. # to runtime path list.
  16838. inherit_rpath=$inherit_rpath
  16839. # Whether libtool must link a program against all its dependency libraries.
  16840. link_all_deplibs=$link_all_deplibs
  16841. # Set to "yes" if exported symbols are required.
  16842. always_export_symbols=$always_export_symbols
  16843. # The commands to list exported symbols.
  16844. export_symbols_cmds=$lt_export_symbols_cmds
  16845. # Symbols that should not be listed in the preloaded symbols.
  16846. exclude_expsyms=$lt_exclude_expsyms
  16847. # Symbols that must always be exported.
  16848. include_expsyms=$lt_include_expsyms
  16849. # Commands necessary for linking programs (against libraries) with templates.
  16850. prelink_cmds=$lt_prelink_cmds
  16851. # Commands necessary for finishing linking programs.
  16852. postlink_cmds=$lt_postlink_cmds
  16853. # Specify filename containing input files.
  16854. file_list_spec=$lt_file_list_spec
  16855. # How to hardcode a shared library path into an executable.
  16856. hardcode_action=$hardcode_action
  16857. # The directories searched by this compiler when creating a shared library.
  16858. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16859. # Dependencies to place before and after the objects being linked to
  16860. # create a shared library.
  16861. predep_objects=$lt_predep_objects
  16862. postdep_objects=$lt_postdep_objects
  16863. predeps=$lt_predeps
  16864. postdeps=$lt_postdeps
  16865. # The library search path used internally by the compiler when linking
  16866. # a shared library.
  16867. compiler_lib_search_path=$lt_compiler_lib_search_path
  16868. # ### END LIBTOOL CONFIG
  16869. _LT_EOF
  16870. case $host_os in
  16871. aix3*)
  16872. cat <<\_LT_EOF >> "$cfgfile"
  16873. # AIX sometimes has problems with the GCC collect2 program. For some
  16874. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16875. # vanish in a puff of smoke.
  16876. if test "X${COLLECT_NAMES+set}" != Xset; then
  16877. COLLECT_NAMES=
  16878. export COLLECT_NAMES
  16879. fi
  16880. _LT_EOF
  16881. ;;
  16882. esac
  16883. ltmain="$ac_aux_dir/ltmain.sh"
  16884. # We use sed instead of cat because bash on DJGPP gets confused if
  16885. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16886. # text mode, it properly converts lines to CR/LF. This bash problem
  16887. # is reportedly fixed, but why not run on old versions too?
  16888. sed '$q' "$ltmain" >> "$cfgfile" \
  16889. || (rm -f "$cfgfile"; exit 1)
  16890. if test x"$xsi_shell" = xyes; then
  16891. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  16892. func_dirname ()\
  16893. {\
  16894. \ case ${1} in\
  16895. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16896. \ * ) func_dirname_result="${3}" ;;\
  16897. \ esac\
  16898. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  16899. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16900. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16901. test 0 -eq $? || _lt_function_replace_fail=:
  16902. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  16903. func_basename ()\
  16904. {\
  16905. \ func_basename_result="${1##*/}"\
  16906. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16907. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16908. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16909. test 0 -eq $? || _lt_function_replace_fail=:
  16910. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  16911. func_dirname_and_basename ()\
  16912. {\
  16913. \ case ${1} in\
  16914. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16915. \ * ) func_dirname_result="${3}" ;;\
  16916. \ esac\
  16917. \ func_basename_result="${1##*/}"\
  16918. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16919. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16920. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16921. test 0 -eq $? || _lt_function_replace_fail=:
  16922. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  16923. func_stripname ()\
  16924. {\
  16925. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  16926. \ # positional parameters, so assign one to ordinary parameter first.\
  16927. \ func_stripname_result=${3}\
  16928. \ func_stripname_result=${func_stripname_result#"${1}"}\
  16929. \ func_stripname_result=${func_stripname_result%"${2}"}\
  16930. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  16931. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16932. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16933. test 0 -eq $? || _lt_function_replace_fail=:
  16934. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  16935. func_split_long_opt ()\
  16936. {\
  16937. \ func_split_long_opt_name=${1%%=*}\
  16938. \ func_split_long_opt_arg=${1#*=}\
  16939. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16940. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16941. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16942. test 0 -eq $? || _lt_function_replace_fail=:
  16943. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  16944. func_split_short_opt ()\
  16945. {\
  16946. \ func_split_short_opt_arg=${1#??}\
  16947. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  16948. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16949. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16950. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16951. test 0 -eq $? || _lt_function_replace_fail=:
  16952. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  16953. func_lo2o ()\
  16954. {\
  16955. \ case ${1} in\
  16956. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  16957. \ *) func_lo2o_result=${1} ;;\
  16958. \ esac\
  16959. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  16960. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16961. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16962. test 0 -eq $? || _lt_function_replace_fail=:
  16963. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  16964. func_xform ()\
  16965. {\
  16966. func_xform_result=${1%.*}.lo\
  16967. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  16968. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16969. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16970. test 0 -eq $? || _lt_function_replace_fail=:
  16971. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  16972. func_arith ()\
  16973. {\
  16974. func_arith_result=$(( $* ))\
  16975. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  16976. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16977. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16978. test 0 -eq $? || _lt_function_replace_fail=:
  16979. sed -e '/^func_len ()$/,/^} # func_len /c\
  16980. func_len ()\
  16981. {\
  16982. func_len_result=${#1}\
  16983. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  16984. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16985. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16986. test 0 -eq $? || _lt_function_replace_fail=:
  16987. fi
  16988. if test x"$lt_shell_append" = xyes; then
  16989. sed -e '/^func_append ()$/,/^} # func_append /c\
  16990. func_append ()\
  16991. {\
  16992. eval "${1}+=\\${2}"\
  16993. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  16994. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16995. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16996. test 0 -eq $? || _lt_function_replace_fail=:
  16997. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  16998. func_append_quoted ()\
  16999. {\
  17000. \ func_quote_for_eval "${2}"\
  17001. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  17002. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  17003. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17004. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17005. test 0 -eq $? || _lt_function_replace_fail=:
  17006. # Save a `func_append' function call where possible by direct use of '+='
  17007. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  17008. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17009. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17010. test 0 -eq $? || _lt_function_replace_fail=:
  17011. else
  17012. # Save a `func_append' function call even when '+=' is not available
  17013. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  17014. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17015. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17016. test 0 -eq $? || _lt_function_replace_fail=:
  17017. fi
  17018. if test x"$_lt_function_replace_fail" = x":"; then
  17019. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  17020. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  17021. fi
  17022. mv -f "$cfgfile" "$ofile" ||
  17023. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  17024. chmod +x "$ofile"
  17025. cat <<_LT_EOF >> "$ofile"
  17026. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  17027. # The linker used to build libraries.
  17028. LD=$lt_LD_CXX
  17029. # How to create reloadable object files.
  17030. reload_flag=$lt_reload_flag_CXX
  17031. reload_cmds=$lt_reload_cmds_CXX
  17032. # Commands used to build an old-style archive.
  17033. old_archive_cmds=$lt_old_archive_cmds_CXX
  17034. # A language specific compiler.
  17035. CC=$lt_compiler_CXX
  17036. # Is the compiler the GNU compiler?
  17037. with_gcc=$GCC_CXX
  17038. # Compiler flag to turn off builtin functions.
  17039. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  17040. # Additional compiler flags for building library objects.
  17041. pic_flag=$lt_lt_prog_compiler_pic_CXX
  17042. # How to pass a linker flag through the compiler.
  17043. wl=$lt_lt_prog_compiler_wl_CXX
  17044. # Compiler flag to prevent dynamic linking.
  17045. link_static_flag=$lt_lt_prog_compiler_static_CXX
  17046. # Does compiler simultaneously support -c and -o options?
  17047. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  17048. # Whether or not to add -lc for building shared libraries.
  17049. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  17050. # Whether or not to disallow shared libs when runtime libs are static.
  17051. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  17052. # Compiler flag to allow reflexive dlopens.
  17053. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  17054. # Compiler flag to generate shared objects directly from archives.
  17055. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  17056. # Whether the compiler copes with passing no objects directly.
  17057. compiler_needs_object=$lt_compiler_needs_object_CXX
  17058. # Create an old-style archive from a shared archive.
  17059. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  17060. # Create a temporary old-style archive to link instead of a shared archive.
  17061. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  17062. # Commands used to build a shared archive.
  17063. archive_cmds=$lt_archive_cmds_CXX
  17064. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  17065. # Commands used to build a loadable module if different from building
  17066. # a shared archive.
  17067. module_cmds=$lt_module_cmds_CXX
  17068. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  17069. # Whether we are building with GNU ld or not.
  17070. with_gnu_ld=$lt_with_gnu_ld_CXX
  17071. # Flag that allows shared libraries with undefined symbols to be built.
  17072. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  17073. # Flag that enforces no undefined symbols.
  17074. no_undefined_flag=$lt_no_undefined_flag_CXX
  17075. # Flag to hardcode \$libdir into a binary during linking.
  17076. # This must work even if \$libdir does not exist
  17077. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  17078. # Whether we need a single "-rpath" flag with a separated argument.
  17079. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  17080. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17081. # DIR into the resulting binary.
  17082. hardcode_direct=$hardcode_direct_CXX
  17083. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17084. # DIR into the resulting binary and the resulting library dependency is
  17085. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  17086. # library is relocated.
  17087. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  17088. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17089. # into the resulting binary.
  17090. hardcode_minus_L=$hardcode_minus_L_CXX
  17091. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17092. # into the resulting binary.
  17093. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  17094. # Set to "yes" if building a shared library automatically hardcodes DIR
  17095. # into the library and all subsequent libraries and executables linked
  17096. # against it.
  17097. hardcode_automatic=$hardcode_automatic_CXX
  17098. # Set to yes if linker adds runtime paths of dependent libraries
  17099. # to runtime path list.
  17100. inherit_rpath=$inherit_rpath_CXX
  17101. # Whether libtool must link a program against all its dependency libraries.
  17102. link_all_deplibs=$link_all_deplibs_CXX
  17103. # Set to "yes" if exported symbols are required.
  17104. always_export_symbols=$always_export_symbols_CXX
  17105. # The commands to list exported symbols.
  17106. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  17107. # Symbols that should not be listed in the preloaded symbols.
  17108. exclude_expsyms=$lt_exclude_expsyms_CXX
  17109. # Symbols that must always be exported.
  17110. include_expsyms=$lt_include_expsyms_CXX
  17111. # Commands necessary for linking programs (against libraries) with templates.
  17112. prelink_cmds=$lt_prelink_cmds_CXX
  17113. # Commands necessary for finishing linking programs.
  17114. postlink_cmds=$lt_postlink_cmds_CXX
  17115. # Specify filename containing input files.
  17116. file_list_spec=$lt_file_list_spec_CXX
  17117. # How to hardcode a shared library path into an executable.
  17118. hardcode_action=$hardcode_action_CXX
  17119. # The directories searched by this compiler when creating a shared library.
  17120. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  17121. # Dependencies to place before and after the objects being linked to
  17122. # create a shared library.
  17123. predep_objects=$lt_predep_objects_CXX
  17124. postdep_objects=$lt_postdep_objects_CXX
  17125. predeps=$lt_predeps_CXX
  17126. postdeps=$lt_postdeps_CXX
  17127. # The library search path used internally by the compiler when linking
  17128. # a shared library.
  17129. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  17130. # ### END LIBTOOL TAG CONFIG: CXX
  17131. _LT_EOF
  17132. ;;
  17133. "dddmp/exp/test1.sh":F) chmod +x dddmp/exp/test1.sh ;;
  17134. "dddmp/exp/test2.sh":F) chmod +x dddmp/exp/test2.sh ;;
  17135. "dddmp/exp/test3.sh":F) chmod +x dddmp/exp/test3.sh ;;
  17136. "dddmp/exp/test4.sh":F) chmod +x dddmp/exp/test4.sh ;;
  17137. "dddmp/exp/test5.sh":F) chmod +x dddmp/exp/test5.sh ;;
  17138. "dddmp/exp/test6.sh":F) chmod +x dddmp/exp/test6.sh ;;
  17139. "dddmp/exp/test7.sh":F) chmod +x dddmp/exp/test7.sh ;;
  17140. esac
  17141. done # for ac_tag
  17142. as_fn_exit 0
  17143. _ACEOF
  17144. ac_clean_files=$ac_clean_files_save
  17145. test $ac_write_fail = 0 ||
  17146. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  17147. # configure is writing to config.log, and then calls config.status.
  17148. # config.status does its own redirection, appending to config.log.
  17149. # Unfortunately, on DOS this fails, as config.log is still kept open
  17150. # by configure, so config.status won't be able to write to it; its
  17151. # output is simply discarded. So we exec the FD to /dev/null,
  17152. # effectively closing config.log, so it can be properly (re)opened and
  17153. # appended to by config.status. When coming back to configure, we
  17154. # need to make the FD available again.
  17155. if test "$no_create" != yes; then
  17156. ac_cs_success=:
  17157. ac_config_status_args=
  17158. test "$silent" = yes &&
  17159. ac_config_status_args="$ac_config_status_args --quiet"
  17160. exec 5>/dev/null
  17161. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17162. exec 5>>config.log
  17163. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17164. # would make configure fail if this is the last instruction.
  17165. $ac_cs_success || as_fn_exit 1
  17166. fi
  17167. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17168. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17169. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17170. fi
  17171. echo \
  17172. "--------------------------------------------------
  17173. Configuration summary for ${PACKAGE_NAME} ${PACKAGE_VERSION}
  17174. Build system : ${build}
  17175. Host system : ${host}
  17176. Prefix : '${prefix}'
  17177. Compilers : '${CC} ${AM_CPPFLAGS} ${CPPFLAGS} ${AM_CFLAGS} ${CFLAGS}'
  17178. : '${CXX} ${AM_CPPFLAGS} ${CPPFLAGS} ${AM_CXXFLAGS} ${CXXFLAGS}'
  17179. Shared library : ${enable_shared}
  17180. dddmp enabled : ${enable_dddmp:-no}
  17181. obj enabled : ${enable_obj:-no}
  17182. --------------------------------------------------"