PageRenderTime 134ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 4ms

/mythes-1.2.3/configure

#
Shell | 16292 lines | 12723 code | 1964 blank | 1605 comment | 1513 complexity | a8ab7fa87db8f50ec7b65e3d6f75771e MD5 | raw file
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.68 for mythes 1.2.3.
  4. #
  5. # Report bugs to <nemeth@openoffice.org>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  10. # Foundation, Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. as_myself=
  88. case $0 in #((
  89. *[\\/]* ) as_myself=$0 ;;
  90. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  91. for as_dir in $PATH
  92. do
  93. IFS=$as_save_IFS
  94. test -z "$as_dir" && as_dir=.
  95. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  96. done
  97. IFS=$as_save_IFS
  98. ;;
  99. esac
  100. # We did not find ourselves, most probably we were run as `sh COMMAND'
  101. # in which case we are not to be found in the path.
  102. if test "x$as_myself" = x; then
  103. as_myself=$0
  104. fi
  105. if test ! -f "$as_myself"; then
  106. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  107. exit 1
  108. fi
  109. # Unset variables that we do not need and which cause bugs (e.g. in
  110. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  111. # suppresses any "Segmentation fault" message there. '((' could
  112. # trigger a bug in pdksh 5.2.14.
  113. for as_var in BASH_ENV ENV MAIL MAILPATH
  114. do eval test x\${$as_var+set} = xset \
  115. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  116. done
  117. PS1='$ '
  118. PS2='> '
  119. PS4='+ '
  120. # NLS nuisances.
  121. LC_ALL=C
  122. export LC_ALL
  123. LANGUAGE=C
  124. export LANGUAGE
  125. # CDPATH.
  126. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  127. if test "x$CONFIG_SHELL" = x; then
  128. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  129. emulate sh
  130. NULLCMD=:
  131. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  132. # is contrary to our usage. Disable this feature.
  133. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  134. setopt NO_GLOB_SUBST
  135. else
  136. case \`(set -o) 2>/dev/null\` in #(
  137. *posix*) :
  138. set -o posix ;; #(
  139. *) :
  140. ;;
  141. esac
  142. fi
  143. "
  144. as_required="as_fn_return () { (exit \$1); }
  145. as_fn_success () { as_fn_return 0; }
  146. as_fn_failure () { as_fn_return 1; }
  147. as_fn_ret_success () { return 0; }
  148. as_fn_ret_failure () { return 1; }
  149. exitcode=0
  150. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  151. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  152. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  153. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  154. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  155. else
  156. exitcode=1; echo positional parameters were not saved.
  157. fi
  158. test x\$exitcode = x0 || exit 1"
  159. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  160. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  161. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  162. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  163. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  164. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  165. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  166. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  167. PATH=/empty FPATH=/empty; export PATH FPATH
  168. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  169. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  170. test \$(( 1 + 1 )) = 2 || exit 1"
  171. if (eval "$as_required") 2>/dev/null; then :
  172. as_have_required=yes
  173. else
  174. as_have_required=no
  175. fi
  176. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  177. else
  178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  179. as_found=false
  180. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  181. do
  182. IFS=$as_save_IFS
  183. test -z "$as_dir" && as_dir=.
  184. as_found=:
  185. case $as_dir in #(
  186. /*)
  187. for as_base in sh bash ksh sh5; do
  188. # Try only shells that exist, to save several forks.
  189. as_shell=$as_dir/$as_base
  190. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  191. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  192. CONFIG_SHELL=$as_shell as_have_required=yes
  193. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  194. break 2
  195. fi
  196. fi
  197. done;;
  198. esac
  199. as_found=false
  200. done
  201. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  202. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  203. CONFIG_SHELL=$SHELL as_have_required=yes
  204. fi; }
  205. IFS=$as_save_IFS
  206. if test "x$CONFIG_SHELL" != x; then :
  207. # We cannot yet assume a decent shell, so we have to provide a
  208. # neutralization value for shells without unset; and this also
  209. # works around shells that cannot unset nonexistent variables.
  210. # Preserve -v and -x to the replacement shell.
  211. BASH_ENV=/dev/null
  212. ENV=/dev/null
  213. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  214. export CONFIG_SHELL
  215. case $- in # ((((
  216. *v*x* | *x*v* ) as_opts=-vx ;;
  217. *v* ) as_opts=-v ;;
  218. *x* ) as_opts=-x ;;
  219. * ) as_opts= ;;
  220. esac
  221. exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
  222. fi
  223. if test x$as_have_required = xno; then :
  224. $as_echo "$0: This script requires a shell more modern than all"
  225. $as_echo "$0: the shells that I found on your system."
  226. if test x${ZSH_VERSION+set} = xset ; then
  227. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  228. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  229. else
  230. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  231. $0: nemeth@openoffice.org about your system, including any
  232. $0: error possibly output before this message. Then install
  233. $0: a modern shell, or manually run the script under such a
  234. $0: shell if you do have one."
  235. fi
  236. exit 1
  237. fi
  238. fi
  239. fi
  240. SHELL=${CONFIG_SHELL-/bin/sh}
  241. export SHELL
  242. # Unset more variables known to interfere with behavior of common tools.
  243. CLICOLOR_FORCE= GREP_OPTIONS=
  244. unset CLICOLOR_FORCE GREP_OPTIONS
  245. ## --------------------- ##
  246. ## M4sh Shell Functions. ##
  247. ## --------------------- ##
  248. # as_fn_unset VAR
  249. # ---------------
  250. # Portably unset VAR.
  251. as_fn_unset ()
  252. {
  253. { eval $1=; unset $1;}
  254. }
  255. as_unset=as_fn_unset
  256. # as_fn_set_status STATUS
  257. # -----------------------
  258. # Set $? to STATUS, without forking.
  259. as_fn_set_status ()
  260. {
  261. return $1
  262. } # as_fn_set_status
  263. # as_fn_exit STATUS
  264. # -----------------
  265. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  266. as_fn_exit ()
  267. {
  268. set +e
  269. as_fn_set_status $1
  270. exit $1
  271. } # as_fn_exit
  272. # as_fn_mkdir_p
  273. # -------------
  274. # Create "$as_dir" as a directory, including parents if necessary.
  275. as_fn_mkdir_p ()
  276. {
  277. case $as_dir in #(
  278. -*) as_dir=./$as_dir;;
  279. esac
  280. test -d "$as_dir" || eval $as_mkdir_p || {
  281. as_dirs=
  282. while :; do
  283. case $as_dir in #(
  284. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  285. *) as_qdir=$as_dir;;
  286. esac
  287. as_dirs="'$as_qdir' $as_dirs"
  288. as_dir=`$as_dirname -- "$as_dir" ||
  289. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  290. X"$as_dir" : 'X\(//\)[^/]' \| \
  291. X"$as_dir" : 'X\(//\)$' \| \
  292. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  293. $as_echo X"$as_dir" |
  294. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  295. s//\1/
  296. q
  297. }
  298. /^X\(\/\/\)[^/].*/{
  299. s//\1/
  300. q
  301. }
  302. /^X\(\/\/\)$/{
  303. s//\1/
  304. q
  305. }
  306. /^X\(\/\).*/{
  307. s//\1/
  308. q
  309. }
  310. s/.*/./; q'`
  311. test -d "$as_dir" && break
  312. done
  313. test -z "$as_dirs" || eval "mkdir $as_dirs"
  314. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  315. } # as_fn_mkdir_p
  316. # as_fn_append VAR VALUE
  317. # ----------------------
  318. # Append the text in VALUE to the end of the definition contained in VAR. Take
  319. # advantage of any shell optimizations that allow amortized linear growth over
  320. # repeated appends, instead of the typical quadratic growth present in naive
  321. # implementations.
  322. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  323. eval 'as_fn_append ()
  324. {
  325. eval $1+=\$2
  326. }'
  327. else
  328. as_fn_append ()
  329. {
  330. eval $1=\$$1\$2
  331. }
  332. fi # as_fn_append
  333. # as_fn_arith ARG...
  334. # ------------------
  335. # Perform arithmetic evaluation on the ARGs, and store the result in the
  336. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  337. # must be portable across $(()) and expr.
  338. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  339. eval 'as_fn_arith ()
  340. {
  341. as_val=$(( $* ))
  342. }'
  343. else
  344. as_fn_arith ()
  345. {
  346. as_val=`expr "$@" || test $? -eq 1`
  347. }
  348. fi # as_fn_arith
  349. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  350. # ----------------------------------------
  351. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  352. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  353. # script with STATUS, using 1 if that was 0.
  354. as_fn_error ()
  355. {
  356. as_status=$1; test $as_status -eq 0 && as_status=1
  357. if test "$4"; then
  358. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  359. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  360. fi
  361. $as_echo "$as_me: error: $2" >&2
  362. as_fn_exit $as_status
  363. } # as_fn_error
  364. if expr a : '\(a\)' >/dev/null 2>&1 &&
  365. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  366. as_expr=expr
  367. else
  368. as_expr=false
  369. fi
  370. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  371. as_basename=basename
  372. else
  373. as_basename=false
  374. fi
  375. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  376. as_dirname=dirname
  377. else
  378. as_dirname=false
  379. fi
  380. as_me=`$as_basename -- "$0" ||
  381. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  382. X"$0" : 'X\(//\)$' \| \
  383. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  384. $as_echo X/"$0" |
  385. sed '/^.*\/\([^/][^/]*\)\/*$/{
  386. s//\1/
  387. q
  388. }
  389. /^X\/\(\/\/\)$/{
  390. s//\1/
  391. q
  392. }
  393. /^X\/\(\/\).*/{
  394. s//\1/
  395. q
  396. }
  397. s/.*/./; q'`
  398. # Avoid depending upon Character Ranges.
  399. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  400. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  401. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  402. as_cr_digits='0123456789'
  403. as_cr_alnum=$as_cr_Letters$as_cr_digits
  404. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  405. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  406. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  407. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  408. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  409. sed -n '
  410. p
  411. /[$]LINENO/=
  412. ' <$as_myself |
  413. sed '
  414. s/[$]LINENO.*/&-/
  415. t lineno
  416. b
  417. :lineno
  418. N
  419. :loop
  420. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  421. t loop
  422. s/-\n.*//
  423. ' >$as_me.lineno &&
  424. chmod +x "$as_me.lineno" ||
  425. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  426. # Don't try to exec as it changes $[0], causing all sort of problems
  427. # (the dirname of $[0] is not the place where we might find the
  428. # original and so on. Autoconf is especially sensitive to this).
  429. . "./$as_me.lineno"
  430. # Exit status is that of the last command.
  431. exit
  432. }
  433. ECHO_C= ECHO_N= ECHO_T=
  434. case `echo -n x` in #(((((
  435. -n*)
  436. case `echo 'xy\c'` in
  437. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  438. xy) ECHO_C='\c';;
  439. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  440. ECHO_T=' ';;
  441. esac;;
  442. *)
  443. ECHO_N='-n';;
  444. esac
  445. rm -f conf$$ conf$$.exe conf$$.file
  446. if test -d conf$$.dir; then
  447. rm -f conf$$.dir/conf$$.file
  448. else
  449. rm -f conf$$.dir
  450. mkdir conf$$.dir 2>/dev/null
  451. fi
  452. if (echo >conf$$.file) 2>/dev/null; then
  453. if ln -s conf$$.file conf$$ 2>/dev/null; then
  454. as_ln_s='ln -s'
  455. # ... but there are two gotchas:
  456. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  457. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  458. # In both cases, we have to default to `cp -p'.
  459. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  460. as_ln_s='cp -p'
  461. elif ln conf$$.file conf$$ 2>/dev/null; then
  462. as_ln_s=ln
  463. else
  464. as_ln_s='cp -p'
  465. fi
  466. else
  467. as_ln_s='cp -p'
  468. fi
  469. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  470. rmdir conf$$.dir 2>/dev/null
  471. if mkdir -p . 2>/dev/null; then
  472. as_mkdir_p='mkdir -p "$as_dir"'
  473. else
  474. test -d ./-p && rmdir ./-p
  475. as_mkdir_p=false
  476. fi
  477. if test -x / >/dev/null 2>&1; then
  478. as_test_x='test -x'
  479. else
  480. if ls -dL / >/dev/null 2>&1; then
  481. as_ls_L_option=L
  482. else
  483. as_ls_L_option=
  484. fi
  485. as_test_x='
  486. eval sh -c '\''
  487. if test -d "$1"; then
  488. test -d "$1/.";
  489. else
  490. case $1 in #(
  491. -*)set "./$1";;
  492. esac;
  493. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  494. ???[sx]*):;;*)false;;esac;fi
  495. '\'' sh
  496. '
  497. fi
  498. as_executable_p=$as_test_x
  499. # Sed expression to map a string onto a valid CPP name.
  500. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  501. # Sed expression to map a string onto a valid variable name.
  502. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  503. SHELL=${CONFIG_SHELL-/bin/sh}
  504. test -n "$DJDIR" || exec 7<&0 </dev/null
  505. exec 6>&1
  506. # Name of the host.
  507. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  508. # so uname gets run too.
  509. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  510. #
  511. # Initializations.
  512. #
  513. ac_default_prefix=/usr/local
  514. ac_clean_files=
  515. ac_config_libobj_dir=.
  516. LIBOBJS=
  517. cross_compiling=no
  518. subdirs=
  519. MFLAGS=
  520. MAKEFLAGS=
  521. # Identity of this package.
  522. PACKAGE_NAME='mythes'
  523. PACKAGE_TARNAME='mythes'
  524. PACKAGE_VERSION='1.2.3'
  525. PACKAGE_STRING='mythes 1.2.3'
  526. PACKAGE_BUGREPORT='nemeth@openoffice.org'
  527. PACKAGE_URL=''
  528. ac_unique_file="config.h.in"
  529. # Factoring default headers for most tests.
  530. ac_includes_default="\
  531. #include <stdio.h>
  532. #ifdef HAVE_SYS_TYPES_H
  533. # include <sys/types.h>
  534. #endif
  535. #ifdef HAVE_SYS_STAT_H
  536. # include <sys/stat.h>
  537. #endif
  538. #ifdef STDC_HEADERS
  539. # include <stdlib.h>
  540. # include <stddef.h>
  541. #else
  542. # ifdef HAVE_STDLIB_H
  543. # include <stdlib.h>
  544. # endif
  545. #endif
  546. #ifdef HAVE_STRING_H
  547. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  548. # include <memory.h>
  549. # endif
  550. # include <string.h>
  551. #endif
  552. #ifdef HAVE_STRINGS_H
  553. # include <strings.h>
  554. #endif
  555. #ifdef HAVE_INTTYPES_H
  556. # include <inttypes.h>
  557. #endif
  558. #ifdef HAVE_STDINT_H
  559. # include <stdint.h>
  560. #endif
  561. #ifdef HAVE_UNISTD_H
  562. # include <unistd.h>
  563. #endif"
  564. ac_subst_vars='am__EXEEXT_FALSE
  565. am__EXEEXT_TRUE
  566. LTLIBOBJS
  567. LIBOBJS
  568. HUNSPELL_LIBS
  569. HUNSPELL_CFLAGS
  570. PKG_CONFIG_LIBDIR
  571. PKG_CONFIG_PATH
  572. PKG_CONFIG
  573. AS
  574. CXXCPP
  575. CPP
  576. OTOOL64
  577. OTOOL
  578. LIPO
  579. NMEDIT
  580. DSYMUTIL
  581. MANIFEST_TOOL
  582. RANLIB
  583. ac_ct_AR
  584. AR
  585. DLLTOOL
  586. OBJDUMP
  587. LN_S
  588. NM
  589. ac_ct_DUMPBIN
  590. DUMPBIN
  591. LD
  592. FGREP
  593. EGREP
  594. GREP
  595. SED
  596. LIBTOOL
  597. am__fastdepCC_FALSE
  598. am__fastdepCC_TRUE
  599. CCDEPMODE
  600. ac_ct_CC
  601. CFLAGS
  602. CC
  603. am__fastdepCXX_FALSE
  604. am__fastdepCXX_TRUE
  605. CXXDEPMODE
  606. am__nodep
  607. AMDEPBACKSLASH
  608. AMDEP_FALSE
  609. AMDEP_TRUE
  610. am__quote
  611. am__include
  612. DEPDIR
  613. OBJEXT
  614. EXEEXT
  615. ac_ct_CXX
  616. CPPFLAGS
  617. LDFLAGS
  618. CXXFLAGS
  619. CXX
  620. MYTHES_VERSION_MINOR
  621. MYTHES_VERSION_MAJOR
  622. am__untar
  623. am__tar
  624. AMTAR
  625. am__leading_dot
  626. SET_MAKE
  627. AWK
  628. mkdir_p
  629. MKDIR_P
  630. INSTALL_STRIP_PROGRAM
  631. STRIP
  632. install_sh
  633. MAKEINFO
  634. AUTOHEADER
  635. AUTOMAKE
  636. AUTOCONF
  637. ACLOCAL
  638. VERSION
  639. PACKAGE
  640. CYGPATH_W
  641. am__isrc
  642. INSTALL_DATA
  643. INSTALL_SCRIPT
  644. INSTALL_PROGRAM
  645. XFAILED
  646. target_os
  647. target_vendor
  648. target_cpu
  649. target
  650. host_os
  651. host_vendor
  652. host_cpu
  653. host
  654. build_os
  655. build_vendor
  656. build_cpu
  657. build
  658. target_alias
  659. host_alias
  660. build_alias
  661. LIBS
  662. ECHO_T
  663. ECHO_N
  664. ECHO_C
  665. DEFS
  666. mandir
  667. localedir
  668. libdir
  669. psdir
  670. pdfdir
  671. dvidir
  672. htmldir
  673. infodir
  674. docdir
  675. oldincludedir
  676. includedir
  677. localstatedir
  678. sharedstatedir
  679. sysconfdir
  680. datadir
  681. datarootdir
  682. libexecdir
  683. sbindir
  684. bindir
  685. program_transform_name
  686. prefix
  687. exec_prefix
  688. PACKAGE_URL
  689. PACKAGE_BUGREPORT
  690. PACKAGE_STRING
  691. PACKAGE_VERSION
  692. PACKAGE_TARNAME
  693. PACKAGE_NAME
  694. PATH_SEPARATOR
  695. SHELL'
  696. ac_subst_files=''
  697. ac_user_opts='
  698. enable_option_checking
  699. enable_dependency_tracking
  700. enable_shared
  701. enable_static
  702. with_pic
  703. enable_fast_install
  704. with_gnu_ld
  705. with_sysroot
  706. enable_libtool_lock
  707. '
  708. ac_precious_vars='build_alias
  709. host_alias
  710. target_alias
  711. CXX
  712. CXXFLAGS
  713. LDFLAGS
  714. LIBS
  715. CPPFLAGS
  716. CCC
  717. CC
  718. CFLAGS
  719. CPP
  720. CXXCPP
  721. PKG_CONFIG
  722. PKG_CONFIG_PATH
  723. PKG_CONFIG_LIBDIR
  724. HUNSPELL_CFLAGS
  725. HUNSPELL_LIBS'
  726. # Initialize some variables set by options.
  727. ac_init_help=
  728. ac_init_version=false
  729. ac_unrecognized_opts=
  730. ac_unrecognized_sep=
  731. # The variables have the same names as the options, with
  732. # dashes changed to underlines.
  733. cache_file=/dev/null
  734. exec_prefix=NONE
  735. no_create=
  736. no_recursion=
  737. prefix=NONE
  738. program_prefix=NONE
  739. program_suffix=NONE
  740. program_transform_name=s,x,x,
  741. silent=
  742. site=
  743. srcdir=
  744. verbose=
  745. x_includes=NONE
  746. x_libraries=NONE
  747. # Installation directory options.
  748. # These are left unexpanded so users can "make install exec_prefix=/foo"
  749. # and all the variables that are supposed to be based on exec_prefix
  750. # by default will actually change.
  751. # Use braces instead of parens because sh, perl, etc. also accept them.
  752. # (The list follows the same order as the GNU Coding Standards.)
  753. bindir='${exec_prefix}/bin'
  754. sbindir='${exec_prefix}/sbin'
  755. libexecdir='${exec_prefix}/libexec'
  756. datarootdir='${prefix}/share'
  757. datadir='${datarootdir}'
  758. sysconfdir='${prefix}/etc'
  759. sharedstatedir='${prefix}/com'
  760. localstatedir='${prefix}/var'
  761. includedir='${prefix}/include'
  762. oldincludedir='/usr/include'
  763. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  764. infodir='${datarootdir}/info'
  765. htmldir='${docdir}'
  766. dvidir='${docdir}'
  767. pdfdir='${docdir}'
  768. psdir='${docdir}'
  769. libdir='${exec_prefix}/lib'
  770. localedir='${datarootdir}/locale'
  771. mandir='${datarootdir}/man'
  772. ac_prev=
  773. ac_dashdash=
  774. for ac_option
  775. do
  776. # If the previous option needs an argument, assign it.
  777. if test -n "$ac_prev"; then
  778. eval $ac_prev=\$ac_option
  779. ac_prev=
  780. continue
  781. fi
  782. case $ac_option in
  783. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  784. *=) ac_optarg= ;;
  785. *) ac_optarg=yes ;;
  786. esac
  787. # Accept the important Cygnus configure options, so we can diagnose typos.
  788. case $ac_dashdash$ac_option in
  789. --)
  790. ac_dashdash=yes ;;
  791. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  792. ac_prev=bindir ;;
  793. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  794. bindir=$ac_optarg ;;
  795. -build | --build | --buil | --bui | --bu)
  796. ac_prev=build_alias ;;
  797. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  798. build_alias=$ac_optarg ;;
  799. -cache-file | --cache-file | --cache-fil | --cache-fi \
  800. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  801. ac_prev=cache_file ;;
  802. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  803. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  804. cache_file=$ac_optarg ;;
  805. --config-cache | -C)
  806. cache_file=config.cache ;;
  807. -datadir | --datadir | --datadi | --datad)
  808. ac_prev=datadir ;;
  809. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  810. datadir=$ac_optarg ;;
  811. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  812. | --dataroo | --dataro | --datar)
  813. ac_prev=datarootdir ;;
  814. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  815. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  816. datarootdir=$ac_optarg ;;
  817. -disable-* | --disable-*)
  818. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  819. # Reject names that are not valid shell variable names.
  820. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  821. as_fn_error $? "invalid feature name: $ac_useropt"
  822. ac_useropt_orig=$ac_useropt
  823. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  824. case $ac_user_opts in
  825. *"
  826. "enable_$ac_useropt"
  827. "*) ;;
  828. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  829. ac_unrecognized_sep=', ';;
  830. esac
  831. eval enable_$ac_useropt=no ;;
  832. -docdir | --docdir | --docdi | --doc | --do)
  833. ac_prev=docdir ;;
  834. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  835. docdir=$ac_optarg ;;
  836. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  837. ac_prev=dvidir ;;
  838. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  839. dvidir=$ac_optarg ;;
  840. -enable-* | --enable-*)
  841. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  842. # Reject names that are not valid shell variable names.
  843. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  844. as_fn_error $? "invalid feature name: $ac_useropt"
  845. ac_useropt_orig=$ac_useropt
  846. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  847. case $ac_user_opts in
  848. *"
  849. "enable_$ac_useropt"
  850. "*) ;;
  851. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  852. ac_unrecognized_sep=', ';;
  853. esac
  854. eval enable_$ac_useropt=\$ac_optarg ;;
  855. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  856. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  857. | --exec | --exe | --ex)
  858. ac_prev=exec_prefix ;;
  859. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  860. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  861. | --exec=* | --exe=* | --ex=*)
  862. exec_prefix=$ac_optarg ;;
  863. -gas | --gas | --ga | --g)
  864. # Obsolete; use --with-gas.
  865. with_gas=yes ;;
  866. -help | --help | --hel | --he | -h)
  867. ac_init_help=long ;;
  868. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  869. ac_init_help=recursive ;;
  870. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  871. ac_init_help=short ;;
  872. -host | --host | --hos | --ho)
  873. ac_prev=host_alias ;;
  874. -host=* | --host=* | --hos=* | --ho=*)
  875. host_alias=$ac_optarg ;;
  876. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  877. ac_prev=htmldir ;;
  878. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  879. | --ht=*)
  880. htmldir=$ac_optarg ;;
  881. -includedir | --includedir | --includedi | --included | --include \
  882. | --includ | --inclu | --incl | --inc)
  883. ac_prev=includedir ;;
  884. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  885. | --includ=* | --inclu=* | --incl=* | --inc=*)
  886. includedir=$ac_optarg ;;
  887. -infodir | --infodir | --infodi | --infod | --info | --inf)
  888. ac_prev=infodir ;;
  889. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  890. infodir=$ac_optarg ;;
  891. -libdir | --libdir | --libdi | --libd)
  892. ac_prev=libdir ;;
  893. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  894. libdir=$ac_optarg ;;
  895. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  896. | --libexe | --libex | --libe)
  897. ac_prev=libexecdir ;;
  898. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  899. | --libexe=* | --libex=* | --libe=*)
  900. libexecdir=$ac_optarg ;;
  901. -localedir | --localedir | --localedi | --localed | --locale)
  902. ac_prev=localedir ;;
  903. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  904. localedir=$ac_optarg ;;
  905. -localstatedir | --localstatedir | --localstatedi | --localstated \
  906. | --localstate | --localstat | --localsta | --localst | --locals)
  907. ac_prev=localstatedir ;;
  908. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  909. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  910. localstatedir=$ac_optarg ;;
  911. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  912. ac_prev=mandir ;;
  913. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  914. mandir=$ac_optarg ;;
  915. -nfp | --nfp | --nf)
  916. # Obsolete; use --without-fp.
  917. with_fp=no ;;
  918. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  919. | --no-cr | --no-c | -n)
  920. no_create=yes ;;
  921. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  922. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  923. no_recursion=yes ;;
  924. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  925. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  926. | --oldin | --oldi | --old | --ol | --o)
  927. ac_prev=oldincludedir ;;
  928. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  929. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  930. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  931. oldincludedir=$ac_optarg ;;
  932. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  933. ac_prev=prefix ;;
  934. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  935. prefix=$ac_optarg ;;
  936. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  937. | --program-pre | --program-pr | --program-p)
  938. ac_prev=program_prefix ;;
  939. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  940. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  941. program_prefix=$ac_optarg ;;
  942. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  943. | --program-suf | --program-su | --program-s)
  944. ac_prev=program_suffix ;;
  945. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  946. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  947. program_suffix=$ac_optarg ;;
  948. -program-transform-name | --program-transform-name \
  949. | --program-transform-nam | --program-transform-na \
  950. | --program-transform-n | --program-transform- \
  951. | --program-transform | --program-transfor \
  952. | --program-transfo | --program-transf \
  953. | --program-trans | --program-tran \
  954. | --progr-tra | --program-tr | --program-t)
  955. ac_prev=program_transform_name ;;
  956. -program-transform-name=* | --program-transform-name=* \
  957. | --program-transform-nam=* | --program-transform-na=* \
  958. | --program-transform-n=* | --program-transform-=* \
  959. | --program-transform=* | --program-transfor=* \
  960. | --program-transfo=* | --program-transf=* \
  961. | --program-trans=* | --program-tran=* \
  962. | --progr-tra=* | --program-tr=* | --program-t=*)
  963. program_transform_name=$ac_optarg ;;
  964. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  965. ac_prev=pdfdir ;;
  966. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  967. pdfdir=$ac_optarg ;;
  968. -psdir | --psdir | --psdi | --psd | --ps)
  969. ac_prev=psdir ;;
  970. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  971. psdir=$ac_optarg ;;
  972. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  973. | -silent | --silent | --silen | --sile | --sil)
  974. silent=yes ;;
  975. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  976. ac_prev=sbindir ;;
  977. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  978. | --sbi=* | --sb=*)
  979. sbindir=$ac_optarg ;;
  980. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  981. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  982. | --sharedst | --shareds | --shared | --share | --shar \
  983. | --sha | --sh)
  984. ac_prev=sharedstatedir ;;
  985. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  986. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  987. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  988. | --sha=* | --sh=*)
  989. sharedstatedir=$ac_optarg ;;
  990. -site | --site | --sit)
  991. ac_prev=site ;;
  992. -site=* | --site=* | --sit=*)
  993. site=$ac_optarg ;;
  994. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  995. ac_prev=srcdir ;;
  996. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  997. srcdir=$ac_optarg ;;
  998. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  999. | --syscon | --sysco | --sysc | --sys | --sy)
  1000. ac_prev=sysconfdir ;;
  1001. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1002. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1003. sysconfdir=$ac_optarg ;;
  1004. -target | --target | --targe | --targ | --tar | --ta | --t)
  1005. ac_prev=target_alias ;;
  1006. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1007. target_alias=$ac_optarg ;;
  1008. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1009. verbose=yes ;;
  1010. -version | --version | --versio | --versi | --vers | -V)
  1011. ac_init_version=: ;;
  1012. -with-* | --with-*)
  1013. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1014. # Reject names that are not valid shell variable names.
  1015. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1016. as_fn_error $? "invalid package name: $ac_useropt"
  1017. ac_useropt_orig=$ac_useropt
  1018. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1019. case $ac_user_opts in
  1020. *"
  1021. "with_$ac_useropt"
  1022. "*) ;;
  1023. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1024. ac_unrecognized_sep=', ';;
  1025. esac
  1026. eval with_$ac_useropt=\$ac_optarg ;;
  1027. -without-* | --without-*)
  1028. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1029. # Reject names that are not valid shell variable names.
  1030. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1031. as_fn_error $? "invalid package name: $ac_useropt"
  1032. ac_useropt_orig=$ac_useropt
  1033. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1034. case $ac_user_opts in
  1035. *"
  1036. "with_$ac_useropt"
  1037. "*) ;;
  1038. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1039. ac_unrecognized_sep=', ';;
  1040. esac
  1041. eval with_$ac_useropt=no ;;
  1042. --x)
  1043. # Obsolete; use --with-x.
  1044. with_x=yes ;;
  1045. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1046. | --x-incl | --x-inc | --x-in | --x-i)
  1047. ac_prev=x_includes ;;
  1048. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1049. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1050. x_includes=$ac_optarg ;;
  1051. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1052. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1053. ac_prev=x_libraries ;;
  1054. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1055. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1056. x_libraries=$ac_optarg ;;
  1057. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1058. Try \`$0 --help' for more information"
  1059. ;;
  1060. *=*)
  1061. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1062. # Reject names that are not valid shell variable names.
  1063. case $ac_envvar in #(
  1064. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1065. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1066. esac
  1067. eval $ac_envvar=\$ac_optarg
  1068. export $ac_envvar ;;
  1069. *)
  1070. # FIXME: should be removed in autoconf 3.0.
  1071. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1072. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1073. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1074. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1075. ;;
  1076. esac
  1077. done
  1078. if test -n "$ac_prev"; then
  1079. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1080. as_fn_error $? "missing argument to $ac_option"
  1081. fi
  1082. if test -n "$ac_unrecognized_opts"; then
  1083. case $enable_option_checking in
  1084. no) ;;
  1085. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1086. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1087. esac
  1088. fi
  1089. # Check all directory arguments for consistency.
  1090. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1091. datadir sysconfdir sharedstatedir localstatedir includedir \
  1092. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1093. libdir localedir mandir
  1094. do
  1095. eval ac_val=\$$ac_var
  1096. # Remove trailing slashes.
  1097. case $ac_val in
  1098. */ )
  1099. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1100. eval $ac_var=\$ac_val;;
  1101. esac
  1102. # Be sure to have absolute directory names.
  1103. case $ac_val in
  1104. [\\/$]* | ?:[\\/]* ) continue;;
  1105. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1106. esac
  1107. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1108. done
  1109. # There might be people who depend on the old broken behavior: `$host'
  1110. # used to hold the argument of --host etc.
  1111. # FIXME: To remove some day.
  1112. build=$build_alias
  1113. host=$host_alias
  1114. target=$target_alias
  1115. # FIXME: To remove some day.
  1116. if test "x$host_alias" != x; then
  1117. if test "x$build_alias" = x; then
  1118. cross_compiling=maybe
  1119. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1120. If a cross compiler is detected then cross compile mode will be used" >&2
  1121. elif test "x$build_alias" != "x$host_alias"; then
  1122. cross_compiling=yes
  1123. fi
  1124. fi
  1125. ac_tool_prefix=
  1126. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1127. test "$silent" = yes && exec 6>/dev/null
  1128. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1129. ac_ls_di=`ls -di .` &&
  1130. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1131. as_fn_error $? "working directory cannot be determined"
  1132. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1133. as_fn_error $? "pwd does not report name of working directory"
  1134. # Find the source files, if location was not specified.
  1135. if test -z "$srcdir"; then
  1136. ac_srcdir_defaulted=yes
  1137. # Try the directory containing this script, then the parent directory.
  1138. ac_confdir=`$as_dirname -- "$as_myself" ||
  1139. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1140. X"$as_myself" : 'X\(//\)[^/]' \| \
  1141. X"$as_myself" : 'X\(//\)$' \| \
  1142. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1143. $as_echo X"$as_myself" |
  1144. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1145. s//\1/
  1146. q
  1147. }
  1148. /^X\(\/\/\)[^/].*/{
  1149. s//\1/
  1150. q
  1151. }
  1152. /^X\(\/\/\)$/{
  1153. s//\1/
  1154. q
  1155. }
  1156. /^X\(\/\).*/{
  1157. s//\1/
  1158. q
  1159. }
  1160. s/.*/./; q'`
  1161. srcdir=$ac_confdir
  1162. if test ! -r "$srcdir/$ac_unique_file"; then
  1163. srcdir=..
  1164. fi
  1165. else
  1166. ac_srcdir_defaulted=no
  1167. fi
  1168. if test ! -r "$srcdir/$ac_unique_file"; then
  1169. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1170. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1171. fi
  1172. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1173. ac_abs_confdir=`(
  1174. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1175. pwd)`
  1176. # When building in place, set srcdir=.
  1177. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1178. srcdir=.
  1179. fi
  1180. # Remove unnecessary trailing slashes from srcdir.
  1181. # Double slashes in file names in object file debugging info
  1182. # mess up M-x gdb in Emacs.
  1183. case $srcdir in
  1184. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1185. esac
  1186. for ac_var in $ac_precious_vars; do
  1187. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1188. eval ac_env_${ac_var}_value=\$${ac_var}
  1189. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1190. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1191. done
  1192. #
  1193. # Report the --help message.
  1194. #
  1195. if test "$ac_init_help" = "long"; then
  1196. # Omit some internal or obsolete options to make the list less imposing.
  1197. # This message is too long to be a string in the A/UX 3.1 sh.
  1198. cat <<_ACEOF
  1199. \`configure' configures mythes 1.2.3 to adapt to many kinds of systems.
  1200. Usage: $0 [OPTION]... [VAR=VALUE]...
  1201. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1202. VAR=VALUE. See below for descriptions of some of the useful variables.
  1203. Defaults for the options are specified in brackets.
  1204. Configuration:
  1205. -h, --help display this help and exit
  1206. --help=short display options specific to this package
  1207. --help=recursive display the short help of all the included packages
  1208. -V, --version display version information and exit
  1209. -q, --quiet, --silent do not print \`checking ...' messages
  1210. --cache-file=FILE cache test results in FILE [disabled]
  1211. -C, --config-cache alias for \`--cache-file=config.cache'
  1212. -n, --no-create do not create output files
  1213. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1214. Installation directories:
  1215. --prefix=PREFIX install architecture-independent files in PREFIX
  1216. [$ac_default_prefix]
  1217. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1218. [PREFIX]
  1219. By default, \`make install' will install all the files in
  1220. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1221. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1222. for instance \`--prefix=\$HOME'.
  1223. For better control, use the options below.
  1224. Fine tuning of the installation directories:
  1225. --bindir=DIR user executables [EPREFIX/bin]
  1226. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1227. --libexecdir=DIR program executables [EPREFIX/libexec]
  1228. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1229. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1230. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1231. --libdir=DIR object code libraries [EPREFIX/lib]
  1232. --includedir=DIR C header files [PREFIX/include]
  1233. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1234. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1235. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1236. --infodir=DIR info documentation [DATAROOTDIR/info]
  1237. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1238. --mandir=DIR man documentation [DATAROOTDIR/man]
  1239. --docdir=DIR documentation root [DATAROOTDIR/doc/mythes]
  1240. --htmldir=DIR html documentation [DOCDIR]
  1241. --dvidir=DIR dvi documentation [DOCDIR]
  1242. --pdfdir=DIR pdf documentation [DOCDIR]
  1243. --psdir=DIR ps documentation [DOCDIR]
  1244. _ACEOF
  1245. cat <<\_ACEOF
  1246. Program names:
  1247. --program-prefix=PREFIX prepend PREFIX to installed program names
  1248. --program-suffix=SUFFIX append SUFFIX to installed program names
  1249. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1250. System types:
  1251. --build=BUILD configure for building on BUILD [guessed]
  1252. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1253. --target=TARGET configure for building compilers for TARGET [HOST]
  1254. _ACEOF
  1255. fi
  1256. if test -n "$ac_init_help"; then
  1257. case $ac_init_help in
  1258. short | recursive ) echo "Configuration of mythes 1.2.3:";;
  1259. esac
  1260. cat <<\_ACEOF
  1261. Optional Features:
  1262. --disable-option-checking ignore unrecognized --enable/--with options
  1263. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1264. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1265. --disable-dependency-tracking speeds up one-time build
  1266. --enable-dependency-tracking do not reject slow dependency extractors
  1267. --enable-shared[=PKGS] build shared libraries [default=yes]
  1268. --enable-static[=PKGS] build static libraries [default=yes]
  1269. --enable-fast-install[=PKGS]
  1270. optimize for fast installation [default=yes]
  1271. --disable-libtool-lock avoid locking (might break parallel builds)
  1272. Optional Packages:
  1273. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1274. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1275. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1276. both]
  1277. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1278. --with-sysroot=DIR Search for dependent libraries within DIR
  1279. (or the compiler's sysroot if not specified).
  1280. Some influential environment variables:
  1281. CXX C++ compiler command
  1282. CXXFLAGS C++ compiler flags
  1283. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1284. nonstandard directory <lib dir>
  1285. LIBS libraries to pass to the linker, e.g. -l<library>
  1286. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1287. you have headers in a nonstandard directory <include dir>
  1288. CC C compiler command
  1289. CFLAGS C compiler flags
  1290. CPP C preprocessor
  1291. CXXCPP C++ preprocessor
  1292. PKG_CONFIG path to pkg-config utility
  1293. PKG_CONFIG_PATH
  1294. directories to add to pkg-config's search path
  1295. PKG_CONFIG_LIBDIR
  1296. path overriding pkg-config's built-in search path
  1297. HUNSPELL_CFLAGS
  1298. C compiler flags for HUNSPELL, overriding pkg-config
  1299. HUNSPELL_LIBS
  1300. linker flags for HUNSPELL, overriding pkg-config
  1301. Use these variables to override the choices made by `configure' or to help
  1302. it to find libraries and programs with nonstandard names/locations.
  1303. Report bugs to <nemeth@openoffice.org>.
  1304. _ACEOF
  1305. ac_status=$?
  1306. fi
  1307. if test "$ac_init_help" = "recursive"; then
  1308. # If there are subdirs, report their specific --help.
  1309. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1310. test -d "$ac_dir" ||
  1311. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1312. continue
  1313. ac_builddir=.
  1314. case "$ac_dir" in
  1315. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1316. *)
  1317. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1318. # A ".." for each directory in $ac_dir_suffix.
  1319. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1320. case $ac_top_builddir_sub in
  1321. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1322. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1323. esac ;;
  1324. esac
  1325. ac_abs_top_builddir=$ac_pwd
  1326. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1327. # for backward compatibility:
  1328. ac_top_builddir=$ac_top_build_prefix
  1329. case $srcdir in
  1330. .) # We are building in place.
  1331. ac_srcdir=.
  1332. ac_top_srcdir=$ac_top_builddir_sub
  1333. ac_abs_top_srcdir=$ac_pwd ;;
  1334. [\\/]* | ?:[\\/]* ) # Absolute name.
  1335. ac_srcdir=$srcdir$ac_dir_suffix;
  1336. ac_top_srcdir=$srcdir
  1337. ac_abs_top_srcdir=$srcdir ;;
  1338. *) # Relative name.
  1339. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1340. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1341. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1342. esac
  1343. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1344. cd "$ac_dir" || { ac_status=$?; continue; }
  1345. # Check for guested configure.
  1346. if test -f "$ac_srcdir/configure.gnu"; then
  1347. echo &&
  1348. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1349. elif test -f "$ac_srcdir/configure"; then
  1350. echo &&
  1351. $SHELL "$ac_srcdir/configure" --help=recursive
  1352. else
  1353. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1354. fi || ac_status=$?
  1355. cd "$ac_pwd" || { ac_status=$?; break; }
  1356. done
  1357. fi
  1358. test -n "$ac_init_help" && exit $ac_status
  1359. if $ac_init_version; then
  1360. cat <<\_ACEOF
  1361. mythes configure 1.2.3
  1362. generated by GNU Autoconf 2.68
  1363. Copyright (C) 2010 Free Software Foundation, Inc.
  1364. This configure script is free software; the Free Software Foundation
  1365. gives unlimited permission to copy, distribute and modify it.
  1366. _ACEOF
  1367. exit
  1368. fi
  1369. ## ------------------------ ##
  1370. ## Autoconf initialization. ##
  1371. ## ------------------------ ##
  1372. # ac_fn_cxx_try_compile LINENO
  1373. # ----------------------------
  1374. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1375. ac_fn_cxx_try_compile ()
  1376. {
  1377. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1378. rm -f conftest.$ac_objext
  1379. if { { ac_try="$ac_compile"
  1380. case "(($ac_try" in
  1381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1382. *) ac_try_echo=$ac_try;;
  1383. esac
  1384. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1385. $as_echo "$ac_try_echo"; } >&5
  1386. (eval "$ac_compile") 2>conftest.err
  1387. ac_status=$?
  1388. if test -s conftest.err; then
  1389. grep -v '^ *+' conftest.err >conftest.er1
  1390. cat conftest.er1 >&5
  1391. mv -f conftest.er1 conftest.err
  1392. fi
  1393. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1394. test $ac_status = 0; } && {
  1395. test -z "$ac_cxx_werror_flag" ||
  1396. test ! -s conftest.err
  1397. } && test -s conftest.$ac_objext; then :
  1398. ac_retval=0
  1399. else
  1400. $as_echo "$as_me: failed program was:" >&5
  1401. sed 's/^/| /' conftest.$ac_ext >&5
  1402. ac_retval=1
  1403. fi
  1404. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1405. as_fn_set_status $ac_retval
  1406. } # ac_fn_cxx_try_compile
  1407. # ac_fn_c_try_compile LINENO
  1408. # --------------------------
  1409. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1410. ac_fn_c_try_compile ()
  1411. {
  1412. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1413. rm -f conftest.$ac_objext
  1414. if { { ac_try="$ac_compile"
  1415. case "(($ac_try" in
  1416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1417. *) ac_try_echo=$ac_try;;
  1418. esac
  1419. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1420. $as_echo "$ac_try_echo"; } >&5
  1421. (eval "$ac_compile") 2>conftest.err
  1422. ac_status=$?
  1423. if test -s conftest.err; then
  1424. grep -v '^ *+' conftest.err >conftest.er1
  1425. cat conftest.er1 >&5
  1426. mv -f conftest.er1 conftest.err
  1427. fi
  1428. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1429. test $ac_status = 0; } && {
  1430. test -z "$ac_c_werror_flag" ||
  1431. test ! -s conftest.err
  1432. } && test -s conftest.$ac_objext; then :
  1433. ac_retval=0
  1434. else
  1435. $as_echo "$as_me: failed program was:" >&5
  1436. sed 's/^/| /' conftest.$ac_ext >&5
  1437. ac_retval=1
  1438. fi
  1439. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1440. as_fn_set_status $ac_retval
  1441. } # ac_fn_c_try_compile
  1442. # ac_fn_c_try_link LINENO
  1443. # -----------------------
  1444. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1445. ac_fn_c_try_link ()
  1446. {
  1447. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1448. rm -f conftest.$ac_objext conftest$ac_exeext
  1449. if { { ac_try="$ac_link"
  1450. case "(($ac_try" in
  1451. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1452. *) ac_try_echo=$ac_try;;
  1453. esac
  1454. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1455. $as_echo "$ac_try_echo"; } >&5
  1456. (eval "$ac_link") 2>conftest.err
  1457. ac_status=$?
  1458. if test -s conftest.err; then
  1459. grep -v '^ *+' conftest.err >conftest.er1
  1460. cat conftest.er1 >&5
  1461. mv -f conftest.er1 conftest.err
  1462. fi
  1463. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1464. test $ac_status = 0; } && {
  1465. test -z "$ac_c_werror_flag" ||
  1466. test ! -s conftest.err
  1467. } && test -s conftest$ac_exeext && {
  1468. test "$cross_compiling" = yes ||
  1469. $as_test_x conftest$ac_exeext
  1470. }; then :
  1471. ac_retval=0
  1472. else
  1473. $as_echo "$as_me: failed program was:" >&5
  1474. sed 's/^/| /' conftest.$ac_ext >&5
  1475. ac_retval=1
  1476. fi
  1477. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1478. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1479. # interfere with the next link command; also delete a directory that is
  1480. # left behind by Apple's compiler. We do this before executing the actions.
  1481. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1482. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1483. as_fn_set_status $ac_retval
  1484. } # ac_fn_c_try_link
  1485. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1486. # -------------------------------------------------------
  1487. # Tests whether HEADER exists and can be compiled using the include files in
  1488. # INCLUDES, setting the cache variable VAR accordingly.
  1489. ac_fn_c_check_header_compile ()
  1490. {
  1491. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1493. $as_echo_n "checking for $2... " >&6; }
  1494. if eval \${$3+:} false; then :
  1495. $as_echo_n "(cached) " >&6
  1496. else
  1497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1498. /* end confdefs.h. */
  1499. $4
  1500. #include <$2>
  1501. _ACEOF
  1502. if ac_fn_c_try_compile "$LINENO"; then :
  1503. eval "$3=yes"
  1504. else
  1505. eval "$3=no"
  1506. fi
  1507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1508. fi
  1509. eval ac_res=\$$3
  1510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1511. $as_echo "$ac_res" >&6; }
  1512. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1513. } # ac_fn_c_check_header_compile
  1514. # ac_fn_c_try_cpp LINENO
  1515. # ----------------------
  1516. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1517. ac_fn_c_try_cpp ()
  1518. {
  1519. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1520. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1521. case "(($ac_try" in
  1522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1523. *) ac_try_echo=$ac_try;;
  1524. esac
  1525. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1526. $as_echo "$ac_try_echo"; } >&5
  1527. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1528. ac_status=$?
  1529. if test -s conftest.err; then
  1530. grep -v '^ *+' conftest.err >conftest.er1
  1531. cat conftest.er1 >&5
  1532. mv -f conftest.er1 conftest.err
  1533. fi
  1534. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1535. test $ac_status = 0; } > conftest.i && {
  1536. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1537. test ! -s conftest.err
  1538. }; then :
  1539. ac_retval=0
  1540. else
  1541. $as_echo "$as_me: failed program was:" >&5
  1542. sed 's/^/| /' conftest.$ac_ext >&5
  1543. ac_retval=1
  1544. fi
  1545. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1546. as_fn_set_status $ac_retval
  1547. } # ac_fn_c_try_cpp
  1548. # ac_fn_c_try_run LINENO
  1549. # ----------------------
  1550. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1551. # that executables *can* be run.
  1552. ac_fn_c_try_run ()
  1553. {
  1554. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1555. if { { ac_try="$ac_link"
  1556. case "(($ac_try" in
  1557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1558. *) ac_try_echo=$ac_try;;
  1559. esac
  1560. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1561. $as_echo "$ac_try_echo"; } >&5
  1562. (eval "$ac_link") 2>&5
  1563. ac_status=$?
  1564. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1565. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1566. { { case "(($ac_try" in
  1567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1568. *) ac_try_echo=$ac_try;;
  1569. esac
  1570. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1571. $as_echo "$ac_try_echo"; } >&5
  1572. (eval "$ac_try") 2>&5
  1573. ac_status=$?
  1574. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1575. test $ac_status = 0; }; }; then :
  1576. ac_retval=0
  1577. else
  1578. $as_echo "$as_me: program exited with status $ac_status" >&5
  1579. $as_echo "$as_me: failed program was:" >&5
  1580. sed 's/^/| /' conftest.$ac_ext >&5
  1581. ac_retval=$ac_status
  1582. fi
  1583. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1584. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1585. as_fn_set_status $ac_retval
  1586. } # ac_fn_c_try_run
  1587. # ac_fn_c_check_func LINENO FUNC VAR
  1588. # ----------------------------------
  1589. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1590. ac_fn_c_check_func ()
  1591. {
  1592. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1594. $as_echo_n "checking for $2... " >&6; }
  1595. if eval \${$3+:} false; then :
  1596. $as_echo_n "(cached) " >&6
  1597. else
  1598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1599. /* end confdefs.h. */
  1600. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1601. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1602. #define $2 innocuous_$2
  1603. /* System header to define __stub macros and hopefully few prototypes,
  1604. which can conflict with char $2 (); below.
  1605. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1606. <limits.h> exists even on freestanding compilers. */
  1607. #ifdef __STDC__
  1608. # include <limits.h>
  1609. #else
  1610. # include <assert.h>
  1611. #endif
  1612. #undef $2
  1613. /* Override any GCC internal prototype to avoid an error.
  1614. Use char because int might match the return type of a GCC
  1615. builtin and then its argument prototype would still apply. */
  1616. #ifdef __cplusplus
  1617. extern "C"
  1618. #endif
  1619. char $2 ();
  1620. /* The GNU C library defines this for functions which it implements
  1621. to always fail with ENOSYS. Some functions are actually named
  1622. something starting with __ and the normal name is an alias. */
  1623. #if defined __stub_$2 || defined __stub___$2
  1624. choke me
  1625. #endif
  1626. int
  1627. main ()
  1628. {
  1629. return $2 ();
  1630. ;
  1631. return 0;
  1632. }
  1633. _ACEOF
  1634. if ac_fn_c_try_link "$LINENO"; then :
  1635. eval "$3=yes"
  1636. else
  1637. eval "$3=no"
  1638. fi
  1639. rm -f core conftest.err conftest.$ac_objext \
  1640. conftest$ac_exeext conftest.$ac_ext
  1641. fi
  1642. eval ac_res=\$$3
  1643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1644. $as_echo "$ac_res" >&6; }
  1645. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1646. } # ac_fn_c_check_func
  1647. # ac_fn_cxx_try_cpp LINENO
  1648. # ------------------------
  1649. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1650. ac_fn_cxx_try_cpp ()
  1651. {
  1652. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1653. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1654. case "(($ac_try" in
  1655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1656. *) ac_try_echo=$ac_try;;
  1657. esac
  1658. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1659. $as_echo "$ac_try_echo"; } >&5
  1660. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1661. ac_status=$?
  1662. if test -s conftest.err; then
  1663. grep -v '^ *+' conftest.err >conftest.er1
  1664. cat conftest.er1 >&5
  1665. mv -f conftest.er1 conftest.err
  1666. fi
  1667. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1668. test $ac_status = 0; } > conftest.i && {
  1669. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1670. test ! -s conftest.err
  1671. }; then :
  1672. ac_retval=0
  1673. else
  1674. $as_echo "$as_me: failed program was:" >&5
  1675. sed 's/^/| /' conftest.$ac_ext >&5
  1676. ac_retval=1
  1677. fi
  1678. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1679. as_fn_set_status $ac_retval
  1680. } # ac_fn_cxx_try_cpp
  1681. # ac_fn_cxx_try_link LINENO
  1682. # -------------------------
  1683. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1684. ac_fn_cxx_try_link ()
  1685. {
  1686. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1687. rm -f conftest.$ac_objext conftest$ac_exeext
  1688. if { { ac_try="$ac_link"
  1689. case "(($ac_try" in
  1690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1691. *) ac_try_echo=$ac_try;;
  1692. esac
  1693. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1694. $as_echo "$ac_try_echo"; } >&5
  1695. (eval "$ac_link") 2>conftest.err
  1696. ac_status=$?
  1697. if test -s conftest.err; then
  1698. grep -v '^ *+' conftest.err >conftest.er1
  1699. cat conftest.er1 >&5
  1700. mv -f conftest.er1 conftest.err
  1701. fi
  1702. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1703. test $ac_status = 0; } && {
  1704. test -z "$ac_cxx_werror_flag" ||
  1705. test ! -s conftest.err
  1706. } && test -s conftest$ac_exeext && {
  1707. test "$cross_compiling" = yes ||
  1708. $as_test_x conftest$ac_exeext
  1709. }; then :
  1710. ac_retval=0
  1711. else
  1712. $as_echo "$as_me: failed program was:" >&5
  1713. sed 's/^/| /' conftest.$ac_ext >&5
  1714. ac_retval=1
  1715. fi
  1716. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1717. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1718. # interfere with the next link command; also delete a directory that is
  1719. # left behind by Apple's compiler. We do this before executing the actions.
  1720. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1721. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1722. as_fn_set_status $ac_retval
  1723. } # ac_fn_cxx_try_link
  1724. cat >config.log <<_ACEOF
  1725. This file contains any messages produced by compilers while
  1726. running configure, to aid debugging if configure makes a mistake.
  1727. It was created by mythes $as_me 1.2.3, which was
  1728. generated by GNU Autoconf 2.68. Invocation command line was
  1729. $ $0 $@
  1730. _ACEOF
  1731. exec 5>>config.log
  1732. {
  1733. cat <<_ASUNAME
  1734. ## --------- ##
  1735. ## Platform. ##
  1736. ## --------- ##
  1737. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1738. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1739. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1740. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1741. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1742. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1743. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1744. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1745. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1746. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1747. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1748. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1749. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1750. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1751. _ASUNAME
  1752. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1753. for as_dir in $PATH
  1754. do
  1755. IFS=$as_save_IFS
  1756. test -z "$as_dir" && as_dir=.
  1757. $as_echo "PATH: $as_dir"
  1758. done
  1759. IFS=$as_save_IFS
  1760. } >&5
  1761. cat >&5 <<_ACEOF
  1762. ## ----------- ##
  1763. ## Core tests. ##
  1764. ## ----------- ##
  1765. _ACEOF
  1766. # Keep a trace of the command line.
  1767. # Strip out --no-create and --no-recursion so they do not pile up.
  1768. # Strip out --silent because we don't want to record it for future runs.
  1769. # Also quote any args containing shell meta-characters.
  1770. # Make two passes to allow for proper duplicate-argument suppression.
  1771. ac_configure_args=
  1772. ac_configure_args0=
  1773. ac_configure_args1=
  1774. ac_must_keep_next=false
  1775. for ac_pass in 1 2
  1776. do
  1777. for ac_arg
  1778. do
  1779. case $ac_arg in
  1780. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1781. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1782. | -silent | --silent | --silen | --sile | --sil)
  1783. continue ;;
  1784. *\'*)
  1785. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1786. esac
  1787. case $ac_pass in
  1788. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1789. 2)
  1790. as_fn_append ac_configure_args1 " '$ac_arg'"
  1791. if test $ac_must_keep_next = true; then
  1792. ac_must_keep_next=false # Got value, back to normal.
  1793. else
  1794. case $ac_arg in
  1795. *=* | --config-cache | -C | -disable-* | --disable-* \
  1796. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1797. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1798. | -with-* | --with-* | -without-* | --without-* | --x)
  1799. case "$ac_configure_args0 " in
  1800. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1801. esac
  1802. ;;
  1803. -* ) ac_must_keep_next=true ;;
  1804. esac
  1805. fi
  1806. as_fn_append ac_configure_args " '$ac_arg'"
  1807. ;;
  1808. esac
  1809. done
  1810. done
  1811. { ac_configure_args0=; unset ac_configure_args0;}
  1812. { ac_configure_args1=; unset ac_configure_args1;}
  1813. # When interrupted or exit'd, cleanup temporary files, and complete
  1814. # config.log. We remove comments because anyway the quotes in there
  1815. # would cause problems or look ugly.
  1816. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1817. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1818. trap 'exit_status=$?
  1819. # Save into config.log some information that might help in debugging.
  1820. {
  1821. echo
  1822. $as_echo "## ---------------- ##
  1823. ## Cache variables. ##
  1824. ## ---------------- ##"
  1825. echo
  1826. # The following way of writing the cache mishandles newlines in values,
  1827. (
  1828. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1829. eval ac_val=\$$ac_var
  1830. case $ac_val in #(
  1831. *${as_nl}*)
  1832. case $ac_var in #(
  1833. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1834. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1835. esac
  1836. case $ac_var in #(
  1837. _ | IFS | as_nl) ;; #(
  1838. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1839. *) { eval $ac_var=; unset $ac_var;} ;;
  1840. esac ;;
  1841. esac
  1842. done
  1843. (set) 2>&1 |
  1844. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1845. *${as_nl}ac_space=\ *)
  1846. sed -n \
  1847. "s/'\''/'\''\\\\'\'''\''/g;
  1848. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1849. ;; #(
  1850. *)
  1851. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1852. ;;
  1853. esac |
  1854. sort
  1855. )
  1856. echo
  1857. $as_echo "## ----------------- ##
  1858. ## Output variables. ##
  1859. ## ----------------- ##"
  1860. echo
  1861. for ac_var in $ac_subst_vars
  1862. do
  1863. eval ac_val=\$$ac_var
  1864. case $ac_val in
  1865. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1866. esac
  1867. $as_echo "$ac_var='\''$ac_val'\''"
  1868. done | sort
  1869. echo
  1870. if test -n "$ac_subst_files"; then
  1871. $as_echo "## ------------------- ##
  1872. ## File substitutions. ##
  1873. ## ------------------- ##"
  1874. echo
  1875. for ac_var in $ac_subst_files
  1876. do
  1877. eval ac_val=\$$ac_var
  1878. case $ac_val in
  1879. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1880. esac
  1881. $as_echo "$ac_var='\''$ac_val'\''"
  1882. done | sort
  1883. echo
  1884. fi
  1885. if test -s confdefs.h; then
  1886. $as_echo "## ----------- ##
  1887. ## confdefs.h. ##
  1888. ## ----------- ##"
  1889. echo
  1890. cat confdefs.h
  1891. echo
  1892. fi
  1893. test "$ac_signal" != 0 &&
  1894. $as_echo "$as_me: caught signal $ac_signal"
  1895. $as_echo "$as_me: exit $exit_status"
  1896. } >&5
  1897. rm -f core *.core core.conftest.* &&
  1898. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1899. exit $exit_status
  1900. ' 0
  1901. for ac_signal in 1 2 13 15; do
  1902. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1903. done
  1904. ac_signal=0
  1905. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1906. rm -f -r conftest* confdefs.h
  1907. $as_echo "/* confdefs.h */" > confdefs.h
  1908. # Predefined preprocessor variables.
  1909. cat >>confdefs.h <<_ACEOF
  1910. #define PACKAGE_NAME "$PACKAGE_NAME"
  1911. _ACEOF
  1912. cat >>confdefs.h <<_ACEOF
  1913. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1914. _ACEOF
  1915. cat >>confdefs.h <<_ACEOF
  1916. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1917. _ACEOF
  1918. cat >>confdefs.h <<_ACEOF
  1919. #define PACKAGE_STRING "$PACKAGE_STRING"
  1920. _ACEOF
  1921. cat >>confdefs.h <<_ACEOF
  1922. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1923. _ACEOF
  1924. cat >>confdefs.h <<_ACEOF
  1925. #define PACKAGE_URL "$PACKAGE_URL"
  1926. _ACEOF
  1927. # Let the site file select an alternate cache file if it wants to.
  1928. # Prefer an explicitly selected file to automatically selected ones.
  1929. ac_site_file1=NONE
  1930. ac_site_file2=NONE
  1931. if test -n "$CONFIG_SITE"; then
  1932. # We do not want a PATH search for config.site.
  1933. case $CONFIG_SITE in #((
  1934. -*) ac_site_file1=./$CONFIG_SITE;;
  1935. */*) ac_site_file1=$CONFIG_SITE;;
  1936. *) ac_site_file1=./$CONFIG_SITE;;
  1937. esac
  1938. elif test "x$prefix" != xNONE; then
  1939. ac_site_file1=$prefix/share/config.site
  1940. ac_site_file2=$prefix/etc/config.site
  1941. else
  1942. ac_site_file1=$ac_default_prefix/share/config.site
  1943. ac_site_file2=$ac_default_prefix/etc/config.site
  1944. fi
  1945. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1946. do
  1947. test "x$ac_site_file" = xNONE && continue
  1948. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1949. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1950. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1951. sed 's/^/| /' "$ac_site_file" >&5
  1952. . "$ac_site_file" \
  1953. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1954. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1955. as_fn_error $? "failed to load site script $ac_site_file
  1956. See \`config.log' for more details" "$LINENO" 5; }
  1957. fi
  1958. done
  1959. if test -r "$cache_file"; then
  1960. # Some versions of bash will fail to source /dev/null (special files
  1961. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1962. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1963. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1964. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1965. case $cache_file in
  1966. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1967. *) . "./$cache_file";;
  1968. esac
  1969. fi
  1970. else
  1971. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1972. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1973. >$cache_file
  1974. fi
  1975. # Check that the precious variables saved in the cache have kept the same
  1976. # value.
  1977. ac_cache_corrupted=false
  1978. for ac_var in $ac_precious_vars; do
  1979. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1980. eval ac_new_set=\$ac_env_${ac_var}_set
  1981. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1982. eval ac_new_val=\$ac_env_${ac_var}_value
  1983. case $ac_old_set,$ac_new_set in
  1984. set,)
  1985. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1986. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1987. ac_cache_corrupted=: ;;
  1988. ,set)
  1989. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1990. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1991. ac_cache_corrupted=: ;;
  1992. ,);;
  1993. *)
  1994. if test "x$ac_old_val" != "x$ac_new_val"; then
  1995. # differences in whitespace do not lead to failure.
  1996. ac_old_val_w=`echo x $ac_old_val`
  1997. ac_new_val_w=`echo x $ac_new_val`
  1998. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1999. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2000. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2001. ac_cache_corrupted=:
  2002. else
  2003. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2004. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2005. eval $ac_var=\$ac_old_val
  2006. fi
  2007. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2008. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2009. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2010. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2011. fi;;
  2012. esac
  2013. # Pass precious variables to config.status.
  2014. if test "$ac_new_set" = set; then
  2015. case $ac_new_val in
  2016. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2017. *) ac_arg=$ac_var=$ac_new_val ;;
  2018. esac
  2019. case " $ac_configure_args " in
  2020. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2021. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2022. esac
  2023. fi
  2024. done
  2025. if $ac_cache_corrupted; then
  2026. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2027. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2028. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2029. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2030. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2031. fi
  2032. ## -------------------- ##
  2033. ## Main body of script. ##
  2034. ## -------------------- ##
  2035. ac_ext=c
  2036. ac_cpp='$CPP $CPPFLAGS'
  2037. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2038. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2039. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2040. ac_aux_dir=
  2041. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2042. if test -f "$ac_dir/install-sh"; then
  2043. ac_aux_dir=$ac_dir
  2044. ac_install_sh="$ac_aux_dir/install-sh -c"
  2045. break
  2046. elif test -f "$ac_dir/install.sh"; then
  2047. ac_aux_dir=$ac_dir
  2048. ac_install_sh="$ac_aux_dir/install.sh -c"
  2049. break
  2050. elif test -f "$ac_dir/shtool"; then
  2051. ac_aux_dir=$ac_dir
  2052. ac_install_sh="$ac_aux_dir/shtool install -c"
  2053. break
  2054. fi
  2055. done
  2056. if test -z "$ac_aux_dir"; then
  2057. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2058. fi
  2059. # These three variables are undocumented and unsupported,
  2060. # and are intended to be withdrawn in a future Autoconf release.
  2061. # They can cause serious problems if a builder's source tree is in a directory
  2062. # whose full name contains unusual characters.
  2063. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2064. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2065. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2066. # Make sure we can run config.sub.
  2067. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2068. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2070. $as_echo_n "checking build system type... " >&6; }
  2071. if ${ac_cv_build+:} false; then :
  2072. $as_echo_n "(cached) " >&6
  2073. else
  2074. ac_build_alias=$build_alias
  2075. test "x$ac_build_alias" = x &&
  2076. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2077. test "x$ac_build_alias" = x &&
  2078. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2079. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2080. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2081. fi
  2082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2083. $as_echo "$ac_cv_build" >&6; }
  2084. case $ac_cv_build in
  2085. *-*-*) ;;
  2086. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2087. esac
  2088. build=$ac_cv_build
  2089. ac_save_IFS=$IFS; IFS='-'
  2090. set x $ac_cv_build
  2091. shift
  2092. build_cpu=$1
  2093. build_vendor=$2
  2094. shift; shift
  2095. # Remember, the first character of IFS is used to create $*,
  2096. # except with old shells:
  2097. build_os=$*
  2098. IFS=$ac_save_IFS
  2099. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2101. $as_echo_n "checking host system type... " >&6; }
  2102. if ${ac_cv_host+:} false; then :
  2103. $as_echo_n "(cached) " >&6
  2104. else
  2105. if test "x$host_alias" = x; then
  2106. ac_cv_host=$ac_cv_build
  2107. else
  2108. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2109. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2110. fi
  2111. fi
  2112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2113. $as_echo "$ac_cv_host" >&6; }
  2114. case $ac_cv_host in
  2115. *-*-*) ;;
  2116. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2117. esac
  2118. host=$ac_cv_host
  2119. ac_save_IFS=$IFS; IFS='-'
  2120. set x $ac_cv_host
  2121. shift
  2122. host_cpu=$1
  2123. host_vendor=$2
  2124. shift; shift
  2125. # Remember, the first character of IFS is used to create $*,
  2126. # except with old shells:
  2127. host_os=$*
  2128. IFS=$ac_save_IFS
  2129. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2130. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2131. $as_echo_n "checking target system type... " >&6; }
  2132. if ${ac_cv_target+:} false; then :
  2133. $as_echo_n "(cached) " >&6
  2134. else
  2135. if test "x$target_alias" = x; then
  2136. ac_cv_target=$ac_cv_host
  2137. else
  2138. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2139. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2140. fi
  2141. fi
  2142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2143. $as_echo "$ac_cv_target" >&6; }
  2144. case $ac_cv_target in
  2145. *-*-*) ;;
  2146. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2147. esac
  2148. target=$ac_cv_target
  2149. ac_save_IFS=$IFS; IFS='-'
  2150. set x $ac_cv_target
  2151. shift
  2152. target_cpu=$1
  2153. target_vendor=$2
  2154. shift; shift
  2155. # Remember, the first character of IFS is used to create $*,
  2156. # except with old shells:
  2157. target_os=$*
  2158. IFS=$ac_save_IFS
  2159. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2160. # The aliases save the names the user supplied, while $host etc.
  2161. # will get canonicalized.
  2162. test -n "$target_alias" &&
  2163. test "$program_prefix$program_suffix$program_transform_name" = \
  2164. NONENONEs,x,x, &&
  2165. program_prefix=${target_alias}-
  2166. am__api_version='1.11'
  2167. # Find a good install program. We prefer a C program (faster),
  2168. # so one script is as good as another. But avoid the broken or
  2169. # incompatible versions:
  2170. # SysV /etc/install, /usr/sbin/install
  2171. # SunOS /usr/etc/install
  2172. # IRIX /sbin/install
  2173. # AIX /bin/install
  2174. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2175. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2176. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2177. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2178. # OS/2's system install, which has a completely different semantic
  2179. # ./install, which can be erroneously created by make from ./install.sh.
  2180. # Reject install programs that cannot install multiple files.
  2181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2182. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2183. if test -z "$INSTALL"; then
  2184. if ${ac_cv_path_install+:} false; then :
  2185. $as_echo_n "(cached) " >&6
  2186. else
  2187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2188. for as_dir in $PATH
  2189. do
  2190. IFS=$as_save_IFS
  2191. test -z "$as_dir" && as_dir=.
  2192. # Account for people who put trailing slashes in PATH elements.
  2193. case $as_dir/ in #((
  2194. ./ | .// | /[cC]/* | \
  2195. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2196. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2197. /usr/ucb/* ) ;;
  2198. *)
  2199. # OSF1 and SCO ODT 3.0 have their own names for install.
  2200. # Don't use installbsd from OSF since it installs stuff as root
  2201. # by default.
  2202. for ac_prog in ginstall scoinst install; do
  2203. for ac_exec_ext in '' $ac_executable_extensions; do
  2204. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2205. if test $ac_prog = install &&
  2206. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2207. # AIX install. It has an incompatible calling convention.
  2208. :
  2209. elif test $ac_prog = install &&
  2210. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2211. # program-specific install script used by HP pwplus--don't use.
  2212. :
  2213. else
  2214. rm -rf conftest.one conftest.two conftest.dir
  2215. echo one > conftest.one
  2216. echo two > conftest.two
  2217. mkdir conftest.dir
  2218. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2219. test -s conftest.one && test -s conftest.two &&
  2220. test -s conftest.dir/conftest.one &&
  2221. test -s conftest.dir/conftest.two
  2222. then
  2223. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2224. break 3
  2225. fi
  2226. fi
  2227. fi
  2228. done
  2229. done
  2230. ;;
  2231. esac
  2232. done
  2233. IFS=$as_save_IFS
  2234. rm -rf conftest.one conftest.two conftest.dir
  2235. fi
  2236. if test "${ac_cv_path_install+set}" = set; then
  2237. INSTALL=$ac_cv_path_install
  2238. else
  2239. # As a last resort, use the slow shell script. Don't cache a
  2240. # value for INSTALL within a source directory, because that will
  2241. # break other packages using the cache if that directory is
  2242. # removed, or if the value is a relative name.
  2243. INSTALL=$ac_install_sh
  2244. fi
  2245. fi
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2247. $as_echo "$INSTALL" >&6; }
  2248. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2249. # It thinks the first close brace ends the variable substitution.
  2250. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2251. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2252. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2254. $as_echo_n "checking whether build environment is sane... " >&6; }
  2255. # Just in case
  2256. sleep 1
  2257. echo timestamp > conftest.file
  2258. # Reject unsafe characters in $srcdir or the absolute working directory
  2259. # name. Accept space and tab only in the latter.
  2260. am_lf='
  2261. '
  2262. case `pwd` in
  2263. *[\\\"\#\$\&\'\`$am_lf]*)
  2264. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2265. esac
  2266. case $srcdir in
  2267. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2268. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2269. esac
  2270. # Do `set' in a subshell so we don't clobber the current shell's
  2271. # arguments. Must try -L first in case configure is actually a
  2272. # symlink; some systems play weird games with the mod time of symlinks
  2273. # (eg FreeBSD returns the mod time of the symlink's containing
  2274. # directory).
  2275. if (
  2276. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2277. if test "$*" = "X"; then
  2278. # -L didn't work.
  2279. set X `ls -t "$srcdir/configure" conftest.file`
  2280. fi
  2281. rm -f conftest.file
  2282. if test "$*" != "X $srcdir/configure conftest.file" \
  2283. && test "$*" != "X conftest.file $srcdir/configure"; then
  2284. # If neither matched, then we have a broken ls. This can happen
  2285. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2286. # broken ls alias from the environment. This has actually
  2287. # happened. Such a system could not be considered "sane".
  2288. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2289. alias in your environment" "$LINENO" 5
  2290. fi
  2291. test "$2" = conftest.file
  2292. )
  2293. then
  2294. # Ok.
  2295. :
  2296. else
  2297. as_fn_error $? "newly created file is older than distributed files!
  2298. Check your system clock" "$LINENO" 5
  2299. fi
  2300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2301. $as_echo "yes" >&6; }
  2302. test "$program_prefix" != NONE &&
  2303. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2304. # Use a double $ so make ignores it.
  2305. test "$program_suffix" != NONE &&
  2306. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2307. # Double any \ or $.
  2308. # By default was `s,x,x', remove it if useless.
  2309. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2310. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2311. # expand $ac_aux_dir to an absolute path
  2312. am_aux_dir=`cd $ac_aux_dir && pwd`
  2313. if test x"${MISSING+set}" != xset; then
  2314. case $am_aux_dir in
  2315. *\ * | *\ *)
  2316. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2317. *)
  2318. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2319. esac
  2320. fi
  2321. # Use eval to expand $SHELL
  2322. if eval "$MISSING --run true"; then
  2323. am_missing_run="$MISSING --run "
  2324. else
  2325. am_missing_run=
  2326. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2327. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2328. fi
  2329. if test x"${install_sh}" != xset; then
  2330. case $am_aux_dir in
  2331. *\ * | *\ *)
  2332. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2333. *)
  2334. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2335. esac
  2336. fi
  2337. # Installed binaries are usually stripped using `strip' when the user
  2338. # run `make install-strip'. However `strip' might not be the right
  2339. # tool to use in cross-compilation environments, therefore Automake
  2340. # will honor the `STRIP' environment variable to overrule this program.
  2341. if test "$cross_compiling" != no; then
  2342. if test -n "$ac_tool_prefix"; then
  2343. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2344. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2346. $as_echo_n "checking for $ac_word... " >&6; }
  2347. if ${ac_cv_prog_STRIP+:} false; then :
  2348. $as_echo_n "(cached) " >&6
  2349. else
  2350. if test -n "$STRIP"; then
  2351. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2352. else
  2353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2354. for as_dir in $PATH
  2355. do
  2356. IFS=$as_save_IFS
  2357. test -z "$as_dir" && as_dir=.
  2358. for ac_exec_ext in '' $ac_executable_extensions; do
  2359. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2360. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2361. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2362. break 2
  2363. fi
  2364. done
  2365. done
  2366. IFS=$as_save_IFS
  2367. fi
  2368. fi
  2369. STRIP=$ac_cv_prog_STRIP
  2370. if test -n "$STRIP"; then
  2371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2372. $as_echo "$STRIP" >&6; }
  2373. else
  2374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2375. $as_echo "no" >&6; }
  2376. fi
  2377. fi
  2378. if test -z "$ac_cv_prog_STRIP"; then
  2379. ac_ct_STRIP=$STRIP
  2380. # Extract the first word of "strip", so it can be a program name with args.
  2381. set dummy strip; ac_word=$2
  2382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2383. $as_echo_n "checking for $ac_word... " >&6; }
  2384. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2385. $as_echo_n "(cached) " >&6
  2386. else
  2387. if test -n "$ac_ct_STRIP"; then
  2388. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2389. else
  2390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2391. for as_dir in $PATH
  2392. do
  2393. IFS=$as_save_IFS
  2394. test -z "$as_dir" && as_dir=.
  2395. for ac_exec_ext in '' $ac_executable_extensions; do
  2396. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2397. ac_cv_prog_ac_ct_STRIP="strip"
  2398. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2399. break 2
  2400. fi
  2401. done
  2402. done
  2403. IFS=$as_save_IFS
  2404. fi
  2405. fi
  2406. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2407. if test -n "$ac_ct_STRIP"; then
  2408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2409. $as_echo "$ac_ct_STRIP" >&6; }
  2410. else
  2411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2412. $as_echo "no" >&6; }
  2413. fi
  2414. if test "x$ac_ct_STRIP" = x; then
  2415. STRIP=":"
  2416. else
  2417. case $cross_compiling:$ac_tool_warned in
  2418. yes:)
  2419. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2420. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2421. ac_tool_warned=yes ;;
  2422. esac
  2423. STRIP=$ac_ct_STRIP
  2424. fi
  2425. else
  2426. STRIP="$ac_cv_prog_STRIP"
  2427. fi
  2428. fi
  2429. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2431. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2432. if test -z "$MKDIR_P"; then
  2433. if ${ac_cv_path_mkdir+:} false; then :
  2434. $as_echo_n "(cached) " >&6
  2435. else
  2436. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2437. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2438. do
  2439. IFS=$as_save_IFS
  2440. test -z "$as_dir" && as_dir=.
  2441. for ac_prog in mkdir gmkdir; do
  2442. for ac_exec_ext in '' $ac_executable_extensions; do
  2443. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2444. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2445. 'mkdir (GNU coreutils) '* | \
  2446. 'mkdir (coreutils) '* | \
  2447. 'mkdir (fileutils) '4.1*)
  2448. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2449. break 3;;
  2450. esac
  2451. done
  2452. done
  2453. done
  2454. IFS=$as_save_IFS
  2455. fi
  2456. test -d ./--version && rmdir ./--version
  2457. if test "${ac_cv_path_mkdir+set}" = set; then
  2458. MKDIR_P="$ac_cv_path_mkdir -p"
  2459. else
  2460. # As a last resort, use the slow shell script. Don't cache a
  2461. # value for MKDIR_P within a source directory, because that will
  2462. # break other packages using the cache if that directory is
  2463. # removed, or if the value is a relative name.
  2464. MKDIR_P="$ac_install_sh -d"
  2465. fi
  2466. fi
  2467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2468. $as_echo "$MKDIR_P" >&6; }
  2469. mkdir_p="$MKDIR_P"
  2470. case $mkdir_p in
  2471. [\\/$]* | ?:[\\/]*) ;;
  2472. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2473. esac
  2474. for ac_prog in gawk mawk nawk awk
  2475. do
  2476. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2477. set dummy $ac_prog; ac_word=$2
  2478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2479. $as_echo_n "checking for $ac_word... " >&6; }
  2480. if ${ac_cv_prog_AWK+:} false; then :
  2481. $as_echo_n "(cached) " >&6
  2482. else
  2483. if test -n "$AWK"; then
  2484. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2485. else
  2486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2487. for as_dir in $PATH
  2488. do
  2489. IFS=$as_save_IFS
  2490. test -z "$as_dir" && as_dir=.
  2491. for ac_exec_ext in '' $ac_executable_extensions; do
  2492. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2493. ac_cv_prog_AWK="$ac_prog"
  2494. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2495. break 2
  2496. fi
  2497. done
  2498. done
  2499. IFS=$as_save_IFS
  2500. fi
  2501. fi
  2502. AWK=$ac_cv_prog_AWK
  2503. if test -n "$AWK"; then
  2504. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2505. $as_echo "$AWK" >&6; }
  2506. else
  2507. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2508. $as_echo "no" >&6; }
  2509. fi
  2510. test -n "$AWK" && break
  2511. done
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2513. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2514. set x ${MAKE-make}
  2515. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2516. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2517. $as_echo_n "(cached) " >&6
  2518. else
  2519. cat >conftest.make <<\_ACEOF
  2520. SHELL = /bin/sh
  2521. all:
  2522. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2523. _ACEOF
  2524. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2525. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2526. *@@@%%%=?*=@@@%%%*)
  2527. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2528. *)
  2529. eval ac_cv_prog_make_${ac_make}_set=no;;
  2530. esac
  2531. rm -f conftest.make
  2532. fi
  2533. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2535. $as_echo "yes" >&6; }
  2536. SET_MAKE=
  2537. else
  2538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2539. $as_echo "no" >&6; }
  2540. SET_MAKE="MAKE=${MAKE-make}"
  2541. fi
  2542. rm -rf .tst 2>/dev/null
  2543. mkdir .tst 2>/dev/null
  2544. if test -d .tst; then
  2545. am__leading_dot=.
  2546. else
  2547. am__leading_dot=_
  2548. fi
  2549. rmdir .tst 2>/dev/null
  2550. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2551. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2552. # is not polluted with repeated "-I."
  2553. am__isrc=' -I$(srcdir)'
  2554. # test to see if srcdir already configured
  2555. if test -f $srcdir/config.status; then
  2556. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2557. fi
  2558. fi
  2559. # test whether we have cygpath
  2560. if test -z "$CYGPATH_W"; then
  2561. if (cygpath --version) >/dev/null 2>/dev/null; then
  2562. CYGPATH_W='cygpath -w'
  2563. else
  2564. CYGPATH_W=echo
  2565. fi
  2566. fi
  2567. # Define the identity of the package.
  2568. PACKAGE=mythes
  2569. VERSION=1.2.3
  2570. cat >>confdefs.h <<_ACEOF
  2571. #define PACKAGE "$PACKAGE"
  2572. _ACEOF
  2573. cat >>confdefs.h <<_ACEOF
  2574. #define VERSION "$VERSION"
  2575. _ACEOF
  2576. # Some tools Automake needs.
  2577. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2578. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2579. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2580. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2581. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2582. # We need awk for the "check" target. The system "awk" is bad on
  2583. # some platforms.
  2584. # Always define AMTAR for backward compatibility. Yes, it's still used
  2585. # in the wild :-( We should find a proper way to deprecate it ...
  2586. AMTAR='$${TAR-tar}'
  2587. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2588. MYTHES_VERSION_MAJOR=`echo $VERSION | cut -d"." -f1`
  2589. MYTHES_VERSION_MINOR=`echo $VERSION | cut -d"." -f2`
  2590. ac_config_headers="$ac_config_headers config.h"
  2591. # Checks for programs.
  2592. ac_ext=cpp
  2593. ac_cpp='$CXXCPP $CPPFLAGS'
  2594. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2595. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2596. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2597. if test -z "$CXX"; then
  2598. if test -n "$CCC"; then
  2599. CXX=$CCC
  2600. else
  2601. if test -n "$ac_tool_prefix"; then
  2602. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2603. do
  2604. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2605. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2607. $as_echo_n "checking for $ac_word... " >&6; }
  2608. if ${ac_cv_prog_CXX+:} false; then :
  2609. $as_echo_n "(cached) " >&6
  2610. else
  2611. if test -n "$CXX"; then
  2612. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2613. else
  2614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2615. for as_dir in $PATH
  2616. do
  2617. IFS=$as_save_IFS
  2618. test -z "$as_dir" && as_dir=.
  2619. for ac_exec_ext in '' $ac_executable_extensions; do
  2620. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2621. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2622. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2623. break 2
  2624. fi
  2625. done
  2626. done
  2627. IFS=$as_save_IFS
  2628. fi
  2629. fi
  2630. CXX=$ac_cv_prog_CXX
  2631. if test -n "$CXX"; then
  2632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2633. $as_echo "$CXX" >&6; }
  2634. else
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2636. $as_echo "no" >&6; }
  2637. fi
  2638. test -n "$CXX" && break
  2639. done
  2640. fi
  2641. if test -z "$CXX"; then
  2642. ac_ct_CXX=$CXX
  2643. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2644. do
  2645. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2646. set dummy $ac_prog; ac_word=$2
  2647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2648. $as_echo_n "checking for $ac_word... " >&6; }
  2649. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  2650. $as_echo_n "(cached) " >&6
  2651. else
  2652. if test -n "$ac_ct_CXX"; then
  2653. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2654. else
  2655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2656. for as_dir in $PATH
  2657. do
  2658. IFS=$as_save_IFS
  2659. test -z "$as_dir" && as_dir=.
  2660. for ac_exec_ext in '' $ac_executable_extensions; do
  2661. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2662. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2663. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2664. break 2
  2665. fi
  2666. done
  2667. done
  2668. IFS=$as_save_IFS
  2669. fi
  2670. fi
  2671. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2672. if test -n "$ac_ct_CXX"; then
  2673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2674. $as_echo "$ac_ct_CXX" >&6; }
  2675. else
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2677. $as_echo "no" >&6; }
  2678. fi
  2679. test -n "$ac_ct_CXX" && break
  2680. done
  2681. if test "x$ac_ct_CXX" = x; then
  2682. CXX="g++"
  2683. else
  2684. case $cross_compiling:$ac_tool_warned in
  2685. yes:)
  2686. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2687. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2688. ac_tool_warned=yes ;;
  2689. esac
  2690. CXX=$ac_ct_CXX
  2691. fi
  2692. fi
  2693. fi
  2694. fi
  2695. # Provide some information about the compiler.
  2696. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2697. set X $ac_compile
  2698. ac_compiler=$2
  2699. for ac_option in --version -v -V -qversion; do
  2700. { { ac_try="$ac_compiler $ac_option >&5"
  2701. case "(($ac_try" in
  2702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2703. *) ac_try_echo=$ac_try;;
  2704. esac
  2705. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2706. $as_echo "$ac_try_echo"; } >&5
  2707. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2708. ac_status=$?
  2709. if test -s conftest.err; then
  2710. sed '10a\
  2711. ... rest of stderr output deleted ...
  2712. 10q' conftest.err >conftest.er1
  2713. cat conftest.er1 >&5
  2714. fi
  2715. rm -f conftest.er1 conftest.err
  2716. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2717. test $ac_status = 0; }
  2718. done
  2719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2720. /* end confdefs.h. */
  2721. int
  2722. main ()
  2723. {
  2724. ;
  2725. return 0;
  2726. }
  2727. _ACEOF
  2728. ac_clean_files_save=$ac_clean_files
  2729. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2730. # Try to create an executable without -o first, disregard a.out.
  2731. # It will help us diagnose broken compilers, and finding out an intuition
  2732. # of exeext.
  2733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2734. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2735. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2736. # The possible output files:
  2737. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2738. ac_rmfiles=
  2739. for ac_file in $ac_files
  2740. do
  2741. case $ac_file in
  2742. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2743. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2744. esac
  2745. done
  2746. rm -f $ac_rmfiles
  2747. if { { ac_try="$ac_link_default"
  2748. case "(($ac_try" in
  2749. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2750. *) ac_try_echo=$ac_try;;
  2751. esac
  2752. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2753. $as_echo "$ac_try_echo"; } >&5
  2754. (eval "$ac_link_default") 2>&5
  2755. ac_status=$?
  2756. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2757. test $ac_status = 0; }; then :
  2758. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2759. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2760. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2761. # so that the user can short-circuit this test for compilers unknown to
  2762. # Autoconf.
  2763. for ac_file in $ac_files ''
  2764. do
  2765. test -f "$ac_file" || continue
  2766. case $ac_file in
  2767. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2768. ;;
  2769. [ab].out )
  2770. # We found the default executable, but exeext='' is most
  2771. # certainly right.
  2772. break;;
  2773. *.* )
  2774. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2775. then :; else
  2776. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2777. fi
  2778. # We set ac_cv_exeext here because the later test for it is not
  2779. # safe: cross compilers may not add the suffix if given an `-o'
  2780. # argument, so we may need to know it at that point already.
  2781. # Even if this section looks crufty: it has the advantage of
  2782. # actually working.
  2783. break;;
  2784. * )
  2785. break;;
  2786. esac
  2787. done
  2788. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2789. else
  2790. ac_file=''
  2791. fi
  2792. if test -z "$ac_file"; then :
  2793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2794. $as_echo "no" >&6; }
  2795. $as_echo "$as_me: failed program was:" >&5
  2796. sed 's/^/| /' conftest.$ac_ext >&5
  2797. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2798. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2799. as_fn_error 77 "C++ compiler cannot create executables
  2800. See \`config.log' for more details" "$LINENO" 5; }
  2801. else
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2803. $as_echo "yes" >&6; }
  2804. fi
  2805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2806. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2808. $as_echo "$ac_file" >&6; }
  2809. ac_exeext=$ac_cv_exeext
  2810. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2811. ac_clean_files=$ac_clean_files_save
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2813. $as_echo_n "checking for suffix of executables... " >&6; }
  2814. if { { ac_try="$ac_link"
  2815. case "(($ac_try" in
  2816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2817. *) ac_try_echo=$ac_try;;
  2818. esac
  2819. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2820. $as_echo "$ac_try_echo"; } >&5
  2821. (eval "$ac_link") 2>&5
  2822. ac_status=$?
  2823. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2824. test $ac_status = 0; }; then :
  2825. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2826. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2827. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2828. # `rm'.
  2829. for ac_file in conftest.exe conftest conftest.*; do
  2830. test -f "$ac_file" || continue
  2831. case $ac_file in
  2832. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2833. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2834. break;;
  2835. * ) break;;
  2836. esac
  2837. done
  2838. else
  2839. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2840. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2841. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2842. See \`config.log' for more details" "$LINENO" 5; }
  2843. fi
  2844. rm -f conftest conftest$ac_cv_exeext
  2845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2846. $as_echo "$ac_cv_exeext" >&6; }
  2847. rm -f conftest.$ac_ext
  2848. EXEEXT=$ac_cv_exeext
  2849. ac_exeext=$EXEEXT
  2850. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2851. /* end confdefs.h. */
  2852. #include <stdio.h>
  2853. int
  2854. main ()
  2855. {
  2856. FILE *f = fopen ("conftest.out", "w");
  2857. return ferror (f) || fclose (f) != 0;
  2858. ;
  2859. return 0;
  2860. }
  2861. _ACEOF
  2862. ac_clean_files="$ac_clean_files conftest.out"
  2863. # Check that the compiler produces executables we can run. If not, either
  2864. # the compiler is broken, or we cross compile.
  2865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2866. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2867. if test "$cross_compiling" != yes; then
  2868. { { ac_try="$ac_link"
  2869. case "(($ac_try" in
  2870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2871. *) ac_try_echo=$ac_try;;
  2872. esac
  2873. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2874. $as_echo "$ac_try_echo"; } >&5
  2875. (eval "$ac_link") 2>&5
  2876. ac_status=$?
  2877. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2878. test $ac_status = 0; }
  2879. if { ac_try='./conftest$ac_cv_exeext'
  2880. { { case "(($ac_try" in
  2881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2882. *) ac_try_echo=$ac_try;;
  2883. esac
  2884. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2885. $as_echo "$ac_try_echo"; } >&5
  2886. (eval "$ac_try") 2>&5
  2887. ac_status=$?
  2888. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2889. test $ac_status = 0; }; }; then
  2890. cross_compiling=no
  2891. else
  2892. if test "$cross_compiling" = maybe; then
  2893. cross_compiling=yes
  2894. else
  2895. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2896. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2897. as_fn_error $? "cannot run C++ compiled programs.
  2898. If you meant to cross compile, use \`--host'.
  2899. See \`config.log' for more details" "$LINENO" 5; }
  2900. fi
  2901. fi
  2902. fi
  2903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2904. $as_echo "$cross_compiling" >&6; }
  2905. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2906. ac_clean_files=$ac_clean_files_save
  2907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2908. $as_echo_n "checking for suffix of object files... " >&6; }
  2909. if ${ac_cv_objext+:} false; then :
  2910. $as_echo_n "(cached) " >&6
  2911. else
  2912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2913. /* end confdefs.h. */
  2914. int
  2915. main ()
  2916. {
  2917. ;
  2918. return 0;
  2919. }
  2920. _ACEOF
  2921. rm -f conftest.o conftest.obj
  2922. if { { ac_try="$ac_compile"
  2923. case "(($ac_try" in
  2924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2925. *) ac_try_echo=$ac_try;;
  2926. esac
  2927. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2928. $as_echo "$ac_try_echo"; } >&5
  2929. (eval "$ac_compile") 2>&5
  2930. ac_status=$?
  2931. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2932. test $ac_status = 0; }; then :
  2933. for ac_file in conftest.o conftest.obj conftest.*; do
  2934. test -f "$ac_file" || continue;
  2935. case $ac_file in
  2936. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2937. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2938. break;;
  2939. esac
  2940. done
  2941. else
  2942. $as_echo "$as_me: failed program was:" >&5
  2943. sed 's/^/| /' conftest.$ac_ext >&5
  2944. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2945. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2946. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2947. See \`config.log' for more details" "$LINENO" 5; }
  2948. fi
  2949. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2950. fi
  2951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2952. $as_echo "$ac_cv_objext" >&6; }
  2953. OBJEXT=$ac_cv_objext
  2954. ac_objext=$OBJEXT
  2955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  2956. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2957. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  2958. $as_echo_n "(cached) " >&6
  2959. else
  2960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2961. /* end confdefs.h. */
  2962. int
  2963. main ()
  2964. {
  2965. #ifndef __GNUC__
  2966. choke me
  2967. #endif
  2968. ;
  2969. return 0;
  2970. }
  2971. _ACEOF
  2972. if ac_fn_cxx_try_compile "$LINENO"; then :
  2973. ac_compiler_gnu=yes
  2974. else
  2975. ac_compiler_gnu=no
  2976. fi
  2977. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2978. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2979. fi
  2980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  2981. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2982. if test $ac_compiler_gnu = yes; then
  2983. GXX=yes
  2984. else
  2985. GXX=
  2986. fi
  2987. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2988. ac_save_CXXFLAGS=$CXXFLAGS
  2989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  2990. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2991. if ${ac_cv_prog_cxx_g+:} false; then :
  2992. $as_echo_n "(cached) " >&6
  2993. else
  2994. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2995. ac_cxx_werror_flag=yes
  2996. ac_cv_prog_cxx_g=no
  2997. CXXFLAGS="-g"
  2998. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2999. /* end confdefs.h. */
  3000. int
  3001. main ()
  3002. {
  3003. ;
  3004. return 0;
  3005. }
  3006. _ACEOF
  3007. if ac_fn_cxx_try_compile "$LINENO"; then :
  3008. ac_cv_prog_cxx_g=yes
  3009. else
  3010. CXXFLAGS=""
  3011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3012. /* end confdefs.h. */
  3013. int
  3014. main ()
  3015. {
  3016. ;
  3017. return 0;
  3018. }
  3019. _ACEOF
  3020. if ac_fn_cxx_try_compile "$LINENO"; then :
  3021. else
  3022. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3023. CXXFLAGS="-g"
  3024. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3025. /* end confdefs.h. */
  3026. int
  3027. main ()
  3028. {
  3029. ;
  3030. return 0;
  3031. }
  3032. _ACEOF
  3033. if ac_fn_cxx_try_compile "$LINENO"; then :
  3034. ac_cv_prog_cxx_g=yes
  3035. fi
  3036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3037. fi
  3038. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3039. fi
  3040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3041. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3042. fi
  3043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3044. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3045. if test "$ac_test_CXXFLAGS" = set; then
  3046. CXXFLAGS=$ac_save_CXXFLAGS
  3047. elif test $ac_cv_prog_cxx_g = yes; then
  3048. if test "$GXX" = yes; then
  3049. CXXFLAGS="-g -O2"
  3050. else
  3051. CXXFLAGS="-g"
  3052. fi
  3053. else
  3054. if test "$GXX" = yes; then
  3055. CXXFLAGS="-O2"
  3056. else
  3057. CXXFLAGS=
  3058. fi
  3059. fi
  3060. ac_ext=c
  3061. ac_cpp='$CPP $CPPFLAGS'
  3062. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3063. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3064. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3065. DEPDIR="${am__leading_dot}deps"
  3066. ac_config_commands="$ac_config_commands depfiles"
  3067. am_make=${MAKE-make}
  3068. cat > confinc << 'END'
  3069. am__doit:
  3070. @echo this is the am__doit target
  3071. .PHONY: am__doit
  3072. END
  3073. # If we don't find an include directive, just comment out the code.
  3074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3075. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3076. am__include="#"
  3077. am__quote=
  3078. _am_result=none
  3079. # First try GNU make style include.
  3080. echo "include confinc" > confmf
  3081. # Ignore all kinds of additional output from `make'.
  3082. case `$am_make -s -f confmf 2> /dev/null` in #(
  3083. *the\ am__doit\ target*)
  3084. am__include=include
  3085. am__quote=
  3086. _am_result=GNU
  3087. ;;
  3088. esac
  3089. # Now try BSD make style include.
  3090. if test "$am__include" = "#"; then
  3091. echo '.include "confinc"' > confmf
  3092. case `$am_make -s -f confmf 2> /dev/null` in #(
  3093. *the\ am__doit\ target*)
  3094. am__include=.include
  3095. am__quote="\""
  3096. _am_result=BSD
  3097. ;;
  3098. esac
  3099. fi
  3100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3101. $as_echo "$_am_result" >&6; }
  3102. rm -f confinc confmf
  3103. # Check whether --enable-dependency-tracking was given.
  3104. if test "${enable_dependency_tracking+set}" = set; then :
  3105. enableval=$enable_dependency_tracking;
  3106. fi
  3107. if test "x$enable_dependency_tracking" != xno; then
  3108. am_depcomp="$ac_aux_dir/depcomp"
  3109. AMDEPBACKSLASH='\'
  3110. am__nodep='_no'
  3111. fi
  3112. if test "x$enable_dependency_tracking" != xno; then
  3113. AMDEP_TRUE=
  3114. AMDEP_FALSE='#'
  3115. else
  3116. AMDEP_TRUE='#'
  3117. AMDEP_FALSE=
  3118. fi
  3119. depcc="$CXX" am_compiler_list=
  3120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3121. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3122. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  3123. $as_echo_n "(cached) " >&6
  3124. else
  3125. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3126. # We make a subdir and do the tests there. Otherwise we can end up
  3127. # making bogus files that we don't know about and never remove. For
  3128. # instance it was reported that on HP-UX the gcc test will end up
  3129. # making a dummy file named `D' -- because `-MD' means `put the output
  3130. # in D'.
  3131. rm -rf conftest.dir
  3132. mkdir conftest.dir
  3133. # Copy depcomp to subdir because otherwise we won't find it if we're
  3134. # using a relative directory.
  3135. cp "$am_depcomp" conftest.dir
  3136. cd conftest.dir
  3137. # We will build objects and dependencies in a subdirectory because
  3138. # it helps to detect inapplicable dependency modes. For instance
  3139. # both Tru64's cc and ICC support -MD to output dependencies as a
  3140. # side effect of compilation, but ICC will put the dependencies in
  3141. # the current directory while Tru64 will put them in the object
  3142. # directory.
  3143. mkdir sub
  3144. am_cv_CXX_dependencies_compiler_type=none
  3145. if test "$am_compiler_list" = ""; then
  3146. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3147. fi
  3148. am__universal=false
  3149. case " $depcc " in #(
  3150. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3151. esac
  3152. for depmode in $am_compiler_list; do
  3153. # Setup a source with many dependencies, because some compilers
  3154. # like to wrap large dependency lists on column 80 (with \), and
  3155. # we should not choose a depcomp mode which is confused by this.
  3156. #
  3157. # We need to recreate these files for each test, as the compiler may
  3158. # overwrite some of them when testing with obscure command lines.
  3159. # This happens at least with the AIX C compiler.
  3160. : > sub/conftest.c
  3161. for i in 1 2 3 4 5 6; do
  3162. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3163. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3164. # Solaris 8's {/usr,}/bin/sh.
  3165. touch sub/conftst$i.h
  3166. done
  3167. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3168. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3169. # mode. It turns out that the SunPro C++ compiler does not properly
  3170. # handle `-M -o', and we need to detect this. Also, some Intel
  3171. # versions had trouble with output in subdirs
  3172. am__obj=sub/conftest.${OBJEXT-o}
  3173. am__minus_obj="-o $am__obj"
  3174. case $depmode in
  3175. gcc)
  3176. # This depmode causes a compiler race in universal mode.
  3177. test "$am__universal" = false || continue
  3178. ;;
  3179. nosideeffect)
  3180. # after this tag, mechanisms are not by side-effect, so they'll
  3181. # only be used when explicitly requested
  3182. if test "x$enable_dependency_tracking" = xyes; then
  3183. continue
  3184. else
  3185. break
  3186. fi
  3187. ;;
  3188. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3189. # This compiler won't grok `-c -o', but also, the minuso test has
  3190. # not run yet. These depmodes are late enough in the game, and
  3191. # so weak that their functioning should not be impacted.
  3192. am__obj=conftest.${OBJEXT-o}
  3193. am__minus_obj=
  3194. ;;
  3195. none) break ;;
  3196. esac
  3197. if depmode=$depmode \
  3198. source=sub/conftest.c object=$am__obj \
  3199. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3200. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3201. >/dev/null 2>conftest.err &&
  3202. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3203. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3204. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3205. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3206. # icc doesn't choke on unknown options, it will just issue warnings
  3207. # or remarks (even with -Werror). So we grep stderr for any message
  3208. # that says an option was ignored or not supported.
  3209. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3210. # icc: Command line warning: ignoring option '-M'; no argument required
  3211. # The diagnosis changed in icc 8.0:
  3212. # icc: Command line remark: option '-MP' not supported
  3213. if (grep 'ignoring option' conftest.err ||
  3214. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3215. am_cv_CXX_dependencies_compiler_type=$depmode
  3216. break
  3217. fi
  3218. fi
  3219. done
  3220. cd ..
  3221. rm -rf conftest.dir
  3222. else
  3223. am_cv_CXX_dependencies_compiler_type=none
  3224. fi
  3225. fi
  3226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3227. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3228. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3229. if
  3230. test "x$enable_dependency_tracking" != xno \
  3231. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3232. am__fastdepCXX_TRUE=
  3233. am__fastdepCXX_FALSE='#'
  3234. else
  3235. am__fastdepCXX_TRUE='#'
  3236. am__fastdepCXX_FALSE=
  3237. fi
  3238. ac_ext=c
  3239. ac_cpp='$CPP $CPPFLAGS'
  3240. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3241. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3242. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3243. if test -n "$ac_tool_prefix"; then
  3244. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3245. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3247. $as_echo_n "checking for $ac_word... " >&6; }
  3248. if ${ac_cv_prog_CC+:} false; then :
  3249. $as_echo_n "(cached) " >&6
  3250. else
  3251. if test -n "$CC"; then
  3252. ac_cv_prog_CC="$CC" # Let the user override the test.
  3253. else
  3254. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3255. for as_dir in $PATH
  3256. do
  3257. IFS=$as_save_IFS
  3258. test -z "$as_dir" && as_dir=.
  3259. for ac_exec_ext in '' $ac_executable_extensions; do
  3260. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3261. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3262. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3263. break 2
  3264. fi
  3265. done
  3266. done
  3267. IFS=$as_save_IFS
  3268. fi
  3269. fi
  3270. CC=$ac_cv_prog_CC
  3271. if test -n "$CC"; then
  3272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3273. $as_echo "$CC" >&6; }
  3274. else
  3275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3276. $as_echo "no" >&6; }
  3277. fi
  3278. fi
  3279. if test -z "$ac_cv_prog_CC"; then
  3280. ac_ct_CC=$CC
  3281. # Extract the first word of "gcc", so it can be a program name with args.
  3282. set dummy gcc; ac_word=$2
  3283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3284. $as_echo_n "checking for $ac_word... " >&6; }
  3285. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3286. $as_echo_n "(cached) " >&6
  3287. else
  3288. if test -n "$ac_ct_CC"; then
  3289. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3290. else
  3291. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3292. for as_dir in $PATH
  3293. do
  3294. IFS=$as_save_IFS
  3295. test -z "$as_dir" && as_dir=.
  3296. for ac_exec_ext in '' $ac_executable_extensions; do
  3297. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3298. ac_cv_prog_ac_ct_CC="gcc"
  3299. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3300. break 2
  3301. fi
  3302. done
  3303. done
  3304. IFS=$as_save_IFS
  3305. fi
  3306. fi
  3307. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3308. if test -n "$ac_ct_CC"; then
  3309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3310. $as_echo "$ac_ct_CC" >&6; }
  3311. else
  3312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3313. $as_echo "no" >&6; }
  3314. fi
  3315. if test "x$ac_ct_CC" = x; then
  3316. CC=""
  3317. else
  3318. case $cross_compiling:$ac_tool_warned in
  3319. yes:)
  3320. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3321. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3322. ac_tool_warned=yes ;;
  3323. esac
  3324. CC=$ac_ct_CC
  3325. fi
  3326. else
  3327. CC="$ac_cv_prog_CC"
  3328. fi
  3329. if test -z "$CC"; then
  3330. if test -n "$ac_tool_prefix"; then
  3331. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3332. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3334. $as_echo_n "checking for $ac_word... " >&6; }
  3335. if ${ac_cv_prog_CC+:} false; then :
  3336. $as_echo_n "(cached) " >&6
  3337. else
  3338. if test -n "$CC"; then
  3339. ac_cv_prog_CC="$CC" # Let the user override the test.
  3340. else
  3341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3342. for as_dir in $PATH
  3343. do
  3344. IFS=$as_save_IFS
  3345. test -z "$as_dir" && as_dir=.
  3346. for ac_exec_ext in '' $ac_executable_extensions; do
  3347. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3348. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3349. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3350. break 2
  3351. fi
  3352. done
  3353. done
  3354. IFS=$as_save_IFS
  3355. fi
  3356. fi
  3357. CC=$ac_cv_prog_CC
  3358. if test -n "$CC"; then
  3359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3360. $as_echo "$CC" >&6; }
  3361. else
  3362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3363. $as_echo "no" >&6; }
  3364. fi
  3365. fi
  3366. fi
  3367. if test -z "$CC"; then
  3368. # Extract the first word of "cc", so it can be a program name with args.
  3369. set dummy cc; ac_word=$2
  3370. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3371. $as_echo_n "checking for $ac_word... " >&6; }
  3372. if ${ac_cv_prog_CC+:} false; then :
  3373. $as_echo_n "(cached) " >&6
  3374. else
  3375. if test -n "$CC"; then
  3376. ac_cv_prog_CC="$CC" # Let the user override the test.
  3377. else
  3378. ac_prog_rejected=no
  3379. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3380. for as_dir in $PATH
  3381. do
  3382. IFS=$as_save_IFS
  3383. test -z "$as_dir" && as_dir=.
  3384. for ac_exec_ext in '' $ac_executable_extensions; do
  3385. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3386. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3387. ac_prog_rejected=yes
  3388. continue
  3389. fi
  3390. ac_cv_prog_CC="cc"
  3391. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3392. break 2
  3393. fi
  3394. done
  3395. done
  3396. IFS=$as_save_IFS
  3397. if test $ac_prog_rejected = yes; then
  3398. # We found a bogon in the path, so make sure we never use it.
  3399. set dummy $ac_cv_prog_CC
  3400. shift
  3401. if test $# != 0; then
  3402. # We chose a different compiler from the bogus one.
  3403. # However, it has the same basename, so the bogon will be chosen
  3404. # first if we set CC to just the basename; use the full file name.
  3405. shift
  3406. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3407. fi
  3408. fi
  3409. fi
  3410. fi
  3411. CC=$ac_cv_prog_CC
  3412. if test -n "$CC"; then
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3414. $as_echo "$CC" >&6; }
  3415. else
  3416. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3417. $as_echo "no" >&6; }
  3418. fi
  3419. fi
  3420. if test -z "$CC"; then
  3421. if test -n "$ac_tool_prefix"; then
  3422. for ac_prog in cl.exe
  3423. do
  3424. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3425. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3427. $as_echo_n "checking for $ac_word... " >&6; }
  3428. if ${ac_cv_prog_CC+:} false; then :
  3429. $as_echo_n "(cached) " >&6
  3430. else
  3431. if test -n "$CC"; then
  3432. ac_cv_prog_CC="$CC" # Let the user override the test.
  3433. else
  3434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3435. for as_dir in $PATH
  3436. do
  3437. IFS=$as_save_IFS
  3438. test -z "$as_dir" && as_dir=.
  3439. for ac_exec_ext in '' $ac_executable_extensions; do
  3440. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3441. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3442. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3443. break 2
  3444. fi
  3445. done
  3446. done
  3447. IFS=$as_save_IFS
  3448. fi
  3449. fi
  3450. CC=$ac_cv_prog_CC
  3451. if test -n "$CC"; then
  3452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3453. $as_echo "$CC" >&6; }
  3454. else
  3455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3456. $as_echo "no" >&6; }
  3457. fi
  3458. test -n "$CC" && break
  3459. done
  3460. fi
  3461. if test -z "$CC"; then
  3462. ac_ct_CC=$CC
  3463. for ac_prog in cl.exe
  3464. do
  3465. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3466. set dummy $ac_prog; ac_word=$2
  3467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3468. $as_echo_n "checking for $ac_word... " >&6; }
  3469. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3470. $as_echo_n "(cached) " >&6
  3471. else
  3472. if test -n "$ac_ct_CC"; then
  3473. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3474. else
  3475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3476. for as_dir in $PATH
  3477. do
  3478. IFS=$as_save_IFS
  3479. test -z "$as_dir" && as_dir=.
  3480. for ac_exec_ext in '' $ac_executable_extensions; do
  3481. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3482. ac_cv_prog_ac_ct_CC="$ac_prog"
  3483. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3484. break 2
  3485. fi
  3486. done
  3487. done
  3488. IFS=$as_save_IFS
  3489. fi
  3490. fi
  3491. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3492. if test -n "$ac_ct_CC"; then
  3493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3494. $as_echo "$ac_ct_CC" >&6; }
  3495. else
  3496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3497. $as_echo "no" >&6; }
  3498. fi
  3499. test -n "$ac_ct_CC" && break
  3500. done
  3501. if test "x$ac_ct_CC" = x; then
  3502. CC=""
  3503. else
  3504. case $cross_compiling:$ac_tool_warned in
  3505. yes:)
  3506. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3507. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3508. ac_tool_warned=yes ;;
  3509. esac
  3510. CC=$ac_ct_CC
  3511. fi
  3512. fi
  3513. fi
  3514. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3515. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3516. as_fn_error $? "no acceptable C compiler found in \$PATH
  3517. See \`config.log' for more details" "$LINENO" 5; }
  3518. # Provide some information about the compiler.
  3519. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3520. set X $ac_compile
  3521. ac_compiler=$2
  3522. for ac_option in --version -v -V -qversion; do
  3523. { { ac_try="$ac_compiler $ac_option >&5"
  3524. case "(($ac_try" in
  3525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3526. *) ac_try_echo=$ac_try;;
  3527. esac
  3528. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3529. $as_echo "$ac_try_echo"; } >&5
  3530. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3531. ac_status=$?
  3532. if test -s conftest.err; then
  3533. sed '10a\
  3534. ... rest of stderr output deleted ...
  3535. 10q' conftest.err >conftest.er1
  3536. cat conftest.er1 >&5
  3537. fi
  3538. rm -f conftest.er1 conftest.err
  3539. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3540. test $ac_status = 0; }
  3541. done
  3542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3543. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3544. if ${ac_cv_c_compiler_gnu+:} false; then :
  3545. $as_echo_n "(cached) " >&6
  3546. else
  3547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3548. /* end confdefs.h. */
  3549. int
  3550. main ()
  3551. {
  3552. #ifndef __GNUC__
  3553. choke me
  3554. #endif
  3555. ;
  3556. return 0;
  3557. }
  3558. _ACEOF
  3559. if ac_fn_c_try_compile "$LINENO"; then :
  3560. ac_compiler_gnu=yes
  3561. else
  3562. ac_compiler_gnu=no
  3563. fi
  3564. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3565. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3566. fi
  3567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3568. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3569. if test $ac_compiler_gnu = yes; then
  3570. GCC=yes
  3571. else
  3572. GCC=
  3573. fi
  3574. ac_test_CFLAGS=${CFLAGS+set}
  3575. ac_save_CFLAGS=$CFLAGS
  3576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3577. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3578. if ${ac_cv_prog_cc_g+:} false; then :
  3579. $as_echo_n "(cached) " >&6
  3580. else
  3581. ac_save_c_werror_flag=$ac_c_werror_flag
  3582. ac_c_werror_flag=yes
  3583. ac_cv_prog_cc_g=no
  3584. CFLAGS="-g"
  3585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3586. /* end confdefs.h. */
  3587. int
  3588. main ()
  3589. {
  3590. ;
  3591. return 0;
  3592. }
  3593. _ACEOF
  3594. if ac_fn_c_try_compile "$LINENO"; then :
  3595. ac_cv_prog_cc_g=yes
  3596. else
  3597. CFLAGS=""
  3598. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3599. /* end confdefs.h. */
  3600. int
  3601. main ()
  3602. {
  3603. ;
  3604. return 0;
  3605. }
  3606. _ACEOF
  3607. if ac_fn_c_try_compile "$LINENO"; then :
  3608. else
  3609. ac_c_werror_flag=$ac_save_c_werror_flag
  3610. CFLAGS="-g"
  3611. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3612. /* end confdefs.h. */
  3613. int
  3614. main ()
  3615. {
  3616. ;
  3617. return 0;
  3618. }
  3619. _ACEOF
  3620. if ac_fn_c_try_compile "$LINENO"; then :
  3621. ac_cv_prog_cc_g=yes
  3622. fi
  3623. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3624. fi
  3625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3626. fi
  3627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3628. ac_c_werror_flag=$ac_save_c_werror_flag
  3629. fi
  3630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3631. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3632. if test "$ac_test_CFLAGS" = set; then
  3633. CFLAGS=$ac_save_CFLAGS
  3634. elif test $ac_cv_prog_cc_g = yes; then
  3635. if test "$GCC" = yes; then
  3636. CFLAGS="-g -O2"
  3637. else
  3638. CFLAGS="-g"
  3639. fi
  3640. else
  3641. if test "$GCC" = yes; then
  3642. CFLAGS="-O2"
  3643. else
  3644. CFLAGS=
  3645. fi
  3646. fi
  3647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3648. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3649. if ${ac_cv_prog_cc_c89+:} false; then :
  3650. $as_echo_n "(cached) " >&6
  3651. else
  3652. ac_cv_prog_cc_c89=no
  3653. ac_save_CC=$CC
  3654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3655. /* end confdefs.h. */
  3656. #include <stdarg.h>
  3657. #include <stdio.h>
  3658. #include <sys/types.h>
  3659. #include <sys/stat.h>
  3660. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3661. struct buf { int x; };
  3662. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3663. static char *e (p, i)
  3664. char **p;
  3665. int i;
  3666. {
  3667. return p[i];
  3668. }
  3669. static char *f (char * (*g) (char **, int), char **p, ...)
  3670. {
  3671. char *s;
  3672. va_list v;
  3673. va_start (v,p);
  3674. s = g (p, va_arg (v,int));
  3675. va_end (v);
  3676. return s;
  3677. }
  3678. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3679. function prototypes and stuff, but not '\xHH' hex character constants.
  3680. These don't provoke an error unfortunately, instead are silently treated
  3681. as 'x'. The following induces an error, until -std is added to get
  3682. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3683. array size at least. It's necessary to write '\x00'==0 to get something
  3684. that's true only with -std. */
  3685. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3686. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3687. inside strings and character constants. */
  3688. #define FOO(x) 'x'
  3689. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3690. int test (int i, double x);
  3691. struct s1 {int (*f) (int a);};
  3692. struct s2 {int (*f) (double a);};
  3693. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3694. int argc;
  3695. char **argv;
  3696. int
  3697. main ()
  3698. {
  3699. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3700. ;
  3701. return 0;
  3702. }
  3703. _ACEOF
  3704. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3705. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3706. do
  3707. CC="$ac_save_CC $ac_arg"
  3708. if ac_fn_c_try_compile "$LINENO"; then :
  3709. ac_cv_prog_cc_c89=$ac_arg
  3710. fi
  3711. rm -f core conftest.err conftest.$ac_objext
  3712. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3713. done
  3714. rm -f conftest.$ac_ext
  3715. CC=$ac_save_CC
  3716. fi
  3717. # AC_CACHE_VAL
  3718. case "x$ac_cv_prog_cc_c89" in
  3719. x)
  3720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3721. $as_echo "none needed" >&6; } ;;
  3722. xno)
  3723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3724. $as_echo "unsupported" >&6; } ;;
  3725. *)
  3726. CC="$CC $ac_cv_prog_cc_c89"
  3727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3728. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3729. esac
  3730. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3731. fi
  3732. ac_ext=c
  3733. ac_cpp='$CPP $CPPFLAGS'
  3734. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3735. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3736. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3737. depcc="$CC" am_compiler_list=
  3738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3739. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3740. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3741. $as_echo_n "(cached) " >&6
  3742. else
  3743. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3744. # We make a subdir and do the tests there. Otherwise we can end up
  3745. # making bogus files that we don't know about and never remove. For
  3746. # instance it was reported that on HP-UX the gcc test will end up
  3747. # making a dummy file named `D' -- because `-MD' means `put the output
  3748. # in D'.
  3749. rm -rf conftest.dir
  3750. mkdir conftest.dir
  3751. # Copy depcomp to subdir because otherwise we won't find it if we're
  3752. # using a relative directory.
  3753. cp "$am_depcomp" conftest.dir
  3754. cd conftest.dir
  3755. # We will build objects and dependencies in a subdirectory because
  3756. # it helps to detect inapplicable dependency modes. For instance
  3757. # both Tru64's cc and ICC support -MD to output dependencies as a
  3758. # side effect of compilation, but ICC will put the dependencies in
  3759. # the current directory while Tru64 will put them in the object
  3760. # directory.
  3761. mkdir sub
  3762. am_cv_CC_dependencies_compiler_type=none
  3763. if test "$am_compiler_list" = ""; then
  3764. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3765. fi
  3766. am__universal=false
  3767. case " $depcc " in #(
  3768. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3769. esac
  3770. for depmode in $am_compiler_list; do
  3771. # Setup a source with many dependencies, because some compilers
  3772. # like to wrap large dependency lists on column 80 (with \), and
  3773. # we should not choose a depcomp mode which is confused by this.
  3774. #
  3775. # We need to recreate these files for each test, as the compiler may
  3776. # overwrite some of them when testing with obscure command lines.
  3777. # This happens at least with the AIX C compiler.
  3778. : > sub/conftest.c
  3779. for i in 1 2 3 4 5 6; do
  3780. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3781. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3782. # Solaris 8's {/usr,}/bin/sh.
  3783. touch sub/conftst$i.h
  3784. done
  3785. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3786. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3787. # mode. It turns out that the SunPro C++ compiler does not properly
  3788. # handle `-M -o', and we need to detect this. Also, some Intel
  3789. # versions had trouble with output in subdirs
  3790. am__obj=sub/conftest.${OBJEXT-o}
  3791. am__minus_obj="-o $am__obj"
  3792. case $depmode in
  3793. gcc)
  3794. # This depmode causes a compiler race in universal mode.
  3795. test "$am__universal" = false || continue
  3796. ;;
  3797. nosideeffect)
  3798. # after this tag, mechanisms are not by side-effect, so they'll
  3799. # only be used when explicitly requested
  3800. if test "x$enable_dependency_tracking" = xyes; then
  3801. continue
  3802. else
  3803. break
  3804. fi
  3805. ;;
  3806. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3807. # This compiler won't grok `-c -o', but also, the minuso test has
  3808. # not run yet. These depmodes are late enough in the game, and
  3809. # so weak that their functioning should not be impacted.
  3810. am__obj=conftest.${OBJEXT-o}
  3811. am__minus_obj=
  3812. ;;
  3813. none) break ;;
  3814. esac
  3815. if depmode=$depmode \
  3816. source=sub/conftest.c object=$am__obj \
  3817. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3818. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3819. >/dev/null 2>conftest.err &&
  3820. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3821. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3822. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3823. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3824. # icc doesn't choke on unknown options, it will just issue warnings
  3825. # or remarks (even with -Werror). So we grep stderr for any message
  3826. # that says an option was ignored or not supported.
  3827. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3828. # icc: Command line warning: ignoring option '-M'; no argument required
  3829. # The diagnosis changed in icc 8.0:
  3830. # icc: Command line remark: option '-MP' not supported
  3831. if (grep 'ignoring option' conftest.err ||
  3832. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3833. am_cv_CC_dependencies_compiler_type=$depmode
  3834. break
  3835. fi
  3836. fi
  3837. done
  3838. cd ..
  3839. rm -rf conftest.dir
  3840. else
  3841. am_cv_CC_dependencies_compiler_type=none
  3842. fi
  3843. fi
  3844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3845. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3846. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3847. if
  3848. test "x$enable_dependency_tracking" != xno \
  3849. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3850. am__fastdepCC_TRUE=
  3851. am__fastdepCC_FALSE='#'
  3852. else
  3853. am__fastdepCC_TRUE='#'
  3854. am__fastdepCC_FALSE=
  3855. fi
  3856. case `pwd` in
  3857. *\ * | *\ *)
  3858. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3859. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3860. esac
  3861. macro_version='2.4.2'
  3862. macro_revision='1.3337'
  3863. ltmain="$ac_aux_dir/ltmain.sh"
  3864. # Backslashify metacharacters that are still active within
  3865. # double-quoted strings.
  3866. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3867. # Same as above, but do not quote variable references.
  3868. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3869. # Sed substitution to delay expansion of an escaped shell variable in a
  3870. # double_quote_subst'ed string.
  3871. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3872. # Sed substitution to delay expansion of an escaped single quote.
  3873. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3874. # Sed substitution to avoid accidental globbing in evaled expressions
  3875. no_glob_subst='s/\*/\\\*/g'
  3876. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3877. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3878. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3880. $as_echo_n "checking how to print strings... " >&6; }
  3881. # Test print first, because it will be a builtin if present.
  3882. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3883. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3884. ECHO='print -r --'
  3885. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3886. ECHO='printf %s\n'
  3887. else
  3888. # Use this function as a fallback that always works.
  3889. func_fallback_echo ()
  3890. {
  3891. eval 'cat <<_LTECHO_EOF
  3892. $1
  3893. _LTECHO_EOF'
  3894. }
  3895. ECHO='func_fallback_echo'
  3896. fi
  3897. # func_echo_all arg...
  3898. # Invoke $ECHO with all args, space-separated.
  3899. func_echo_all ()
  3900. {
  3901. $ECHO ""
  3902. }
  3903. case "$ECHO" in
  3904. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3905. $as_echo "printf" >&6; } ;;
  3906. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3907. $as_echo "print -r" >&6; } ;;
  3908. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3909. $as_echo "cat" >&6; } ;;
  3910. esac
  3911. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3912. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3913. if ${ac_cv_path_SED+:} false; then :
  3914. $as_echo_n "(cached) " >&6
  3915. else
  3916. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3917. for ac_i in 1 2 3 4 5 6 7; do
  3918. ac_script="$ac_script$as_nl$ac_script"
  3919. done
  3920. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3921. { ac_script=; unset ac_script;}
  3922. if test -z "$SED"; then
  3923. ac_path_SED_found=false
  3924. # Loop through the user's path and test for each of PROGNAME-LIST
  3925. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3926. for as_dir in $PATH
  3927. do
  3928. IFS=$as_save_IFS
  3929. test -z "$as_dir" && as_dir=.
  3930. for ac_prog in sed gsed; do
  3931. for ac_exec_ext in '' $ac_executable_extensions; do
  3932. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3933. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3934. # Check for GNU ac_path_SED and select it if it is found.
  3935. # Check for GNU $ac_path_SED
  3936. case `"$ac_path_SED" --version 2>&1` in
  3937. *GNU*)
  3938. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3939. *)
  3940. ac_count=0
  3941. $as_echo_n 0123456789 >"conftest.in"
  3942. while :
  3943. do
  3944. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3945. mv "conftest.tmp" "conftest.in"
  3946. cp "conftest.in" "conftest.nl"
  3947. $as_echo '' >> "conftest.nl"
  3948. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3949. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3950. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3951. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3952. # Best one so far, save it but keep looking for a better one
  3953. ac_cv_path_SED="$ac_path_SED"
  3954. ac_path_SED_max=$ac_count
  3955. fi
  3956. # 10*(2^10) chars as input seems more than enough
  3957. test $ac_count -gt 10 && break
  3958. done
  3959. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3960. esac
  3961. $ac_path_SED_found && break 3
  3962. done
  3963. done
  3964. done
  3965. IFS=$as_save_IFS
  3966. if test -z "$ac_cv_path_SED"; then
  3967. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3968. fi
  3969. else
  3970. ac_cv_path_SED=$SED
  3971. fi
  3972. fi
  3973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3974. $as_echo "$ac_cv_path_SED" >&6; }
  3975. SED="$ac_cv_path_SED"
  3976. rm -f conftest.sed
  3977. test -z "$SED" && SED=sed
  3978. Xsed="$SED -e 1s/^X//"
  3979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3980. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3981. if ${ac_cv_path_GREP+:} false; then :
  3982. $as_echo_n "(cached) " >&6
  3983. else
  3984. if test -z "$GREP"; then
  3985. ac_path_GREP_found=false
  3986. # Loop through the user's path and test for each of PROGNAME-LIST
  3987. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3988. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3989. do
  3990. IFS=$as_save_IFS
  3991. test -z "$as_dir" && as_dir=.
  3992. for ac_prog in grep ggrep; do
  3993. for ac_exec_ext in '' $ac_executable_extensions; do
  3994. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3995. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3996. # Check for GNU ac_path_GREP and select it if it is found.
  3997. # Check for GNU $ac_path_GREP
  3998. case `"$ac_path_GREP" --version 2>&1` in
  3999. *GNU*)
  4000. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4001. *)
  4002. ac_count=0
  4003. $as_echo_n 0123456789 >"conftest.in"
  4004. while :
  4005. do
  4006. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4007. mv "conftest.tmp" "conftest.in"
  4008. cp "conftest.in" "conftest.nl"
  4009. $as_echo 'GREP' >> "conftest.nl"
  4010. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4011. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4012. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4013. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4014. # Best one so far, save it but keep looking for a better one
  4015. ac_cv_path_GREP="$ac_path_GREP"
  4016. ac_path_GREP_max=$ac_count
  4017. fi
  4018. # 10*(2^10) chars as input seems more than enough
  4019. test $ac_count -gt 10 && break
  4020. done
  4021. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4022. esac
  4023. $ac_path_GREP_found && break 3
  4024. done
  4025. done
  4026. done
  4027. IFS=$as_save_IFS
  4028. if test -z "$ac_cv_path_GREP"; then
  4029. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4030. fi
  4031. else
  4032. ac_cv_path_GREP=$GREP
  4033. fi
  4034. fi
  4035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4036. $as_echo "$ac_cv_path_GREP" >&6; }
  4037. GREP="$ac_cv_path_GREP"
  4038. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4039. $as_echo_n "checking for egrep... " >&6; }
  4040. if ${ac_cv_path_EGREP+:} false; then :
  4041. $as_echo_n "(cached) " >&6
  4042. else
  4043. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4044. then ac_cv_path_EGREP="$GREP -E"
  4045. else
  4046. if test -z "$EGREP"; then
  4047. ac_path_EGREP_found=false
  4048. # Loop through the user's path and test for each of PROGNAME-LIST
  4049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4050. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4051. do
  4052. IFS=$as_save_IFS
  4053. test -z "$as_dir" && as_dir=.
  4054. for ac_prog in egrep; do
  4055. for ac_exec_ext in '' $ac_executable_extensions; do
  4056. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4057. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4058. # Check for GNU ac_path_EGREP and select it if it is found.
  4059. # Check for GNU $ac_path_EGREP
  4060. case `"$ac_path_EGREP" --version 2>&1` in
  4061. *GNU*)
  4062. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4063. *)
  4064. ac_count=0
  4065. $as_echo_n 0123456789 >"conftest.in"
  4066. while :
  4067. do
  4068. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4069. mv "conftest.tmp" "conftest.in"
  4070. cp "conftest.in" "conftest.nl"
  4071. $as_echo 'EGREP' >> "conftest.nl"
  4072. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4073. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4074. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4075. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4076. # Best one so far, save it but keep looking for a better one
  4077. ac_cv_path_EGREP="$ac_path_EGREP"
  4078. ac_path_EGREP_max=$ac_count
  4079. fi
  4080. # 10*(2^10) chars as input seems more than enough
  4081. test $ac_count -gt 10 && break
  4082. done
  4083. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4084. esac
  4085. $ac_path_EGREP_found && break 3
  4086. done
  4087. done
  4088. done
  4089. IFS=$as_save_IFS
  4090. if test -z "$ac_cv_path_EGREP"; then
  4091. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4092. fi
  4093. else
  4094. ac_cv_path_EGREP=$EGREP
  4095. fi
  4096. fi
  4097. fi
  4098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4099. $as_echo "$ac_cv_path_EGREP" >&6; }
  4100. EGREP="$ac_cv_path_EGREP"
  4101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4102. $as_echo_n "checking for fgrep... " >&6; }
  4103. if ${ac_cv_path_FGREP+:} false; then :
  4104. $as_echo_n "(cached) " >&6
  4105. else
  4106. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4107. then ac_cv_path_FGREP="$GREP -F"
  4108. else
  4109. if test -z "$FGREP"; then
  4110. ac_path_FGREP_found=false
  4111. # Loop through the user's path and test for each of PROGNAME-LIST
  4112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4113. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4114. do
  4115. IFS=$as_save_IFS
  4116. test -z "$as_dir" && as_dir=.
  4117. for ac_prog in fgrep; do
  4118. for ac_exec_ext in '' $ac_executable_extensions; do
  4119. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4120. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4121. # Check for GNU ac_path_FGREP and select it if it is found.
  4122. # Check for GNU $ac_path_FGREP
  4123. case `"$ac_path_FGREP" --version 2>&1` in
  4124. *GNU*)
  4125. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4126. *)
  4127. ac_count=0
  4128. $as_echo_n 0123456789 >"conftest.in"
  4129. while :
  4130. do
  4131. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4132. mv "conftest.tmp" "conftest.in"
  4133. cp "conftest.in" "conftest.nl"
  4134. $as_echo 'FGREP' >> "conftest.nl"
  4135. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4136. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4137. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4138. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4139. # Best one so far, save it but keep looking for a better one
  4140. ac_cv_path_FGREP="$ac_path_FGREP"
  4141. ac_path_FGREP_max=$ac_count
  4142. fi
  4143. # 10*(2^10) chars as input seems more than enough
  4144. test $ac_count -gt 10 && break
  4145. done
  4146. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4147. esac
  4148. $ac_path_FGREP_found && break 3
  4149. done
  4150. done
  4151. done
  4152. IFS=$as_save_IFS
  4153. if test -z "$ac_cv_path_FGREP"; then
  4154. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4155. fi
  4156. else
  4157. ac_cv_path_FGREP=$FGREP
  4158. fi
  4159. fi
  4160. fi
  4161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4162. $as_echo "$ac_cv_path_FGREP" >&6; }
  4163. FGREP="$ac_cv_path_FGREP"
  4164. test -z "$GREP" && GREP=grep
  4165. # Check whether --with-gnu-ld was given.
  4166. if test "${with_gnu_ld+set}" = set; then :
  4167. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4168. else
  4169. with_gnu_ld=no
  4170. fi
  4171. ac_prog=ld
  4172. if test "$GCC" = yes; then
  4173. # Check if gcc -print-prog-name=ld gives a path.
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4175. $as_echo_n "checking for ld used by $CC... " >&6; }
  4176. case $host in
  4177. *-*-mingw*)
  4178. # gcc leaves a trailing carriage return which upsets mingw
  4179. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4180. *)
  4181. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4182. esac
  4183. case $ac_prog in
  4184. # Accept absolute paths.
  4185. [\\/]* | ?:[\\/]*)
  4186. re_direlt='/[^/][^/]*/\.\./'
  4187. # Canonicalize the pathname of ld
  4188. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4189. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4190. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4191. done
  4192. test -z "$LD" && LD="$ac_prog"
  4193. ;;
  4194. "")
  4195. # If it fails, then pretend we aren't using GCC.
  4196. ac_prog=ld
  4197. ;;
  4198. *)
  4199. # If it is relative, then search for the first ld in PATH.
  4200. with_gnu_ld=unknown
  4201. ;;
  4202. esac
  4203. elif test "$with_gnu_ld" = yes; then
  4204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4205. $as_echo_n "checking for GNU ld... " >&6; }
  4206. else
  4207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4208. $as_echo_n "checking for non-GNU ld... " >&6; }
  4209. fi
  4210. if ${lt_cv_path_LD+:} false; then :
  4211. $as_echo_n "(cached) " >&6
  4212. else
  4213. if test -z "$LD"; then
  4214. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4215. for ac_dir in $PATH; do
  4216. IFS="$lt_save_ifs"
  4217. test -z "$ac_dir" && ac_dir=.
  4218. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4219. lt_cv_path_LD="$ac_dir/$ac_prog"
  4220. # Check to see if the program is GNU ld. I'd rather use --version,
  4221. # but apparently some variants of GNU ld only accept -v.
  4222. # Break only if it was the GNU/non-GNU ld that we prefer.
  4223. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4224. *GNU* | *'with BFD'*)
  4225. test "$with_gnu_ld" != no && break
  4226. ;;
  4227. *)
  4228. test "$with_gnu_ld" != yes && break
  4229. ;;
  4230. esac
  4231. fi
  4232. done
  4233. IFS="$lt_save_ifs"
  4234. else
  4235. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4236. fi
  4237. fi
  4238. LD="$lt_cv_path_LD"
  4239. if test -n "$LD"; then
  4240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4241. $as_echo "$LD" >&6; }
  4242. else
  4243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4244. $as_echo "no" >&6; }
  4245. fi
  4246. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4248. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4249. if ${lt_cv_prog_gnu_ld+:} false; then :
  4250. $as_echo_n "(cached) " >&6
  4251. else
  4252. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4253. case `$LD -v 2>&1 </dev/null` in
  4254. *GNU* | *'with BFD'*)
  4255. lt_cv_prog_gnu_ld=yes
  4256. ;;
  4257. *)
  4258. lt_cv_prog_gnu_ld=no
  4259. ;;
  4260. esac
  4261. fi
  4262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4263. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4264. with_gnu_ld=$lt_cv_prog_gnu_ld
  4265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4266. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4267. if ${lt_cv_path_NM+:} false; then :
  4268. $as_echo_n "(cached) " >&6
  4269. else
  4270. if test -n "$NM"; then
  4271. # Let the user override the test.
  4272. lt_cv_path_NM="$NM"
  4273. else
  4274. lt_nm_to_check="${ac_tool_prefix}nm"
  4275. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4276. lt_nm_to_check="$lt_nm_to_check nm"
  4277. fi
  4278. for lt_tmp_nm in $lt_nm_to_check; do
  4279. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4280. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4281. IFS="$lt_save_ifs"
  4282. test -z "$ac_dir" && ac_dir=.
  4283. tmp_nm="$ac_dir/$lt_tmp_nm"
  4284. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4285. # Check to see if the nm accepts a BSD-compat flag.
  4286. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4287. # nm: unknown option "B" ignored
  4288. # Tru64's nm complains that /dev/null is an invalid object file
  4289. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4290. */dev/null* | *'Invalid file or object type'*)
  4291. lt_cv_path_NM="$tmp_nm -B"
  4292. break
  4293. ;;
  4294. *)
  4295. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4296. */dev/null*)
  4297. lt_cv_path_NM="$tmp_nm -p"
  4298. break
  4299. ;;
  4300. *)
  4301. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4302. continue # so that we can try to find one that supports BSD flags
  4303. ;;
  4304. esac
  4305. ;;
  4306. esac
  4307. fi
  4308. done
  4309. IFS="$lt_save_ifs"
  4310. done
  4311. : ${lt_cv_path_NM=no}
  4312. fi
  4313. fi
  4314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4315. $as_echo "$lt_cv_path_NM" >&6; }
  4316. if test "$lt_cv_path_NM" != "no"; then
  4317. NM="$lt_cv_path_NM"
  4318. else
  4319. # Didn't find any BSD compatible name lister, look for dumpbin.
  4320. if test -n "$DUMPBIN"; then :
  4321. # Let the user override the test.
  4322. else
  4323. if test -n "$ac_tool_prefix"; then
  4324. for ac_prog in dumpbin "link -dump"
  4325. do
  4326. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4327. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4329. $as_echo_n "checking for $ac_word... " >&6; }
  4330. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4331. $as_echo_n "(cached) " >&6
  4332. else
  4333. if test -n "$DUMPBIN"; then
  4334. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4335. else
  4336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4337. for as_dir in $PATH
  4338. do
  4339. IFS=$as_save_IFS
  4340. test -z "$as_dir" && as_dir=.
  4341. for ac_exec_ext in '' $ac_executable_extensions; do
  4342. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4343. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4344. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4345. break 2
  4346. fi
  4347. done
  4348. done
  4349. IFS=$as_save_IFS
  4350. fi
  4351. fi
  4352. DUMPBIN=$ac_cv_prog_DUMPBIN
  4353. if test -n "$DUMPBIN"; then
  4354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4355. $as_echo "$DUMPBIN" >&6; }
  4356. else
  4357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4358. $as_echo "no" >&6; }
  4359. fi
  4360. test -n "$DUMPBIN" && break
  4361. done
  4362. fi
  4363. if test -z "$DUMPBIN"; then
  4364. ac_ct_DUMPBIN=$DUMPBIN
  4365. for ac_prog in dumpbin "link -dump"
  4366. do
  4367. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4368. set dummy $ac_prog; ac_word=$2
  4369. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4370. $as_echo_n "checking for $ac_word... " >&6; }
  4371. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4372. $as_echo_n "(cached) " >&6
  4373. else
  4374. if test -n "$ac_ct_DUMPBIN"; then
  4375. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4376. else
  4377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4378. for as_dir in $PATH
  4379. do
  4380. IFS=$as_save_IFS
  4381. test -z "$as_dir" && as_dir=.
  4382. for ac_exec_ext in '' $ac_executable_extensions; do
  4383. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4384. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4385. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4386. break 2
  4387. fi
  4388. done
  4389. done
  4390. IFS=$as_save_IFS
  4391. fi
  4392. fi
  4393. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4394. if test -n "$ac_ct_DUMPBIN"; then
  4395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4396. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4397. else
  4398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4399. $as_echo "no" >&6; }
  4400. fi
  4401. test -n "$ac_ct_DUMPBIN" && break
  4402. done
  4403. if test "x$ac_ct_DUMPBIN" = x; then
  4404. DUMPBIN=":"
  4405. else
  4406. case $cross_compiling:$ac_tool_warned in
  4407. yes:)
  4408. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4409. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4410. ac_tool_warned=yes ;;
  4411. esac
  4412. DUMPBIN=$ac_ct_DUMPBIN
  4413. fi
  4414. fi
  4415. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4416. *COFF*)
  4417. DUMPBIN="$DUMPBIN -symbols"
  4418. ;;
  4419. *)
  4420. DUMPBIN=:
  4421. ;;
  4422. esac
  4423. fi
  4424. if test "$DUMPBIN" != ":"; then
  4425. NM="$DUMPBIN"
  4426. fi
  4427. fi
  4428. test -z "$NM" && NM=nm
  4429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4430. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4431. if ${lt_cv_nm_interface+:} false; then :
  4432. $as_echo_n "(cached) " >&6
  4433. else
  4434. lt_cv_nm_interface="BSD nm"
  4435. echo "int some_variable = 0;" > conftest.$ac_ext
  4436. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4437. (eval "$ac_compile" 2>conftest.err)
  4438. cat conftest.err >&5
  4439. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4440. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4441. cat conftest.err >&5
  4442. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4443. cat conftest.out >&5
  4444. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4445. lt_cv_nm_interface="MS dumpbin"
  4446. fi
  4447. rm -f conftest*
  4448. fi
  4449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4450. $as_echo "$lt_cv_nm_interface" >&6; }
  4451. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4452. $as_echo_n "checking whether ln -s works... " >&6; }
  4453. LN_S=$as_ln_s
  4454. if test "$LN_S" = "ln -s"; then
  4455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4456. $as_echo "yes" >&6; }
  4457. else
  4458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4459. $as_echo "no, using $LN_S" >&6; }
  4460. fi
  4461. # find the maximum length of command line arguments
  4462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4463. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4464. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4465. $as_echo_n "(cached) " >&6
  4466. else
  4467. i=0
  4468. teststring="ABCD"
  4469. case $build_os in
  4470. msdosdjgpp*)
  4471. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4472. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4473. # during glob expansion). Even if it were fixed, the result of this
  4474. # check would be larger than it should be.
  4475. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4476. ;;
  4477. gnu*)
  4478. # Under GNU Hurd, this test is not required because there is
  4479. # no limit to the length of command line arguments.
  4480. # Libtool will interpret -1 as no limit whatsoever
  4481. lt_cv_sys_max_cmd_len=-1;
  4482. ;;
  4483. cygwin* | mingw* | cegcc*)
  4484. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4485. # about 5 minutes as the teststring grows exponentially.
  4486. # Worse, since 9x/ME are not pre-emptively multitasking,
  4487. # you end up with a "frozen" computer, even though with patience
  4488. # the test eventually succeeds (with a max line length of 256k).
  4489. # Instead, let's just punt: use the minimum linelength reported by
  4490. # all of the supported platforms: 8192 (on NT/2K/XP).
  4491. lt_cv_sys_max_cmd_len=8192;
  4492. ;;
  4493. mint*)
  4494. # On MiNT this can take a long time and run out of memory.
  4495. lt_cv_sys_max_cmd_len=8192;
  4496. ;;
  4497. amigaos*)
  4498. # On AmigaOS with pdksh, this test takes hours, literally.
  4499. # So we just punt and use a minimum line length of 8192.
  4500. lt_cv_sys_max_cmd_len=8192;
  4501. ;;
  4502. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4503. # This has been around since 386BSD, at least. Likely further.
  4504. if test -x /sbin/sysctl; then
  4505. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4506. elif test -x /usr/sbin/sysctl; then
  4507. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4508. else
  4509. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4510. fi
  4511. # And add a safety zone
  4512. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4513. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4514. ;;
  4515. interix*)
  4516. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4517. lt_cv_sys_max_cmd_len=196608
  4518. ;;
  4519. os2*)
  4520. # The test takes a long time on OS/2.
  4521. lt_cv_sys_max_cmd_len=8192
  4522. ;;
  4523. osf*)
  4524. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4525. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4526. # nice to cause kernel panics so lets avoid the loop below.
  4527. # First set a reasonable default.
  4528. lt_cv_sys_max_cmd_len=16384
  4529. #
  4530. if test -x /sbin/sysconfig; then
  4531. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4532. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4533. esac
  4534. fi
  4535. ;;
  4536. sco3.2v5*)
  4537. lt_cv_sys_max_cmd_len=102400
  4538. ;;
  4539. sysv5* | sco5v6* | sysv4.2uw2*)
  4540. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4541. if test -n "$kargmax"; then
  4542. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4543. else
  4544. lt_cv_sys_max_cmd_len=32768
  4545. fi
  4546. ;;
  4547. *)
  4548. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4549. if test -n "$lt_cv_sys_max_cmd_len"; then
  4550. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4551. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4552. else
  4553. # Make teststring a little bigger before we do anything with it.
  4554. # a 1K string should be a reasonable start.
  4555. for i in 1 2 3 4 5 6 7 8 ; do
  4556. teststring=$teststring$teststring
  4557. done
  4558. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4559. # If test is not a shell built-in, we'll probably end up computing a
  4560. # maximum length that is only half of the actual maximum length, but
  4561. # we can't tell.
  4562. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4563. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4564. test $i != 17 # 1/2 MB should be enough
  4565. do
  4566. i=`expr $i + 1`
  4567. teststring=$teststring$teststring
  4568. done
  4569. # Only check the string length outside the loop.
  4570. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4571. teststring=
  4572. # Add a significant safety factor because C++ compilers can tack on
  4573. # massive amounts of additional arguments before passing them to the
  4574. # linker. It appears as though 1/2 is a usable value.
  4575. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4576. fi
  4577. ;;
  4578. esac
  4579. fi
  4580. if test -n $lt_cv_sys_max_cmd_len ; then
  4581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4582. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4583. else
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4585. $as_echo "none" >&6; }
  4586. fi
  4587. max_cmd_len=$lt_cv_sys_max_cmd_len
  4588. : ${CP="cp -f"}
  4589. : ${MV="mv -f"}
  4590. : ${RM="rm -f"}
  4591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4592. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4593. # Try some XSI features
  4594. xsi_shell=no
  4595. ( _lt_dummy="a/b/c"
  4596. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4597. = c,a/b,b/c, \
  4598. && eval 'test $(( 1 + 1 )) -eq 2 \
  4599. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4600. && xsi_shell=yes
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4602. $as_echo "$xsi_shell" >&6; }
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4604. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4605. lt_shell_append=no
  4606. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4607. >/dev/null 2>&1 \
  4608. && lt_shell_append=yes
  4609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4610. $as_echo "$lt_shell_append" >&6; }
  4611. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4612. lt_unset=unset
  4613. else
  4614. lt_unset=false
  4615. fi
  4616. # test EBCDIC or ASCII
  4617. case `echo X|tr X '\101'` in
  4618. A) # ASCII based system
  4619. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4620. lt_SP2NL='tr \040 \012'
  4621. lt_NL2SP='tr \015\012 \040\040'
  4622. ;;
  4623. *) # EBCDIC based system
  4624. lt_SP2NL='tr \100 \n'
  4625. lt_NL2SP='tr \r\n \100\100'
  4626. ;;
  4627. esac
  4628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4629. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4630. if ${lt_cv_to_host_file_cmd+:} false; then :
  4631. $as_echo_n "(cached) " >&6
  4632. else
  4633. case $host in
  4634. *-*-mingw* )
  4635. case $build in
  4636. *-*-mingw* ) # actually msys
  4637. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4638. ;;
  4639. *-*-cygwin* )
  4640. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4641. ;;
  4642. * ) # otherwise, assume *nix
  4643. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4644. ;;
  4645. esac
  4646. ;;
  4647. *-*-cygwin* )
  4648. case $build in
  4649. *-*-mingw* ) # actually msys
  4650. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4651. ;;
  4652. *-*-cygwin* )
  4653. lt_cv_to_host_file_cmd=func_convert_file_noop
  4654. ;;
  4655. * ) # otherwise, assume *nix
  4656. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4657. ;;
  4658. esac
  4659. ;;
  4660. * ) # unhandled hosts (and "normal" native builds)
  4661. lt_cv_to_host_file_cmd=func_convert_file_noop
  4662. ;;
  4663. esac
  4664. fi
  4665. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4667. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4669. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4670. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4671. $as_echo_n "(cached) " >&6
  4672. else
  4673. #assume ordinary cross tools, or native build.
  4674. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4675. case $host in
  4676. *-*-mingw* )
  4677. case $build in
  4678. *-*-mingw* ) # actually msys
  4679. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4680. ;;
  4681. esac
  4682. ;;
  4683. esac
  4684. fi
  4685. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4687. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4689. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4690. if ${lt_cv_ld_reload_flag+:} false; then :
  4691. $as_echo_n "(cached) " >&6
  4692. else
  4693. lt_cv_ld_reload_flag='-r'
  4694. fi
  4695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4696. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4697. reload_flag=$lt_cv_ld_reload_flag
  4698. case $reload_flag in
  4699. "" | " "*) ;;
  4700. *) reload_flag=" $reload_flag" ;;
  4701. esac
  4702. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4703. case $host_os in
  4704. cygwin* | mingw* | pw32* | cegcc*)
  4705. if test "$GCC" != yes; then
  4706. reload_cmds=false
  4707. fi
  4708. ;;
  4709. darwin*)
  4710. if test "$GCC" = yes; then
  4711. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4712. else
  4713. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4714. fi
  4715. ;;
  4716. esac
  4717. if test -n "$ac_tool_prefix"; then
  4718. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4719. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4721. $as_echo_n "checking for $ac_word... " >&6; }
  4722. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4723. $as_echo_n "(cached) " >&6
  4724. else
  4725. if test -n "$OBJDUMP"; then
  4726. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4727. else
  4728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4729. for as_dir in $PATH
  4730. do
  4731. IFS=$as_save_IFS
  4732. test -z "$as_dir" && as_dir=.
  4733. for ac_exec_ext in '' $ac_executable_extensions; do
  4734. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4735. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4736. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4737. break 2
  4738. fi
  4739. done
  4740. done
  4741. IFS=$as_save_IFS
  4742. fi
  4743. fi
  4744. OBJDUMP=$ac_cv_prog_OBJDUMP
  4745. if test -n "$OBJDUMP"; then
  4746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4747. $as_echo "$OBJDUMP" >&6; }
  4748. else
  4749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4750. $as_echo "no" >&6; }
  4751. fi
  4752. fi
  4753. if test -z "$ac_cv_prog_OBJDUMP"; then
  4754. ac_ct_OBJDUMP=$OBJDUMP
  4755. # Extract the first word of "objdump", so it can be a program name with args.
  4756. set dummy objdump; ac_word=$2
  4757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4758. $as_echo_n "checking for $ac_word... " >&6; }
  4759. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4760. $as_echo_n "(cached) " >&6
  4761. else
  4762. if test -n "$ac_ct_OBJDUMP"; then
  4763. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4764. else
  4765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4766. for as_dir in $PATH
  4767. do
  4768. IFS=$as_save_IFS
  4769. test -z "$as_dir" && as_dir=.
  4770. for ac_exec_ext in '' $ac_executable_extensions; do
  4771. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4772. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4773. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4774. break 2
  4775. fi
  4776. done
  4777. done
  4778. IFS=$as_save_IFS
  4779. fi
  4780. fi
  4781. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4782. if test -n "$ac_ct_OBJDUMP"; then
  4783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4784. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4785. else
  4786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4787. $as_echo "no" >&6; }
  4788. fi
  4789. if test "x$ac_ct_OBJDUMP" = x; then
  4790. OBJDUMP="false"
  4791. else
  4792. case $cross_compiling:$ac_tool_warned in
  4793. yes:)
  4794. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4795. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4796. ac_tool_warned=yes ;;
  4797. esac
  4798. OBJDUMP=$ac_ct_OBJDUMP
  4799. fi
  4800. else
  4801. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4802. fi
  4803. test -z "$OBJDUMP" && OBJDUMP=objdump
  4804. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4805. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4806. if ${lt_cv_deplibs_check_method+:} false; then :
  4807. $as_echo_n "(cached) " >&6
  4808. else
  4809. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4810. lt_cv_file_magic_test_file=
  4811. lt_cv_deplibs_check_method='unknown'
  4812. # Need to set the preceding variable on all platforms that support
  4813. # interlibrary dependencies.
  4814. # 'none' -- dependencies not supported.
  4815. # `unknown' -- same as none, but documents that we really don't know.
  4816. # 'pass_all' -- all dependencies passed with no checks.
  4817. # 'test_compile' -- check by making test program.
  4818. # 'file_magic [[regex]]' -- check by looking for files in library path
  4819. # which responds to the $file_magic_cmd with a given extended regex.
  4820. # If you have `file' or equivalent on your system and you're not sure
  4821. # whether `pass_all' will *always* work, you probably want this one.
  4822. case $host_os in
  4823. aix[4-9]*)
  4824. lt_cv_deplibs_check_method=pass_all
  4825. ;;
  4826. beos*)
  4827. lt_cv_deplibs_check_method=pass_all
  4828. ;;
  4829. bsdi[45]*)
  4830. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4831. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4832. lt_cv_file_magic_test_file=/shlib/libc.so
  4833. ;;
  4834. cygwin*)
  4835. # func_win32_libid is a shell function defined in ltmain.sh
  4836. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4837. lt_cv_file_magic_cmd='func_win32_libid'
  4838. ;;
  4839. mingw* | pw32*)
  4840. # Base MSYS/MinGW do not provide the 'file' command needed by
  4841. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4842. # unless we find 'file', for example because we are cross-compiling.
  4843. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4844. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4845. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4846. lt_cv_file_magic_cmd='func_win32_libid'
  4847. else
  4848. # Keep this pattern in sync with the one in func_win32_libid.
  4849. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4850. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4851. fi
  4852. ;;
  4853. cegcc*)
  4854. # use the weaker test based on 'objdump'. See mingw*.
  4855. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4856. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4857. ;;
  4858. darwin* | rhapsody*)
  4859. lt_cv_deplibs_check_method=pass_all
  4860. ;;
  4861. freebsd* | dragonfly*)
  4862. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4863. case $host_cpu in
  4864. i*86 )
  4865. # Not sure whether the presence of OpenBSD here was a mistake.
  4866. # Let's accept both of them until this is cleared up.
  4867. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4868. lt_cv_file_magic_cmd=/usr/bin/file
  4869. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4870. ;;
  4871. esac
  4872. else
  4873. lt_cv_deplibs_check_method=pass_all
  4874. fi
  4875. ;;
  4876. gnu*)
  4877. lt_cv_deplibs_check_method=pass_all
  4878. ;;
  4879. haiku*)
  4880. lt_cv_deplibs_check_method=pass_all
  4881. ;;
  4882. hpux10.20* | hpux11*)
  4883. lt_cv_file_magic_cmd=/usr/bin/file
  4884. case $host_cpu in
  4885. ia64*)
  4886. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4887. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4888. ;;
  4889. hppa*64*)
  4890. 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]'
  4891. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4892. ;;
  4893. *)
  4894. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4895. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4896. ;;
  4897. esac
  4898. ;;
  4899. interix[3-9]*)
  4900. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4901. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4902. ;;
  4903. irix5* | irix6* | nonstopux*)
  4904. case $LD in
  4905. *-32|*"-32 ") libmagic=32-bit;;
  4906. *-n32|*"-n32 ") libmagic=N32;;
  4907. *-64|*"-64 ") libmagic=64-bit;;
  4908. *) libmagic=never-match;;
  4909. esac
  4910. lt_cv_deplibs_check_method=pass_all
  4911. ;;
  4912. # This must be glibc/ELF.
  4913. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4914. lt_cv_deplibs_check_method=pass_all
  4915. ;;
  4916. netbsd*)
  4917. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4918. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4919. else
  4920. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4921. fi
  4922. ;;
  4923. newos6*)
  4924. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4925. lt_cv_file_magic_cmd=/usr/bin/file
  4926. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4927. ;;
  4928. *nto* | *qnx*)
  4929. lt_cv_deplibs_check_method=pass_all
  4930. ;;
  4931. openbsd*)
  4932. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4933. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4934. else
  4935. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4936. fi
  4937. ;;
  4938. osf3* | osf4* | osf5*)
  4939. lt_cv_deplibs_check_method=pass_all
  4940. ;;
  4941. rdos*)
  4942. lt_cv_deplibs_check_method=pass_all
  4943. ;;
  4944. solaris*)
  4945. lt_cv_deplibs_check_method=pass_all
  4946. ;;
  4947. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4948. lt_cv_deplibs_check_method=pass_all
  4949. ;;
  4950. sysv4 | sysv4.3*)
  4951. case $host_vendor in
  4952. motorola)
  4953. 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]'
  4954. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4955. ;;
  4956. ncr)
  4957. lt_cv_deplibs_check_method=pass_all
  4958. ;;
  4959. sequent)
  4960. lt_cv_file_magic_cmd='/bin/file'
  4961. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4962. ;;
  4963. sni)
  4964. lt_cv_file_magic_cmd='/bin/file'
  4965. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4966. lt_cv_file_magic_test_file=/lib/libc.so
  4967. ;;
  4968. siemens)
  4969. lt_cv_deplibs_check_method=pass_all
  4970. ;;
  4971. pc)
  4972. lt_cv_deplibs_check_method=pass_all
  4973. ;;
  4974. esac
  4975. ;;
  4976. tpf*)
  4977. lt_cv_deplibs_check_method=pass_all
  4978. ;;
  4979. esac
  4980. fi
  4981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4982. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4983. file_magic_glob=
  4984. want_nocaseglob=no
  4985. if test "$build" = "$host"; then
  4986. case $host_os in
  4987. mingw* | pw32*)
  4988. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4989. want_nocaseglob=yes
  4990. else
  4991. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4992. fi
  4993. ;;
  4994. esac
  4995. fi
  4996. file_magic_cmd=$lt_cv_file_magic_cmd
  4997. deplibs_check_method=$lt_cv_deplibs_check_method
  4998. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4999. if test -n "$ac_tool_prefix"; then
  5000. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5001. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5002. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5003. $as_echo_n "checking for $ac_word... " >&6; }
  5004. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5005. $as_echo_n "(cached) " >&6
  5006. else
  5007. if test -n "$DLLTOOL"; then
  5008. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5009. else
  5010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5011. for as_dir in $PATH
  5012. do
  5013. IFS=$as_save_IFS
  5014. test -z "$as_dir" && as_dir=.
  5015. for ac_exec_ext in '' $ac_executable_extensions; do
  5016. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5017. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5018. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5019. break 2
  5020. fi
  5021. done
  5022. done
  5023. IFS=$as_save_IFS
  5024. fi
  5025. fi
  5026. DLLTOOL=$ac_cv_prog_DLLTOOL
  5027. if test -n "$DLLTOOL"; then
  5028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5029. $as_echo "$DLLTOOL" >&6; }
  5030. else
  5031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5032. $as_echo "no" >&6; }
  5033. fi
  5034. fi
  5035. if test -z "$ac_cv_prog_DLLTOOL"; then
  5036. ac_ct_DLLTOOL=$DLLTOOL
  5037. # Extract the first word of "dlltool", so it can be a program name with args.
  5038. set dummy dlltool; ac_word=$2
  5039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5040. $as_echo_n "checking for $ac_word... " >&6; }
  5041. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5042. $as_echo_n "(cached) " >&6
  5043. else
  5044. if test -n "$ac_ct_DLLTOOL"; then
  5045. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5046. else
  5047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5048. for as_dir in $PATH
  5049. do
  5050. IFS=$as_save_IFS
  5051. test -z "$as_dir" && as_dir=.
  5052. for ac_exec_ext in '' $ac_executable_extensions; do
  5053. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5054. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5055. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5056. break 2
  5057. fi
  5058. done
  5059. done
  5060. IFS=$as_save_IFS
  5061. fi
  5062. fi
  5063. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5064. if test -n "$ac_ct_DLLTOOL"; then
  5065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5066. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5067. else
  5068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5069. $as_echo "no" >&6; }
  5070. fi
  5071. if test "x$ac_ct_DLLTOOL" = x; then
  5072. DLLTOOL="false"
  5073. else
  5074. case $cross_compiling:$ac_tool_warned in
  5075. yes:)
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5077. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5078. ac_tool_warned=yes ;;
  5079. esac
  5080. DLLTOOL=$ac_ct_DLLTOOL
  5081. fi
  5082. else
  5083. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5084. fi
  5085. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5087. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5088. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5089. $as_echo_n "(cached) " >&6
  5090. else
  5091. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5092. case $host_os in
  5093. cygwin* | mingw* | pw32* | cegcc*)
  5094. # two different shell functions defined in ltmain.sh
  5095. # decide which to use based on capabilities of $DLLTOOL
  5096. case `$DLLTOOL --help 2>&1` in
  5097. *--identify-strict*)
  5098. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5099. ;;
  5100. *)
  5101. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5102. ;;
  5103. esac
  5104. ;;
  5105. *)
  5106. # fallback: assume linklib IS sharedlib
  5107. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5108. ;;
  5109. esac
  5110. fi
  5111. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5112. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5113. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5114. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5115. if test -n "$ac_tool_prefix"; then
  5116. for ac_prog in ar
  5117. do
  5118. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5119. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5121. $as_echo_n "checking for $ac_word... " >&6; }
  5122. if ${ac_cv_prog_AR+:} false; then :
  5123. $as_echo_n "(cached) " >&6
  5124. else
  5125. if test -n "$AR"; then
  5126. ac_cv_prog_AR="$AR" # Let the user override the test.
  5127. else
  5128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5129. for as_dir in $PATH
  5130. do
  5131. IFS=$as_save_IFS
  5132. test -z "$as_dir" && as_dir=.
  5133. for ac_exec_ext in '' $ac_executable_extensions; do
  5134. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5135. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5136. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5137. break 2
  5138. fi
  5139. done
  5140. done
  5141. IFS=$as_save_IFS
  5142. fi
  5143. fi
  5144. AR=$ac_cv_prog_AR
  5145. if test -n "$AR"; then
  5146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5147. $as_echo "$AR" >&6; }
  5148. else
  5149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5150. $as_echo "no" >&6; }
  5151. fi
  5152. test -n "$AR" && break
  5153. done
  5154. fi
  5155. if test -z "$AR"; then
  5156. ac_ct_AR=$AR
  5157. for ac_prog in ar
  5158. do
  5159. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5160. set dummy $ac_prog; ac_word=$2
  5161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5162. $as_echo_n "checking for $ac_word... " >&6; }
  5163. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5164. $as_echo_n "(cached) " >&6
  5165. else
  5166. if test -n "$ac_ct_AR"; then
  5167. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5168. else
  5169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5170. for as_dir in $PATH
  5171. do
  5172. IFS=$as_save_IFS
  5173. test -z "$as_dir" && as_dir=.
  5174. for ac_exec_ext in '' $ac_executable_extensions; do
  5175. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5176. ac_cv_prog_ac_ct_AR="$ac_prog"
  5177. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5178. break 2
  5179. fi
  5180. done
  5181. done
  5182. IFS=$as_save_IFS
  5183. fi
  5184. fi
  5185. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5186. if test -n "$ac_ct_AR"; then
  5187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5188. $as_echo "$ac_ct_AR" >&6; }
  5189. else
  5190. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5191. $as_echo "no" >&6; }
  5192. fi
  5193. test -n "$ac_ct_AR" && break
  5194. done
  5195. if test "x$ac_ct_AR" = x; then
  5196. AR="false"
  5197. else
  5198. case $cross_compiling:$ac_tool_warned in
  5199. yes:)
  5200. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5201. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5202. ac_tool_warned=yes ;;
  5203. esac
  5204. AR=$ac_ct_AR
  5205. fi
  5206. fi
  5207. : ${AR=ar}
  5208. : ${AR_FLAGS=cru}
  5209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5210. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5211. if ${lt_cv_ar_at_file+:} false; then :
  5212. $as_echo_n "(cached) " >&6
  5213. else
  5214. lt_cv_ar_at_file=no
  5215. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5216. /* end confdefs.h. */
  5217. int
  5218. main ()
  5219. {
  5220. ;
  5221. return 0;
  5222. }
  5223. _ACEOF
  5224. if ac_fn_c_try_compile "$LINENO"; then :
  5225. echo conftest.$ac_objext > conftest.lst
  5226. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5227. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5228. (eval $lt_ar_try) 2>&5
  5229. ac_status=$?
  5230. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5231. test $ac_status = 0; }
  5232. if test "$ac_status" -eq 0; then
  5233. # Ensure the archiver fails upon bogus file names.
  5234. rm -f conftest.$ac_objext libconftest.a
  5235. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5236. (eval $lt_ar_try) 2>&5
  5237. ac_status=$?
  5238. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5239. test $ac_status = 0; }
  5240. if test "$ac_status" -ne 0; then
  5241. lt_cv_ar_at_file=@
  5242. fi
  5243. fi
  5244. rm -f conftest.* libconftest.a
  5245. fi
  5246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5247. fi
  5248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5249. $as_echo "$lt_cv_ar_at_file" >&6; }
  5250. if test "x$lt_cv_ar_at_file" = xno; then
  5251. archiver_list_spec=
  5252. else
  5253. archiver_list_spec=$lt_cv_ar_at_file
  5254. fi
  5255. if test -n "$ac_tool_prefix"; then
  5256. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5257. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5258. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5259. $as_echo_n "checking for $ac_word... " >&6; }
  5260. if ${ac_cv_prog_STRIP+:} false; then :
  5261. $as_echo_n "(cached) " >&6
  5262. else
  5263. if test -n "$STRIP"; then
  5264. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5265. else
  5266. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5267. for as_dir in $PATH
  5268. do
  5269. IFS=$as_save_IFS
  5270. test -z "$as_dir" && as_dir=.
  5271. for ac_exec_ext in '' $ac_executable_extensions; do
  5272. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5273. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5274. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5275. break 2
  5276. fi
  5277. done
  5278. done
  5279. IFS=$as_save_IFS
  5280. fi
  5281. fi
  5282. STRIP=$ac_cv_prog_STRIP
  5283. if test -n "$STRIP"; then
  5284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5285. $as_echo "$STRIP" >&6; }
  5286. else
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5288. $as_echo "no" >&6; }
  5289. fi
  5290. fi
  5291. if test -z "$ac_cv_prog_STRIP"; then
  5292. ac_ct_STRIP=$STRIP
  5293. # Extract the first word of "strip", so it can be a program name with args.
  5294. set dummy strip; ac_word=$2
  5295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5296. $as_echo_n "checking for $ac_word... " >&6; }
  5297. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5298. $as_echo_n "(cached) " >&6
  5299. else
  5300. if test -n "$ac_ct_STRIP"; then
  5301. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5302. else
  5303. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5304. for as_dir in $PATH
  5305. do
  5306. IFS=$as_save_IFS
  5307. test -z "$as_dir" && as_dir=.
  5308. for ac_exec_ext in '' $ac_executable_extensions; do
  5309. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5310. ac_cv_prog_ac_ct_STRIP="strip"
  5311. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5312. break 2
  5313. fi
  5314. done
  5315. done
  5316. IFS=$as_save_IFS
  5317. fi
  5318. fi
  5319. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5320. if test -n "$ac_ct_STRIP"; then
  5321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5322. $as_echo "$ac_ct_STRIP" >&6; }
  5323. else
  5324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5325. $as_echo "no" >&6; }
  5326. fi
  5327. if test "x$ac_ct_STRIP" = x; then
  5328. STRIP=":"
  5329. else
  5330. case $cross_compiling:$ac_tool_warned in
  5331. yes:)
  5332. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5333. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5334. ac_tool_warned=yes ;;
  5335. esac
  5336. STRIP=$ac_ct_STRIP
  5337. fi
  5338. else
  5339. STRIP="$ac_cv_prog_STRIP"
  5340. fi
  5341. test -z "$STRIP" && STRIP=:
  5342. if test -n "$ac_tool_prefix"; then
  5343. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5344. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5346. $as_echo_n "checking for $ac_word... " >&6; }
  5347. if ${ac_cv_prog_RANLIB+:} false; then :
  5348. $as_echo_n "(cached) " >&6
  5349. else
  5350. if test -n "$RANLIB"; then
  5351. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5352. else
  5353. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5354. for as_dir in $PATH
  5355. do
  5356. IFS=$as_save_IFS
  5357. test -z "$as_dir" && as_dir=.
  5358. for ac_exec_ext in '' $ac_executable_extensions; do
  5359. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5360. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5361. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5362. break 2
  5363. fi
  5364. done
  5365. done
  5366. IFS=$as_save_IFS
  5367. fi
  5368. fi
  5369. RANLIB=$ac_cv_prog_RANLIB
  5370. if test -n "$RANLIB"; then
  5371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5372. $as_echo "$RANLIB" >&6; }
  5373. else
  5374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5375. $as_echo "no" >&6; }
  5376. fi
  5377. fi
  5378. if test -z "$ac_cv_prog_RANLIB"; then
  5379. ac_ct_RANLIB=$RANLIB
  5380. # Extract the first word of "ranlib", so it can be a program name with args.
  5381. set dummy ranlib; ac_word=$2
  5382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5383. $as_echo_n "checking for $ac_word... " >&6; }
  5384. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5385. $as_echo_n "(cached) " >&6
  5386. else
  5387. if test -n "$ac_ct_RANLIB"; then
  5388. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5389. else
  5390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5391. for as_dir in $PATH
  5392. do
  5393. IFS=$as_save_IFS
  5394. test -z "$as_dir" && as_dir=.
  5395. for ac_exec_ext in '' $ac_executable_extensions; do
  5396. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5397. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5398. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5399. break 2
  5400. fi
  5401. done
  5402. done
  5403. IFS=$as_save_IFS
  5404. fi
  5405. fi
  5406. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5407. if test -n "$ac_ct_RANLIB"; then
  5408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5409. $as_echo "$ac_ct_RANLIB" >&6; }
  5410. else
  5411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5412. $as_echo "no" >&6; }
  5413. fi
  5414. if test "x$ac_ct_RANLIB" = x; then
  5415. RANLIB=":"
  5416. else
  5417. case $cross_compiling:$ac_tool_warned in
  5418. yes:)
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5420. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5421. ac_tool_warned=yes ;;
  5422. esac
  5423. RANLIB=$ac_ct_RANLIB
  5424. fi
  5425. else
  5426. RANLIB="$ac_cv_prog_RANLIB"
  5427. fi
  5428. test -z "$RANLIB" && RANLIB=:
  5429. # Determine commands to create old-style static archives.
  5430. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5431. old_postinstall_cmds='chmod 644 $oldlib'
  5432. old_postuninstall_cmds=
  5433. if test -n "$RANLIB"; then
  5434. case $host_os in
  5435. openbsd*)
  5436. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5437. ;;
  5438. *)
  5439. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5440. ;;
  5441. esac
  5442. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5443. fi
  5444. case $host_os in
  5445. darwin*)
  5446. lock_old_archive_extraction=yes ;;
  5447. *)
  5448. lock_old_archive_extraction=no ;;
  5449. esac
  5450. # If no C compiler was specified, use CC.
  5451. LTCC=${LTCC-"$CC"}
  5452. # If no C compiler flags were specified, use CFLAGS.
  5453. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5454. # Allow CC to be a program name with arguments.
  5455. compiler=$CC
  5456. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5458. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5459. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5460. $as_echo_n "(cached) " >&6
  5461. else
  5462. # These are sane defaults that work on at least a few old systems.
  5463. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5464. # Character class describing NM global symbol codes.
  5465. symcode='[BCDEGRST]'
  5466. # Regexp to match symbols that can be accessed directly from C.
  5467. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5468. # Define system-specific variables.
  5469. case $host_os in
  5470. aix*)
  5471. symcode='[BCDT]'
  5472. ;;
  5473. cygwin* | mingw* | pw32* | cegcc*)
  5474. symcode='[ABCDGISTW]'
  5475. ;;
  5476. hpux*)
  5477. if test "$host_cpu" = ia64; then
  5478. symcode='[ABCDEGRST]'
  5479. fi
  5480. ;;
  5481. irix* | nonstopux*)
  5482. symcode='[BCDEGRST]'
  5483. ;;
  5484. osf*)
  5485. symcode='[BCDEGQRST]'
  5486. ;;
  5487. solaris*)
  5488. symcode='[BDRT]'
  5489. ;;
  5490. sco3.2v5*)
  5491. symcode='[DT]'
  5492. ;;
  5493. sysv4.2uw2*)
  5494. symcode='[DT]'
  5495. ;;
  5496. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5497. symcode='[ABDT]'
  5498. ;;
  5499. sysv4)
  5500. symcode='[DFNSTU]'
  5501. ;;
  5502. esac
  5503. # If we're using GNU nm, then use its standard symbol codes.
  5504. case `$NM -V 2>&1` in
  5505. *GNU* | *'with BFD'*)
  5506. symcode='[ABCDGIRSTW]' ;;
  5507. esac
  5508. # Transform an extracted symbol line into a proper C declaration.
  5509. # Some systems (esp. on ia64) link data and code symbols differently,
  5510. # so use this general approach.
  5511. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5512. # Transform an extracted symbol line into symbol name and symbol address
  5513. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5514. 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'"
  5515. # Handle CRLF in mingw tool chain
  5516. opt_cr=
  5517. case $build_os in
  5518. mingw*)
  5519. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5520. ;;
  5521. esac
  5522. # Try without a prefix underscore, then with it.
  5523. for ac_symprfx in "" "_"; do
  5524. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5525. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5526. # Write the raw and C identifiers.
  5527. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5528. # Fake it for dumpbin and say T for any non-static function
  5529. # and D for any global variable.
  5530. # Also find C++ and __fastcall symbols from MSVC++,
  5531. # which start with @ or ?.
  5532. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5533. " {last_section=section; section=\$ 3};"\
  5534. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5535. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5536. " \$ 0!~/External *\|/{next};"\
  5537. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5538. " {if(hide[section]) next};"\
  5539. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5540. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5541. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5542. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5543. " ' prfx=^$ac_symprfx"
  5544. else
  5545. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5546. fi
  5547. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5548. # Check to see that the pipe works correctly.
  5549. pipe_works=no
  5550. rm -f conftest*
  5551. cat > conftest.$ac_ext <<_LT_EOF
  5552. #ifdef __cplusplus
  5553. extern "C" {
  5554. #endif
  5555. char nm_test_var;
  5556. void nm_test_func(void);
  5557. void nm_test_func(void){}
  5558. #ifdef __cplusplus
  5559. }
  5560. #endif
  5561. int main(){nm_test_var='a';nm_test_func();return(0);}
  5562. _LT_EOF
  5563. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5564. (eval $ac_compile) 2>&5
  5565. ac_status=$?
  5566. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5567. test $ac_status = 0; }; then
  5568. # Now try to grab the symbols.
  5569. nlist=conftest.nm
  5570. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5571. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5572. ac_status=$?
  5573. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5574. test $ac_status = 0; } && test -s "$nlist"; then
  5575. # Try sorting and uniquifying the output.
  5576. if sort "$nlist" | uniq > "$nlist"T; then
  5577. mv -f "$nlist"T "$nlist"
  5578. else
  5579. rm -f "$nlist"T
  5580. fi
  5581. # Make sure that we snagged all the symbols we need.
  5582. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5583. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5584. cat <<_LT_EOF > conftest.$ac_ext
  5585. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5586. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5587. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5588. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5589. # define LT_DLSYM_CONST
  5590. #elif defined(__osf__)
  5591. /* This system does not cope well with relocations in const data. */
  5592. # define LT_DLSYM_CONST
  5593. #else
  5594. # define LT_DLSYM_CONST const
  5595. #endif
  5596. #ifdef __cplusplus
  5597. extern "C" {
  5598. #endif
  5599. _LT_EOF
  5600. # Now generate the symbol file.
  5601. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5602. cat <<_LT_EOF >> conftest.$ac_ext
  5603. /* The mapping between symbol names and symbols. */
  5604. LT_DLSYM_CONST struct {
  5605. const char *name;
  5606. void *address;
  5607. }
  5608. lt__PROGRAM__LTX_preloaded_symbols[] =
  5609. {
  5610. { "@PROGRAM@", (void *) 0 },
  5611. _LT_EOF
  5612. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5613. cat <<\_LT_EOF >> conftest.$ac_ext
  5614. {0, (void *) 0}
  5615. };
  5616. /* This works around a problem in FreeBSD linker */
  5617. #ifdef FREEBSD_WORKAROUND
  5618. static const void *lt_preloaded_setup() {
  5619. return lt__PROGRAM__LTX_preloaded_symbols;
  5620. }
  5621. #endif
  5622. #ifdef __cplusplus
  5623. }
  5624. #endif
  5625. _LT_EOF
  5626. # Now try linking the two files.
  5627. mv conftest.$ac_objext conftstm.$ac_objext
  5628. lt_globsym_save_LIBS=$LIBS
  5629. lt_globsym_save_CFLAGS=$CFLAGS
  5630. LIBS="conftstm.$ac_objext"
  5631. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5632. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5633. (eval $ac_link) 2>&5
  5634. ac_status=$?
  5635. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5636. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5637. pipe_works=yes
  5638. fi
  5639. LIBS=$lt_globsym_save_LIBS
  5640. CFLAGS=$lt_globsym_save_CFLAGS
  5641. else
  5642. echo "cannot find nm_test_func in $nlist" >&5
  5643. fi
  5644. else
  5645. echo "cannot find nm_test_var in $nlist" >&5
  5646. fi
  5647. else
  5648. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5649. fi
  5650. else
  5651. echo "$progname: failed program was:" >&5
  5652. cat conftest.$ac_ext >&5
  5653. fi
  5654. rm -rf conftest* conftst*
  5655. # Do not use the global_symbol_pipe unless it works.
  5656. if test "$pipe_works" = yes; then
  5657. break
  5658. else
  5659. lt_cv_sys_global_symbol_pipe=
  5660. fi
  5661. done
  5662. fi
  5663. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5664. lt_cv_sys_global_symbol_to_cdecl=
  5665. fi
  5666. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5668. $as_echo "failed" >&6; }
  5669. else
  5670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5671. $as_echo "ok" >&6; }
  5672. fi
  5673. # Response file support.
  5674. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5675. nm_file_list_spec='@'
  5676. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5677. nm_file_list_spec='@'
  5678. fi
  5679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5680. $as_echo_n "checking for sysroot... " >&6; }
  5681. # Check whether --with-sysroot was given.
  5682. if test "${with_sysroot+set}" = set; then :
  5683. withval=$with_sysroot;
  5684. else
  5685. with_sysroot=no
  5686. fi
  5687. lt_sysroot=
  5688. case ${with_sysroot} in #(
  5689. yes)
  5690. if test "$GCC" = yes; then
  5691. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5692. fi
  5693. ;; #(
  5694. /*)
  5695. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5696. ;; #(
  5697. no|'')
  5698. ;; #(
  5699. *)
  5700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5701. $as_echo "${with_sysroot}" >&6; }
  5702. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5703. ;;
  5704. esac
  5705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5706. $as_echo "${lt_sysroot:-no}" >&6; }
  5707. # Check whether --enable-libtool-lock was given.
  5708. if test "${enable_libtool_lock+set}" = set; then :
  5709. enableval=$enable_libtool_lock;
  5710. fi
  5711. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5712. # Some flags need to be propagated to the compiler or linker for good
  5713. # libtool support.
  5714. case $host in
  5715. ia64-*-hpux*)
  5716. # Find out which ABI we are using.
  5717. echo 'int i;' > conftest.$ac_ext
  5718. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5719. (eval $ac_compile) 2>&5
  5720. ac_status=$?
  5721. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5722. test $ac_status = 0; }; then
  5723. case `/usr/bin/file conftest.$ac_objext` in
  5724. *ELF-32*)
  5725. HPUX_IA64_MODE="32"
  5726. ;;
  5727. *ELF-64*)
  5728. HPUX_IA64_MODE="64"
  5729. ;;
  5730. esac
  5731. fi
  5732. rm -rf conftest*
  5733. ;;
  5734. *-*-irix6*)
  5735. # Find out which ABI we are using.
  5736. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5737. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5738. (eval $ac_compile) 2>&5
  5739. ac_status=$?
  5740. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5741. test $ac_status = 0; }; then
  5742. if test "$lt_cv_prog_gnu_ld" = yes; then
  5743. case `/usr/bin/file conftest.$ac_objext` in
  5744. *32-bit*)
  5745. LD="${LD-ld} -melf32bsmip"
  5746. ;;
  5747. *N32*)
  5748. LD="${LD-ld} -melf32bmipn32"
  5749. ;;
  5750. *64-bit*)
  5751. LD="${LD-ld} -melf64bmip"
  5752. ;;
  5753. esac
  5754. else
  5755. case `/usr/bin/file conftest.$ac_objext` in
  5756. *32-bit*)
  5757. LD="${LD-ld} -32"
  5758. ;;
  5759. *N32*)
  5760. LD="${LD-ld} -n32"
  5761. ;;
  5762. *64-bit*)
  5763. LD="${LD-ld} -64"
  5764. ;;
  5765. esac
  5766. fi
  5767. fi
  5768. rm -rf conftest*
  5769. ;;
  5770. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5771. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5772. # Find out which ABI we are using.
  5773. echo 'int i;' > conftest.$ac_ext
  5774. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5775. (eval $ac_compile) 2>&5
  5776. ac_status=$?
  5777. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5778. test $ac_status = 0; }; then
  5779. case `/usr/bin/file conftest.o` in
  5780. *32-bit*)
  5781. case $host in
  5782. x86_64-*kfreebsd*-gnu)
  5783. LD="${LD-ld} -m elf_i386_fbsd"
  5784. ;;
  5785. x86_64-*linux*)
  5786. LD="${LD-ld} -m elf_i386"
  5787. ;;
  5788. ppc64-*linux*|powerpc64-*linux*)
  5789. LD="${LD-ld} -m elf32ppclinux"
  5790. ;;
  5791. s390x-*linux*)
  5792. LD="${LD-ld} -m elf_s390"
  5793. ;;
  5794. sparc64-*linux*)
  5795. LD="${LD-ld} -m elf32_sparc"
  5796. ;;
  5797. esac
  5798. ;;
  5799. *64-bit*)
  5800. case $host in
  5801. x86_64-*kfreebsd*-gnu)
  5802. LD="${LD-ld} -m elf_x86_64_fbsd"
  5803. ;;
  5804. x86_64-*linux*)
  5805. LD="${LD-ld} -m elf_x86_64"
  5806. ;;
  5807. ppc*-*linux*|powerpc*-*linux*)
  5808. LD="${LD-ld} -m elf64ppc"
  5809. ;;
  5810. s390*-*linux*|s390*-*tpf*)
  5811. LD="${LD-ld} -m elf64_s390"
  5812. ;;
  5813. sparc*-*linux*)
  5814. LD="${LD-ld} -m elf64_sparc"
  5815. ;;
  5816. esac
  5817. ;;
  5818. esac
  5819. fi
  5820. rm -rf conftest*
  5821. ;;
  5822. *-*-sco3.2v5*)
  5823. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5824. SAVE_CFLAGS="$CFLAGS"
  5825. CFLAGS="$CFLAGS -belf"
  5826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5827. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5828. if ${lt_cv_cc_needs_belf+:} false; then :
  5829. $as_echo_n "(cached) " >&6
  5830. else
  5831. ac_ext=c
  5832. ac_cpp='$CPP $CPPFLAGS'
  5833. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5834. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5835. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5837. /* end confdefs.h. */
  5838. int
  5839. main ()
  5840. {
  5841. ;
  5842. return 0;
  5843. }
  5844. _ACEOF
  5845. if ac_fn_c_try_link "$LINENO"; then :
  5846. lt_cv_cc_needs_belf=yes
  5847. else
  5848. lt_cv_cc_needs_belf=no
  5849. fi
  5850. rm -f core conftest.err conftest.$ac_objext \
  5851. conftest$ac_exeext conftest.$ac_ext
  5852. ac_ext=c
  5853. ac_cpp='$CPP $CPPFLAGS'
  5854. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5855. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5856. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5857. fi
  5858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5859. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5860. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5861. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5862. CFLAGS="$SAVE_CFLAGS"
  5863. fi
  5864. ;;
  5865. *-*solaris*)
  5866. # Find out which ABI we are using.
  5867. echo 'int i;' > conftest.$ac_ext
  5868. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5869. (eval $ac_compile) 2>&5
  5870. ac_status=$?
  5871. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5872. test $ac_status = 0; }; then
  5873. case `/usr/bin/file conftest.o` in
  5874. *64-bit*)
  5875. case $lt_cv_prog_gnu_ld in
  5876. yes*)
  5877. case $host in
  5878. i?86-*-solaris*)
  5879. LD="${LD-ld} -m elf_x86_64"
  5880. ;;
  5881. sparc*-*-solaris*)
  5882. LD="${LD-ld} -m elf64_sparc"
  5883. ;;
  5884. esac
  5885. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5886. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5887. LD="${LD-ld}_sol2"
  5888. fi
  5889. ;;
  5890. *)
  5891. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5892. LD="${LD-ld} -64"
  5893. fi
  5894. ;;
  5895. esac
  5896. ;;
  5897. esac
  5898. fi
  5899. rm -rf conftest*
  5900. ;;
  5901. esac
  5902. need_locks="$enable_libtool_lock"
  5903. if test -n "$ac_tool_prefix"; then
  5904. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5905. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5907. $as_echo_n "checking for $ac_word... " >&6; }
  5908. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5909. $as_echo_n "(cached) " >&6
  5910. else
  5911. if test -n "$MANIFEST_TOOL"; then
  5912. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5913. else
  5914. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5915. for as_dir in $PATH
  5916. do
  5917. IFS=$as_save_IFS
  5918. test -z "$as_dir" && as_dir=.
  5919. for ac_exec_ext in '' $ac_executable_extensions; do
  5920. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5921. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5922. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5923. break 2
  5924. fi
  5925. done
  5926. done
  5927. IFS=$as_save_IFS
  5928. fi
  5929. fi
  5930. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5931. if test -n "$MANIFEST_TOOL"; then
  5932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5933. $as_echo "$MANIFEST_TOOL" >&6; }
  5934. else
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5936. $as_echo "no" >&6; }
  5937. fi
  5938. fi
  5939. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5940. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5941. # Extract the first word of "mt", so it can be a program name with args.
  5942. set dummy mt; ac_word=$2
  5943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5944. $as_echo_n "checking for $ac_word... " >&6; }
  5945. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5946. $as_echo_n "(cached) " >&6
  5947. else
  5948. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5949. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5950. else
  5951. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5952. for as_dir in $PATH
  5953. do
  5954. IFS=$as_save_IFS
  5955. test -z "$as_dir" && as_dir=.
  5956. for ac_exec_ext in '' $ac_executable_extensions; do
  5957. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5958. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5959. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5960. break 2
  5961. fi
  5962. done
  5963. done
  5964. IFS=$as_save_IFS
  5965. fi
  5966. fi
  5967. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5968. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5970. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5971. else
  5972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5973. $as_echo "no" >&6; }
  5974. fi
  5975. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5976. MANIFEST_TOOL=":"
  5977. else
  5978. case $cross_compiling:$ac_tool_warned in
  5979. yes:)
  5980. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5981. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5982. ac_tool_warned=yes ;;
  5983. esac
  5984. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5985. fi
  5986. else
  5987. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5988. fi
  5989. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5991. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5992. if ${lt_cv_path_mainfest_tool+:} false; then :
  5993. $as_echo_n "(cached) " >&6
  5994. else
  5995. lt_cv_path_mainfest_tool=no
  5996. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5997. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5998. cat conftest.err >&5
  5999. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6000. lt_cv_path_mainfest_tool=yes
  6001. fi
  6002. rm -f conftest*
  6003. fi
  6004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6005. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6006. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6007. MANIFEST_TOOL=:
  6008. fi
  6009. case $host_os in
  6010. rhapsody* | darwin*)
  6011. if test -n "$ac_tool_prefix"; then
  6012. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6013. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6015. $as_echo_n "checking for $ac_word... " >&6; }
  6016. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6017. $as_echo_n "(cached) " >&6
  6018. else
  6019. if test -n "$DSYMUTIL"; then
  6020. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6021. else
  6022. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6023. for as_dir in $PATH
  6024. do
  6025. IFS=$as_save_IFS
  6026. test -z "$as_dir" && as_dir=.
  6027. for ac_exec_ext in '' $ac_executable_extensions; do
  6028. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6029. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6030. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6031. break 2
  6032. fi
  6033. done
  6034. done
  6035. IFS=$as_save_IFS
  6036. fi
  6037. fi
  6038. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6039. if test -n "$DSYMUTIL"; then
  6040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6041. $as_echo "$DSYMUTIL" >&6; }
  6042. else
  6043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6044. $as_echo "no" >&6; }
  6045. fi
  6046. fi
  6047. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6048. ac_ct_DSYMUTIL=$DSYMUTIL
  6049. # Extract the first word of "dsymutil", so it can be a program name with args.
  6050. set dummy dsymutil; ac_word=$2
  6051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6052. $as_echo_n "checking for $ac_word... " >&6; }
  6053. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6054. $as_echo_n "(cached) " >&6
  6055. else
  6056. if test -n "$ac_ct_DSYMUTIL"; then
  6057. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6058. else
  6059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6060. for as_dir in $PATH
  6061. do
  6062. IFS=$as_save_IFS
  6063. test -z "$as_dir" && as_dir=.
  6064. for ac_exec_ext in '' $ac_executable_extensions; do
  6065. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6066. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6067. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6068. break 2
  6069. fi
  6070. done
  6071. done
  6072. IFS=$as_save_IFS
  6073. fi
  6074. fi
  6075. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6076. if test -n "$ac_ct_DSYMUTIL"; then
  6077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6078. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6079. else
  6080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6081. $as_echo "no" >&6; }
  6082. fi
  6083. if test "x$ac_ct_DSYMUTIL" = x; then
  6084. DSYMUTIL=":"
  6085. else
  6086. case $cross_compiling:$ac_tool_warned in
  6087. yes:)
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6089. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6090. ac_tool_warned=yes ;;
  6091. esac
  6092. DSYMUTIL=$ac_ct_DSYMUTIL
  6093. fi
  6094. else
  6095. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6096. fi
  6097. if test -n "$ac_tool_prefix"; then
  6098. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6099. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6101. $as_echo_n "checking for $ac_word... " >&6; }
  6102. if ${ac_cv_prog_NMEDIT+:} false; then :
  6103. $as_echo_n "(cached) " >&6
  6104. else
  6105. if test -n "$NMEDIT"; then
  6106. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6107. else
  6108. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6109. for as_dir in $PATH
  6110. do
  6111. IFS=$as_save_IFS
  6112. test -z "$as_dir" && as_dir=.
  6113. for ac_exec_ext in '' $ac_executable_extensions; do
  6114. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6115. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6116. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6117. break 2
  6118. fi
  6119. done
  6120. done
  6121. IFS=$as_save_IFS
  6122. fi
  6123. fi
  6124. NMEDIT=$ac_cv_prog_NMEDIT
  6125. if test -n "$NMEDIT"; then
  6126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6127. $as_echo "$NMEDIT" >&6; }
  6128. else
  6129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6130. $as_echo "no" >&6; }
  6131. fi
  6132. fi
  6133. if test -z "$ac_cv_prog_NMEDIT"; then
  6134. ac_ct_NMEDIT=$NMEDIT
  6135. # Extract the first word of "nmedit", so it can be a program name with args.
  6136. set dummy nmedit; ac_word=$2
  6137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6138. $as_echo_n "checking for $ac_word... " >&6; }
  6139. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6140. $as_echo_n "(cached) " >&6
  6141. else
  6142. if test -n "$ac_ct_NMEDIT"; then
  6143. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6144. else
  6145. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6146. for as_dir in $PATH
  6147. do
  6148. IFS=$as_save_IFS
  6149. test -z "$as_dir" && as_dir=.
  6150. for ac_exec_ext in '' $ac_executable_extensions; do
  6151. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6152. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6153. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6154. break 2
  6155. fi
  6156. done
  6157. done
  6158. IFS=$as_save_IFS
  6159. fi
  6160. fi
  6161. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6162. if test -n "$ac_ct_NMEDIT"; then
  6163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6164. $as_echo "$ac_ct_NMEDIT" >&6; }
  6165. else
  6166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6167. $as_echo "no" >&6; }
  6168. fi
  6169. if test "x$ac_ct_NMEDIT" = x; then
  6170. NMEDIT=":"
  6171. else
  6172. case $cross_compiling:$ac_tool_warned in
  6173. yes:)
  6174. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6175. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6176. ac_tool_warned=yes ;;
  6177. esac
  6178. NMEDIT=$ac_ct_NMEDIT
  6179. fi
  6180. else
  6181. NMEDIT="$ac_cv_prog_NMEDIT"
  6182. fi
  6183. if test -n "$ac_tool_prefix"; then
  6184. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6185. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6187. $as_echo_n "checking for $ac_word... " >&6; }
  6188. if ${ac_cv_prog_LIPO+:} false; then :
  6189. $as_echo_n "(cached) " >&6
  6190. else
  6191. if test -n "$LIPO"; then
  6192. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6193. else
  6194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6195. for as_dir in $PATH
  6196. do
  6197. IFS=$as_save_IFS
  6198. test -z "$as_dir" && as_dir=.
  6199. for ac_exec_ext in '' $ac_executable_extensions; do
  6200. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6201. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6202. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6203. break 2
  6204. fi
  6205. done
  6206. done
  6207. IFS=$as_save_IFS
  6208. fi
  6209. fi
  6210. LIPO=$ac_cv_prog_LIPO
  6211. if test -n "$LIPO"; then
  6212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6213. $as_echo "$LIPO" >&6; }
  6214. else
  6215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6216. $as_echo "no" >&6; }
  6217. fi
  6218. fi
  6219. if test -z "$ac_cv_prog_LIPO"; then
  6220. ac_ct_LIPO=$LIPO
  6221. # Extract the first word of "lipo", so it can be a program name with args.
  6222. set dummy lipo; ac_word=$2
  6223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6224. $as_echo_n "checking for $ac_word... " >&6; }
  6225. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6226. $as_echo_n "(cached) " >&6
  6227. else
  6228. if test -n "$ac_ct_LIPO"; then
  6229. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6230. else
  6231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6232. for as_dir in $PATH
  6233. do
  6234. IFS=$as_save_IFS
  6235. test -z "$as_dir" && as_dir=.
  6236. for ac_exec_ext in '' $ac_executable_extensions; do
  6237. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6238. ac_cv_prog_ac_ct_LIPO="lipo"
  6239. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6240. break 2
  6241. fi
  6242. done
  6243. done
  6244. IFS=$as_save_IFS
  6245. fi
  6246. fi
  6247. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6248. if test -n "$ac_ct_LIPO"; then
  6249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6250. $as_echo "$ac_ct_LIPO" >&6; }
  6251. else
  6252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6253. $as_echo "no" >&6; }
  6254. fi
  6255. if test "x$ac_ct_LIPO" = x; then
  6256. LIPO=":"
  6257. else
  6258. case $cross_compiling:$ac_tool_warned in
  6259. yes:)
  6260. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6261. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6262. ac_tool_warned=yes ;;
  6263. esac
  6264. LIPO=$ac_ct_LIPO
  6265. fi
  6266. else
  6267. LIPO="$ac_cv_prog_LIPO"
  6268. fi
  6269. if test -n "$ac_tool_prefix"; then
  6270. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6271. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6272. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6273. $as_echo_n "checking for $ac_word... " >&6; }
  6274. if ${ac_cv_prog_OTOOL+:} false; then :
  6275. $as_echo_n "(cached) " >&6
  6276. else
  6277. if test -n "$OTOOL"; then
  6278. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6279. else
  6280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6281. for as_dir in $PATH
  6282. do
  6283. IFS=$as_save_IFS
  6284. test -z "$as_dir" && as_dir=.
  6285. for ac_exec_ext in '' $ac_executable_extensions; do
  6286. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6287. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6288. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6289. break 2
  6290. fi
  6291. done
  6292. done
  6293. IFS=$as_save_IFS
  6294. fi
  6295. fi
  6296. OTOOL=$ac_cv_prog_OTOOL
  6297. if test -n "$OTOOL"; then
  6298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6299. $as_echo "$OTOOL" >&6; }
  6300. else
  6301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6302. $as_echo "no" >&6; }
  6303. fi
  6304. fi
  6305. if test -z "$ac_cv_prog_OTOOL"; then
  6306. ac_ct_OTOOL=$OTOOL
  6307. # Extract the first word of "otool", so it can be a program name with args.
  6308. set dummy otool; ac_word=$2
  6309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6310. $as_echo_n "checking for $ac_word... " >&6; }
  6311. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6312. $as_echo_n "(cached) " >&6
  6313. else
  6314. if test -n "$ac_ct_OTOOL"; then
  6315. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6316. else
  6317. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6318. for as_dir in $PATH
  6319. do
  6320. IFS=$as_save_IFS
  6321. test -z "$as_dir" && as_dir=.
  6322. for ac_exec_ext in '' $ac_executable_extensions; do
  6323. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6324. ac_cv_prog_ac_ct_OTOOL="otool"
  6325. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6326. break 2
  6327. fi
  6328. done
  6329. done
  6330. IFS=$as_save_IFS
  6331. fi
  6332. fi
  6333. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6334. if test -n "$ac_ct_OTOOL"; then
  6335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6336. $as_echo "$ac_ct_OTOOL" >&6; }
  6337. else
  6338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6339. $as_echo "no" >&6; }
  6340. fi
  6341. if test "x$ac_ct_OTOOL" = x; then
  6342. OTOOL=":"
  6343. else
  6344. case $cross_compiling:$ac_tool_warned in
  6345. yes:)
  6346. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6347. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6348. ac_tool_warned=yes ;;
  6349. esac
  6350. OTOOL=$ac_ct_OTOOL
  6351. fi
  6352. else
  6353. OTOOL="$ac_cv_prog_OTOOL"
  6354. fi
  6355. if test -n "$ac_tool_prefix"; then
  6356. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6357. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6359. $as_echo_n "checking for $ac_word... " >&6; }
  6360. if ${ac_cv_prog_OTOOL64+:} false; then :
  6361. $as_echo_n "(cached) " >&6
  6362. else
  6363. if test -n "$OTOOL64"; then
  6364. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6365. else
  6366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6367. for as_dir in $PATH
  6368. do
  6369. IFS=$as_save_IFS
  6370. test -z "$as_dir" && as_dir=.
  6371. for ac_exec_ext in '' $ac_executable_extensions; do
  6372. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6373. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6374. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6375. break 2
  6376. fi
  6377. done
  6378. done
  6379. IFS=$as_save_IFS
  6380. fi
  6381. fi
  6382. OTOOL64=$ac_cv_prog_OTOOL64
  6383. if test -n "$OTOOL64"; then
  6384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6385. $as_echo "$OTOOL64" >&6; }
  6386. else
  6387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6388. $as_echo "no" >&6; }
  6389. fi
  6390. fi
  6391. if test -z "$ac_cv_prog_OTOOL64"; then
  6392. ac_ct_OTOOL64=$OTOOL64
  6393. # Extract the first word of "otool64", so it can be a program name with args.
  6394. set dummy otool64; ac_word=$2
  6395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6396. $as_echo_n "checking for $ac_word... " >&6; }
  6397. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6398. $as_echo_n "(cached) " >&6
  6399. else
  6400. if test -n "$ac_ct_OTOOL64"; then
  6401. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6402. else
  6403. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6404. for as_dir in $PATH
  6405. do
  6406. IFS=$as_save_IFS
  6407. test -z "$as_dir" && as_dir=.
  6408. for ac_exec_ext in '' $ac_executable_extensions; do
  6409. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6410. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6411. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6412. break 2
  6413. fi
  6414. done
  6415. done
  6416. IFS=$as_save_IFS
  6417. fi
  6418. fi
  6419. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6420. if test -n "$ac_ct_OTOOL64"; then
  6421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6422. $as_echo "$ac_ct_OTOOL64" >&6; }
  6423. else
  6424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6425. $as_echo "no" >&6; }
  6426. fi
  6427. if test "x$ac_ct_OTOOL64" = x; then
  6428. OTOOL64=":"
  6429. else
  6430. case $cross_compiling:$ac_tool_warned in
  6431. yes:)
  6432. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6433. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6434. ac_tool_warned=yes ;;
  6435. esac
  6436. OTOOL64=$ac_ct_OTOOL64
  6437. fi
  6438. else
  6439. OTOOL64="$ac_cv_prog_OTOOL64"
  6440. fi
  6441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6442. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6443. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6444. $as_echo_n "(cached) " >&6
  6445. else
  6446. lt_cv_apple_cc_single_mod=no
  6447. if test -z "${LT_MULTI_MODULE}"; then
  6448. # By default we will add the -single_module flag. You can override
  6449. # by either setting the environment variable LT_MULTI_MODULE
  6450. # non-empty at configure time, or by adding -multi_module to the
  6451. # link flags.
  6452. rm -rf libconftest.dylib*
  6453. echo "int foo(void){return 1;}" > conftest.c
  6454. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6455. -dynamiclib -Wl,-single_module conftest.c" >&5
  6456. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6457. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6458. _lt_result=$?
  6459. # If there is a non-empty error log, and "single_module"
  6460. # appears in it, assume the flag caused a linker warning
  6461. if test -s conftest.err && $GREP single_module conftest.err; then
  6462. cat conftest.err >&5
  6463. # Otherwise, if the output was created with a 0 exit code from
  6464. # the compiler, it worked.
  6465. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6466. lt_cv_apple_cc_single_mod=yes
  6467. else
  6468. cat conftest.err >&5
  6469. fi
  6470. rm -rf libconftest.dylib*
  6471. rm -f conftest.*
  6472. fi
  6473. fi
  6474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6475. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6477. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6478. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6479. $as_echo_n "(cached) " >&6
  6480. else
  6481. lt_cv_ld_exported_symbols_list=no
  6482. save_LDFLAGS=$LDFLAGS
  6483. echo "_main" > conftest.sym
  6484. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6485. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6486. /* end confdefs.h. */
  6487. int
  6488. main ()
  6489. {
  6490. ;
  6491. return 0;
  6492. }
  6493. _ACEOF
  6494. if ac_fn_c_try_link "$LINENO"; then :
  6495. lt_cv_ld_exported_symbols_list=yes
  6496. else
  6497. lt_cv_ld_exported_symbols_list=no
  6498. fi
  6499. rm -f core conftest.err conftest.$ac_objext \
  6500. conftest$ac_exeext conftest.$ac_ext
  6501. LDFLAGS="$save_LDFLAGS"
  6502. fi
  6503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6504. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6506. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6507. if ${lt_cv_ld_force_load+:} false; then :
  6508. $as_echo_n "(cached) " >&6
  6509. else
  6510. lt_cv_ld_force_load=no
  6511. cat > conftest.c << _LT_EOF
  6512. int forced_loaded() { return 2;}
  6513. _LT_EOF
  6514. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6515. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6516. echo "$AR cru libconftest.a conftest.o" >&5
  6517. $AR cru libconftest.a conftest.o 2>&5
  6518. echo "$RANLIB libconftest.a" >&5
  6519. $RANLIB libconftest.a 2>&5
  6520. cat > conftest.c << _LT_EOF
  6521. int main() { return 0;}
  6522. _LT_EOF
  6523. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6524. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6525. _lt_result=$?
  6526. if test -s conftest.err && $GREP force_load conftest.err; then
  6527. cat conftest.err >&5
  6528. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6529. lt_cv_ld_force_load=yes
  6530. else
  6531. cat conftest.err >&5
  6532. fi
  6533. rm -f conftest.err libconftest.a conftest conftest.c
  6534. rm -rf conftest.dSYM
  6535. fi
  6536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6537. $as_echo "$lt_cv_ld_force_load" >&6; }
  6538. case $host_os in
  6539. rhapsody* | darwin1.[012])
  6540. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6541. darwin1.*)
  6542. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6543. darwin*) # darwin 5.x on
  6544. # if running on 10.5 or later, the deployment target defaults
  6545. # to the OS version, if on x86, and 10.4, the deployment
  6546. # target defaults to 10.4. Don't you love it?
  6547. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6548. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6549. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6550. 10.[012]*)
  6551. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6552. 10.*)
  6553. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6554. esac
  6555. ;;
  6556. esac
  6557. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6558. _lt_dar_single_mod='$single_module'
  6559. fi
  6560. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6561. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6562. else
  6563. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6564. fi
  6565. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6566. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6567. else
  6568. _lt_dsymutil=
  6569. fi
  6570. ;;
  6571. esac
  6572. ac_ext=c
  6573. ac_cpp='$CPP $CPPFLAGS'
  6574. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6575. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6576. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6578. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6579. # On Suns, sometimes $CPP names a directory.
  6580. if test -n "$CPP" && test -d "$CPP"; then
  6581. CPP=
  6582. fi
  6583. if test -z "$CPP"; then
  6584. if ${ac_cv_prog_CPP+:} false; then :
  6585. $as_echo_n "(cached) " >&6
  6586. else
  6587. # Double quotes because CPP needs to be expanded
  6588. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6589. do
  6590. ac_preproc_ok=false
  6591. for ac_c_preproc_warn_flag in '' yes
  6592. do
  6593. # Use a header file that comes with gcc, so configuring glibc
  6594. # with a fresh cross-compiler works.
  6595. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6596. # <limits.h> exists even on freestanding compilers.
  6597. # On the NeXT, cc -E runs the code through the compiler's parser,
  6598. # not just through cpp. "Syntax error" is here to catch this case.
  6599. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6600. /* end confdefs.h. */
  6601. #ifdef __STDC__
  6602. # include <limits.h>
  6603. #else
  6604. # include <assert.h>
  6605. #endif
  6606. Syntax error
  6607. _ACEOF
  6608. if ac_fn_c_try_cpp "$LINENO"; then :
  6609. else
  6610. # Broken: fails on valid input.
  6611. continue
  6612. fi
  6613. rm -f conftest.err conftest.i conftest.$ac_ext
  6614. # OK, works on sane cases. Now check whether nonexistent headers
  6615. # can be detected and how.
  6616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6617. /* end confdefs.h. */
  6618. #include <ac_nonexistent.h>
  6619. _ACEOF
  6620. if ac_fn_c_try_cpp "$LINENO"; then :
  6621. # Broken: success on invalid input.
  6622. continue
  6623. else
  6624. # Passes both tests.
  6625. ac_preproc_ok=:
  6626. break
  6627. fi
  6628. rm -f conftest.err conftest.i conftest.$ac_ext
  6629. done
  6630. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6631. rm -f conftest.i conftest.err conftest.$ac_ext
  6632. if $ac_preproc_ok; then :
  6633. break
  6634. fi
  6635. done
  6636. ac_cv_prog_CPP=$CPP
  6637. fi
  6638. CPP=$ac_cv_prog_CPP
  6639. else
  6640. ac_cv_prog_CPP=$CPP
  6641. fi
  6642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6643. $as_echo "$CPP" >&6; }
  6644. ac_preproc_ok=false
  6645. for ac_c_preproc_warn_flag in '' yes
  6646. do
  6647. # Use a header file that comes with gcc, so configuring glibc
  6648. # with a fresh cross-compiler works.
  6649. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6650. # <limits.h> exists even on freestanding compilers.
  6651. # On the NeXT, cc -E runs the code through the compiler's parser,
  6652. # not just through cpp. "Syntax error" is here to catch this case.
  6653. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6654. /* end confdefs.h. */
  6655. #ifdef __STDC__
  6656. # include <limits.h>
  6657. #else
  6658. # include <assert.h>
  6659. #endif
  6660. Syntax error
  6661. _ACEOF
  6662. if ac_fn_c_try_cpp "$LINENO"; then :
  6663. else
  6664. # Broken: fails on valid input.
  6665. continue
  6666. fi
  6667. rm -f conftest.err conftest.i conftest.$ac_ext
  6668. # OK, works on sane cases. Now check whether nonexistent headers
  6669. # can be detected and how.
  6670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6671. /* end confdefs.h. */
  6672. #include <ac_nonexistent.h>
  6673. _ACEOF
  6674. if ac_fn_c_try_cpp "$LINENO"; then :
  6675. # Broken: success on invalid input.
  6676. continue
  6677. else
  6678. # Passes both tests.
  6679. ac_preproc_ok=:
  6680. break
  6681. fi
  6682. rm -f conftest.err conftest.i conftest.$ac_ext
  6683. done
  6684. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6685. rm -f conftest.i conftest.err conftest.$ac_ext
  6686. if $ac_preproc_ok; then :
  6687. else
  6688. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6689. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6690. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6691. See \`config.log' for more details" "$LINENO" 5; }
  6692. fi
  6693. ac_ext=c
  6694. ac_cpp='$CPP $CPPFLAGS'
  6695. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6696. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6697. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6699. $as_echo_n "checking for ANSI C header files... " >&6; }
  6700. if ${ac_cv_header_stdc+:} false; then :
  6701. $as_echo_n "(cached) " >&6
  6702. else
  6703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6704. /* end confdefs.h. */
  6705. #include <stdlib.h>
  6706. #include <stdarg.h>
  6707. #include <string.h>
  6708. #include <float.h>
  6709. int
  6710. main ()
  6711. {
  6712. ;
  6713. return 0;
  6714. }
  6715. _ACEOF
  6716. if ac_fn_c_try_compile "$LINENO"; then :
  6717. ac_cv_header_stdc=yes
  6718. else
  6719. ac_cv_header_stdc=no
  6720. fi
  6721. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6722. if test $ac_cv_header_stdc = yes; then
  6723. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6724. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6725. /* end confdefs.h. */
  6726. #include <string.h>
  6727. _ACEOF
  6728. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6729. $EGREP "memchr" >/dev/null 2>&1; then :
  6730. else
  6731. ac_cv_header_stdc=no
  6732. fi
  6733. rm -f conftest*
  6734. fi
  6735. if test $ac_cv_header_stdc = yes; then
  6736. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6738. /* end confdefs.h. */
  6739. #include <stdlib.h>
  6740. _ACEOF
  6741. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6742. $EGREP "free" >/dev/null 2>&1; then :
  6743. else
  6744. ac_cv_header_stdc=no
  6745. fi
  6746. rm -f conftest*
  6747. fi
  6748. if test $ac_cv_header_stdc = yes; then
  6749. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6750. if test "$cross_compiling" = yes; then :
  6751. :
  6752. else
  6753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6754. /* end confdefs.h. */
  6755. #include <ctype.h>
  6756. #include <stdlib.h>
  6757. #if ((' ' & 0x0FF) == 0x020)
  6758. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6759. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6760. #else
  6761. # define ISLOWER(c) \
  6762. (('a' <= (c) && (c) <= 'i') \
  6763. || ('j' <= (c) && (c) <= 'r') \
  6764. || ('s' <= (c) && (c) <= 'z'))
  6765. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6766. #endif
  6767. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6768. int
  6769. main ()
  6770. {
  6771. int i;
  6772. for (i = 0; i < 256; i++)
  6773. if (XOR (islower (i), ISLOWER (i))
  6774. || toupper (i) != TOUPPER (i))
  6775. return 2;
  6776. return 0;
  6777. }
  6778. _ACEOF
  6779. if ac_fn_c_try_run "$LINENO"; then :
  6780. else
  6781. ac_cv_header_stdc=no
  6782. fi
  6783. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6784. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6785. fi
  6786. fi
  6787. fi
  6788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6789. $as_echo "$ac_cv_header_stdc" >&6; }
  6790. if test $ac_cv_header_stdc = yes; then
  6791. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6792. fi
  6793. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6794. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6795. inttypes.h stdint.h unistd.h
  6796. do :
  6797. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6798. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6799. "
  6800. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6801. cat >>confdefs.h <<_ACEOF
  6802. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6803. _ACEOF
  6804. fi
  6805. done
  6806. for ac_header in dlfcn.h
  6807. do :
  6808. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6809. "
  6810. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6811. cat >>confdefs.h <<_ACEOF
  6812. #define HAVE_DLFCN_H 1
  6813. _ACEOF
  6814. fi
  6815. done
  6816. func_stripname_cnf ()
  6817. {
  6818. case ${2} in
  6819. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  6820. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  6821. esac
  6822. } # func_stripname_cnf
  6823. # Set options
  6824. enable_dlopen=no
  6825. enable_win32_dll=no
  6826. # Check whether --enable-shared was given.
  6827. if test "${enable_shared+set}" = set; then :
  6828. enableval=$enable_shared; p=${PACKAGE-default}
  6829. case $enableval in
  6830. yes) enable_shared=yes ;;
  6831. no) enable_shared=no ;;
  6832. *)
  6833. enable_shared=no
  6834. # Look at the argument we got. We use all the common list separators.
  6835. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6836. for pkg in $enableval; do
  6837. IFS="$lt_save_ifs"
  6838. if test "X$pkg" = "X$p"; then
  6839. enable_shared=yes
  6840. fi
  6841. done
  6842. IFS="$lt_save_ifs"
  6843. ;;
  6844. esac
  6845. else
  6846. enable_shared=yes
  6847. fi
  6848. # Check whether --enable-static was given.
  6849. if test "${enable_static+set}" = set; then :
  6850. enableval=$enable_static; p=${PACKAGE-default}
  6851. case $enableval in
  6852. yes) enable_static=yes ;;
  6853. no) enable_static=no ;;
  6854. *)
  6855. enable_static=no
  6856. # Look at the argument we got. We use all the common list separators.
  6857. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6858. for pkg in $enableval; do
  6859. IFS="$lt_save_ifs"
  6860. if test "X$pkg" = "X$p"; then
  6861. enable_static=yes
  6862. fi
  6863. done
  6864. IFS="$lt_save_ifs"
  6865. ;;
  6866. esac
  6867. else
  6868. enable_static=yes
  6869. fi
  6870. # Check whether --with-pic was given.
  6871. if test "${with_pic+set}" = set; then :
  6872. withval=$with_pic; lt_p=${PACKAGE-default}
  6873. case $withval in
  6874. yes|no) pic_mode=$withval ;;
  6875. *)
  6876. pic_mode=default
  6877. # Look at the argument we got. We use all the common list separators.
  6878. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6879. for lt_pkg in $withval; do
  6880. IFS="$lt_save_ifs"
  6881. if test "X$lt_pkg" = "X$lt_p"; then
  6882. pic_mode=yes
  6883. fi
  6884. done
  6885. IFS="$lt_save_ifs"
  6886. ;;
  6887. esac
  6888. else
  6889. pic_mode=default
  6890. fi
  6891. test -z "$pic_mode" && pic_mode=default
  6892. # Check whether --enable-fast-install was given.
  6893. if test "${enable_fast_install+set}" = set; then :
  6894. enableval=$enable_fast_install; p=${PACKAGE-default}
  6895. case $enableval in
  6896. yes) enable_fast_install=yes ;;
  6897. no) enable_fast_install=no ;;
  6898. *)
  6899. enable_fast_install=no
  6900. # Look at the argument we got. We use all the common list separators.
  6901. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6902. for pkg in $enableval; do
  6903. IFS="$lt_save_ifs"
  6904. if test "X$pkg" = "X$p"; then
  6905. enable_fast_install=yes
  6906. fi
  6907. done
  6908. IFS="$lt_save_ifs"
  6909. ;;
  6910. esac
  6911. else
  6912. enable_fast_install=yes
  6913. fi
  6914. # This can be used to rebuild libtool when needed
  6915. LIBTOOL_DEPS="$ltmain"
  6916. # Always use our own libtool.
  6917. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6918. test -z "$LN_S" && LN_S="ln -s"
  6919. if test -n "${ZSH_VERSION+set}" ; then
  6920. setopt NO_GLOB_SUBST
  6921. fi
  6922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6923. $as_echo_n "checking for objdir... " >&6; }
  6924. if ${lt_cv_objdir+:} false; then :
  6925. $as_echo_n "(cached) " >&6
  6926. else
  6927. rm -f .libs 2>/dev/null
  6928. mkdir .libs 2>/dev/null
  6929. if test -d .libs; then
  6930. lt_cv_objdir=.libs
  6931. else
  6932. # MS-DOS does not allow filenames that begin with a dot.
  6933. lt_cv_objdir=_libs
  6934. fi
  6935. rmdir .libs 2>/dev/null
  6936. fi
  6937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6938. $as_echo "$lt_cv_objdir" >&6; }
  6939. objdir=$lt_cv_objdir
  6940. cat >>confdefs.h <<_ACEOF
  6941. #define LT_OBJDIR "$lt_cv_objdir/"
  6942. _ACEOF
  6943. case $host_os in
  6944. aix3*)
  6945. # AIX sometimes has problems with the GCC collect2 program. For some
  6946. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6947. # vanish in a puff of smoke.
  6948. if test "X${COLLECT_NAMES+set}" != Xset; then
  6949. COLLECT_NAMES=
  6950. export COLLECT_NAMES
  6951. fi
  6952. ;;
  6953. esac
  6954. # Global variables:
  6955. ofile=libtool
  6956. can_build_shared=yes
  6957. # All known linkers require a `.a' archive for static linking (except MSVC,
  6958. # which needs '.lib').
  6959. libext=a
  6960. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6961. old_CC="$CC"
  6962. old_CFLAGS="$CFLAGS"
  6963. # Set sane defaults for various variables
  6964. test -z "$CC" && CC=cc
  6965. test -z "$LTCC" && LTCC=$CC
  6966. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6967. test -z "$LD" && LD=ld
  6968. test -z "$ac_objext" && ac_objext=o
  6969. for cc_temp in $compiler""; do
  6970. case $cc_temp in
  6971. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6972. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6973. \-*) ;;
  6974. *) break;;
  6975. esac
  6976. done
  6977. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6978. # Only perform the check for file, if the check method requires it
  6979. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6980. case $deplibs_check_method in
  6981. file_magic*)
  6982. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6984. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6985. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6986. $as_echo_n "(cached) " >&6
  6987. else
  6988. case $MAGIC_CMD in
  6989. [\\/*] | ?:[\\/]*)
  6990. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6991. ;;
  6992. *)
  6993. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6994. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6995. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6996. for ac_dir in $ac_dummy; do
  6997. IFS="$lt_save_ifs"
  6998. test -z "$ac_dir" && ac_dir=.
  6999. if test -f $ac_dir/${ac_tool_prefix}file; then
  7000. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7001. if test -n "$file_magic_test_file"; then
  7002. case $deplibs_check_method in
  7003. "file_magic "*)
  7004. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7005. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7006. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7007. $EGREP "$file_magic_regex" > /dev/null; then
  7008. :
  7009. else
  7010. cat <<_LT_EOF 1>&2
  7011. *** Warning: the command libtool uses to detect shared libraries,
  7012. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7013. *** The result is that libtool may fail to recognize shared libraries
  7014. *** as such. This will affect the creation of libtool libraries that
  7015. *** depend on shared libraries, but programs linked with such libtool
  7016. *** libraries will work regardless of this problem. Nevertheless, you
  7017. *** may want to report the problem to your system manager and/or to
  7018. *** bug-libtool@gnu.org
  7019. _LT_EOF
  7020. fi ;;
  7021. esac
  7022. fi
  7023. break
  7024. fi
  7025. done
  7026. IFS="$lt_save_ifs"
  7027. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7028. ;;
  7029. esac
  7030. fi
  7031. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7032. if test -n "$MAGIC_CMD"; then
  7033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7034. $as_echo "$MAGIC_CMD" >&6; }
  7035. else
  7036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7037. $as_echo "no" >&6; }
  7038. fi
  7039. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7040. if test -n "$ac_tool_prefix"; then
  7041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7042. $as_echo_n "checking for file... " >&6; }
  7043. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7044. $as_echo_n "(cached) " >&6
  7045. else
  7046. case $MAGIC_CMD in
  7047. [\\/*] | ?:[\\/]*)
  7048. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7049. ;;
  7050. *)
  7051. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7052. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7053. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7054. for ac_dir in $ac_dummy; do
  7055. IFS="$lt_save_ifs"
  7056. test -z "$ac_dir" && ac_dir=.
  7057. if test -f $ac_dir/file; then
  7058. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7059. if test -n "$file_magic_test_file"; then
  7060. case $deplibs_check_method in
  7061. "file_magic "*)
  7062. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7063. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7064. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7065. $EGREP "$file_magic_regex" > /dev/null; then
  7066. :
  7067. else
  7068. cat <<_LT_EOF 1>&2
  7069. *** Warning: the command libtool uses to detect shared libraries,
  7070. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7071. *** The result is that libtool may fail to recognize shared libraries
  7072. *** as such. This will affect the creation of libtool libraries that
  7073. *** depend on shared libraries, but programs linked with such libtool
  7074. *** libraries will work regardless of this problem. Nevertheless, you
  7075. *** may want to report the problem to your system manager and/or to
  7076. *** bug-libtool@gnu.org
  7077. _LT_EOF
  7078. fi ;;
  7079. esac
  7080. fi
  7081. break
  7082. fi
  7083. done
  7084. IFS="$lt_save_ifs"
  7085. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7086. ;;
  7087. esac
  7088. fi
  7089. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7090. if test -n "$MAGIC_CMD"; then
  7091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7092. $as_echo "$MAGIC_CMD" >&6; }
  7093. else
  7094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7095. $as_echo "no" >&6; }
  7096. fi
  7097. else
  7098. MAGIC_CMD=:
  7099. fi
  7100. fi
  7101. fi
  7102. ;;
  7103. esac
  7104. # Use C for the default configuration in the libtool script
  7105. lt_save_CC="$CC"
  7106. ac_ext=c
  7107. ac_cpp='$CPP $CPPFLAGS'
  7108. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7109. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7110. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7111. # Source file extension for C test sources.
  7112. ac_ext=c
  7113. # Object file extension for compiled C test sources.
  7114. objext=o
  7115. objext=$objext
  7116. # Code to be used in simple compile tests
  7117. lt_simple_compile_test_code="int some_variable = 0;"
  7118. # Code to be used in simple link tests
  7119. lt_simple_link_test_code='int main(){return(0);}'
  7120. # If no C compiler was specified, use CC.
  7121. LTCC=${LTCC-"$CC"}
  7122. # If no C compiler flags were specified, use CFLAGS.
  7123. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7124. # Allow CC to be a program name with arguments.
  7125. compiler=$CC
  7126. # Save the default compiler, since it gets overwritten when the other
  7127. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7128. compiler_DEFAULT=$CC
  7129. # save warnings/boilerplate of simple test code
  7130. ac_outfile=conftest.$ac_objext
  7131. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7132. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7133. _lt_compiler_boilerplate=`cat conftest.err`
  7134. $RM conftest*
  7135. ac_outfile=conftest.$ac_objext
  7136. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7137. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7138. _lt_linker_boilerplate=`cat conftest.err`
  7139. $RM -r conftest*
  7140. ## CAVEAT EMPTOR:
  7141. ## There is no encapsulation within the following macros, do not change
  7142. ## the running order or otherwise move them around unless you know exactly
  7143. ## what you are doing...
  7144. if test -n "$compiler"; then
  7145. lt_prog_compiler_no_builtin_flag=
  7146. if test "$GCC" = yes; then
  7147. case $cc_basename in
  7148. nvcc*)
  7149. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7150. *)
  7151. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7152. esac
  7153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7154. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7155. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7156. $as_echo_n "(cached) " >&6
  7157. else
  7158. lt_cv_prog_compiler_rtti_exceptions=no
  7159. ac_outfile=conftest.$ac_objext
  7160. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7161. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7162. # Insert the option either (1) after the last *FLAGS variable, or
  7163. # (2) before a word containing "conftest.", or (3) at the end.
  7164. # Note that $ac_compile itself does not contain backslashes and begins
  7165. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7166. # The option is referenced via a variable to avoid confusing sed.
  7167. lt_compile=`echo "$ac_compile" | $SED \
  7168. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7169. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7170. -e 's:$: $lt_compiler_flag:'`
  7171. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7172. (eval "$lt_compile" 2>conftest.err)
  7173. ac_status=$?
  7174. cat conftest.err >&5
  7175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7176. if (exit $ac_status) && test -s "$ac_outfile"; then
  7177. # The compiler can only warn and ignore the option if not recognized
  7178. # So say no if there are warnings other than the usual output.
  7179. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7180. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7181. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7182. lt_cv_prog_compiler_rtti_exceptions=yes
  7183. fi
  7184. fi
  7185. $RM conftest*
  7186. fi
  7187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7188. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7189. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7190. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7191. else
  7192. :
  7193. fi
  7194. fi
  7195. lt_prog_compiler_wl=
  7196. lt_prog_compiler_pic=
  7197. lt_prog_compiler_static=
  7198. if test "$GCC" = yes; then
  7199. lt_prog_compiler_wl='-Wl,'
  7200. lt_prog_compiler_static='-static'
  7201. case $host_os in
  7202. aix*)
  7203. # All AIX code is PIC.
  7204. if test "$host_cpu" = ia64; then
  7205. # AIX 5 now supports IA64 processor
  7206. lt_prog_compiler_static='-Bstatic'
  7207. fi
  7208. ;;
  7209. amigaos*)
  7210. case $host_cpu in
  7211. powerpc)
  7212. # see comment about AmigaOS4 .so support
  7213. lt_prog_compiler_pic='-fPIC'
  7214. ;;
  7215. m68k)
  7216. # FIXME: we need at least 68020 code to build shared libraries, but
  7217. # adding the `-m68020' flag to GCC prevents building anything better,
  7218. # like `-m68040'.
  7219. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7220. ;;
  7221. esac
  7222. ;;
  7223. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7224. # PIC is the default for these OSes.
  7225. ;;
  7226. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7227. # This hack is so that the source file can tell whether it is being
  7228. # built for inclusion in a dll (and should export symbols for example).
  7229. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7230. # (--disable-auto-import) libraries
  7231. lt_prog_compiler_pic='-DDLL_EXPORT'
  7232. ;;
  7233. darwin* | rhapsody*)
  7234. # PIC is the default on this platform
  7235. # Common symbols not allowed in MH_DYLIB files
  7236. lt_prog_compiler_pic='-fno-common'
  7237. ;;
  7238. haiku*)
  7239. # PIC is the default for Haiku.
  7240. # The "-static" flag exists, but is broken.
  7241. lt_prog_compiler_static=
  7242. ;;
  7243. hpux*)
  7244. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7245. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7246. # sets the default TLS model and affects inlining.
  7247. case $host_cpu in
  7248. hppa*64*)
  7249. # +Z the default
  7250. ;;
  7251. *)
  7252. lt_prog_compiler_pic='-fPIC'
  7253. ;;
  7254. esac
  7255. ;;
  7256. interix[3-9]*)
  7257. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7258. # Instead, we relocate shared libraries at runtime.
  7259. ;;
  7260. msdosdjgpp*)
  7261. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7262. # on systems that don't support them.
  7263. lt_prog_compiler_can_build_shared=no
  7264. enable_shared=no
  7265. ;;
  7266. *nto* | *qnx*)
  7267. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7268. # it will coredump.
  7269. lt_prog_compiler_pic='-fPIC -shared'
  7270. ;;
  7271. sysv4*MP*)
  7272. if test -d /usr/nec; then
  7273. lt_prog_compiler_pic=-Kconform_pic
  7274. fi
  7275. ;;
  7276. *)
  7277. lt_prog_compiler_pic='-fPIC'
  7278. ;;
  7279. esac
  7280. case $cc_basename in
  7281. nvcc*) # Cuda Compiler Driver 2.2
  7282. lt_prog_compiler_wl='-Xlinker '
  7283. if test -n "$lt_prog_compiler_pic"; then
  7284. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7285. fi
  7286. ;;
  7287. esac
  7288. else
  7289. # PORTME Check for flag to pass linker flags through the system compiler.
  7290. case $host_os in
  7291. aix*)
  7292. lt_prog_compiler_wl='-Wl,'
  7293. if test "$host_cpu" = ia64; then
  7294. # AIX 5 now supports IA64 processor
  7295. lt_prog_compiler_static='-Bstatic'
  7296. else
  7297. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7298. fi
  7299. ;;
  7300. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7301. # This hack is so that the source file can tell whether it is being
  7302. # built for inclusion in a dll (and should export symbols for example).
  7303. lt_prog_compiler_pic='-DDLL_EXPORT'
  7304. ;;
  7305. hpux9* | hpux10* | hpux11*)
  7306. lt_prog_compiler_wl='-Wl,'
  7307. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7308. # not for PA HP-UX.
  7309. case $host_cpu in
  7310. hppa*64*|ia64*)
  7311. # +Z the default
  7312. ;;
  7313. *)
  7314. lt_prog_compiler_pic='+Z'
  7315. ;;
  7316. esac
  7317. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7318. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7319. ;;
  7320. irix5* | irix6* | nonstopux*)
  7321. lt_prog_compiler_wl='-Wl,'
  7322. # PIC (with -KPIC) is the default.
  7323. lt_prog_compiler_static='-non_shared'
  7324. ;;
  7325. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7326. case $cc_basename in
  7327. # old Intel for x86_64 which still supported -KPIC.
  7328. ecc*)
  7329. lt_prog_compiler_wl='-Wl,'
  7330. lt_prog_compiler_pic='-KPIC'
  7331. lt_prog_compiler_static='-static'
  7332. ;;
  7333. # icc used to be incompatible with GCC.
  7334. # ICC 10 doesn't accept -KPIC any more.
  7335. icc* | ifort*)
  7336. lt_prog_compiler_wl='-Wl,'
  7337. lt_prog_compiler_pic='-fPIC'
  7338. lt_prog_compiler_static='-static'
  7339. ;;
  7340. # Lahey Fortran 8.1.
  7341. lf95*)
  7342. lt_prog_compiler_wl='-Wl,'
  7343. lt_prog_compiler_pic='--shared'
  7344. lt_prog_compiler_static='--static'
  7345. ;;
  7346. nagfor*)
  7347. # NAG Fortran compiler
  7348. lt_prog_compiler_wl='-Wl,-Wl,,'
  7349. lt_prog_compiler_pic='-PIC'
  7350. lt_prog_compiler_static='-Bstatic'
  7351. ;;
  7352. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7353. # Portland Group compilers (*not* the Pentium gcc compiler,
  7354. # which looks to be a dead project)
  7355. lt_prog_compiler_wl='-Wl,'
  7356. lt_prog_compiler_pic='-fpic'
  7357. lt_prog_compiler_static='-Bstatic'
  7358. ;;
  7359. ccc*)
  7360. lt_prog_compiler_wl='-Wl,'
  7361. # All Alpha code is PIC.
  7362. lt_prog_compiler_static='-non_shared'
  7363. ;;
  7364. xl* | bgxl* | bgf* | mpixl*)
  7365. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7366. lt_prog_compiler_wl='-Wl,'
  7367. lt_prog_compiler_pic='-qpic'
  7368. lt_prog_compiler_static='-qstaticlink'
  7369. ;;
  7370. *)
  7371. case `$CC -V 2>&1 | sed 5q` in
  7372. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7373. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7374. lt_prog_compiler_pic='-KPIC'
  7375. lt_prog_compiler_static='-Bstatic'
  7376. lt_prog_compiler_wl=''
  7377. ;;
  7378. *Sun\ F* | *Sun*Fortran*)
  7379. lt_prog_compiler_pic='-KPIC'
  7380. lt_prog_compiler_static='-Bstatic'
  7381. lt_prog_compiler_wl='-Qoption ld '
  7382. ;;
  7383. *Sun\ C*)
  7384. # Sun C 5.9
  7385. lt_prog_compiler_pic='-KPIC'
  7386. lt_prog_compiler_static='-Bstatic'
  7387. lt_prog_compiler_wl='-Wl,'
  7388. ;;
  7389. *Intel*\ [CF]*Compiler*)
  7390. lt_prog_compiler_wl='-Wl,'
  7391. lt_prog_compiler_pic='-fPIC'
  7392. lt_prog_compiler_static='-static'
  7393. ;;
  7394. *Portland\ Group*)
  7395. lt_prog_compiler_wl='-Wl,'
  7396. lt_prog_compiler_pic='-fpic'
  7397. lt_prog_compiler_static='-Bstatic'
  7398. ;;
  7399. esac
  7400. ;;
  7401. esac
  7402. ;;
  7403. newsos6)
  7404. lt_prog_compiler_pic='-KPIC'
  7405. lt_prog_compiler_static='-Bstatic'
  7406. ;;
  7407. *nto* | *qnx*)
  7408. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7409. # it will coredump.
  7410. lt_prog_compiler_pic='-fPIC -shared'
  7411. ;;
  7412. osf3* | osf4* | osf5*)
  7413. lt_prog_compiler_wl='-Wl,'
  7414. # All OSF/1 code is PIC.
  7415. lt_prog_compiler_static='-non_shared'
  7416. ;;
  7417. rdos*)
  7418. lt_prog_compiler_static='-non_shared'
  7419. ;;
  7420. solaris*)
  7421. lt_prog_compiler_pic='-KPIC'
  7422. lt_prog_compiler_static='-Bstatic'
  7423. case $cc_basename in
  7424. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7425. lt_prog_compiler_wl='-Qoption ld ';;
  7426. *)
  7427. lt_prog_compiler_wl='-Wl,';;
  7428. esac
  7429. ;;
  7430. sunos4*)
  7431. lt_prog_compiler_wl='-Qoption ld '
  7432. lt_prog_compiler_pic='-PIC'
  7433. lt_prog_compiler_static='-Bstatic'
  7434. ;;
  7435. sysv4 | sysv4.2uw2* | sysv4.3*)
  7436. lt_prog_compiler_wl='-Wl,'
  7437. lt_prog_compiler_pic='-KPIC'
  7438. lt_prog_compiler_static='-Bstatic'
  7439. ;;
  7440. sysv4*MP*)
  7441. if test -d /usr/nec ;then
  7442. lt_prog_compiler_pic='-Kconform_pic'
  7443. lt_prog_compiler_static='-Bstatic'
  7444. fi
  7445. ;;
  7446. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7447. lt_prog_compiler_wl='-Wl,'
  7448. lt_prog_compiler_pic='-KPIC'
  7449. lt_prog_compiler_static='-Bstatic'
  7450. ;;
  7451. unicos*)
  7452. lt_prog_compiler_wl='-Wl,'
  7453. lt_prog_compiler_can_build_shared=no
  7454. ;;
  7455. uts4*)
  7456. lt_prog_compiler_pic='-pic'
  7457. lt_prog_compiler_static='-Bstatic'
  7458. ;;
  7459. *)
  7460. lt_prog_compiler_can_build_shared=no
  7461. ;;
  7462. esac
  7463. fi
  7464. case $host_os in
  7465. # For platforms which do not support PIC, -DPIC is meaningless:
  7466. *djgpp*)
  7467. lt_prog_compiler_pic=
  7468. ;;
  7469. *)
  7470. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7471. ;;
  7472. esac
  7473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7474. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7475. if ${lt_cv_prog_compiler_pic+:} false; then :
  7476. $as_echo_n "(cached) " >&6
  7477. else
  7478. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7479. fi
  7480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7481. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7482. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7483. #
  7484. # Check to make sure the PIC flag actually works.
  7485. #
  7486. if test -n "$lt_prog_compiler_pic"; then
  7487. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7488. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7489. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7490. $as_echo_n "(cached) " >&6
  7491. else
  7492. lt_cv_prog_compiler_pic_works=no
  7493. ac_outfile=conftest.$ac_objext
  7494. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7495. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7496. # Insert the option either (1) after the last *FLAGS variable, or
  7497. # (2) before a word containing "conftest.", or (3) at the end.
  7498. # Note that $ac_compile itself does not contain backslashes and begins
  7499. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7500. # The option is referenced via a variable to avoid confusing sed.
  7501. lt_compile=`echo "$ac_compile" | $SED \
  7502. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7503. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7504. -e 's:$: $lt_compiler_flag:'`
  7505. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7506. (eval "$lt_compile" 2>conftest.err)
  7507. ac_status=$?
  7508. cat conftest.err >&5
  7509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7510. if (exit $ac_status) && test -s "$ac_outfile"; then
  7511. # The compiler can only warn and ignore the option if not recognized
  7512. # So say no if there are warnings other than the usual output.
  7513. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7514. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7515. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7516. lt_cv_prog_compiler_pic_works=yes
  7517. fi
  7518. fi
  7519. $RM conftest*
  7520. fi
  7521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7522. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7523. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7524. case $lt_prog_compiler_pic in
  7525. "" | " "*) ;;
  7526. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7527. esac
  7528. else
  7529. lt_prog_compiler_pic=
  7530. lt_prog_compiler_can_build_shared=no
  7531. fi
  7532. fi
  7533. #
  7534. # Check to make sure the static flag actually works.
  7535. #
  7536. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7538. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7539. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7540. $as_echo_n "(cached) " >&6
  7541. else
  7542. lt_cv_prog_compiler_static_works=no
  7543. save_LDFLAGS="$LDFLAGS"
  7544. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7545. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7546. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7547. # The linker can only warn and ignore the option if not recognized
  7548. # So say no if there are warnings
  7549. if test -s conftest.err; then
  7550. # Append any errors to the config.log.
  7551. cat conftest.err 1>&5
  7552. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7553. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7554. if diff conftest.exp conftest.er2 >/dev/null; then
  7555. lt_cv_prog_compiler_static_works=yes
  7556. fi
  7557. else
  7558. lt_cv_prog_compiler_static_works=yes
  7559. fi
  7560. fi
  7561. $RM -r conftest*
  7562. LDFLAGS="$save_LDFLAGS"
  7563. fi
  7564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7565. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7566. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7567. :
  7568. else
  7569. lt_prog_compiler_static=
  7570. fi
  7571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7572. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7573. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7574. $as_echo_n "(cached) " >&6
  7575. else
  7576. lt_cv_prog_compiler_c_o=no
  7577. $RM -r conftest 2>/dev/null
  7578. mkdir conftest
  7579. cd conftest
  7580. mkdir out
  7581. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7582. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7583. # Insert the option either (1) after the last *FLAGS variable, or
  7584. # (2) before a word containing "conftest.", or (3) at the end.
  7585. # Note that $ac_compile itself does not contain backslashes and begins
  7586. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7587. lt_compile=`echo "$ac_compile" | $SED \
  7588. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7589. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7590. -e 's:$: $lt_compiler_flag:'`
  7591. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7592. (eval "$lt_compile" 2>out/conftest.err)
  7593. ac_status=$?
  7594. cat out/conftest.err >&5
  7595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7596. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7597. then
  7598. # The compiler can only warn and ignore the option if not recognized
  7599. # So say no if there are warnings
  7600. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7601. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7602. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7603. lt_cv_prog_compiler_c_o=yes
  7604. fi
  7605. fi
  7606. chmod u+w . 2>&5
  7607. $RM conftest*
  7608. # SGI C++ compiler will create directory out/ii_files/ for
  7609. # template instantiation
  7610. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7611. $RM out/* && rmdir out
  7612. cd ..
  7613. $RM -r conftest
  7614. $RM conftest*
  7615. fi
  7616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7617. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7619. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7620. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7621. $as_echo_n "(cached) " >&6
  7622. else
  7623. lt_cv_prog_compiler_c_o=no
  7624. $RM -r conftest 2>/dev/null
  7625. mkdir conftest
  7626. cd conftest
  7627. mkdir out
  7628. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7629. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7630. # Insert the option either (1) after the last *FLAGS variable, or
  7631. # (2) before a word containing "conftest.", or (3) at the end.
  7632. # Note that $ac_compile itself does not contain backslashes and begins
  7633. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7634. lt_compile=`echo "$ac_compile" | $SED \
  7635. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7636. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7637. -e 's:$: $lt_compiler_flag:'`
  7638. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7639. (eval "$lt_compile" 2>out/conftest.err)
  7640. ac_status=$?
  7641. cat out/conftest.err >&5
  7642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7643. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7644. then
  7645. # The compiler can only warn and ignore the option if not recognized
  7646. # So say no if there are warnings
  7647. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7648. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7649. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7650. lt_cv_prog_compiler_c_o=yes
  7651. fi
  7652. fi
  7653. chmod u+w . 2>&5
  7654. $RM conftest*
  7655. # SGI C++ compiler will create directory out/ii_files/ for
  7656. # template instantiation
  7657. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7658. $RM out/* && rmdir out
  7659. cd ..
  7660. $RM -r conftest
  7661. $RM conftest*
  7662. fi
  7663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7664. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7665. hard_links="nottested"
  7666. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7667. # do not overwrite the value of need_locks provided by the user
  7668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7669. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7670. hard_links=yes
  7671. $RM conftest*
  7672. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7673. touch conftest.a
  7674. ln conftest.a conftest.b 2>&5 || hard_links=no
  7675. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7677. $as_echo "$hard_links" >&6; }
  7678. if test "$hard_links" = no; then
  7679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7680. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7681. need_locks=warn
  7682. fi
  7683. else
  7684. need_locks=no
  7685. fi
  7686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7687. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7688. runpath_var=
  7689. allow_undefined_flag=
  7690. always_export_symbols=no
  7691. archive_cmds=
  7692. archive_expsym_cmds=
  7693. compiler_needs_object=no
  7694. enable_shared_with_static_runtimes=no
  7695. export_dynamic_flag_spec=
  7696. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7697. hardcode_automatic=no
  7698. hardcode_direct=no
  7699. hardcode_direct_absolute=no
  7700. hardcode_libdir_flag_spec=
  7701. hardcode_libdir_separator=
  7702. hardcode_minus_L=no
  7703. hardcode_shlibpath_var=unsupported
  7704. inherit_rpath=no
  7705. link_all_deplibs=unknown
  7706. module_cmds=
  7707. module_expsym_cmds=
  7708. old_archive_from_new_cmds=
  7709. old_archive_from_expsyms_cmds=
  7710. thread_safe_flag_spec=
  7711. whole_archive_flag_spec=
  7712. # include_expsyms should be a list of space-separated symbols to be *always*
  7713. # included in the symbol list
  7714. include_expsyms=
  7715. # exclude_expsyms can be an extended regexp of symbols to exclude
  7716. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7717. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7718. # as well as any symbol that contains `d'.
  7719. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7720. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7721. # platforms (ab)use it in PIC code, but their linkers get confused if
  7722. # the symbol is explicitly referenced. Since portable code cannot
  7723. # rely on this symbol name, it's probably fine to never include it in
  7724. # preloaded symbol tables.
  7725. # Exclude shared library initialization/finalization symbols.
  7726. extract_expsyms_cmds=
  7727. case $host_os in
  7728. cygwin* | mingw* | pw32* | cegcc*)
  7729. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7730. # When not using gcc, we currently assume that we are using
  7731. # Microsoft Visual C++.
  7732. if test "$GCC" != yes; then
  7733. with_gnu_ld=no
  7734. fi
  7735. ;;
  7736. interix*)
  7737. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7738. with_gnu_ld=yes
  7739. ;;
  7740. openbsd*)
  7741. with_gnu_ld=no
  7742. ;;
  7743. esac
  7744. ld_shlibs=yes
  7745. # On some targets, GNU ld is compatible enough with the native linker
  7746. # that we're better off using the native interface for both.
  7747. lt_use_gnu_ld_interface=no
  7748. if test "$with_gnu_ld" = yes; then
  7749. case $host_os in
  7750. aix*)
  7751. # The AIX port of GNU ld has always aspired to compatibility
  7752. # with the native linker. However, as the warning in the GNU ld
  7753. # block says, versions before 2.19.5* couldn't really create working
  7754. # shared libraries, regardless of the interface used.
  7755. case `$LD -v 2>&1` in
  7756. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7757. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7758. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7759. *)
  7760. lt_use_gnu_ld_interface=yes
  7761. ;;
  7762. esac
  7763. ;;
  7764. *)
  7765. lt_use_gnu_ld_interface=yes
  7766. ;;
  7767. esac
  7768. fi
  7769. if test "$lt_use_gnu_ld_interface" = yes; then
  7770. # If archive_cmds runs LD, not CC, wlarc should be empty
  7771. wlarc='${wl}'
  7772. # Set some defaults for GNU ld with shared library support. These
  7773. # are reset later if shared libraries are not supported. Putting them
  7774. # here allows them to be overridden if necessary.
  7775. runpath_var=LD_RUN_PATH
  7776. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7777. export_dynamic_flag_spec='${wl}--export-dynamic'
  7778. # ancient GNU ld didn't support --whole-archive et. al.
  7779. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7780. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7781. else
  7782. whole_archive_flag_spec=
  7783. fi
  7784. supports_anon_versioning=no
  7785. case `$LD -v 2>&1` in
  7786. *GNU\ gold*) supports_anon_versioning=yes ;;
  7787. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7788. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7789. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7790. *\ 2.11.*) ;; # other 2.11 versions
  7791. *) supports_anon_versioning=yes ;;
  7792. esac
  7793. # See if GNU ld supports shared libraries.
  7794. case $host_os in
  7795. aix[3-9]*)
  7796. # On AIX/PPC, the GNU linker is very broken
  7797. if test "$host_cpu" != ia64; then
  7798. ld_shlibs=no
  7799. cat <<_LT_EOF 1>&2
  7800. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7801. *** to be unable to reliably create shared libraries on AIX.
  7802. *** Therefore, libtool is disabling shared libraries support. If you
  7803. *** really care for shared libraries, you may want to install binutils
  7804. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7805. *** You will then need to restart the configuration process.
  7806. _LT_EOF
  7807. fi
  7808. ;;
  7809. amigaos*)
  7810. case $host_cpu in
  7811. powerpc)
  7812. # see comment about AmigaOS4 .so support
  7813. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7814. archive_expsym_cmds=''
  7815. ;;
  7816. m68k)
  7817. 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)'
  7818. hardcode_libdir_flag_spec='-L$libdir'
  7819. hardcode_minus_L=yes
  7820. ;;
  7821. esac
  7822. ;;
  7823. beos*)
  7824. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7825. allow_undefined_flag=unsupported
  7826. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7827. # support --undefined. This deserves some investigation. FIXME
  7828. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7829. else
  7830. ld_shlibs=no
  7831. fi
  7832. ;;
  7833. cygwin* | mingw* | pw32* | cegcc*)
  7834. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7835. # as there is no search path for DLLs.
  7836. hardcode_libdir_flag_spec='-L$libdir'
  7837. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7838. allow_undefined_flag=unsupported
  7839. always_export_symbols=no
  7840. enable_shared_with_static_runtimes=yes
  7841. 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'
  7842. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7843. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7844. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7845. # If the export-symbols file already is a .def file (1st line
  7846. # is EXPORTS), use it as is; otherwise, prepend...
  7847. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7848. cp $export_symbols $output_objdir/$soname.def;
  7849. else
  7850. echo EXPORTS > $output_objdir/$soname.def;
  7851. cat $export_symbols >> $output_objdir/$soname.def;
  7852. fi~
  7853. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7854. else
  7855. ld_shlibs=no
  7856. fi
  7857. ;;
  7858. haiku*)
  7859. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7860. link_all_deplibs=yes
  7861. ;;
  7862. interix[3-9]*)
  7863. hardcode_direct=no
  7864. hardcode_shlibpath_var=no
  7865. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7866. export_dynamic_flag_spec='${wl}-E'
  7867. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7868. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7869. # default) and relocated if they conflict, which is a slow very memory
  7870. # consuming and fragmenting process. To avoid this, we pick a random,
  7871. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7872. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7873. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7874. 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'
  7875. ;;
  7876. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7877. tmp_diet=no
  7878. if test "$host_os" = linux-dietlibc; then
  7879. case $cc_basename in
  7880. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7881. esac
  7882. fi
  7883. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7884. && test "$tmp_diet" = no
  7885. then
  7886. tmp_addflag=' $pic_flag'
  7887. tmp_sharedflag='-shared'
  7888. case $cc_basename,$host_cpu in
  7889. pgcc*) # Portland Group C compiler
  7890. 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'
  7891. tmp_addflag=' $pic_flag'
  7892. ;;
  7893. pgf77* | pgf90* | pgf95* | pgfortran*)
  7894. # Portland Group f77 and f90 compilers
  7895. 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'
  7896. tmp_addflag=' $pic_flag -Mnomain' ;;
  7897. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7898. tmp_addflag=' -i_dynamic' ;;
  7899. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7900. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7901. ifc* | ifort*) # Intel Fortran compiler
  7902. tmp_addflag=' -nofor_main' ;;
  7903. lf95*) # Lahey Fortran 8.1
  7904. whole_archive_flag_spec=
  7905. tmp_sharedflag='--shared' ;;
  7906. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7907. tmp_sharedflag='-qmkshrobj'
  7908. tmp_addflag= ;;
  7909. nvcc*) # Cuda Compiler Driver 2.2
  7910. 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'
  7911. compiler_needs_object=yes
  7912. ;;
  7913. esac
  7914. case `$CC -V 2>&1 | sed 5q` in
  7915. *Sun\ C*) # Sun C 5.9
  7916. 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'
  7917. compiler_needs_object=yes
  7918. tmp_sharedflag='-G' ;;
  7919. *Sun\ F*) # Sun Fortran 8.3
  7920. tmp_sharedflag='-G' ;;
  7921. esac
  7922. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7923. if test "x$supports_anon_versioning" = xyes; then
  7924. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7925. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7926. echo "local: *; };" >> $output_objdir/$libname.ver~
  7927. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7928. fi
  7929. case $cc_basename in
  7930. xlf* | bgf* | bgxlf* | mpixlf*)
  7931. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7932. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7933. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7934. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7935. if test "x$supports_anon_versioning" = xyes; then
  7936. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7937. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7938. echo "local: *; };" >> $output_objdir/$libname.ver~
  7939. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7940. fi
  7941. ;;
  7942. esac
  7943. else
  7944. ld_shlibs=no
  7945. fi
  7946. ;;
  7947. netbsd*)
  7948. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7949. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7950. wlarc=
  7951. else
  7952. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7953. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7954. fi
  7955. ;;
  7956. solaris*)
  7957. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7958. ld_shlibs=no
  7959. cat <<_LT_EOF 1>&2
  7960. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7961. *** create shared libraries on Solaris systems. Therefore, libtool
  7962. *** is disabling shared libraries support. We urge you to upgrade GNU
  7963. *** binutils to release 2.9.1 or newer. Another option is to modify
  7964. *** your PATH or compiler configuration so that the native linker is
  7965. *** used, and then restart.
  7966. _LT_EOF
  7967. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7968. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7969. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7970. else
  7971. ld_shlibs=no
  7972. fi
  7973. ;;
  7974. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7975. case `$LD -v 2>&1` in
  7976. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7977. ld_shlibs=no
  7978. cat <<_LT_EOF 1>&2
  7979. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7980. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7981. *** is disabling shared libraries support. We urge you to upgrade GNU
  7982. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7983. *** your PATH or compiler configuration so that the native linker is
  7984. *** used, and then restart.
  7985. _LT_EOF
  7986. ;;
  7987. *)
  7988. # For security reasons, it is highly recommended that you always
  7989. # use absolute paths for naming shared libraries, and exclude the
  7990. # DT_RUNPATH tag from executables and libraries. But doing so
  7991. # requires that you compile everything twice, which is a pain.
  7992. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7993. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7994. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7995. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7996. else
  7997. ld_shlibs=no
  7998. fi
  7999. ;;
  8000. esac
  8001. ;;
  8002. sunos4*)
  8003. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8004. wlarc=
  8005. hardcode_direct=yes
  8006. hardcode_shlibpath_var=no
  8007. ;;
  8008. *)
  8009. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8010. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8011. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8012. else
  8013. ld_shlibs=no
  8014. fi
  8015. ;;
  8016. esac
  8017. if test "$ld_shlibs" = no; then
  8018. runpath_var=
  8019. hardcode_libdir_flag_spec=
  8020. export_dynamic_flag_spec=
  8021. whole_archive_flag_spec=
  8022. fi
  8023. else
  8024. # PORTME fill in a description of your system's linker (not GNU ld)
  8025. case $host_os in
  8026. aix3*)
  8027. allow_undefined_flag=unsupported
  8028. always_export_symbols=yes
  8029. 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'
  8030. # Note: this linker hardcodes the directories in LIBPATH if there
  8031. # are no directories specified by -L.
  8032. hardcode_minus_L=yes
  8033. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8034. # Neither direct hardcoding nor static linking is supported with a
  8035. # broken collect2.
  8036. hardcode_direct=unsupported
  8037. fi
  8038. ;;
  8039. aix[4-9]*)
  8040. if test "$host_cpu" = ia64; then
  8041. # On IA64, the linker does run time linking by default, so we don't
  8042. # have to do anything special.
  8043. aix_use_runtimelinking=no
  8044. exp_sym_flag='-Bexport'
  8045. no_entry_flag=""
  8046. else
  8047. # If we're using GNU nm, then we don't want the "-C" option.
  8048. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8049. # Also, AIX nm treats weak defined symbols like other global
  8050. # defined symbols, whereas GNU nm marks them as "W".
  8051. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8052. 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'
  8053. else
  8054. 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'
  8055. fi
  8056. aix_use_runtimelinking=no
  8057. # Test if we are trying to use run time linking or normal
  8058. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8059. # need to do runtime linking.
  8060. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8061. for ld_flag in $LDFLAGS; do
  8062. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8063. aix_use_runtimelinking=yes
  8064. break
  8065. fi
  8066. done
  8067. ;;
  8068. esac
  8069. exp_sym_flag='-bexport'
  8070. no_entry_flag='-bnoentry'
  8071. fi
  8072. # When large executables or shared objects are built, AIX ld can
  8073. # have problems creating the table of contents. If linking a library
  8074. # or program results in "error TOC overflow" add -mminimal-toc to
  8075. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8076. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8077. archive_cmds=''
  8078. hardcode_direct=yes
  8079. hardcode_direct_absolute=yes
  8080. hardcode_libdir_separator=':'
  8081. link_all_deplibs=yes
  8082. file_list_spec='${wl}-f,'
  8083. if test "$GCC" = yes; then
  8084. case $host_os in aix4.[012]|aix4.[012].*)
  8085. # We only want to do this on AIX 4.2 and lower, the check
  8086. # below for broken collect2 doesn't work under 4.3+
  8087. collect2name=`${CC} -print-prog-name=collect2`
  8088. if test -f "$collect2name" &&
  8089. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8090. then
  8091. # We have reworked collect2
  8092. :
  8093. else
  8094. # We have old collect2
  8095. hardcode_direct=unsupported
  8096. # It fails to find uninstalled libraries when the uninstalled
  8097. # path is not listed in the libpath. Setting hardcode_minus_L
  8098. # to unsupported forces relinking
  8099. hardcode_minus_L=yes
  8100. hardcode_libdir_flag_spec='-L$libdir'
  8101. hardcode_libdir_separator=
  8102. fi
  8103. ;;
  8104. esac
  8105. shared_flag='-shared'
  8106. if test "$aix_use_runtimelinking" = yes; then
  8107. shared_flag="$shared_flag "'${wl}-G'
  8108. fi
  8109. else
  8110. # not using gcc
  8111. if test "$host_cpu" = ia64; then
  8112. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8113. # chokes on -Wl,-G. The following line is correct:
  8114. shared_flag='-G'
  8115. else
  8116. if test "$aix_use_runtimelinking" = yes; then
  8117. shared_flag='${wl}-G'
  8118. else
  8119. shared_flag='${wl}-bM:SRE'
  8120. fi
  8121. fi
  8122. fi
  8123. export_dynamic_flag_spec='${wl}-bexpall'
  8124. # It seems that -bexpall does not export symbols beginning with
  8125. # underscore (_), so it is better to generate a list of symbols to export.
  8126. always_export_symbols=yes
  8127. if test "$aix_use_runtimelinking" = yes; then
  8128. # Warning - without using the other runtime loading flags (-brtl),
  8129. # -berok will link without error, but may produce a broken library.
  8130. allow_undefined_flag='-berok'
  8131. # Determine the default libpath from the value encoded in an
  8132. # empty executable.
  8133. if test "${lt_cv_aix_libpath+set}" = set; then
  8134. aix_libpath=$lt_cv_aix_libpath
  8135. else
  8136. if ${lt_cv_aix_libpath_+:} false; then :
  8137. $as_echo_n "(cached) " >&6
  8138. else
  8139. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8140. /* end confdefs.h. */
  8141. int
  8142. main ()
  8143. {
  8144. ;
  8145. return 0;
  8146. }
  8147. _ACEOF
  8148. if ac_fn_c_try_link "$LINENO"; then :
  8149. lt_aix_libpath_sed='
  8150. /Import File Strings/,/^$/ {
  8151. /^0/ {
  8152. s/^0 *\([^ ]*\) *$/\1/
  8153. p
  8154. }
  8155. }'
  8156. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8157. # Check for a 64-bit object if we didn't find anything.
  8158. if test -z "$lt_cv_aix_libpath_"; then
  8159. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8160. fi
  8161. fi
  8162. rm -f core conftest.err conftest.$ac_objext \
  8163. conftest$ac_exeext conftest.$ac_ext
  8164. if test -z "$lt_cv_aix_libpath_"; then
  8165. lt_cv_aix_libpath_="/usr/lib:/lib"
  8166. fi
  8167. fi
  8168. aix_libpath=$lt_cv_aix_libpath_
  8169. fi
  8170. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8171. 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"
  8172. else
  8173. if test "$host_cpu" = ia64; then
  8174. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8175. allow_undefined_flag="-z nodefs"
  8176. 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"
  8177. else
  8178. # Determine the default libpath from the value encoded in an
  8179. # empty executable.
  8180. if test "${lt_cv_aix_libpath+set}" = set; then
  8181. aix_libpath=$lt_cv_aix_libpath
  8182. else
  8183. if ${lt_cv_aix_libpath_+:} false; then :
  8184. $as_echo_n "(cached) " >&6
  8185. else
  8186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8187. /* end confdefs.h. */
  8188. int
  8189. main ()
  8190. {
  8191. ;
  8192. return 0;
  8193. }
  8194. _ACEOF
  8195. if ac_fn_c_try_link "$LINENO"; then :
  8196. lt_aix_libpath_sed='
  8197. /Import File Strings/,/^$/ {
  8198. /^0/ {
  8199. s/^0 *\([^ ]*\) *$/\1/
  8200. p
  8201. }
  8202. }'
  8203. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8204. # Check for a 64-bit object if we didn't find anything.
  8205. if test -z "$lt_cv_aix_libpath_"; then
  8206. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8207. fi
  8208. fi
  8209. rm -f core conftest.err conftest.$ac_objext \
  8210. conftest$ac_exeext conftest.$ac_ext
  8211. if test -z "$lt_cv_aix_libpath_"; then
  8212. lt_cv_aix_libpath_="/usr/lib:/lib"
  8213. fi
  8214. fi
  8215. aix_libpath=$lt_cv_aix_libpath_
  8216. fi
  8217. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8218. # Warning - without using the other run time loading flags,
  8219. # -berok will link without error, but may produce a broken library.
  8220. no_undefined_flag=' ${wl}-bernotok'
  8221. allow_undefined_flag=' ${wl}-berok'
  8222. if test "$with_gnu_ld" = yes; then
  8223. # We only use this code for GNU lds that support --whole-archive.
  8224. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8225. else
  8226. # Exported symbols can be pulled into shared objects from archives
  8227. whole_archive_flag_spec='$convenience'
  8228. fi
  8229. archive_cmds_need_lc=yes
  8230. # This is similar to how AIX traditionally builds its shared libraries.
  8231. 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'
  8232. fi
  8233. fi
  8234. ;;
  8235. amigaos*)
  8236. case $host_cpu in
  8237. powerpc)
  8238. # see comment about AmigaOS4 .so support
  8239. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8240. archive_expsym_cmds=''
  8241. ;;
  8242. m68k)
  8243. 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)'
  8244. hardcode_libdir_flag_spec='-L$libdir'
  8245. hardcode_minus_L=yes
  8246. ;;
  8247. esac
  8248. ;;
  8249. bsdi[45]*)
  8250. export_dynamic_flag_spec=-rdynamic
  8251. ;;
  8252. cygwin* | mingw* | pw32* | cegcc*)
  8253. # When not using gcc, we currently assume that we are using
  8254. # Microsoft Visual C++.
  8255. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8256. # no search path for DLLs.
  8257. case $cc_basename in
  8258. cl*)
  8259. # Native MSVC
  8260. hardcode_libdir_flag_spec=' '
  8261. allow_undefined_flag=unsupported
  8262. always_export_symbols=yes
  8263. file_list_spec='@'
  8264. # Tell ltmain to make .lib files, not .a files.
  8265. libext=lib
  8266. # Tell ltmain to make .dll files, not .so files.
  8267. shrext_cmds=".dll"
  8268. # FIXME: Setting linknames here is a bad hack.
  8269. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8270. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8271. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8272. else
  8273. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8274. fi~
  8275. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8276. linknames='
  8277. # The linker will not automatically build a static lib if we build a DLL.
  8278. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8279. enable_shared_with_static_runtimes=yes
  8280. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8281. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8282. # Don't use ranlib
  8283. old_postinstall_cmds='chmod 644 $oldlib'
  8284. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8285. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8286. case $lt_outputfile in
  8287. *.exe|*.EXE) ;;
  8288. *)
  8289. lt_outputfile="$lt_outputfile.exe"
  8290. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8291. ;;
  8292. esac~
  8293. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8294. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8295. $RM "$lt_outputfile.manifest";
  8296. fi'
  8297. ;;
  8298. *)
  8299. # Assume MSVC wrapper
  8300. hardcode_libdir_flag_spec=' '
  8301. allow_undefined_flag=unsupported
  8302. # Tell ltmain to make .lib files, not .a files.
  8303. libext=lib
  8304. # Tell ltmain to make .dll files, not .so files.
  8305. shrext_cmds=".dll"
  8306. # FIXME: Setting linknames here is a bad hack.
  8307. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8308. # The linker will automatically build a .lib file if we build a DLL.
  8309. old_archive_from_new_cmds='true'
  8310. # FIXME: Should let the user specify the lib program.
  8311. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8312. enable_shared_with_static_runtimes=yes
  8313. ;;
  8314. esac
  8315. ;;
  8316. darwin* | rhapsody*)
  8317. archive_cmds_need_lc=no
  8318. hardcode_direct=no
  8319. hardcode_automatic=yes
  8320. hardcode_shlibpath_var=unsupported
  8321. if test "$lt_cv_ld_force_load" = "yes"; then
  8322. 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\"`'
  8323. else
  8324. whole_archive_flag_spec=''
  8325. fi
  8326. link_all_deplibs=yes
  8327. allow_undefined_flag="$_lt_dar_allow_undefined"
  8328. case $cc_basename in
  8329. ifort*) _lt_dar_can_shared=yes ;;
  8330. *) _lt_dar_can_shared=$GCC ;;
  8331. esac
  8332. if test "$_lt_dar_can_shared" = "yes"; then
  8333. output_verbose_link_cmd=func_echo_all
  8334. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8335. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8336. 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}"
  8337. 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}"
  8338. else
  8339. ld_shlibs=no
  8340. fi
  8341. ;;
  8342. dgux*)
  8343. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8344. hardcode_libdir_flag_spec='-L$libdir'
  8345. hardcode_shlibpath_var=no
  8346. ;;
  8347. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8348. # support. Future versions do this automatically, but an explicit c++rt0.o
  8349. # does not break anything, and helps significantly (at the cost of a little
  8350. # extra space).
  8351. freebsd2.2*)
  8352. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8353. hardcode_libdir_flag_spec='-R$libdir'
  8354. hardcode_direct=yes
  8355. hardcode_shlibpath_var=no
  8356. ;;
  8357. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8358. freebsd2.*)
  8359. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8360. hardcode_direct=yes
  8361. hardcode_minus_L=yes
  8362. hardcode_shlibpath_var=no
  8363. ;;
  8364. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8365. freebsd* | dragonfly*)
  8366. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8367. hardcode_libdir_flag_spec='-R$libdir'
  8368. hardcode_direct=yes
  8369. hardcode_shlibpath_var=no
  8370. ;;
  8371. hpux9*)
  8372. if test "$GCC" = yes; then
  8373. 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'
  8374. else
  8375. 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'
  8376. fi
  8377. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8378. hardcode_libdir_separator=:
  8379. hardcode_direct=yes
  8380. # hardcode_minus_L: Not really in the search PATH,
  8381. # but as the default location of the library.
  8382. hardcode_minus_L=yes
  8383. export_dynamic_flag_spec='${wl}-E'
  8384. ;;
  8385. hpux10*)
  8386. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8387. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8388. else
  8389. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8390. fi
  8391. if test "$with_gnu_ld" = no; then
  8392. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8393. hardcode_libdir_separator=:
  8394. hardcode_direct=yes
  8395. hardcode_direct_absolute=yes
  8396. export_dynamic_flag_spec='${wl}-E'
  8397. # hardcode_minus_L: Not really in the search PATH,
  8398. # but as the default location of the library.
  8399. hardcode_minus_L=yes
  8400. fi
  8401. ;;
  8402. hpux11*)
  8403. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8404. case $host_cpu in
  8405. hppa*64*)
  8406. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8407. ;;
  8408. ia64*)
  8409. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8410. ;;
  8411. *)
  8412. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8413. ;;
  8414. esac
  8415. else
  8416. case $host_cpu in
  8417. hppa*64*)
  8418. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8419. ;;
  8420. ia64*)
  8421. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8422. ;;
  8423. *)
  8424. # Older versions of the 11.00 compiler do not understand -b yet
  8425. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8427. $as_echo_n "checking if $CC understands -b... " >&6; }
  8428. if ${lt_cv_prog_compiler__b+:} false; then :
  8429. $as_echo_n "(cached) " >&6
  8430. else
  8431. lt_cv_prog_compiler__b=no
  8432. save_LDFLAGS="$LDFLAGS"
  8433. LDFLAGS="$LDFLAGS -b"
  8434. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8435. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8436. # The linker can only warn and ignore the option if not recognized
  8437. # So say no if there are warnings
  8438. if test -s conftest.err; then
  8439. # Append any errors to the config.log.
  8440. cat conftest.err 1>&5
  8441. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8442. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8443. if diff conftest.exp conftest.er2 >/dev/null; then
  8444. lt_cv_prog_compiler__b=yes
  8445. fi
  8446. else
  8447. lt_cv_prog_compiler__b=yes
  8448. fi
  8449. fi
  8450. $RM -r conftest*
  8451. LDFLAGS="$save_LDFLAGS"
  8452. fi
  8453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8454. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8455. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8456. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8457. else
  8458. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8459. fi
  8460. ;;
  8461. esac
  8462. fi
  8463. if test "$with_gnu_ld" = no; then
  8464. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8465. hardcode_libdir_separator=:
  8466. case $host_cpu in
  8467. hppa*64*|ia64*)
  8468. hardcode_direct=no
  8469. hardcode_shlibpath_var=no
  8470. ;;
  8471. *)
  8472. hardcode_direct=yes
  8473. hardcode_direct_absolute=yes
  8474. export_dynamic_flag_spec='${wl}-E'
  8475. # hardcode_minus_L: Not really in the search PATH,
  8476. # but as the default location of the library.
  8477. hardcode_minus_L=yes
  8478. ;;
  8479. esac
  8480. fi
  8481. ;;
  8482. irix5* | irix6* | nonstopux*)
  8483. if test "$GCC" = yes; then
  8484. 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'
  8485. # Try to use the -exported_symbol ld option, if it does not
  8486. # work, assume that -exports_file does not work either and
  8487. # implicitly export all symbols.
  8488. # This should be the same for all languages, so no per-tag cache variable.
  8489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8490. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8491. if ${lt_cv_irix_exported_symbol+:} false; then :
  8492. $as_echo_n "(cached) " >&6
  8493. else
  8494. save_LDFLAGS="$LDFLAGS"
  8495. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8497. /* end confdefs.h. */
  8498. int foo (void) { return 0; }
  8499. _ACEOF
  8500. if ac_fn_c_try_link "$LINENO"; then :
  8501. lt_cv_irix_exported_symbol=yes
  8502. else
  8503. lt_cv_irix_exported_symbol=no
  8504. fi
  8505. rm -f core conftest.err conftest.$ac_objext \
  8506. conftest$ac_exeext conftest.$ac_ext
  8507. LDFLAGS="$save_LDFLAGS"
  8508. fi
  8509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8510. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8511. if test "$lt_cv_irix_exported_symbol" = yes; then
  8512. 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'
  8513. fi
  8514. else
  8515. 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'
  8516. 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'
  8517. fi
  8518. archive_cmds_need_lc='no'
  8519. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8520. hardcode_libdir_separator=:
  8521. inherit_rpath=yes
  8522. link_all_deplibs=yes
  8523. ;;
  8524. netbsd*)
  8525. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8526. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8527. else
  8528. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8529. fi
  8530. hardcode_libdir_flag_spec='-R$libdir'
  8531. hardcode_direct=yes
  8532. hardcode_shlibpath_var=no
  8533. ;;
  8534. newsos6)
  8535. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8536. hardcode_direct=yes
  8537. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8538. hardcode_libdir_separator=:
  8539. hardcode_shlibpath_var=no
  8540. ;;
  8541. *nto* | *qnx*)
  8542. ;;
  8543. openbsd*)
  8544. if test -f /usr/libexec/ld.so; then
  8545. hardcode_direct=yes
  8546. hardcode_shlibpath_var=no
  8547. hardcode_direct_absolute=yes
  8548. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8549. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8550. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8551. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8552. export_dynamic_flag_spec='${wl}-E'
  8553. else
  8554. case $host_os in
  8555. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8556. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8557. hardcode_libdir_flag_spec='-R$libdir'
  8558. ;;
  8559. *)
  8560. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8561. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8562. ;;
  8563. esac
  8564. fi
  8565. else
  8566. ld_shlibs=no
  8567. fi
  8568. ;;
  8569. os2*)
  8570. hardcode_libdir_flag_spec='-L$libdir'
  8571. hardcode_minus_L=yes
  8572. allow_undefined_flag=unsupported
  8573. 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'
  8574. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8575. ;;
  8576. osf3*)
  8577. if test "$GCC" = yes; then
  8578. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8579. 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'
  8580. else
  8581. allow_undefined_flag=' -expect_unresolved \*'
  8582. 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'
  8583. fi
  8584. archive_cmds_need_lc='no'
  8585. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8586. hardcode_libdir_separator=:
  8587. ;;
  8588. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8589. if test "$GCC" = yes; then
  8590. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8591. 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'
  8592. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8593. else
  8594. allow_undefined_flag=' -expect_unresolved \*'
  8595. 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'
  8596. 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~
  8597. $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'
  8598. # Both c and cxx compiler support -rpath directly
  8599. hardcode_libdir_flag_spec='-rpath $libdir'
  8600. fi
  8601. archive_cmds_need_lc='no'
  8602. hardcode_libdir_separator=:
  8603. ;;
  8604. solaris*)
  8605. no_undefined_flag=' -z defs'
  8606. if test "$GCC" = yes; then
  8607. wlarc='${wl}'
  8608. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8609. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8610. $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'
  8611. else
  8612. case `$CC -V 2>&1` in
  8613. *"Compilers 5.0"*)
  8614. wlarc=''
  8615. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8616. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8617. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8618. ;;
  8619. *)
  8620. wlarc='${wl}'
  8621. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8622. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8623. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8624. ;;
  8625. esac
  8626. fi
  8627. hardcode_libdir_flag_spec='-R$libdir'
  8628. hardcode_shlibpath_var=no
  8629. case $host_os in
  8630. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8631. *)
  8632. # The compiler driver will combine and reorder linker options,
  8633. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8634. # but is careful enough not to reorder.
  8635. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8636. if test "$GCC" = yes; then
  8637. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8638. else
  8639. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8640. fi
  8641. ;;
  8642. esac
  8643. link_all_deplibs=yes
  8644. ;;
  8645. sunos4*)
  8646. if test "x$host_vendor" = xsequent; then
  8647. # Use $CC to link under sequent, because it throws in some extra .o
  8648. # files that make .init and .fini sections work.
  8649. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8650. else
  8651. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8652. fi
  8653. hardcode_libdir_flag_spec='-L$libdir'
  8654. hardcode_direct=yes
  8655. hardcode_minus_L=yes
  8656. hardcode_shlibpath_var=no
  8657. ;;
  8658. sysv4)
  8659. case $host_vendor in
  8660. sni)
  8661. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8662. hardcode_direct=yes # is this really true???
  8663. ;;
  8664. siemens)
  8665. ## LD is ld it makes a PLAMLIB
  8666. ## CC just makes a GrossModule.
  8667. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8668. reload_cmds='$CC -r -o $output$reload_objs'
  8669. hardcode_direct=no
  8670. ;;
  8671. motorola)
  8672. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8673. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8674. ;;
  8675. esac
  8676. runpath_var='LD_RUN_PATH'
  8677. hardcode_shlibpath_var=no
  8678. ;;
  8679. sysv4.3*)
  8680. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8681. hardcode_shlibpath_var=no
  8682. export_dynamic_flag_spec='-Bexport'
  8683. ;;
  8684. sysv4*MP*)
  8685. if test -d /usr/nec; then
  8686. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8687. hardcode_shlibpath_var=no
  8688. runpath_var=LD_RUN_PATH
  8689. hardcode_runpath_var=yes
  8690. ld_shlibs=yes
  8691. fi
  8692. ;;
  8693. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8694. no_undefined_flag='${wl}-z,text'
  8695. archive_cmds_need_lc=no
  8696. hardcode_shlibpath_var=no
  8697. runpath_var='LD_RUN_PATH'
  8698. if test "$GCC" = yes; then
  8699. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8700. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8701. else
  8702. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8703. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8704. fi
  8705. ;;
  8706. sysv5* | sco3.2v5* | sco5v6*)
  8707. # Note: We can NOT use -z defs as we might desire, because we do not
  8708. # link with -lc, and that would cause any symbols used from libc to
  8709. # always be unresolved, which means just about no library would
  8710. # ever link correctly. If we're not using GNU ld we use -z text
  8711. # though, which does catch some bad symbols but isn't as heavy-handed
  8712. # as -z defs.
  8713. no_undefined_flag='${wl}-z,text'
  8714. allow_undefined_flag='${wl}-z,nodefs'
  8715. archive_cmds_need_lc=no
  8716. hardcode_shlibpath_var=no
  8717. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8718. hardcode_libdir_separator=':'
  8719. link_all_deplibs=yes
  8720. export_dynamic_flag_spec='${wl}-Bexport'
  8721. runpath_var='LD_RUN_PATH'
  8722. if test "$GCC" = yes; then
  8723. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8724. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8725. else
  8726. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8727. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8728. fi
  8729. ;;
  8730. uts4*)
  8731. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8732. hardcode_libdir_flag_spec='-L$libdir'
  8733. hardcode_shlibpath_var=no
  8734. ;;
  8735. *)
  8736. ld_shlibs=no
  8737. ;;
  8738. esac
  8739. if test x$host_vendor = xsni; then
  8740. case $host in
  8741. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8742. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8743. ;;
  8744. esac
  8745. fi
  8746. fi
  8747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8748. $as_echo "$ld_shlibs" >&6; }
  8749. test "$ld_shlibs" = no && can_build_shared=no
  8750. with_gnu_ld=$with_gnu_ld
  8751. #
  8752. # Do we need to explicitly link libc?
  8753. #
  8754. case "x$archive_cmds_need_lc" in
  8755. x|xyes)
  8756. # Assume -lc should be added
  8757. archive_cmds_need_lc=yes
  8758. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8759. case $archive_cmds in
  8760. *'~'*)
  8761. # FIXME: we may have to deal with multi-command sequences.
  8762. ;;
  8763. '$CC '*)
  8764. # Test whether the compiler implicitly links with -lc since on some
  8765. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8766. # to ld, don't add -lc before -lgcc.
  8767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8768. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8769. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8770. $as_echo_n "(cached) " >&6
  8771. else
  8772. $RM conftest*
  8773. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8774. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8775. (eval $ac_compile) 2>&5
  8776. ac_status=$?
  8777. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8778. test $ac_status = 0; } 2>conftest.err; then
  8779. soname=conftest
  8780. lib=conftest
  8781. libobjs=conftest.$ac_objext
  8782. deplibs=
  8783. wl=$lt_prog_compiler_wl
  8784. pic_flag=$lt_prog_compiler_pic
  8785. compiler_flags=-v
  8786. linker_flags=-v
  8787. verstring=
  8788. output_objdir=.
  8789. libname=conftest
  8790. lt_save_allow_undefined_flag=$allow_undefined_flag
  8791. allow_undefined_flag=
  8792. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8793. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8794. ac_status=$?
  8795. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8796. test $ac_status = 0; }
  8797. then
  8798. lt_cv_archive_cmds_need_lc=no
  8799. else
  8800. lt_cv_archive_cmds_need_lc=yes
  8801. fi
  8802. allow_undefined_flag=$lt_save_allow_undefined_flag
  8803. else
  8804. cat conftest.err 1>&5
  8805. fi
  8806. $RM conftest*
  8807. fi
  8808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8809. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8810. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8811. ;;
  8812. esac
  8813. fi
  8814. ;;
  8815. esac
  8816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8817. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8818. if test "$GCC" = yes; then
  8819. case $host_os in
  8820. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8821. *) lt_awk_arg="/^libraries:/" ;;
  8822. esac
  8823. case $host_os in
  8824. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8825. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8826. esac
  8827. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8828. case $lt_search_path_spec in
  8829. *\;*)
  8830. # if the path contains ";" then we assume it to be the separator
  8831. # otherwise default to the standard path separator (i.e. ":") - it is
  8832. # assumed that no part of a normal pathname contains ";" but that should
  8833. # okay in the real world where ";" in dirpaths is itself problematic.
  8834. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8835. ;;
  8836. *)
  8837. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8838. ;;
  8839. esac
  8840. # Ok, now we have the path, separated by spaces, we can step through it
  8841. # and add multilib dir if necessary.
  8842. lt_tmp_lt_search_path_spec=
  8843. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8844. for lt_sys_path in $lt_search_path_spec; do
  8845. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8846. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8847. else
  8848. test -d "$lt_sys_path" && \
  8849. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8850. fi
  8851. done
  8852. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8853. BEGIN {RS=" "; FS="/|\n";} {
  8854. lt_foo="";
  8855. lt_count=0;
  8856. for (lt_i = NF; lt_i > 0; lt_i--) {
  8857. if ($lt_i != "" && $lt_i != ".") {
  8858. if ($lt_i == "..") {
  8859. lt_count++;
  8860. } else {
  8861. if (lt_count == 0) {
  8862. lt_foo="/" $lt_i lt_foo;
  8863. } else {
  8864. lt_count--;
  8865. }
  8866. }
  8867. }
  8868. }
  8869. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8870. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8871. }'`
  8872. # AWK program above erroneously prepends '/' to C:/dos/paths
  8873. # for these hosts.
  8874. case $host_os in
  8875. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8876. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8877. esac
  8878. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8879. else
  8880. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8881. fi
  8882. library_names_spec=
  8883. libname_spec='lib$name'
  8884. soname_spec=
  8885. shrext_cmds=".so"
  8886. postinstall_cmds=
  8887. postuninstall_cmds=
  8888. finish_cmds=
  8889. finish_eval=
  8890. shlibpath_var=
  8891. shlibpath_overrides_runpath=unknown
  8892. version_type=none
  8893. dynamic_linker="$host_os ld.so"
  8894. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8895. need_lib_prefix=unknown
  8896. hardcode_into_libs=no
  8897. # when you set need_version to no, make sure it does not cause -set_version
  8898. # flags to be left without arguments
  8899. need_version=unknown
  8900. case $host_os in
  8901. aix3*)
  8902. version_type=linux # correct to gnu/linux during the next big refactor
  8903. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8904. shlibpath_var=LIBPATH
  8905. # AIX 3 has no versioning support, so we append a major version to the name.
  8906. soname_spec='${libname}${release}${shared_ext}$major'
  8907. ;;
  8908. aix[4-9]*)
  8909. version_type=linux # correct to gnu/linux during the next big refactor
  8910. need_lib_prefix=no
  8911. need_version=no
  8912. hardcode_into_libs=yes
  8913. if test "$host_cpu" = ia64; then
  8914. # AIX 5 supports IA64
  8915. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8916. shlibpath_var=LD_LIBRARY_PATH
  8917. else
  8918. # With GCC up to 2.95.x, collect2 would create an import file
  8919. # for dependence libraries. The import file would start with
  8920. # the line `#! .'. This would cause the generated library to
  8921. # depend on `.', always an invalid library. This was fixed in
  8922. # development snapshots of GCC prior to 3.0.
  8923. case $host_os in
  8924. aix4 | aix4.[01] | aix4.[01].*)
  8925. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8926. echo ' yes '
  8927. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8928. :
  8929. else
  8930. can_build_shared=no
  8931. fi
  8932. ;;
  8933. esac
  8934. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8935. # soname into executable. Probably we can add versioning support to
  8936. # collect2, so additional links can be useful in future.
  8937. if test "$aix_use_runtimelinking" = yes; then
  8938. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8939. # instead of lib<name>.a to let people know that these are not
  8940. # typical AIX shared libraries.
  8941. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8942. else
  8943. # We preserve .a as extension for shared libraries through AIX4.2
  8944. # and later when we are not doing run time linking.
  8945. library_names_spec='${libname}${release}.a $libname.a'
  8946. soname_spec='${libname}${release}${shared_ext}$major'
  8947. fi
  8948. shlibpath_var=LIBPATH
  8949. fi
  8950. ;;
  8951. amigaos*)
  8952. case $host_cpu in
  8953. powerpc)
  8954. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8955. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8956. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8957. ;;
  8958. m68k)
  8959. library_names_spec='$libname.ixlibrary $libname.a'
  8960. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8961. 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'
  8962. ;;
  8963. esac
  8964. ;;
  8965. beos*)
  8966. library_names_spec='${libname}${shared_ext}'
  8967. dynamic_linker="$host_os ld.so"
  8968. shlibpath_var=LIBRARY_PATH
  8969. ;;
  8970. bsdi[45]*)
  8971. version_type=linux # correct to gnu/linux during the next big refactor
  8972. need_version=no
  8973. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8974. soname_spec='${libname}${release}${shared_ext}$major'
  8975. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8976. shlibpath_var=LD_LIBRARY_PATH
  8977. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8978. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8979. # the default ld.so.conf also contains /usr/contrib/lib and
  8980. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8981. # libtool to hard-code these into programs
  8982. ;;
  8983. cygwin* | mingw* | pw32* | cegcc*)
  8984. version_type=windows
  8985. shrext_cmds=".dll"
  8986. need_version=no
  8987. need_lib_prefix=no
  8988. case $GCC,$cc_basename in
  8989. yes,*)
  8990. # gcc
  8991. library_names_spec='$libname.dll.a'
  8992. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8993. postinstall_cmds='base_file=`basename \${file}`~
  8994. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8995. dldir=$destdir/`dirname \$dlpath`~
  8996. test -d \$dldir || mkdir -p \$dldir~
  8997. $install_prog $dir/$dlname \$dldir/$dlname~
  8998. chmod a+x \$dldir/$dlname~
  8999. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9000. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9001. fi'
  9002. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9003. dlpath=$dir/\$dldll~
  9004. $RM \$dlpath'
  9005. shlibpath_overrides_runpath=yes
  9006. case $host_os in
  9007. cygwin*)
  9008. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9009. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9010. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9011. ;;
  9012. mingw* | cegcc*)
  9013. # MinGW DLLs use traditional 'lib' prefix
  9014. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9015. ;;
  9016. pw32*)
  9017. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9018. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9019. ;;
  9020. esac
  9021. dynamic_linker='Win32 ld.exe'
  9022. ;;
  9023. *,cl*)
  9024. # Native MSVC
  9025. libname_spec='$name'
  9026. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9027. library_names_spec='${libname}.dll.lib'
  9028. case $build_os in
  9029. mingw*)
  9030. sys_lib_search_path_spec=
  9031. lt_save_ifs=$IFS
  9032. IFS=';'
  9033. for lt_path in $LIB
  9034. do
  9035. IFS=$lt_save_ifs
  9036. # Let DOS variable expansion print the short 8.3 style file name.
  9037. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9038. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9039. done
  9040. IFS=$lt_save_ifs
  9041. # Convert to MSYS style.
  9042. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9043. ;;
  9044. cygwin*)
  9045. # Convert to unix form, then to dos form, then back to unix form
  9046. # but this time dos style (no spaces!) so that the unix form looks
  9047. # like /cygdrive/c/PROGRA~1:/cygdr...
  9048. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9049. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9050. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9051. ;;
  9052. *)
  9053. sys_lib_search_path_spec="$LIB"
  9054. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9055. # It is most probably a Windows format PATH.
  9056. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9057. else
  9058. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9059. fi
  9060. # FIXME: find the short name or the path components, as spaces are
  9061. # common. (e.g. "Program Files" -> "PROGRA~1")
  9062. ;;
  9063. esac
  9064. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9065. postinstall_cmds='base_file=`basename \${file}`~
  9066. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9067. dldir=$destdir/`dirname \$dlpath`~
  9068. test -d \$dldir || mkdir -p \$dldir~
  9069. $install_prog $dir/$dlname \$dldir/$dlname'
  9070. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9071. dlpath=$dir/\$dldll~
  9072. $RM \$dlpath'
  9073. shlibpath_overrides_runpath=yes
  9074. dynamic_linker='Win32 link.exe'
  9075. ;;
  9076. *)
  9077. # Assume MSVC wrapper
  9078. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9079. dynamic_linker='Win32 ld.exe'
  9080. ;;
  9081. esac
  9082. # FIXME: first we should search . and the directory the executable is in
  9083. shlibpath_var=PATH
  9084. ;;
  9085. darwin* | rhapsody*)
  9086. dynamic_linker="$host_os dyld"
  9087. version_type=darwin
  9088. need_lib_prefix=no
  9089. need_version=no
  9090. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9091. soname_spec='${libname}${release}${major}$shared_ext'
  9092. shlibpath_overrides_runpath=yes
  9093. shlibpath_var=DYLD_LIBRARY_PATH
  9094. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9095. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9096. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9097. ;;
  9098. dgux*)
  9099. version_type=linux # correct to gnu/linux during the next big refactor
  9100. need_lib_prefix=no
  9101. need_version=no
  9102. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9103. soname_spec='${libname}${release}${shared_ext}$major'
  9104. shlibpath_var=LD_LIBRARY_PATH
  9105. ;;
  9106. freebsd* | dragonfly*)
  9107. # DragonFly does not have aout. When/if they implement a new
  9108. # versioning mechanism, adjust this.
  9109. if test -x /usr/bin/objformat; then
  9110. objformat=`/usr/bin/objformat`
  9111. else
  9112. case $host_os in
  9113. freebsd[23].*) objformat=aout ;;
  9114. *) objformat=elf ;;
  9115. esac
  9116. fi
  9117. version_type=freebsd-$objformat
  9118. case $version_type in
  9119. freebsd-elf*)
  9120. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9121. need_version=no
  9122. need_lib_prefix=no
  9123. ;;
  9124. freebsd-*)
  9125. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9126. need_version=yes
  9127. ;;
  9128. esac
  9129. shlibpath_var=LD_LIBRARY_PATH
  9130. case $host_os in
  9131. freebsd2.*)
  9132. shlibpath_overrides_runpath=yes
  9133. ;;
  9134. freebsd3.[01]* | freebsdelf3.[01]*)
  9135. shlibpath_overrides_runpath=yes
  9136. hardcode_into_libs=yes
  9137. ;;
  9138. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9139. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9140. shlibpath_overrides_runpath=no
  9141. hardcode_into_libs=yes
  9142. ;;
  9143. *) # from 4.6 on, and DragonFly
  9144. shlibpath_overrides_runpath=yes
  9145. hardcode_into_libs=yes
  9146. ;;
  9147. esac
  9148. ;;
  9149. gnu*)
  9150. version_type=linux # correct to gnu/linux during the next big refactor
  9151. need_lib_prefix=no
  9152. need_version=no
  9153. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9154. soname_spec='${libname}${release}${shared_ext}$major'
  9155. shlibpath_var=LD_LIBRARY_PATH
  9156. shlibpath_overrides_runpath=no
  9157. hardcode_into_libs=yes
  9158. ;;
  9159. haiku*)
  9160. version_type=linux # correct to gnu/linux during the next big refactor
  9161. need_lib_prefix=no
  9162. need_version=no
  9163. dynamic_linker="$host_os runtime_loader"
  9164. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9165. soname_spec='${libname}${release}${shared_ext}$major'
  9166. shlibpath_var=LIBRARY_PATH
  9167. shlibpath_overrides_runpath=yes
  9168. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9169. hardcode_into_libs=yes
  9170. ;;
  9171. hpux9* | hpux10* | hpux11*)
  9172. # Give a soname corresponding to the major version so that dld.sl refuses to
  9173. # link against other versions.
  9174. version_type=sunos
  9175. need_lib_prefix=no
  9176. need_version=no
  9177. case $host_cpu in
  9178. ia64*)
  9179. shrext_cmds='.so'
  9180. hardcode_into_libs=yes
  9181. dynamic_linker="$host_os dld.so"
  9182. shlibpath_var=LD_LIBRARY_PATH
  9183. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9184. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9185. soname_spec='${libname}${release}${shared_ext}$major'
  9186. if test "X$HPUX_IA64_MODE" = X32; then
  9187. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9188. else
  9189. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9190. fi
  9191. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9192. ;;
  9193. hppa*64*)
  9194. shrext_cmds='.sl'
  9195. hardcode_into_libs=yes
  9196. dynamic_linker="$host_os dld.sl"
  9197. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9198. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9199. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9200. soname_spec='${libname}${release}${shared_ext}$major'
  9201. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9202. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9203. ;;
  9204. *)
  9205. shrext_cmds='.sl'
  9206. dynamic_linker="$host_os dld.sl"
  9207. shlibpath_var=SHLIB_PATH
  9208. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9209. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9210. soname_spec='${libname}${release}${shared_ext}$major'
  9211. ;;
  9212. esac
  9213. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9214. postinstall_cmds='chmod 555 $lib'
  9215. # or fails outright, so override atomically:
  9216. install_override_mode=555
  9217. ;;
  9218. interix[3-9]*)
  9219. version_type=linux # correct to gnu/linux during the next big refactor
  9220. need_lib_prefix=no
  9221. need_version=no
  9222. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9223. soname_spec='${libname}${release}${shared_ext}$major'
  9224. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9225. shlibpath_var=LD_LIBRARY_PATH
  9226. shlibpath_overrides_runpath=no
  9227. hardcode_into_libs=yes
  9228. ;;
  9229. irix5* | irix6* | nonstopux*)
  9230. case $host_os in
  9231. nonstopux*) version_type=nonstopux ;;
  9232. *)
  9233. if test "$lt_cv_prog_gnu_ld" = yes; then
  9234. version_type=linux # correct to gnu/linux during the next big refactor
  9235. else
  9236. version_type=irix
  9237. fi ;;
  9238. esac
  9239. need_lib_prefix=no
  9240. need_version=no
  9241. soname_spec='${libname}${release}${shared_ext}$major'
  9242. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9243. case $host_os in
  9244. irix5* | nonstopux*)
  9245. libsuff= shlibsuff=
  9246. ;;
  9247. *)
  9248. case $LD in # libtool.m4 will add one of these switches to LD
  9249. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9250. libsuff= shlibsuff= libmagic=32-bit;;
  9251. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9252. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9253. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9254. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9255. *) libsuff= shlibsuff= libmagic=never-match;;
  9256. esac
  9257. ;;
  9258. esac
  9259. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9260. shlibpath_overrides_runpath=no
  9261. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9262. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9263. hardcode_into_libs=yes
  9264. ;;
  9265. # No shared lib support for Linux oldld, aout, or coff.
  9266. linux*oldld* | linux*aout* | linux*coff*)
  9267. dynamic_linker=no
  9268. ;;
  9269. # This must be glibc/ELF.
  9270. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9271. version_type=linux # correct to gnu/linux during the next big refactor
  9272. need_lib_prefix=no
  9273. need_version=no
  9274. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9275. soname_spec='${libname}${release}${shared_ext}$major'
  9276. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9277. shlibpath_var=LD_LIBRARY_PATH
  9278. shlibpath_overrides_runpath=no
  9279. # Some binutils ld are patched to set DT_RUNPATH
  9280. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9281. $as_echo_n "(cached) " >&6
  9282. else
  9283. lt_cv_shlibpath_overrides_runpath=no
  9284. save_LDFLAGS=$LDFLAGS
  9285. save_libdir=$libdir
  9286. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9287. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9289. /* end confdefs.h. */
  9290. int
  9291. main ()
  9292. {
  9293. ;
  9294. return 0;
  9295. }
  9296. _ACEOF
  9297. if ac_fn_c_try_link "$LINENO"; then :
  9298. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9299. lt_cv_shlibpath_overrides_runpath=yes
  9300. fi
  9301. fi
  9302. rm -f core conftest.err conftest.$ac_objext \
  9303. conftest$ac_exeext conftest.$ac_ext
  9304. LDFLAGS=$save_LDFLAGS
  9305. libdir=$save_libdir
  9306. fi
  9307. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9308. # This implies no fast_install, which is unacceptable.
  9309. # Some rework will be needed to allow for fast_install
  9310. # before this can be enabled.
  9311. hardcode_into_libs=yes
  9312. # Add ABI-specific directories to the system library path.
  9313. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9314. # Append ld.so.conf contents to the search path
  9315. if test -f /etc/ld.so.conf; then
  9316. 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' ' '`
  9317. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9318. fi
  9319. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9320. # powerpc, because MkLinux only supported shared libraries with the
  9321. # GNU dynamic linker. Since this was broken with cross compilers,
  9322. # most powerpc-linux boxes support dynamic linking these days and
  9323. # people can always --disable-shared, the test was removed, and we
  9324. # assume the GNU/Linux dynamic linker is in use.
  9325. dynamic_linker='GNU/Linux ld.so'
  9326. ;;
  9327. netbsd*)
  9328. version_type=sunos
  9329. need_lib_prefix=no
  9330. need_version=no
  9331. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9332. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9333. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9334. dynamic_linker='NetBSD (a.out) ld.so'
  9335. else
  9336. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9337. soname_spec='${libname}${release}${shared_ext}$major'
  9338. dynamic_linker='NetBSD ld.elf_so'
  9339. fi
  9340. shlibpath_var=LD_LIBRARY_PATH
  9341. shlibpath_overrides_runpath=yes
  9342. hardcode_into_libs=yes
  9343. ;;
  9344. newsos6)
  9345. version_type=linux # correct to gnu/linux during the next big refactor
  9346. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9347. shlibpath_var=LD_LIBRARY_PATH
  9348. shlibpath_overrides_runpath=yes
  9349. ;;
  9350. *nto* | *qnx*)
  9351. version_type=qnx
  9352. need_lib_prefix=no
  9353. need_version=no
  9354. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9355. soname_spec='${libname}${release}${shared_ext}$major'
  9356. shlibpath_var=LD_LIBRARY_PATH
  9357. shlibpath_overrides_runpath=no
  9358. hardcode_into_libs=yes
  9359. dynamic_linker='ldqnx.so'
  9360. ;;
  9361. openbsd*)
  9362. version_type=sunos
  9363. sys_lib_dlsearch_path_spec="/usr/lib"
  9364. need_lib_prefix=no
  9365. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9366. case $host_os in
  9367. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9368. *) need_version=no ;;
  9369. esac
  9370. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9371. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9372. shlibpath_var=LD_LIBRARY_PATH
  9373. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9374. case $host_os in
  9375. openbsd2.[89] | openbsd2.[89].*)
  9376. shlibpath_overrides_runpath=no
  9377. ;;
  9378. *)
  9379. shlibpath_overrides_runpath=yes
  9380. ;;
  9381. esac
  9382. else
  9383. shlibpath_overrides_runpath=yes
  9384. fi
  9385. ;;
  9386. os2*)
  9387. libname_spec='$name'
  9388. shrext_cmds=".dll"
  9389. need_lib_prefix=no
  9390. library_names_spec='$libname${shared_ext} $libname.a'
  9391. dynamic_linker='OS/2 ld.exe'
  9392. shlibpath_var=LIBPATH
  9393. ;;
  9394. osf3* | osf4* | osf5*)
  9395. version_type=osf
  9396. need_lib_prefix=no
  9397. need_version=no
  9398. soname_spec='${libname}${release}${shared_ext}$major'
  9399. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9400. shlibpath_var=LD_LIBRARY_PATH
  9401. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9402. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9403. ;;
  9404. rdos*)
  9405. dynamic_linker=no
  9406. ;;
  9407. solaris*)
  9408. version_type=linux # correct to gnu/linux during the next big refactor
  9409. need_lib_prefix=no
  9410. need_version=no
  9411. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9412. soname_spec='${libname}${release}${shared_ext}$major'
  9413. shlibpath_var=LD_LIBRARY_PATH
  9414. shlibpath_overrides_runpath=yes
  9415. hardcode_into_libs=yes
  9416. # ldd complains unless libraries are executable
  9417. postinstall_cmds='chmod +x $lib'
  9418. ;;
  9419. sunos4*)
  9420. version_type=sunos
  9421. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9422. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9423. shlibpath_var=LD_LIBRARY_PATH
  9424. shlibpath_overrides_runpath=yes
  9425. if test "$with_gnu_ld" = yes; then
  9426. need_lib_prefix=no
  9427. fi
  9428. need_version=yes
  9429. ;;
  9430. sysv4 | sysv4.3*)
  9431. version_type=linux # correct to gnu/linux during the next big refactor
  9432. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9433. soname_spec='${libname}${release}${shared_ext}$major'
  9434. shlibpath_var=LD_LIBRARY_PATH
  9435. case $host_vendor in
  9436. sni)
  9437. shlibpath_overrides_runpath=no
  9438. need_lib_prefix=no
  9439. runpath_var=LD_RUN_PATH
  9440. ;;
  9441. siemens)
  9442. need_lib_prefix=no
  9443. ;;
  9444. motorola)
  9445. need_lib_prefix=no
  9446. need_version=no
  9447. shlibpath_overrides_runpath=no
  9448. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9449. ;;
  9450. esac
  9451. ;;
  9452. sysv4*MP*)
  9453. if test -d /usr/nec ;then
  9454. version_type=linux # correct to gnu/linux during the next big refactor
  9455. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9456. soname_spec='$libname${shared_ext}.$major'
  9457. shlibpath_var=LD_LIBRARY_PATH
  9458. fi
  9459. ;;
  9460. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9461. version_type=freebsd-elf
  9462. need_lib_prefix=no
  9463. need_version=no
  9464. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9465. soname_spec='${libname}${release}${shared_ext}$major'
  9466. shlibpath_var=LD_LIBRARY_PATH
  9467. shlibpath_overrides_runpath=yes
  9468. hardcode_into_libs=yes
  9469. if test "$with_gnu_ld" = yes; then
  9470. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9471. else
  9472. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9473. case $host_os in
  9474. sco3.2v5*)
  9475. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9476. ;;
  9477. esac
  9478. fi
  9479. sys_lib_dlsearch_path_spec='/usr/lib'
  9480. ;;
  9481. tpf*)
  9482. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9483. version_type=linux # correct to gnu/linux during the next big refactor
  9484. need_lib_prefix=no
  9485. need_version=no
  9486. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9487. shlibpath_var=LD_LIBRARY_PATH
  9488. shlibpath_overrides_runpath=no
  9489. hardcode_into_libs=yes
  9490. ;;
  9491. uts4*)
  9492. version_type=linux # correct to gnu/linux during the next big refactor
  9493. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9494. soname_spec='${libname}${release}${shared_ext}$major'
  9495. shlibpath_var=LD_LIBRARY_PATH
  9496. ;;
  9497. *)
  9498. dynamic_linker=no
  9499. ;;
  9500. esac
  9501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9502. $as_echo "$dynamic_linker" >&6; }
  9503. test "$dynamic_linker" = no && can_build_shared=no
  9504. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9505. if test "$GCC" = yes; then
  9506. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9507. fi
  9508. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9509. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9510. fi
  9511. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9512. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9513. fi
  9514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9515. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9516. hardcode_action=
  9517. if test -n "$hardcode_libdir_flag_spec" ||
  9518. test -n "$runpath_var" ||
  9519. test "X$hardcode_automatic" = "Xyes" ; then
  9520. # We can hardcode non-existent directories.
  9521. if test "$hardcode_direct" != no &&
  9522. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9523. # have to relink, otherwise we might link with an installed library
  9524. # when we should be linking with a yet-to-be-installed one
  9525. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9526. test "$hardcode_minus_L" != no; then
  9527. # Linking always hardcodes the temporary library directory.
  9528. hardcode_action=relink
  9529. else
  9530. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9531. hardcode_action=immediate
  9532. fi
  9533. else
  9534. # We cannot hardcode anything, or else we can only hardcode existing
  9535. # directories.
  9536. hardcode_action=unsupported
  9537. fi
  9538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9539. $as_echo "$hardcode_action" >&6; }
  9540. if test "$hardcode_action" = relink ||
  9541. test "$inherit_rpath" = yes; then
  9542. # Fast installation is not supported
  9543. enable_fast_install=no
  9544. elif test "$shlibpath_overrides_runpath" = yes ||
  9545. test "$enable_shared" = no; then
  9546. # Fast installation is not necessary
  9547. enable_fast_install=needless
  9548. fi
  9549. if test "x$enable_dlopen" != xyes; then
  9550. enable_dlopen=unknown
  9551. enable_dlopen_self=unknown
  9552. enable_dlopen_self_static=unknown
  9553. else
  9554. lt_cv_dlopen=no
  9555. lt_cv_dlopen_libs=
  9556. case $host_os in
  9557. beos*)
  9558. lt_cv_dlopen="load_add_on"
  9559. lt_cv_dlopen_libs=
  9560. lt_cv_dlopen_self=yes
  9561. ;;
  9562. mingw* | pw32* | cegcc*)
  9563. lt_cv_dlopen="LoadLibrary"
  9564. lt_cv_dlopen_libs=
  9565. ;;
  9566. cygwin*)
  9567. lt_cv_dlopen="dlopen"
  9568. lt_cv_dlopen_libs=
  9569. ;;
  9570. darwin*)
  9571. # if libdl is installed we need to link against it
  9572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9573. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9574. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9575. $as_echo_n "(cached) " >&6
  9576. else
  9577. ac_check_lib_save_LIBS=$LIBS
  9578. LIBS="-ldl $LIBS"
  9579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9580. /* end confdefs.h. */
  9581. /* Override any GCC internal prototype to avoid an error.
  9582. Use char because int might match the return type of a GCC
  9583. builtin and then its argument prototype would still apply. */
  9584. #ifdef __cplusplus
  9585. extern "C"
  9586. #endif
  9587. char dlopen ();
  9588. int
  9589. main ()
  9590. {
  9591. return dlopen ();
  9592. ;
  9593. return 0;
  9594. }
  9595. _ACEOF
  9596. if ac_fn_c_try_link "$LINENO"; then :
  9597. ac_cv_lib_dl_dlopen=yes
  9598. else
  9599. ac_cv_lib_dl_dlopen=no
  9600. fi
  9601. rm -f core conftest.err conftest.$ac_objext \
  9602. conftest$ac_exeext conftest.$ac_ext
  9603. LIBS=$ac_check_lib_save_LIBS
  9604. fi
  9605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9606. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9607. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9608. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9609. else
  9610. lt_cv_dlopen="dyld"
  9611. lt_cv_dlopen_libs=
  9612. lt_cv_dlopen_self=yes
  9613. fi
  9614. ;;
  9615. *)
  9616. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9617. if test "x$ac_cv_func_shl_load" = xyes; then :
  9618. lt_cv_dlopen="shl_load"
  9619. else
  9620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9621. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9622. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9623. $as_echo_n "(cached) " >&6
  9624. else
  9625. ac_check_lib_save_LIBS=$LIBS
  9626. LIBS="-ldld $LIBS"
  9627. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9628. /* end confdefs.h. */
  9629. /* Override any GCC internal prototype to avoid an error.
  9630. Use char because int might match the return type of a GCC
  9631. builtin and then its argument prototype would still apply. */
  9632. #ifdef __cplusplus
  9633. extern "C"
  9634. #endif
  9635. char shl_load ();
  9636. int
  9637. main ()
  9638. {
  9639. return shl_load ();
  9640. ;
  9641. return 0;
  9642. }
  9643. _ACEOF
  9644. if ac_fn_c_try_link "$LINENO"; then :
  9645. ac_cv_lib_dld_shl_load=yes
  9646. else
  9647. ac_cv_lib_dld_shl_load=no
  9648. fi
  9649. rm -f core conftest.err conftest.$ac_objext \
  9650. conftest$ac_exeext conftest.$ac_ext
  9651. LIBS=$ac_check_lib_save_LIBS
  9652. fi
  9653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9654. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9655. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9656. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9657. else
  9658. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9659. if test "x$ac_cv_func_dlopen" = xyes; then :
  9660. lt_cv_dlopen="dlopen"
  9661. else
  9662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9663. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9664. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9665. $as_echo_n "(cached) " >&6
  9666. else
  9667. ac_check_lib_save_LIBS=$LIBS
  9668. LIBS="-ldl $LIBS"
  9669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9670. /* end confdefs.h. */
  9671. /* Override any GCC internal prototype to avoid an error.
  9672. Use char because int might match the return type of a GCC
  9673. builtin and then its argument prototype would still apply. */
  9674. #ifdef __cplusplus
  9675. extern "C"
  9676. #endif
  9677. char dlopen ();
  9678. int
  9679. main ()
  9680. {
  9681. return dlopen ();
  9682. ;
  9683. return 0;
  9684. }
  9685. _ACEOF
  9686. if ac_fn_c_try_link "$LINENO"; then :
  9687. ac_cv_lib_dl_dlopen=yes
  9688. else
  9689. ac_cv_lib_dl_dlopen=no
  9690. fi
  9691. rm -f core conftest.err conftest.$ac_objext \
  9692. conftest$ac_exeext conftest.$ac_ext
  9693. LIBS=$ac_check_lib_save_LIBS
  9694. fi
  9695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9696. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9697. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9698. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9699. else
  9700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9701. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9702. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9703. $as_echo_n "(cached) " >&6
  9704. else
  9705. ac_check_lib_save_LIBS=$LIBS
  9706. LIBS="-lsvld $LIBS"
  9707. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9708. /* end confdefs.h. */
  9709. /* Override any GCC internal prototype to avoid an error.
  9710. Use char because int might match the return type of a GCC
  9711. builtin and then its argument prototype would still apply. */
  9712. #ifdef __cplusplus
  9713. extern "C"
  9714. #endif
  9715. char dlopen ();
  9716. int
  9717. main ()
  9718. {
  9719. return dlopen ();
  9720. ;
  9721. return 0;
  9722. }
  9723. _ACEOF
  9724. if ac_fn_c_try_link "$LINENO"; then :
  9725. ac_cv_lib_svld_dlopen=yes
  9726. else
  9727. ac_cv_lib_svld_dlopen=no
  9728. fi
  9729. rm -f core conftest.err conftest.$ac_objext \
  9730. conftest$ac_exeext conftest.$ac_ext
  9731. LIBS=$ac_check_lib_save_LIBS
  9732. fi
  9733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9734. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9735. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9736. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9737. else
  9738. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9739. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9740. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9741. $as_echo_n "(cached) " >&6
  9742. else
  9743. ac_check_lib_save_LIBS=$LIBS
  9744. LIBS="-ldld $LIBS"
  9745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9746. /* end confdefs.h. */
  9747. /* Override any GCC internal prototype to avoid an error.
  9748. Use char because int might match the return type of a GCC
  9749. builtin and then its argument prototype would still apply. */
  9750. #ifdef __cplusplus
  9751. extern "C"
  9752. #endif
  9753. char dld_link ();
  9754. int
  9755. main ()
  9756. {
  9757. return dld_link ();
  9758. ;
  9759. return 0;
  9760. }
  9761. _ACEOF
  9762. if ac_fn_c_try_link "$LINENO"; then :
  9763. ac_cv_lib_dld_dld_link=yes
  9764. else
  9765. ac_cv_lib_dld_dld_link=no
  9766. fi
  9767. rm -f core conftest.err conftest.$ac_objext \
  9768. conftest$ac_exeext conftest.$ac_ext
  9769. LIBS=$ac_check_lib_save_LIBS
  9770. fi
  9771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9772. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9773. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9774. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9775. fi
  9776. fi
  9777. fi
  9778. fi
  9779. fi
  9780. fi
  9781. ;;
  9782. esac
  9783. if test "x$lt_cv_dlopen" != xno; then
  9784. enable_dlopen=yes
  9785. else
  9786. enable_dlopen=no
  9787. fi
  9788. case $lt_cv_dlopen in
  9789. dlopen)
  9790. save_CPPFLAGS="$CPPFLAGS"
  9791. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9792. save_LDFLAGS="$LDFLAGS"
  9793. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9794. save_LIBS="$LIBS"
  9795. LIBS="$lt_cv_dlopen_libs $LIBS"
  9796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9797. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9798. if ${lt_cv_dlopen_self+:} false; then :
  9799. $as_echo_n "(cached) " >&6
  9800. else
  9801. if test "$cross_compiling" = yes; then :
  9802. lt_cv_dlopen_self=cross
  9803. else
  9804. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9805. lt_status=$lt_dlunknown
  9806. cat > conftest.$ac_ext <<_LT_EOF
  9807. #line $LINENO "configure"
  9808. #include "confdefs.h"
  9809. #if HAVE_DLFCN_H
  9810. #include <dlfcn.h>
  9811. #endif
  9812. #include <stdio.h>
  9813. #ifdef RTLD_GLOBAL
  9814. # define LT_DLGLOBAL RTLD_GLOBAL
  9815. #else
  9816. # ifdef DL_GLOBAL
  9817. # define LT_DLGLOBAL DL_GLOBAL
  9818. # else
  9819. # define LT_DLGLOBAL 0
  9820. # endif
  9821. #endif
  9822. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9823. find out it does not work in some platform. */
  9824. #ifndef LT_DLLAZY_OR_NOW
  9825. # ifdef RTLD_LAZY
  9826. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9827. # else
  9828. # ifdef DL_LAZY
  9829. # define LT_DLLAZY_OR_NOW DL_LAZY
  9830. # else
  9831. # ifdef RTLD_NOW
  9832. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9833. # else
  9834. # ifdef DL_NOW
  9835. # define LT_DLLAZY_OR_NOW DL_NOW
  9836. # else
  9837. # define LT_DLLAZY_OR_NOW 0
  9838. # endif
  9839. # endif
  9840. # endif
  9841. # endif
  9842. #endif
  9843. /* When -fvisbility=hidden is used, assume the code has been annotated
  9844. correspondingly for the symbols needed. */
  9845. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9846. int fnord () __attribute__((visibility("default")));
  9847. #endif
  9848. int fnord () { return 42; }
  9849. int main ()
  9850. {
  9851. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9852. int status = $lt_dlunknown;
  9853. if (self)
  9854. {
  9855. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9856. else
  9857. {
  9858. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9859. else puts (dlerror ());
  9860. }
  9861. /* dlclose (self); */
  9862. }
  9863. else
  9864. puts (dlerror ());
  9865. return status;
  9866. }
  9867. _LT_EOF
  9868. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9869. (eval $ac_link) 2>&5
  9870. ac_status=$?
  9871. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9872. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9873. (./conftest; exit; ) >&5 2>/dev/null
  9874. lt_status=$?
  9875. case x$lt_status in
  9876. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9877. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9878. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9879. esac
  9880. else :
  9881. # compilation failed
  9882. lt_cv_dlopen_self=no
  9883. fi
  9884. fi
  9885. rm -fr conftest*
  9886. fi
  9887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9888. $as_echo "$lt_cv_dlopen_self" >&6; }
  9889. if test "x$lt_cv_dlopen_self" = xyes; then
  9890. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9892. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9893. if ${lt_cv_dlopen_self_static+:} false; then :
  9894. $as_echo_n "(cached) " >&6
  9895. else
  9896. if test "$cross_compiling" = yes; then :
  9897. lt_cv_dlopen_self_static=cross
  9898. else
  9899. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9900. lt_status=$lt_dlunknown
  9901. cat > conftest.$ac_ext <<_LT_EOF
  9902. #line $LINENO "configure"
  9903. #include "confdefs.h"
  9904. #if HAVE_DLFCN_H
  9905. #include <dlfcn.h>
  9906. #endif
  9907. #include <stdio.h>
  9908. #ifdef RTLD_GLOBAL
  9909. # define LT_DLGLOBAL RTLD_GLOBAL
  9910. #else
  9911. # ifdef DL_GLOBAL
  9912. # define LT_DLGLOBAL DL_GLOBAL
  9913. # else
  9914. # define LT_DLGLOBAL 0
  9915. # endif
  9916. #endif
  9917. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9918. find out it does not work in some platform. */
  9919. #ifndef LT_DLLAZY_OR_NOW
  9920. # ifdef RTLD_LAZY
  9921. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9922. # else
  9923. # ifdef DL_LAZY
  9924. # define LT_DLLAZY_OR_NOW DL_LAZY
  9925. # else
  9926. # ifdef RTLD_NOW
  9927. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9928. # else
  9929. # ifdef DL_NOW
  9930. # define LT_DLLAZY_OR_NOW DL_NOW
  9931. # else
  9932. # define LT_DLLAZY_OR_NOW 0
  9933. # endif
  9934. # endif
  9935. # endif
  9936. # endif
  9937. #endif
  9938. /* When -fvisbility=hidden is used, assume the code has been annotated
  9939. correspondingly for the symbols needed. */
  9940. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9941. int fnord () __attribute__((visibility("default")));
  9942. #endif
  9943. int fnord () { return 42; }
  9944. int main ()
  9945. {
  9946. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9947. int status = $lt_dlunknown;
  9948. if (self)
  9949. {
  9950. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9951. else
  9952. {
  9953. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9954. else puts (dlerror ());
  9955. }
  9956. /* dlclose (self); */
  9957. }
  9958. else
  9959. puts (dlerror ());
  9960. return status;
  9961. }
  9962. _LT_EOF
  9963. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9964. (eval $ac_link) 2>&5
  9965. ac_status=$?
  9966. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9967. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9968. (./conftest; exit; ) >&5 2>/dev/null
  9969. lt_status=$?
  9970. case x$lt_status in
  9971. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9972. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9973. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9974. esac
  9975. else :
  9976. # compilation failed
  9977. lt_cv_dlopen_self_static=no
  9978. fi
  9979. fi
  9980. rm -fr conftest*
  9981. fi
  9982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9983. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9984. fi
  9985. CPPFLAGS="$save_CPPFLAGS"
  9986. LDFLAGS="$save_LDFLAGS"
  9987. LIBS="$save_LIBS"
  9988. ;;
  9989. esac
  9990. case $lt_cv_dlopen_self in
  9991. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9992. *) enable_dlopen_self=unknown ;;
  9993. esac
  9994. case $lt_cv_dlopen_self_static in
  9995. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9996. *) enable_dlopen_self_static=unknown ;;
  9997. esac
  9998. fi
  9999. striplib=
  10000. old_striplib=
  10001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10002. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10003. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10004. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10005. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10006. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10007. $as_echo "yes" >&6; }
  10008. else
  10009. # FIXME - insert some real tests, host_os isn't really good enough
  10010. case $host_os in
  10011. darwin*)
  10012. if test -n "$STRIP" ; then
  10013. striplib="$STRIP -x"
  10014. old_striplib="$STRIP -S"
  10015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10016. $as_echo "yes" >&6; }
  10017. else
  10018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10019. $as_echo "no" >&6; }
  10020. fi
  10021. ;;
  10022. *)
  10023. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10024. $as_echo "no" >&6; }
  10025. ;;
  10026. esac
  10027. fi
  10028. # Report which library types will actually be built
  10029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10030. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10032. $as_echo "$can_build_shared" >&6; }
  10033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10034. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10035. test "$can_build_shared" = "no" && enable_shared=no
  10036. # On AIX, shared libraries and static libraries use the same namespace, and
  10037. # are all built from PIC.
  10038. case $host_os in
  10039. aix3*)
  10040. test "$enable_shared" = yes && enable_static=no
  10041. if test -n "$RANLIB"; then
  10042. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10043. postinstall_cmds='$RANLIB $lib'
  10044. fi
  10045. ;;
  10046. aix[4-9]*)
  10047. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10048. test "$enable_shared" = yes && enable_static=no
  10049. fi
  10050. ;;
  10051. esac
  10052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10053. $as_echo "$enable_shared" >&6; }
  10054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10055. $as_echo_n "checking whether to build static libraries... " >&6; }
  10056. # Make sure either enable_shared or enable_static is yes.
  10057. test "$enable_shared" = yes || enable_static=yes
  10058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10059. $as_echo "$enable_static" >&6; }
  10060. fi
  10061. ac_ext=c
  10062. ac_cpp='$CPP $CPPFLAGS'
  10063. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10064. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10065. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10066. CC="$lt_save_CC"
  10067. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10068. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10069. (test "X$CXX" != "Xg++"))) ; then
  10070. ac_ext=cpp
  10071. ac_cpp='$CXXCPP $CPPFLAGS'
  10072. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10073. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10074. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10076. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10077. if test -z "$CXXCPP"; then
  10078. if ${ac_cv_prog_CXXCPP+:} false; then :
  10079. $as_echo_n "(cached) " >&6
  10080. else
  10081. # Double quotes because CXXCPP needs to be expanded
  10082. for CXXCPP in "$CXX -E" "/lib/cpp"
  10083. do
  10084. ac_preproc_ok=false
  10085. for ac_cxx_preproc_warn_flag in '' yes
  10086. do
  10087. # Use a header file that comes with gcc, so configuring glibc
  10088. # with a fresh cross-compiler works.
  10089. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10090. # <limits.h> exists even on freestanding compilers.
  10091. # On the NeXT, cc -E runs the code through the compiler's parser,
  10092. # not just through cpp. "Syntax error" is here to catch this case.
  10093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10094. /* end confdefs.h. */
  10095. #ifdef __STDC__
  10096. # include <limits.h>
  10097. #else
  10098. # include <assert.h>
  10099. #endif
  10100. Syntax error
  10101. _ACEOF
  10102. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10103. else
  10104. # Broken: fails on valid input.
  10105. continue
  10106. fi
  10107. rm -f conftest.err conftest.i conftest.$ac_ext
  10108. # OK, works on sane cases. Now check whether nonexistent headers
  10109. # can be detected and how.
  10110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10111. /* end confdefs.h. */
  10112. #include <ac_nonexistent.h>
  10113. _ACEOF
  10114. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10115. # Broken: success on invalid input.
  10116. continue
  10117. else
  10118. # Passes both tests.
  10119. ac_preproc_ok=:
  10120. break
  10121. fi
  10122. rm -f conftest.err conftest.i conftest.$ac_ext
  10123. done
  10124. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10125. rm -f conftest.i conftest.err conftest.$ac_ext
  10126. if $ac_preproc_ok; then :
  10127. break
  10128. fi
  10129. done
  10130. ac_cv_prog_CXXCPP=$CXXCPP
  10131. fi
  10132. CXXCPP=$ac_cv_prog_CXXCPP
  10133. else
  10134. ac_cv_prog_CXXCPP=$CXXCPP
  10135. fi
  10136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10137. $as_echo "$CXXCPP" >&6; }
  10138. ac_preproc_ok=false
  10139. for ac_cxx_preproc_warn_flag in '' yes
  10140. do
  10141. # Use a header file that comes with gcc, so configuring glibc
  10142. # with a fresh cross-compiler works.
  10143. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10144. # <limits.h> exists even on freestanding compilers.
  10145. # On the NeXT, cc -E runs the code through the compiler's parser,
  10146. # not just through cpp. "Syntax error" is here to catch this case.
  10147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10148. /* end confdefs.h. */
  10149. #ifdef __STDC__
  10150. # include <limits.h>
  10151. #else
  10152. # include <assert.h>
  10153. #endif
  10154. Syntax error
  10155. _ACEOF
  10156. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10157. else
  10158. # Broken: fails on valid input.
  10159. continue
  10160. fi
  10161. rm -f conftest.err conftest.i conftest.$ac_ext
  10162. # OK, works on sane cases. Now check whether nonexistent headers
  10163. # can be detected and how.
  10164. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10165. /* end confdefs.h. */
  10166. #include <ac_nonexistent.h>
  10167. _ACEOF
  10168. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10169. # Broken: success on invalid input.
  10170. continue
  10171. else
  10172. # Passes both tests.
  10173. ac_preproc_ok=:
  10174. break
  10175. fi
  10176. rm -f conftest.err conftest.i conftest.$ac_ext
  10177. done
  10178. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10179. rm -f conftest.i conftest.err conftest.$ac_ext
  10180. if $ac_preproc_ok; then :
  10181. else
  10182. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10183. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10184. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10185. See \`config.log' for more details" "$LINENO" 5; }
  10186. fi
  10187. ac_ext=c
  10188. ac_cpp='$CPP $CPPFLAGS'
  10189. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10190. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10191. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10192. else
  10193. _lt_caught_CXX_error=yes
  10194. fi
  10195. ac_ext=cpp
  10196. ac_cpp='$CXXCPP $CPPFLAGS'
  10197. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10198. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10199. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10200. archive_cmds_need_lc_CXX=no
  10201. allow_undefined_flag_CXX=
  10202. always_export_symbols_CXX=no
  10203. archive_expsym_cmds_CXX=
  10204. compiler_needs_object_CXX=no
  10205. export_dynamic_flag_spec_CXX=
  10206. hardcode_direct_CXX=no
  10207. hardcode_direct_absolute_CXX=no
  10208. hardcode_libdir_flag_spec_CXX=
  10209. hardcode_libdir_separator_CXX=
  10210. hardcode_minus_L_CXX=no
  10211. hardcode_shlibpath_var_CXX=unsupported
  10212. hardcode_automatic_CXX=no
  10213. inherit_rpath_CXX=no
  10214. module_cmds_CXX=
  10215. module_expsym_cmds_CXX=
  10216. link_all_deplibs_CXX=unknown
  10217. old_archive_cmds_CXX=$old_archive_cmds
  10218. reload_flag_CXX=$reload_flag
  10219. reload_cmds_CXX=$reload_cmds
  10220. no_undefined_flag_CXX=
  10221. whole_archive_flag_spec_CXX=
  10222. enable_shared_with_static_runtimes_CXX=no
  10223. # Source file extension for C++ test sources.
  10224. ac_ext=cpp
  10225. # Object file extension for compiled C++ test sources.
  10226. objext=o
  10227. objext_CXX=$objext
  10228. # No sense in running all these tests if we already determined that
  10229. # the CXX compiler isn't working. Some variables (like enable_shared)
  10230. # are currently assumed to apply to all compilers on this platform,
  10231. # and will be corrupted by setting them based on a non-working compiler.
  10232. if test "$_lt_caught_CXX_error" != yes; then
  10233. # Code to be used in simple compile tests
  10234. lt_simple_compile_test_code="int some_variable = 0;"
  10235. # Code to be used in simple link tests
  10236. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10237. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10238. # If no C compiler was specified, use CC.
  10239. LTCC=${LTCC-"$CC"}
  10240. # If no C compiler flags were specified, use CFLAGS.
  10241. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10242. # Allow CC to be a program name with arguments.
  10243. compiler=$CC
  10244. # save warnings/boilerplate of simple test code
  10245. ac_outfile=conftest.$ac_objext
  10246. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10247. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10248. _lt_compiler_boilerplate=`cat conftest.err`
  10249. $RM conftest*
  10250. ac_outfile=conftest.$ac_objext
  10251. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10252. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10253. _lt_linker_boilerplate=`cat conftest.err`
  10254. $RM -r conftest*
  10255. # Allow CC to be a program name with arguments.
  10256. lt_save_CC=$CC
  10257. lt_save_CFLAGS=$CFLAGS
  10258. lt_save_LD=$LD
  10259. lt_save_GCC=$GCC
  10260. GCC=$GXX
  10261. lt_save_with_gnu_ld=$with_gnu_ld
  10262. lt_save_path_LD=$lt_cv_path_LD
  10263. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10264. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10265. else
  10266. $as_unset lt_cv_prog_gnu_ld
  10267. fi
  10268. if test -n "${lt_cv_path_LDCXX+set}"; then
  10269. lt_cv_path_LD=$lt_cv_path_LDCXX
  10270. else
  10271. $as_unset lt_cv_path_LD
  10272. fi
  10273. test -z "${LDCXX+set}" || LD=$LDCXX
  10274. CC=${CXX-"c++"}
  10275. CFLAGS=$CXXFLAGS
  10276. compiler=$CC
  10277. compiler_CXX=$CC
  10278. for cc_temp in $compiler""; do
  10279. case $cc_temp in
  10280. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10281. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10282. \-*) ;;
  10283. *) break;;
  10284. esac
  10285. done
  10286. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10287. if test -n "$compiler"; then
  10288. # We don't want -fno-exception when compiling C++ code, so set the
  10289. # no_builtin_flag separately
  10290. if test "$GXX" = yes; then
  10291. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10292. else
  10293. lt_prog_compiler_no_builtin_flag_CXX=
  10294. fi
  10295. if test "$GXX" = yes; then
  10296. # Set up default GNU C++ configuration
  10297. # Check whether --with-gnu-ld was given.
  10298. if test "${with_gnu_ld+set}" = set; then :
  10299. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10300. else
  10301. with_gnu_ld=no
  10302. fi
  10303. ac_prog=ld
  10304. if test "$GCC" = yes; then
  10305. # Check if gcc -print-prog-name=ld gives a path.
  10306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10307. $as_echo_n "checking for ld used by $CC... " >&6; }
  10308. case $host in
  10309. *-*-mingw*)
  10310. # gcc leaves a trailing carriage return which upsets mingw
  10311. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10312. *)
  10313. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10314. esac
  10315. case $ac_prog in
  10316. # Accept absolute paths.
  10317. [\\/]* | ?:[\\/]*)
  10318. re_direlt='/[^/][^/]*/\.\./'
  10319. # Canonicalize the pathname of ld
  10320. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10321. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10322. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10323. done
  10324. test -z "$LD" && LD="$ac_prog"
  10325. ;;
  10326. "")
  10327. # If it fails, then pretend we aren't using GCC.
  10328. ac_prog=ld
  10329. ;;
  10330. *)
  10331. # If it is relative, then search for the first ld in PATH.
  10332. with_gnu_ld=unknown
  10333. ;;
  10334. esac
  10335. elif test "$with_gnu_ld" = yes; then
  10336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10337. $as_echo_n "checking for GNU ld... " >&6; }
  10338. else
  10339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10340. $as_echo_n "checking for non-GNU ld... " >&6; }
  10341. fi
  10342. if ${lt_cv_path_LD+:} false; then :
  10343. $as_echo_n "(cached) " >&6
  10344. else
  10345. if test -z "$LD"; then
  10346. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10347. for ac_dir in $PATH; do
  10348. IFS="$lt_save_ifs"
  10349. test -z "$ac_dir" && ac_dir=.
  10350. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10351. lt_cv_path_LD="$ac_dir/$ac_prog"
  10352. # Check to see if the program is GNU ld. I'd rather use --version,
  10353. # but apparently some variants of GNU ld only accept -v.
  10354. # Break only if it was the GNU/non-GNU ld that we prefer.
  10355. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10356. *GNU* | *'with BFD'*)
  10357. test "$with_gnu_ld" != no && break
  10358. ;;
  10359. *)
  10360. test "$with_gnu_ld" != yes && break
  10361. ;;
  10362. esac
  10363. fi
  10364. done
  10365. IFS="$lt_save_ifs"
  10366. else
  10367. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10368. fi
  10369. fi
  10370. LD="$lt_cv_path_LD"
  10371. if test -n "$LD"; then
  10372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10373. $as_echo "$LD" >&6; }
  10374. else
  10375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10376. $as_echo "no" >&6; }
  10377. fi
  10378. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10380. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10381. if ${lt_cv_prog_gnu_ld+:} false; then :
  10382. $as_echo_n "(cached) " >&6
  10383. else
  10384. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10385. case `$LD -v 2>&1 </dev/null` in
  10386. *GNU* | *'with BFD'*)
  10387. lt_cv_prog_gnu_ld=yes
  10388. ;;
  10389. *)
  10390. lt_cv_prog_gnu_ld=no
  10391. ;;
  10392. esac
  10393. fi
  10394. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10395. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10396. with_gnu_ld=$lt_cv_prog_gnu_ld
  10397. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10398. # archiving commands below assume that GNU ld is being used.
  10399. if test "$with_gnu_ld" = yes; then
  10400. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10401. 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'
  10402. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10403. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10404. # If archive_cmds runs LD, not CC, wlarc should be empty
  10405. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10406. # investigate it a little bit more. (MM)
  10407. wlarc='${wl}'
  10408. # ancient GNU ld didn't support --whole-archive et. al.
  10409. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10410. $GREP 'no-whole-archive' > /dev/null; then
  10411. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10412. else
  10413. whole_archive_flag_spec_CXX=
  10414. fi
  10415. else
  10416. with_gnu_ld=no
  10417. wlarc=
  10418. # A generic and very simple default shared library creation
  10419. # command for GNU C++ for the case where it uses the native
  10420. # linker, instead of GNU ld. If possible, this setting should
  10421. # overridden to take advantage of the native linker features on
  10422. # the platform it is being used on.
  10423. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10424. fi
  10425. # Commands to make compiler produce verbose output that lists
  10426. # what "hidden" libraries, object files and flags are used when
  10427. # linking a shared library.
  10428. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10429. else
  10430. GXX=no
  10431. with_gnu_ld=no
  10432. wlarc=
  10433. fi
  10434. # PORTME: fill in a description of your system's C++ link characteristics
  10435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10436. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10437. ld_shlibs_CXX=yes
  10438. case $host_os in
  10439. aix3*)
  10440. # FIXME: insert proper C++ library support
  10441. ld_shlibs_CXX=no
  10442. ;;
  10443. aix[4-9]*)
  10444. if test "$host_cpu" = ia64; then
  10445. # On IA64, the linker does run time linking by default, so we don't
  10446. # have to do anything special.
  10447. aix_use_runtimelinking=no
  10448. exp_sym_flag='-Bexport'
  10449. no_entry_flag=""
  10450. else
  10451. aix_use_runtimelinking=no
  10452. # Test if we are trying to use run time linking or normal
  10453. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10454. # need to do runtime linking.
  10455. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10456. for ld_flag in $LDFLAGS; do
  10457. case $ld_flag in
  10458. *-brtl*)
  10459. aix_use_runtimelinking=yes
  10460. break
  10461. ;;
  10462. esac
  10463. done
  10464. ;;
  10465. esac
  10466. exp_sym_flag='-bexport'
  10467. no_entry_flag='-bnoentry'
  10468. fi
  10469. # When large executables or shared objects are built, AIX ld can
  10470. # have problems creating the table of contents. If linking a library
  10471. # or program results in "error TOC overflow" add -mminimal-toc to
  10472. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10473. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10474. archive_cmds_CXX=''
  10475. hardcode_direct_CXX=yes
  10476. hardcode_direct_absolute_CXX=yes
  10477. hardcode_libdir_separator_CXX=':'
  10478. link_all_deplibs_CXX=yes
  10479. file_list_spec_CXX='${wl}-f,'
  10480. if test "$GXX" = yes; then
  10481. case $host_os in aix4.[012]|aix4.[012].*)
  10482. # We only want to do this on AIX 4.2 and lower, the check
  10483. # below for broken collect2 doesn't work under 4.3+
  10484. collect2name=`${CC} -print-prog-name=collect2`
  10485. if test -f "$collect2name" &&
  10486. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10487. then
  10488. # We have reworked collect2
  10489. :
  10490. else
  10491. # We have old collect2
  10492. hardcode_direct_CXX=unsupported
  10493. # It fails to find uninstalled libraries when the uninstalled
  10494. # path is not listed in the libpath. Setting hardcode_minus_L
  10495. # to unsupported forces relinking
  10496. hardcode_minus_L_CXX=yes
  10497. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10498. hardcode_libdir_separator_CXX=
  10499. fi
  10500. esac
  10501. shared_flag='-shared'
  10502. if test "$aix_use_runtimelinking" = yes; then
  10503. shared_flag="$shared_flag "'${wl}-G'
  10504. fi
  10505. else
  10506. # not using gcc
  10507. if test "$host_cpu" = ia64; then
  10508. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10509. # chokes on -Wl,-G. The following line is correct:
  10510. shared_flag='-G'
  10511. else
  10512. if test "$aix_use_runtimelinking" = yes; then
  10513. shared_flag='${wl}-G'
  10514. else
  10515. shared_flag='${wl}-bM:SRE'
  10516. fi
  10517. fi
  10518. fi
  10519. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10520. # It seems that -bexpall does not export symbols beginning with
  10521. # underscore (_), so it is better to generate a list of symbols to
  10522. # export.
  10523. always_export_symbols_CXX=yes
  10524. if test "$aix_use_runtimelinking" = yes; then
  10525. # Warning - without using the other runtime loading flags (-brtl),
  10526. # -berok will link without error, but may produce a broken library.
  10527. allow_undefined_flag_CXX='-berok'
  10528. # Determine the default libpath from the value encoded in an empty
  10529. # executable.
  10530. if test "${lt_cv_aix_libpath+set}" = set; then
  10531. aix_libpath=$lt_cv_aix_libpath
  10532. else
  10533. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10534. $as_echo_n "(cached) " >&6
  10535. else
  10536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10537. /* end confdefs.h. */
  10538. int
  10539. main ()
  10540. {
  10541. ;
  10542. return 0;
  10543. }
  10544. _ACEOF
  10545. if ac_fn_cxx_try_link "$LINENO"; then :
  10546. lt_aix_libpath_sed='
  10547. /Import File Strings/,/^$/ {
  10548. /^0/ {
  10549. s/^0 *\([^ ]*\) *$/\1/
  10550. p
  10551. }
  10552. }'
  10553. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10554. # Check for a 64-bit object if we didn't find anything.
  10555. if test -z "$lt_cv_aix_libpath__CXX"; then
  10556. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10557. fi
  10558. fi
  10559. rm -f core conftest.err conftest.$ac_objext \
  10560. conftest$ac_exeext conftest.$ac_ext
  10561. if test -z "$lt_cv_aix_libpath__CXX"; then
  10562. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10563. fi
  10564. fi
  10565. aix_libpath=$lt_cv_aix_libpath__CXX
  10566. fi
  10567. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10568. 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"
  10569. else
  10570. if test "$host_cpu" = ia64; then
  10571. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10572. allow_undefined_flag_CXX="-z nodefs"
  10573. 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"
  10574. else
  10575. # Determine the default libpath from the value encoded in an
  10576. # empty executable.
  10577. if test "${lt_cv_aix_libpath+set}" = set; then
  10578. aix_libpath=$lt_cv_aix_libpath
  10579. else
  10580. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10581. $as_echo_n "(cached) " >&6
  10582. else
  10583. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10584. /* end confdefs.h. */
  10585. int
  10586. main ()
  10587. {
  10588. ;
  10589. return 0;
  10590. }
  10591. _ACEOF
  10592. if ac_fn_cxx_try_link "$LINENO"; then :
  10593. lt_aix_libpath_sed='
  10594. /Import File Strings/,/^$/ {
  10595. /^0/ {
  10596. s/^0 *\([^ ]*\) *$/\1/
  10597. p
  10598. }
  10599. }'
  10600. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10601. # Check for a 64-bit object if we didn't find anything.
  10602. if test -z "$lt_cv_aix_libpath__CXX"; then
  10603. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10604. fi
  10605. fi
  10606. rm -f core conftest.err conftest.$ac_objext \
  10607. conftest$ac_exeext conftest.$ac_ext
  10608. if test -z "$lt_cv_aix_libpath__CXX"; then
  10609. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10610. fi
  10611. fi
  10612. aix_libpath=$lt_cv_aix_libpath__CXX
  10613. fi
  10614. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10615. # Warning - without using the other run time loading flags,
  10616. # -berok will link without error, but may produce a broken library.
  10617. no_undefined_flag_CXX=' ${wl}-bernotok'
  10618. allow_undefined_flag_CXX=' ${wl}-berok'
  10619. if test "$with_gnu_ld" = yes; then
  10620. # We only use this code for GNU lds that support --whole-archive.
  10621. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10622. else
  10623. # Exported symbols can be pulled into shared objects from archives
  10624. whole_archive_flag_spec_CXX='$convenience'
  10625. fi
  10626. archive_cmds_need_lc_CXX=yes
  10627. # This is similar to how AIX traditionally builds its shared
  10628. # libraries.
  10629. 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'
  10630. fi
  10631. fi
  10632. ;;
  10633. beos*)
  10634. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10635. allow_undefined_flag_CXX=unsupported
  10636. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10637. # support --undefined. This deserves some investigation. FIXME
  10638. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10639. else
  10640. ld_shlibs_CXX=no
  10641. fi
  10642. ;;
  10643. chorus*)
  10644. case $cc_basename in
  10645. *)
  10646. # FIXME: insert proper C++ library support
  10647. ld_shlibs_CXX=no
  10648. ;;
  10649. esac
  10650. ;;
  10651. cygwin* | mingw* | pw32* | cegcc*)
  10652. case $GXX,$cc_basename in
  10653. ,cl* | no,cl*)
  10654. # Native MSVC
  10655. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10656. # no search path for DLLs.
  10657. hardcode_libdir_flag_spec_CXX=' '
  10658. allow_undefined_flag_CXX=unsupported
  10659. always_export_symbols_CXX=yes
  10660. file_list_spec_CXX='@'
  10661. # Tell ltmain to make .lib files, not .a files.
  10662. libext=lib
  10663. # Tell ltmain to make .dll files, not .so files.
  10664. shrext_cmds=".dll"
  10665. # FIXME: Setting linknames here is a bad hack.
  10666. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  10667. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10668. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  10669. else
  10670. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  10671. fi~
  10672. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10673. linknames='
  10674. # The linker will not automatically build a static lib if we build a DLL.
  10675. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  10676. enable_shared_with_static_runtimes_CXX=yes
  10677. # Don't use ranlib
  10678. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  10679. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  10680. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10681. case $lt_outputfile in
  10682. *.exe|*.EXE) ;;
  10683. *)
  10684. lt_outputfile="$lt_outputfile.exe"
  10685. lt_tool_outputfile="$lt_tool_outputfile.exe"
  10686. ;;
  10687. esac~
  10688. func_to_tool_file "$lt_outputfile"~
  10689. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  10690. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10691. $RM "$lt_outputfile.manifest";
  10692. fi'
  10693. ;;
  10694. *)
  10695. # g++
  10696. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10697. # as there is no search path for DLLs.
  10698. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10699. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  10700. allow_undefined_flag_CXX=unsupported
  10701. always_export_symbols_CXX=no
  10702. enable_shared_with_static_runtimes_CXX=yes
  10703. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10704. 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'
  10705. # If the export-symbols file already is a .def file (1st line
  10706. # is EXPORTS), use it as is; otherwise, prepend...
  10707. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10708. cp $export_symbols $output_objdir/$soname.def;
  10709. else
  10710. echo EXPORTS > $output_objdir/$soname.def;
  10711. cat $export_symbols >> $output_objdir/$soname.def;
  10712. fi~
  10713. $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'
  10714. else
  10715. ld_shlibs_CXX=no
  10716. fi
  10717. ;;
  10718. esac
  10719. ;;
  10720. darwin* | rhapsody*)
  10721. archive_cmds_need_lc_CXX=no
  10722. hardcode_direct_CXX=no
  10723. hardcode_automatic_CXX=yes
  10724. hardcode_shlibpath_var_CXX=unsupported
  10725. if test "$lt_cv_ld_force_load" = "yes"; then
  10726. 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\"`'
  10727. else
  10728. whole_archive_flag_spec_CXX=''
  10729. fi
  10730. link_all_deplibs_CXX=yes
  10731. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10732. case $cc_basename in
  10733. ifort*) _lt_dar_can_shared=yes ;;
  10734. *) _lt_dar_can_shared=$GCC ;;
  10735. esac
  10736. if test "$_lt_dar_can_shared" = "yes"; then
  10737. output_verbose_link_cmd=func_echo_all
  10738. 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}"
  10739. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10740. 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}"
  10741. 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}"
  10742. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10743. 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}"
  10744. 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}"
  10745. fi
  10746. else
  10747. ld_shlibs_CXX=no
  10748. fi
  10749. ;;
  10750. dgux*)
  10751. case $cc_basename in
  10752. ec++*)
  10753. # FIXME: insert proper C++ library support
  10754. ld_shlibs_CXX=no
  10755. ;;
  10756. ghcx*)
  10757. # Green Hills C++ Compiler
  10758. # FIXME: insert proper C++ library support
  10759. ld_shlibs_CXX=no
  10760. ;;
  10761. *)
  10762. # FIXME: insert proper C++ library support
  10763. ld_shlibs_CXX=no
  10764. ;;
  10765. esac
  10766. ;;
  10767. freebsd2.*)
  10768. # C++ shared libraries reported to be fairly broken before
  10769. # switch to ELF
  10770. ld_shlibs_CXX=no
  10771. ;;
  10772. freebsd-elf*)
  10773. archive_cmds_need_lc_CXX=no
  10774. ;;
  10775. freebsd* | dragonfly*)
  10776. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10777. # conventions
  10778. ld_shlibs_CXX=yes
  10779. ;;
  10780. gnu*)
  10781. ;;
  10782. haiku*)
  10783. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10784. link_all_deplibs_CXX=yes
  10785. ;;
  10786. hpux9*)
  10787. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10788. hardcode_libdir_separator_CXX=:
  10789. export_dynamic_flag_spec_CXX='${wl}-E'
  10790. hardcode_direct_CXX=yes
  10791. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10792. # but as the default
  10793. # location of the library.
  10794. case $cc_basename in
  10795. CC*)
  10796. # FIXME: insert proper C++ library support
  10797. ld_shlibs_CXX=no
  10798. ;;
  10799. aCC*)
  10800. 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'
  10801. # Commands to make compiler produce verbose output that lists
  10802. # what "hidden" libraries, object files and flags are used when
  10803. # linking a shared library.
  10804. #
  10805. # There doesn't appear to be a way to prevent this compiler from
  10806. # explicitly linking system object files so we need to strip them
  10807. # from the output so that they don't get included in the library
  10808. # dependencies.
  10809. 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"'
  10810. ;;
  10811. *)
  10812. if test "$GXX" = yes; then
  10813. 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'
  10814. else
  10815. # FIXME: insert proper C++ library support
  10816. ld_shlibs_CXX=no
  10817. fi
  10818. ;;
  10819. esac
  10820. ;;
  10821. hpux10*|hpux11*)
  10822. if test $with_gnu_ld = no; then
  10823. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10824. hardcode_libdir_separator_CXX=:
  10825. case $host_cpu in
  10826. hppa*64*|ia64*)
  10827. ;;
  10828. *)
  10829. export_dynamic_flag_spec_CXX='${wl}-E'
  10830. ;;
  10831. esac
  10832. fi
  10833. case $host_cpu in
  10834. hppa*64*|ia64*)
  10835. hardcode_direct_CXX=no
  10836. hardcode_shlibpath_var_CXX=no
  10837. ;;
  10838. *)
  10839. hardcode_direct_CXX=yes
  10840. hardcode_direct_absolute_CXX=yes
  10841. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10842. # but as the default
  10843. # location of the library.
  10844. ;;
  10845. esac
  10846. case $cc_basename in
  10847. CC*)
  10848. # FIXME: insert proper C++ library support
  10849. ld_shlibs_CXX=no
  10850. ;;
  10851. aCC*)
  10852. case $host_cpu in
  10853. hppa*64*)
  10854. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10855. ;;
  10856. ia64*)
  10857. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10858. ;;
  10859. *)
  10860. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10861. ;;
  10862. esac
  10863. # Commands to make compiler produce verbose output that lists
  10864. # what "hidden" libraries, object files and flags are used when
  10865. # linking a shared library.
  10866. #
  10867. # There doesn't appear to be a way to prevent this compiler from
  10868. # explicitly linking system object files so we need to strip them
  10869. # from the output so that they don't get included in the library
  10870. # dependencies.
  10871. 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"'
  10872. ;;
  10873. *)
  10874. if test "$GXX" = yes; then
  10875. if test $with_gnu_ld = no; then
  10876. case $host_cpu in
  10877. hppa*64*)
  10878. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10879. ;;
  10880. ia64*)
  10881. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10882. ;;
  10883. *)
  10884. 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'
  10885. ;;
  10886. esac
  10887. fi
  10888. else
  10889. # FIXME: insert proper C++ library support
  10890. ld_shlibs_CXX=no
  10891. fi
  10892. ;;
  10893. esac
  10894. ;;
  10895. interix[3-9]*)
  10896. hardcode_direct_CXX=no
  10897. hardcode_shlibpath_var_CXX=no
  10898. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10899. export_dynamic_flag_spec_CXX='${wl}-E'
  10900. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10901. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10902. # default) and relocated if they conflict, which is a slow very memory
  10903. # consuming and fragmenting process. To avoid this, we pick a random,
  10904. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10905. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10906. 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'
  10907. 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'
  10908. ;;
  10909. irix5* | irix6*)
  10910. case $cc_basename in
  10911. CC*)
  10912. # SGI C++
  10913. 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'
  10914. # Archives containing C++ object files must be created using
  10915. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10916. # necessary to make sure instantiated templates are included
  10917. # in the archive.
  10918. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10919. ;;
  10920. *)
  10921. if test "$GXX" = yes; then
  10922. if test "$with_gnu_ld" = no; then
  10923. 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'
  10924. else
  10925. 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'
  10926. fi
  10927. fi
  10928. link_all_deplibs_CXX=yes
  10929. ;;
  10930. esac
  10931. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10932. hardcode_libdir_separator_CXX=:
  10933. inherit_rpath_CXX=yes
  10934. ;;
  10935. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10936. case $cc_basename in
  10937. KCC*)
  10938. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10939. # KCC will only create a shared library if the output file
  10940. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10941. # to its proper name (with version) after linking.
  10942. 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'
  10943. 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'
  10944. # Commands to make compiler produce verbose output that lists
  10945. # what "hidden" libraries, object files and flags are used when
  10946. # linking a shared library.
  10947. #
  10948. # There doesn't appear to be a way to prevent this compiler from
  10949. # explicitly linking system object files so we need to strip them
  10950. # from the output so that they don't get included in the library
  10951. # dependencies.
  10952. 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"'
  10953. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10954. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10955. # Archives containing C++ object files must be created using
  10956. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10957. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10958. ;;
  10959. icpc* | ecpc* )
  10960. # Intel C++
  10961. with_gnu_ld=yes
  10962. # version 8.0 and above of icpc choke on multiply defined symbols
  10963. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10964. # earlier do not add the objects themselves.
  10965. case `$CC -V 2>&1` in
  10966. *"Version 7."*)
  10967. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10968. 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'
  10969. ;;
  10970. *) # Version 8.0 or newer
  10971. tmp_idyn=
  10972. case $host_cpu in
  10973. ia64*) tmp_idyn=' -i_dynamic';;
  10974. esac
  10975. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10976. 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'
  10977. ;;
  10978. esac
  10979. archive_cmds_need_lc_CXX=no
  10980. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10981. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10982. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10983. ;;
  10984. pgCC* | pgcpp*)
  10985. # Portland Group C++ compiler
  10986. case `$CC -V` in
  10987. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  10988. prelink_cmds_CXX='tpldir=Template.dir~
  10989. rm -rf $tpldir~
  10990. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10991. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  10992. old_archive_cmds_CXX='tpldir=Template.dir~
  10993. rm -rf $tpldir~
  10994. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10995. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  10996. $RANLIB $oldlib'
  10997. archive_cmds_CXX='tpldir=Template.dir~
  10998. rm -rf $tpldir~
  10999. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11000. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11001. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11002. rm -rf $tpldir~
  11003. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11004. $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'
  11005. ;;
  11006. *) # Version 6 and above use weak symbols
  11007. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11008. 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'
  11009. ;;
  11010. esac
  11011. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11012. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11013. 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'
  11014. ;;
  11015. cxx*)
  11016. # Compaq C++
  11017. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11018. 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'
  11019. runpath_var=LD_RUN_PATH
  11020. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11021. hardcode_libdir_separator_CXX=:
  11022. # Commands to make compiler produce verbose output that lists
  11023. # what "hidden" libraries, object files and flags are used when
  11024. # linking a shared library.
  11025. #
  11026. # There doesn't appear to be a way to prevent this compiler from
  11027. # explicitly linking system object files so we need to strip them
  11028. # from the output so that they don't get included in the library
  11029. # dependencies.
  11030. 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'
  11031. ;;
  11032. xl* | mpixl* | bgxl*)
  11033. # IBM XL 8.0 on PPC, with GNU ld
  11034. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11035. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11036. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11037. if test "x$supports_anon_versioning" = xyes; then
  11038. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11039. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11040. echo "local: *; };" >> $output_objdir/$libname.ver~
  11041. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11042. fi
  11043. ;;
  11044. *)
  11045. case `$CC -V 2>&1 | sed 5q` in
  11046. *Sun\ C*)
  11047. # Sun C++ 5.9
  11048. no_undefined_flag_CXX=' -zdefs'
  11049. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11050. 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'
  11051. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11052. 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'
  11053. compiler_needs_object_CXX=yes
  11054. # Not sure whether something based on
  11055. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11056. # would be better.
  11057. output_verbose_link_cmd='func_echo_all'
  11058. # Archives containing C++ object files must be created using
  11059. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11060. # necessary to make sure instantiated templates are included
  11061. # in the archive.
  11062. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11063. ;;
  11064. esac
  11065. ;;
  11066. esac
  11067. ;;
  11068. lynxos*)
  11069. # FIXME: insert proper C++ library support
  11070. ld_shlibs_CXX=no
  11071. ;;
  11072. m88k*)
  11073. # FIXME: insert proper C++ library support
  11074. ld_shlibs_CXX=no
  11075. ;;
  11076. mvs*)
  11077. case $cc_basename in
  11078. cxx*)
  11079. # FIXME: insert proper C++ library support
  11080. ld_shlibs_CXX=no
  11081. ;;
  11082. *)
  11083. # FIXME: insert proper C++ library support
  11084. ld_shlibs_CXX=no
  11085. ;;
  11086. esac
  11087. ;;
  11088. netbsd*)
  11089. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11090. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11091. wlarc=
  11092. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11093. hardcode_direct_CXX=yes
  11094. hardcode_shlibpath_var_CXX=no
  11095. fi
  11096. # Workaround some broken pre-1.5 toolchains
  11097. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11098. ;;
  11099. *nto* | *qnx*)
  11100. ld_shlibs_CXX=yes
  11101. ;;
  11102. openbsd2*)
  11103. # C++ shared libraries are fairly broken
  11104. ld_shlibs_CXX=no
  11105. ;;
  11106. openbsd*)
  11107. if test -f /usr/libexec/ld.so; then
  11108. hardcode_direct_CXX=yes
  11109. hardcode_shlibpath_var_CXX=no
  11110. hardcode_direct_absolute_CXX=yes
  11111. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11112. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11113. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11114. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11115. export_dynamic_flag_spec_CXX='${wl}-E'
  11116. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11117. fi
  11118. output_verbose_link_cmd=func_echo_all
  11119. else
  11120. ld_shlibs_CXX=no
  11121. fi
  11122. ;;
  11123. osf3* | osf4* | osf5*)
  11124. case $cc_basename in
  11125. KCC*)
  11126. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11127. # KCC will only create a shared library if the output file
  11128. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11129. # to its proper name (with version) after linking.
  11130. 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'
  11131. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11132. hardcode_libdir_separator_CXX=:
  11133. # Archives containing C++ object files must be created using
  11134. # the KAI C++ compiler.
  11135. case $host in
  11136. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11137. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11138. esac
  11139. ;;
  11140. RCC*)
  11141. # Rational C++ 2.4.1
  11142. # FIXME: insert proper C++ library support
  11143. ld_shlibs_CXX=no
  11144. ;;
  11145. cxx*)
  11146. case $host in
  11147. osf3*)
  11148. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11149. 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'
  11150. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11151. ;;
  11152. *)
  11153. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11154. 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'
  11155. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11156. echo "-hidden">> $lib.exp~
  11157. $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~
  11158. $RM $lib.exp'
  11159. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11160. ;;
  11161. esac
  11162. hardcode_libdir_separator_CXX=:
  11163. # Commands to make compiler produce verbose output that lists
  11164. # what "hidden" libraries, object files and flags are used when
  11165. # linking a shared library.
  11166. #
  11167. # There doesn't appear to be a way to prevent this compiler from
  11168. # explicitly linking system object files so we need to strip them
  11169. # from the output so that they don't get included in the library
  11170. # dependencies.
  11171. 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"'
  11172. ;;
  11173. *)
  11174. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11175. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11176. case $host in
  11177. osf3*)
  11178. 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'
  11179. ;;
  11180. *)
  11181. 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'
  11182. ;;
  11183. esac
  11184. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11185. hardcode_libdir_separator_CXX=:
  11186. # Commands to make compiler produce verbose output that lists
  11187. # what "hidden" libraries, object files and flags are used when
  11188. # linking a shared library.
  11189. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11190. else
  11191. # FIXME: insert proper C++ library support
  11192. ld_shlibs_CXX=no
  11193. fi
  11194. ;;
  11195. esac
  11196. ;;
  11197. psos*)
  11198. # FIXME: insert proper C++ library support
  11199. ld_shlibs_CXX=no
  11200. ;;
  11201. sunos4*)
  11202. case $cc_basename in
  11203. CC*)
  11204. # Sun C++ 4.x
  11205. # FIXME: insert proper C++ library support
  11206. ld_shlibs_CXX=no
  11207. ;;
  11208. lcc*)
  11209. # Lucid
  11210. # FIXME: insert proper C++ library support
  11211. ld_shlibs_CXX=no
  11212. ;;
  11213. *)
  11214. # FIXME: insert proper C++ library support
  11215. ld_shlibs_CXX=no
  11216. ;;
  11217. esac
  11218. ;;
  11219. solaris*)
  11220. case $cc_basename in
  11221. CC* | sunCC*)
  11222. # Sun C++ 4.2, 5.x and Centerline C++
  11223. archive_cmds_need_lc_CXX=yes
  11224. no_undefined_flag_CXX=' -zdefs'
  11225. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11226. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11227. $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'
  11228. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11229. hardcode_shlibpath_var_CXX=no
  11230. case $host_os in
  11231. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11232. *)
  11233. # The compiler driver will combine and reorder linker options,
  11234. # but understands `-z linker_flag'.
  11235. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11236. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11237. ;;
  11238. esac
  11239. link_all_deplibs_CXX=yes
  11240. output_verbose_link_cmd='func_echo_all'
  11241. # Archives containing C++ object files must be created using
  11242. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11243. # necessary to make sure instantiated templates are included
  11244. # in the archive.
  11245. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11246. ;;
  11247. gcx*)
  11248. # Green Hills C++ Compiler
  11249. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11250. # The C++ compiler must be used to create the archive.
  11251. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11252. ;;
  11253. *)
  11254. # GNU C++ compiler with Solaris linker
  11255. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11256. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11257. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11258. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11259. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11260. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11261. # Commands to make compiler produce verbose output that lists
  11262. # what "hidden" libraries, object files and flags are used when
  11263. # linking a shared library.
  11264. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11265. else
  11266. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11267. # platform.
  11268. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11269. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11270. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11271. # Commands to make compiler produce verbose output that lists
  11272. # what "hidden" libraries, object files and flags are used when
  11273. # linking a shared library.
  11274. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11275. fi
  11276. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11277. case $host_os in
  11278. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11279. *)
  11280. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11281. ;;
  11282. esac
  11283. fi
  11284. ;;
  11285. esac
  11286. ;;
  11287. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11288. no_undefined_flag_CXX='${wl}-z,text'
  11289. archive_cmds_need_lc_CXX=no
  11290. hardcode_shlibpath_var_CXX=no
  11291. runpath_var='LD_RUN_PATH'
  11292. case $cc_basename in
  11293. CC*)
  11294. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11295. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11296. ;;
  11297. *)
  11298. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11299. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11300. ;;
  11301. esac
  11302. ;;
  11303. sysv5* | sco3.2v5* | sco5v6*)
  11304. # Note: We can NOT use -z defs as we might desire, because we do not
  11305. # link with -lc, and that would cause any symbols used from libc to
  11306. # always be unresolved, which means just about no library would
  11307. # ever link correctly. If we're not using GNU ld we use -z text
  11308. # though, which does catch some bad symbols but isn't as heavy-handed
  11309. # as -z defs.
  11310. no_undefined_flag_CXX='${wl}-z,text'
  11311. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11312. archive_cmds_need_lc_CXX=no
  11313. hardcode_shlibpath_var_CXX=no
  11314. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11315. hardcode_libdir_separator_CXX=':'
  11316. link_all_deplibs_CXX=yes
  11317. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11318. runpath_var='LD_RUN_PATH'
  11319. case $cc_basename in
  11320. CC*)
  11321. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11322. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11323. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11324. '"$old_archive_cmds_CXX"
  11325. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11326. '"$reload_cmds_CXX"
  11327. ;;
  11328. *)
  11329. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11330. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11331. ;;
  11332. esac
  11333. ;;
  11334. tandem*)
  11335. case $cc_basename in
  11336. NCC*)
  11337. # NonStop-UX NCC 3.20
  11338. # FIXME: insert proper C++ library support
  11339. ld_shlibs_CXX=no
  11340. ;;
  11341. *)
  11342. # FIXME: insert proper C++ library support
  11343. ld_shlibs_CXX=no
  11344. ;;
  11345. esac
  11346. ;;
  11347. vxworks*)
  11348. # FIXME: insert proper C++ library support
  11349. ld_shlibs_CXX=no
  11350. ;;
  11351. *)
  11352. # FIXME: insert proper C++ library support
  11353. ld_shlibs_CXX=no
  11354. ;;
  11355. esac
  11356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11357. $as_echo "$ld_shlibs_CXX" >&6; }
  11358. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11359. GCC_CXX="$GXX"
  11360. LD_CXX="$LD"
  11361. ## CAVEAT EMPTOR:
  11362. ## There is no encapsulation within the following macros, do not change
  11363. ## the running order or otherwise move them around unless you know exactly
  11364. ## what you are doing...
  11365. # Dependencies to place before and after the object being linked:
  11366. predep_objects_CXX=
  11367. postdep_objects_CXX=
  11368. predeps_CXX=
  11369. postdeps_CXX=
  11370. compiler_lib_search_path_CXX=
  11371. cat > conftest.$ac_ext <<_LT_EOF
  11372. class Foo
  11373. {
  11374. public:
  11375. Foo (void) { a = 0; }
  11376. private:
  11377. int a;
  11378. };
  11379. _LT_EOF
  11380. _lt_libdeps_save_CFLAGS=$CFLAGS
  11381. case "$CC $CFLAGS " in #(
  11382. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11383. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11384. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11385. esac
  11386. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11387. (eval $ac_compile) 2>&5
  11388. ac_status=$?
  11389. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11390. test $ac_status = 0; }; then
  11391. # Parse the compiler output and extract the necessary
  11392. # objects, libraries and library flags.
  11393. # Sentinel used to keep track of whether or not we are before
  11394. # the conftest object file.
  11395. pre_test_object_deps_done=no
  11396. for p in `eval "$output_verbose_link_cmd"`; do
  11397. case ${prev}${p} in
  11398. -L* | -R* | -l*)
  11399. # Some compilers place space between "-{L,R}" and the path.
  11400. # Remove the space.
  11401. if test $p = "-L" ||
  11402. test $p = "-R"; then
  11403. prev=$p
  11404. continue
  11405. fi
  11406. # Expand the sysroot to ease extracting the directories later.
  11407. if test -z "$prev"; then
  11408. case $p in
  11409. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11410. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11411. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11412. esac
  11413. fi
  11414. case $p in
  11415. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11416. esac
  11417. if test "$pre_test_object_deps_done" = no; then
  11418. case ${prev} in
  11419. -L | -R)
  11420. # Internal compiler library paths should come after those
  11421. # provided the user. The postdeps already come after the
  11422. # user supplied libs so there is no need to process them.
  11423. if test -z "$compiler_lib_search_path_CXX"; then
  11424. compiler_lib_search_path_CXX="${prev}${p}"
  11425. else
  11426. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11427. fi
  11428. ;;
  11429. # The "-l" case would never come before the object being
  11430. # linked, so don't bother handling this case.
  11431. esac
  11432. else
  11433. if test -z "$postdeps_CXX"; then
  11434. postdeps_CXX="${prev}${p}"
  11435. else
  11436. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11437. fi
  11438. fi
  11439. prev=
  11440. ;;
  11441. *.lto.$objext) ;; # Ignore GCC LTO objects
  11442. *.$objext)
  11443. # This assumes that the test object file only shows up
  11444. # once in the compiler output.
  11445. if test "$p" = "conftest.$objext"; then
  11446. pre_test_object_deps_done=yes
  11447. continue
  11448. fi
  11449. if test "$pre_test_object_deps_done" = no; then
  11450. if test -z "$predep_objects_CXX"; then
  11451. predep_objects_CXX="$p"
  11452. else
  11453. predep_objects_CXX="$predep_objects_CXX $p"
  11454. fi
  11455. else
  11456. if test -z "$postdep_objects_CXX"; then
  11457. postdep_objects_CXX="$p"
  11458. else
  11459. postdep_objects_CXX="$postdep_objects_CXX $p"
  11460. fi
  11461. fi
  11462. ;;
  11463. *) ;; # Ignore the rest.
  11464. esac
  11465. done
  11466. # Clean up.
  11467. rm -f a.out a.exe
  11468. else
  11469. echo "libtool.m4: error: problem compiling CXX test program"
  11470. fi
  11471. $RM -f confest.$objext
  11472. CFLAGS=$_lt_libdeps_save_CFLAGS
  11473. # PORTME: override above test on systems where it is broken
  11474. case $host_os in
  11475. interix[3-9]*)
  11476. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11477. # hack all around it, let's just trust "g++" to DTRT.
  11478. predep_objects_CXX=
  11479. postdep_objects_CXX=
  11480. postdeps_CXX=
  11481. ;;
  11482. linux*)
  11483. case `$CC -V 2>&1 | sed 5q` in
  11484. *Sun\ C*)
  11485. # Sun C++ 5.9
  11486. # The more standards-conforming stlport4 library is
  11487. # incompatible with the Cstd library. Avoid specifying
  11488. # it if it's in CXXFLAGS. Ignore libCrun as
  11489. # -library=stlport4 depends on it.
  11490. case " $CXX $CXXFLAGS " in
  11491. *" -library=stlport4 "*)
  11492. solaris_use_stlport4=yes
  11493. ;;
  11494. esac
  11495. if test "$solaris_use_stlport4" != yes; then
  11496. postdeps_CXX='-library=Cstd -library=Crun'
  11497. fi
  11498. ;;
  11499. esac
  11500. ;;
  11501. solaris*)
  11502. case $cc_basename in
  11503. CC* | sunCC*)
  11504. # The more standards-conforming stlport4 library is
  11505. # incompatible with the Cstd library. Avoid specifying
  11506. # it if it's in CXXFLAGS. Ignore libCrun as
  11507. # -library=stlport4 depends on it.
  11508. case " $CXX $CXXFLAGS " in
  11509. *" -library=stlport4 "*)
  11510. solaris_use_stlport4=yes
  11511. ;;
  11512. esac
  11513. # Adding this requires a known-good setup of shared libraries for
  11514. # Sun compiler versions before 5.6, else PIC objects from an old
  11515. # archive will be linked into the output, leading to subtle bugs.
  11516. if test "$solaris_use_stlport4" != yes; then
  11517. postdeps_CXX='-library=Cstd -library=Crun'
  11518. fi
  11519. ;;
  11520. esac
  11521. ;;
  11522. esac
  11523. case " $postdeps_CXX " in
  11524. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11525. esac
  11526. compiler_lib_search_dirs_CXX=
  11527. if test -n "${compiler_lib_search_path_CXX}"; then
  11528. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11529. fi
  11530. lt_prog_compiler_wl_CXX=
  11531. lt_prog_compiler_pic_CXX=
  11532. lt_prog_compiler_static_CXX=
  11533. # C++ specific cases for pic, static, wl, etc.
  11534. if test "$GXX" = yes; then
  11535. lt_prog_compiler_wl_CXX='-Wl,'
  11536. lt_prog_compiler_static_CXX='-static'
  11537. case $host_os in
  11538. aix*)
  11539. # All AIX code is PIC.
  11540. if test "$host_cpu" = ia64; then
  11541. # AIX 5 now supports IA64 processor
  11542. lt_prog_compiler_static_CXX='-Bstatic'
  11543. fi
  11544. ;;
  11545. amigaos*)
  11546. case $host_cpu in
  11547. powerpc)
  11548. # see comment about AmigaOS4 .so support
  11549. lt_prog_compiler_pic_CXX='-fPIC'
  11550. ;;
  11551. m68k)
  11552. # FIXME: we need at least 68020 code to build shared libraries, but
  11553. # adding the `-m68020' flag to GCC prevents building anything better,
  11554. # like `-m68040'.
  11555. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11556. ;;
  11557. esac
  11558. ;;
  11559. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11560. # PIC is the default for these OSes.
  11561. ;;
  11562. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11563. # This hack is so that the source file can tell whether it is being
  11564. # built for inclusion in a dll (and should export symbols for example).
  11565. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11566. # (--disable-auto-import) libraries
  11567. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11568. ;;
  11569. darwin* | rhapsody*)
  11570. # PIC is the default on this platform
  11571. # Common symbols not allowed in MH_DYLIB files
  11572. lt_prog_compiler_pic_CXX='-fno-common'
  11573. ;;
  11574. *djgpp*)
  11575. # DJGPP does not support shared libraries at all
  11576. lt_prog_compiler_pic_CXX=
  11577. ;;
  11578. haiku*)
  11579. # PIC is the default for Haiku.
  11580. # The "-static" flag exists, but is broken.
  11581. lt_prog_compiler_static_CXX=
  11582. ;;
  11583. interix[3-9]*)
  11584. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11585. # Instead, we relocate shared libraries at runtime.
  11586. ;;
  11587. sysv4*MP*)
  11588. if test -d /usr/nec; then
  11589. lt_prog_compiler_pic_CXX=-Kconform_pic
  11590. fi
  11591. ;;
  11592. hpux*)
  11593. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11594. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11595. # sets the default TLS model and affects inlining.
  11596. case $host_cpu in
  11597. hppa*64*)
  11598. ;;
  11599. *)
  11600. lt_prog_compiler_pic_CXX='-fPIC'
  11601. ;;
  11602. esac
  11603. ;;
  11604. *qnx* | *nto*)
  11605. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11606. # it will coredump.
  11607. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11608. ;;
  11609. *)
  11610. lt_prog_compiler_pic_CXX='-fPIC'
  11611. ;;
  11612. esac
  11613. else
  11614. case $host_os in
  11615. aix[4-9]*)
  11616. # All AIX code is PIC.
  11617. if test "$host_cpu" = ia64; then
  11618. # AIX 5 now supports IA64 processor
  11619. lt_prog_compiler_static_CXX='-Bstatic'
  11620. else
  11621. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11622. fi
  11623. ;;
  11624. chorus*)
  11625. case $cc_basename in
  11626. cxch68*)
  11627. # Green Hills C++ Compiler
  11628. # _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"
  11629. ;;
  11630. esac
  11631. ;;
  11632. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11633. # This hack is so that the source file can tell whether it is being
  11634. # built for inclusion in a dll (and should export symbols for example).
  11635. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11636. ;;
  11637. dgux*)
  11638. case $cc_basename in
  11639. ec++*)
  11640. lt_prog_compiler_pic_CXX='-KPIC'
  11641. ;;
  11642. ghcx*)
  11643. # Green Hills C++ Compiler
  11644. lt_prog_compiler_pic_CXX='-pic'
  11645. ;;
  11646. *)
  11647. ;;
  11648. esac
  11649. ;;
  11650. freebsd* | dragonfly*)
  11651. # FreeBSD uses GNU C++
  11652. ;;
  11653. hpux9* | hpux10* | hpux11*)
  11654. case $cc_basename in
  11655. CC*)
  11656. lt_prog_compiler_wl_CXX='-Wl,'
  11657. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11658. if test "$host_cpu" != ia64; then
  11659. lt_prog_compiler_pic_CXX='+Z'
  11660. fi
  11661. ;;
  11662. aCC*)
  11663. lt_prog_compiler_wl_CXX='-Wl,'
  11664. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11665. case $host_cpu in
  11666. hppa*64*|ia64*)
  11667. # +Z the default
  11668. ;;
  11669. *)
  11670. lt_prog_compiler_pic_CXX='+Z'
  11671. ;;
  11672. esac
  11673. ;;
  11674. *)
  11675. ;;
  11676. esac
  11677. ;;
  11678. interix*)
  11679. # This is c89, which is MS Visual C++ (no shared libs)
  11680. # Anyone wants to do a port?
  11681. ;;
  11682. irix5* | irix6* | nonstopux*)
  11683. case $cc_basename in
  11684. CC*)
  11685. lt_prog_compiler_wl_CXX='-Wl,'
  11686. lt_prog_compiler_static_CXX='-non_shared'
  11687. # CC pic flag -KPIC is the default.
  11688. ;;
  11689. *)
  11690. ;;
  11691. esac
  11692. ;;
  11693. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11694. case $cc_basename in
  11695. KCC*)
  11696. # KAI C++ Compiler
  11697. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11698. lt_prog_compiler_pic_CXX='-fPIC'
  11699. ;;
  11700. ecpc* )
  11701. # old Intel C++ for x86_64 which still supported -KPIC.
  11702. lt_prog_compiler_wl_CXX='-Wl,'
  11703. lt_prog_compiler_pic_CXX='-KPIC'
  11704. lt_prog_compiler_static_CXX='-static'
  11705. ;;
  11706. icpc* )
  11707. # Intel C++, used to be incompatible with GCC.
  11708. # ICC 10 doesn't accept -KPIC any more.
  11709. lt_prog_compiler_wl_CXX='-Wl,'
  11710. lt_prog_compiler_pic_CXX='-fPIC'
  11711. lt_prog_compiler_static_CXX='-static'
  11712. ;;
  11713. pgCC* | pgcpp*)
  11714. # Portland Group C++ compiler
  11715. lt_prog_compiler_wl_CXX='-Wl,'
  11716. lt_prog_compiler_pic_CXX='-fpic'
  11717. lt_prog_compiler_static_CXX='-Bstatic'
  11718. ;;
  11719. cxx*)
  11720. # Compaq C++
  11721. # Make sure the PIC flag is empty. It appears that all Alpha
  11722. # Linux and Compaq Tru64 Unix objects are PIC.
  11723. lt_prog_compiler_pic_CXX=
  11724. lt_prog_compiler_static_CXX='-non_shared'
  11725. ;;
  11726. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  11727. # IBM XL 8.0, 9.0 on PPC and BlueGene
  11728. lt_prog_compiler_wl_CXX='-Wl,'
  11729. lt_prog_compiler_pic_CXX='-qpic'
  11730. lt_prog_compiler_static_CXX='-qstaticlink'
  11731. ;;
  11732. *)
  11733. case `$CC -V 2>&1 | sed 5q` in
  11734. *Sun\ C*)
  11735. # Sun C++ 5.9
  11736. lt_prog_compiler_pic_CXX='-KPIC'
  11737. lt_prog_compiler_static_CXX='-Bstatic'
  11738. lt_prog_compiler_wl_CXX='-Qoption ld '
  11739. ;;
  11740. esac
  11741. ;;
  11742. esac
  11743. ;;
  11744. lynxos*)
  11745. ;;
  11746. m88k*)
  11747. ;;
  11748. mvs*)
  11749. case $cc_basename in
  11750. cxx*)
  11751. lt_prog_compiler_pic_CXX='-W c,exportall'
  11752. ;;
  11753. *)
  11754. ;;
  11755. esac
  11756. ;;
  11757. netbsd*)
  11758. ;;
  11759. *qnx* | *nto*)
  11760. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11761. # it will coredump.
  11762. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11763. ;;
  11764. osf3* | osf4* | osf5*)
  11765. case $cc_basename in
  11766. KCC*)
  11767. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11768. ;;
  11769. RCC*)
  11770. # Rational C++ 2.4.1
  11771. lt_prog_compiler_pic_CXX='-pic'
  11772. ;;
  11773. cxx*)
  11774. # Digital/Compaq C++
  11775. lt_prog_compiler_wl_CXX='-Wl,'
  11776. # Make sure the PIC flag is empty. It appears that all Alpha
  11777. # Linux and Compaq Tru64 Unix objects are PIC.
  11778. lt_prog_compiler_pic_CXX=
  11779. lt_prog_compiler_static_CXX='-non_shared'
  11780. ;;
  11781. *)
  11782. ;;
  11783. esac
  11784. ;;
  11785. psos*)
  11786. ;;
  11787. solaris*)
  11788. case $cc_basename in
  11789. CC* | sunCC*)
  11790. # Sun C++ 4.2, 5.x and Centerline C++
  11791. lt_prog_compiler_pic_CXX='-KPIC'
  11792. lt_prog_compiler_static_CXX='-Bstatic'
  11793. lt_prog_compiler_wl_CXX='-Qoption ld '
  11794. ;;
  11795. gcx*)
  11796. # Green Hills C++ Compiler
  11797. lt_prog_compiler_pic_CXX='-PIC'
  11798. ;;
  11799. *)
  11800. ;;
  11801. esac
  11802. ;;
  11803. sunos4*)
  11804. case $cc_basename in
  11805. CC*)
  11806. # Sun C++ 4.x
  11807. lt_prog_compiler_pic_CXX='-pic'
  11808. lt_prog_compiler_static_CXX='-Bstatic'
  11809. ;;
  11810. lcc*)
  11811. # Lucid
  11812. lt_prog_compiler_pic_CXX='-pic'
  11813. ;;
  11814. *)
  11815. ;;
  11816. esac
  11817. ;;
  11818. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11819. case $cc_basename in
  11820. CC*)
  11821. lt_prog_compiler_wl_CXX='-Wl,'
  11822. lt_prog_compiler_pic_CXX='-KPIC'
  11823. lt_prog_compiler_static_CXX='-Bstatic'
  11824. ;;
  11825. esac
  11826. ;;
  11827. tandem*)
  11828. case $cc_basename in
  11829. NCC*)
  11830. # NonStop-UX NCC 3.20
  11831. lt_prog_compiler_pic_CXX='-KPIC'
  11832. ;;
  11833. *)
  11834. ;;
  11835. esac
  11836. ;;
  11837. vxworks*)
  11838. ;;
  11839. *)
  11840. lt_prog_compiler_can_build_shared_CXX=no
  11841. ;;
  11842. esac
  11843. fi
  11844. case $host_os in
  11845. # For platforms which do not support PIC, -DPIC is meaningless:
  11846. *djgpp*)
  11847. lt_prog_compiler_pic_CXX=
  11848. ;;
  11849. *)
  11850. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11851. ;;
  11852. esac
  11853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11854. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11855. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  11856. $as_echo_n "(cached) " >&6
  11857. else
  11858. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  11859. fi
  11860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  11861. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  11862. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  11863. #
  11864. # Check to make sure the PIC flag actually works.
  11865. #
  11866. if test -n "$lt_prog_compiler_pic_CXX"; then
  11867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11868. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11869. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  11870. $as_echo_n "(cached) " >&6
  11871. else
  11872. lt_cv_prog_compiler_pic_works_CXX=no
  11873. ac_outfile=conftest.$ac_objext
  11874. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11875. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11876. # Insert the option either (1) after the last *FLAGS variable, or
  11877. # (2) before a word containing "conftest.", or (3) at the end.
  11878. # Note that $ac_compile itself does not contain backslashes and begins
  11879. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11880. # The option is referenced via a variable to avoid confusing sed.
  11881. lt_compile=`echo "$ac_compile" | $SED \
  11882. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11883. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11884. -e 's:$: $lt_compiler_flag:'`
  11885. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11886. (eval "$lt_compile" 2>conftest.err)
  11887. ac_status=$?
  11888. cat conftest.err >&5
  11889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11890. if (exit $ac_status) && test -s "$ac_outfile"; then
  11891. # The compiler can only warn and ignore the option if not recognized
  11892. # So say no if there are warnings other than the usual output.
  11893. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  11894. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11895. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11896. lt_cv_prog_compiler_pic_works_CXX=yes
  11897. fi
  11898. fi
  11899. $RM conftest*
  11900. fi
  11901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11902. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11903. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11904. case $lt_prog_compiler_pic_CXX in
  11905. "" | " "*) ;;
  11906. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11907. esac
  11908. else
  11909. lt_prog_compiler_pic_CXX=
  11910. lt_prog_compiler_can_build_shared_CXX=no
  11911. fi
  11912. fi
  11913. #
  11914. # Check to make sure the static flag actually works.
  11915. #
  11916. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11918. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11919. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  11920. $as_echo_n "(cached) " >&6
  11921. else
  11922. lt_cv_prog_compiler_static_works_CXX=no
  11923. save_LDFLAGS="$LDFLAGS"
  11924. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11925. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11926. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11927. # The linker can only warn and ignore the option if not recognized
  11928. # So say no if there are warnings
  11929. if test -s conftest.err; then
  11930. # Append any errors to the config.log.
  11931. cat conftest.err 1>&5
  11932. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  11933. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11934. if diff conftest.exp conftest.er2 >/dev/null; then
  11935. lt_cv_prog_compiler_static_works_CXX=yes
  11936. fi
  11937. else
  11938. lt_cv_prog_compiler_static_works_CXX=yes
  11939. fi
  11940. fi
  11941. $RM -r conftest*
  11942. LDFLAGS="$save_LDFLAGS"
  11943. fi
  11944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11945. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11946. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11947. :
  11948. else
  11949. lt_prog_compiler_static_CXX=
  11950. fi
  11951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11952. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11953. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  11954. $as_echo_n "(cached) " >&6
  11955. else
  11956. lt_cv_prog_compiler_c_o_CXX=no
  11957. $RM -r conftest 2>/dev/null
  11958. mkdir conftest
  11959. cd conftest
  11960. mkdir out
  11961. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11962. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11963. # Insert the option either (1) after the last *FLAGS variable, or
  11964. # (2) before a word containing "conftest.", or (3) at the end.
  11965. # Note that $ac_compile itself does not contain backslashes and begins
  11966. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11967. lt_compile=`echo "$ac_compile" | $SED \
  11968. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11969. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11970. -e 's:$: $lt_compiler_flag:'`
  11971. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  11972. (eval "$lt_compile" 2>out/conftest.err)
  11973. ac_status=$?
  11974. cat out/conftest.err >&5
  11975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11976. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11977. then
  11978. # The compiler can only warn and ignore the option if not recognized
  11979. # So say no if there are warnings
  11980. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  11981. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11982. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11983. lt_cv_prog_compiler_c_o_CXX=yes
  11984. fi
  11985. fi
  11986. chmod u+w . 2>&5
  11987. $RM conftest*
  11988. # SGI C++ compiler will create directory out/ii_files/ for
  11989. # template instantiation
  11990. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11991. $RM out/* && rmdir out
  11992. cd ..
  11993. $RM -r conftest
  11994. $RM conftest*
  11995. fi
  11996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11997. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11999. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12000. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12001. $as_echo_n "(cached) " >&6
  12002. else
  12003. lt_cv_prog_compiler_c_o_CXX=no
  12004. $RM -r conftest 2>/dev/null
  12005. mkdir conftest
  12006. cd conftest
  12007. mkdir out
  12008. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12009. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12010. # Insert the option either (1) after the last *FLAGS variable, or
  12011. # (2) before a word containing "conftest.", or (3) at the end.
  12012. # Note that $ac_compile itself does not contain backslashes and begins
  12013. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12014. lt_compile=`echo "$ac_compile" | $SED \
  12015. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12016. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12017. -e 's:$: $lt_compiler_flag:'`
  12018. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12019. (eval "$lt_compile" 2>out/conftest.err)
  12020. ac_status=$?
  12021. cat out/conftest.err >&5
  12022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12023. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12024. then
  12025. # The compiler can only warn and ignore the option if not recognized
  12026. # So say no if there are warnings
  12027. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12028. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12029. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12030. lt_cv_prog_compiler_c_o_CXX=yes
  12031. fi
  12032. fi
  12033. chmod u+w . 2>&5
  12034. $RM conftest*
  12035. # SGI C++ compiler will create directory out/ii_files/ for
  12036. # template instantiation
  12037. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12038. $RM out/* && rmdir out
  12039. cd ..
  12040. $RM -r conftest
  12041. $RM conftest*
  12042. fi
  12043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12044. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12045. hard_links="nottested"
  12046. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12047. # do not overwrite the value of need_locks provided by the user
  12048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12049. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12050. hard_links=yes
  12051. $RM conftest*
  12052. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12053. touch conftest.a
  12054. ln conftest.a conftest.b 2>&5 || hard_links=no
  12055. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12057. $as_echo "$hard_links" >&6; }
  12058. if test "$hard_links" = no; then
  12059. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12060. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12061. need_locks=warn
  12062. fi
  12063. else
  12064. need_locks=no
  12065. fi
  12066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12067. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12068. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12069. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12070. case $host_os in
  12071. aix[4-9]*)
  12072. # If we're using GNU nm, then we don't want the "-C" option.
  12073. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12074. # Also, AIX nm treats weak defined symbols like other global defined
  12075. # symbols, whereas GNU nm marks them as "W".
  12076. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12077. 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'
  12078. else
  12079. 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'
  12080. fi
  12081. ;;
  12082. pw32*)
  12083. export_symbols_cmds_CXX="$ltdll_cmds"
  12084. ;;
  12085. cygwin* | mingw* | cegcc*)
  12086. case $cc_basename in
  12087. cl*)
  12088. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12089. ;;
  12090. *)
  12091. 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'
  12092. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12093. ;;
  12094. esac
  12095. ;;
  12096. *)
  12097. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12098. ;;
  12099. esac
  12100. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12101. $as_echo "$ld_shlibs_CXX" >&6; }
  12102. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12103. with_gnu_ld_CXX=$with_gnu_ld
  12104. #
  12105. # Do we need to explicitly link libc?
  12106. #
  12107. case "x$archive_cmds_need_lc_CXX" in
  12108. x|xyes)
  12109. # Assume -lc should be added
  12110. archive_cmds_need_lc_CXX=yes
  12111. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12112. case $archive_cmds_CXX in
  12113. *'~'*)
  12114. # FIXME: we may have to deal with multi-command sequences.
  12115. ;;
  12116. '$CC '*)
  12117. # Test whether the compiler implicitly links with -lc since on some
  12118. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12119. # to ld, don't add -lc before -lgcc.
  12120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12121. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12122. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12123. $as_echo_n "(cached) " >&6
  12124. else
  12125. $RM conftest*
  12126. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12127. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12128. (eval $ac_compile) 2>&5
  12129. ac_status=$?
  12130. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12131. test $ac_status = 0; } 2>conftest.err; then
  12132. soname=conftest
  12133. lib=conftest
  12134. libobjs=conftest.$ac_objext
  12135. deplibs=
  12136. wl=$lt_prog_compiler_wl_CXX
  12137. pic_flag=$lt_prog_compiler_pic_CXX
  12138. compiler_flags=-v
  12139. linker_flags=-v
  12140. verstring=
  12141. output_objdir=.
  12142. libname=conftest
  12143. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12144. allow_undefined_flag_CXX=
  12145. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12146. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12147. ac_status=$?
  12148. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12149. test $ac_status = 0; }
  12150. then
  12151. lt_cv_archive_cmds_need_lc_CXX=no
  12152. else
  12153. lt_cv_archive_cmds_need_lc_CXX=yes
  12154. fi
  12155. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12156. else
  12157. cat conftest.err 1>&5
  12158. fi
  12159. $RM conftest*
  12160. fi
  12161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12162. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12163. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12164. ;;
  12165. esac
  12166. fi
  12167. ;;
  12168. esac
  12169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12170. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12171. library_names_spec=
  12172. libname_spec='lib$name'
  12173. soname_spec=
  12174. shrext_cmds=".so"
  12175. postinstall_cmds=
  12176. postuninstall_cmds=
  12177. finish_cmds=
  12178. finish_eval=
  12179. shlibpath_var=
  12180. shlibpath_overrides_runpath=unknown
  12181. version_type=none
  12182. dynamic_linker="$host_os ld.so"
  12183. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12184. need_lib_prefix=unknown
  12185. hardcode_into_libs=no
  12186. # when you set need_version to no, make sure it does not cause -set_version
  12187. # flags to be left without arguments
  12188. need_version=unknown
  12189. case $host_os in
  12190. aix3*)
  12191. version_type=linux # correct to gnu/linux during the next big refactor
  12192. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12193. shlibpath_var=LIBPATH
  12194. # AIX 3 has no versioning support, so we append a major version to the name.
  12195. soname_spec='${libname}${release}${shared_ext}$major'
  12196. ;;
  12197. aix[4-9]*)
  12198. version_type=linux # correct to gnu/linux during the next big refactor
  12199. need_lib_prefix=no
  12200. need_version=no
  12201. hardcode_into_libs=yes
  12202. if test "$host_cpu" = ia64; then
  12203. # AIX 5 supports IA64
  12204. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12205. shlibpath_var=LD_LIBRARY_PATH
  12206. else
  12207. # With GCC up to 2.95.x, collect2 would create an import file
  12208. # for dependence libraries. The import file would start with
  12209. # the line `#! .'. This would cause the generated library to
  12210. # depend on `.', always an invalid library. This was fixed in
  12211. # development snapshots of GCC prior to 3.0.
  12212. case $host_os in
  12213. aix4 | aix4.[01] | aix4.[01].*)
  12214. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12215. echo ' yes '
  12216. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12217. :
  12218. else
  12219. can_build_shared=no
  12220. fi
  12221. ;;
  12222. esac
  12223. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12224. # soname into executable. Probably we can add versioning support to
  12225. # collect2, so additional links can be useful in future.
  12226. if test "$aix_use_runtimelinking" = yes; then
  12227. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12228. # instead of lib<name>.a to let people know that these are not
  12229. # typical AIX shared libraries.
  12230. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12231. else
  12232. # We preserve .a as extension for shared libraries through AIX4.2
  12233. # and later when we are not doing run time linking.
  12234. library_names_spec='${libname}${release}.a $libname.a'
  12235. soname_spec='${libname}${release}${shared_ext}$major'
  12236. fi
  12237. shlibpath_var=LIBPATH
  12238. fi
  12239. ;;
  12240. amigaos*)
  12241. case $host_cpu in
  12242. powerpc)
  12243. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12244. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12245. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12246. ;;
  12247. m68k)
  12248. library_names_spec='$libname.ixlibrary $libname.a'
  12249. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12250. 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'
  12251. ;;
  12252. esac
  12253. ;;
  12254. beos*)
  12255. library_names_spec='${libname}${shared_ext}'
  12256. dynamic_linker="$host_os ld.so"
  12257. shlibpath_var=LIBRARY_PATH
  12258. ;;
  12259. bsdi[45]*)
  12260. version_type=linux # correct to gnu/linux during the next big refactor
  12261. need_version=no
  12262. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12263. soname_spec='${libname}${release}${shared_ext}$major'
  12264. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12265. shlibpath_var=LD_LIBRARY_PATH
  12266. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12267. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12268. # the default ld.so.conf also contains /usr/contrib/lib and
  12269. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12270. # libtool to hard-code these into programs
  12271. ;;
  12272. cygwin* | mingw* | pw32* | cegcc*)
  12273. version_type=windows
  12274. shrext_cmds=".dll"
  12275. need_version=no
  12276. need_lib_prefix=no
  12277. case $GCC,$cc_basename in
  12278. yes,*)
  12279. # gcc
  12280. library_names_spec='$libname.dll.a'
  12281. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12282. postinstall_cmds='base_file=`basename \${file}`~
  12283. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12284. dldir=$destdir/`dirname \$dlpath`~
  12285. test -d \$dldir || mkdir -p \$dldir~
  12286. $install_prog $dir/$dlname \$dldir/$dlname~
  12287. chmod a+x \$dldir/$dlname~
  12288. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12289. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12290. fi'
  12291. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12292. dlpath=$dir/\$dldll~
  12293. $RM \$dlpath'
  12294. shlibpath_overrides_runpath=yes
  12295. case $host_os in
  12296. cygwin*)
  12297. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12298. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12299. ;;
  12300. mingw* | cegcc*)
  12301. # MinGW DLLs use traditional 'lib' prefix
  12302. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12303. ;;
  12304. pw32*)
  12305. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12306. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12307. ;;
  12308. esac
  12309. dynamic_linker='Win32 ld.exe'
  12310. ;;
  12311. *,cl*)
  12312. # Native MSVC
  12313. libname_spec='$name'
  12314. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12315. library_names_spec='${libname}.dll.lib'
  12316. case $build_os in
  12317. mingw*)
  12318. sys_lib_search_path_spec=
  12319. lt_save_ifs=$IFS
  12320. IFS=';'
  12321. for lt_path in $LIB
  12322. do
  12323. IFS=$lt_save_ifs
  12324. # Let DOS variable expansion print the short 8.3 style file name.
  12325. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12326. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12327. done
  12328. IFS=$lt_save_ifs
  12329. # Convert to MSYS style.
  12330. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12331. ;;
  12332. cygwin*)
  12333. # Convert to unix form, then to dos form, then back to unix form
  12334. # but this time dos style (no spaces!) so that the unix form looks
  12335. # like /cygdrive/c/PROGRA~1:/cygdr...
  12336. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12337. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12338. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12339. ;;
  12340. *)
  12341. sys_lib_search_path_spec="$LIB"
  12342. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12343. # It is most probably a Windows format PATH.
  12344. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12345. else
  12346. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12347. fi
  12348. # FIXME: find the short name or the path components, as spaces are
  12349. # common. (e.g. "Program Files" -> "PROGRA~1")
  12350. ;;
  12351. esac
  12352. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12353. postinstall_cmds='base_file=`basename \${file}`~
  12354. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12355. dldir=$destdir/`dirname \$dlpath`~
  12356. test -d \$dldir || mkdir -p \$dldir~
  12357. $install_prog $dir/$dlname \$dldir/$dlname'
  12358. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12359. dlpath=$dir/\$dldll~
  12360. $RM \$dlpath'
  12361. shlibpath_overrides_runpath=yes
  12362. dynamic_linker='Win32 link.exe'
  12363. ;;
  12364. *)
  12365. # Assume MSVC wrapper
  12366. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12367. dynamic_linker='Win32 ld.exe'
  12368. ;;
  12369. esac
  12370. # FIXME: first we should search . and the directory the executable is in
  12371. shlibpath_var=PATH
  12372. ;;
  12373. darwin* | rhapsody*)
  12374. dynamic_linker="$host_os dyld"
  12375. version_type=darwin
  12376. need_lib_prefix=no
  12377. need_version=no
  12378. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12379. soname_spec='${libname}${release}${major}$shared_ext'
  12380. shlibpath_overrides_runpath=yes
  12381. shlibpath_var=DYLD_LIBRARY_PATH
  12382. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12383. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12384. ;;
  12385. dgux*)
  12386. version_type=linux # correct to gnu/linux during the next big refactor
  12387. need_lib_prefix=no
  12388. need_version=no
  12389. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12390. soname_spec='${libname}${release}${shared_ext}$major'
  12391. shlibpath_var=LD_LIBRARY_PATH
  12392. ;;
  12393. freebsd* | dragonfly*)
  12394. # DragonFly does not have aout. When/if they implement a new
  12395. # versioning mechanism, adjust this.
  12396. if test -x /usr/bin/objformat; then
  12397. objformat=`/usr/bin/objformat`
  12398. else
  12399. case $host_os in
  12400. freebsd[23].*) objformat=aout ;;
  12401. *) objformat=elf ;;
  12402. esac
  12403. fi
  12404. version_type=freebsd-$objformat
  12405. case $version_type in
  12406. freebsd-elf*)
  12407. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12408. need_version=no
  12409. need_lib_prefix=no
  12410. ;;
  12411. freebsd-*)
  12412. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12413. need_version=yes
  12414. ;;
  12415. esac
  12416. shlibpath_var=LD_LIBRARY_PATH
  12417. case $host_os in
  12418. freebsd2.*)
  12419. shlibpath_overrides_runpath=yes
  12420. ;;
  12421. freebsd3.[01]* | freebsdelf3.[01]*)
  12422. shlibpath_overrides_runpath=yes
  12423. hardcode_into_libs=yes
  12424. ;;
  12425. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12426. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12427. shlibpath_overrides_runpath=no
  12428. hardcode_into_libs=yes
  12429. ;;
  12430. *) # from 4.6 on, and DragonFly
  12431. shlibpath_overrides_runpath=yes
  12432. hardcode_into_libs=yes
  12433. ;;
  12434. esac
  12435. ;;
  12436. gnu*)
  12437. version_type=linux # correct to gnu/linux during the next big refactor
  12438. need_lib_prefix=no
  12439. need_version=no
  12440. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12441. soname_spec='${libname}${release}${shared_ext}$major'
  12442. shlibpath_var=LD_LIBRARY_PATH
  12443. shlibpath_overrides_runpath=no
  12444. hardcode_into_libs=yes
  12445. ;;
  12446. haiku*)
  12447. version_type=linux # correct to gnu/linux during the next big refactor
  12448. need_lib_prefix=no
  12449. need_version=no
  12450. dynamic_linker="$host_os runtime_loader"
  12451. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12452. soname_spec='${libname}${release}${shared_ext}$major'
  12453. shlibpath_var=LIBRARY_PATH
  12454. shlibpath_overrides_runpath=yes
  12455. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12456. hardcode_into_libs=yes
  12457. ;;
  12458. hpux9* | hpux10* | hpux11*)
  12459. # Give a soname corresponding to the major version so that dld.sl refuses to
  12460. # link against other versions.
  12461. version_type=sunos
  12462. need_lib_prefix=no
  12463. need_version=no
  12464. case $host_cpu in
  12465. ia64*)
  12466. shrext_cmds='.so'
  12467. hardcode_into_libs=yes
  12468. dynamic_linker="$host_os dld.so"
  12469. shlibpath_var=LD_LIBRARY_PATH
  12470. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12471. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12472. soname_spec='${libname}${release}${shared_ext}$major'
  12473. if test "X$HPUX_IA64_MODE" = X32; then
  12474. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12475. else
  12476. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12477. fi
  12478. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12479. ;;
  12480. hppa*64*)
  12481. shrext_cmds='.sl'
  12482. hardcode_into_libs=yes
  12483. dynamic_linker="$host_os dld.sl"
  12484. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12485. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12486. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12487. soname_spec='${libname}${release}${shared_ext}$major'
  12488. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12489. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12490. ;;
  12491. *)
  12492. shrext_cmds='.sl'
  12493. dynamic_linker="$host_os dld.sl"
  12494. shlibpath_var=SHLIB_PATH
  12495. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12496. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12497. soname_spec='${libname}${release}${shared_ext}$major'
  12498. ;;
  12499. esac
  12500. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12501. postinstall_cmds='chmod 555 $lib'
  12502. # or fails outright, so override atomically:
  12503. install_override_mode=555
  12504. ;;
  12505. interix[3-9]*)
  12506. version_type=linux # correct to gnu/linux during the next big refactor
  12507. need_lib_prefix=no
  12508. need_version=no
  12509. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12510. soname_spec='${libname}${release}${shared_ext}$major'
  12511. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12512. shlibpath_var=LD_LIBRARY_PATH
  12513. shlibpath_overrides_runpath=no
  12514. hardcode_into_libs=yes
  12515. ;;
  12516. irix5* | irix6* | nonstopux*)
  12517. case $host_os in
  12518. nonstopux*) version_type=nonstopux ;;
  12519. *)
  12520. if test "$lt_cv_prog_gnu_ld" = yes; then
  12521. version_type=linux # correct to gnu/linux during the next big refactor
  12522. else
  12523. version_type=irix
  12524. fi ;;
  12525. esac
  12526. need_lib_prefix=no
  12527. need_version=no
  12528. soname_spec='${libname}${release}${shared_ext}$major'
  12529. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12530. case $host_os in
  12531. irix5* | nonstopux*)
  12532. libsuff= shlibsuff=
  12533. ;;
  12534. *)
  12535. case $LD in # libtool.m4 will add one of these switches to LD
  12536. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12537. libsuff= shlibsuff= libmagic=32-bit;;
  12538. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12539. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12540. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12541. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12542. *) libsuff= shlibsuff= libmagic=never-match;;
  12543. esac
  12544. ;;
  12545. esac
  12546. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12547. shlibpath_overrides_runpath=no
  12548. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12549. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12550. hardcode_into_libs=yes
  12551. ;;
  12552. # No shared lib support for Linux oldld, aout, or coff.
  12553. linux*oldld* | linux*aout* | linux*coff*)
  12554. dynamic_linker=no
  12555. ;;
  12556. # This must be glibc/ELF.
  12557. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12558. version_type=linux # correct to gnu/linux during the next big refactor
  12559. need_lib_prefix=no
  12560. need_version=no
  12561. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12562. soname_spec='${libname}${release}${shared_ext}$major'
  12563. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12564. shlibpath_var=LD_LIBRARY_PATH
  12565. shlibpath_overrides_runpath=no
  12566. # Some binutils ld are patched to set DT_RUNPATH
  12567. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12568. $as_echo_n "(cached) " >&6
  12569. else
  12570. lt_cv_shlibpath_overrides_runpath=no
  12571. save_LDFLAGS=$LDFLAGS
  12572. save_libdir=$libdir
  12573. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12574. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12575. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12576. /* end confdefs.h. */
  12577. int
  12578. main ()
  12579. {
  12580. ;
  12581. return 0;
  12582. }
  12583. _ACEOF
  12584. if ac_fn_cxx_try_link "$LINENO"; then :
  12585. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12586. lt_cv_shlibpath_overrides_runpath=yes
  12587. fi
  12588. fi
  12589. rm -f core conftest.err conftest.$ac_objext \
  12590. conftest$ac_exeext conftest.$ac_ext
  12591. LDFLAGS=$save_LDFLAGS
  12592. libdir=$save_libdir
  12593. fi
  12594. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12595. # This implies no fast_install, which is unacceptable.
  12596. # Some rework will be needed to allow for fast_install
  12597. # before this can be enabled.
  12598. hardcode_into_libs=yes
  12599. # Add ABI-specific directories to the system library path.
  12600. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  12601. # Append ld.so.conf contents to the search path
  12602. if test -f /etc/ld.so.conf; then
  12603. 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' ' '`
  12604. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  12605. fi
  12606. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12607. # powerpc, because MkLinux only supported shared libraries with the
  12608. # GNU dynamic linker. Since this was broken with cross compilers,
  12609. # most powerpc-linux boxes support dynamic linking these days and
  12610. # people can always --disable-shared, the test was removed, and we
  12611. # assume the GNU/Linux dynamic linker is in use.
  12612. dynamic_linker='GNU/Linux ld.so'
  12613. ;;
  12614. netbsd*)
  12615. version_type=sunos
  12616. need_lib_prefix=no
  12617. need_version=no
  12618. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12619. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12620. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12621. dynamic_linker='NetBSD (a.out) ld.so'
  12622. else
  12623. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12624. soname_spec='${libname}${release}${shared_ext}$major'
  12625. dynamic_linker='NetBSD ld.elf_so'
  12626. fi
  12627. shlibpath_var=LD_LIBRARY_PATH
  12628. shlibpath_overrides_runpath=yes
  12629. hardcode_into_libs=yes
  12630. ;;
  12631. newsos6)
  12632. version_type=linux # correct to gnu/linux during the next big refactor
  12633. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12634. shlibpath_var=LD_LIBRARY_PATH
  12635. shlibpath_overrides_runpath=yes
  12636. ;;
  12637. *nto* | *qnx*)
  12638. version_type=qnx
  12639. need_lib_prefix=no
  12640. need_version=no
  12641. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12642. soname_spec='${libname}${release}${shared_ext}$major'
  12643. shlibpath_var=LD_LIBRARY_PATH
  12644. shlibpath_overrides_runpath=no
  12645. hardcode_into_libs=yes
  12646. dynamic_linker='ldqnx.so'
  12647. ;;
  12648. openbsd*)
  12649. version_type=sunos
  12650. sys_lib_dlsearch_path_spec="/usr/lib"
  12651. need_lib_prefix=no
  12652. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12653. case $host_os in
  12654. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12655. *) need_version=no ;;
  12656. esac
  12657. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12658. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12659. shlibpath_var=LD_LIBRARY_PATH
  12660. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12661. case $host_os in
  12662. openbsd2.[89] | openbsd2.[89].*)
  12663. shlibpath_overrides_runpath=no
  12664. ;;
  12665. *)
  12666. shlibpath_overrides_runpath=yes
  12667. ;;
  12668. esac
  12669. else
  12670. shlibpath_overrides_runpath=yes
  12671. fi
  12672. ;;
  12673. os2*)
  12674. libname_spec='$name'
  12675. shrext_cmds=".dll"
  12676. need_lib_prefix=no
  12677. library_names_spec='$libname${shared_ext} $libname.a'
  12678. dynamic_linker='OS/2 ld.exe'
  12679. shlibpath_var=LIBPATH
  12680. ;;
  12681. osf3* | osf4* | osf5*)
  12682. version_type=osf
  12683. need_lib_prefix=no
  12684. need_version=no
  12685. soname_spec='${libname}${release}${shared_ext}$major'
  12686. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12687. shlibpath_var=LD_LIBRARY_PATH
  12688. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12689. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12690. ;;
  12691. rdos*)
  12692. dynamic_linker=no
  12693. ;;
  12694. solaris*)
  12695. version_type=linux # correct to gnu/linux during the next big refactor
  12696. need_lib_prefix=no
  12697. need_version=no
  12698. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12699. soname_spec='${libname}${release}${shared_ext}$major'
  12700. shlibpath_var=LD_LIBRARY_PATH
  12701. shlibpath_overrides_runpath=yes
  12702. hardcode_into_libs=yes
  12703. # ldd complains unless libraries are executable
  12704. postinstall_cmds='chmod +x $lib'
  12705. ;;
  12706. sunos4*)
  12707. version_type=sunos
  12708. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12709. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12710. shlibpath_var=LD_LIBRARY_PATH
  12711. shlibpath_overrides_runpath=yes
  12712. if test "$with_gnu_ld" = yes; then
  12713. need_lib_prefix=no
  12714. fi
  12715. need_version=yes
  12716. ;;
  12717. sysv4 | sysv4.3*)
  12718. version_type=linux # correct to gnu/linux during the next big refactor
  12719. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12720. soname_spec='${libname}${release}${shared_ext}$major'
  12721. shlibpath_var=LD_LIBRARY_PATH
  12722. case $host_vendor in
  12723. sni)
  12724. shlibpath_overrides_runpath=no
  12725. need_lib_prefix=no
  12726. runpath_var=LD_RUN_PATH
  12727. ;;
  12728. siemens)
  12729. need_lib_prefix=no
  12730. ;;
  12731. motorola)
  12732. need_lib_prefix=no
  12733. need_version=no
  12734. shlibpath_overrides_runpath=no
  12735. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12736. ;;
  12737. esac
  12738. ;;
  12739. sysv4*MP*)
  12740. if test -d /usr/nec ;then
  12741. version_type=linux # correct to gnu/linux during the next big refactor
  12742. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12743. soname_spec='$libname${shared_ext}.$major'
  12744. shlibpath_var=LD_LIBRARY_PATH
  12745. fi
  12746. ;;
  12747. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12748. version_type=freebsd-elf
  12749. need_lib_prefix=no
  12750. need_version=no
  12751. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12752. soname_spec='${libname}${release}${shared_ext}$major'
  12753. shlibpath_var=LD_LIBRARY_PATH
  12754. shlibpath_overrides_runpath=yes
  12755. hardcode_into_libs=yes
  12756. if test "$with_gnu_ld" = yes; then
  12757. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12758. else
  12759. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12760. case $host_os in
  12761. sco3.2v5*)
  12762. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12763. ;;
  12764. esac
  12765. fi
  12766. sys_lib_dlsearch_path_spec='/usr/lib'
  12767. ;;
  12768. tpf*)
  12769. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12770. version_type=linux # correct to gnu/linux during the next big refactor
  12771. need_lib_prefix=no
  12772. need_version=no
  12773. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12774. shlibpath_var=LD_LIBRARY_PATH
  12775. shlibpath_overrides_runpath=no
  12776. hardcode_into_libs=yes
  12777. ;;
  12778. uts4*)
  12779. version_type=linux # correct to gnu/linux during the next big refactor
  12780. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12781. soname_spec='${libname}${release}${shared_ext}$major'
  12782. shlibpath_var=LD_LIBRARY_PATH
  12783. ;;
  12784. *)
  12785. dynamic_linker=no
  12786. ;;
  12787. esac
  12788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12789. $as_echo "$dynamic_linker" >&6; }
  12790. test "$dynamic_linker" = no && can_build_shared=no
  12791. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12792. if test "$GCC" = yes; then
  12793. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12794. fi
  12795. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12796. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12797. fi
  12798. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12799. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12800. fi
  12801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12802. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12803. hardcode_action_CXX=
  12804. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12805. test -n "$runpath_var_CXX" ||
  12806. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12807. # We can hardcode non-existent directories.
  12808. if test "$hardcode_direct_CXX" != no &&
  12809. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12810. # have to relink, otherwise we might link with an installed library
  12811. # when we should be linking with a yet-to-be-installed one
  12812. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12813. test "$hardcode_minus_L_CXX" != no; then
  12814. # Linking always hardcodes the temporary library directory.
  12815. hardcode_action_CXX=relink
  12816. else
  12817. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12818. hardcode_action_CXX=immediate
  12819. fi
  12820. else
  12821. # We cannot hardcode anything, or else we can only hardcode existing
  12822. # directories.
  12823. hardcode_action_CXX=unsupported
  12824. fi
  12825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12826. $as_echo "$hardcode_action_CXX" >&6; }
  12827. if test "$hardcode_action_CXX" = relink ||
  12828. test "$inherit_rpath_CXX" = yes; then
  12829. # Fast installation is not supported
  12830. enable_fast_install=no
  12831. elif test "$shlibpath_overrides_runpath" = yes ||
  12832. test "$enable_shared" = no; then
  12833. # Fast installation is not necessary
  12834. enable_fast_install=needless
  12835. fi
  12836. fi # test -n "$compiler"
  12837. CC=$lt_save_CC
  12838. CFLAGS=$lt_save_CFLAGS
  12839. LDCXX=$LD
  12840. LD=$lt_save_LD
  12841. GCC=$lt_save_GCC
  12842. with_gnu_ld=$lt_save_with_gnu_ld
  12843. lt_cv_path_LDCXX=$lt_cv_path_LD
  12844. lt_cv_path_LD=$lt_save_path_LD
  12845. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12846. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12847. fi # test "$_lt_caught_CXX_error" != yes
  12848. ac_ext=c
  12849. ac_cpp='$CPP $CPPFLAGS'
  12850. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12851. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12852. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12853. ac_config_commands="$ac_config_commands libtool"
  12854. # Only expand once:
  12855. enable_win32_dll=yes
  12856. case $host in
  12857. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  12858. if test -n "$ac_tool_prefix"; then
  12859. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  12860. set dummy ${ac_tool_prefix}as; ac_word=$2
  12861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12862. $as_echo_n "checking for $ac_word... " >&6; }
  12863. if ${ac_cv_prog_AS+:} false; then :
  12864. $as_echo_n "(cached) " >&6
  12865. else
  12866. if test -n "$AS"; then
  12867. ac_cv_prog_AS="$AS" # Let the user override the test.
  12868. else
  12869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12870. for as_dir in $PATH
  12871. do
  12872. IFS=$as_save_IFS
  12873. test -z "$as_dir" && as_dir=.
  12874. for ac_exec_ext in '' $ac_executable_extensions; do
  12875. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12876. ac_cv_prog_AS="${ac_tool_prefix}as"
  12877. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12878. break 2
  12879. fi
  12880. done
  12881. done
  12882. IFS=$as_save_IFS
  12883. fi
  12884. fi
  12885. AS=$ac_cv_prog_AS
  12886. if test -n "$AS"; then
  12887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  12888. $as_echo "$AS" >&6; }
  12889. else
  12890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12891. $as_echo "no" >&6; }
  12892. fi
  12893. fi
  12894. if test -z "$ac_cv_prog_AS"; then
  12895. ac_ct_AS=$AS
  12896. # Extract the first word of "as", so it can be a program name with args.
  12897. set dummy as; ac_word=$2
  12898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12899. $as_echo_n "checking for $ac_word... " >&6; }
  12900. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  12901. $as_echo_n "(cached) " >&6
  12902. else
  12903. if test -n "$ac_ct_AS"; then
  12904. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  12905. else
  12906. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12907. for as_dir in $PATH
  12908. do
  12909. IFS=$as_save_IFS
  12910. test -z "$as_dir" && as_dir=.
  12911. for ac_exec_ext in '' $ac_executable_extensions; do
  12912. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12913. ac_cv_prog_ac_ct_AS="as"
  12914. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12915. break 2
  12916. fi
  12917. done
  12918. done
  12919. IFS=$as_save_IFS
  12920. fi
  12921. fi
  12922. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  12923. if test -n "$ac_ct_AS"; then
  12924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  12925. $as_echo "$ac_ct_AS" >&6; }
  12926. else
  12927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12928. $as_echo "no" >&6; }
  12929. fi
  12930. if test "x$ac_ct_AS" = x; then
  12931. AS="false"
  12932. else
  12933. case $cross_compiling:$ac_tool_warned in
  12934. yes:)
  12935. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12936. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12937. ac_tool_warned=yes ;;
  12938. esac
  12939. AS=$ac_ct_AS
  12940. fi
  12941. else
  12942. AS="$ac_cv_prog_AS"
  12943. fi
  12944. if test -n "$ac_tool_prefix"; then
  12945. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  12946. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  12947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12948. $as_echo_n "checking for $ac_word... " >&6; }
  12949. if ${ac_cv_prog_DLLTOOL+:} false; then :
  12950. $as_echo_n "(cached) " >&6
  12951. else
  12952. if test -n "$DLLTOOL"; then
  12953. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  12954. else
  12955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12956. for as_dir in $PATH
  12957. do
  12958. IFS=$as_save_IFS
  12959. test -z "$as_dir" && as_dir=.
  12960. for ac_exec_ext in '' $ac_executable_extensions; do
  12961. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12962. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  12963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12964. break 2
  12965. fi
  12966. done
  12967. done
  12968. IFS=$as_save_IFS
  12969. fi
  12970. fi
  12971. DLLTOOL=$ac_cv_prog_DLLTOOL
  12972. if test -n "$DLLTOOL"; then
  12973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  12974. $as_echo "$DLLTOOL" >&6; }
  12975. else
  12976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12977. $as_echo "no" >&6; }
  12978. fi
  12979. fi
  12980. if test -z "$ac_cv_prog_DLLTOOL"; then
  12981. ac_ct_DLLTOOL=$DLLTOOL
  12982. # Extract the first word of "dlltool", so it can be a program name with args.
  12983. set dummy dlltool; ac_word=$2
  12984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12985. $as_echo_n "checking for $ac_word... " >&6; }
  12986. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  12987. $as_echo_n "(cached) " >&6
  12988. else
  12989. if test -n "$ac_ct_DLLTOOL"; then
  12990. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  12991. else
  12992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12993. for as_dir in $PATH
  12994. do
  12995. IFS=$as_save_IFS
  12996. test -z "$as_dir" && as_dir=.
  12997. for ac_exec_ext in '' $ac_executable_extensions; do
  12998. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12999. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  13000. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13001. break 2
  13002. fi
  13003. done
  13004. done
  13005. IFS=$as_save_IFS
  13006. fi
  13007. fi
  13008. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  13009. if test -n "$ac_ct_DLLTOOL"; then
  13010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  13011. $as_echo "$ac_ct_DLLTOOL" >&6; }
  13012. else
  13013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13014. $as_echo "no" >&6; }
  13015. fi
  13016. if test "x$ac_ct_DLLTOOL" = x; then
  13017. DLLTOOL="false"
  13018. else
  13019. case $cross_compiling:$ac_tool_warned in
  13020. yes:)
  13021. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13022. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13023. ac_tool_warned=yes ;;
  13024. esac
  13025. DLLTOOL=$ac_ct_DLLTOOL
  13026. fi
  13027. else
  13028. DLLTOOL="$ac_cv_prog_DLLTOOL"
  13029. fi
  13030. if test -n "$ac_tool_prefix"; then
  13031. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  13032. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  13033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13034. $as_echo_n "checking for $ac_word... " >&6; }
  13035. if ${ac_cv_prog_OBJDUMP+:} false; then :
  13036. $as_echo_n "(cached) " >&6
  13037. else
  13038. if test -n "$OBJDUMP"; then
  13039. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  13040. else
  13041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13042. for as_dir in $PATH
  13043. do
  13044. IFS=$as_save_IFS
  13045. test -z "$as_dir" && as_dir=.
  13046. for ac_exec_ext in '' $ac_executable_extensions; do
  13047. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13048. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  13049. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13050. break 2
  13051. fi
  13052. done
  13053. done
  13054. IFS=$as_save_IFS
  13055. fi
  13056. fi
  13057. OBJDUMP=$ac_cv_prog_OBJDUMP
  13058. if test -n "$OBJDUMP"; then
  13059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  13060. $as_echo "$OBJDUMP" >&6; }
  13061. else
  13062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13063. $as_echo "no" >&6; }
  13064. fi
  13065. fi
  13066. if test -z "$ac_cv_prog_OBJDUMP"; then
  13067. ac_ct_OBJDUMP=$OBJDUMP
  13068. # Extract the first word of "objdump", so it can be a program name with args.
  13069. set dummy objdump; ac_word=$2
  13070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13071. $as_echo_n "checking for $ac_word... " >&6; }
  13072. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  13073. $as_echo_n "(cached) " >&6
  13074. else
  13075. if test -n "$ac_ct_OBJDUMP"; then
  13076. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  13077. else
  13078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13079. for as_dir in $PATH
  13080. do
  13081. IFS=$as_save_IFS
  13082. test -z "$as_dir" && as_dir=.
  13083. for ac_exec_ext in '' $ac_executable_extensions; do
  13084. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13085. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  13086. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13087. break 2
  13088. fi
  13089. done
  13090. done
  13091. IFS=$as_save_IFS
  13092. fi
  13093. fi
  13094. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  13095. if test -n "$ac_ct_OBJDUMP"; then
  13096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  13097. $as_echo "$ac_ct_OBJDUMP" >&6; }
  13098. else
  13099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13100. $as_echo "no" >&6; }
  13101. fi
  13102. if test "x$ac_ct_OBJDUMP" = x; then
  13103. OBJDUMP="false"
  13104. else
  13105. case $cross_compiling:$ac_tool_warned in
  13106. yes:)
  13107. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13108. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13109. ac_tool_warned=yes ;;
  13110. esac
  13111. OBJDUMP=$ac_ct_OBJDUMP
  13112. fi
  13113. else
  13114. OBJDUMP="$ac_cv_prog_OBJDUMP"
  13115. fi
  13116. ;;
  13117. esac
  13118. test -z "$AS" && AS=as
  13119. test -z "$DLLTOOL" && DLLTOOL=dlltool
  13120. test -z "$OBJDUMP" && OBJDUMP=objdump
  13121. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13122. if test -n "$ac_tool_prefix"; then
  13123. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13124. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13126. $as_echo_n "checking for $ac_word... " >&6; }
  13127. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  13128. $as_echo_n "(cached) " >&6
  13129. else
  13130. case $PKG_CONFIG in
  13131. [\\/]* | ?:[\\/]*)
  13132. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13133. ;;
  13134. *)
  13135. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13136. for as_dir in $PATH
  13137. do
  13138. IFS=$as_save_IFS
  13139. test -z "$as_dir" && as_dir=.
  13140. for ac_exec_ext in '' $ac_executable_extensions; do
  13141. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13142. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13143. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13144. break 2
  13145. fi
  13146. done
  13147. done
  13148. IFS=$as_save_IFS
  13149. ;;
  13150. esac
  13151. fi
  13152. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13153. if test -n "$PKG_CONFIG"; then
  13154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13155. $as_echo "$PKG_CONFIG" >&6; }
  13156. else
  13157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13158. $as_echo "no" >&6; }
  13159. fi
  13160. fi
  13161. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13162. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13163. # Extract the first word of "pkg-config", so it can be a program name with args.
  13164. set dummy pkg-config; ac_word=$2
  13165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13166. $as_echo_n "checking for $ac_word... " >&6; }
  13167. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  13168. $as_echo_n "(cached) " >&6
  13169. else
  13170. case $ac_pt_PKG_CONFIG in
  13171. [\\/]* | ?:[\\/]*)
  13172. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13173. ;;
  13174. *)
  13175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13176. for as_dir in $PATH
  13177. do
  13178. IFS=$as_save_IFS
  13179. test -z "$as_dir" && as_dir=.
  13180. for ac_exec_ext in '' $ac_executable_extensions; do
  13181. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13182. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13183. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13184. break 2
  13185. fi
  13186. done
  13187. done
  13188. IFS=$as_save_IFS
  13189. ;;
  13190. esac
  13191. fi
  13192. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13193. if test -n "$ac_pt_PKG_CONFIG"; then
  13194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  13195. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13196. else
  13197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13198. $as_echo "no" >&6; }
  13199. fi
  13200. if test "x$ac_pt_PKG_CONFIG" = x; then
  13201. PKG_CONFIG=""
  13202. else
  13203. case $cross_compiling:$ac_tool_warned in
  13204. yes:)
  13205. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13206. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13207. ac_tool_warned=yes ;;
  13208. esac
  13209. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13210. fi
  13211. else
  13212. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13213. fi
  13214. fi
  13215. if test -n "$PKG_CONFIG"; then
  13216. _pkg_min_version=0.9.0
  13217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  13218. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13219. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13221. $as_echo "yes" >&6; }
  13222. else
  13223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13224. $as_echo "no" >&6; }
  13225. PKG_CONFIG=""
  13226. fi
  13227. fi
  13228. pkg_failed=no
  13229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HUNSPELL" >&5
  13230. $as_echo_n "checking for HUNSPELL... " >&6; }
  13231. if test -n "$HUNSPELL_CFLAGS"; then
  13232. pkg_cv_HUNSPELL_CFLAGS="$HUNSPELL_CFLAGS"
  13233. elif test -n "$PKG_CONFIG"; then
  13234. if test -n "$PKG_CONFIG" && \
  13235. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hunspell\""; } >&5
  13236. ($PKG_CONFIG --exists --print-errors "hunspell") 2>&5
  13237. ac_status=$?
  13238. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13239. test $ac_status = 0; }; then
  13240. pkg_cv_HUNSPELL_CFLAGS=`$PKG_CONFIG --cflags "hunspell" 2>/dev/null`
  13241. else
  13242. pkg_failed=yes
  13243. fi
  13244. else
  13245. pkg_failed=untried
  13246. fi
  13247. if test -n "$HUNSPELL_LIBS"; then
  13248. pkg_cv_HUNSPELL_LIBS="$HUNSPELL_LIBS"
  13249. elif test -n "$PKG_CONFIG"; then
  13250. if test -n "$PKG_CONFIG" && \
  13251. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hunspell\""; } >&5
  13252. ($PKG_CONFIG --exists --print-errors "hunspell") 2>&5
  13253. ac_status=$?
  13254. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13255. test $ac_status = 0; }; then
  13256. pkg_cv_HUNSPELL_LIBS=`$PKG_CONFIG --libs "hunspell" 2>/dev/null`
  13257. else
  13258. pkg_failed=yes
  13259. fi
  13260. else
  13261. pkg_failed=untried
  13262. fi
  13263. if test $pkg_failed = yes; then
  13264. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13265. $as_echo "no" >&6; }
  13266. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  13267. _pkg_short_errors_supported=yes
  13268. else
  13269. _pkg_short_errors_supported=no
  13270. fi
  13271. if test $_pkg_short_errors_supported = yes; then
  13272. HUNSPELL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "hunspell" 2>&1`
  13273. else
  13274. HUNSPELL_PKG_ERRORS=`$PKG_CONFIG --print-errors "hunspell" 2>&1`
  13275. fi
  13276. # Put the nasty error message in config.log where it belongs
  13277. echo "$HUNSPELL_PKG_ERRORS" >&5
  13278. as_fn_error $? "Package requirements (hunspell) were not met:
  13279. $HUNSPELL_PKG_ERRORS
  13280. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  13281. installed software in a non-standard prefix.
  13282. Alternatively, you may set the environment variables HUNSPELL_CFLAGS
  13283. and HUNSPELL_LIBS to avoid the need to call pkg-config.
  13284. See the pkg-config man page for more details." "$LINENO" 5
  13285. elif test $pkg_failed = untried; then
  13286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13287. $as_echo "no" >&6; }
  13288. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13289. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13290. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  13291. is in your PATH or set the PKG_CONFIG environment variable to the full
  13292. path to pkg-config.
  13293. Alternatively, you may set the environment variables HUNSPELL_CFLAGS
  13294. and HUNSPELL_LIBS to avoid the need to call pkg-config.
  13295. See the pkg-config man page for more details.
  13296. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  13297. See \`config.log' for more details" "$LINENO" 5; }
  13298. else
  13299. HUNSPELL_CFLAGS=$pkg_cv_HUNSPELL_CFLAGS
  13300. HUNSPELL_LIBS=$pkg_cv_HUNSPELL_LIBS
  13301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13302. $as_echo "yes" >&6; }
  13303. fi
  13304. ac_config_files="$ac_config_files Makefile mythes.pc"
  13305. cat >confcache <<\_ACEOF
  13306. # This file is a shell script that caches the results of configure
  13307. # tests run on this system so they can be shared between configure
  13308. # scripts and configure runs, see configure's option --config-cache.
  13309. # It is not useful on other systems. If it contains results you don't
  13310. # want to keep, you may remove or edit it.
  13311. #
  13312. # config.status only pays attention to the cache file if you give it
  13313. # the --recheck option to rerun configure.
  13314. #
  13315. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13316. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13317. # following values.
  13318. _ACEOF
  13319. # The following way of writing the cache mishandles newlines in values,
  13320. # but we know of no workaround that is simple, portable, and efficient.
  13321. # So, we kill variables containing newlines.
  13322. # Ultrix sh set writes to stderr and can't be redirected directly,
  13323. # and sets the high bit in the cache file unless we assign to the vars.
  13324. (
  13325. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13326. eval ac_val=\$$ac_var
  13327. case $ac_val in #(
  13328. *${as_nl}*)
  13329. case $ac_var in #(
  13330. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13331. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13332. esac
  13333. case $ac_var in #(
  13334. _ | IFS | as_nl) ;; #(
  13335. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13336. *) { eval $ac_var=; unset $ac_var;} ;;
  13337. esac ;;
  13338. esac
  13339. done
  13340. (set) 2>&1 |
  13341. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13342. *${as_nl}ac_space=\ *)
  13343. # `set' does not quote correctly, so add quotes: double-quote
  13344. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13345. sed -n \
  13346. "s/'/'\\\\''/g;
  13347. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13348. ;; #(
  13349. *)
  13350. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13351. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13352. ;;
  13353. esac |
  13354. sort
  13355. ) |
  13356. sed '
  13357. /^ac_cv_env_/b end
  13358. t clear
  13359. :clear
  13360. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13361. t end
  13362. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13363. :end' >>confcache
  13364. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13365. if test -w "$cache_file"; then
  13366. if test "x$cache_file" != "x/dev/null"; then
  13367. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13368. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13369. if test ! -f "$cache_file" || test -h "$cache_file"; then
  13370. cat confcache >"$cache_file"
  13371. else
  13372. case $cache_file in #(
  13373. */* | ?:*)
  13374. mv -f confcache "$cache_file"$$ &&
  13375. mv -f "$cache_file"$$ "$cache_file" ;; #(
  13376. *)
  13377. mv -f confcache "$cache_file" ;;
  13378. esac
  13379. fi
  13380. fi
  13381. else
  13382. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13383. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13384. fi
  13385. fi
  13386. rm -f confcache
  13387. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13388. # Let make expand exec_prefix.
  13389. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13390. DEFS=-DHAVE_CONFIG_H
  13391. ac_libobjs=
  13392. ac_ltlibobjs=
  13393. U=
  13394. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13395. # 1. Remove the extension, and $U if already installed.
  13396. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13397. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13398. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  13399. # will be set to the directory where LIBOBJS objects are built.
  13400. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13401. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13402. done
  13403. LIBOBJS=$ac_libobjs
  13404. LTLIBOBJS=$ac_ltlibobjs
  13405. if test -n "$EXEEXT"; then
  13406. am__EXEEXT_TRUE=
  13407. am__EXEEXT_FALSE='#'
  13408. else
  13409. am__EXEEXT_TRUE='#'
  13410. am__EXEEXT_FALSE=
  13411. fi
  13412. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  13413. as_fn_error $? "conditional \"AMDEP\" was never defined.
  13414. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13415. fi
  13416. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  13417. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  13418. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13419. fi
  13420. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  13421. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  13422. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13423. fi
  13424. : "${CONFIG_STATUS=./config.status}"
  13425. ac_write_fail=0
  13426. ac_clean_files_save=$ac_clean_files
  13427. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13428. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13429. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13430. as_write_fail=0
  13431. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13432. #! $SHELL
  13433. # Generated by $as_me.
  13434. # Run this file to recreate the current configuration.
  13435. # Compiler output produced by configure, useful for debugging
  13436. # configure, is in config.log if it exists.
  13437. debug=false
  13438. ac_cs_recheck=false
  13439. ac_cs_silent=false
  13440. SHELL=\${CONFIG_SHELL-$SHELL}
  13441. export SHELL
  13442. _ASEOF
  13443. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13444. ## -------------------- ##
  13445. ## M4sh Initialization. ##
  13446. ## -------------------- ##
  13447. # Be more Bourne compatible
  13448. DUALCASE=1; export DUALCASE # for MKS sh
  13449. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13450. emulate sh
  13451. NULLCMD=:
  13452. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13453. # is contrary to our usage. Disable this feature.
  13454. alias -g '${1+"$@"}'='"$@"'
  13455. setopt NO_GLOB_SUBST
  13456. else
  13457. case `(set -o) 2>/dev/null` in #(
  13458. *posix*) :
  13459. set -o posix ;; #(
  13460. *) :
  13461. ;;
  13462. esac
  13463. fi
  13464. as_nl='
  13465. '
  13466. export as_nl
  13467. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13468. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13469. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13470. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13471. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13472. # but without wasting forks for bash or zsh.
  13473. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13474. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13475. as_echo='print -r --'
  13476. as_echo_n='print -rn --'
  13477. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13478. as_echo='printf %s\n'
  13479. as_echo_n='printf %s'
  13480. else
  13481. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13482. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13483. as_echo_n='/usr/ucb/echo -n'
  13484. else
  13485. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13486. as_echo_n_body='eval
  13487. arg=$1;
  13488. case $arg in #(
  13489. *"$as_nl"*)
  13490. expr "X$arg" : "X\\(.*\\)$as_nl";
  13491. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13492. esac;
  13493. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13494. '
  13495. export as_echo_n_body
  13496. as_echo_n='sh -c $as_echo_n_body as_echo'
  13497. fi
  13498. export as_echo_body
  13499. as_echo='sh -c $as_echo_body as_echo'
  13500. fi
  13501. # The user is always right.
  13502. if test "${PATH_SEPARATOR+set}" != set; then
  13503. PATH_SEPARATOR=:
  13504. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13505. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13506. PATH_SEPARATOR=';'
  13507. }
  13508. fi
  13509. # IFS
  13510. # We need space, tab and new line, in precisely that order. Quoting is
  13511. # there to prevent editors from complaining about space-tab.
  13512. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13513. # splitting by setting IFS to empty value.)
  13514. IFS=" "" $as_nl"
  13515. # Find who we are. Look in the path if we contain no directory separator.
  13516. as_myself=
  13517. case $0 in #((
  13518. *[\\/]* ) as_myself=$0 ;;
  13519. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13520. for as_dir in $PATH
  13521. do
  13522. IFS=$as_save_IFS
  13523. test -z "$as_dir" && as_dir=.
  13524. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13525. done
  13526. IFS=$as_save_IFS
  13527. ;;
  13528. esac
  13529. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13530. # in which case we are not to be found in the path.
  13531. if test "x$as_myself" = x; then
  13532. as_myself=$0
  13533. fi
  13534. if test ! -f "$as_myself"; then
  13535. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13536. exit 1
  13537. fi
  13538. # Unset variables that we do not need and which cause bugs (e.g. in
  13539. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13540. # suppresses any "Segmentation fault" message there. '((' could
  13541. # trigger a bug in pdksh 5.2.14.
  13542. for as_var in BASH_ENV ENV MAIL MAILPATH
  13543. do eval test x\${$as_var+set} = xset \
  13544. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13545. done
  13546. PS1='$ '
  13547. PS2='> '
  13548. PS4='+ '
  13549. # NLS nuisances.
  13550. LC_ALL=C
  13551. export LC_ALL
  13552. LANGUAGE=C
  13553. export LANGUAGE
  13554. # CDPATH.
  13555. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13556. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  13557. # ----------------------------------------
  13558. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13559. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13560. # script with STATUS, using 1 if that was 0.
  13561. as_fn_error ()
  13562. {
  13563. as_status=$1; test $as_status -eq 0 && as_status=1
  13564. if test "$4"; then
  13565. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13566. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  13567. fi
  13568. $as_echo "$as_me: error: $2" >&2
  13569. as_fn_exit $as_status
  13570. } # as_fn_error
  13571. # as_fn_set_status STATUS
  13572. # -----------------------
  13573. # Set $? to STATUS, without forking.
  13574. as_fn_set_status ()
  13575. {
  13576. return $1
  13577. } # as_fn_set_status
  13578. # as_fn_exit STATUS
  13579. # -----------------
  13580. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13581. as_fn_exit ()
  13582. {
  13583. set +e
  13584. as_fn_set_status $1
  13585. exit $1
  13586. } # as_fn_exit
  13587. # as_fn_unset VAR
  13588. # ---------------
  13589. # Portably unset VAR.
  13590. as_fn_unset ()
  13591. {
  13592. { eval $1=; unset $1;}
  13593. }
  13594. as_unset=as_fn_unset
  13595. # as_fn_append VAR VALUE
  13596. # ----------------------
  13597. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13598. # advantage of any shell optimizations that allow amortized linear growth over
  13599. # repeated appends, instead of the typical quadratic growth present in naive
  13600. # implementations.
  13601. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13602. eval 'as_fn_append ()
  13603. {
  13604. eval $1+=\$2
  13605. }'
  13606. else
  13607. as_fn_append ()
  13608. {
  13609. eval $1=\$$1\$2
  13610. }
  13611. fi # as_fn_append
  13612. # as_fn_arith ARG...
  13613. # ------------------
  13614. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13615. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13616. # must be portable across $(()) and expr.
  13617. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13618. eval 'as_fn_arith ()
  13619. {
  13620. as_val=$(( $* ))
  13621. }'
  13622. else
  13623. as_fn_arith ()
  13624. {
  13625. as_val=`expr "$@" || test $? -eq 1`
  13626. }
  13627. fi # as_fn_arith
  13628. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13629. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13630. as_expr=expr
  13631. else
  13632. as_expr=false
  13633. fi
  13634. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13635. as_basename=basename
  13636. else
  13637. as_basename=false
  13638. fi
  13639. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13640. as_dirname=dirname
  13641. else
  13642. as_dirname=false
  13643. fi
  13644. as_me=`$as_basename -- "$0" ||
  13645. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13646. X"$0" : 'X\(//\)$' \| \
  13647. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13648. $as_echo X/"$0" |
  13649. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13650. s//\1/
  13651. q
  13652. }
  13653. /^X\/\(\/\/\)$/{
  13654. s//\1/
  13655. q
  13656. }
  13657. /^X\/\(\/\).*/{
  13658. s//\1/
  13659. q
  13660. }
  13661. s/.*/./; q'`
  13662. # Avoid depending upon Character Ranges.
  13663. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13664. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13665. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13666. as_cr_digits='0123456789'
  13667. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13668. ECHO_C= ECHO_N= ECHO_T=
  13669. case `echo -n x` in #(((((
  13670. -n*)
  13671. case `echo 'xy\c'` in
  13672. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13673. xy) ECHO_C='\c';;
  13674. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13675. ECHO_T=' ';;
  13676. esac;;
  13677. *)
  13678. ECHO_N='-n';;
  13679. esac
  13680. rm -f conf$$ conf$$.exe conf$$.file
  13681. if test -d conf$$.dir; then
  13682. rm -f conf$$.dir/conf$$.file
  13683. else
  13684. rm -f conf$$.dir
  13685. mkdir conf$$.dir 2>/dev/null
  13686. fi
  13687. if (echo >conf$$.file) 2>/dev/null; then
  13688. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13689. as_ln_s='ln -s'
  13690. # ... but there are two gotchas:
  13691. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13692. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13693. # In both cases, we have to default to `cp -p'.
  13694. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13695. as_ln_s='cp -p'
  13696. elif ln conf$$.file conf$$ 2>/dev/null; then
  13697. as_ln_s=ln
  13698. else
  13699. as_ln_s='cp -p'
  13700. fi
  13701. else
  13702. as_ln_s='cp -p'
  13703. fi
  13704. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13705. rmdir conf$$.dir 2>/dev/null
  13706. # as_fn_mkdir_p
  13707. # -------------
  13708. # Create "$as_dir" as a directory, including parents if necessary.
  13709. as_fn_mkdir_p ()
  13710. {
  13711. case $as_dir in #(
  13712. -*) as_dir=./$as_dir;;
  13713. esac
  13714. test -d "$as_dir" || eval $as_mkdir_p || {
  13715. as_dirs=
  13716. while :; do
  13717. case $as_dir in #(
  13718. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13719. *) as_qdir=$as_dir;;
  13720. esac
  13721. as_dirs="'$as_qdir' $as_dirs"
  13722. as_dir=`$as_dirname -- "$as_dir" ||
  13723. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13724. X"$as_dir" : 'X\(//\)[^/]' \| \
  13725. X"$as_dir" : 'X\(//\)$' \| \
  13726. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13727. $as_echo X"$as_dir" |
  13728. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13729. s//\1/
  13730. q
  13731. }
  13732. /^X\(\/\/\)[^/].*/{
  13733. s//\1/
  13734. q
  13735. }
  13736. /^X\(\/\/\)$/{
  13737. s//\1/
  13738. q
  13739. }
  13740. /^X\(\/\).*/{
  13741. s//\1/
  13742. q
  13743. }
  13744. s/.*/./; q'`
  13745. test -d "$as_dir" && break
  13746. done
  13747. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13748. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  13749. } # as_fn_mkdir_p
  13750. if mkdir -p . 2>/dev/null; then
  13751. as_mkdir_p='mkdir -p "$as_dir"'
  13752. else
  13753. test -d ./-p && rmdir ./-p
  13754. as_mkdir_p=false
  13755. fi
  13756. if test -x / >/dev/null 2>&1; then
  13757. as_test_x='test -x'
  13758. else
  13759. if ls -dL / >/dev/null 2>&1; then
  13760. as_ls_L_option=L
  13761. else
  13762. as_ls_L_option=
  13763. fi
  13764. as_test_x='
  13765. eval sh -c '\''
  13766. if test -d "$1"; then
  13767. test -d "$1/.";
  13768. else
  13769. case $1 in #(
  13770. -*)set "./$1";;
  13771. esac;
  13772. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13773. ???[sx]*):;;*)false;;esac;fi
  13774. '\'' sh
  13775. '
  13776. fi
  13777. as_executable_p=$as_test_x
  13778. # Sed expression to map a string onto a valid CPP name.
  13779. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13780. # Sed expression to map a string onto a valid variable name.
  13781. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13782. exec 6>&1
  13783. ## ----------------------------------- ##
  13784. ## Main body of $CONFIG_STATUS script. ##
  13785. ## ----------------------------------- ##
  13786. _ASEOF
  13787. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13788. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13789. # Save the log message, to keep $0 and so on meaningful, and to
  13790. # report actual input values of CONFIG_FILES etc. instead of their
  13791. # values after options handling.
  13792. ac_log="
  13793. This file was extended by mythes $as_me 1.2.3, which was
  13794. generated by GNU Autoconf 2.68. Invocation command line was
  13795. CONFIG_FILES = $CONFIG_FILES
  13796. CONFIG_HEADERS = $CONFIG_HEADERS
  13797. CONFIG_LINKS = $CONFIG_LINKS
  13798. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13799. $ $0 $@
  13800. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13801. "
  13802. _ACEOF
  13803. case $ac_config_files in *"
  13804. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13805. esac
  13806. case $ac_config_headers in *"
  13807. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13808. esac
  13809. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13810. # Files that config.status was made for.
  13811. config_files="$ac_config_files"
  13812. config_headers="$ac_config_headers"
  13813. config_commands="$ac_config_commands"
  13814. _ACEOF
  13815. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13816. ac_cs_usage="\
  13817. \`$as_me' instantiates files and other configuration actions
  13818. from templates according to the current configuration. Unless the files
  13819. and actions are specified as TAGs, all are instantiated by default.
  13820. Usage: $0 [OPTION]... [TAG]...
  13821. -h, --help print this help, then exit
  13822. -V, --version print version number and configuration settings, then exit
  13823. --config print configuration, then exit
  13824. -q, --quiet, --silent
  13825. do not print progress messages
  13826. -d, --debug don't remove temporary files
  13827. --recheck update $as_me by reconfiguring in the same conditions
  13828. --file=FILE[:TEMPLATE]
  13829. instantiate the configuration file FILE
  13830. --header=FILE[:TEMPLATE]
  13831. instantiate the configuration header FILE
  13832. Configuration files:
  13833. $config_files
  13834. Configuration headers:
  13835. $config_headers
  13836. Configuration commands:
  13837. $config_commands
  13838. Report bugs to <nemeth@openoffice.org>."
  13839. _ACEOF
  13840. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13841. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13842. ac_cs_version="\\
  13843. mythes config.status 1.2.3
  13844. configured by $0, generated by GNU Autoconf 2.68,
  13845. with options \\"\$ac_cs_config\\"
  13846. Copyright (C) 2010 Free Software Foundation, Inc.
  13847. This config.status script is free software; the Free Software Foundation
  13848. gives unlimited permission to copy, distribute and modify it."
  13849. ac_pwd='$ac_pwd'
  13850. srcdir='$srcdir'
  13851. INSTALL='$INSTALL'
  13852. MKDIR_P='$MKDIR_P'
  13853. AWK='$AWK'
  13854. test -n "\$AWK" || AWK=awk
  13855. _ACEOF
  13856. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13857. # The default lists apply if the user does not specify any file.
  13858. ac_need_defaults=:
  13859. while test $# != 0
  13860. do
  13861. case $1 in
  13862. --*=?*)
  13863. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13864. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13865. ac_shift=:
  13866. ;;
  13867. --*=)
  13868. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13869. ac_optarg=
  13870. ac_shift=:
  13871. ;;
  13872. *)
  13873. ac_option=$1
  13874. ac_optarg=$2
  13875. ac_shift=shift
  13876. ;;
  13877. esac
  13878. case $ac_option in
  13879. # Handling of the options.
  13880. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13881. ac_cs_recheck=: ;;
  13882. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13883. $as_echo "$ac_cs_version"; exit ;;
  13884. --config | --confi | --conf | --con | --co | --c )
  13885. $as_echo "$ac_cs_config"; exit ;;
  13886. --debug | --debu | --deb | --de | --d | -d )
  13887. debug=: ;;
  13888. --file | --fil | --fi | --f )
  13889. $ac_shift
  13890. case $ac_optarg in
  13891. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13892. '') as_fn_error $? "missing file argument" ;;
  13893. esac
  13894. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13895. ac_need_defaults=false;;
  13896. --header | --heade | --head | --hea )
  13897. $ac_shift
  13898. case $ac_optarg in
  13899. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13900. esac
  13901. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13902. ac_need_defaults=false;;
  13903. --he | --h)
  13904. # Conflict between --help and --header
  13905. as_fn_error $? "ambiguous option: \`$1'
  13906. Try \`$0 --help' for more information.";;
  13907. --help | --hel | -h )
  13908. $as_echo "$ac_cs_usage"; exit ;;
  13909. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13910. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13911. ac_cs_silent=: ;;
  13912. # This is an error.
  13913. -*) as_fn_error $? "unrecognized option: \`$1'
  13914. Try \`$0 --help' for more information." ;;
  13915. *) as_fn_append ac_config_targets " $1"
  13916. ac_need_defaults=false ;;
  13917. esac
  13918. shift
  13919. done
  13920. ac_configure_extra_args=
  13921. if $ac_cs_silent; then
  13922. exec 6>/dev/null
  13923. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13924. fi
  13925. _ACEOF
  13926. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13927. if \$ac_cs_recheck; then
  13928. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13929. shift
  13930. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13931. CONFIG_SHELL='$SHELL'
  13932. export CONFIG_SHELL
  13933. exec "\$@"
  13934. fi
  13935. _ACEOF
  13936. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13937. exec 5>>config.log
  13938. {
  13939. echo
  13940. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13941. ## Running $as_me. ##
  13942. _ASBOX
  13943. $as_echo "$ac_log"
  13944. } >&5
  13945. _ACEOF
  13946. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13947. #
  13948. # INIT-COMMANDS
  13949. #
  13950. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13951. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13952. # if CDPATH is set.
  13953. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13954. sed_quote_subst='$sed_quote_subst'
  13955. double_quote_subst='$double_quote_subst'
  13956. delay_variable_subst='$delay_variable_subst'
  13957. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  13958. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  13959. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  13960. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  13961. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  13962. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  13963. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  13964. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  13965. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  13966. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  13967. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  13968. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  13969. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  13970. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  13971. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  13972. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  13973. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  13974. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  13975. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  13976. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  13977. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  13978. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  13979. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  13980. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  13981. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  13982. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  13983. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  13984. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  13985. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  13986. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  13987. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  13988. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  13989. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  13990. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  13991. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  13992. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  13993. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  13994. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  13995. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  13996. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  13997. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  13998. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  13999. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  14000. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  14001. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  14002. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  14003. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  14004. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  14005. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  14006. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  14007. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  14008. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  14009. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  14010. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  14011. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  14012. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  14013. 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"`'
  14014. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  14015. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  14016. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  14017. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  14018. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  14019. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  14020. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  14021. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  14022. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  14023. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  14024. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  14025. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  14026. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  14027. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  14028. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  14029. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  14030. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  14031. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  14032. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  14033. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  14034. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  14035. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  14036. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  14037. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  14038. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  14039. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from