PageRenderTime 130ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 2ms

/Modules/_ctypes/libffi/configure

http://unladen-swallow.googlecode.com/
Shell | 15528 lines | 12925 code | 1122 blank | 1481 comment | 943 complexity | a0cecb7eb9cff7722ada11afa5804163 MD5 | raw file
Possible License(s): 0BSD, BSD-3-Clause
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for libffi 3.0.5.
  4. #
  5. # Report bugs to <http://gcc.gnu.org/bugs.html>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. # Check that we are running under the correct shell.
  476. SHELL=${CONFIG_SHELL-/bin/sh}
  477. case X$ECHO in
  478. X*--fallback-echo)
  479. # Remove one level of quotation (which was required for Make).
  480. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  481. ;;
  482. esac
  483. echo=${ECHO-echo}
  484. if test "X$1" = X--no-reexec; then
  485. # Discard the --no-reexec flag, and continue.
  486. shift
  487. elif test "X$1" = X--fallback-echo; then
  488. # Avoid inline document here, it may be left over
  489. :
  490. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  491. # Yippee, $echo works!
  492. :
  493. else
  494. # Restart under the correct shell.
  495. exec $SHELL "$0" --no-reexec ${1+"$@"}
  496. fi
  497. if test "X$1" = X--fallback-echo; then
  498. # used as fallback echo
  499. shift
  500. cat <<EOF
  501. $*
  502. EOF
  503. exit 0
  504. fi
  505. # The HP-UX ksh and POSIX shell print the target directory to stdout
  506. # if CDPATH is set.
  507. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  508. if test -z "$ECHO"; then
  509. if test "X${echo_test_string+set}" != Xset; then
  510. # find a string as large as possible, as long as the shell can cope with it
  511. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  512. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  513. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  514. echo_test_string=`eval $cmd` &&
  515. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  516. then
  517. break
  518. fi
  519. done
  520. fi
  521. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  522. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  523. test "X$echo_testing_string" = "X$echo_test_string"; then
  524. :
  525. else
  526. # The Solaris, AIX, and Digital Unix default echo programs unquote
  527. # backslashes. This makes it impossible to quote backslashes using
  528. # echo "$something" | sed 's/\\/\\\\/g'
  529. #
  530. # So, first we look for a working echo in the user's PATH.
  531. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  532. for dir in $PATH /usr/ucb; do
  533. IFS="$lt_save_ifs"
  534. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  535. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  536. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  537. test "X$echo_testing_string" = "X$echo_test_string"; then
  538. echo="$dir/echo"
  539. break
  540. fi
  541. done
  542. IFS="$lt_save_ifs"
  543. if test "X$echo" = Xecho; then
  544. # We didn't find a better echo, so look for alternatives.
  545. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  546. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  547. test "X$echo_testing_string" = "X$echo_test_string"; then
  548. # This shell has a builtin print -r that does the trick.
  549. echo='print -r'
  550. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  551. test "X$CONFIG_SHELL" != X/bin/ksh; then
  552. # If we have ksh, try running configure again with it.
  553. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  554. export ORIGINAL_CONFIG_SHELL
  555. CONFIG_SHELL=/bin/ksh
  556. export CONFIG_SHELL
  557. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  558. else
  559. # Try using printf.
  560. echo='printf %s\n'
  561. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  562. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  563. test "X$echo_testing_string" = "X$echo_test_string"; then
  564. # Cool, printf works
  565. :
  566. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  567. test "X$echo_testing_string" = 'X\t' &&
  568. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  569. test "X$echo_testing_string" = "X$echo_test_string"; then
  570. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  571. export CONFIG_SHELL
  572. SHELL="$CONFIG_SHELL"
  573. export SHELL
  574. echo="$CONFIG_SHELL $0 --fallback-echo"
  575. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  576. test "X$echo_testing_string" = 'X\t' &&
  577. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  578. test "X$echo_testing_string" = "X$echo_test_string"; then
  579. echo="$CONFIG_SHELL $0 --fallback-echo"
  580. else
  581. # maybe with a smaller string...
  582. prev=:
  583. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  584. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  585. then
  586. break
  587. fi
  588. prev="$cmd"
  589. done
  590. if test "$prev" != 'sed 50q "$0"'; then
  591. echo_test_string=`eval $prev`
  592. export echo_test_string
  593. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  594. else
  595. # Oops. We lost completely, so just stick with echo.
  596. echo=echo
  597. fi
  598. fi
  599. fi
  600. fi
  601. fi
  602. fi
  603. # Copy echo and quote the copy suitably for passing to libtool from
  604. # the Makefile, instead of quoting the original, which is used later.
  605. ECHO=$echo
  606. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  607. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  608. fi
  609. tagnames=${tagnames+${tagnames},}CXX
  610. tagnames=${tagnames+${tagnames},}F77
  611. exec 7<&0 </dev/null 6>&1
  612. # Name of the host.
  613. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  614. # so uname gets run too.
  615. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  616. #
  617. # Initializations.
  618. #
  619. ac_default_prefix=/usr/local
  620. ac_clean_files=
  621. ac_config_libobj_dir=.
  622. LIBOBJS=
  623. cross_compiling=no
  624. subdirs=
  625. MFLAGS=
  626. MAKEFLAGS=
  627. SHELL=${CONFIG_SHELL-/bin/sh}
  628. # Identity of this package.
  629. PACKAGE_NAME='libffi'
  630. PACKAGE_TARNAME='libffi'
  631. PACKAGE_VERSION='3.0.5'
  632. PACKAGE_STRING='libffi 3.0.5'
  633. PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
  634. # Factoring default headers for most tests.
  635. ac_includes_default="\
  636. #include <stdio.h>
  637. #ifdef HAVE_SYS_TYPES_H
  638. # include <sys/types.h>
  639. #endif
  640. #ifdef HAVE_SYS_STAT_H
  641. # include <sys/stat.h>
  642. #endif
  643. #ifdef STDC_HEADERS
  644. # include <stdlib.h>
  645. # include <stddef.h>
  646. #else
  647. # ifdef HAVE_STDLIB_H
  648. # include <stdlib.h>
  649. # endif
  650. #endif
  651. #ifdef HAVE_STRING_H
  652. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  653. # include <memory.h>
  654. # endif
  655. # include <string.h>
  656. #endif
  657. #ifdef HAVE_STRINGS_H
  658. # include <strings.h>
  659. #endif
  660. #ifdef HAVE_INTTYPES_H
  661. # include <inttypes.h>
  662. #endif
  663. #ifdef HAVE_STDINT_H
  664. # include <stdint.h>
  665. #endif
  666. #ifdef HAVE_UNISTD_H
  667. # include <unistd.h>
  668. #endif"
  669. ac_subst_vars='SHELL
  670. PATH_SEPARATOR
  671. PACKAGE_NAME
  672. PACKAGE_TARNAME
  673. PACKAGE_VERSION
  674. PACKAGE_STRING
  675. PACKAGE_BUGREPORT
  676. exec_prefix
  677. prefix
  678. program_transform_name
  679. bindir
  680. sbindir
  681. libexecdir
  682. datarootdir
  683. datadir
  684. sysconfdir
  685. sharedstatedir
  686. localstatedir
  687. includedir
  688. oldincludedir
  689. docdir
  690. infodir
  691. htmldir
  692. dvidir
  693. pdfdir
  694. psdir
  695. libdir
  696. localedir
  697. mandir
  698. DEFS
  699. ECHO_C
  700. ECHO_N
  701. ECHO_T
  702. LIBS
  703. build_alias
  704. host_alias
  705. target_alias
  706. build
  707. build_cpu
  708. build_vendor
  709. build_os
  710. host
  711. host_cpu
  712. host_vendor
  713. host_os
  714. target
  715. target_cpu
  716. target_vendor
  717. target_os
  718. INSTALL_PROGRAM
  719. INSTALL_SCRIPT
  720. INSTALL_DATA
  721. am__isrc
  722. CYGPATH_W
  723. PACKAGE
  724. VERSION
  725. ACLOCAL
  726. AUTOCONF
  727. AUTOMAKE
  728. AUTOHEADER
  729. MAKEINFO
  730. install_sh
  731. STRIP
  732. INSTALL_STRIP_PROGRAM
  733. mkdir_p
  734. AWK
  735. SET_MAKE
  736. am__leading_dot
  737. AMTAR
  738. am__tar
  739. am__untar
  740. CC
  741. CFLAGS
  742. LDFLAGS
  743. CPPFLAGS
  744. ac_ct_CC
  745. EXEEXT
  746. OBJEXT
  747. DEPDIR
  748. am__include
  749. am__quote
  750. AMDEP_TRUE
  751. AMDEP_FALSE
  752. AMDEPBACKSLASH
  753. CCDEPMODE
  754. am__fastdepCC_TRUE
  755. am__fastdepCC_FALSE
  756. CCAS
  757. CCASFLAGS
  758. CCASDEPMODE
  759. am__fastdepCCAS_TRUE
  760. am__fastdepCCAS_FALSE
  761. SED
  762. GREP
  763. EGREP
  764. LN_S
  765. ECHO
  766. AR
  767. RANLIB
  768. CPP
  769. CXX
  770. CXXFLAGS
  771. ac_ct_CXX
  772. CXXDEPMODE
  773. am__fastdepCXX_TRUE
  774. am__fastdepCXX_FALSE
  775. CXXCPP
  776. F77
  777. FFLAGS
  778. ac_ct_F77
  779. LIBTOOL
  780. MAINTAINER_MODE_TRUE
  781. MAINTAINER_MODE_FALSE
  782. MAINT
  783. TESTSUBDIR_TRUE
  784. TESTSUBDIR_FALSE
  785. AM_RUNTESTFLAGS
  786. MIPS_TRUE
  787. MIPS_FALSE
  788. SPARC_TRUE
  789. SPARC_FALSE
  790. X86_TRUE
  791. X86_FALSE
  792. X86_FREEBSD_TRUE
  793. X86_FREEBSD_FALSE
  794. X86_WIN32_TRUE
  795. X86_WIN32_FALSE
  796. X86_DARWIN_TRUE
  797. X86_DARWIN_FALSE
  798. ALPHA_TRUE
  799. ALPHA_FALSE
  800. IA64_TRUE
  801. IA64_FALSE
  802. M32R_TRUE
  803. M32R_FALSE
  804. M68K_TRUE
  805. M68K_FALSE
  806. POWERPC_TRUE
  807. POWERPC_FALSE
  808. POWERPC_AIX_TRUE
  809. POWERPC_AIX_FALSE
  810. POWERPC_DARWIN_TRUE
  811. POWERPC_DARWIN_FALSE
  812. POWERPC_FREEBSD_TRUE
  813. POWERPC_FREEBSD_FALSE
  814. ARM_TRUE
  815. ARM_FALSE
  816. LIBFFI_CRIS_TRUE
  817. LIBFFI_CRIS_FALSE
  818. FRV_TRUE
  819. FRV_FALSE
  820. S390_TRUE
  821. S390_FALSE
  822. X86_64_TRUE
  823. X86_64_FALSE
  824. SH_TRUE
  825. SH_FALSE
  826. SH64_TRUE
  827. SH64_FALSE
  828. PA_LINUX_TRUE
  829. PA_LINUX_FALSE
  830. PA_HPUX_TRUE
  831. PA_HPUX_FALSE
  832. PA64_HPUX_TRUE
  833. PA64_HPUX_FALSE
  834. ALLOCA
  835. HAVE_LONG_DOUBLE
  836. TARGET
  837. TARGETDIR
  838. toolexecdir
  839. toolexeclibdir
  840. LIBOBJS
  841. LTLIBOBJS'
  842. ac_subst_files=''
  843. ac_precious_vars='build_alias
  844. host_alias
  845. target_alias
  846. CCAS
  847. CCASFLAGS
  848. CPP
  849. CPPFLAGS
  850. CXX
  851. CXXFLAGS
  852. LDFLAGS
  853. LIBS
  854. CCC
  855. CXXCPP
  856. F77
  857. FFLAGS'
  858. # Initialize some variables set by options.
  859. ac_init_help=
  860. ac_init_version=false
  861. # The variables have the same names as the options, with
  862. # dashes changed to underlines.
  863. cache_file=/dev/null
  864. exec_prefix=NONE
  865. no_create=
  866. no_recursion=
  867. prefix=NONE
  868. program_prefix=NONE
  869. program_suffix=NONE
  870. program_transform_name=s,x,x,
  871. silent=
  872. site=
  873. srcdir=
  874. verbose=
  875. x_includes=NONE
  876. x_libraries=NONE
  877. # Installation directory options.
  878. # These are left unexpanded so users can "make install exec_prefix=/foo"
  879. # and all the variables that are supposed to be based on exec_prefix
  880. # by default will actually change.
  881. # Use braces instead of parens because sh, perl, etc. also accept them.
  882. # (The list follows the same order as the GNU Coding Standards.)
  883. bindir='${exec_prefix}/bin'
  884. sbindir='${exec_prefix}/sbin'
  885. libexecdir='${exec_prefix}/libexec'
  886. datarootdir='${prefix}/share'
  887. datadir='${datarootdir}'
  888. sysconfdir='${prefix}/etc'
  889. sharedstatedir='${prefix}/com'
  890. localstatedir='${prefix}/var'
  891. includedir='${prefix}/include'
  892. oldincludedir='/usr/include'
  893. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  894. infodir='${datarootdir}/info'
  895. htmldir='${docdir}'
  896. dvidir='${docdir}'
  897. pdfdir='${docdir}'
  898. psdir='${docdir}'
  899. libdir='${exec_prefix}/lib'
  900. localedir='${datarootdir}/locale'
  901. mandir='${datarootdir}/man'
  902. ac_prev=
  903. ac_dashdash=
  904. for ac_option
  905. do
  906. # If the previous option needs an argument, assign it.
  907. if test -n "$ac_prev"; then
  908. eval $ac_prev=\$ac_option
  909. ac_prev=
  910. continue
  911. fi
  912. case $ac_option in
  913. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  914. *) ac_optarg=yes ;;
  915. esac
  916. # Accept the important Cygnus configure options, so we can diagnose typos.
  917. case $ac_dashdash$ac_option in
  918. --)
  919. ac_dashdash=yes ;;
  920. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  921. ac_prev=bindir ;;
  922. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  923. bindir=$ac_optarg ;;
  924. -build | --build | --buil | --bui | --bu)
  925. ac_prev=build_alias ;;
  926. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  927. build_alias=$ac_optarg ;;
  928. -cache-file | --cache-file | --cache-fil | --cache-fi \
  929. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  930. ac_prev=cache_file ;;
  931. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  932. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  933. cache_file=$ac_optarg ;;
  934. --config-cache | -C)
  935. cache_file=config.cache ;;
  936. -datadir | --datadir | --datadi | --datad)
  937. ac_prev=datadir ;;
  938. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  939. datadir=$ac_optarg ;;
  940. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  941. | --dataroo | --dataro | --datar)
  942. ac_prev=datarootdir ;;
  943. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  944. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  945. datarootdir=$ac_optarg ;;
  946. -disable-* | --disable-*)
  947. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  948. # Reject names that are not valid shell variable names.
  949. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  950. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  951. { (exit 1); exit 1; }; }
  952. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  953. eval enable_$ac_feature=no ;;
  954. -docdir | --docdir | --docdi | --doc | --do)
  955. ac_prev=docdir ;;
  956. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  957. docdir=$ac_optarg ;;
  958. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  959. ac_prev=dvidir ;;
  960. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  961. dvidir=$ac_optarg ;;
  962. -enable-* | --enable-*)
  963. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  964. # Reject names that are not valid shell variable names.
  965. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  966. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  967. { (exit 1); exit 1; }; }
  968. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  969. eval enable_$ac_feature=\$ac_optarg ;;
  970. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  971. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  972. | --exec | --exe | --ex)
  973. ac_prev=exec_prefix ;;
  974. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  975. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  976. | --exec=* | --exe=* | --ex=*)
  977. exec_prefix=$ac_optarg ;;
  978. -gas | --gas | --ga | --g)
  979. # Obsolete; use --with-gas.
  980. with_gas=yes ;;
  981. -help | --help | --hel | --he | -h)
  982. ac_init_help=long ;;
  983. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  984. ac_init_help=recursive ;;
  985. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  986. ac_init_help=short ;;
  987. -host | --host | --hos | --ho)
  988. ac_prev=host_alias ;;
  989. -host=* | --host=* | --hos=* | --ho=*)
  990. host_alias=$ac_optarg ;;
  991. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  992. ac_prev=htmldir ;;
  993. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  994. | --ht=*)
  995. htmldir=$ac_optarg ;;
  996. -includedir | --includedir | --includedi | --included | --include \
  997. | --includ | --inclu | --incl | --inc)
  998. ac_prev=includedir ;;
  999. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1000. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1001. includedir=$ac_optarg ;;
  1002. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1003. ac_prev=infodir ;;
  1004. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1005. infodir=$ac_optarg ;;
  1006. -libdir | --libdir | --libdi | --libd)
  1007. ac_prev=libdir ;;
  1008. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1009. libdir=$ac_optarg ;;
  1010. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1011. | --libexe | --libex | --libe)
  1012. ac_prev=libexecdir ;;
  1013. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1014. | --libexe=* | --libex=* | --libe=*)
  1015. libexecdir=$ac_optarg ;;
  1016. -localedir | --localedir | --localedi | --localed | --locale)
  1017. ac_prev=localedir ;;
  1018. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1019. localedir=$ac_optarg ;;
  1020. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1021. | --localstate | --localstat | --localsta | --localst | --locals)
  1022. ac_prev=localstatedir ;;
  1023. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1024. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1025. localstatedir=$ac_optarg ;;
  1026. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1027. ac_prev=mandir ;;
  1028. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1029. mandir=$ac_optarg ;;
  1030. -nfp | --nfp | --nf)
  1031. # Obsolete; use --without-fp.
  1032. with_fp=no ;;
  1033. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1034. | --no-cr | --no-c | -n)
  1035. no_create=yes ;;
  1036. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1037. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1038. no_recursion=yes ;;
  1039. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1040. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1041. | --oldin | --oldi | --old | --ol | --o)
  1042. ac_prev=oldincludedir ;;
  1043. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1044. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1045. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1046. oldincludedir=$ac_optarg ;;
  1047. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1048. ac_prev=prefix ;;
  1049. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1050. prefix=$ac_optarg ;;
  1051. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1052. | --program-pre | --program-pr | --program-p)
  1053. ac_prev=program_prefix ;;
  1054. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1055. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1056. program_prefix=$ac_optarg ;;
  1057. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1058. | --program-suf | --program-su | --program-s)
  1059. ac_prev=program_suffix ;;
  1060. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1061. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1062. program_suffix=$ac_optarg ;;
  1063. -program-transform-name | --program-transform-name \
  1064. | --program-transform-nam | --program-transform-na \
  1065. | --program-transform-n | --program-transform- \
  1066. | --program-transform | --program-transfor \
  1067. | --program-transfo | --program-transf \
  1068. | --program-trans | --program-tran \
  1069. | --progr-tra | --program-tr | --program-t)
  1070. ac_prev=program_transform_name ;;
  1071. -program-transform-name=* | --program-transform-name=* \
  1072. | --program-transform-nam=* | --program-transform-na=* \
  1073. | --program-transform-n=* | --program-transform-=* \
  1074. | --program-transform=* | --program-transfor=* \
  1075. | --program-transfo=* | --program-transf=* \
  1076. | --program-trans=* | --program-tran=* \
  1077. | --progr-tra=* | --program-tr=* | --program-t=*)
  1078. program_transform_name=$ac_optarg ;;
  1079. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1080. ac_prev=pdfdir ;;
  1081. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1082. pdfdir=$ac_optarg ;;
  1083. -psdir | --psdir | --psdi | --psd | --ps)
  1084. ac_prev=psdir ;;
  1085. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1086. psdir=$ac_optarg ;;
  1087. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1088. | -silent | --silent | --silen | --sile | --sil)
  1089. silent=yes ;;
  1090. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1091. ac_prev=sbindir ;;
  1092. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1093. | --sbi=* | --sb=*)
  1094. sbindir=$ac_optarg ;;
  1095. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1096. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1097. | --sharedst | --shareds | --shared | --share | --shar \
  1098. | --sha | --sh)
  1099. ac_prev=sharedstatedir ;;
  1100. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1101. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1102. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1103. | --sha=* | --sh=*)
  1104. sharedstatedir=$ac_optarg ;;
  1105. -site | --site | --sit)
  1106. ac_prev=site ;;
  1107. -site=* | --site=* | --sit=*)
  1108. site=$ac_optarg ;;
  1109. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1110. ac_prev=srcdir ;;
  1111. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1112. srcdir=$ac_optarg ;;
  1113. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1114. | --syscon | --sysco | --sysc | --sys | --sy)
  1115. ac_prev=sysconfdir ;;
  1116. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1117. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1118. sysconfdir=$ac_optarg ;;
  1119. -target | --target | --targe | --targ | --tar | --ta | --t)
  1120. ac_prev=target_alias ;;
  1121. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1122. target_alias=$ac_optarg ;;
  1123. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1124. verbose=yes ;;
  1125. -version | --version | --versio | --versi | --vers | -V)
  1126. ac_init_version=: ;;
  1127. -with-* | --with-*)
  1128. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1129. # Reject names that are not valid shell variable names.
  1130. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1131. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1132. { (exit 1); exit 1; }; }
  1133. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1134. eval with_$ac_package=\$ac_optarg ;;
  1135. -without-* | --without-*)
  1136. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1137. # Reject names that are not valid shell variable names.
  1138. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1139. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1140. { (exit 1); exit 1; }; }
  1141. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1142. eval with_$ac_package=no ;;
  1143. --x)
  1144. # Obsolete; use --with-x.
  1145. with_x=yes ;;
  1146. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1147. | --x-incl | --x-inc | --x-in | --x-i)
  1148. ac_prev=x_includes ;;
  1149. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1150. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1151. x_includes=$ac_optarg ;;
  1152. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1153. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1154. ac_prev=x_libraries ;;
  1155. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1156. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1157. x_libraries=$ac_optarg ;;
  1158. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1159. Try \`$0 --help' for more information." >&2
  1160. { (exit 1); exit 1; }; }
  1161. ;;
  1162. *=*)
  1163. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1164. # Reject names that are not valid shell variable names.
  1165. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1166. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1167. { (exit 1); exit 1; }; }
  1168. eval $ac_envvar=\$ac_optarg
  1169. export $ac_envvar ;;
  1170. *)
  1171. # FIXME: should be removed in autoconf 3.0.
  1172. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1173. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1174. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1175. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1176. ;;
  1177. esac
  1178. done
  1179. if test -n "$ac_prev"; then
  1180. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1181. { echo "$as_me: error: missing argument to $ac_option" >&2
  1182. { (exit 1); exit 1; }; }
  1183. fi
  1184. # Be sure to have absolute directory names.
  1185. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1186. datadir sysconfdir sharedstatedir localstatedir includedir \
  1187. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1188. libdir localedir mandir
  1189. do
  1190. eval ac_val=\$$ac_var
  1191. case $ac_val in
  1192. [\\/$]* | ?:[\\/]* ) continue;;
  1193. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1194. esac
  1195. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1196. { (exit 1); exit 1; }; }
  1197. done
  1198. # There might be people who depend on the old broken behavior: `$host'
  1199. # used to hold the argument of --host etc.
  1200. # FIXME: To remove some day.
  1201. build=$build_alias
  1202. host=$host_alias
  1203. target=$target_alias
  1204. # FIXME: To remove some day.
  1205. if test "x$host_alias" != x; then
  1206. if test "x$build_alias" = x; then
  1207. cross_compiling=maybe
  1208. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1209. If a cross compiler is detected then cross compile mode will be used." >&2
  1210. elif test "x$build_alias" != "x$host_alias"; then
  1211. cross_compiling=yes
  1212. fi
  1213. fi
  1214. ac_tool_prefix=
  1215. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1216. test "$silent" = yes && exec 6>/dev/null
  1217. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1218. ac_ls_di=`ls -di .` &&
  1219. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1220. { echo "$as_me: error: Working directory cannot be determined" >&2
  1221. { (exit 1); exit 1; }; }
  1222. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1223. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1224. { (exit 1); exit 1; }; }
  1225. # Find the source files, if location was not specified.
  1226. if test -z "$srcdir"; then
  1227. ac_srcdir_defaulted=yes
  1228. # Try the directory containing this script, then the parent directory.
  1229. ac_confdir=`$as_dirname -- "$0" ||
  1230. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1231. X"$0" : 'X\(//\)[^/]' \| \
  1232. X"$0" : 'X\(//\)$' \| \
  1233. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1234. echo X"$0" |
  1235. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1236. s//\1/
  1237. q
  1238. }
  1239. /^X\(\/\/\)[^/].*/{
  1240. s//\1/
  1241. q
  1242. }
  1243. /^X\(\/\/\)$/{
  1244. s//\1/
  1245. q
  1246. }
  1247. /^X\(\/\).*/{
  1248. s//\1/
  1249. q
  1250. }
  1251. s/.*/./; q'`
  1252. srcdir=$ac_confdir
  1253. if test ! -r "$srcdir/$ac_unique_file"; then
  1254. srcdir=..
  1255. fi
  1256. else
  1257. ac_srcdir_defaulted=no
  1258. fi
  1259. if test ! -r "$srcdir/$ac_unique_file"; then
  1260. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1261. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1262. { (exit 1); exit 1; }; }
  1263. fi
  1264. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1265. ac_abs_confdir=`(
  1266. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1267. { (exit 1); exit 1; }; }
  1268. pwd)`
  1269. # When building in place, set srcdir=.
  1270. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1271. srcdir=.
  1272. fi
  1273. # Remove unnecessary trailing slashes from srcdir.
  1274. # Double slashes in file names in object file debugging info
  1275. # mess up M-x gdb in Emacs.
  1276. case $srcdir in
  1277. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1278. esac
  1279. for ac_var in $ac_precious_vars; do
  1280. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1281. eval ac_env_${ac_var}_value=\$${ac_var}
  1282. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1283. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1284. done
  1285. #
  1286. # Report the --help message.
  1287. #
  1288. if test "$ac_init_help" = "long"; then
  1289. # Omit some internal or obsolete options to make the list less imposing.
  1290. # This message is too long to be a string in the A/UX 3.1 sh.
  1291. cat <<_ACEOF
  1292. \`configure' configures libffi 3.0.5 to adapt to many kinds of systems.
  1293. Usage: $0 [OPTION]... [VAR=VALUE]...
  1294. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1295. VAR=VALUE. See below for descriptions of some of the useful variables.
  1296. Defaults for the options are specified in brackets.
  1297. Configuration:
  1298. -h, --help display this help and exit
  1299. --help=short display options specific to this package
  1300. --help=recursive display the short help of all the included packages
  1301. -V, --version display version information and exit
  1302. -q, --quiet, --silent do not print \`checking...' messages
  1303. --cache-file=FILE cache test results in FILE [disabled]
  1304. -C, --config-cache alias for \`--cache-file=config.cache'
  1305. -n, --no-create do not create output files
  1306. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1307. Installation directories:
  1308. --prefix=PREFIX install architecture-independent files in PREFIX
  1309. [$ac_default_prefix]
  1310. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1311. [PREFIX]
  1312. By default, \`make install' will install all the files in
  1313. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1314. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1315. for instance \`--prefix=\$HOME'.
  1316. For better control, use the options below.
  1317. Fine tuning of the installation directories:
  1318. --bindir=DIR user executables [EPREFIX/bin]
  1319. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1320. --libexecdir=DIR program executables [EPREFIX/libexec]
  1321. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1322. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1323. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1324. --libdir=DIR object code libraries [EPREFIX/lib]
  1325. --includedir=DIR C header files [PREFIX/include]
  1326. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1327. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1328. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1329. --infodir=DIR info documentation [DATAROOTDIR/info]
  1330. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1331. --mandir=DIR man documentation [DATAROOTDIR/man]
  1332. --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
  1333. --htmldir=DIR html documentation [DOCDIR]
  1334. --dvidir=DIR dvi documentation [DOCDIR]
  1335. --pdfdir=DIR pdf documentation [DOCDIR]
  1336. --psdir=DIR ps documentation [DOCDIR]
  1337. _ACEOF
  1338. cat <<\_ACEOF
  1339. Program names:
  1340. --program-prefix=PREFIX prepend PREFIX to installed program names
  1341. --program-suffix=SUFFIX append SUFFIX to installed program names
  1342. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1343. System types:
  1344. --build=BUILD configure for building on BUILD [guessed]
  1345. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1346. --target=TARGET configure for building compilers for TARGET [HOST]
  1347. _ACEOF
  1348. fi
  1349. if test -n "$ac_init_help"; then
  1350. case $ac_init_help in
  1351. short | recursive ) echo "Configuration of libffi 3.0.5:";;
  1352. esac
  1353. cat <<\_ACEOF
  1354. Optional Features:
  1355. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1356. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1357. --disable-dependency-tracking speeds up one-time build
  1358. --enable-dependency-tracking do not reject slow dependency extractors
  1359. --enable-shared[=PKGS] build shared libraries [default=yes]
  1360. --enable-static[=PKGS] build static libraries [default=yes]
  1361. --enable-fast-install[=PKGS]
  1362. optimize for fast installation [default=yes]
  1363. --disable-libtool-lock avoid locking (might break parallel builds)
  1364. --enable-maintainer-mode enable make rules and dependencies not useful
  1365. (and sometimes confusing) to the casual installer
  1366. --enable-debug debugging mode
  1367. --disable-structs omit code for struct support
  1368. --disable-raw-api make the raw api unavailable
  1369. --enable-purify-safety purify-safe mode
  1370. Optional Packages:
  1371. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1372. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1373. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1374. --with-pic try to use only PIC/non-PIC objects [default=use
  1375. both]
  1376. --with-tags[=TAGS] include additional configurations [automatic]
  1377. Some influential environment variables:
  1378. CC C compiler command
  1379. CFLAGS C compiler flags
  1380. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1381. nonstandard directory <lib dir>
  1382. LIBS libraries to pass to the linker, e.g. -l<library>
  1383. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1384. you have headers in a nonstandard directory <include dir>
  1385. CCAS assembler compiler command (defaults to CC)
  1386. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1387. CPP C preprocessor
  1388. CXX C++ compiler command
  1389. CXXFLAGS C++ compiler flags
  1390. CXXCPP C++ preprocessor
  1391. F77 Fortran 77 compiler command
  1392. FFLAGS Fortran 77 compiler flags
  1393. Use these variables to override the choices made by `configure' or to help
  1394. it to find libraries and programs with nonstandard names/locations.
  1395. Report bugs to <http://gcc.gnu.org/bugs.html>.
  1396. _ACEOF
  1397. ac_status=$?
  1398. fi
  1399. if test "$ac_init_help" = "recursive"; then
  1400. # If there are subdirs, report their specific --help.
  1401. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1402. test -d "$ac_dir" || continue
  1403. ac_builddir=.
  1404. case "$ac_dir" in
  1405. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1406. *)
  1407. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1408. # A ".." for each directory in $ac_dir_suffix.
  1409. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1410. case $ac_top_builddir_sub in
  1411. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1412. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1413. esac ;;
  1414. esac
  1415. ac_abs_top_builddir=$ac_pwd
  1416. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1417. # for backward compatibility:
  1418. ac_top_builddir=$ac_top_build_prefix
  1419. case $srcdir in
  1420. .) # We are building in place.
  1421. ac_srcdir=.
  1422. ac_top_srcdir=$ac_top_builddir_sub
  1423. ac_abs_top_srcdir=$ac_pwd ;;
  1424. [\\/]* | ?:[\\/]* ) # Absolute name.
  1425. ac_srcdir=$srcdir$ac_dir_suffix;
  1426. ac_top_srcdir=$srcdir
  1427. ac_abs_top_srcdir=$srcdir ;;
  1428. *) # Relative name.
  1429. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1430. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1431. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1432. esac
  1433. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1434. cd "$ac_dir" || { ac_status=$?; continue; }
  1435. # Check for guested configure.
  1436. if test -f "$ac_srcdir/configure.gnu"; then
  1437. echo &&
  1438. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1439. elif test -f "$ac_srcdir/configure"; then
  1440. echo &&
  1441. $SHELL "$ac_srcdir/configure" --help=recursive
  1442. else
  1443. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1444. fi || ac_status=$?
  1445. cd "$ac_pwd" || { ac_status=$?; break; }
  1446. done
  1447. fi
  1448. test -n "$ac_init_help" && exit $ac_status
  1449. if $ac_init_version; then
  1450. cat <<\_ACEOF
  1451. libffi configure 3.0.5
  1452. generated by GNU Autoconf 2.61
  1453. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1454. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1455. This configure script is free software; the Free Software Foundation
  1456. gives unlimited permission to copy, distribute and modify it.
  1457. _ACEOF
  1458. exit
  1459. fi
  1460. cat >config.log <<_ACEOF
  1461. This file contains any messages produced by compilers while
  1462. running configure, to aid debugging if configure makes a mistake.
  1463. It was created by libffi $as_me 3.0.5, which was
  1464. generated by GNU Autoconf 2.61. Invocation command line was
  1465. $ $0 $@
  1466. _ACEOF
  1467. exec 5>>config.log
  1468. {
  1469. cat <<_ASUNAME
  1470. ## --------- ##
  1471. ## Platform. ##
  1472. ## --------- ##
  1473. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1474. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1475. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1476. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1477. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1478. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1479. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1480. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1481. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1482. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1483. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1484. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1485. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1486. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1487. _ASUNAME
  1488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1489. for as_dir in $PATH
  1490. do
  1491. IFS=$as_save_IFS
  1492. test -z "$as_dir" && as_dir=.
  1493. echo "PATH: $as_dir"
  1494. done
  1495. IFS=$as_save_IFS
  1496. } >&5
  1497. cat >&5 <<_ACEOF
  1498. ## ----------- ##
  1499. ## Core tests. ##
  1500. ## ----------- ##
  1501. _ACEOF
  1502. # Keep a trace of the command line.
  1503. # Strip out --no-create and --no-recursion so they do not pile up.
  1504. # Strip out --silent because we don't want to record it for future runs.
  1505. # Also quote any args containing shell meta-characters.
  1506. # Make two passes to allow for proper duplicate-argument suppression.
  1507. ac_configure_args=
  1508. ac_configure_args0=
  1509. ac_configure_args1=
  1510. ac_must_keep_next=false
  1511. for ac_pass in 1 2
  1512. do
  1513. for ac_arg
  1514. do
  1515. case $ac_arg in
  1516. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1517. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1518. | -silent | --silent | --silen | --sile | --sil)
  1519. continue ;;
  1520. *\'*)
  1521. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1522. esac
  1523. case $ac_pass in
  1524. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1525. 2)
  1526. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1527. if test $ac_must_keep_next = true; then
  1528. ac_must_keep_next=false # Got value, back to normal.
  1529. else
  1530. case $ac_arg in
  1531. *=* | --config-cache | -C | -disable-* | --disable-* \
  1532. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1533. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1534. | -with-* | --with-* | -without-* | --without-* | --x)
  1535. case "$ac_configure_args0 " in
  1536. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1537. esac
  1538. ;;
  1539. -* ) ac_must_keep_next=true ;;
  1540. esac
  1541. fi
  1542. ac_configure_args="$ac_configure_args '$ac_arg'"
  1543. ;;
  1544. esac
  1545. done
  1546. done
  1547. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1548. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1549. # When interrupted or exit'd, cleanup temporary files, and complete
  1550. # config.log. We remove comments because anyway the quotes in there
  1551. # would cause problems or look ugly.
  1552. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1553. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1554. trap 'exit_status=$?
  1555. # Save into config.log some information that might help in debugging.
  1556. {
  1557. echo
  1558. cat <<\_ASBOX
  1559. ## ---------------- ##
  1560. ## Cache variables. ##
  1561. ## ---------------- ##
  1562. _ASBOX
  1563. echo
  1564. # The following way of writing the cache mishandles newlines in values,
  1565. (
  1566. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1567. eval ac_val=\$$ac_var
  1568. case $ac_val in #(
  1569. *${as_nl}*)
  1570. case $ac_var in #(
  1571. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1572. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1573. esac
  1574. case $ac_var in #(
  1575. _ | IFS | as_nl) ;; #(
  1576. *) $as_unset $ac_var ;;
  1577. esac ;;
  1578. esac
  1579. done
  1580. (set) 2>&1 |
  1581. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1582. *${as_nl}ac_space=\ *)
  1583. sed -n \
  1584. "s/'\''/'\''\\\\'\'''\''/g;
  1585. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1586. ;; #(
  1587. *)
  1588. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1589. ;;
  1590. esac |
  1591. sort
  1592. )
  1593. echo
  1594. cat <<\_ASBOX
  1595. ## ----------------- ##
  1596. ## Output variables. ##
  1597. ## ----------------- ##
  1598. _ASBOX
  1599. echo
  1600. for ac_var in $ac_subst_vars
  1601. do
  1602. eval ac_val=\$$ac_var
  1603. case $ac_val in
  1604. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1605. esac
  1606. echo "$ac_var='\''$ac_val'\''"
  1607. done | sort
  1608. echo
  1609. if test -n "$ac_subst_files"; then
  1610. cat <<\_ASBOX
  1611. ## ------------------- ##
  1612. ## File substitutions. ##
  1613. ## ------------------- ##
  1614. _ASBOX
  1615. echo
  1616. for ac_var in $ac_subst_files
  1617. do
  1618. eval ac_val=\$$ac_var
  1619. case $ac_val in
  1620. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1621. esac
  1622. echo "$ac_var='\''$ac_val'\''"
  1623. done | sort
  1624. echo
  1625. fi
  1626. if test -s confdefs.h; then
  1627. cat <<\_ASBOX
  1628. ## ----------- ##
  1629. ## confdefs.h. ##
  1630. ## ----------- ##
  1631. _ASBOX
  1632. echo
  1633. cat confdefs.h
  1634. echo
  1635. fi
  1636. test "$ac_signal" != 0 &&
  1637. echo "$as_me: caught signal $ac_signal"
  1638. echo "$as_me: exit $exit_status"
  1639. } >&5
  1640. rm -f core *.core core.conftest.* &&
  1641. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1642. exit $exit_status
  1643. ' 0
  1644. for ac_signal in 1 2 13 15; do
  1645. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1646. done
  1647. ac_signal=0
  1648. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1649. rm -f -r conftest* confdefs.h
  1650. # Predefined preprocessor variables.
  1651. cat >>confdefs.h <<_ACEOF
  1652. #define PACKAGE_NAME "$PACKAGE_NAME"
  1653. _ACEOF
  1654. cat >>confdefs.h <<_ACEOF
  1655. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1656. _ACEOF
  1657. cat >>confdefs.h <<_ACEOF
  1658. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1659. _ACEOF
  1660. cat >>confdefs.h <<_ACEOF
  1661. #define PACKAGE_STRING "$PACKAGE_STRING"
  1662. _ACEOF
  1663. cat >>confdefs.h <<_ACEOF
  1664. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1665. _ACEOF
  1666. # Let the site file select an alternate cache file if it wants to.
  1667. # Prefer explicitly selected file to automatically selected ones.
  1668. if test -n "$CONFIG_SITE"; then
  1669. set x "$CONFIG_SITE"
  1670. elif test "x$prefix" != xNONE; then
  1671. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1672. else
  1673. set x "$ac_default_prefix/share/config.site" \
  1674. "$ac_default_prefix/etc/config.site"
  1675. fi
  1676. shift
  1677. for ac_site_file
  1678. do
  1679. if test -r "$ac_site_file"; then
  1680. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1681. echo "$as_me: loading site script $ac_site_file" >&6;}
  1682. sed 's/^/| /' "$ac_site_file" >&5
  1683. . "$ac_site_file"
  1684. fi
  1685. done
  1686. if test -r "$cache_file"; then
  1687. # Some versions of bash will fail to source /dev/null (special
  1688. # files actually), so we avoid doing that.
  1689. if test -f "$cache_file"; then
  1690. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1691. echo "$as_me: loading cache $cache_file" >&6;}
  1692. case $cache_file in
  1693. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1694. *) . "./$cache_file";;
  1695. esac
  1696. fi
  1697. else
  1698. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1699. echo "$as_me: creating cache $cache_file" >&6;}
  1700. >$cache_file
  1701. fi
  1702. # Check that the precious variables saved in the cache have kept the same
  1703. # value.
  1704. ac_cache_corrupted=false
  1705. for ac_var in $ac_precious_vars; do
  1706. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1707. eval ac_new_set=\$ac_env_${ac_var}_set
  1708. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1709. eval ac_new_val=\$ac_env_${ac_var}_value
  1710. case $ac_old_set,$ac_new_set in
  1711. set,)
  1712. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1713. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1714. ac_cache_corrupted=: ;;
  1715. ,set)
  1716. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1717. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1718. ac_cache_corrupted=: ;;
  1719. ,);;
  1720. *)
  1721. if test "x$ac_old_val" != "x$ac_new_val"; then
  1722. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1723. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1724. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1725. echo "$as_me: former value: $ac_old_val" >&2;}
  1726. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1727. echo "$as_me: current value: $ac_new_val" >&2;}
  1728. ac_cache_corrupted=:
  1729. fi;;
  1730. esac
  1731. # Pass precious variables to config.status.
  1732. if test "$ac_new_set" = set; then
  1733. case $ac_new_val in
  1734. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1735. *) ac_arg=$ac_var=$ac_new_val ;;
  1736. esac
  1737. case " $ac_configure_args " in
  1738. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1739. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1740. esac
  1741. fi
  1742. done
  1743. if $ac_cache_corrupted; then
  1744. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1745. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1746. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1747. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1748. { (exit 1); exit 1; }; }
  1749. fi
  1750. ac_ext=c
  1751. ac_cpp='$CPP $CPPFLAGS'
  1752. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1753. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1754. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1755. ac_config_headers="$ac_config_headers fficonfig.h"
  1756. ac_aux_dir=
  1757. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1758. if test -f "$ac_dir/install-sh"; then
  1759. ac_aux_dir=$ac_dir
  1760. ac_install_sh="$ac_aux_dir/install-sh -c"
  1761. break
  1762. elif test -f "$ac_dir/install.sh"; then
  1763. ac_aux_dir=$ac_dir
  1764. ac_install_sh="$ac_aux_dir/install.sh -c"
  1765. break
  1766. elif test -f "$ac_dir/shtool"; then
  1767. ac_aux_dir=$ac_dir
  1768. ac_install_sh="$ac_aux_dir/shtool install -c"
  1769. break
  1770. fi
  1771. done
  1772. if test -z "$ac_aux_dir"; then
  1773. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1774. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1775. { (exit 1); exit 1; }; }
  1776. fi
  1777. # These three variables are undocumented and unsupported,
  1778. # and are intended to be withdrawn in a future Autoconf release.
  1779. # They can cause serious problems if a builder's source tree is in a directory
  1780. # whose full name contains unusual characters.
  1781. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1782. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1783. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1784. # Make sure we can run config.sub.
  1785. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1786. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1787. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1788. { (exit 1); exit 1; }; }
  1789. { echo "$as_me:$LINENO: checking build system type" >&5
  1790. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1791. if test "${ac_cv_build+set}" = set; then
  1792. echo $ECHO_N "(cached) $ECHO_C" >&6
  1793. else
  1794. ac_build_alias=$build_alias
  1795. test "x$ac_build_alias" = x &&
  1796. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1797. test "x$ac_build_alias" = x &&
  1798. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1799. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1800. { (exit 1); exit 1; }; }
  1801. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1802. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1803. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1804. { (exit 1); exit 1; }; }
  1805. fi
  1806. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1807. echo "${ECHO_T}$ac_cv_build" >&6; }
  1808. case $ac_cv_build in
  1809. *-*-*) ;;
  1810. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1811. echo "$as_me: error: invalid value of canonical build" >&2;}
  1812. { (exit 1); exit 1; }; };;
  1813. esac
  1814. build=$ac_cv_build
  1815. ac_save_IFS=$IFS; IFS='-'
  1816. set x $ac_cv_build
  1817. shift
  1818. build_cpu=$1
  1819. build_vendor=$2
  1820. shift; shift
  1821. # Remember, the first character of IFS is used to create $*,
  1822. # except with old shells:
  1823. build_os=$*
  1824. IFS=$ac_save_IFS
  1825. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1826. { echo "$as_me:$LINENO: checking host system type" >&5
  1827. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1828. if test "${ac_cv_host+set}" = set; then
  1829. echo $ECHO_N "(cached) $ECHO_C" >&6
  1830. else
  1831. if test "x$host_alias" = x; then
  1832. ac_cv_host=$ac_cv_build
  1833. else
  1834. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1835. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1836. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1837. { (exit 1); exit 1; }; }
  1838. fi
  1839. fi
  1840. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1841. echo "${ECHO_T}$ac_cv_host" >&6; }
  1842. case $ac_cv_host in
  1843. *-*-*) ;;
  1844. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1845. echo "$as_me: error: invalid value of canonical host" >&2;}
  1846. { (exit 1); exit 1; }; };;
  1847. esac
  1848. host=$ac_cv_host
  1849. ac_save_IFS=$IFS; IFS='-'
  1850. set x $ac_cv_host
  1851. shift
  1852. host_cpu=$1
  1853. host_vendor=$2
  1854. shift; shift
  1855. # Remember, the first character of IFS is used to create $*,
  1856. # except with old shells:
  1857. host_os=$*
  1858. IFS=$ac_save_IFS
  1859. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1860. { echo "$as_me:$LINENO: checking target system type" >&5
  1861. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1862. if test "${ac_cv_target+set}" = set; then
  1863. echo $ECHO_N "(cached) $ECHO_C" >&6
  1864. else
  1865. if test "x$target_alias" = x; then
  1866. ac_cv_target=$ac_cv_host
  1867. else
  1868. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1869. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1870. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1871. { (exit 1); exit 1; }; }
  1872. fi
  1873. fi
  1874. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1875. echo "${ECHO_T}$ac_cv_target" >&6; }
  1876. case $ac_cv_target in
  1877. *-*-*) ;;
  1878. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1879. echo "$as_me: error: invalid value of canonical target" >&2;}
  1880. { (exit 1); exit 1; }; };;
  1881. esac
  1882. target=$ac_cv_target
  1883. ac_save_IFS=$IFS; IFS='-'
  1884. set x $ac_cv_target
  1885. shift
  1886. target_cpu=$1
  1887. target_vendor=$2
  1888. shift; shift
  1889. # Remember, the first character of IFS is used to create $*,
  1890. # except with old shells:
  1891. target_os=$*
  1892. IFS=$ac_save_IFS
  1893. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1894. # The aliases save the names the user supplied, while $host etc.
  1895. # will get canonicalized.
  1896. test -n "$target_alias" &&
  1897. test "$program_prefix$program_suffix$program_transform_name" = \
  1898. NONENONEs,x,x, &&
  1899. program_prefix=${target_alias}-
  1900. target_alias=${target_alias-$host_alias}
  1901. . ${srcdir}/configure.host
  1902. am__api_version='1.10'
  1903. # Find a good install program. We prefer a C program (faster),
  1904. # so one script is as good as another. But avoid the broken or
  1905. # incompatible versions:
  1906. # SysV /etc/install, /usr/sbin/install
  1907. # SunOS /usr/etc/install
  1908. # IRIX /sbin/install
  1909. # AIX /bin/install
  1910. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1911. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1912. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1913. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1914. # OS/2's system install, which has a completely different semantic
  1915. # ./install, which can be erroneously created by make from ./install.sh.
  1916. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1917. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1918. if test -z "$INSTALL"; then
  1919. if test "${ac_cv_path_install+set}" = set; then
  1920. echo $ECHO_N "(cached) $ECHO_C" >&6
  1921. else
  1922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1923. for as_dir in $PATH
  1924. do
  1925. IFS=$as_save_IFS
  1926. test -z "$as_dir" && as_dir=.
  1927. # Account for people who put trailing slashes in PATH elements.
  1928. case $as_dir/ in
  1929. ./ | .// | /cC/* | \
  1930. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1931. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1932. /usr/ucb/* ) ;;
  1933. *)
  1934. # OSF1 and SCO ODT 3.0 have their own names for install.
  1935. # Don't use installbsd from OSF since it installs stuff as root
  1936. # by default.
  1937. for ac_prog in ginstall scoinst install; do
  1938. for ac_exec_ext in '' $ac_executable_extensions; do
  1939. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1940. if test $ac_prog = install &&
  1941. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1942. # AIX install. It has an incompatible calling convention.
  1943. :
  1944. elif test $ac_prog = install &&
  1945. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1946. # program-specific install script used by HP pwplus--don't use.
  1947. :
  1948. else
  1949. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1950. break 3
  1951. fi
  1952. fi
  1953. done
  1954. done
  1955. ;;
  1956. esac
  1957. done
  1958. IFS=$as_save_IFS
  1959. fi
  1960. if test "${ac_cv_path_install+set}" = set; then
  1961. INSTALL=$ac_cv_path_install
  1962. else
  1963. # As a last resort, use the slow shell script. Don't cache a
  1964. # value for INSTALL within a source directory, because that will
  1965. # break other packages using the cache if that directory is
  1966. # removed, or if the value is a relative name.
  1967. INSTALL=$ac_install_sh
  1968. fi
  1969. fi
  1970. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1971. echo "${ECHO_T}$INSTALL" >&6; }
  1972. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1973. # It thinks the first close brace ends the variable substitution.
  1974. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1975. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1976. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1977. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1978. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1979. # Just in case
  1980. sleep 1
  1981. echo timestamp > conftest.file
  1982. # Do `set' in a subshell so we don't clobber the current shell's
  1983. # arguments. Must try -L first in case configure is actually a
  1984. # symlink; some systems play weird games with the mod time of symlinks
  1985. # (eg FreeBSD returns the mod time of the symlink's containing
  1986. # directory).
  1987. if (
  1988. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1989. if test "$*" = "X"; then
  1990. # -L didn't work.
  1991. set X `ls -t $srcdir/configure conftest.file`
  1992. fi
  1993. rm -f conftest.file
  1994. if test "$*" != "X $srcdir/configure conftest.file" \
  1995. && test "$*" != "X conftest.file $srcdir/configure"; then
  1996. # If neither matched, then we have a broken ls. This can happen
  1997. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1998. # broken ls alias from the environment. This has actually
  1999. # happened. Such a system could not be considered "sane".
  2000. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2001. alias in your environment" >&5
  2002. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2003. alias in your environment" >&2;}
  2004. { (exit 1); exit 1; }; }
  2005. fi
  2006. test "$2" = conftest.file
  2007. )
  2008. then
  2009. # Ok.
  2010. :
  2011. else
  2012. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2013. Check your system clock" >&5
  2014. echo "$as_me: error: newly created file is older than distributed files!
  2015. Check your system clock" >&2;}
  2016. { (exit 1); exit 1; }; }
  2017. fi
  2018. { echo "$as_me:$LINENO: result: yes" >&5
  2019. echo "${ECHO_T}yes" >&6; }
  2020. test "$program_prefix" != NONE &&
  2021. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2022. # Use a double $ so make ignores it.
  2023. test "$program_suffix" != NONE &&
  2024. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2025. # Double any \ or $. echo might interpret backslashes.
  2026. # By default was `s,x,x', remove it if useless.
  2027. cat <<\_ACEOF >conftest.sed
  2028. s/[\\$]/&&/g;s/;s,x,x,$//
  2029. _ACEOF
  2030. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  2031. rm -f conftest.sed
  2032. # expand $ac_aux_dir to an absolute path
  2033. am_aux_dir=`cd $ac_aux_dir && pwd`
  2034. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2035. # Use eval to expand $SHELL
  2036. if eval "$MISSING --run true"; then
  2037. am_missing_run="$MISSING --run "
  2038. else
  2039. am_missing_run=
  2040. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2041. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2042. fi
  2043. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2044. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  2045. if test -z "$MKDIR_P"; then
  2046. if test "${ac_cv_path_mkdir+set}" = set; then
  2047. echo $ECHO_N "(cached) $ECHO_C" >&6
  2048. else
  2049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2050. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2051. do
  2052. IFS=$as_save_IFS
  2053. test -z "$as_dir" && as_dir=.
  2054. for ac_prog in mkdir gmkdir; do
  2055. for ac_exec_ext in '' $ac_executable_extensions; do
  2056. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2057. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2058. 'mkdir (GNU coreutils) '* | \
  2059. 'mkdir (coreutils) '* | \
  2060. 'mkdir (fileutils) '4.1*)
  2061. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2062. break 3;;
  2063. esac
  2064. done
  2065. done
  2066. done
  2067. IFS=$as_save_IFS
  2068. fi
  2069. if test "${ac_cv_path_mkdir+set}" = set; then
  2070. MKDIR_P="$ac_cv_path_mkdir -p"
  2071. else
  2072. # As a last resort, use the slow shell script. Don't cache a
  2073. # value for MKDIR_P within a source directory, because that will
  2074. # break other packages using the cache if that directory is
  2075. # removed, or if the value is a relative name.
  2076. test -d ./--version && rmdir ./--version
  2077. MKDIR_P="$ac_install_sh -d"
  2078. fi
  2079. fi
  2080. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2081. echo "${ECHO_T}$MKDIR_P" >&6; }
  2082. mkdir_p="$MKDIR_P"
  2083. case $mkdir_p in
  2084. [\\/$]* | ?:[\\/]*) ;;
  2085. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2086. esac
  2087. for ac_prog in gawk mawk nawk awk
  2088. do
  2089. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2090. set dummy $ac_prog; ac_word=$2
  2091. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2092. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2093. if test "${ac_cv_prog_AWK+set}" = set; then
  2094. echo $ECHO_N "(cached) $ECHO_C" >&6
  2095. else
  2096. if test -n "$AWK"; then
  2097. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2098. else
  2099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2100. for as_dir in $PATH
  2101. do
  2102. IFS=$as_save_IFS
  2103. test -z "$as_dir" && as_dir=.
  2104. for ac_exec_ext in '' $ac_executable_extensions; do
  2105. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2106. ac_cv_prog_AWK="$ac_prog"
  2107. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2108. break 2
  2109. fi
  2110. done
  2111. done
  2112. IFS=$as_save_IFS
  2113. fi
  2114. fi
  2115. AWK=$ac_cv_prog_AWK
  2116. if test -n "$AWK"; then
  2117. { echo "$as_me:$LINENO: result: $AWK" >&5
  2118. echo "${ECHO_T}$AWK" >&6; }
  2119. else
  2120. { echo "$as_me:$LINENO: result: no" >&5
  2121. echo "${ECHO_T}no" >&6; }
  2122. fi
  2123. test -n "$AWK" && break
  2124. done
  2125. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2126. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2127. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2128. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2129. echo $ECHO_N "(cached) $ECHO_C" >&6
  2130. else
  2131. cat >conftest.make <<\_ACEOF
  2132. SHELL = /bin/sh
  2133. all:
  2134. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2135. _ACEOF
  2136. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2137. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2138. *@@@%%%=?*=@@@%%%*)
  2139. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2140. *)
  2141. eval ac_cv_prog_make_${ac_make}_set=no;;
  2142. esac
  2143. rm -f conftest.make
  2144. fi
  2145. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2146. { echo "$as_me:$LINENO: result: yes" >&5
  2147. echo "${ECHO_T}yes" >&6; }
  2148. SET_MAKE=
  2149. else
  2150. { echo "$as_me:$LINENO: result: no" >&5
  2151. echo "${ECHO_T}no" >&6; }
  2152. SET_MAKE="MAKE=${MAKE-make}"
  2153. fi
  2154. rm -rf .tst 2>/dev/null
  2155. mkdir .tst 2>/dev/null
  2156. if test -d .tst; then
  2157. am__leading_dot=.
  2158. else
  2159. am__leading_dot=_
  2160. fi
  2161. rmdir .tst 2>/dev/null
  2162. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2163. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2164. # is not polluted with repeated "-I."
  2165. am__isrc=' -I$(srcdir)'
  2166. # test to see if srcdir already configured
  2167. if test -f $srcdir/config.status; then
  2168. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2169. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2170. { (exit 1); exit 1; }; }
  2171. fi
  2172. fi
  2173. # test whether we have cygpath
  2174. if test -z "$CYGPATH_W"; then
  2175. if (cygpath --version) >/dev/null 2>/dev/null; then
  2176. CYGPATH_W='cygpath -w'
  2177. else
  2178. CYGPATH_W=echo
  2179. fi
  2180. fi
  2181. # Define the identity of the package.
  2182. PACKAGE='libffi'
  2183. VERSION='3.0.5'
  2184. cat >>confdefs.h <<_ACEOF
  2185. #define PACKAGE "$PACKAGE"
  2186. _ACEOF
  2187. cat >>confdefs.h <<_ACEOF
  2188. #define VERSION "$VERSION"
  2189. _ACEOF
  2190. # Some tools Automake needs.
  2191. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2192. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2193. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2194. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2195. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2196. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2197. # Installed binaries are usually stripped using `strip' when the user
  2198. # run `make install-strip'. However `strip' might not be the right
  2199. # tool to use in cross-compilation environments, therefore Automake
  2200. # will honor the `STRIP' environment variable to overrule this program.
  2201. if test "$cross_compiling" != no; then
  2202. if test -n "$ac_tool_prefix"; then
  2203. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2204. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2205. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2206. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2207. if test "${ac_cv_prog_STRIP+set}" = set; then
  2208. echo $ECHO_N "(cached) $ECHO_C" >&6
  2209. else
  2210. if test -n "$STRIP"; then
  2211. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2212. else
  2213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2214. for as_dir in $PATH
  2215. do
  2216. IFS=$as_save_IFS
  2217. test -z "$as_dir" && as_dir=.
  2218. for ac_exec_ext in '' $ac_executable_extensions; do
  2219. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2220. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2221. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2222. break 2
  2223. fi
  2224. done
  2225. done
  2226. IFS=$as_save_IFS
  2227. fi
  2228. fi
  2229. STRIP=$ac_cv_prog_STRIP
  2230. if test -n "$STRIP"; then
  2231. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2232. echo "${ECHO_T}$STRIP" >&6; }
  2233. else
  2234. { echo "$as_me:$LINENO: result: no" >&5
  2235. echo "${ECHO_T}no" >&6; }
  2236. fi
  2237. fi
  2238. if test -z "$ac_cv_prog_STRIP"; then
  2239. ac_ct_STRIP=$STRIP
  2240. # Extract the first word of "strip", so it can be a program name with args.
  2241. set dummy strip; ac_word=$2
  2242. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2243. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2244. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2245. echo $ECHO_N "(cached) $ECHO_C" >&6
  2246. else
  2247. if test -n "$ac_ct_STRIP"; then
  2248. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2249. else
  2250. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2251. for as_dir in $PATH
  2252. do
  2253. IFS=$as_save_IFS
  2254. test -z "$as_dir" && as_dir=.
  2255. for ac_exec_ext in '' $ac_executable_extensions; do
  2256. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2257. ac_cv_prog_ac_ct_STRIP="strip"
  2258. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2259. break 2
  2260. fi
  2261. done
  2262. done
  2263. IFS=$as_save_IFS
  2264. fi
  2265. fi
  2266. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2267. if test -n "$ac_ct_STRIP"; then
  2268. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2269. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2270. else
  2271. { echo "$as_me:$LINENO: result: no" >&5
  2272. echo "${ECHO_T}no" >&6; }
  2273. fi
  2274. if test "x$ac_ct_STRIP" = x; then
  2275. STRIP=":"
  2276. else
  2277. case $cross_compiling:$ac_tool_warned in
  2278. yes:)
  2279. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2280. whose name does not start with the host triplet. If you think this
  2281. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2282. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2283. whose name does not start with the host triplet. If you think this
  2284. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2285. ac_tool_warned=yes ;;
  2286. esac
  2287. STRIP=$ac_ct_STRIP
  2288. fi
  2289. else
  2290. STRIP="$ac_cv_prog_STRIP"
  2291. fi
  2292. fi
  2293. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2294. # We need awk for the "check" target. The system "awk" is bad on
  2295. # some platforms.
  2296. # Always define AMTAR for backward compatibility.
  2297. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2298. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2299. # The same as in boehm-gc and libstdc++. Have to borrow it from there.
  2300. # We must force CC to /not/ be precious variables; otherwise
  2301. # the wrong, non-multilib-adjusted value will be used in multilibs.
  2302. # As a side effect, we have to subst CFLAGS ourselves.
  2303. ac_ext=c
  2304. ac_cpp='$CPP $CPPFLAGS'
  2305. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2306. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2307. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2308. if test -n "$ac_tool_prefix"; then
  2309. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2310. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2311. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2312. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2313. if test "${ac_cv_prog_CC+set}" = set; then
  2314. echo $ECHO_N "(cached) $ECHO_C" >&6
  2315. else
  2316. if test -n "$CC"; then
  2317. ac_cv_prog_CC="$CC" # Let the user override the test.
  2318. else
  2319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2320. for as_dir in $PATH
  2321. do
  2322. IFS=$as_save_IFS
  2323. test -z "$as_dir" && as_dir=.
  2324. for ac_exec_ext in '' $ac_executable_extensions; do
  2325. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2326. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2327. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2328. break 2
  2329. fi
  2330. done
  2331. done
  2332. IFS=$as_save_IFS
  2333. fi
  2334. fi
  2335. CC=$ac_cv_prog_CC
  2336. if test -n "$CC"; then
  2337. { echo "$as_me:$LINENO: result: $CC" >&5
  2338. echo "${ECHO_T}$CC" >&6; }
  2339. else
  2340. { echo "$as_me:$LINENO: result: no" >&5
  2341. echo "${ECHO_T}no" >&6; }
  2342. fi
  2343. fi
  2344. if test -z "$ac_cv_prog_CC"; then
  2345. ac_ct_CC=$CC
  2346. # Extract the first word of "gcc", so it can be a program name with args.
  2347. set dummy gcc; ac_word=$2
  2348. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2349. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2350. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2351. echo $ECHO_N "(cached) $ECHO_C" >&6
  2352. else
  2353. if test -n "$ac_ct_CC"; then
  2354. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2355. else
  2356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2357. for as_dir in $PATH
  2358. do
  2359. IFS=$as_save_IFS
  2360. test -z "$as_dir" && as_dir=.
  2361. for ac_exec_ext in '' $ac_executable_extensions; do
  2362. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2363. ac_cv_prog_ac_ct_CC="gcc"
  2364. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2365. break 2
  2366. fi
  2367. done
  2368. done
  2369. IFS=$as_save_IFS
  2370. fi
  2371. fi
  2372. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2373. if test -n "$ac_ct_CC"; then
  2374. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2375. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2376. else
  2377. { echo "$as_me:$LINENO: result: no" >&5
  2378. echo "${ECHO_T}no" >&6; }
  2379. fi
  2380. if test "x$ac_ct_CC" = x; then
  2381. CC=""
  2382. else
  2383. case $cross_compiling:$ac_tool_warned in
  2384. yes:)
  2385. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2386. whose name does not start with the host triplet. If you think this
  2387. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2388. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2389. whose name does not start with the host triplet. If you think this
  2390. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2391. ac_tool_warned=yes ;;
  2392. esac
  2393. CC=$ac_ct_CC
  2394. fi
  2395. else
  2396. CC="$ac_cv_prog_CC"
  2397. fi
  2398. if test -z "$CC"; then
  2399. if test -n "$ac_tool_prefix"; then
  2400. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2401. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2402. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2403. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2404. if test "${ac_cv_prog_CC+set}" = set; then
  2405. echo $ECHO_N "(cached) $ECHO_C" >&6
  2406. else
  2407. if test -n "$CC"; then
  2408. ac_cv_prog_CC="$CC" # Let the user override the test.
  2409. else
  2410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2411. for as_dir in $PATH
  2412. do
  2413. IFS=$as_save_IFS
  2414. test -z "$as_dir" && as_dir=.
  2415. for ac_exec_ext in '' $ac_executable_extensions; do
  2416. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2417. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2418. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2419. break 2
  2420. fi
  2421. done
  2422. done
  2423. IFS=$as_save_IFS
  2424. fi
  2425. fi
  2426. CC=$ac_cv_prog_CC
  2427. if test -n "$CC"; then
  2428. { echo "$as_me:$LINENO: result: $CC" >&5
  2429. echo "${ECHO_T}$CC" >&6; }
  2430. else
  2431. { echo "$as_me:$LINENO: result: no" >&5
  2432. echo "${ECHO_T}no" >&6; }
  2433. fi
  2434. fi
  2435. fi
  2436. if test -z "$CC"; then
  2437. # Extract the first word of "cc", so it can be a program name with args.
  2438. set dummy cc; ac_word=$2
  2439. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2440. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2441. if test "${ac_cv_prog_CC+set}" = set; then
  2442. echo $ECHO_N "(cached) $ECHO_C" >&6
  2443. else
  2444. if test -n "$CC"; then
  2445. ac_cv_prog_CC="$CC" # Let the user override the test.
  2446. else
  2447. ac_prog_rejected=no
  2448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2449. for as_dir in $PATH
  2450. do
  2451. IFS=$as_save_IFS
  2452. test -z "$as_dir" && as_dir=.
  2453. for ac_exec_ext in '' $ac_executable_extensions; do
  2454. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2455. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2456. ac_prog_rejected=yes
  2457. continue
  2458. fi
  2459. ac_cv_prog_CC="cc"
  2460. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2461. break 2
  2462. fi
  2463. done
  2464. done
  2465. IFS=$as_save_IFS
  2466. if test $ac_prog_rejected = yes; then
  2467. # We found a bogon in the path, so make sure we never use it.
  2468. set dummy $ac_cv_prog_CC
  2469. shift
  2470. if test $# != 0; then
  2471. # We chose a different compiler from the bogus one.
  2472. # However, it has the same basename, so the bogon will be chosen
  2473. # first if we set CC to just the basename; use the full file name.
  2474. shift
  2475. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2476. fi
  2477. fi
  2478. fi
  2479. fi
  2480. CC=$ac_cv_prog_CC
  2481. if test -n "$CC"; then
  2482. { echo "$as_me:$LINENO: result: $CC" >&5
  2483. echo "${ECHO_T}$CC" >&6; }
  2484. else
  2485. { echo "$as_me:$LINENO: result: no" >&5
  2486. echo "${ECHO_T}no" >&6; }
  2487. fi
  2488. fi
  2489. if test -z "$CC"; then
  2490. if test -n "$ac_tool_prefix"; then
  2491. for ac_prog in cl.exe
  2492. do
  2493. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2494. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2495. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2496. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2497. if test "${ac_cv_prog_CC+set}" = set; then
  2498. echo $ECHO_N "(cached) $ECHO_C" >&6
  2499. else
  2500. if test -n "$CC"; then
  2501. ac_cv_prog_CC="$CC" # Let the user override the test.
  2502. else
  2503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2504. for as_dir in $PATH
  2505. do
  2506. IFS=$as_save_IFS
  2507. test -z "$as_dir" && as_dir=.
  2508. for ac_exec_ext in '' $ac_executable_extensions; do
  2509. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2510. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2511. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2512. break 2
  2513. fi
  2514. done
  2515. done
  2516. IFS=$as_save_IFS
  2517. fi
  2518. fi
  2519. CC=$ac_cv_prog_CC
  2520. if test -n "$CC"; then
  2521. { echo "$as_me:$LINENO: result: $CC" >&5
  2522. echo "${ECHO_T}$CC" >&6; }
  2523. else
  2524. { echo "$as_me:$LINENO: result: no" >&5
  2525. echo "${ECHO_T}no" >&6; }
  2526. fi
  2527. test -n "$CC" && break
  2528. done
  2529. fi
  2530. if test -z "$CC"; then
  2531. ac_ct_CC=$CC
  2532. for ac_prog in cl.exe
  2533. do
  2534. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2535. set dummy $ac_prog; ac_word=$2
  2536. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2537. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2538. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2539. echo $ECHO_N "(cached) $ECHO_C" >&6
  2540. else
  2541. if test -n "$ac_ct_CC"; then
  2542. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2543. else
  2544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2545. for as_dir in $PATH
  2546. do
  2547. IFS=$as_save_IFS
  2548. test -z "$as_dir" && as_dir=.
  2549. for ac_exec_ext in '' $ac_executable_extensions; do
  2550. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2551. ac_cv_prog_ac_ct_CC="$ac_prog"
  2552. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2553. break 2
  2554. fi
  2555. done
  2556. done
  2557. IFS=$as_save_IFS
  2558. fi
  2559. fi
  2560. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2561. if test -n "$ac_ct_CC"; then
  2562. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2563. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2564. else
  2565. { echo "$as_me:$LINENO: result: no" >&5
  2566. echo "${ECHO_T}no" >&6; }
  2567. fi
  2568. test -n "$ac_ct_CC" && break
  2569. done
  2570. if test "x$ac_ct_CC" = x; then
  2571. CC=""
  2572. else
  2573. case $cross_compiling:$ac_tool_warned in
  2574. yes:)
  2575. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2576. whose name does not start with the host triplet. If you think this
  2577. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2578. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2579. whose name does not start with the host triplet. If you think this
  2580. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2581. ac_tool_warned=yes ;;
  2582. esac
  2583. CC=$ac_ct_CC
  2584. fi
  2585. fi
  2586. fi
  2587. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2588. See \`config.log' for more details." >&5
  2589. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2590. See \`config.log' for more details." >&2;}
  2591. { (exit 1); exit 1; }; }
  2592. # Provide some information about the compiler.
  2593. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2594. ac_compiler=`set X $ac_compile; echo $2`
  2595. { (ac_try="$ac_compiler --version >&5"
  2596. case "(($ac_try" in
  2597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2598. *) ac_try_echo=$ac_try;;
  2599. esac
  2600. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2601. (eval "$ac_compiler --version >&5") 2>&5
  2602. ac_status=$?
  2603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2604. (exit $ac_status); }
  2605. { (ac_try="$ac_compiler -v >&5"
  2606. case "(($ac_try" in
  2607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2608. *) ac_try_echo=$ac_try;;
  2609. esac
  2610. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2611. (eval "$ac_compiler -v >&5") 2>&5
  2612. ac_status=$?
  2613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2614. (exit $ac_status); }
  2615. { (ac_try="$ac_compiler -V >&5"
  2616. case "(($ac_try" in
  2617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2618. *) ac_try_echo=$ac_try;;
  2619. esac
  2620. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2621. (eval "$ac_compiler -V >&5") 2>&5
  2622. ac_status=$?
  2623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2624. (exit $ac_status); }
  2625. cat >conftest.$ac_ext <<_ACEOF
  2626. /* confdefs.h. */
  2627. _ACEOF
  2628. cat confdefs.h >>conftest.$ac_ext
  2629. cat >>conftest.$ac_ext <<_ACEOF
  2630. /* end confdefs.h. */
  2631. int
  2632. main ()
  2633. {
  2634. ;
  2635. return 0;
  2636. }
  2637. _ACEOF
  2638. ac_clean_files_save=$ac_clean_files
  2639. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2640. # Try to create an executable without -o first, disregard a.out.
  2641. # It will help us diagnose broken compilers, and finding out an intuition
  2642. # of exeext.
  2643. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2644. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2645. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2646. #
  2647. # List of possible output files, starting from the most likely.
  2648. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2649. # only as a last resort. b.out is created by i960 compilers.
  2650. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2651. #
  2652. # The IRIX 6 linker writes into existing files which may not be
  2653. # executable, retaining their permissions. Remove them first so a
  2654. # subsequent execution test works.
  2655. ac_rmfiles=
  2656. for ac_file in $ac_files
  2657. do
  2658. case $ac_file in
  2659. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2660. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2661. esac
  2662. done
  2663. rm -f $ac_rmfiles
  2664. if { (ac_try="$ac_link_default"
  2665. case "(($ac_try" in
  2666. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2667. *) ac_try_echo=$ac_try;;
  2668. esac
  2669. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2670. (eval "$ac_link_default") 2>&5
  2671. ac_status=$?
  2672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2673. (exit $ac_status); }; then
  2674. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2675. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2676. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2677. # so that the user can short-circuit this test for compilers unknown to
  2678. # Autoconf.
  2679. for ac_file in $ac_files ''
  2680. do
  2681. test -f "$ac_file" || continue
  2682. case $ac_file in
  2683. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2684. ;;
  2685. [ab].out )
  2686. # We found the default executable, but exeext='' is most
  2687. # certainly right.
  2688. break;;
  2689. *.* )
  2690. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2691. then :; else
  2692. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2693. fi
  2694. # We set ac_cv_exeext here because the later test for it is not
  2695. # safe: cross compilers may not add the suffix if given an `-o'
  2696. # argument, so we may need to know it at that point already.
  2697. # Even if this section looks crufty: it has the advantage of
  2698. # actually working.
  2699. break;;
  2700. * )
  2701. break;;
  2702. esac
  2703. done
  2704. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2705. else
  2706. ac_file=''
  2707. fi
  2708. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2709. echo "${ECHO_T}$ac_file" >&6; }
  2710. if test -z "$ac_file"; then
  2711. echo "$as_me: failed program was:" >&5
  2712. sed 's/^/| /' conftest.$ac_ext >&5
  2713. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2714. See \`config.log' for more details." >&5
  2715. echo "$as_me: error: C compiler cannot create executables
  2716. See \`config.log' for more details." >&2;}
  2717. { (exit 77); exit 77; }; }
  2718. fi
  2719. ac_exeext=$ac_cv_exeext
  2720. # Check that the compiler produces executables we can run. If not, either
  2721. # the compiler is broken, or we cross compile.
  2722. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2723. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2724. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2725. # If not cross compiling, check that we can run a simple program.
  2726. if test "$cross_compiling" != yes; then
  2727. if { ac_try='./$ac_file'
  2728. { (case "(($ac_try" in
  2729. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2730. *) ac_try_echo=$ac_try;;
  2731. esac
  2732. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2733. (eval "$ac_try") 2>&5
  2734. ac_status=$?
  2735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2736. (exit $ac_status); }; }; then
  2737. cross_compiling=no
  2738. else
  2739. if test "$cross_compiling" = maybe; then
  2740. cross_compiling=yes
  2741. else
  2742. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2743. If you meant to cross compile, use \`--host'.
  2744. See \`config.log' for more details." >&5
  2745. echo "$as_me: error: cannot run C compiled programs.
  2746. If you meant to cross compile, use \`--host'.
  2747. See \`config.log' for more details." >&2;}
  2748. { (exit 1); exit 1; }; }
  2749. fi
  2750. fi
  2751. fi
  2752. { echo "$as_me:$LINENO: result: yes" >&5
  2753. echo "${ECHO_T}yes" >&6; }
  2754. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2755. ac_clean_files=$ac_clean_files_save
  2756. # Check that the compiler produces executables we can run. If not, either
  2757. # the compiler is broken, or we cross compile.
  2758. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2759. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2760. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2761. echo "${ECHO_T}$cross_compiling" >&6; }
  2762. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2763. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2764. if { (ac_try="$ac_link"
  2765. case "(($ac_try" in
  2766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2767. *) ac_try_echo=$ac_try;;
  2768. esac
  2769. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2770. (eval "$ac_link") 2>&5
  2771. ac_status=$?
  2772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2773. (exit $ac_status); }; then
  2774. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2775. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2776. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2777. # `rm'.
  2778. for ac_file in conftest.exe conftest conftest.*; do
  2779. test -f "$ac_file" || continue
  2780. case $ac_file in
  2781. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2782. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2783. break;;
  2784. * ) break;;
  2785. esac
  2786. done
  2787. else
  2788. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2789. See \`config.log' for more details." >&5
  2790. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2791. See \`config.log' for more details." >&2;}
  2792. { (exit 1); exit 1; }; }
  2793. fi
  2794. rm -f conftest$ac_cv_exeext
  2795. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2796. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2797. rm -f conftest.$ac_ext
  2798. EXEEXT=$ac_cv_exeext
  2799. ac_exeext=$EXEEXT
  2800. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2801. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2802. if test "${ac_cv_objext+set}" = set; then
  2803. echo $ECHO_N "(cached) $ECHO_C" >&6
  2804. else
  2805. cat >conftest.$ac_ext <<_ACEOF
  2806. /* confdefs.h. */
  2807. _ACEOF
  2808. cat confdefs.h >>conftest.$ac_ext
  2809. cat >>conftest.$ac_ext <<_ACEOF
  2810. /* end confdefs.h. */
  2811. int
  2812. main ()
  2813. {
  2814. ;
  2815. return 0;
  2816. }
  2817. _ACEOF
  2818. rm -f conftest.o conftest.obj
  2819. if { (ac_try="$ac_compile"
  2820. case "(($ac_try" in
  2821. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2822. *) ac_try_echo=$ac_try;;
  2823. esac
  2824. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2825. (eval "$ac_compile") 2>&5
  2826. ac_status=$?
  2827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2828. (exit $ac_status); }; then
  2829. for ac_file in conftest.o conftest.obj 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 ) ;;
  2833. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2834. break;;
  2835. esac
  2836. done
  2837. else
  2838. echo "$as_me: failed program was:" >&5
  2839. sed 's/^/| /' conftest.$ac_ext >&5
  2840. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2841. See \`config.log' for more details." >&5
  2842. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2843. See \`config.log' for more details." >&2;}
  2844. { (exit 1); exit 1; }; }
  2845. fi
  2846. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2847. fi
  2848. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2849. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2850. OBJEXT=$ac_cv_objext
  2851. ac_objext=$OBJEXT
  2852. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2853. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2854. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2855. echo $ECHO_N "(cached) $ECHO_C" >&6
  2856. else
  2857. cat >conftest.$ac_ext <<_ACEOF
  2858. /* confdefs.h. */
  2859. _ACEOF
  2860. cat confdefs.h >>conftest.$ac_ext
  2861. cat >>conftest.$ac_ext <<_ACEOF
  2862. /* end confdefs.h. */
  2863. int
  2864. main ()
  2865. {
  2866. #ifndef __GNUC__
  2867. choke me
  2868. #endif
  2869. ;
  2870. return 0;
  2871. }
  2872. _ACEOF
  2873. rm -f conftest.$ac_objext
  2874. if { (ac_try="$ac_compile"
  2875. case "(($ac_try" in
  2876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2877. *) ac_try_echo=$ac_try;;
  2878. esac
  2879. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2880. (eval "$ac_compile") 2>conftest.er1
  2881. ac_status=$?
  2882. grep -v '^ *+' conftest.er1 >conftest.err
  2883. rm -f conftest.er1
  2884. cat conftest.err >&5
  2885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2886. (exit $ac_status); } && {
  2887. test -z "$ac_c_werror_flag" ||
  2888. test ! -s conftest.err
  2889. } && test -s conftest.$ac_objext; then
  2890. ac_compiler_gnu=yes
  2891. else
  2892. echo "$as_me: failed program was:" >&5
  2893. sed 's/^/| /' conftest.$ac_ext >&5
  2894. ac_compiler_gnu=no
  2895. fi
  2896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2897. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2898. fi
  2899. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2900. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2901. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2902. ac_test_CFLAGS=${CFLAGS+set}
  2903. ac_save_CFLAGS=$CFLAGS
  2904. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2905. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2906. if test "${ac_cv_prog_cc_g+set}" = set; then
  2907. echo $ECHO_N "(cached) $ECHO_C" >&6
  2908. else
  2909. ac_save_c_werror_flag=$ac_c_werror_flag
  2910. ac_c_werror_flag=yes
  2911. ac_cv_prog_cc_g=no
  2912. CFLAGS="-g"
  2913. cat >conftest.$ac_ext <<_ACEOF
  2914. /* confdefs.h. */
  2915. _ACEOF
  2916. cat confdefs.h >>conftest.$ac_ext
  2917. cat >>conftest.$ac_ext <<_ACEOF
  2918. /* end confdefs.h. */
  2919. int
  2920. main ()
  2921. {
  2922. ;
  2923. return 0;
  2924. }
  2925. _ACEOF
  2926. rm -f conftest.$ac_objext
  2927. if { (ac_try="$ac_compile"
  2928. case "(($ac_try" in
  2929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2930. *) ac_try_echo=$ac_try;;
  2931. esac
  2932. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2933. (eval "$ac_compile") 2>conftest.er1
  2934. ac_status=$?
  2935. grep -v '^ *+' conftest.er1 >conftest.err
  2936. rm -f conftest.er1
  2937. cat conftest.err >&5
  2938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2939. (exit $ac_status); } && {
  2940. test -z "$ac_c_werror_flag" ||
  2941. test ! -s conftest.err
  2942. } && test -s conftest.$ac_objext; then
  2943. ac_cv_prog_cc_g=yes
  2944. else
  2945. echo "$as_me: failed program was:" >&5
  2946. sed 's/^/| /' conftest.$ac_ext >&5
  2947. CFLAGS=""
  2948. cat >conftest.$ac_ext <<_ACEOF
  2949. /* confdefs.h. */
  2950. _ACEOF
  2951. cat confdefs.h >>conftest.$ac_ext
  2952. cat >>conftest.$ac_ext <<_ACEOF
  2953. /* end confdefs.h. */
  2954. int
  2955. main ()
  2956. {
  2957. ;
  2958. return 0;
  2959. }
  2960. _ACEOF
  2961. rm -f conftest.$ac_objext
  2962. if { (ac_try="$ac_compile"
  2963. case "(($ac_try" in
  2964. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2965. *) ac_try_echo=$ac_try;;
  2966. esac
  2967. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2968. (eval "$ac_compile") 2>conftest.er1
  2969. ac_status=$?
  2970. grep -v '^ *+' conftest.er1 >conftest.err
  2971. rm -f conftest.er1
  2972. cat conftest.err >&5
  2973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2974. (exit $ac_status); } && {
  2975. test -z "$ac_c_werror_flag" ||
  2976. test ! -s conftest.err
  2977. } && test -s conftest.$ac_objext; then
  2978. :
  2979. else
  2980. echo "$as_me: failed program was:" >&5
  2981. sed 's/^/| /' conftest.$ac_ext >&5
  2982. ac_c_werror_flag=$ac_save_c_werror_flag
  2983. CFLAGS="-g"
  2984. cat >conftest.$ac_ext <<_ACEOF
  2985. /* confdefs.h. */
  2986. _ACEOF
  2987. cat confdefs.h >>conftest.$ac_ext
  2988. cat >>conftest.$ac_ext <<_ACEOF
  2989. /* end confdefs.h. */
  2990. int
  2991. main ()
  2992. {
  2993. ;
  2994. return 0;
  2995. }
  2996. _ACEOF
  2997. rm -f conftest.$ac_objext
  2998. if { (ac_try="$ac_compile"
  2999. case "(($ac_try" in
  3000. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3001. *) ac_try_echo=$ac_try;;
  3002. esac
  3003. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3004. (eval "$ac_compile") 2>conftest.er1
  3005. ac_status=$?
  3006. grep -v '^ *+' conftest.er1 >conftest.err
  3007. rm -f conftest.er1
  3008. cat conftest.err >&5
  3009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3010. (exit $ac_status); } && {
  3011. test -z "$ac_c_werror_flag" ||
  3012. test ! -s conftest.err
  3013. } && test -s conftest.$ac_objext; then
  3014. ac_cv_prog_cc_g=yes
  3015. else
  3016. echo "$as_me: failed program was:" >&5
  3017. sed 's/^/| /' conftest.$ac_ext >&5
  3018. fi
  3019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3020. fi
  3021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3022. fi
  3023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3024. ac_c_werror_flag=$ac_save_c_werror_flag
  3025. fi
  3026. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3027. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3028. if test "$ac_test_CFLAGS" = set; then
  3029. CFLAGS=$ac_save_CFLAGS
  3030. elif test $ac_cv_prog_cc_g = yes; then
  3031. if test "$GCC" = yes; then
  3032. CFLAGS="-g -O2"
  3033. else
  3034. CFLAGS="-g"
  3035. fi
  3036. else
  3037. if test "$GCC" = yes; then
  3038. CFLAGS="-O2"
  3039. else
  3040. CFLAGS=
  3041. fi
  3042. fi
  3043. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3044. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3045. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3046. echo $ECHO_N "(cached) $ECHO_C" >&6
  3047. else
  3048. ac_cv_prog_cc_c89=no
  3049. ac_save_CC=$CC
  3050. cat >conftest.$ac_ext <<_ACEOF
  3051. /* confdefs.h. */
  3052. _ACEOF
  3053. cat confdefs.h >>conftest.$ac_ext
  3054. cat >>conftest.$ac_ext <<_ACEOF
  3055. /* end confdefs.h. */
  3056. #include <stdarg.h>
  3057. #include <stdio.h>
  3058. #include <sys/types.h>
  3059. #include <sys/stat.h>
  3060. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3061. struct buf { int x; };
  3062. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3063. static char *e (p, i)
  3064. char **p;
  3065. int i;
  3066. {
  3067. return p[i];
  3068. }
  3069. static char *f (char * (*g) (char **, int), char **p, ...)
  3070. {
  3071. char *s;
  3072. va_list v;
  3073. va_start (v,p);
  3074. s = g (p, va_arg (v,int));
  3075. va_end (v);
  3076. return s;
  3077. }
  3078. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3079. function prototypes and stuff, but not '\xHH' hex character constants.
  3080. These don't provoke an error unfortunately, instead are silently treated
  3081. as 'x'. The following induces an error, until -std is added to get
  3082. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3083. array size at least. It's necessary to write '\x00'==0 to get something
  3084. that's true only with -std. */
  3085. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3086. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3087. inside strings and character constants. */
  3088. #define FOO(x) 'x'
  3089. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3090. int test (int i, double x);
  3091. struct s1 {int (*f) (int a);};
  3092. struct s2 {int (*f) (double a);};
  3093. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3094. int argc;
  3095. char **argv;
  3096. int
  3097. main ()
  3098. {
  3099. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3100. ;
  3101. return 0;
  3102. }
  3103. _ACEOF
  3104. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3105. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3106. do
  3107. CC="$ac_save_CC $ac_arg"
  3108. rm -f conftest.$ac_objext
  3109. if { (ac_try="$ac_compile"
  3110. case "(($ac_try" in
  3111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3112. *) ac_try_echo=$ac_try;;
  3113. esac
  3114. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3115. (eval "$ac_compile") 2>conftest.er1
  3116. ac_status=$?
  3117. grep -v '^ *+' conftest.er1 >conftest.err
  3118. rm -f conftest.er1
  3119. cat conftest.err >&5
  3120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3121. (exit $ac_status); } && {
  3122. test -z "$ac_c_werror_flag" ||
  3123. test ! -s conftest.err
  3124. } && test -s conftest.$ac_objext; then
  3125. ac_cv_prog_cc_c89=$ac_arg
  3126. else
  3127. echo "$as_me: failed program was:" >&5
  3128. sed 's/^/| /' conftest.$ac_ext >&5
  3129. fi
  3130. rm -f core conftest.err conftest.$ac_objext
  3131. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3132. done
  3133. rm -f conftest.$ac_ext
  3134. CC=$ac_save_CC
  3135. fi
  3136. # AC_CACHE_VAL
  3137. case "x$ac_cv_prog_cc_c89" in
  3138. x)
  3139. { echo "$as_me:$LINENO: result: none needed" >&5
  3140. echo "${ECHO_T}none needed" >&6; } ;;
  3141. xno)
  3142. { echo "$as_me:$LINENO: result: unsupported" >&5
  3143. echo "${ECHO_T}unsupported" >&6; } ;;
  3144. *)
  3145. CC="$CC $ac_cv_prog_cc_c89"
  3146. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3147. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3148. esac
  3149. ac_ext=c
  3150. ac_cpp='$CPP $CPPFLAGS'
  3151. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3152. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3153. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3154. DEPDIR="${am__leading_dot}deps"
  3155. ac_config_commands="$ac_config_commands depfiles"
  3156. am_make=${MAKE-make}
  3157. cat > confinc << 'END'
  3158. am__doit:
  3159. @echo done
  3160. .PHONY: am__doit
  3161. END
  3162. # If we don't find an include directive, just comment out the code.
  3163. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3164. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  3165. am__include="#"
  3166. am__quote=
  3167. _am_result=none
  3168. # First try GNU make style include.
  3169. echo "include confinc" > confmf
  3170. # We grep out `Entering directory' and `Leaving directory'
  3171. # messages which can occur if `w' ends up in MAKEFLAGS.
  3172. # In particular we don't look at `^make:' because GNU make might
  3173. # be invoked under some other name (usually "gmake"), in which
  3174. # case it prints its new name instead of `make'.
  3175. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3176. am__include=include
  3177. am__quote=
  3178. _am_result=GNU
  3179. fi
  3180. # Now try BSD make style include.
  3181. if test "$am__include" = "#"; then
  3182. echo '.include "confinc"' > confmf
  3183. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3184. am__include=.include
  3185. am__quote="\""
  3186. _am_result=BSD
  3187. fi
  3188. fi
  3189. { echo "$as_me:$LINENO: result: $_am_result" >&5
  3190. echo "${ECHO_T}$_am_result" >&6; }
  3191. rm -f confinc confmf
  3192. # Check whether --enable-dependency-tracking was given.
  3193. if test "${enable_dependency_tracking+set}" = set; then
  3194. enableval=$enable_dependency_tracking;
  3195. fi
  3196. if test "x$enable_dependency_tracking" != xno; then
  3197. am_depcomp="$ac_aux_dir/depcomp"
  3198. AMDEPBACKSLASH='\'
  3199. fi
  3200. if test "x$enable_dependency_tracking" != xno; then
  3201. AMDEP_TRUE=
  3202. AMDEP_FALSE='#'
  3203. else
  3204. AMDEP_TRUE='#'
  3205. AMDEP_FALSE=
  3206. fi
  3207. depcc="$CC" am_compiler_list=
  3208. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3209. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3210. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3211. echo $ECHO_N "(cached) $ECHO_C" >&6
  3212. else
  3213. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3214. # We make a subdir and do the tests there. Otherwise we can end up
  3215. # making bogus files that we don't know about and never remove. For
  3216. # instance it was reported that on HP-UX the gcc test will end up
  3217. # making a dummy file named `D' -- because `-MD' means `put the output
  3218. # in D'.
  3219. mkdir conftest.dir
  3220. # Copy depcomp to subdir because otherwise we won't find it if we're
  3221. # using a relative directory.
  3222. cp "$am_depcomp" conftest.dir
  3223. cd conftest.dir
  3224. # We will build objects and dependencies in a subdirectory because
  3225. # it helps to detect inapplicable dependency modes. For instance
  3226. # both Tru64's cc and ICC support -MD to output dependencies as a
  3227. # side effect of compilation, but ICC will put the dependencies in
  3228. # the current directory while Tru64 will put them in the object
  3229. # directory.
  3230. mkdir sub
  3231. am_cv_CC_dependencies_compiler_type=none
  3232. if test "$am_compiler_list" = ""; then
  3233. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3234. fi
  3235. for depmode in $am_compiler_list; do
  3236. # Setup a source with many dependencies, because some compilers
  3237. # like to wrap large dependency lists on column 80 (with \), and
  3238. # we should not choose a depcomp mode which is confused by this.
  3239. #
  3240. # We need to recreate these files for each test, as the compiler may
  3241. # overwrite some of them when testing with obscure command lines.
  3242. # This happens at least with the AIX C compiler.
  3243. : > sub/conftest.c
  3244. for i in 1 2 3 4 5 6; do
  3245. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3246. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3247. # Solaris 8's {/usr,}/bin/sh.
  3248. touch sub/conftst$i.h
  3249. done
  3250. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3251. case $depmode in
  3252. nosideeffect)
  3253. # after this tag, mechanisms are not by side-effect, so they'll
  3254. # only be used when explicitly requested
  3255. if test "x$enable_dependency_tracking" = xyes; then
  3256. continue
  3257. else
  3258. break
  3259. fi
  3260. ;;
  3261. none) break ;;
  3262. esac
  3263. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3264. # mode. It turns out that the SunPro C++ compiler does not properly
  3265. # handle `-M -o', and we need to detect this.
  3266. if depmode=$depmode \
  3267. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3268. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3269. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3270. >/dev/null 2>conftest.err &&
  3271. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3272. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3273. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3274. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3275. # icc doesn't choke on unknown options, it will just issue warnings
  3276. # or remarks (even with -Werror). So we grep stderr for any message
  3277. # that says an option was ignored or not supported.
  3278. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3279. # icc: Command line warning: ignoring option '-M'; no argument required
  3280. # The diagnosis changed in icc 8.0:
  3281. # icc: Command line remark: option '-MP' not supported
  3282. if (grep 'ignoring option' conftest.err ||
  3283. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3284. am_cv_CC_dependencies_compiler_type=$depmode
  3285. break
  3286. fi
  3287. fi
  3288. done
  3289. cd ..
  3290. rm -rf conftest.dir
  3291. else
  3292. am_cv_CC_dependencies_compiler_type=none
  3293. fi
  3294. fi
  3295. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3296. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3297. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3298. if
  3299. test "x$enable_dependency_tracking" != xno \
  3300. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3301. am__fastdepCC_TRUE=
  3302. am__fastdepCC_FALSE='#'
  3303. else
  3304. am__fastdepCC_TRUE='#'
  3305. am__fastdepCC_FALSE=
  3306. fi
  3307. # By default we simply use the C compiler to build assembly code.
  3308. test "${CCAS+set}" = set || CCAS=$CC
  3309. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  3310. depcc="$CCAS" am_compiler_list=
  3311. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3312. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3313. if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
  3314. echo $ECHO_N "(cached) $ECHO_C" >&6
  3315. else
  3316. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3317. # We make a subdir and do the tests there. Otherwise we can end up
  3318. # making bogus files that we don't know about and never remove. For
  3319. # instance it was reported that on HP-UX the gcc test will end up
  3320. # making a dummy file named `D' -- because `-MD' means `put the output
  3321. # in D'.
  3322. mkdir conftest.dir
  3323. # Copy depcomp to subdir because otherwise we won't find it if we're
  3324. # using a relative directory.
  3325. cp "$am_depcomp" conftest.dir
  3326. cd conftest.dir
  3327. # We will build objects and dependencies in a subdirectory because
  3328. # it helps to detect inapplicable dependency modes. For instance
  3329. # both Tru64's cc and ICC support -MD to output dependencies as a
  3330. # side effect of compilation, but ICC will put the dependencies in
  3331. # the current directory while Tru64 will put them in the object
  3332. # directory.
  3333. mkdir sub
  3334. am_cv_CCAS_dependencies_compiler_type=none
  3335. if test "$am_compiler_list" = ""; then
  3336. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3337. fi
  3338. for depmode in $am_compiler_list; do
  3339. # Setup a source with many dependencies, because some compilers
  3340. # like to wrap large dependency lists on column 80 (with \), and
  3341. # we should not choose a depcomp mode which is confused by this.
  3342. #
  3343. # We need to recreate these files for each test, as the compiler may
  3344. # overwrite some of them when testing with obscure command lines.
  3345. # This happens at least with the AIX C compiler.
  3346. : > sub/conftest.c
  3347. for i in 1 2 3 4 5 6; do
  3348. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3349. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3350. # Solaris 8's {/usr,}/bin/sh.
  3351. touch sub/conftst$i.h
  3352. done
  3353. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3354. case $depmode in
  3355. nosideeffect)
  3356. # after this tag, mechanisms are not by side-effect, so they'll
  3357. # only be used when explicitly requested
  3358. if test "x$enable_dependency_tracking" = xyes; then
  3359. continue
  3360. else
  3361. break
  3362. fi
  3363. ;;
  3364. none) break ;;
  3365. esac
  3366. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3367. # mode. It turns out that the SunPro C++ compiler does not properly
  3368. # handle `-M -o', and we need to detect this.
  3369. if depmode=$depmode \
  3370. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3371. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3372. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3373. >/dev/null 2>conftest.err &&
  3374. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3375. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3376. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3377. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3378. # icc doesn't choke on unknown options, it will just issue warnings
  3379. # or remarks (even with -Werror). So we grep stderr for any message
  3380. # that says an option was ignored or not supported.
  3381. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3382. # icc: Command line warning: ignoring option '-M'; no argument required
  3383. # The diagnosis changed in icc 8.0:
  3384. # icc: Command line remark: option '-MP' not supported
  3385. if (grep 'ignoring option' conftest.err ||
  3386. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3387. am_cv_CCAS_dependencies_compiler_type=$depmode
  3388. break
  3389. fi
  3390. fi
  3391. done
  3392. cd ..
  3393. rm -rf conftest.dir
  3394. else
  3395. am_cv_CCAS_dependencies_compiler_type=none
  3396. fi
  3397. fi
  3398. { echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  3399. echo "${ECHO_T}$am_cv_CCAS_dependencies_compiler_type" >&6; }
  3400. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  3401. if
  3402. test "x$enable_dependency_tracking" != xno \
  3403. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  3404. am__fastdepCCAS_TRUE=
  3405. am__fastdepCCAS_FALSE='#'
  3406. else
  3407. am__fastdepCCAS_TRUE='#'
  3408. am__fastdepCCAS_FALSE=
  3409. fi
  3410. if test "x$CC" != xcc; then
  3411. { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  3412. echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
  3413. else
  3414. { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  3415. echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
  3416. fi
  3417. set dummy $CC; ac_cc=`echo $2 |
  3418. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3419. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  3420. echo $ECHO_N "(cached) $ECHO_C" >&6
  3421. else
  3422. cat >conftest.$ac_ext <<_ACEOF
  3423. /* confdefs.h. */
  3424. _ACEOF
  3425. cat confdefs.h >>conftest.$ac_ext
  3426. cat >>conftest.$ac_ext <<_ACEOF
  3427. /* end confdefs.h. */
  3428. int
  3429. main ()
  3430. {
  3431. ;
  3432. return 0;
  3433. }
  3434. _ACEOF
  3435. # Make sure it works both with $CC and with simple cc.
  3436. # We do the test twice because some compilers refuse to overwrite an
  3437. # existing .o file with -o, though they will create one.
  3438. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3439. rm -f conftest2.*
  3440. if { (case "(($ac_try" in
  3441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3442. *) ac_try_echo=$ac_try;;
  3443. esac
  3444. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3445. (eval "$ac_try") 2>&5
  3446. ac_status=$?
  3447. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3448. (exit $ac_status); } &&
  3449. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  3450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3451. *) ac_try_echo=$ac_try;;
  3452. esac
  3453. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3454. (eval "$ac_try") 2>&5
  3455. ac_status=$?
  3456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3457. (exit $ac_status); };
  3458. then
  3459. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3460. if test "x$CC" != xcc; then
  3461. # Test first that cc exists at all.
  3462. if { ac_try='cc -c conftest.$ac_ext >&5'
  3463. { (case "(($ac_try" in
  3464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3465. *) ac_try_echo=$ac_try;;
  3466. esac
  3467. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3468. (eval "$ac_try") 2>&5
  3469. ac_status=$?
  3470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3471. (exit $ac_status); }; }; then
  3472. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3473. rm -f conftest2.*
  3474. if { (case "(($ac_try" in
  3475. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3476. *) ac_try_echo=$ac_try;;
  3477. esac
  3478. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3479. (eval "$ac_try") 2>&5
  3480. ac_status=$?
  3481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3482. (exit $ac_status); } &&
  3483. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  3484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3485. *) ac_try_echo=$ac_try;;
  3486. esac
  3487. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3488. (eval "$ac_try") 2>&5
  3489. ac_status=$?
  3490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3491. (exit $ac_status); };
  3492. then
  3493. # cc works too.
  3494. :
  3495. else
  3496. # cc exists but doesn't like -o.
  3497. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3498. fi
  3499. fi
  3500. fi
  3501. else
  3502. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3503. fi
  3504. rm -f core conftest*
  3505. fi
  3506. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  3507. { echo "$as_me:$LINENO: result: yes" >&5
  3508. echo "${ECHO_T}yes" >&6; }
  3509. else
  3510. { echo "$as_me:$LINENO: result: no" >&5
  3511. echo "${ECHO_T}no" >&6; }
  3512. cat >>confdefs.h <<\_ACEOF
  3513. #define NO_MINUS_C_MINUS_O 1
  3514. _ACEOF
  3515. fi
  3516. # FIXME: we rely on the cache variable name because
  3517. # there is no other way.
  3518. set dummy $CC
  3519. ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3520. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  3521. # Losing compiler, so override with the script.
  3522. # FIXME: It is wrong to rewrite CC.
  3523. # But if we don't then we get into trouble of one sort or another.
  3524. # A longer-term fix would be to have automake use am__CC in this case,
  3525. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3526. CC="$am_aux_dir/compile $CC"
  3527. fi
  3528. # Check whether --enable-shared was given.
  3529. if test "${enable_shared+set}" = set; then
  3530. enableval=$enable_shared; p=${PACKAGE-default}
  3531. case $enableval in
  3532. yes) enable_shared=yes ;;
  3533. no) enable_shared=no ;;
  3534. *)
  3535. enable_shared=no
  3536. # Look at the argument we got. We use all the common list separators.
  3537. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3538. for pkg in $enableval; do
  3539. IFS="$lt_save_ifs"
  3540. if test "X$pkg" = "X$p"; then
  3541. enable_shared=yes
  3542. fi
  3543. done
  3544. IFS="$lt_save_ifs"
  3545. ;;
  3546. esac
  3547. else
  3548. enable_shared=yes
  3549. fi
  3550. # Check whether --enable-static was given.
  3551. if test "${enable_static+set}" = set; then
  3552. enableval=$enable_static; p=${PACKAGE-default}
  3553. case $enableval in
  3554. yes) enable_static=yes ;;
  3555. no) enable_static=no ;;
  3556. *)
  3557. enable_static=no
  3558. # Look at the argument we got. We use all the common list separators.
  3559. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3560. for pkg in $enableval; do
  3561. IFS="$lt_save_ifs"
  3562. if test "X$pkg" = "X$p"; then
  3563. enable_static=yes
  3564. fi
  3565. done
  3566. IFS="$lt_save_ifs"
  3567. ;;
  3568. esac
  3569. else
  3570. enable_static=yes
  3571. fi
  3572. # Check whether --enable-fast-install was given.
  3573. if test "${enable_fast_install+set}" = set; then
  3574. enableval=$enable_fast_install; p=${PACKAGE-default}
  3575. case $enableval in
  3576. yes) enable_fast_install=yes ;;
  3577. no) enable_fast_install=no ;;
  3578. *)
  3579. enable_fast_install=no
  3580. # Look at the argument we got. We use all the common list separators.
  3581. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3582. for pkg in $enableval; do
  3583. IFS="$lt_save_ifs"
  3584. if test "X$pkg" = "X$p"; then
  3585. enable_fast_install=yes
  3586. fi
  3587. done
  3588. IFS="$lt_save_ifs"
  3589. ;;
  3590. esac
  3591. else
  3592. enable_fast_install=yes
  3593. fi
  3594. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3595. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  3596. if test "${lt_cv_path_SED+set}" = set; then
  3597. echo $ECHO_N "(cached) $ECHO_C" >&6
  3598. else
  3599. # Loop through the user's path and test for sed and gsed.
  3600. # Then use that list of sed's as ones to test for truncation.
  3601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3602. for as_dir in $PATH
  3603. do
  3604. IFS=$as_save_IFS
  3605. test -z "$as_dir" && as_dir=.
  3606. for lt_ac_prog in sed gsed; do
  3607. for ac_exec_ext in '' $ac_executable_extensions; do
  3608. if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  3609. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3610. fi
  3611. done
  3612. done
  3613. done
  3614. IFS=$as_save_IFS
  3615. lt_ac_max=0
  3616. lt_ac_count=0
  3617. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3618. # along with /bin/sed that truncates output.
  3619. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3620. test ! -f $lt_ac_sed && continue
  3621. cat /dev/null > conftest.in
  3622. lt_ac_count=0
  3623. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3624. # Check for GNU sed and select it if it is found.
  3625. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3626. lt_cv_path_SED=$lt_ac_sed
  3627. break
  3628. fi
  3629. while true; do
  3630. cat conftest.in conftest.in >conftest.tmp
  3631. mv conftest.tmp conftest.in
  3632. cp conftest.in conftest.nl
  3633. echo >>conftest.nl
  3634. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3635. cmp -s conftest.out conftest.nl || break
  3636. # 10000 chars as input seems more than enough
  3637. test $lt_ac_count -gt 10 && break
  3638. lt_ac_count=`expr $lt_ac_count + 1`
  3639. if test $lt_ac_count -gt $lt_ac_max; then
  3640. lt_ac_max=$lt_ac_count
  3641. lt_cv_path_SED=$lt_ac_sed
  3642. fi
  3643. done
  3644. done
  3645. fi
  3646. SED=$lt_cv_path_SED
  3647. { echo "$as_me:$LINENO: result: $SED" >&5
  3648. echo "${ECHO_T}$SED" >&6; }
  3649. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3650. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3651. if test "${ac_cv_path_GREP+set}" = set; then
  3652. echo $ECHO_N "(cached) $ECHO_C" >&6
  3653. else
  3654. # Extract the first word of "grep ggrep" to use in msg output
  3655. if test -z "$GREP"; then
  3656. set dummy grep ggrep; ac_prog_name=$2
  3657. if test "${ac_cv_path_GREP+set}" = set; then
  3658. echo $ECHO_N "(cached) $ECHO_C" >&6
  3659. else
  3660. ac_path_GREP_found=false
  3661. # Loop through the user's path and test for each of PROGNAME-LIST
  3662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3663. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3664. do
  3665. IFS=$as_save_IFS
  3666. test -z "$as_dir" && as_dir=.
  3667. for ac_prog in grep ggrep; do
  3668. for ac_exec_ext in '' $ac_executable_extensions; do
  3669. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3670. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3671. # Check for GNU ac_path_GREP and select it if it is found.
  3672. # Check for GNU $ac_path_GREP
  3673. case `"$ac_path_GREP" --version 2>&1` in
  3674. *GNU*)
  3675. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3676. *)
  3677. ac_count=0
  3678. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3679. while :
  3680. do
  3681. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3682. mv "conftest.tmp" "conftest.in"
  3683. cp "conftest.in" "conftest.nl"
  3684. echo 'GREP' >> "conftest.nl"
  3685. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3686. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3687. ac_count=`expr $ac_count + 1`
  3688. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3689. # Best one so far, save it but keep looking for a better one
  3690. ac_cv_path_GREP="$ac_path_GREP"
  3691. ac_path_GREP_max=$ac_count
  3692. fi
  3693. # 10*(2^10) chars as input seems more than enough
  3694. test $ac_count -gt 10 && break
  3695. done
  3696. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3697. esac
  3698. $ac_path_GREP_found && break 3
  3699. done
  3700. done
  3701. done
  3702. IFS=$as_save_IFS
  3703. fi
  3704. GREP="$ac_cv_path_GREP"
  3705. if test -z "$GREP"; then
  3706. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3707. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3708. { (exit 1); exit 1; }; }
  3709. fi
  3710. else
  3711. ac_cv_path_GREP=$GREP
  3712. fi
  3713. fi
  3714. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3715. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3716. GREP="$ac_cv_path_GREP"
  3717. { echo "$as_me:$LINENO: checking for egrep" >&5
  3718. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3719. if test "${ac_cv_path_EGREP+set}" = set; then
  3720. echo $ECHO_N "(cached) $ECHO_C" >&6
  3721. else
  3722. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3723. then ac_cv_path_EGREP="$GREP -E"
  3724. else
  3725. # Extract the first word of "egrep" to use in msg output
  3726. if test -z "$EGREP"; then
  3727. set dummy egrep; ac_prog_name=$2
  3728. if test "${ac_cv_path_EGREP+set}" = set; then
  3729. echo $ECHO_N "(cached) $ECHO_C" >&6
  3730. else
  3731. ac_path_EGREP_found=false
  3732. # Loop through the user's path and test for each of PROGNAME-LIST
  3733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3734. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3735. do
  3736. IFS=$as_save_IFS
  3737. test -z "$as_dir" && as_dir=.
  3738. for ac_prog in egrep; do
  3739. for ac_exec_ext in '' $ac_executable_extensions; do
  3740. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3741. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3742. # Check for GNU ac_path_EGREP and select it if it is found.
  3743. # Check for GNU $ac_path_EGREP
  3744. case `"$ac_path_EGREP" --version 2>&1` in
  3745. *GNU*)
  3746. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3747. *)
  3748. ac_count=0
  3749. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3750. while :
  3751. do
  3752. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3753. mv "conftest.tmp" "conftest.in"
  3754. cp "conftest.in" "conftest.nl"
  3755. echo 'EGREP' >> "conftest.nl"
  3756. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3757. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3758. ac_count=`expr $ac_count + 1`
  3759. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3760. # Best one so far, save it but keep looking for a better one
  3761. ac_cv_path_EGREP="$ac_path_EGREP"
  3762. ac_path_EGREP_max=$ac_count
  3763. fi
  3764. # 10*(2^10) chars as input seems more than enough
  3765. test $ac_count -gt 10 && break
  3766. done
  3767. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3768. esac
  3769. $ac_path_EGREP_found && break 3
  3770. done
  3771. done
  3772. done
  3773. IFS=$as_save_IFS
  3774. fi
  3775. EGREP="$ac_cv_path_EGREP"
  3776. if test -z "$EGREP"; then
  3777. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3778. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3779. { (exit 1); exit 1; }; }
  3780. fi
  3781. else
  3782. ac_cv_path_EGREP=$EGREP
  3783. fi
  3784. fi
  3785. fi
  3786. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3787. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3788. EGREP="$ac_cv_path_EGREP"
  3789. # Check whether --with-gnu-ld was given.
  3790. if test "${with_gnu_ld+set}" = set; then
  3791. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3792. else
  3793. with_gnu_ld=no
  3794. fi
  3795. ac_prog=ld
  3796. if test "$GCC" = yes; then
  3797. # Check if gcc -print-prog-name=ld gives a path.
  3798. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3799. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  3800. case $host in
  3801. *-*-mingw*)
  3802. # gcc leaves a trailing carriage return which upsets mingw
  3803. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3804. *)
  3805. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3806. esac
  3807. case $ac_prog in
  3808. # Accept absolute paths.
  3809. [\\/]* | ?:[\\/]*)
  3810. re_direlt='/[^/][^/]*/\.\./'
  3811. # Canonicalize the pathname of ld
  3812. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3813. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3814. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3815. done
  3816. test -z "$LD" && LD="$ac_prog"
  3817. ;;
  3818. "")
  3819. # If it fails, then pretend we aren't using GCC.
  3820. ac_prog=ld
  3821. ;;
  3822. *)
  3823. # If it is relative, then search for the first ld in PATH.
  3824. with_gnu_ld=unknown
  3825. ;;
  3826. esac
  3827. elif test "$with_gnu_ld" = yes; then
  3828. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  3829. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  3830. else
  3831. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3832. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  3833. fi
  3834. if test "${lt_cv_path_LD+set}" = set; then
  3835. echo $ECHO_N "(cached) $ECHO_C" >&6
  3836. else
  3837. if test -z "$LD"; then
  3838. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3839. for ac_dir in $PATH; do
  3840. IFS="$lt_save_ifs"
  3841. test -z "$ac_dir" && ac_dir=.
  3842. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3843. lt_cv_path_LD="$ac_dir/$ac_prog"
  3844. # Check to see if the program is GNU ld. I'd rather use --version,
  3845. # but apparently some variants of GNU ld only accept -v.
  3846. # Break only if it was the GNU/non-GNU ld that we prefer.
  3847. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3848. *GNU* | *'with BFD'*)
  3849. test "$with_gnu_ld" != no && break
  3850. ;;
  3851. *)
  3852. test "$with_gnu_ld" != yes && break
  3853. ;;
  3854. esac
  3855. fi
  3856. done
  3857. IFS="$lt_save_ifs"
  3858. else
  3859. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3860. fi
  3861. fi
  3862. LD="$lt_cv_path_LD"
  3863. if test -n "$LD"; then
  3864. { echo "$as_me:$LINENO: result: $LD" >&5
  3865. echo "${ECHO_T}$LD" >&6; }
  3866. else
  3867. { echo "$as_me:$LINENO: result: no" >&5
  3868. echo "${ECHO_T}no" >&6; }
  3869. fi
  3870. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3871. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3872. { (exit 1); exit 1; }; }
  3873. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3874. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  3875. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3876. echo $ECHO_N "(cached) $ECHO_C" >&6
  3877. else
  3878. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3879. case `$LD -v 2>&1 </dev/null` in
  3880. *GNU* | *'with BFD'*)
  3881. lt_cv_prog_gnu_ld=yes
  3882. ;;
  3883. *)
  3884. lt_cv_prog_gnu_ld=no
  3885. ;;
  3886. esac
  3887. fi
  3888. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3889. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  3890. with_gnu_ld=$lt_cv_prog_gnu_ld
  3891. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3892. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  3893. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3894. echo $ECHO_N "(cached) $ECHO_C" >&6
  3895. else
  3896. lt_cv_ld_reload_flag='-r'
  3897. fi
  3898. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3899. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  3900. reload_flag=$lt_cv_ld_reload_flag
  3901. case $reload_flag in
  3902. "" | " "*) ;;
  3903. *) reload_flag=" $reload_flag" ;;
  3904. esac
  3905. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3906. case $host_os in
  3907. darwin*)
  3908. if test "$GCC" = yes; then
  3909. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3910. else
  3911. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3912. fi
  3913. ;;
  3914. esac
  3915. { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3916. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  3917. if test "${lt_cv_path_NM+set}" = set; then
  3918. echo $ECHO_N "(cached) $ECHO_C" >&6
  3919. else
  3920. if test -n "$NM"; then
  3921. # Let the user override the test.
  3922. lt_cv_path_NM="$NM"
  3923. else
  3924. lt_nm_to_check="${ac_tool_prefix}nm"
  3925. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3926. lt_nm_to_check="$lt_nm_to_check nm"
  3927. fi
  3928. for lt_tmp_nm in $lt_nm_to_check; do
  3929. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3930. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3931. IFS="$lt_save_ifs"
  3932. test -z "$ac_dir" && ac_dir=.
  3933. tmp_nm="$ac_dir/$lt_tmp_nm"
  3934. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3935. # Check to see if the nm accepts a BSD-compat flag.
  3936. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3937. # nm: unknown option "B" ignored
  3938. # Tru64's nm complains that /dev/null is an invalid object file
  3939. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3940. */dev/null* | *'Invalid file or object type'*)
  3941. lt_cv_path_NM="$tmp_nm -B"
  3942. break
  3943. ;;
  3944. *)
  3945. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3946. */dev/null*)
  3947. lt_cv_path_NM="$tmp_nm -p"
  3948. break
  3949. ;;
  3950. *)
  3951. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3952. continue # so that we can try to find one that supports BSD flags
  3953. ;;
  3954. esac
  3955. ;;
  3956. esac
  3957. fi
  3958. done
  3959. IFS="$lt_save_ifs"
  3960. done
  3961. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3962. fi
  3963. fi
  3964. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3965. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  3966. NM="$lt_cv_path_NM"
  3967. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3968. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  3969. LN_S=$as_ln_s
  3970. if test "$LN_S" = "ln -s"; then
  3971. { echo "$as_me:$LINENO: result: yes" >&5
  3972. echo "${ECHO_T}yes" >&6; }
  3973. else
  3974. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3975. echo "${ECHO_T}no, using $LN_S" >&6; }
  3976. fi
  3977. { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  3978. echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
  3979. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3980. echo $ECHO_N "(cached) $ECHO_C" >&6
  3981. else
  3982. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3983. lt_cv_file_magic_test_file=
  3984. lt_cv_deplibs_check_method='unknown'
  3985. # Need to set the preceding variable on all platforms that support
  3986. # interlibrary dependencies.
  3987. # 'none' -- dependencies not supported.
  3988. # `unknown' -- same as none, but documents that we really don't know.
  3989. # 'pass_all' -- all dependencies passed with no checks.
  3990. # 'test_compile' -- check by making test program.
  3991. # 'file_magic [[regex]]' -- check by looking for files in library path
  3992. # which responds to the $file_magic_cmd with a given extended regex.
  3993. # If you have `file' or equivalent on your system and you're not sure
  3994. # whether `pass_all' will *always* work, you probably want this one.
  3995. case $host_os in
  3996. aix4* | aix5*)
  3997. lt_cv_deplibs_check_method=pass_all
  3998. ;;
  3999. beos*)
  4000. lt_cv_deplibs_check_method=pass_all
  4001. ;;
  4002. bsdi[45]*)
  4003. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4004. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4005. lt_cv_file_magic_test_file=/shlib/libc.so
  4006. ;;
  4007. cygwin*)
  4008. # func_win32_libid is a shell function defined in ltmain.sh
  4009. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4010. lt_cv_file_magic_cmd='func_win32_libid'
  4011. ;;
  4012. mingw* | pw32*)
  4013. # Base MSYS/MinGW do not provide the 'file' command needed by
  4014. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4015. # unless we find 'file', for example because we are cross-compiling.
  4016. if ( file / ) >/dev/null 2>&1; then
  4017. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4018. lt_cv_file_magic_cmd='func_win32_libid'
  4019. else
  4020. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4021. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4022. fi
  4023. ;;
  4024. darwin* | rhapsody*)
  4025. lt_cv_deplibs_check_method=pass_all
  4026. ;;
  4027. freebsd* | dragonfly*)
  4028. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4029. case $host_cpu in
  4030. i*86 )
  4031. # Not sure whether the presence of OpenBSD here was a mistake.
  4032. # Let's accept both of them until this is cleared up.
  4033. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4034. lt_cv_file_magic_cmd=/usr/bin/file
  4035. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4036. ;;
  4037. esac
  4038. else
  4039. lt_cv_deplibs_check_method=pass_all
  4040. fi
  4041. ;;
  4042. gnu*)
  4043. lt_cv_deplibs_check_method=pass_all
  4044. ;;
  4045. hpux10.20* | hpux11*)
  4046. lt_cv_file_magic_cmd=/usr/bin/file
  4047. case $host_cpu in
  4048. ia64*)
  4049. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4050. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4051. ;;
  4052. hppa*64*)
  4053. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  4054. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4055. ;;
  4056. *)
  4057. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4058. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4059. ;;
  4060. esac
  4061. ;;
  4062. interix[3-9]*)
  4063. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4064. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4065. ;;
  4066. irix5* | irix6* | nonstopux*)
  4067. case $LD in
  4068. *-32|*"-32 ") libmagic=32-bit;;
  4069. *-n32|*"-n32 ") libmagic=N32;;
  4070. *-64|*"-64 ") libmagic=64-bit;;
  4071. *) libmagic=never-match;;
  4072. esac
  4073. lt_cv_deplibs_check_method=pass_all
  4074. ;;
  4075. # This must be Linux ELF.
  4076. linux* | k*bsd*-gnu)
  4077. lt_cv_deplibs_check_method=pass_all
  4078. ;;
  4079. netbsd*)
  4080. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4081. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4082. else
  4083. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4084. fi
  4085. ;;
  4086. newos6*)
  4087. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4088. lt_cv_file_magic_cmd=/usr/bin/file
  4089. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4090. ;;
  4091. nto-qnx*)
  4092. lt_cv_deplibs_check_method=unknown
  4093. ;;
  4094. openbsd*)
  4095. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4096. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4097. else
  4098. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4099. fi
  4100. ;;
  4101. osf3* | osf4* | osf5*)
  4102. lt_cv_deplibs_check_method=pass_all
  4103. ;;
  4104. rdos*)
  4105. lt_cv_deplibs_check_method=pass_all
  4106. ;;
  4107. solaris*)
  4108. lt_cv_deplibs_check_method=pass_all
  4109. ;;
  4110. sysv4 | sysv4.3*)
  4111. case $host_vendor in
  4112. motorola)
  4113. 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]'
  4114. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4115. ;;
  4116. ncr)
  4117. lt_cv_deplibs_check_method=pass_all
  4118. ;;
  4119. sequent)
  4120. lt_cv_file_magic_cmd='/bin/file'
  4121. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4122. ;;
  4123. sni)
  4124. lt_cv_file_magic_cmd='/bin/file'
  4125. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4126. lt_cv_file_magic_test_file=/lib/libc.so
  4127. ;;
  4128. siemens)
  4129. lt_cv_deplibs_check_method=pass_all
  4130. ;;
  4131. pc)
  4132. lt_cv_deplibs_check_method=pass_all
  4133. ;;
  4134. esac
  4135. ;;
  4136. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4137. lt_cv_deplibs_check_method=pass_all
  4138. ;;
  4139. esac
  4140. fi
  4141. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4142. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  4143. file_magic_cmd=$lt_cv_file_magic_cmd
  4144. deplibs_check_method=$lt_cv_deplibs_check_method
  4145. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4146. # If no C compiler was specified, use CC.
  4147. LTCC=${LTCC-"$CC"}
  4148. # If no C compiler flags were specified, use CFLAGS.
  4149. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4150. # Allow CC to be a program name with arguments.
  4151. compiler=$CC
  4152. # Check whether --enable-libtool-lock was given.
  4153. if test "${enable_libtool_lock+set}" = set; then
  4154. enableval=$enable_libtool_lock;
  4155. fi
  4156. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4157. # Some flags need to be propagated to the compiler or linker for good
  4158. # libtool support.
  4159. case $host in
  4160. ia64-*-hpux*)
  4161. # Find out which ABI we are using.
  4162. echo 'int i;' > conftest.$ac_ext
  4163. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4164. (eval $ac_compile) 2>&5
  4165. ac_status=$?
  4166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4167. (exit $ac_status); }; then
  4168. case `/usr/bin/file conftest.$ac_objext` in
  4169. *ELF-32*)
  4170. HPUX_IA64_MODE="32"
  4171. ;;
  4172. *ELF-64*)
  4173. HPUX_IA64_MODE="64"
  4174. ;;
  4175. esac
  4176. fi
  4177. rm -rf conftest*
  4178. ;;
  4179. *-*-irix6*)
  4180. # Find out which ABI we are using.
  4181. echo '#line 4693 "configure"' > conftest.$ac_ext
  4182. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4183. (eval $ac_compile) 2>&5
  4184. ac_status=$?
  4185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4186. (exit $ac_status); }; then
  4187. if test "$lt_cv_prog_gnu_ld" = yes; then
  4188. case `/usr/bin/file conftest.$ac_objext` in
  4189. *32-bit*)
  4190. LD="${LD-ld} -melf32bsmip"
  4191. ;;
  4192. *N32*)
  4193. LD="${LD-ld} -melf32bmipn32"
  4194. ;;
  4195. *64-bit*)
  4196. LD="${LD-ld} -melf64bmip"
  4197. ;;
  4198. esac
  4199. else
  4200. case `/usr/bin/file conftest.$ac_objext` in
  4201. *32-bit*)
  4202. LD="${LD-ld} -32"
  4203. ;;
  4204. *N32*)
  4205. LD="${LD-ld} -n32"
  4206. ;;
  4207. *64-bit*)
  4208. LD="${LD-ld} -64"
  4209. ;;
  4210. esac
  4211. fi
  4212. fi
  4213. rm -rf conftest*
  4214. ;;
  4215. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  4216. s390*-*linux*|sparc*-*linux*)
  4217. # Find out which ABI we are using.
  4218. echo 'int i;' > conftest.$ac_ext
  4219. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4220. (eval $ac_compile) 2>&5
  4221. ac_status=$?
  4222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4223. (exit $ac_status); }; then
  4224. case `/usr/bin/file conftest.o` in
  4225. *32-bit*)
  4226. case $host in
  4227. x86_64-*kfreebsd*-gnu)
  4228. LD="${LD-ld} -m elf_i386_fbsd"
  4229. ;;
  4230. x86_64-*linux*)
  4231. LD="${LD-ld} -m elf_i386"
  4232. ;;
  4233. ppc64-*linux*|powerpc64-*linux*)
  4234. LD="${LD-ld} -m elf32ppclinux"
  4235. ;;
  4236. s390x-*linux*)
  4237. LD="${LD-ld} -m elf_s390"
  4238. ;;
  4239. sparc64-*linux*)
  4240. LD="${LD-ld} -m elf32_sparc"
  4241. ;;
  4242. esac
  4243. ;;
  4244. *64-bit*)
  4245. libsuff=64
  4246. case $host in
  4247. x86_64-*kfreebsd*-gnu)
  4248. LD="${LD-ld} -m elf_x86_64_fbsd"
  4249. ;;
  4250. x86_64-*linux*)
  4251. LD="${LD-ld} -m elf_x86_64"
  4252. ;;
  4253. ppc*-*linux*|powerpc*-*linux*)
  4254. LD="${LD-ld} -m elf64ppc"
  4255. ;;
  4256. s390*-*linux*)
  4257. LD="${LD-ld} -m elf64_s390"
  4258. ;;
  4259. sparc*-*linux*)
  4260. LD="${LD-ld} -m elf64_sparc"
  4261. ;;
  4262. esac
  4263. ;;
  4264. esac
  4265. fi
  4266. rm -rf conftest*
  4267. ;;
  4268. *-*-sco3.2v5*)
  4269. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4270. SAVE_CFLAGS="$CFLAGS"
  4271. CFLAGS="$CFLAGS -belf"
  4272. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4273. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  4274. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4275. echo $ECHO_N "(cached) $ECHO_C" >&6
  4276. else
  4277. ac_ext=c
  4278. ac_cpp='$CPP $CPPFLAGS'
  4279. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4280. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4281. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4282. cat >conftest.$ac_ext <<_ACEOF
  4283. /* confdefs.h. */
  4284. _ACEOF
  4285. cat confdefs.h >>conftest.$ac_ext
  4286. cat >>conftest.$ac_ext <<_ACEOF
  4287. /* end confdefs.h. */
  4288. int
  4289. main ()
  4290. {
  4291. ;
  4292. return 0;
  4293. }
  4294. _ACEOF
  4295. rm -f conftest.$ac_objext conftest$ac_exeext
  4296. if { (ac_try="$ac_link"
  4297. case "(($ac_try" in
  4298. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4299. *) ac_try_echo=$ac_try;;
  4300. esac
  4301. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4302. (eval "$ac_link") 2>conftest.er1
  4303. ac_status=$?
  4304. grep -v '^ *+' conftest.er1 >conftest.err
  4305. rm -f conftest.er1
  4306. cat conftest.err >&5
  4307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4308. (exit $ac_status); } && {
  4309. test -z "$ac_c_werror_flag" ||
  4310. test ! -s conftest.err
  4311. } && test -s conftest$ac_exeext &&
  4312. $as_test_x conftest$ac_exeext; then
  4313. lt_cv_cc_needs_belf=yes
  4314. else
  4315. echo "$as_me: failed program was:" >&5
  4316. sed 's/^/| /' conftest.$ac_ext >&5
  4317. lt_cv_cc_needs_belf=no
  4318. fi
  4319. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4320. conftest$ac_exeext conftest.$ac_ext
  4321. ac_ext=c
  4322. ac_cpp='$CPP $CPPFLAGS'
  4323. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4324. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4325. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4326. fi
  4327. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4328. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  4329. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4330. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4331. CFLAGS="$SAVE_CFLAGS"
  4332. fi
  4333. ;;
  4334. sparc*-*solaris*)
  4335. # Find out which ABI we are using.
  4336. echo 'int i;' > conftest.$ac_ext
  4337. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4338. (eval $ac_compile) 2>&5
  4339. ac_status=$?
  4340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4341. (exit $ac_status); }; then
  4342. case `/usr/bin/file conftest.o` in
  4343. *64-bit*)
  4344. case $lt_cv_prog_gnu_ld in
  4345. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4346. *) LD="${LD-ld} -64" ;;
  4347. esac
  4348. ;;
  4349. esac
  4350. fi
  4351. rm -rf conftest*
  4352. ;;
  4353. esac
  4354. need_locks="$enable_libtool_lock"
  4355. ac_ext=c
  4356. ac_cpp='$CPP $CPPFLAGS'
  4357. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4358. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4359. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4360. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4361. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4362. # On Suns, sometimes $CPP names a directory.
  4363. if test -n "$CPP" && test -d "$CPP"; then
  4364. CPP=
  4365. fi
  4366. if test -z "$CPP"; then
  4367. if test "${ac_cv_prog_CPP+set}" = set; then
  4368. echo $ECHO_N "(cached) $ECHO_C" >&6
  4369. else
  4370. # Double quotes because CPP needs to be expanded
  4371. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4372. do
  4373. ac_preproc_ok=false
  4374. for ac_c_preproc_warn_flag in '' yes
  4375. do
  4376. # Use a header file that comes with gcc, so configuring glibc
  4377. # with a fresh cross-compiler works.
  4378. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4379. # <limits.h> exists even on freestanding compilers.
  4380. # On the NeXT, cc -E runs the code through the compiler's parser,
  4381. # not just through cpp. "Syntax error" is here to catch this case.
  4382. cat >conftest.$ac_ext <<_ACEOF
  4383. /* confdefs.h. */
  4384. _ACEOF
  4385. cat confdefs.h >>conftest.$ac_ext
  4386. cat >>conftest.$ac_ext <<_ACEOF
  4387. /* end confdefs.h. */
  4388. #ifdef __STDC__
  4389. # include <limits.h>
  4390. #else
  4391. # include <assert.h>
  4392. #endif
  4393. Syntax error
  4394. _ACEOF
  4395. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4396. case "(($ac_try" in
  4397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4398. *) ac_try_echo=$ac_try;;
  4399. esac
  4400. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4401. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4402. ac_status=$?
  4403. grep -v '^ *+' conftest.er1 >conftest.err
  4404. rm -f conftest.er1
  4405. cat conftest.err >&5
  4406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4407. (exit $ac_status); } >/dev/null && {
  4408. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4409. test ! -s conftest.err
  4410. }; then
  4411. :
  4412. else
  4413. echo "$as_me: failed program was:" >&5
  4414. sed 's/^/| /' conftest.$ac_ext >&5
  4415. # Broken: fails on valid input.
  4416. continue
  4417. fi
  4418. rm -f conftest.err conftest.$ac_ext
  4419. # OK, works on sane cases. Now check whether nonexistent headers
  4420. # can be detected and how.
  4421. cat >conftest.$ac_ext <<_ACEOF
  4422. /* confdefs.h. */
  4423. _ACEOF
  4424. cat confdefs.h >>conftest.$ac_ext
  4425. cat >>conftest.$ac_ext <<_ACEOF
  4426. /* end confdefs.h. */
  4427. #include <ac_nonexistent.h>
  4428. _ACEOF
  4429. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4430. case "(($ac_try" in
  4431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4432. *) ac_try_echo=$ac_try;;
  4433. esac
  4434. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4435. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4436. ac_status=$?
  4437. grep -v '^ *+' conftest.er1 >conftest.err
  4438. rm -f conftest.er1
  4439. cat conftest.err >&5
  4440. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4441. (exit $ac_status); } >/dev/null && {
  4442. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4443. test ! -s conftest.err
  4444. }; then
  4445. # Broken: success on invalid input.
  4446. continue
  4447. else
  4448. echo "$as_me: failed program was:" >&5
  4449. sed 's/^/| /' conftest.$ac_ext >&5
  4450. # Passes both tests.
  4451. ac_preproc_ok=:
  4452. break
  4453. fi
  4454. rm -f conftest.err conftest.$ac_ext
  4455. done
  4456. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4457. rm -f conftest.err conftest.$ac_ext
  4458. if $ac_preproc_ok; then
  4459. break
  4460. fi
  4461. done
  4462. ac_cv_prog_CPP=$CPP
  4463. fi
  4464. CPP=$ac_cv_prog_CPP
  4465. else
  4466. ac_cv_prog_CPP=$CPP
  4467. fi
  4468. { echo "$as_me:$LINENO: result: $CPP" >&5
  4469. echo "${ECHO_T}$CPP" >&6; }
  4470. ac_preproc_ok=false
  4471. for ac_c_preproc_warn_flag in '' yes
  4472. do
  4473. # Use a header file that comes with gcc, so configuring glibc
  4474. # with a fresh cross-compiler works.
  4475. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4476. # <limits.h> exists even on freestanding compilers.
  4477. # On the NeXT, cc -E runs the code through the compiler's parser,
  4478. # not just through cpp. "Syntax error" is here to catch this case.
  4479. cat >conftest.$ac_ext <<_ACEOF
  4480. /* confdefs.h. */
  4481. _ACEOF
  4482. cat confdefs.h >>conftest.$ac_ext
  4483. cat >>conftest.$ac_ext <<_ACEOF
  4484. /* end confdefs.h. */
  4485. #ifdef __STDC__
  4486. # include <limits.h>
  4487. #else
  4488. # include <assert.h>
  4489. #endif
  4490. Syntax error
  4491. _ACEOF
  4492. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4493. case "(($ac_try" in
  4494. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4495. *) ac_try_echo=$ac_try;;
  4496. esac
  4497. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4498. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4499. ac_status=$?
  4500. grep -v '^ *+' conftest.er1 >conftest.err
  4501. rm -f conftest.er1
  4502. cat conftest.err >&5
  4503. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4504. (exit $ac_status); } >/dev/null && {
  4505. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4506. test ! -s conftest.err
  4507. }; then
  4508. :
  4509. else
  4510. echo "$as_me: failed program was:" >&5
  4511. sed 's/^/| /' conftest.$ac_ext >&5
  4512. # Broken: fails on valid input.
  4513. continue
  4514. fi
  4515. rm -f conftest.err conftest.$ac_ext
  4516. # OK, works on sane cases. Now check whether nonexistent headers
  4517. # can be detected and how.
  4518. cat >conftest.$ac_ext <<_ACEOF
  4519. /* confdefs.h. */
  4520. _ACEOF
  4521. cat confdefs.h >>conftest.$ac_ext
  4522. cat >>conftest.$ac_ext <<_ACEOF
  4523. /* end confdefs.h. */
  4524. #include <ac_nonexistent.h>
  4525. _ACEOF
  4526. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4527. case "(($ac_try" in
  4528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4529. *) ac_try_echo=$ac_try;;
  4530. esac
  4531. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4532. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4533. ac_status=$?
  4534. grep -v '^ *+' conftest.er1 >conftest.err
  4535. rm -f conftest.er1
  4536. cat conftest.err >&5
  4537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4538. (exit $ac_status); } >/dev/null && {
  4539. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4540. test ! -s conftest.err
  4541. }; then
  4542. # Broken: success on invalid input.
  4543. continue
  4544. else
  4545. echo "$as_me: failed program was:" >&5
  4546. sed 's/^/| /' conftest.$ac_ext >&5
  4547. # Passes both tests.
  4548. ac_preproc_ok=:
  4549. break
  4550. fi
  4551. rm -f conftest.err conftest.$ac_ext
  4552. done
  4553. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4554. rm -f conftest.err conftest.$ac_ext
  4555. if $ac_preproc_ok; then
  4556. :
  4557. else
  4558. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4559. See \`config.log' for more details." >&5
  4560. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4561. See \`config.log' for more details." >&2;}
  4562. { (exit 1); exit 1; }; }
  4563. fi
  4564. ac_ext=c
  4565. ac_cpp='$CPP $CPPFLAGS'
  4566. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4567. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4568. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4569. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4570. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4571. if test "${ac_cv_header_stdc+set}" = set; then
  4572. echo $ECHO_N "(cached) $ECHO_C" >&6
  4573. else
  4574. cat >conftest.$ac_ext <<_ACEOF
  4575. /* confdefs.h. */
  4576. _ACEOF
  4577. cat confdefs.h >>conftest.$ac_ext
  4578. cat >>conftest.$ac_ext <<_ACEOF
  4579. /* end confdefs.h. */
  4580. #include <stdlib.h>
  4581. #include <stdarg.h>
  4582. #include <string.h>
  4583. #include <float.h>
  4584. int
  4585. main ()
  4586. {
  4587. ;
  4588. return 0;
  4589. }
  4590. _ACEOF
  4591. rm -f conftest.$ac_objext
  4592. if { (ac_try="$ac_compile"
  4593. case "(($ac_try" in
  4594. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4595. *) ac_try_echo=$ac_try;;
  4596. esac
  4597. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4598. (eval "$ac_compile") 2>conftest.er1
  4599. ac_status=$?
  4600. grep -v '^ *+' conftest.er1 >conftest.err
  4601. rm -f conftest.er1
  4602. cat conftest.err >&5
  4603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4604. (exit $ac_status); } && {
  4605. test -z "$ac_c_werror_flag" ||
  4606. test ! -s conftest.err
  4607. } && test -s conftest.$ac_objext; then
  4608. ac_cv_header_stdc=yes
  4609. else
  4610. echo "$as_me: failed program was:" >&5
  4611. sed 's/^/| /' conftest.$ac_ext >&5
  4612. ac_cv_header_stdc=no
  4613. fi
  4614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4615. if test $ac_cv_header_stdc = yes; then
  4616. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4617. cat >conftest.$ac_ext <<_ACEOF
  4618. /* confdefs.h. */
  4619. _ACEOF
  4620. cat confdefs.h >>conftest.$ac_ext
  4621. cat >>conftest.$ac_ext <<_ACEOF
  4622. /* end confdefs.h. */
  4623. #include <string.h>
  4624. _ACEOF
  4625. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4626. $EGREP "memchr" >/dev/null 2>&1; then
  4627. :
  4628. else
  4629. ac_cv_header_stdc=no
  4630. fi
  4631. rm -f conftest*
  4632. fi
  4633. if test $ac_cv_header_stdc = yes; then
  4634. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4635. cat >conftest.$ac_ext <<_ACEOF
  4636. /* confdefs.h. */
  4637. _ACEOF
  4638. cat confdefs.h >>conftest.$ac_ext
  4639. cat >>conftest.$ac_ext <<_ACEOF
  4640. /* end confdefs.h. */
  4641. #include <stdlib.h>
  4642. _ACEOF
  4643. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4644. $EGREP "free" >/dev/null 2>&1; then
  4645. :
  4646. else
  4647. ac_cv_header_stdc=no
  4648. fi
  4649. rm -f conftest*
  4650. fi
  4651. if test $ac_cv_header_stdc = yes; then
  4652. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4653. if test "$cross_compiling" = yes; then
  4654. :
  4655. else
  4656. cat >conftest.$ac_ext <<_ACEOF
  4657. /* confdefs.h. */
  4658. _ACEOF
  4659. cat confdefs.h >>conftest.$ac_ext
  4660. cat >>conftest.$ac_ext <<_ACEOF
  4661. /* end confdefs.h. */
  4662. #include <ctype.h>
  4663. #include <stdlib.h>
  4664. #if ((' ' & 0x0FF) == 0x020)
  4665. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4666. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4667. #else
  4668. # define ISLOWER(c) \
  4669. (('a' <= (c) && (c) <= 'i') \
  4670. || ('j' <= (c) && (c) <= 'r') \
  4671. || ('s' <= (c) && (c) <= 'z'))
  4672. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4673. #endif
  4674. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4675. int
  4676. main ()
  4677. {
  4678. int i;
  4679. for (i = 0; i < 256; i++)
  4680. if (XOR (islower (i), ISLOWER (i))
  4681. || toupper (i) != TOUPPER (i))
  4682. return 2;
  4683. return 0;
  4684. }
  4685. _ACEOF
  4686. rm -f conftest$ac_exeext
  4687. if { (ac_try="$ac_link"
  4688. case "(($ac_try" in
  4689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4690. *) ac_try_echo=$ac_try;;
  4691. esac
  4692. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4693. (eval "$ac_link") 2>&5
  4694. ac_status=$?
  4695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4696. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4697. { (case "(($ac_try" in
  4698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4699. *) ac_try_echo=$ac_try;;
  4700. esac
  4701. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4702. (eval "$ac_try") 2>&5
  4703. ac_status=$?
  4704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4705. (exit $ac_status); }; }; then
  4706. :
  4707. else
  4708. echo "$as_me: program exited with status $ac_status" >&5
  4709. echo "$as_me: failed program was:" >&5
  4710. sed 's/^/| /' conftest.$ac_ext >&5
  4711. ( exit $ac_status )
  4712. ac_cv_header_stdc=no
  4713. fi
  4714. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4715. fi
  4716. fi
  4717. fi
  4718. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4719. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4720. if test $ac_cv_header_stdc = yes; then
  4721. cat >>confdefs.h <<\_ACEOF
  4722. #define STDC_HEADERS 1
  4723. _ACEOF
  4724. fi
  4725. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4726. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4727. inttypes.h stdint.h unistd.h
  4728. do
  4729. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4730. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4731. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4732. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4733. echo $ECHO_N "(cached) $ECHO_C" >&6
  4734. else
  4735. cat >conftest.$ac_ext <<_ACEOF
  4736. /* confdefs.h. */
  4737. _ACEOF
  4738. cat confdefs.h >>conftest.$ac_ext
  4739. cat >>conftest.$ac_ext <<_ACEOF
  4740. /* end confdefs.h. */
  4741. $ac_includes_default
  4742. #include <$ac_header>
  4743. _ACEOF
  4744. rm -f conftest.$ac_objext
  4745. if { (ac_try="$ac_compile"
  4746. case "(($ac_try" in
  4747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4748. *) ac_try_echo=$ac_try;;
  4749. esac
  4750. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4751. (eval "$ac_compile") 2>conftest.er1
  4752. ac_status=$?
  4753. grep -v '^ *+' conftest.er1 >conftest.err
  4754. rm -f conftest.er1
  4755. cat conftest.err >&5
  4756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4757. (exit $ac_status); } && {
  4758. test -z "$ac_c_werror_flag" ||
  4759. test ! -s conftest.err
  4760. } && test -s conftest.$ac_objext; then
  4761. eval "$as_ac_Header=yes"
  4762. else
  4763. echo "$as_me: failed program was:" >&5
  4764. sed 's/^/| /' conftest.$ac_ext >&5
  4765. eval "$as_ac_Header=no"
  4766. fi
  4767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4768. fi
  4769. ac_res=`eval echo '${'$as_ac_Header'}'`
  4770. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4771. echo "${ECHO_T}$ac_res" >&6; }
  4772. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4773. cat >>confdefs.h <<_ACEOF
  4774. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4775. _ACEOF
  4776. fi
  4777. done
  4778. for ac_header in dlfcn.h
  4779. do
  4780. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4781. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4782. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4783. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4784. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4785. echo $ECHO_N "(cached) $ECHO_C" >&6
  4786. fi
  4787. ac_res=`eval echo '${'$as_ac_Header'}'`
  4788. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4789. echo "${ECHO_T}$ac_res" >&6; }
  4790. else
  4791. # Is the header compilable?
  4792. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4793. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4794. cat >conftest.$ac_ext <<_ACEOF
  4795. /* confdefs.h. */
  4796. _ACEOF
  4797. cat confdefs.h >>conftest.$ac_ext
  4798. cat >>conftest.$ac_ext <<_ACEOF
  4799. /* end confdefs.h. */
  4800. $ac_includes_default
  4801. #include <$ac_header>
  4802. _ACEOF
  4803. rm -f conftest.$ac_objext
  4804. if { (ac_try="$ac_compile"
  4805. case "(($ac_try" in
  4806. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4807. *) ac_try_echo=$ac_try;;
  4808. esac
  4809. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4810. (eval "$ac_compile") 2>conftest.er1
  4811. ac_status=$?
  4812. grep -v '^ *+' conftest.er1 >conftest.err
  4813. rm -f conftest.er1
  4814. cat conftest.err >&5
  4815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4816. (exit $ac_status); } && {
  4817. test -z "$ac_c_werror_flag" ||
  4818. test ! -s conftest.err
  4819. } && test -s conftest.$ac_objext; then
  4820. ac_header_compiler=yes
  4821. else
  4822. echo "$as_me: failed program was:" >&5
  4823. sed 's/^/| /' conftest.$ac_ext >&5
  4824. ac_header_compiler=no
  4825. fi
  4826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4827. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4828. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4829. # Is the header present?
  4830. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4831. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4832. cat >conftest.$ac_ext <<_ACEOF
  4833. /* confdefs.h. */
  4834. _ACEOF
  4835. cat confdefs.h >>conftest.$ac_ext
  4836. cat >>conftest.$ac_ext <<_ACEOF
  4837. /* end confdefs.h. */
  4838. #include <$ac_header>
  4839. _ACEOF
  4840. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4841. case "(($ac_try" in
  4842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4843. *) ac_try_echo=$ac_try;;
  4844. esac
  4845. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4846. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4847. ac_status=$?
  4848. grep -v '^ *+' conftest.er1 >conftest.err
  4849. rm -f conftest.er1
  4850. cat conftest.err >&5
  4851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4852. (exit $ac_status); } >/dev/null && {
  4853. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4854. test ! -s conftest.err
  4855. }; then
  4856. ac_header_preproc=yes
  4857. else
  4858. echo "$as_me: failed program was:" >&5
  4859. sed 's/^/| /' conftest.$ac_ext >&5
  4860. ac_header_preproc=no
  4861. fi
  4862. rm -f conftest.err conftest.$ac_ext
  4863. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4864. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4865. # So? What about this header?
  4866. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4867. yes:no: )
  4868. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4869. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4870. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4871. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4872. ac_header_preproc=yes
  4873. ;;
  4874. no:yes:* )
  4875. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4876. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4877. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4878. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4879. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4880. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4881. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4882. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4883. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4884. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4885. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4886. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4887. ( cat <<\_ASBOX
  4888. ## ------------------------------------------- ##
  4889. ## Report this to http://gcc.gnu.org/bugs.html ##
  4890. ## ------------------------------------------- ##
  4891. _ASBOX
  4892. ) | sed "s/^/$as_me: WARNING: /" >&2
  4893. ;;
  4894. esac
  4895. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4896. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4897. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4898. echo $ECHO_N "(cached) $ECHO_C" >&6
  4899. else
  4900. eval "$as_ac_Header=\$ac_header_preproc"
  4901. fi
  4902. ac_res=`eval echo '${'$as_ac_Header'}'`
  4903. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4904. echo "${ECHO_T}$ac_res" >&6; }
  4905. fi
  4906. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4907. cat >>confdefs.h <<_ACEOF
  4908. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4909. _ACEOF
  4910. fi
  4911. done
  4912. ac_ext=cpp
  4913. ac_cpp='$CXXCPP $CPPFLAGS'
  4914. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4915. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4916. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4917. if test -z "$CXX"; then
  4918. if test -n "$CCC"; then
  4919. CXX=$CCC
  4920. else
  4921. if test -n "$ac_tool_prefix"; then
  4922. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4923. do
  4924. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4925. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4926. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4927. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4928. if test "${ac_cv_prog_CXX+set}" = set; then
  4929. echo $ECHO_N "(cached) $ECHO_C" >&6
  4930. else
  4931. if test -n "$CXX"; then
  4932. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4933. else
  4934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4935. for as_dir in $PATH
  4936. do
  4937. IFS=$as_save_IFS
  4938. test -z "$as_dir" && as_dir=.
  4939. for ac_exec_ext in '' $ac_executable_extensions; do
  4940. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4941. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4942. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4943. break 2
  4944. fi
  4945. done
  4946. done
  4947. IFS=$as_save_IFS
  4948. fi
  4949. fi
  4950. CXX=$ac_cv_prog_CXX
  4951. if test -n "$CXX"; then
  4952. { echo "$as_me:$LINENO: result: $CXX" >&5
  4953. echo "${ECHO_T}$CXX" >&6; }
  4954. else
  4955. { echo "$as_me:$LINENO: result: no" >&5
  4956. echo "${ECHO_T}no" >&6; }
  4957. fi
  4958. test -n "$CXX" && break
  4959. done
  4960. fi
  4961. if test -z "$CXX"; then
  4962. ac_ct_CXX=$CXX
  4963. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4964. do
  4965. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4966. set dummy $ac_prog; ac_word=$2
  4967. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4968. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4969. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  4970. echo $ECHO_N "(cached) $ECHO_C" >&6
  4971. else
  4972. if test -n "$ac_ct_CXX"; then
  4973. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4974. else
  4975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4976. for as_dir in $PATH
  4977. do
  4978. IFS=$as_save_IFS
  4979. test -z "$as_dir" && as_dir=.
  4980. for ac_exec_ext in '' $ac_executable_extensions; do
  4981. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4982. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4983. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4984. break 2
  4985. fi
  4986. done
  4987. done
  4988. IFS=$as_save_IFS
  4989. fi
  4990. fi
  4991. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4992. if test -n "$ac_ct_CXX"; then
  4993. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  4994. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  4995. else
  4996. { echo "$as_me:$LINENO: result: no" >&5
  4997. echo "${ECHO_T}no" >&6; }
  4998. fi
  4999. test -n "$ac_ct_CXX" && break
  5000. done
  5001. if test "x$ac_ct_CXX" = x; then
  5002. CXX="g++"
  5003. else
  5004. case $cross_compiling:$ac_tool_warned in
  5005. yes:)
  5006. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5007. whose name does not start with the host triplet. If you think this
  5008. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5009. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5010. whose name does not start with the host triplet. If you think this
  5011. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5012. ac_tool_warned=yes ;;
  5013. esac
  5014. CXX=$ac_ct_CXX
  5015. fi
  5016. fi
  5017. fi
  5018. fi
  5019. # Provide some information about the compiler.
  5020. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  5021. ac_compiler=`set X $ac_compile; echo $2`
  5022. { (ac_try="$ac_compiler --version >&5"
  5023. case "(($ac_try" in
  5024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5025. *) ac_try_echo=$ac_try;;
  5026. esac
  5027. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5028. (eval "$ac_compiler --version >&5") 2>&5
  5029. ac_status=$?
  5030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5031. (exit $ac_status); }
  5032. { (ac_try="$ac_compiler -v >&5"
  5033. case "(($ac_try" in
  5034. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5035. *) ac_try_echo=$ac_try;;
  5036. esac
  5037. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5038. (eval "$ac_compiler -v >&5") 2>&5
  5039. ac_status=$?
  5040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5041. (exit $ac_status); }
  5042. { (ac_try="$ac_compiler -V >&5"
  5043. case "(($ac_try" in
  5044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5045. *) ac_try_echo=$ac_try;;
  5046. esac
  5047. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5048. (eval "$ac_compiler -V >&5") 2>&5
  5049. ac_status=$?
  5050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5051. (exit $ac_status); }
  5052. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  5053. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  5054. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  5055. echo $ECHO_N "(cached) $ECHO_C" >&6
  5056. else
  5057. cat >conftest.$ac_ext <<_ACEOF
  5058. /* confdefs.h. */
  5059. _ACEOF
  5060. cat confdefs.h >>conftest.$ac_ext
  5061. cat >>conftest.$ac_ext <<_ACEOF
  5062. /* end confdefs.h. */
  5063. int
  5064. main ()
  5065. {
  5066. #ifndef __GNUC__
  5067. choke me
  5068. #endif
  5069. ;
  5070. return 0;
  5071. }
  5072. _ACEOF
  5073. rm -f conftest.$ac_objext
  5074. if { (ac_try="$ac_compile"
  5075. case "(($ac_try" in
  5076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5077. *) ac_try_echo=$ac_try;;
  5078. esac
  5079. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5080. (eval "$ac_compile") 2>conftest.er1
  5081. ac_status=$?
  5082. grep -v '^ *+' conftest.er1 >conftest.err
  5083. rm -f conftest.er1
  5084. cat conftest.err >&5
  5085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5086. (exit $ac_status); } && {
  5087. test -z "$ac_cxx_werror_flag" ||
  5088. test ! -s conftest.err
  5089. } && test -s conftest.$ac_objext; then
  5090. ac_compiler_gnu=yes
  5091. else
  5092. echo "$as_me: failed program was:" >&5
  5093. sed 's/^/| /' conftest.$ac_ext >&5
  5094. ac_compiler_gnu=no
  5095. fi
  5096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5097. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5098. fi
  5099. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  5100. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  5101. GXX=`test $ac_compiler_gnu = yes && echo yes`
  5102. ac_test_CXXFLAGS=${CXXFLAGS+set}
  5103. ac_save_CXXFLAGS=$CXXFLAGS
  5104. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  5105. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  5106. if test "${ac_cv_prog_cxx_g+set}" = set; then
  5107. echo $ECHO_N "(cached) $ECHO_C" >&6
  5108. else
  5109. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5110. ac_cxx_werror_flag=yes
  5111. ac_cv_prog_cxx_g=no
  5112. CXXFLAGS="-g"
  5113. cat >conftest.$ac_ext <<_ACEOF
  5114. /* confdefs.h. */
  5115. _ACEOF
  5116. cat confdefs.h >>conftest.$ac_ext
  5117. cat >>conftest.$ac_ext <<_ACEOF
  5118. /* end confdefs.h. */
  5119. int
  5120. main ()
  5121. {
  5122. ;
  5123. return 0;
  5124. }
  5125. _ACEOF
  5126. rm -f conftest.$ac_objext
  5127. if { (ac_try="$ac_compile"
  5128. case "(($ac_try" in
  5129. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5130. *) ac_try_echo=$ac_try;;
  5131. esac
  5132. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5133. (eval "$ac_compile") 2>conftest.er1
  5134. ac_status=$?
  5135. grep -v '^ *+' conftest.er1 >conftest.err
  5136. rm -f conftest.er1
  5137. cat conftest.err >&5
  5138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5139. (exit $ac_status); } && {
  5140. test -z "$ac_cxx_werror_flag" ||
  5141. test ! -s conftest.err
  5142. } && test -s conftest.$ac_objext; then
  5143. ac_cv_prog_cxx_g=yes
  5144. else
  5145. echo "$as_me: failed program was:" >&5
  5146. sed 's/^/| /' conftest.$ac_ext >&5
  5147. CXXFLAGS=""
  5148. cat >conftest.$ac_ext <<_ACEOF
  5149. /* confdefs.h. */
  5150. _ACEOF
  5151. cat confdefs.h >>conftest.$ac_ext
  5152. cat >>conftest.$ac_ext <<_ACEOF
  5153. /* end confdefs.h. */
  5154. int
  5155. main ()
  5156. {
  5157. ;
  5158. return 0;
  5159. }
  5160. _ACEOF
  5161. rm -f conftest.$ac_objext
  5162. if { (ac_try="$ac_compile"
  5163. case "(($ac_try" in
  5164. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5165. *) ac_try_echo=$ac_try;;
  5166. esac
  5167. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5168. (eval "$ac_compile") 2>conftest.er1
  5169. ac_status=$?
  5170. grep -v '^ *+' conftest.er1 >conftest.err
  5171. rm -f conftest.er1
  5172. cat conftest.err >&5
  5173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5174. (exit $ac_status); } && {
  5175. test -z "$ac_cxx_werror_flag" ||
  5176. test ! -s conftest.err
  5177. } && test -s conftest.$ac_objext; then
  5178. :
  5179. else
  5180. echo "$as_me: failed program was:" >&5
  5181. sed 's/^/| /' conftest.$ac_ext >&5
  5182. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5183. CXXFLAGS="-g"
  5184. cat >conftest.$ac_ext <<_ACEOF
  5185. /* confdefs.h. */
  5186. _ACEOF
  5187. cat confdefs.h >>conftest.$ac_ext
  5188. cat >>conftest.$ac_ext <<_ACEOF
  5189. /* end confdefs.h. */
  5190. int
  5191. main ()
  5192. {
  5193. ;
  5194. return 0;
  5195. }
  5196. _ACEOF
  5197. rm -f conftest.$ac_objext
  5198. if { (ac_try="$ac_compile"
  5199. case "(($ac_try" in
  5200. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5201. *) ac_try_echo=$ac_try;;
  5202. esac
  5203. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5204. (eval "$ac_compile") 2>conftest.er1
  5205. ac_status=$?
  5206. grep -v '^ *+' conftest.er1 >conftest.err
  5207. rm -f conftest.er1
  5208. cat conftest.err >&5
  5209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5210. (exit $ac_status); } && {
  5211. test -z "$ac_cxx_werror_flag" ||
  5212. test ! -s conftest.err
  5213. } && test -s conftest.$ac_objext; then
  5214. ac_cv_prog_cxx_g=yes
  5215. else
  5216. echo "$as_me: failed program was:" >&5
  5217. sed 's/^/| /' conftest.$ac_ext >&5
  5218. fi
  5219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5220. fi
  5221. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5222. fi
  5223. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5224. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5225. fi
  5226. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  5227. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  5228. if test "$ac_test_CXXFLAGS" = set; then
  5229. CXXFLAGS=$ac_save_CXXFLAGS
  5230. elif test $ac_cv_prog_cxx_g = yes; then
  5231. if test "$GXX" = yes; then
  5232. CXXFLAGS="-g -O2"
  5233. else
  5234. CXXFLAGS="-g"
  5235. fi
  5236. else
  5237. if test "$GXX" = yes; then
  5238. CXXFLAGS="-O2"
  5239. else
  5240. CXXFLAGS=
  5241. fi
  5242. fi
  5243. ac_ext=cpp
  5244. ac_cpp='$CXXCPP $CPPFLAGS'
  5245. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5246. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5247. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5248. depcc="$CXX" am_compiler_list=
  5249. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5250. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  5251. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  5252. echo $ECHO_N "(cached) $ECHO_C" >&6
  5253. else
  5254. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5255. # We make a subdir and do the tests there. Otherwise we can end up
  5256. # making bogus files that we don't know about and never remove. For
  5257. # instance it was reported that on HP-UX the gcc test will end up
  5258. # making a dummy file named `D' -- because `-MD' means `put the output
  5259. # in D'.
  5260. mkdir conftest.dir
  5261. # Copy depcomp to subdir because otherwise we won't find it if we're
  5262. # using a relative directory.
  5263. cp "$am_depcomp" conftest.dir
  5264. cd conftest.dir
  5265. # We will build objects and dependencies in a subdirectory because
  5266. # it helps to detect inapplicable dependency modes. For instance
  5267. # both Tru64's cc and ICC support -MD to output dependencies as a
  5268. # side effect of compilation, but ICC will put the dependencies in
  5269. # the current directory while Tru64 will put them in the object
  5270. # directory.
  5271. mkdir sub
  5272. am_cv_CXX_dependencies_compiler_type=none
  5273. if test "$am_compiler_list" = ""; then
  5274. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5275. fi
  5276. for depmode in $am_compiler_list; do
  5277. # Setup a source with many dependencies, because some compilers
  5278. # like to wrap large dependency lists on column 80 (with \), and
  5279. # we should not choose a depcomp mode which is confused by this.
  5280. #
  5281. # We need to recreate these files for each test, as the compiler may
  5282. # overwrite some of them when testing with obscure command lines.
  5283. # This happens at least with the AIX C compiler.
  5284. : > sub/conftest.c
  5285. for i in 1 2 3 4 5 6; do
  5286. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5287. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5288. # Solaris 8's {/usr,}/bin/sh.
  5289. touch sub/conftst$i.h
  5290. done
  5291. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5292. case $depmode in
  5293. nosideeffect)
  5294. # after this tag, mechanisms are not by side-effect, so they'll
  5295. # only be used when explicitly requested
  5296. if test "x$enable_dependency_tracking" = xyes; then
  5297. continue
  5298. else
  5299. break
  5300. fi
  5301. ;;
  5302. none) break ;;
  5303. esac
  5304. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5305. # mode. It turns out that the SunPro C++ compiler does not properly
  5306. # handle `-M -o', and we need to detect this.
  5307. if depmode=$depmode \
  5308. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5309. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5310. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5311. >/dev/null 2>conftest.err &&
  5312. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5313. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5314. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5315. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5316. # icc doesn't choke on unknown options, it will just issue warnings
  5317. # or remarks (even with -Werror). So we grep stderr for any message
  5318. # that says an option was ignored or not supported.
  5319. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5320. # icc: Command line warning: ignoring option '-M'; no argument required
  5321. # The diagnosis changed in icc 8.0:
  5322. # icc: Command line remark: option '-MP' not supported
  5323. if (grep 'ignoring option' conftest.err ||
  5324. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5325. am_cv_CXX_dependencies_compiler_type=$depmode
  5326. break
  5327. fi
  5328. fi
  5329. done
  5330. cd ..
  5331. rm -rf conftest.dir
  5332. else
  5333. am_cv_CXX_dependencies_compiler_type=none
  5334. fi
  5335. fi
  5336. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5337. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  5338. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5339. if
  5340. test "x$enable_dependency_tracking" != xno \
  5341. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5342. am__fastdepCXX_TRUE=
  5343. am__fastdepCXX_FALSE='#'
  5344. else
  5345. am__fastdepCXX_TRUE='#'
  5346. am__fastdepCXX_FALSE=
  5347. fi
  5348. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5349. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5350. (test "X$CXX" != "Xg++"))) ; then
  5351. ac_ext=cpp
  5352. ac_cpp='$CXXCPP $CPPFLAGS'
  5353. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5354. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5355. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5356. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5357. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  5358. if test -z "$CXXCPP"; then
  5359. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5360. echo $ECHO_N "(cached) $ECHO_C" >&6
  5361. else
  5362. # Double quotes because CXXCPP needs to be expanded
  5363. for CXXCPP in "$CXX -E" "/lib/cpp"
  5364. do
  5365. ac_preproc_ok=false
  5366. for ac_cxx_preproc_warn_flag in '' yes
  5367. do
  5368. # Use a header file that comes with gcc, so configuring glibc
  5369. # with a fresh cross-compiler works.
  5370. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5371. # <limits.h> exists even on freestanding compilers.
  5372. # On the NeXT, cc -E runs the code through the compiler's parser,
  5373. # not just through cpp. "Syntax error" is here to catch this case.
  5374. cat >conftest.$ac_ext <<_ACEOF
  5375. /* confdefs.h. */
  5376. _ACEOF
  5377. cat confdefs.h >>conftest.$ac_ext
  5378. cat >>conftest.$ac_ext <<_ACEOF
  5379. /* end confdefs.h. */
  5380. #ifdef __STDC__
  5381. # include <limits.h>
  5382. #else
  5383. # include <assert.h>
  5384. #endif
  5385. Syntax error
  5386. _ACEOF
  5387. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5388. case "(($ac_try" in
  5389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5390. *) ac_try_echo=$ac_try;;
  5391. esac
  5392. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5393. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5394. ac_status=$?
  5395. grep -v '^ *+' conftest.er1 >conftest.err
  5396. rm -f conftest.er1
  5397. cat conftest.err >&5
  5398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5399. (exit $ac_status); } >/dev/null && {
  5400. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5401. test ! -s conftest.err
  5402. }; then
  5403. :
  5404. else
  5405. echo "$as_me: failed program was:" >&5
  5406. sed 's/^/| /' conftest.$ac_ext >&5
  5407. # Broken: fails on valid input.
  5408. continue
  5409. fi
  5410. rm -f conftest.err conftest.$ac_ext
  5411. # OK, works on sane cases. Now check whether nonexistent headers
  5412. # can be detected and how.
  5413. cat >conftest.$ac_ext <<_ACEOF
  5414. /* confdefs.h. */
  5415. _ACEOF
  5416. cat confdefs.h >>conftest.$ac_ext
  5417. cat >>conftest.$ac_ext <<_ACEOF
  5418. /* end confdefs.h. */
  5419. #include <ac_nonexistent.h>
  5420. _ACEOF
  5421. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5422. case "(($ac_try" in
  5423. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5424. *) ac_try_echo=$ac_try;;
  5425. esac
  5426. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5427. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5428. ac_status=$?
  5429. grep -v '^ *+' conftest.er1 >conftest.err
  5430. rm -f conftest.er1
  5431. cat conftest.err >&5
  5432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5433. (exit $ac_status); } >/dev/null && {
  5434. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5435. test ! -s conftest.err
  5436. }; then
  5437. # Broken: success on invalid input.
  5438. continue
  5439. else
  5440. echo "$as_me: failed program was:" >&5
  5441. sed 's/^/| /' conftest.$ac_ext >&5
  5442. # Passes both tests.
  5443. ac_preproc_ok=:
  5444. break
  5445. fi
  5446. rm -f conftest.err conftest.$ac_ext
  5447. done
  5448. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5449. rm -f conftest.err conftest.$ac_ext
  5450. if $ac_preproc_ok; then
  5451. break
  5452. fi
  5453. done
  5454. ac_cv_prog_CXXCPP=$CXXCPP
  5455. fi
  5456. CXXCPP=$ac_cv_prog_CXXCPP
  5457. else
  5458. ac_cv_prog_CXXCPP=$CXXCPP
  5459. fi
  5460. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5461. echo "${ECHO_T}$CXXCPP" >&6; }
  5462. ac_preproc_ok=false
  5463. for ac_cxx_preproc_warn_flag in '' yes
  5464. do
  5465. # Use a header file that comes with gcc, so configuring glibc
  5466. # with a fresh cross-compiler works.
  5467. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5468. # <limits.h> exists even on freestanding compilers.
  5469. # On the NeXT, cc -E runs the code through the compiler's parser,
  5470. # not just through cpp. "Syntax error" is here to catch this case.
  5471. cat >conftest.$ac_ext <<_ACEOF
  5472. /* confdefs.h. */
  5473. _ACEOF
  5474. cat confdefs.h >>conftest.$ac_ext
  5475. cat >>conftest.$ac_ext <<_ACEOF
  5476. /* end confdefs.h. */
  5477. #ifdef __STDC__
  5478. # include <limits.h>
  5479. #else
  5480. # include <assert.h>
  5481. #endif
  5482. Syntax error
  5483. _ACEOF
  5484. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5485. case "(($ac_try" in
  5486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5487. *) ac_try_echo=$ac_try;;
  5488. esac
  5489. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5490. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5491. ac_status=$?
  5492. grep -v '^ *+' conftest.er1 >conftest.err
  5493. rm -f conftest.er1
  5494. cat conftest.err >&5
  5495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5496. (exit $ac_status); } >/dev/null && {
  5497. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5498. test ! -s conftest.err
  5499. }; then
  5500. :
  5501. else
  5502. echo "$as_me: failed program was:" >&5
  5503. sed 's/^/| /' conftest.$ac_ext >&5
  5504. # Broken: fails on valid input.
  5505. continue
  5506. fi
  5507. rm -f conftest.err conftest.$ac_ext
  5508. # OK, works on sane cases. Now check whether nonexistent headers
  5509. # can be detected and how.
  5510. cat >conftest.$ac_ext <<_ACEOF
  5511. /* confdefs.h. */
  5512. _ACEOF
  5513. cat confdefs.h >>conftest.$ac_ext
  5514. cat >>conftest.$ac_ext <<_ACEOF
  5515. /* end confdefs.h. */
  5516. #include <ac_nonexistent.h>
  5517. _ACEOF
  5518. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5519. case "(($ac_try" in
  5520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5521. *) ac_try_echo=$ac_try;;
  5522. esac
  5523. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5524. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5525. ac_status=$?
  5526. grep -v '^ *+' conftest.er1 >conftest.err
  5527. rm -f conftest.er1
  5528. cat conftest.err >&5
  5529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5530. (exit $ac_status); } >/dev/null && {
  5531. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5532. test ! -s conftest.err
  5533. }; then
  5534. # Broken: success on invalid input.
  5535. continue
  5536. else
  5537. echo "$as_me: failed program was:" >&5
  5538. sed 's/^/| /' conftest.$ac_ext >&5
  5539. # Passes both tests.
  5540. ac_preproc_ok=:
  5541. break
  5542. fi
  5543. rm -f conftest.err conftest.$ac_ext
  5544. done
  5545. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5546. rm -f conftest.err conftest.$ac_ext
  5547. if $ac_preproc_ok; then
  5548. :
  5549. else
  5550. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5551. See \`config.log' for more details." >&5
  5552. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5553. See \`config.log' for more details." >&2;}
  5554. { (exit 1); exit 1; }; }
  5555. fi
  5556. ac_ext=cpp
  5557. ac_cpp='$CXXCPP $CPPFLAGS'
  5558. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5559. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5560. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5561. fi
  5562. ac_ext=f
  5563. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  5564. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5565. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  5566. if test -n "$ac_tool_prefix"; then
  5567. for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  5568. do
  5569. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5570. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5571. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5572. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5573. if test "${ac_cv_prog_F77+set}" = set; then
  5574. echo $ECHO_N "(cached) $ECHO_C" >&6
  5575. else
  5576. if test -n "$F77"; then
  5577. ac_cv_prog_F77="$F77" # Let the user override the test.
  5578. else
  5579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5580. for as_dir in $PATH
  5581. do
  5582. IFS=$as_save_IFS
  5583. test -z "$as_dir" && as_dir=.
  5584. for ac_exec_ext in '' $ac_executable_extensions; do
  5585. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5586. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  5587. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5588. break 2
  5589. fi
  5590. done
  5591. done
  5592. IFS=$as_save_IFS
  5593. fi
  5594. fi
  5595. F77=$ac_cv_prog_F77
  5596. if test -n "$F77"; then
  5597. { echo "$as_me:$LINENO: result: $F77" >&5
  5598. echo "${ECHO_T}$F77" >&6; }
  5599. else
  5600. { echo "$as_me:$LINENO: result: no" >&5
  5601. echo "${ECHO_T}no" >&6; }
  5602. fi
  5603. test -n "$F77" && break
  5604. done
  5605. fi
  5606. if test -z "$F77"; then
  5607. ac_ct_F77=$F77
  5608. for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  5609. do
  5610. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5611. set dummy $ac_prog; ac_word=$2
  5612. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5613. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5614. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  5615. echo $ECHO_N "(cached) $ECHO_C" >&6
  5616. else
  5617. if test -n "$ac_ct_F77"; then
  5618. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  5619. else
  5620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5621. for as_dir in $PATH
  5622. do
  5623. IFS=$as_save_IFS
  5624. test -z "$as_dir" && as_dir=.
  5625. for ac_exec_ext in '' $ac_executable_extensions; do
  5626. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5627. ac_cv_prog_ac_ct_F77="$ac_prog"
  5628. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5629. break 2
  5630. fi
  5631. done
  5632. done
  5633. IFS=$as_save_IFS
  5634. fi
  5635. fi
  5636. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  5637. if test -n "$ac_ct_F77"; then
  5638. { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  5639. echo "${ECHO_T}$ac_ct_F77" >&6; }
  5640. else
  5641. { echo "$as_me:$LINENO: result: no" >&5
  5642. echo "${ECHO_T}no" >&6; }
  5643. fi
  5644. test -n "$ac_ct_F77" && break
  5645. done
  5646. if test "x$ac_ct_F77" = x; then
  5647. F77=""
  5648. else
  5649. case $cross_compiling:$ac_tool_warned in
  5650. yes:)
  5651. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5652. whose name does not start with the host triplet. If you think this
  5653. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5654. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5655. whose name does not start with the host triplet. If you think this
  5656. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5657. ac_tool_warned=yes ;;
  5658. esac
  5659. F77=$ac_ct_F77
  5660. fi
  5661. fi
  5662. # Provide some information about the compiler.
  5663. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  5664. ac_compiler=`set X $ac_compile; echo $2`
  5665. { (ac_try="$ac_compiler --version >&5"
  5666. case "(($ac_try" in
  5667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5668. *) ac_try_echo=$ac_try;;
  5669. esac
  5670. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5671. (eval "$ac_compiler --version >&5") 2>&5
  5672. ac_status=$?
  5673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5674. (exit $ac_status); }
  5675. { (ac_try="$ac_compiler -v >&5"
  5676. case "(($ac_try" in
  5677. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5678. *) ac_try_echo=$ac_try;;
  5679. esac
  5680. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5681. (eval "$ac_compiler -v >&5") 2>&5
  5682. ac_status=$?
  5683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5684. (exit $ac_status); }
  5685. { (ac_try="$ac_compiler -V >&5"
  5686. case "(($ac_try" in
  5687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5688. *) ac_try_echo=$ac_try;;
  5689. esac
  5690. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5691. (eval "$ac_compiler -V >&5") 2>&5
  5692. ac_status=$?
  5693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5694. (exit $ac_status); }
  5695. rm -f a.out
  5696. # If we don't use `.F' as extension, the preprocessor is not run on the
  5697. # input file. (Note that this only needs to work for GNU compilers.)
  5698. ac_save_ext=$ac_ext
  5699. ac_ext=F
  5700. { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5701. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  5702. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5703. echo $ECHO_N "(cached) $ECHO_C" >&6
  5704. else
  5705. cat >conftest.$ac_ext <<_ACEOF
  5706. program main
  5707. #ifndef __GNUC__
  5708. choke me
  5709. #endif
  5710. end
  5711. _ACEOF
  5712. rm -f conftest.$ac_objext
  5713. if { (ac_try="$ac_compile"
  5714. case "(($ac_try" in
  5715. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5716. *) ac_try_echo=$ac_try;;
  5717. esac
  5718. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5719. (eval "$ac_compile") 2>conftest.er1
  5720. ac_status=$?
  5721. grep -v '^ *+' conftest.er1 >conftest.err
  5722. rm -f conftest.er1
  5723. cat conftest.err >&5
  5724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5725. (exit $ac_status); } && {
  5726. test -z "$ac_f77_werror_flag" ||
  5727. test ! -s conftest.err
  5728. } && test -s conftest.$ac_objext; then
  5729. ac_compiler_gnu=yes
  5730. else
  5731. echo "$as_me: failed program was:" >&5
  5732. sed 's/^/| /' conftest.$ac_ext >&5
  5733. ac_compiler_gnu=no
  5734. fi
  5735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5736. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5737. fi
  5738. { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5739. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  5740. ac_ext=$ac_save_ext
  5741. ac_test_FFLAGS=${FFLAGS+set}
  5742. ac_save_FFLAGS=$FFLAGS
  5743. FFLAGS=
  5744. { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5745. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  5746. if test "${ac_cv_prog_f77_g+set}" = set; then
  5747. echo $ECHO_N "(cached) $ECHO_C" >&6
  5748. else
  5749. FFLAGS=-g
  5750. cat >conftest.$ac_ext <<_ACEOF
  5751. program main
  5752. end
  5753. _ACEOF
  5754. rm -f conftest.$ac_objext
  5755. if { (ac_try="$ac_compile"
  5756. case "(($ac_try" in
  5757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5758. *) ac_try_echo=$ac_try;;
  5759. esac
  5760. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5761. (eval "$ac_compile") 2>conftest.er1
  5762. ac_status=$?
  5763. grep -v '^ *+' conftest.er1 >conftest.err
  5764. rm -f conftest.er1
  5765. cat conftest.err >&5
  5766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5767. (exit $ac_status); } && {
  5768. test -z "$ac_f77_werror_flag" ||
  5769. test ! -s conftest.err
  5770. } && test -s conftest.$ac_objext; then
  5771. ac_cv_prog_f77_g=yes
  5772. else
  5773. echo "$as_me: failed program was:" >&5
  5774. sed 's/^/| /' conftest.$ac_ext >&5
  5775. ac_cv_prog_f77_g=no
  5776. fi
  5777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5778. fi
  5779. { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5780. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  5781. if test "$ac_test_FFLAGS" = set; then
  5782. FFLAGS=$ac_save_FFLAGS
  5783. elif test $ac_cv_prog_f77_g = yes; then
  5784. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5785. FFLAGS="-g -O2"
  5786. else
  5787. FFLAGS="-g"
  5788. fi
  5789. else
  5790. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5791. FFLAGS="-O2"
  5792. else
  5793. FFLAGS=
  5794. fi
  5795. fi
  5796. G77=`test $ac_compiler_gnu = yes && echo yes`
  5797. ac_ext=c
  5798. ac_cpp='$CPP $CPPFLAGS'
  5799. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5800. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5801. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5802. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5803. # find the maximum length of command line arguments
  5804. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5805. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  5806. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5807. echo $ECHO_N "(cached) $ECHO_C" >&6
  5808. else
  5809. i=0
  5810. teststring="ABCD"
  5811. case $build_os in
  5812. msdosdjgpp*)
  5813. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5814. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5815. # during glob expansion). Even if it were fixed, the result of this
  5816. # check would be larger than it should be.
  5817. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5818. ;;
  5819. gnu*)
  5820. # Under GNU Hurd, this test is not required because there is
  5821. # no limit to the length of command line arguments.
  5822. # Libtool will interpret -1 as no limit whatsoever
  5823. lt_cv_sys_max_cmd_len=-1;
  5824. ;;
  5825. cygwin* | mingw*)
  5826. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5827. # about 5 minutes as the teststring grows exponentially.
  5828. # Worse, since 9x/ME are not pre-emptively multitasking,
  5829. # you end up with a "frozen" computer, even though with patience
  5830. # the test eventually succeeds (with a max line length of 256k).
  5831. # Instead, let's just punt: use the minimum linelength reported by
  5832. # all of the supported platforms: 8192 (on NT/2K/XP).
  5833. lt_cv_sys_max_cmd_len=8192;
  5834. ;;
  5835. amigaos*)
  5836. # On AmigaOS with pdksh, this test takes hours, literally.
  5837. # So we just punt and use a minimum line length of 8192.
  5838. lt_cv_sys_max_cmd_len=8192;
  5839. ;;
  5840. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5841. # This has been around since 386BSD, at least. Likely further.
  5842. if test -x /sbin/sysctl; then
  5843. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5844. elif test -x /usr/sbin/sysctl; then
  5845. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5846. else
  5847. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5848. fi
  5849. # And add a safety zone
  5850. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5851. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5852. ;;
  5853. interix*)
  5854. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5855. lt_cv_sys_max_cmd_len=196608
  5856. ;;
  5857. osf*)
  5858. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5859. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5860. # nice to cause kernel panics so lets avoid the loop below.
  5861. # First set a reasonable default.
  5862. lt_cv_sys_max_cmd_len=16384
  5863. #
  5864. if test -x /sbin/sysconfig; then
  5865. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5866. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5867. esac
  5868. fi
  5869. ;;
  5870. sco3.2v5*)
  5871. lt_cv_sys_max_cmd_len=102400
  5872. ;;
  5873. sysv5* | sco5v6* | sysv4.2uw2*)
  5874. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5875. if test -n "$kargmax"; then
  5876. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5877. else
  5878. lt_cv_sys_max_cmd_len=32768
  5879. fi
  5880. ;;
  5881. *)
  5882. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5883. if test -n "$lt_cv_sys_max_cmd_len"; then
  5884. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5885. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5886. else
  5887. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5888. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5889. = "XX$teststring") >/dev/null 2>&1 &&
  5890. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5891. lt_cv_sys_max_cmd_len=$new_result &&
  5892. test $i != 17 # 1/2 MB should be enough
  5893. do
  5894. i=`expr $i + 1`
  5895. teststring=$teststring$teststring
  5896. done
  5897. teststring=
  5898. # Add a significant safety factor because C++ compilers can tack on massive
  5899. # amounts of additional arguments before passing them to the linker.
  5900. # It appears as though 1/2 is a usable value.
  5901. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5902. fi
  5903. ;;
  5904. esac
  5905. fi
  5906. if test -n $lt_cv_sys_max_cmd_len ; then
  5907. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5908. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  5909. else
  5910. { echo "$as_me:$LINENO: result: none" >&5
  5911. echo "${ECHO_T}none" >&6; }
  5912. fi
  5913. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5914. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5915. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  5916. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5917. echo $ECHO_N "(cached) $ECHO_C" >&6
  5918. else
  5919. # These are sane defaults that work on at least a few old systems.
  5920. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5921. # Character class describing NM global symbol codes.
  5922. symcode='[BCDEGRST]'
  5923. # Regexp to match symbols that can be accessed directly from C.
  5924. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5925. # Transform an extracted symbol line into a proper C declaration
  5926. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5927. # Transform an extracted symbol line into symbol name and symbol address
  5928. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5929. # Define system-specific variables.
  5930. case $host_os in
  5931. aix*)
  5932. symcode='[BCDT]'
  5933. ;;
  5934. cygwin* | mingw* | pw32*)
  5935. symcode='[ABCDGISTW]'
  5936. ;;
  5937. hpux*) # Its linker distinguishes data from code symbols
  5938. if test "$host_cpu" = ia64; then
  5939. symcode='[ABCDEGRST]'
  5940. fi
  5941. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5942. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5943. ;;
  5944. linux* | k*bsd*-gnu)
  5945. if test "$host_cpu" = ia64; then
  5946. symcode='[ABCDGIRSTW]'
  5947. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5948. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5949. fi
  5950. ;;
  5951. irix* | nonstopux*)
  5952. symcode='[BCDEGRST]'
  5953. ;;
  5954. osf*)
  5955. symcode='[BCDEGQRST]'
  5956. ;;
  5957. solaris*)
  5958. symcode='[BDRT]'
  5959. ;;
  5960. sco3.2v5*)
  5961. symcode='[DT]'
  5962. ;;
  5963. sysv4.2uw2*)
  5964. symcode='[DT]'
  5965. ;;
  5966. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5967. symcode='[ABDT]'
  5968. ;;
  5969. sysv4)
  5970. symcode='[DFNSTU]'
  5971. ;;
  5972. esac
  5973. # Handle CRLF in mingw tool chain
  5974. opt_cr=
  5975. case $build_os in
  5976. mingw*)
  5977. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5978. ;;
  5979. esac
  5980. # If we're using GNU nm, then use its standard symbol codes.
  5981. case `$NM -V 2>&1` in
  5982. *GNU* | *'with BFD'*)
  5983. symcode='[ABCDGIRSTW]' ;;
  5984. esac
  5985. # Try without a prefix undercore, then with it.
  5986. for ac_symprfx in "" "_"; do
  5987. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5988. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5989. # Write the raw and C identifiers.
  5990. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5991. # Check to see that the pipe works correctly.
  5992. pipe_works=no
  5993. rm -f conftest*
  5994. cat > conftest.$ac_ext <<EOF
  5995. #ifdef __cplusplus
  5996. extern "C" {
  5997. #endif
  5998. char nm_test_var;
  5999. void nm_test_func(){}
  6000. #ifdef __cplusplus
  6001. }
  6002. #endif
  6003. int main(){nm_test_var='a';nm_test_func();return(0);}
  6004. EOF
  6005. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6006. (eval $ac_compile) 2>&5
  6007. ac_status=$?
  6008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6009. (exit $ac_status); }; then
  6010. # Now try to grab the symbols.
  6011. nlist=conftest.nm
  6012. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  6013. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  6014. ac_status=$?
  6015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6016. (exit $ac_status); } && test -s "$nlist"; then
  6017. # Try sorting and uniquifying the output.
  6018. if sort "$nlist" | uniq > "$nlist"T; then
  6019. mv -f "$nlist"T "$nlist"
  6020. else
  6021. rm -f "$nlist"T
  6022. fi
  6023. # Make sure that we snagged all the symbols we need.
  6024. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  6025. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  6026. cat <<EOF > conftest.$ac_ext
  6027. #ifdef __cplusplus
  6028. extern "C" {
  6029. #endif
  6030. EOF
  6031. # Now generate the symbol file.
  6032. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  6033. cat <<EOF >> conftest.$ac_ext
  6034. #if defined (__STDC__) && __STDC__
  6035. # define lt_ptr_t void *
  6036. #else
  6037. # define lt_ptr_t char *
  6038. # define const
  6039. #endif
  6040. /* The mapping between symbol names and symbols. */
  6041. const struct {
  6042. const char *name;
  6043. lt_ptr_t address;
  6044. }
  6045. lt_preloaded_symbols[] =
  6046. {
  6047. EOF
  6048. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  6049. cat <<\EOF >> conftest.$ac_ext
  6050. {0, (lt_ptr_t) 0}
  6051. };
  6052. #ifdef __cplusplus
  6053. }
  6054. #endif
  6055. EOF
  6056. # Now try linking the two files.
  6057. mv conftest.$ac_objext conftstm.$ac_objext
  6058. lt_save_LIBS="$LIBS"
  6059. lt_save_CFLAGS="$CFLAGS"
  6060. LIBS="conftstm.$ac_objext"
  6061. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6062. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6063. (eval $ac_link) 2>&5
  6064. ac_status=$?
  6065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6066. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  6067. pipe_works=yes
  6068. fi
  6069. LIBS="$lt_save_LIBS"
  6070. CFLAGS="$lt_save_CFLAGS"
  6071. else
  6072. echo "cannot find nm_test_func in $nlist" >&5
  6073. fi
  6074. else
  6075. echo "cannot find nm_test_var in $nlist" >&5
  6076. fi
  6077. else
  6078. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6079. fi
  6080. else
  6081. echo "$progname: failed program was:" >&5
  6082. cat conftest.$ac_ext >&5
  6083. fi
  6084. rm -f conftest* conftst*
  6085. # Do not use the global_symbol_pipe unless it works.
  6086. if test "$pipe_works" = yes; then
  6087. break
  6088. else
  6089. lt_cv_sys_global_symbol_pipe=
  6090. fi
  6091. done
  6092. fi
  6093. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6094. lt_cv_sys_global_symbol_to_cdecl=
  6095. fi
  6096. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6097. { echo "$as_me:$LINENO: result: failed" >&5
  6098. echo "${ECHO_T}failed" >&6; }
  6099. else
  6100. { echo "$as_me:$LINENO: result: ok" >&5
  6101. echo "${ECHO_T}ok" >&6; }
  6102. fi
  6103. { echo "$as_me:$LINENO: checking for objdir" >&5
  6104. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  6105. if test "${lt_cv_objdir+set}" = set; then
  6106. echo $ECHO_N "(cached) $ECHO_C" >&6
  6107. else
  6108. rm -f .libs 2>/dev/null
  6109. mkdir .libs 2>/dev/null
  6110. if test -d .libs; then
  6111. lt_cv_objdir=.libs
  6112. else
  6113. # MS-DOS does not allow filenames that begin with a dot.
  6114. lt_cv_objdir=_libs
  6115. fi
  6116. rmdir .libs 2>/dev/null
  6117. fi
  6118. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6119. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  6120. objdir=$lt_cv_objdir
  6121. case $host_os in
  6122. aix3*)
  6123. # AIX sometimes has problems with the GCC collect2 program. For some
  6124. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6125. # vanish in a puff of smoke.
  6126. if test "X${COLLECT_NAMES+set}" != Xset; then
  6127. COLLECT_NAMES=
  6128. export COLLECT_NAMES
  6129. fi
  6130. ;;
  6131. esac
  6132. # Sed substitution that helps us do robust quoting. It backslashifies
  6133. # metacharacters that are still active within double-quoted strings.
  6134. Xsed='sed -e 1s/^X//'
  6135. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  6136. # Same as above, but do not quote variable references.
  6137. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  6138. # Sed substitution to delay expansion of an escaped shell variable in a
  6139. # double_quote_subst'ed string.
  6140. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6141. # Sed substitution to avoid accidental globbing in evaled expressions
  6142. no_glob_subst='s/\*/\\\*/g'
  6143. # Constants:
  6144. rm="rm -f"
  6145. # Global variables:
  6146. default_ofile=libtool
  6147. can_build_shared=yes
  6148. # All known linkers require a `.a' archive for static linking (except MSVC,
  6149. # which needs '.lib').
  6150. libext=a
  6151. ltmain="$ac_aux_dir/ltmain.sh"
  6152. ofile="$default_ofile"
  6153. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6154. if test -n "$ac_tool_prefix"; then
  6155. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6156. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6157. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6158. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6159. if test "${ac_cv_prog_AR+set}" = set; then
  6160. echo $ECHO_N "(cached) $ECHO_C" >&6
  6161. else
  6162. if test -n "$AR"; then
  6163. ac_cv_prog_AR="$AR" # Let the user override the test.
  6164. else
  6165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6166. for as_dir in $PATH
  6167. do
  6168. IFS=$as_save_IFS
  6169. test -z "$as_dir" && as_dir=.
  6170. for ac_exec_ext in '' $ac_executable_extensions; do
  6171. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6172. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6173. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6174. break 2
  6175. fi
  6176. done
  6177. done
  6178. IFS=$as_save_IFS
  6179. fi
  6180. fi
  6181. AR=$ac_cv_prog_AR
  6182. if test -n "$AR"; then
  6183. { echo "$as_me:$LINENO: result: $AR" >&5
  6184. echo "${ECHO_T}$AR" >&6; }
  6185. else
  6186. { echo "$as_me:$LINENO: result: no" >&5
  6187. echo "${ECHO_T}no" >&6; }
  6188. fi
  6189. fi
  6190. if test -z "$ac_cv_prog_AR"; then
  6191. ac_ct_AR=$AR
  6192. # Extract the first word of "ar", so it can be a program name with args.
  6193. set dummy ar; ac_word=$2
  6194. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6195. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6196. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  6197. echo $ECHO_N "(cached) $ECHO_C" >&6
  6198. else
  6199. if test -n "$ac_ct_AR"; then
  6200. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6201. else
  6202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6203. for as_dir in $PATH
  6204. do
  6205. IFS=$as_save_IFS
  6206. test -z "$as_dir" && as_dir=.
  6207. for ac_exec_ext in '' $ac_executable_extensions; do
  6208. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6209. ac_cv_prog_ac_ct_AR="ar"
  6210. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6211. break 2
  6212. fi
  6213. done
  6214. done
  6215. IFS=$as_save_IFS
  6216. fi
  6217. fi
  6218. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6219. if test -n "$ac_ct_AR"; then
  6220. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  6221. echo "${ECHO_T}$ac_ct_AR" >&6; }
  6222. else
  6223. { echo "$as_me:$LINENO: result: no" >&5
  6224. echo "${ECHO_T}no" >&6; }
  6225. fi
  6226. if test "x$ac_ct_AR" = x; then
  6227. AR="false"
  6228. else
  6229. case $cross_compiling:$ac_tool_warned in
  6230. yes:)
  6231. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6232. whose name does not start with the host triplet. If you think this
  6233. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6234. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6235. whose name does not start with the host triplet. If you think this
  6236. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6237. ac_tool_warned=yes ;;
  6238. esac
  6239. AR=$ac_ct_AR
  6240. fi
  6241. else
  6242. AR="$ac_cv_prog_AR"
  6243. fi
  6244. if test -n "$ac_tool_prefix"; then
  6245. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6246. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6247. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6248. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6249. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6250. echo $ECHO_N "(cached) $ECHO_C" >&6
  6251. else
  6252. if test -n "$RANLIB"; then
  6253. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6254. else
  6255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6256. for as_dir in $PATH
  6257. do
  6258. IFS=$as_save_IFS
  6259. test -z "$as_dir" && as_dir=.
  6260. for ac_exec_ext in '' $ac_executable_extensions; do
  6261. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6262. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6263. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6264. break 2
  6265. fi
  6266. done
  6267. done
  6268. IFS=$as_save_IFS
  6269. fi
  6270. fi
  6271. RANLIB=$ac_cv_prog_RANLIB
  6272. if test -n "$RANLIB"; then
  6273. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  6274. echo "${ECHO_T}$RANLIB" >&6; }
  6275. else
  6276. { echo "$as_me:$LINENO: result: no" >&5
  6277. echo "${ECHO_T}no" >&6; }
  6278. fi
  6279. fi
  6280. if test -z "$ac_cv_prog_RANLIB"; then
  6281. ac_ct_RANLIB=$RANLIB
  6282. # Extract the first word of "ranlib", so it can be a program name with args.
  6283. set dummy ranlib; ac_word=$2
  6284. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6285. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6286. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6287. echo $ECHO_N "(cached) $ECHO_C" >&6
  6288. else
  6289. if test -n "$ac_ct_RANLIB"; then
  6290. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6291. else
  6292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6293. for as_dir in $PATH
  6294. do
  6295. IFS=$as_save_IFS
  6296. test -z "$as_dir" && as_dir=.
  6297. for ac_exec_ext in '' $ac_executable_extensions; do
  6298. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6299. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6300. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6301. break 2
  6302. fi
  6303. done
  6304. done
  6305. IFS=$as_save_IFS
  6306. fi
  6307. fi
  6308. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6309. if test -n "$ac_ct_RANLIB"; then
  6310. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6311. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  6312. else
  6313. { echo "$as_me:$LINENO: result: no" >&5
  6314. echo "${ECHO_T}no" >&6; }
  6315. fi
  6316. if test "x$ac_ct_RANLIB" = x; then
  6317. RANLIB=":"
  6318. else
  6319. case $cross_compiling:$ac_tool_warned in
  6320. yes:)
  6321. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6322. whose name does not start with the host triplet. If you think this
  6323. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6324. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6325. whose name does not start with the host triplet. If you think this
  6326. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6327. ac_tool_warned=yes ;;
  6328. esac
  6329. RANLIB=$ac_ct_RANLIB
  6330. fi
  6331. else
  6332. RANLIB="$ac_cv_prog_RANLIB"
  6333. fi
  6334. if test -n "$ac_tool_prefix"; then
  6335. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6336. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6337. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6338. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6339. if test "${ac_cv_prog_STRIP+set}" = set; then
  6340. echo $ECHO_N "(cached) $ECHO_C" >&6
  6341. else
  6342. if test -n "$STRIP"; then
  6343. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6344. else
  6345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6346. for as_dir in $PATH
  6347. do
  6348. IFS=$as_save_IFS
  6349. test -z "$as_dir" && as_dir=.
  6350. for ac_exec_ext in '' $ac_executable_extensions; do
  6351. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6352. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6353. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6354. break 2
  6355. fi
  6356. done
  6357. done
  6358. IFS=$as_save_IFS
  6359. fi
  6360. fi
  6361. STRIP=$ac_cv_prog_STRIP
  6362. if test -n "$STRIP"; then
  6363. { echo "$as_me:$LINENO: result: $STRIP" >&5
  6364. echo "${ECHO_T}$STRIP" >&6; }
  6365. else
  6366. { echo "$as_me:$LINENO: result: no" >&5
  6367. echo "${ECHO_T}no" >&6; }
  6368. fi
  6369. fi
  6370. if test -z "$ac_cv_prog_STRIP"; then
  6371. ac_ct_STRIP=$STRIP
  6372. # Extract the first word of "strip", so it can be a program name with args.
  6373. set dummy strip; ac_word=$2
  6374. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6375. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6376. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6377. echo $ECHO_N "(cached) $ECHO_C" >&6
  6378. else
  6379. if test -n "$ac_ct_STRIP"; then
  6380. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6381. else
  6382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6383. for as_dir in $PATH
  6384. do
  6385. IFS=$as_save_IFS
  6386. test -z "$as_dir" && as_dir=.
  6387. for ac_exec_ext in '' $ac_executable_extensions; do
  6388. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6389. ac_cv_prog_ac_ct_STRIP="strip"
  6390. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6391. break 2
  6392. fi
  6393. done
  6394. done
  6395. IFS=$as_save_IFS
  6396. fi
  6397. fi
  6398. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6399. if test -n "$ac_ct_STRIP"; then
  6400. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6401. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  6402. else
  6403. { echo "$as_me:$LINENO: result: no" >&5
  6404. echo "${ECHO_T}no" >&6; }
  6405. fi
  6406. if test "x$ac_ct_STRIP" = x; then
  6407. STRIP=":"
  6408. else
  6409. case $cross_compiling:$ac_tool_warned in
  6410. yes:)
  6411. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6412. whose name does not start with the host triplet. If you think this
  6413. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6414. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6415. whose name does not start with the host triplet. If you think this
  6416. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6417. ac_tool_warned=yes ;;
  6418. esac
  6419. STRIP=$ac_ct_STRIP
  6420. fi
  6421. else
  6422. STRIP="$ac_cv_prog_STRIP"
  6423. fi
  6424. old_CC="$CC"
  6425. old_CFLAGS="$CFLAGS"
  6426. # Set sane defaults for various variables
  6427. test -z "$AR" && AR=ar
  6428. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6429. test -z "$AS" && AS=as
  6430. test -z "$CC" && CC=cc
  6431. test -z "$LTCC" && LTCC=$CC
  6432. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6433. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6434. test -z "$LD" && LD=ld
  6435. test -z "$LN_S" && LN_S="ln -s"
  6436. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6437. test -z "$NM" && NM=nm
  6438. test -z "$SED" && SED=sed
  6439. test -z "$OBJDUMP" && OBJDUMP=objdump
  6440. test -z "$RANLIB" && RANLIB=:
  6441. test -z "$STRIP" && STRIP=:
  6442. test -z "$ac_objext" && ac_objext=o
  6443. # Determine commands to create old-style static archives.
  6444. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6445. old_postinstall_cmds='chmod 644 $oldlib'
  6446. old_postuninstall_cmds=
  6447. if test -n "$RANLIB"; then
  6448. case $host_os in
  6449. openbsd*)
  6450. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6451. ;;
  6452. *)
  6453. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6454. ;;
  6455. esac
  6456. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6457. fi
  6458. for cc_temp in $compiler""; do
  6459. case $cc_temp in
  6460. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6461. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6462. \-*) ;;
  6463. *) break;;
  6464. esac
  6465. done
  6466. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6467. # Only perform the check for file, if the check method requires it
  6468. case $deplibs_check_method in
  6469. file_magic*)
  6470. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6471. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6472. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  6473. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6474. echo $ECHO_N "(cached) $ECHO_C" >&6
  6475. else
  6476. case $MAGIC_CMD in
  6477. [\\/*] | ?:[\\/]*)
  6478. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6479. ;;
  6480. *)
  6481. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6482. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6483. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6484. for ac_dir in $ac_dummy; do
  6485. IFS="$lt_save_ifs"
  6486. test -z "$ac_dir" && ac_dir=.
  6487. if test -f $ac_dir/${ac_tool_prefix}file; then
  6488. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6489. if test -n "$file_magic_test_file"; then
  6490. case $deplibs_check_method in
  6491. "file_magic "*)
  6492. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6493. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6494. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6495. $EGREP "$file_magic_regex" > /dev/null; then
  6496. :
  6497. else
  6498. cat <<EOF 1>&2
  6499. *** Warning: the command libtool uses to detect shared libraries,
  6500. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6501. *** The result is that libtool may fail to recognize shared libraries
  6502. *** as such. This will affect the creation of libtool libraries that
  6503. *** depend on shared libraries, but programs linked with such libtool
  6504. *** libraries will work regardless of this problem. Nevertheless, you
  6505. *** may want to report the problem to your system manager and/or to
  6506. *** bug-libtool@gnu.org
  6507. EOF
  6508. fi ;;
  6509. esac
  6510. fi
  6511. break
  6512. fi
  6513. done
  6514. IFS="$lt_save_ifs"
  6515. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6516. ;;
  6517. esac
  6518. fi
  6519. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6520. if test -n "$MAGIC_CMD"; then
  6521. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6522. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6523. else
  6524. { echo "$as_me:$LINENO: result: no" >&5
  6525. echo "${ECHO_T}no" >&6; }
  6526. fi
  6527. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6528. if test -n "$ac_tool_prefix"; then
  6529. { echo "$as_me:$LINENO: checking for file" >&5
  6530. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  6531. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6532. echo $ECHO_N "(cached) $ECHO_C" >&6
  6533. else
  6534. case $MAGIC_CMD in
  6535. [\\/*] | ?:[\\/]*)
  6536. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6537. ;;
  6538. *)
  6539. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6540. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6541. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6542. for ac_dir in $ac_dummy; do
  6543. IFS="$lt_save_ifs"
  6544. test -z "$ac_dir" && ac_dir=.
  6545. if test -f $ac_dir/file; then
  6546. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6547. if test -n "$file_magic_test_file"; then
  6548. case $deplibs_check_method in
  6549. "file_magic "*)
  6550. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6551. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6552. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6553. $EGREP "$file_magic_regex" > /dev/null; then
  6554. :
  6555. else
  6556. cat <<EOF 1>&2
  6557. *** Warning: the command libtool uses to detect shared libraries,
  6558. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6559. *** The result is that libtool may fail to recognize shared libraries
  6560. *** as such. This will affect the creation of libtool libraries that
  6561. *** depend on shared libraries, but programs linked with such libtool
  6562. *** libraries will work regardless of this problem. Nevertheless, you
  6563. *** may want to report the problem to your system manager and/or to
  6564. *** bug-libtool@gnu.org
  6565. EOF
  6566. fi ;;
  6567. esac
  6568. fi
  6569. break
  6570. fi
  6571. done
  6572. IFS="$lt_save_ifs"
  6573. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6574. ;;
  6575. esac
  6576. fi
  6577. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6578. if test -n "$MAGIC_CMD"; then
  6579. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6580. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6581. else
  6582. { echo "$as_me:$LINENO: result: no" >&5
  6583. echo "${ECHO_T}no" >&6; }
  6584. fi
  6585. else
  6586. MAGIC_CMD=:
  6587. fi
  6588. fi
  6589. fi
  6590. ;;
  6591. esac
  6592. enable_dlopen=no
  6593. enable_win32_dll=no
  6594. # Check whether --enable-libtool-lock was given.
  6595. if test "${enable_libtool_lock+set}" = set; then
  6596. enableval=$enable_libtool_lock;
  6597. fi
  6598. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6599. # Check whether --with-pic was given.
  6600. if test "${with_pic+set}" = set; then
  6601. withval=$with_pic; pic_mode="$withval"
  6602. else
  6603. pic_mode=default
  6604. fi
  6605. test -z "$pic_mode" && pic_mode=default
  6606. # Use C for the default configuration in the libtool script
  6607. tagname=
  6608. lt_save_CC="$CC"
  6609. ac_ext=c
  6610. ac_cpp='$CPP $CPPFLAGS'
  6611. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6612. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6613. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6614. # Source file extension for C test sources.
  6615. ac_ext=c
  6616. # Object file extension for compiled C test sources.
  6617. objext=o
  6618. objext=$objext
  6619. # Code to be used in simple compile tests
  6620. lt_simple_compile_test_code="int some_variable = 0;"
  6621. # Code to be used in simple link tests
  6622. lt_simple_link_test_code='int main(){return(0);}'
  6623. # If no C compiler was specified, use CC.
  6624. LTCC=${LTCC-"$CC"}
  6625. # If no C compiler flags were specified, use CFLAGS.
  6626. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6627. # Allow CC to be a program name with arguments.
  6628. compiler=$CC
  6629. # save warnings/boilerplate of simple test code
  6630. ac_outfile=conftest.$ac_objext
  6631. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6632. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6633. _lt_compiler_boilerplate=`cat conftest.err`
  6634. $rm conftest*
  6635. ac_outfile=conftest.$ac_objext
  6636. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6637. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6638. _lt_linker_boilerplate=`cat conftest.err`
  6639. $rm conftest*
  6640. lt_prog_compiler_no_builtin_flag=
  6641. if test "$GCC" = yes; then
  6642. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6643. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6644. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  6645. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6646. echo $ECHO_N "(cached) $ECHO_C" >&6
  6647. else
  6648. lt_cv_prog_compiler_rtti_exceptions=no
  6649. ac_outfile=conftest.$ac_objext
  6650. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6651. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6652. # Insert the option either (1) after the last *FLAGS variable, or
  6653. # (2) before a word containing "conftest.", or (3) at the end.
  6654. # Note that $ac_compile itself does not contain backslashes and begins
  6655. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6656. # The option is referenced via a variable to avoid confusing sed.
  6657. lt_compile=`echo "$ac_compile" | $SED \
  6658. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6659. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6660. -e 's:$: $lt_compiler_flag:'`
  6661. (eval echo "\"\$as_me:7436: $lt_compile\"" >&5)
  6662. (eval "$lt_compile" 2>conftest.err)
  6663. ac_status=$?
  6664. cat conftest.err >&5
  6665. echo "$as_me:7440: \$? = $ac_status" >&5
  6666. if (exit $ac_status) && test -s "$ac_outfile"; then
  6667. # The compiler can only warn and ignore the option if not recognized
  6668. # So say no if there are warnings other than the usual output.
  6669. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6670. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6671. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6672. lt_cv_prog_compiler_rtti_exceptions=yes
  6673. fi
  6674. fi
  6675. $rm conftest*
  6676. fi
  6677. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6678. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6679. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6680. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6681. else
  6682. :
  6683. fi
  6684. fi
  6685. lt_prog_compiler_wl=
  6686. lt_prog_compiler_pic=
  6687. lt_prog_compiler_static=
  6688. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6689. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  6690. if test "$GCC" = yes; then
  6691. lt_prog_compiler_wl='-Wl,'
  6692. lt_prog_compiler_static='-static'
  6693. case $host_os in
  6694. aix*)
  6695. # All AIX code is PIC.
  6696. if test "$host_cpu" = ia64; then
  6697. # AIX 5 now supports IA64 processor
  6698. lt_prog_compiler_static='-Bstatic'
  6699. fi
  6700. ;;
  6701. amigaos*)
  6702. # FIXME: we need at least 68020 code to build shared libraries, but
  6703. # adding the `-m68020' flag to GCC prevents building anything better,
  6704. # like `-m68040'.
  6705. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6706. ;;
  6707. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6708. # PIC is the default for these OSes.
  6709. ;;
  6710. mingw* | cygwin* | pw32* | os2*)
  6711. # This hack is so that the source file can tell whether it is being
  6712. # built for inclusion in a dll (and should export symbols for example).
  6713. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6714. # (--disable-auto-import) libraries
  6715. lt_prog_compiler_pic='-DDLL_EXPORT'
  6716. ;;
  6717. darwin* | rhapsody*)
  6718. # PIC is the default on this platform
  6719. # Common symbols not allowed in MH_DYLIB files
  6720. lt_prog_compiler_pic='-fno-common'
  6721. ;;
  6722. interix[3-9]*)
  6723. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6724. # Instead, we relocate shared libraries at runtime.
  6725. ;;
  6726. msdosdjgpp*)
  6727. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6728. # on systems that don't support them.
  6729. lt_prog_compiler_can_build_shared=no
  6730. enable_shared=no
  6731. ;;
  6732. sysv4*MP*)
  6733. if test -d /usr/nec; then
  6734. lt_prog_compiler_pic=-Kconform_pic
  6735. fi
  6736. ;;
  6737. hpux*)
  6738. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6739. # not for PA HP-UX.
  6740. case $host_cpu in
  6741. hppa*64*|ia64*)
  6742. # +Z the default
  6743. ;;
  6744. *)
  6745. lt_prog_compiler_pic='-fPIC'
  6746. ;;
  6747. esac
  6748. ;;
  6749. *)
  6750. lt_prog_compiler_pic='-fPIC'
  6751. ;;
  6752. esac
  6753. else
  6754. # PORTME Check for flag to pass linker flags through the system compiler.
  6755. case $host_os in
  6756. aix*)
  6757. lt_prog_compiler_wl='-Wl,'
  6758. if test "$host_cpu" = ia64; then
  6759. # AIX 5 now supports IA64 processor
  6760. lt_prog_compiler_static='-Bstatic'
  6761. else
  6762. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6763. fi
  6764. ;;
  6765. darwin*)
  6766. # PIC is the default on this platform
  6767. # Common symbols not allowed in MH_DYLIB files
  6768. case $cc_basename in
  6769. xlc*)
  6770. lt_prog_compiler_pic='-qnocommon'
  6771. lt_prog_compiler_wl='-Wl,'
  6772. ;;
  6773. esac
  6774. ;;
  6775. mingw* | cygwin* | pw32* | os2*)
  6776. # This hack is so that the source file can tell whether it is being
  6777. # built for inclusion in a dll (and should export symbols for example).
  6778. lt_prog_compiler_pic='-DDLL_EXPORT'
  6779. ;;
  6780. hpux9* | hpux10* | hpux11*)
  6781. lt_prog_compiler_wl='-Wl,'
  6782. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6783. # not for PA HP-UX.
  6784. case $host_cpu in
  6785. hppa*64*|ia64*)
  6786. # +Z the default
  6787. ;;
  6788. *)
  6789. lt_prog_compiler_pic='+Z'
  6790. ;;
  6791. esac
  6792. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6793. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6794. ;;
  6795. irix5* | irix6* | nonstopux*)
  6796. lt_prog_compiler_wl='-Wl,'
  6797. # PIC (with -KPIC) is the default.
  6798. lt_prog_compiler_static='-non_shared'
  6799. ;;
  6800. newsos6)
  6801. lt_prog_compiler_pic='-KPIC'
  6802. lt_prog_compiler_static='-Bstatic'
  6803. ;;
  6804. linux* | k*bsd*-gnu)
  6805. case $cc_basename in
  6806. icc* | ecc*)
  6807. lt_prog_compiler_wl='-Wl,'
  6808. lt_prog_compiler_pic='-KPIC'
  6809. lt_prog_compiler_static='-static'
  6810. ;;
  6811. pgcc* | pgf77* | pgf90* | pgf95*)
  6812. # Portland Group compilers (*not* the Pentium gcc compiler,
  6813. # which looks to be a dead project)
  6814. lt_prog_compiler_wl='-Wl,'
  6815. lt_prog_compiler_pic='-fpic'
  6816. lt_prog_compiler_static='-Bstatic'
  6817. ;;
  6818. ccc*)
  6819. lt_prog_compiler_wl='-Wl,'
  6820. # All Alpha code is PIC.
  6821. lt_prog_compiler_static='-non_shared'
  6822. ;;
  6823. *)
  6824. case `$CC -V 2>&1 | sed 5q` in
  6825. *Sun\ C*)
  6826. # Sun C 5.9
  6827. lt_prog_compiler_pic='-KPIC'
  6828. lt_prog_compiler_static='-Bstatic'
  6829. lt_prog_compiler_wl='-Wl,'
  6830. ;;
  6831. *Sun\ F*)
  6832. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6833. lt_prog_compiler_pic='-KPIC'
  6834. lt_prog_compiler_static='-Bstatic'
  6835. lt_prog_compiler_wl=''
  6836. ;;
  6837. esac
  6838. ;;
  6839. esac
  6840. ;;
  6841. osf3* | osf4* | osf5*)
  6842. lt_prog_compiler_wl='-Wl,'
  6843. # All OSF/1 code is PIC.
  6844. lt_prog_compiler_static='-non_shared'
  6845. ;;
  6846. rdos*)
  6847. lt_prog_compiler_static='-non_shared'
  6848. ;;
  6849. solaris*)
  6850. lt_prog_compiler_pic='-KPIC'
  6851. lt_prog_compiler_static='-Bstatic'
  6852. case $cc_basename in
  6853. f77* | f90* | f95*)
  6854. lt_prog_compiler_wl='-Qoption ld ';;
  6855. *)
  6856. lt_prog_compiler_wl='-Wl,';;
  6857. esac
  6858. ;;
  6859. sunos4*)
  6860. lt_prog_compiler_wl='-Qoption ld '
  6861. lt_prog_compiler_pic='-PIC'
  6862. lt_prog_compiler_static='-Bstatic'
  6863. ;;
  6864. sysv4 | sysv4.2uw2* | sysv4.3*)
  6865. lt_prog_compiler_wl='-Wl,'
  6866. lt_prog_compiler_pic='-KPIC'
  6867. lt_prog_compiler_static='-Bstatic'
  6868. ;;
  6869. sysv4*MP*)
  6870. if test -d /usr/nec ;then
  6871. lt_prog_compiler_pic='-Kconform_pic'
  6872. lt_prog_compiler_static='-Bstatic'
  6873. fi
  6874. ;;
  6875. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6876. lt_prog_compiler_wl='-Wl,'
  6877. lt_prog_compiler_pic='-KPIC'
  6878. lt_prog_compiler_static='-Bstatic'
  6879. ;;
  6880. unicos*)
  6881. lt_prog_compiler_wl='-Wl,'
  6882. lt_prog_compiler_can_build_shared=no
  6883. ;;
  6884. uts4*)
  6885. lt_prog_compiler_pic='-pic'
  6886. lt_prog_compiler_static='-Bstatic'
  6887. ;;
  6888. *)
  6889. lt_prog_compiler_can_build_shared=no
  6890. ;;
  6891. esac
  6892. fi
  6893. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6894. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  6895. #
  6896. # Check to make sure the PIC flag actually works.
  6897. #
  6898. if test -n "$lt_prog_compiler_pic"; then
  6899. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6900. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  6901. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6902. echo $ECHO_N "(cached) $ECHO_C" >&6
  6903. else
  6904. lt_prog_compiler_pic_works=no
  6905. ac_outfile=conftest.$ac_objext
  6906. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6907. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6908. # Insert the option either (1) after the last *FLAGS variable, or
  6909. # (2) before a word containing "conftest.", or (3) at the end.
  6910. # Note that $ac_compile itself does not contain backslashes and begins
  6911. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6912. # The option is referenced via a variable to avoid confusing sed.
  6913. lt_compile=`echo "$ac_compile" | $SED \
  6914. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6915. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6916. -e 's:$: $lt_compiler_flag:'`
  6917. (eval echo "\"\$as_me:7726: $lt_compile\"" >&5)
  6918. (eval "$lt_compile" 2>conftest.err)
  6919. ac_status=$?
  6920. cat conftest.err >&5
  6921. echo "$as_me:7730: \$? = $ac_status" >&5
  6922. if (exit $ac_status) && test -s "$ac_outfile"; then
  6923. # The compiler can only warn and ignore the option if not recognized
  6924. # So say no if there are warnings other than the usual output.
  6925. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6926. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6927. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6928. lt_prog_compiler_pic_works=yes
  6929. fi
  6930. fi
  6931. $rm conftest*
  6932. fi
  6933. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6934. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  6935. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6936. case $lt_prog_compiler_pic in
  6937. "" | " "*) ;;
  6938. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6939. esac
  6940. else
  6941. lt_prog_compiler_pic=
  6942. lt_prog_compiler_can_build_shared=no
  6943. fi
  6944. fi
  6945. case $host_os in
  6946. # For platforms which do not support PIC, -DPIC is meaningless:
  6947. *djgpp*)
  6948. lt_prog_compiler_pic=
  6949. ;;
  6950. *)
  6951. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6952. ;;
  6953. esac
  6954. #
  6955. # Check to make sure the static flag actually works.
  6956. #
  6957. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6958. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6959. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  6960. if test "${lt_prog_compiler_static_works+set}" = set; then
  6961. echo $ECHO_N "(cached) $ECHO_C" >&6
  6962. else
  6963. lt_prog_compiler_static_works=no
  6964. save_LDFLAGS="$LDFLAGS"
  6965. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6966. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6967. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6968. # The linker can only warn and ignore the option if not recognized
  6969. # So say no if there are warnings
  6970. if test -s conftest.err; then
  6971. # Append any errors to the config.log.
  6972. cat conftest.err 1>&5
  6973. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6974. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6975. if diff conftest.exp conftest.er2 >/dev/null; then
  6976. lt_prog_compiler_static_works=yes
  6977. fi
  6978. else
  6979. lt_prog_compiler_static_works=yes
  6980. fi
  6981. fi
  6982. $rm conftest*
  6983. LDFLAGS="$save_LDFLAGS"
  6984. fi
  6985. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6986. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  6987. if test x"$lt_prog_compiler_static_works" = xyes; then
  6988. :
  6989. else
  6990. lt_prog_compiler_static=
  6991. fi
  6992. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6993. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  6994. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6995. echo $ECHO_N "(cached) $ECHO_C" >&6
  6996. else
  6997. lt_cv_prog_compiler_c_o=no
  6998. $rm -r conftest 2>/dev/null
  6999. mkdir conftest
  7000. cd conftest
  7001. mkdir out
  7002. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7003. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7004. # Insert the option either (1) after the last *FLAGS variable, or
  7005. # (2) before a word containing "conftest.", or (3) at the end.
  7006. # Note that $ac_compile itself does not contain backslashes and begins
  7007. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7008. lt_compile=`echo "$ac_compile" | $SED \
  7009. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7010. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7011. -e 's:$: $lt_compiler_flag:'`
  7012. (eval echo "\"\$as_me:7830: $lt_compile\"" >&5)
  7013. (eval "$lt_compile" 2>out/conftest.err)
  7014. ac_status=$?
  7015. cat out/conftest.err >&5
  7016. echo "$as_me:7834: \$? = $ac_status" >&5
  7017. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7018. then
  7019. # The compiler can only warn and ignore the option if not recognized
  7020. # So say no if there are warnings
  7021. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7022. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7023. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7024. lt_cv_prog_compiler_c_o=yes
  7025. fi
  7026. fi
  7027. chmod u+w . 2>&5
  7028. $rm conftest*
  7029. # SGI C++ compiler will create directory out/ii_files/ for
  7030. # template instantiation
  7031. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  7032. $rm out/* && rmdir out
  7033. cd ..
  7034. rmdir conftest
  7035. $rm conftest*
  7036. fi
  7037. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7038. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  7039. hard_links="nottested"
  7040. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7041. # do not overwrite the value of need_locks provided by the user
  7042. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  7043. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  7044. hard_links=yes
  7045. $rm conftest*
  7046. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7047. touch conftest.a
  7048. ln conftest.a conftest.b 2>&5 || hard_links=no
  7049. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7050. { echo "$as_me:$LINENO: result: $hard_links" >&5
  7051. echo "${ECHO_T}$hard_links" >&6; }
  7052. if test "$hard_links" = no; then
  7053. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7054. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7055. need_locks=warn
  7056. fi
  7057. else
  7058. need_locks=no
  7059. fi
  7060. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7061. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  7062. runpath_var=
  7063. allow_undefined_flag=
  7064. enable_shared_with_static_runtimes=no
  7065. archive_cmds=
  7066. archive_expsym_cmds=
  7067. old_archive_From_new_cmds=
  7068. old_archive_from_expsyms_cmds=
  7069. export_dynamic_flag_spec=
  7070. whole_archive_flag_spec=
  7071. thread_safe_flag_spec=
  7072. hardcode_libdir_flag_spec=
  7073. hardcode_libdir_flag_spec_ld=
  7074. hardcode_libdir_separator=
  7075. hardcode_direct=no
  7076. hardcode_minus_L=no
  7077. hardcode_shlibpath_var=unsupported
  7078. link_all_deplibs=unknown
  7079. hardcode_automatic=no
  7080. module_cmds=
  7081. module_expsym_cmds=
  7082. always_export_symbols=no
  7083. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7084. # include_expsyms should be a list of space-separated symbols to be *always*
  7085. # included in the symbol list
  7086. include_expsyms=
  7087. # exclude_expsyms can be an extended regexp of symbols to exclude
  7088. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7089. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7090. # as well as any symbol that contains `d'.
  7091. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  7092. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7093. # platforms (ab)use it in PIC code, but their linkers get confused if
  7094. # the symbol is explicitly referenced. Since portable code cannot
  7095. # rely on this symbol name, it's probably fine to never include it in
  7096. # preloaded symbol tables.
  7097. extract_expsyms_cmds=
  7098. # Just being paranoid about ensuring that cc_basename is set.
  7099. for cc_temp in $compiler""; do
  7100. case $cc_temp in
  7101. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7102. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7103. \-*) ;;
  7104. *) break;;
  7105. esac
  7106. done
  7107. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7108. case $host_os in
  7109. cygwin* | mingw* | pw32*)
  7110. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7111. # When not using gcc, we currently assume that we are using
  7112. # Microsoft Visual C++.
  7113. if test "$GCC" != yes; then
  7114. with_gnu_ld=no
  7115. fi
  7116. ;;
  7117. interix*)
  7118. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7119. with_gnu_ld=yes
  7120. ;;
  7121. openbsd*)
  7122. with_gnu_ld=no
  7123. ;;
  7124. esac
  7125. ld_shlibs=yes
  7126. if test "$with_gnu_ld" = yes; then
  7127. # If archive_cmds runs LD, not CC, wlarc should be empty
  7128. wlarc='${wl}'
  7129. # Set some defaults for GNU ld with shared library support. These
  7130. # are reset later if shared libraries are not supported. Putting them
  7131. # here allows them to be overridden if necessary.
  7132. runpath_var=LD_RUN_PATH
  7133. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  7134. export_dynamic_flag_spec='${wl}--export-dynamic'
  7135. # ancient GNU ld didn't support --whole-archive et. al.
  7136. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  7137. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7138. else
  7139. whole_archive_flag_spec=
  7140. fi
  7141. supports_anon_versioning=no
  7142. case `$LD -v 2>/dev/null` in
  7143. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7144. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7145. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7146. *\ 2.11.*) ;; # other 2.11 versions
  7147. *) supports_anon_versioning=yes ;;
  7148. esac
  7149. # See if GNU ld supports shared libraries.
  7150. case $host_os in
  7151. aix3* | aix4* | aix5*)
  7152. # On AIX/PPC, the GNU linker is very broken
  7153. if test "$host_cpu" != ia64; then
  7154. ld_shlibs=no
  7155. cat <<EOF 1>&2
  7156. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7157. *** to be unable to reliably create shared libraries on AIX.
  7158. *** Therefore, libtool is disabling shared libraries support. If you
  7159. *** really care for shared libraries, you may want to modify your PATH
  7160. *** so that a non-GNU linker is found, and then restart.
  7161. EOF
  7162. fi
  7163. ;;
  7164. amigaos*)
  7165. 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)'
  7166. hardcode_libdir_flag_spec='-L$libdir'
  7167. hardcode_minus_L=yes
  7168. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  7169. # that the semantics of dynamic libraries on AmigaOS, at least up
  7170. # to version 4, is to share data among multiple programs linked
  7171. # with the same dynamic library. Since this doesn't match the
  7172. # behavior of shared libraries on other platforms, we can't use
  7173. # them.
  7174. ld_shlibs=no
  7175. ;;
  7176. beos*)
  7177. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7178. allow_undefined_flag=unsupported
  7179. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7180. # support --undefined. This deserves some investigation. FIXME
  7181. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7182. else
  7183. ld_shlibs=no
  7184. fi
  7185. ;;
  7186. cygwin* | mingw* | pw32*)
  7187. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7188. # as there is no search path for DLLs.
  7189. hardcode_libdir_flag_spec='-L$libdir'
  7190. allow_undefined_flag=unsupported
  7191. always_export_symbols=no
  7192. enable_shared_with_static_runtimes=yes
  7193. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7194. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  7195. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7196. # If the export-symbols file already is a .def file (1st line
  7197. # is EXPORTS), use it as is; otherwise, prepend...
  7198. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7199. cp $export_symbols $output_objdir/$soname.def;
  7200. else
  7201. echo EXPORTS > $output_objdir/$soname.def;
  7202. cat $export_symbols >> $output_objdir/$soname.def;
  7203. fi~
  7204. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7205. else
  7206. ld_shlibs=no
  7207. fi
  7208. ;;
  7209. interix[3-9]*)
  7210. hardcode_direct=no
  7211. hardcode_shlibpath_var=no
  7212. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7213. export_dynamic_flag_spec='${wl}-E'
  7214. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7215. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7216. # default) and relocated if they conflict, which is a slow very memory
  7217. # consuming and fragmenting process. To avoid this, we pick a random,
  7218. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7219. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7220. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7221. 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'
  7222. ;;
  7223. gnu* | linux* | k*bsd*-gnu)
  7224. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7225. tmp_addflag=
  7226. case $cc_basename,$host_cpu in
  7227. pgcc*) # Portland Group C compiler
  7228. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  7229. tmp_addflag=' $pic_flag'
  7230. ;;
  7231. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7232. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  7233. tmp_addflag=' $pic_flag -Mnomain' ;;
  7234. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7235. tmp_addflag=' -i_dynamic' ;;
  7236. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7237. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7238. ifc* | ifort*) # Intel Fortran compiler
  7239. tmp_addflag=' -nofor_main' ;;
  7240. esac
  7241. case `$CC -V 2>&1 | sed 5q` in
  7242. *Sun\ C*) # Sun C 5.9
  7243. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  7244. tmp_sharedflag='-G' ;;
  7245. *Sun\ F*) # Sun Fortran 8.3
  7246. tmp_sharedflag='-G' ;;
  7247. *)
  7248. tmp_sharedflag='-shared' ;;
  7249. esac
  7250. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7251. if test $supports_anon_versioning = yes; then
  7252. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  7253. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7254. $echo "local: *; };" >> $output_objdir/$libname.ver~
  7255. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7256. fi
  7257. else
  7258. ld_shlibs=no
  7259. fi
  7260. ;;
  7261. netbsd*)
  7262. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7263. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7264. wlarc=
  7265. else
  7266. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7267. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7268. fi
  7269. ;;
  7270. solaris*)
  7271. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  7272. ld_shlibs=no
  7273. cat <<EOF 1>&2
  7274. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7275. *** create shared libraries on Solaris systems. Therefore, libtool
  7276. *** is disabling shared libraries support. We urge you to upgrade GNU
  7277. *** binutils to release 2.9.1 or newer. Another option is to modify
  7278. *** your PATH or compiler configuration so that the native linker is
  7279. *** used, and then restart.
  7280. EOF
  7281. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7282. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7283. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7284. else
  7285. ld_shlibs=no
  7286. fi
  7287. ;;
  7288. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7289. case `$LD -v 2>&1` in
  7290. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7291. ld_shlibs=no
  7292. cat <<_LT_EOF 1>&2
  7293. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7294. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7295. *** is disabling shared libraries support. We urge you to upgrade GNU
  7296. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7297. *** your PATH or compiler configuration so that the native linker is
  7298. *** used, and then restart.
  7299. _LT_EOF
  7300. ;;
  7301. *)
  7302. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7303. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  7304. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  7305. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  7306. else
  7307. ld_shlibs=no
  7308. fi
  7309. ;;
  7310. esac
  7311. ;;
  7312. sunos4*)
  7313. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7314. wlarc=
  7315. hardcode_direct=yes
  7316. hardcode_shlibpath_var=no
  7317. ;;
  7318. *)
  7319. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7320. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7321. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7322. else
  7323. ld_shlibs=no
  7324. fi
  7325. ;;
  7326. esac
  7327. if test "$ld_shlibs" = no; then
  7328. runpath_var=
  7329. hardcode_libdir_flag_spec=
  7330. export_dynamic_flag_spec=
  7331. whole_archive_flag_spec=
  7332. fi
  7333. else
  7334. # PORTME fill in a description of your system's linker (not GNU ld)
  7335. case $host_os in
  7336. aix3*)
  7337. allow_undefined_flag=unsupported
  7338. always_export_symbols=yes
  7339. 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'
  7340. # Note: this linker hardcodes the directories in LIBPATH if there
  7341. # are no directories specified by -L.
  7342. hardcode_minus_L=yes
  7343. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7344. # Neither direct hardcoding nor static linking is supported with a
  7345. # broken collect2.
  7346. hardcode_direct=unsupported
  7347. fi
  7348. ;;
  7349. aix4* | aix5*)
  7350. if test "$host_cpu" = ia64; then
  7351. # On IA64, the linker does run time linking by default, so we don't
  7352. # have to do anything special.
  7353. aix_use_runtimelinking=no
  7354. exp_sym_flag='-Bexport'
  7355. no_entry_flag=""
  7356. else
  7357. # If we're using GNU nm, then we don't want the "-C" option.
  7358. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7359. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7360. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  7361. else
  7362. 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'
  7363. fi
  7364. aix_use_runtimelinking=no
  7365. # Test if we are trying to use run time linking or normal
  7366. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7367. # need to do runtime linking.
  7368. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  7369. for ld_flag in $LDFLAGS; do
  7370. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7371. aix_use_runtimelinking=yes
  7372. break
  7373. fi
  7374. done
  7375. ;;
  7376. esac
  7377. exp_sym_flag='-bexport'
  7378. no_entry_flag='-bnoentry'
  7379. fi
  7380. # When large executables or shared objects are built, AIX ld can
  7381. # have problems creating the table of contents. If linking a library
  7382. # or program results in "error TOC overflow" add -mminimal-toc to
  7383. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7384. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7385. archive_cmds=''
  7386. hardcode_direct=yes
  7387. hardcode_libdir_separator=':'
  7388. link_all_deplibs=yes
  7389. if test "$GCC" = yes; then
  7390. case $host_os in aix4.[012]|aix4.[012].*)
  7391. # We only want to do this on AIX 4.2 and lower, the check
  7392. # below for broken collect2 doesn't work under 4.3+
  7393. collect2name=`${CC} -print-prog-name=collect2`
  7394. if test -f "$collect2name" && \
  7395. strings "$collect2name" | grep resolve_lib_name >/dev/null
  7396. then
  7397. # We have reworked collect2
  7398. :
  7399. else
  7400. # We have old collect2
  7401. hardcode_direct=unsupported
  7402. # It fails to find uninstalled libraries when the uninstalled
  7403. # path is not listed in the libpath. Setting hardcode_minus_L
  7404. # to unsupported forces relinking
  7405. hardcode_minus_L=yes
  7406. hardcode_libdir_flag_spec='-L$libdir'
  7407. hardcode_libdir_separator=
  7408. fi
  7409. ;;
  7410. esac
  7411. shared_flag='-shared'
  7412. if test "$aix_use_runtimelinking" = yes; then
  7413. shared_flag="$shared_flag "'${wl}-G'
  7414. fi
  7415. else
  7416. # not using gcc
  7417. if test "$host_cpu" = ia64; then
  7418. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7419. # chokes on -Wl,-G. The following line is correct:
  7420. shared_flag='-G'
  7421. else
  7422. if test "$aix_use_runtimelinking" = yes; then
  7423. shared_flag='${wl}-G'
  7424. else
  7425. shared_flag='${wl}-bM:SRE'
  7426. fi
  7427. fi
  7428. fi
  7429. # It seems that -bexpall does not export symbols beginning with
  7430. # underscore (_), so it is better to generate a list of symbols to export.
  7431. always_export_symbols=yes
  7432. if test "$aix_use_runtimelinking" = yes; then
  7433. # Warning - without using the other runtime loading flags (-brtl),
  7434. # -berok will link without error, but may produce a broken library.
  7435. allow_undefined_flag='-berok'
  7436. # Determine the default libpath from the value encoded in an empty executable.
  7437. cat >conftest.$ac_ext <<_ACEOF
  7438. /* confdefs.h. */
  7439. _ACEOF
  7440. cat confdefs.h >>conftest.$ac_ext
  7441. cat >>conftest.$ac_ext <<_ACEOF
  7442. /* end confdefs.h. */
  7443. int
  7444. main ()
  7445. {
  7446. ;
  7447. return 0;
  7448. }
  7449. _ACEOF
  7450. rm -f conftest.$ac_objext conftest$ac_exeext
  7451. if { (ac_try="$ac_link"
  7452. case "(($ac_try" in
  7453. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7454. *) ac_try_echo=$ac_try;;
  7455. esac
  7456. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7457. (eval "$ac_link") 2>conftest.er1
  7458. ac_status=$?
  7459. grep -v '^ *+' conftest.er1 >conftest.err
  7460. rm -f conftest.er1
  7461. cat conftest.err >&5
  7462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7463. (exit $ac_status); } && {
  7464. test -z "$ac_c_werror_flag" ||
  7465. test ! -s conftest.err
  7466. } && test -s conftest$ac_exeext &&
  7467. $as_test_x conftest$ac_exeext; then
  7468. lt_aix_libpath_sed='
  7469. /Import File Strings/,/^$/ {
  7470. /^0/ {
  7471. s/^0 *\(.*\)$/\1/
  7472. p
  7473. }
  7474. }'
  7475. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7476. # Check for a 64-bit object if we didn't find anything.
  7477. if test -z "$aix_libpath"; then
  7478. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7479. fi
  7480. else
  7481. echo "$as_me: failed program was:" >&5
  7482. sed 's/^/| /' conftest.$ac_ext >&5
  7483. fi
  7484. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7485. conftest$ac_exeext conftest.$ac_ext
  7486. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7487. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7488. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7489. else
  7490. if test "$host_cpu" = ia64; then
  7491. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7492. allow_undefined_flag="-z nodefs"
  7493. 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"
  7494. else
  7495. # Determine the default libpath from the value encoded in an empty executable.
  7496. cat >conftest.$ac_ext <<_ACEOF
  7497. /* confdefs.h. */
  7498. _ACEOF
  7499. cat confdefs.h >>conftest.$ac_ext
  7500. cat >>conftest.$ac_ext <<_ACEOF
  7501. /* end confdefs.h. */
  7502. int
  7503. main ()
  7504. {
  7505. ;
  7506. return 0;
  7507. }
  7508. _ACEOF
  7509. rm -f conftest.$ac_objext conftest$ac_exeext
  7510. if { (ac_try="$ac_link"
  7511. case "(($ac_try" in
  7512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7513. *) ac_try_echo=$ac_try;;
  7514. esac
  7515. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7516. (eval "$ac_link") 2>conftest.er1
  7517. ac_status=$?
  7518. grep -v '^ *+' conftest.er1 >conftest.err
  7519. rm -f conftest.er1
  7520. cat conftest.err >&5
  7521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7522. (exit $ac_status); } && {
  7523. test -z "$ac_c_werror_flag" ||
  7524. test ! -s conftest.err
  7525. } && test -s conftest$ac_exeext &&
  7526. $as_test_x conftest$ac_exeext; then
  7527. lt_aix_libpath_sed='
  7528. /Import File Strings/,/^$/ {
  7529. /^0/ {
  7530. s/^0 *\(.*\)$/\1/
  7531. p
  7532. }
  7533. }'
  7534. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7535. # Check for a 64-bit object if we didn't find anything.
  7536. if test -z "$aix_libpath"; then
  7537. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7538. fi
  7539. else
  7540. echo "$as_me: failed program was:" >&5
  7541. sed 's/^/| /' conftest.$ac_ext >&5
  7542. fi
  7543. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7544. conftest$ac_exeext conftest.$ac_ext
  7545. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7546. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7547. # Warning - without using the other run time loading flags,
  7548. # -berok will link without error, but may produce a broken library.
  7549. no_undefined_flag=' ${wl}-bernotok'
  7550. allow_undefined_flag=' ${wl}-berok'
  7551. # Exported symbols can be pulled into shared objects from archives
  7552. whole_archive_flag_spec='$convenience'
  7553. archive_cmds_need_lc=yes
  7554. # This is similar to how AIX traditionally builds its shared libraries.
  7555. 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'
  7556. fi
  7557. fi
  7558. ;;
  7559. amigaos*)
  7560. 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)'
  7561. hardcode_libdir_flag_spec='-L$libdir'
  7562. hardcode_minus_L=yes
  7563. # see comment about different semantics on the GNU ld section
  7564. ld_shlibs=no
  7565. ;;
  7566. bsdi[45]*)
  7567. export_dynamic_flag_spec=-rdynamic
  7568. ;;
  7569. cygwin* | mingw* | pw32*)
  7570. # When not using gcc, we currently assume that we are using
  7571. # Microsoft Visual C++.
  7572. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7573. # no search path for DLLs.
  7574. hardcode_libdir_flag_spec=' '
  7575. allow_undefined_flag=unsupported
  7576. # Tell ltmain to make .lib files, not .a files.
  7577. libext=lib
  7578. # Tell ltmain to make .dll files, not .so files.
  7579. shrext_cmds=".dll"
  7580. # FIXME: Setting linknames here is a bad hack.
  7581. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7582. # The linker will automatically build a .lib file if we build a DLL.
  7583. old_archive_From_new_cmds='true'
  7584. # FIXME: Should let the user specify the lib program.
  7585. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7586. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7587. enable_shared_with_static_runtimes=yes
  7588. ;;
  7589. darwin* | rhapsody*)
  7590. case $host_os in
  7591. rhapsody* | darwin1.[012])
  7592. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  7593. ;;
  7594. *) # Darwin 1.3 on
  7595. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  7596. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7597. else
  7598. case ${MACOSX_DEPLOYMENT_TARGET} in
  7599. 10.[012])
  7600. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7601. ;;
  7602. 10.*)
  7603. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  7604. ;;
  7605. esac
  7606. fi
  7607. ;;
  7608. esac
  7609. archive_cmds_need_lc=no
  7610. hardcode_direct=no
  7611. hardcode_automatic=yes
  7612. hardcode_shlibpath_var=unsupported
  7613. whole_archive_flag_spec=''
  7614. link_all_deplibs=yes
  7615. if test "$GCC" = yes ; then
  7616. output_verbose_link_cmd='echo'
  7617. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  7618. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7619. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7620. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7621. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7622. else
  7623. case $cc_basename in
  7624. xlc*)
  7625. output_verbose_link_cmd='echo'
  7626. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  7627. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7628. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7629. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7630. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7631. ;;
  7632. *)
  7633. ld_shlibs=no
  7634. ;;
  7635. esac
  7636. fi
  7637. ;;
  7638. dgux*)
  7639. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7640. hardcode_libdir_flag_spec='-L$libdir'
  7641. hardcode_shlibpath_var=no
  7642. ;;
  7643. freebsd1*)
  7644. ld_shlibs=no
  7645. ;;
  7646. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7647. # support. Future versions do this automatically, but an explicit c++rt0.o
  7648. # does not break anything, and helps significantly (at the cost of a little
  7649. # extra space).
  7650. freebsd2.2*)
  7651. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7652. hardcode_libdir_flag_spec='-R$libdir'
  7653. hardcode_direct=yes
  7654. hardcode_shlibpath_var=no
  7655. ;;
  7656. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7657. freebsd2*)
  7658. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7659. hardcode_direct=yes
  7660. hardcode_minus_L=yes
  7661. hardcode_shlibpath_var=no
  7662. ;;
  7663. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7664. freebsd* | dragonfly*)
  7665. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7666. hardcode_libdir_flag_spec='-R$libdir'
  7667. hardcode_direct=yes
  7668. hardcode_shlibpath_var=no
  7669. ;;
  7670. hpux9*)
  7671. if test "$GCC" = yes; then
  7672. archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7673. else
  7674. 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'
  7675. fi
  7676. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7677. hardcode_libdir_separator=:
  7678. hardcode_direct=yes
  7679. # hardcode_minus_L: Not really in the search PATH,
  7680. # but as the default location of the library.
  7681. hardcode_minus_L=yes
  7682. export_dynamic_flag_spec='${wl}-E'
  7683. ;;
  7684. hpux10*)
  7685. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7686. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7687. else
  7688. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7689. fi
  7690. if test "$with_gnu_ld" = no; then
  7691. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7692. hardcode_libdir_separator=:
  7693. hardcode_direct=yes
  7694. export_dynamic_flag_spec='${wl}-E'
  7695. # hardcode_minus_L: Not really in the search PATH,
  7696. # but as the default location of the library.
  7697. hardcode_minus_L=yes
  7698. fi
  7699. ;;
  7700. hpux11*)
  7701. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7702. case $host_cpu in
  7703. hppa*64*)
  7704. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7705. ;;
  7706. ia64*)
  7707. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7708. ;;
  7709. *)
  7710. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7711. ;;
  7712. esac
  7713. else
  7714. case $host_cpu in
  7715. hppa*64*)
  7716. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7717. ;;
  7718. ia64*)
  7719. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7720. ;;
  7721. *)
  7722. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7723. ;;
  7724. esac
  7725. fi
  7726. if test "$with_gnu_ld" = no; then
  7727. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7728. hardcode_libdir_separator=:
  7729. case $host_cpu in
  7730. hppa*64*|ia64*)
  7731. hardcode_libdir_flag_spec_ld='+b $libdir'
  7732. hardcode_direct=no
  7733. hardcode_shlibpath_var=no
  7734. ;;
  7735. *)
  7736. hardcode_direct=yes
  7737. export_dynamic_flag_spec='${wl}-E'
  7738. # hardcode_minus_L: Not really in the search PATH,
  7739. # but as the default location of the library.
  7740. hardcode_minus_L=yes
  7741. ;;
  7742. esac
  7743. fi
  7744. ;;
  7745. irix5* | irix6* | nonstopux*)
  7746. if test "$GCC" = yes; then
  7747. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7748. else
  7749. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  7750. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7751. fi
  7752. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7753. hardcode_libdir_separator=:
  7754. link_all_deplibs=yes
  7755. ;;
  7756. netbsd*)
  7757. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7758. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7759. else
  7760. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7761. fi
  7762. hardcode_libdir_flag_spec='-R$libdir'
  7763. hardcode_direct=yes
  7764. hardcode_shlibpath_var=no
  7765. ;;
  7766. newsos6)
  7767. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7768. hardcode_direct=yes
  7769. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7770. hardcode_libdir_separator=:
  7771. hardcode_shlibpath_var=no
  7772. ;;
  7773. openbsd*)
  7774. if test -f /usr/libexec/ld.so; then
  7775. hardcode_direct=yes
  7776. hardcode_shlibpath_var=no
  7777. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7778. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7779. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7780. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7781. export_dynamic_flag_spec='${wl}-E'
  7782. else
  7783. case $host_os in
  7784. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7785. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7786. hardcode_libdir_flag_spec='-R$libdir'
  7787. ;;
  7788. *)
  7789. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7790. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7791. ;;
  7792. esac
  7793. fi
  7794. else
  7795. ld_shlibs=no
  7796. fi
  7797. ;;
  7798. os2*)
  7799. hardcode_libdir_flag_spec='-L$libdir'
  7800. hardcode_minus_L=yes
  7801. allow_undefined_flag=unsupported
  7802. 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'
  7803. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7804. ;;
  7805. osf3*)
  7806. if test "$GCC" = yes; then
  7807. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7808. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7809. else
  7810. allow_undefined_flag=' -expect_unresolved \*'
  7811. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  7812. fi
  7813. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7814. hardcode_libdir_separator=:
  7815. ;;
  7816. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7817. if test "$GCC" = yes; then
  7818. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7819. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7820. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7821. else
  7822. allow_undefined_flag=' -expect_unresolved \*'
  7823. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  7824. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7825. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  7826. # Both c and cxx compiler support -rpath directly
  7827. hardcode_libdir_flag_spec='-rpath $libdir'
  7828. fi
  7829. hardcode_libdir_separator=:
  7830. ;;
  7831. solaris*)
  7832. no_undefined_flag=' -z text'
  7833. if test "$GCC" = yes; then
  7834. wlarc='${wl}'
  7835. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7836. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7837. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7838. else
  7839. wlarc=''
  7840. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7841. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7842. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7843. fi
  7844. hardcode_libdir_flag_spec='-R$libdir'
  7845. hardcode_shlibpath_var=no
  7846. case $host_os in
  7847. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7848. *)
  7849. # The compiler driver will combine and reorder linker options,
  7850. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7851. # but is careful enough not to reorder.
  7852. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7853. if test "$GCC" = yes; then
  7854. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7855. else
  7856. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7857. fi
  7858. ;;
  7859. esac
  7860. link_all_deplibs=yes
  7861. ;;
  7862. sunos4*)
  7863. if test "x$host_vendor" = xsequent; then
  7864. # Use $CC to link under sequent, because it throws in some extra .o
  7865. # files that make .init and .fini sections work.
  7866. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7867. else
  7868. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7869. fi
  7870. hardcode_libdir_flag_spec='-L$libdir'
  7871. hardcode_direct=yes
  7872. hardcode_minus_L=yes
  7873. hardcode_shlibpath_var=no
  7874. ;;
  7875. sysv4)
  7876. case $host_vendor in
  7877. sni)
  7878. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7879. hardcode_direct=yes # is this really true???
  7880. ;;
  7881. siemens)
  7882. ## LD is ld it makes a PLAMLIB
  7883. ## CC just makes a GrossModule.
  7884. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7885. reload_cmds='$CC -r -o $output$reload_objs'
  7886. hardcode_direct=no
  7887. ;;
  7888. motorola)
  7889. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7890. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7891. ;;
  7892. esac
  7893. runpath_var='LD_RUN_PATH'
  7894. hardcode_shlibpath_var=no
  7895. ;;
  7896. sysv4.3*)
  7897. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7898. hardcode_shlibpath_var=no
  7899. export_dynamic_flag_spec='-Bexport'
  7900. ;;
  7901. sysv4*MP*)
  7902. if test -d /usr/nec; then
  7903. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7904. hardcode_shlibpath_var=no
  7905. runpath_var=LD_RUN_PATH
  7906. hardcode_runpath_var=yes
  7907. ld_shlibs=yes
  7908. fi
  7909. ;;
  7910. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7911. no_undefined_flag='${wl}-z,text'
  7912. archive_cmds_need_lc=no
  7913. hardcode_shlibpath_var=no
  7914. runpath_var='LD_RUN_PATH'
  7915. if test "$GCC" = yes; then
  7916. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7917. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7918. else
  7919. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7920. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7921. fi
  7922. ;;
  7923. sysv5* | sco3.2v5* | sco5v6*)
  7924. # Note: We can NOT use -z defs as we might desire, because we do not
  7925. # link with -lc, and that would cause any symbols used from libc to
  7926. # always be unresolved, which means just about no library would
  7927. # ever link correctly. If we're not using GNU ld we use -z text
  7928. # though, which does catch some bad symbols but isn't as heavy-handed
  7929. # as -z defs.
  7930. no_undefined_flag='${wl}-z,text'
  7931. allow_undefined_flag='${wl}-z,nodefs'
  7932. archive_cmds_need_lc=no
  7933. hardcode_shlibpath_var=no
  7934. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  7935. hardcode_libdir_separator=':'
  7936. link_all_deplibs=yes
  7937. export_dynamic_flag_spec='${wl}-Bexport'
  7938. runpath_var='LD_RUN_PATH'
  7939. if test "$GCC" = yes; then
  7940. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7941. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7942. else
  7943. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7944. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7945. fi
  7946. ;;
  7947. uts4*)
  7948. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7949. hardcode_libdir_flag_spec='-L$libdir'
  7950. hardcode_shlibpath_var=no
  7951. ;;
  7952. *)
  7953. ld_shlibs=no
  7954. ;;
  7955. esac
  7956. fi
  7957. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7958. echo "${ECHO_T}$ld_shlibs" >&6; }
  7959. test "$ld_shlibs" = no && can_build_shared=no
  7960. #
  7961. # Do we need to explicitly link libc?
  7962. #
  7963. case "x$archive_cmds_need_lc" in
  7964. x|xyes)
  7965. # Assume -lc should be added
  7966. archive_cmds_need_lc=yes
  7967. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7968. case $archive_cmds in
  7969. *'~'*)
  7970. # FIXME: we may have to deal with multi-command sequences.
  7971. ;;
  7972. '$CC '*)
  7973. # Test whether the compiler implicitly links with -lc since on some
  7974. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7975. # to ld, don't add -lc before -lgcc.
  7976. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7977. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  7978. $rm conftest*
  7979. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7980. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7981. (eval $ac_compile) 2>&5
  7982. ac_status=$?
  7983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7984. (exit $ac_status); } 2>conftest.err; then
  7985. soname=conftest
  7986. lib=conftest
  7987. libobjs=conftest.$ac_objext
  7988. deplibs=
  7989. wl=$lt_prog_compiler_wl
  7990. pic_flag=$lt_prog_compiler_pic
  7991. compiler_flags=-v
  7992. linker_flags=-v
  7993. verstring=
  7994. output_objdir=.
  7995. libname=conftest
  7996. lt_save_allow_undefined_flag=$allow_undefined_flag
  7997. allow_undefined_flag=
  7998. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7999. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8000. ac_status=$?
  8001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8002. (exit $ac_status); }
  8003. then
  8004. archive_cmds_need_lc=no
  8005. else
  8006. archive_cmds_need_lc=yes
  8007. fi
  8008. allow_undefined_flag=$lt_save_allow_undefined_flag
  8009. else
  8010. cat conftest.err 1>&5
  8011. fi
  8012. $rm conftest*
  8013. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  8014. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  8015. ;;
  8016. esac
  8017. fi
  8018. ;;
  8019. esac
  8020. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  8021. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  8022. library_names_spec=
  8023. libname_spec='lib$name'
  8024. soname_spec=
  8025. shrext_cmds=".so"
  8026. postinstall_cmds=
  8027. postuninstall_cmds=
  8028. finish_cmds=
  8029. finish_eval=
  8030. shlibpath_var=
  8031. shlibpath_overrides_runpath=unknown
  8032. version_type=none
  8033. dynamic_linker="$host_os ld.so"
  8034. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8035. if test "$GCC" = yes; then
  8036. case $host_os in
  8037. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8038. *) lt_awk_arg="/^libraries:/" ;;
  8039. esac
  8040. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8041. if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  8042. # if the path contains ";" then we assume it to be the separator
  8043. # otherwise default to the standard path separator (i.e. ":") - it is
  8044. # assumed that no part of a normal pathname contains ";" but that should
  8045. # okay in the real world where ";" in dirpaths is itself problematic.
  8046. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8047. else
  8048. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8049. fi
  8050. # Ok, now we have the path, separated by spaces, we can step through it
  8051. # and add multilib dir if necessary.
  8052. lt_tmp_lt_search_path_spec=
  8053. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8054. for lt_sys_path in $lt_search_path_spec; do
  8055. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8056. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8057. else
  8058. test -d "$lt_sys_path" && \
  8059. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8060. fi
  8061. done
  8062. lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  8063. BEGIN {RS=" "; FS="/|\n";} {
  8064. lt_foo="";
  8065. lt_count=0;
  8066. for (lt_i = NF; lt_i > 0; lt_i--) {
  8067. if ($lt_i != "" && $lt_i != ".") {
  8068. if ($lt_i == "..") {
  8069. lt_count++;
  8070. } else {
  8071. if (lt_count == 0) {
  8072. lt_foo="/" $lt_i lt_foo;
  8073. } else {
  8074. lt_count--;
  8075. }
  8076. }
  8077. }
  8078. }
  8079. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8080. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8081. }'`
  8082. sys_lib_search_path_spec=`echo $lt_search_path_spec`
  8083. else
  8084. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8085. fi
  8086. need_lib_prefix=unknown
  8087. hardcode_into_libs=no
  8088. # when you set need_version to no, make sure it does not cause -set_version
  8089. # flags to be left without arguments
  8090. need_version=unknown
  8091. case $host_os in
  8092. aix3*)
  8093. version_type=linux
  8094. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8095. shlibpath_var=LIBPATH
  8096. # AIX 3 has no versioning support, so we append a major version to the name.
  8097. soname_spec='${libname}${release}${shared_ext}$major'
  8098. ;;
  8099. aix4* | aix5*)
  8100. version_type=linux
  8101. need_lib_prefix=no
  8102. need_version=no
  8103. hardcode_into_libs=yes
  8104. if test "$host_cpu" = ia64; then
  8105. # AIX 5 supports IA64
  8106. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8107. shlibpath_var=LD_LIBRARY_PATH
  8108. else
  8109. # With GCC up to 2.95.x, collect2 would create an import file
  8110. # for dependence libraries. The import file would start with
  8111. # the line `#! .'. This would cause the generated library to
  8112. # depend on `.', always an invalid library. This was fixed in
  8113. # development snapshots of GCC prior to 3.0.
  8114. case $host_os in
  8115. aix4 | aix4.[01] | aix4.[01].*)
  8116. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8117. echo ' yes '
  8118. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  8119. :
  8120. else
  8121. can_build_shared=no
  8122. fi
  8123. ;;
  8124. esac
  8125. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8126. # soname into executable. Probably we can add versioning support to
  8127. # collect2, so additional links can be useful in future.
  8128. if test "$aix_use_runtimelinking" = yes; then
  8129. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8130. # instead of lib<name>.a to let people know that these are not
  8131. # typical AIX shared libraries.
  8132. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8133. else
  8134. # We preserve .a as extension for shared libraries through AIX4.2
  8135. # and later when we are not doing run time linking.
  8136. library_names_spec='${libname}${release}.a $libname.a'
  8137. soname_spec='${libname}${release}${shared_ext}$major'
  8138. fi
  8139. shlibpath_var=LIBPATH
  8140. fi
  8141. ;;
  8142. amigaos*)
  8143. library_names_spec='$libname.ixlibrary $libname.a'
  8144. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8145. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8146. ;;
  8147. beos*)
  8148. library_names_spec='${libname}${shared_ext}'
  8149. dynamic_linker="$host_os ld.so"
  8150. shlibpath_var=LIBRARY_PATH
  8151. ;;
  8152. bsdi[45]*)
  8153. version_type=linux
  8154. need_version=no
  8155. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8156. soname_spec='${libname}${release}${shared_ext}$major'
  8157. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8158. shlibpath_var=LD_LIBRARY_PATH
  8159. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8160. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8161. # the default ld.so.conf also contains /usr/contrib/lib and
  8162. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8163. # libtool to hard-code these into programs
  8164. ;;
  8165. cygwin* | mingw* | pw32*)
  8166. version_type=windows
  8167. shrext_cmds=".dll"
  8168. need_version=no
  8169. need_lib_prefix=no
  8170. case $GCC,$host_os in
  8171. yes,cygwin* | yes,mingw* | yes,pw32*)
  8172. library_names_spec='$libname.dll.a'
  8173. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8174. postinstall_cmds='base_file=`basename \${file}`~
  8175. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  8176. dldir=$destdir/`dirname \$dlpath`~
  8177. test -d \$dldir || mkdir -p \$dldir~
  8178. $install_prog $dir/$dlname \$dldir/$dlname~
  8179. chmod a+x \$dldir/$dlname'
  8180. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8181. dlpath=$dir/\$dldll~
  8182. $rm \$dlpath'
  8183. shlibpath_overrides_runpath=yes
  8184. case $host_os in
  8185. cygwin*)
  8186. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8187. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8188. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8189. ;;
  8190. mingw*)
  8191. # MinGW DLLs use traditional 'lib' prefix
  8192. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8193. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8194. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  8195. # It is most probably a Windows format PATH printed by
  8196. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8197. # path with ; separators, and with drive letters. We can handle the
  8198. # drive letters (cygwin fileutils understands them), so leave them,
  8199. # especially as we might pass files found there to a mingw objdump,
  8200. # which wouldn't understand a cygwinified path. Ahh.
  8201. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8202. else
  8203. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8204. fi
  8205. ;;
  8206. pw32*)
  8207. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8208. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8209. ;;
  8210. esac
  8211. ;;
  8212. *)
  8213. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8214. ;;
  8215. esac
  8216. dynamic_linker='Win32 ld.exe'
  8217. # FIXME: first we should search . and the directory the executable is in
  8218. shlibpath_var=PATH
  8219. ;;
  8220. darwin* | rhapsody*)
  8221. dynamic_linker="$host_os dyld"
  8222. version_type=darwin
  8223. need_lib_prefix=no
  8224. need_version=no
  8225. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8226. soname_spec='${libname}${release}${major}$shared_ext'
  8227. shlibpath_overrides_runpath=yes
  8228. shlibpath_var=DYLD_LIBRARY_PATH
  8229. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8230. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8231. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8232. ;;
  8233. dgux*)
  8234. version_type=linux
  8235. need_lib_prefix=no
  8236. need_version=no
  8237. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8238. soname_spec='${libname}${release}${shared_ext}$major'
  8239. shlibpath_var=LD_LIBRARY_PATH
  8240. ;;
  8241. freebsd1*)
  8242. dynamic_linker=no
  8243. ;;
  8244. freebsd* | dragonfly*)
  8245. # DragonFly does not have aout. When/if they implement a new
  8246. # versioning mechanism, adjust this.
  8247. if test -x /usr/bin/objformat; then
  8248. objformat=`/usr/bin/objformat`
  8249. else
  8250. case $host_os in
  8251. freebsd[123]*) objformat=aout ;;
  8252. *) objformat=elf ;;
  8253. esac
  8254. fi
  8255. version_type=freebsd-$objformat
  8256. case $version_type in
  8257. freebsd-elf*)
  8258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8259. need_version=no
  8260. need_lib_prefix=no
  8261. ;;
  8262. freebsd-*)
  8263. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8264. need_version=yes
  8265. ;;
  8266. esac
  8267. shlibpath_var=LD_LIBRARY_PATH
  8268. case $host_os in
  8269. freebsd2*)
  8270. shlibpath_overrides_runpath=yes
  8271. ;;
  8272. freebsd3.[01]* | freebsdelf3.[01]*)
  8273. shlibpath_overrides_runpath=yes
  8274. hardcode_into_libs=yes
  8275. ;;
  8276. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8277. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8278. shlibpath_overrides_runpath=no
  8279. hardcode_into_libs=yes
  8280. ;;
  8281. *) # from 4.6 on, and DragonFly
  8282. shlibpath_overrides_runpath=yes
  8283. hardcode_into_libs=yes
  8284. ;;
  8285. esac
  8286. ;;
  8287. gnu*)
  8288. version_type=linux
  8289. need_lib_prefix=no
  8290. need_version=no
  8291. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8292. soname_spec='${libname}${release}${shared_ext}$major'
  8293. shlibpath_var=LD_LIBRARY_PATH
  8294. hardcode_into_libs=yes
  8295. ;;
  8296. hpux9* | hpux10* | hpux11*)
  8297. # Give a soname corresponding to the major version so that dld.sl refuses to
  8298. # link against other versions.
  8299. version_type=sunos
  8300. need_lib_prefix=no
  8301. need_version=no
  8302. case $host_cpu in
  8303. ia64*)
  8304. shrext_cmds='.so'
  8305. hardcode_into_libs=yes
  8306. dynamic_linker="$host_os dld.so"
  8307. shlibpath_var=LD_LIBRARY_PATH
  8308. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8309. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8310. soname_spec='${libname}${release}${shared_ext}$major'
  8311. if test "X$HPUX_IA64_MODE" = X32; then
  8312. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8313. else
  8314. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8315. fi
  8316. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8317. ;;
  8318. hppa*64*)
  8319. shrext_cmds='.sl'
  8320. hardcode_into_libs=yes
  8321. dynamic_linker="$host_os dld.sl"
  8322. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8323. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8324. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8325. soname_spec='${libname}${release}${shared_ext}$major'
  8326. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8327. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8328. ;;
  8329. *)
  8330. shrext_cmds='.sl'
  8331. dynamic_linker="$host_os dld.sl"
  8332. shlibpath_var=SHLIB_PATH
  8333. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8334. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8335. soname_spec='${libname}${release}${shared_ext}$major'
  8336. ;;
  8337. esac
  8338. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8339. postinstall_cmds='chmod 555 $lib'
  8340. ;;
  8341. interix[3-9]*)
  8342. version_type=linux
  8343. need_lib_prefix=no
  8344. need_version=no
  8345. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8346. soname_spec='${libname}${release}${shared_ext}$major'
  8347. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8348. shlibpath_var=LD_LIBRARY_PATH
  8349. shlibpath_overrides_runpath=no
  8350. hardcode_into_libs=yes
  8351. ;;
  8352. irix5* | irix6* | nonstopux*)
  8353. case $host_os in
  8354. nonstopux*) version_type=nonstopux ;;
  8355. *)
  8356. if test "$lt_cv_prog_gnu_ld" = yes; then
  8357. version_type=linux
  8358. else
  8359. version_type=irix
  8360. fi ;;
  8361. esac
  8362. need_lib_prefix=no
  8363. need_version=no
  8364. soname_spec='${libname}${release}${shared_ext}$major'
  8365. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8366. case $host_os in
  8367. irix5* | nonstopux*)
  8368. libsuff= shlibsuff=
  8369. ;;
  8370. *)
  8371. case $LD in # libtool.m4 will add one of these switches to LD
  8372. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8373. libsuff= shlibsuff= libmagic=32-bit;;
  8374. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8375. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8376. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8377. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8378. *) libsuff= shlibsuff= libmagic=never-match;;
  8379. esac
  8380. ;;
  8381. esac
  8382. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8383. shlibpath_overrides_runpath=no
  8384. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8385. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8386. hardcode_into_libs=yes
  8387. ;;
  8388. # No shared lib support for Linux oldld, aout, or coff.
  8389. linux*oldld* | linux*aout* | linux*coff*)
  8390. dynamic_linker=no
  8391. ;;
  8392. # This must be Linux ELF.
  8393. linux* | k*bsd*-gnu)
  8394. version_type=linux
  8395. need_lib_prefix=no
  8396. need_version=no
  8397. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8398. soname_spec='${libname}${release}${shared_ext}$major'
  8399. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8400. shlibpath_var=LD_LIBRARY_PATH
  8401. shlibpath_overrides_runpath=no
  8402. # This implies no fast_install, which is unacceptable.
  8403. # Some rework will be needed to allow for fast_install
  8404. # before this can be enabled.
  8405. hardcode_into_libs=yes
  8406. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8407. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8408. # Append ld.so.conf contents to the search path
  8409. if test -f /etc/ld.so.conf; then
  8410. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  8411. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  8412. fi
  8413. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8414. # powerpc, because MkLinux only supported shared libraries with the
  8415. # GNU dynamic linker. Since this was broken with cross compilers,
  8416. # most powerpc-linux boxes support dynamic linking these days and
  8417. # people can always --disable-shared, the test was removed, and we
  8418. # assume the GNU/Linux dynamic linker is in use.
  8419. dynamic_linker='GNU/Linux ld.so'
  8420. ;;
  8421. netbsd*)
  8422. version_type=sunos
  8423. need_lib_prefix=no
  8424. need_version=no
  8425. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8426. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8427. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8428. dynamic_linker='NetBSD (a.out) ld.so'
  8429. else
  8430. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8431. soname_spec='${libname}${release}${shared_ext}$major'
  8432. dynamic_linker='NetBSD ld.elf_so'
  8433. fi
  8434. shlibpath_var=LD_LIBRARY_PATH
  8435. shlibpath_overrides_runpath=yes
  8436. hardcode_into_libs=yes
  8437. ;;
  8438. newsos6)
  8439. version_type=linux
  8440. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8441. shlibpath_var=LD_LIBRARY_PATH
  8442. shlibpath_overrides_runpath=yes
  8443. ;;
  8444. nto-qnx*)
  8445. version_type=linux
  8446. need_lib_prefix=no
  8447. need_version=no
  8448. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8449. soname_spec='${libname}${release}${shared_ext}$major'
  8450. shlibpath_var=LD_LIBRARY_PATH
  8451. shlibpath_overrides_runpath=yes
  8452. ;;
  8453. openbsd*)
  8454. version_type=sunos
  8455. sys_lib_dlsearch_path_spec="/usr/lib"
  8456. need_lib_prefix=no
  8457. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8458. case $host_os in
  8459. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8460. *) need_version=no ;;
  8461. esac
  8462. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8463. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8464. shlibpath_var=LD_LIBRARY_PATH
  8465. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8466. case $host_os in
  8467. openbsd2.[89] | openbsd2.[89].*)
  8468. shlibpath_overrides_runpath=no
  8469. ;;
  8470. *)
  8471. shlibpath_overrides_runpath=yes
  8472. ;;
  8473. esac
  8474. else
  8475. shlibpath_overrides_runpath=yes
  8476. fi
  8477. ;;
  8478. os2*)
  8479. libname_spec='$name'
  8480. shrext_cmds=".dll"
  8481. need_lib_prefix=no
  8482. library_names_spec='$libname${shared_ext} $libname.a'
  8483. dynamic_linker='OS/2 ld.exe'
  8484. shlibpath_var=LIBPATH
  8485. ;;
  8486. osf3* | osf4* | osf5*)
  8487. version_type=osf
  8488. need_lib_prefix=no
  8489. need_version=no
  8490. soname_spec='${libname}${release}${shared_ext}$major'
  8491. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8492. shlibpath_var=LD_LIBRARY_PATH
  8493. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8494. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8495. ;;
  8496. rdos*)
  8497. dynamic_linker=no
  8498. ;;
  8499. solaris*)
  8500. version_type=linux
  8501. need_lib_prefix=no
  8502. need_version=no
  8503. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8504. soname_spec='${libname}${release}${shared_ext}$major'
  8505. shlibpath_var=LD_LIBRARY_PATH
  8506. shlibpath_overrides_runpath=yes
  8507. hardcode_into_libs=yes
  8508. # ldd complains unless libraries are executable
  8509. postinstall_cmds='chmod +x $lib'
  8510. ;;
  8511. sunos4*)
  8512. version_type=sunos
  8513. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8514. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8515. shlibpath_var=LD_LIBRARY_PATH
  8516. shlibpath_overrides_runpath=yes
  8517. if test "$with_gnu_ld" = yes; then
  8518. need_lib_prefix=no
  8519. fi
  8520. need_version=yes
  8521. ;;
  8522. sysv4 | sysv4.3*)
  8523. version_type=linux
  8524. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8525. soname_spec='${libname}${release}${shared_ext}$major'
  8526. shlibpath_var=LD_LIBRARY_PATH
  8527. case $host_vendor in
  8528. sni)
  8529. shlibpath_overrides_runpath=no
  8530. need_lib_prefix=no
  8531. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8532. runpath_var=LD_RUN_PATH
  8533. ;;
  8534. siemens)
  8535. need_lib_prefix=no
  8536. ;;
  8537. motorola)
  8538. need_lib_prefix=no
  8539. need_version=no
  8540. shlibpath_overrides_runpath=no
  8541. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8542. ;;
  8543. esac
  8544. ;;
  8545. sysv4*MP*)
  8546. if test -d /usr/nec ;then
  8547. version_type=linux
  8548. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8549. soname_spec='$libname${shared_ext}.$major'
  8550. shlibpath_var=LD_LIBRARY_PATH
  8551. fi
  8552. ;;
  8553. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8554. version_type=freebsd-elf
  8555. need_lib_prefix=no
  8556. need_version=no
  8557. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8558. soname_spec='${libname}${release}${shared_ext}$major'
  8559. shlibpath_var=LD_LIBRARY_PATH
  8560. hardcode_into_libs=yes
  8561. if test "$with_gnu_ld" = yes; then
  8562. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8563. shlibpath_overrides_runpath=no
  8564. else
  8565. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8566. shlibpath_overrides_runpath=yes
  8567. case $host_os in
  8568. sco3.2v5*)
  8569. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8570. ;;
  8571. esac
  8572. fi
  8573. sys_lib_dlsearch_path_spec='/usr/lib'
  8574. ;;
  8575. uts4*)
  8576. version_type=linux
  8577. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8578. soname_spec='${libname}${release}${shared_ext}$major'
  8579. shlibpath_var=LD_LIBRARY_PATH
  8580. ;;
  8581. *)
  8582. dynamic_linker=no
  8583. ;;
  8584. esac
  8585. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8586. echo "${ECHO_T}$dynamic_linker" >&6; }
  8587. test "$dynamic_linker" = no && can_build_shared=no
  8588. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8589. if test "$GCC" = yes; then
  8590. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8591. fi
  8592. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8593. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  8594. hardcode_action=
  8595. if test -n "$hardcode_libdir_flag_spec" || \
  8596. test -n "$runpath_var" || \
  8597. test "X$hardcode_automatic" = "Xyes" ; then
  8598. # We can hardcode non-existent directories.
  8599. if test "$hardcode_direct" != no &&
  8600. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8601. # have to relink, otherwise we might link with an installed library
  8602. # when we should be linking with a yet-to-be-installed one
  8603. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8604. test "$hardcode_minus_L" != no; then
  8605. # Linking always hardcodes the temporary library directory.
  8606. hardcode_action=relink
  8607. else
  8608. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8609. hardcode_action=immediate
  8610. fi
  8611. else
  8612. # We cannot hardcode anything, or else we can only hardcode existing
  8613. # directories.
  8614. hardcode_action=unsupported
  8615. fi
  8616. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8617. echo "${ECHO_T}$hardcode_action" >&6; }
  8618. if test "$hardcode_action" = relink; then
  8619. # Fast installation is not supported
  8620. enable_fast_install=no
  8621. elif test "$shlibpath_overrides_runpath" = yes ||
  8622. test "$enable_shared" = no; then
  8623. # Fast installation is not necessary
  8624. enable_fast_install=needless
  8625. fi
  8626. striplib=
  8627. old_striplib=
  8628. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8629. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  8630. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  8631. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8632. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8633. { echo "$as_me:$LINENO: result: yes" >&5
  8634. echo "${ECHO_T}yes" >&6; }
  8635. else
  8636. # FIXME - insert some real tests, host_os isn't really good enough
  8637. case $host_os in
  8638. darwin*)
  8639. if test -n "$STRIP" ; then
  8640. striplib="$STRIP -x"
  8641. old_striplib="$STRIP -S"
  8642. { echo "$as_me:$LINENO: result: yes" >&5
  8643. echo "${ECHO_T}yes" >&6; }
  8644. else
  8645. { echo "$as_me:$LINENO: result: no" >&5
  8646. echo "${ECHO_T}no" >&6; }
  8647. fi
  8648. ;;
  8649. *)
  8650. { echo "$as_me:$LINENO: result: no" >&5
  8651. echo "${ECHO_T}no" >&6; }
  8652. ;;
  8653. esac
  8654. fi
  8655. if test "x$enable_dlopen" != xyes; then
  8656. enable_dlopen=unknown
  8657. enable_dlopen_self=unknown
  8658. enable_dlopen_self_static=unknown
  8659. else
  8660. lt_cv_dlopen=no
  8661. lt_cv_dlopen_libs=
  8662. case $host_os in
  8663. beos*)
  8664. lt_cv_dlopen="load_add_on"
  8665. lt_cv_dlopen_libs=
  8666. lt_cv_dlopen_self=yes
  8667. ;;
  8668. mingw* | pw32*)
  8669. lt_cv_dlopen="LoadLibrary"
  8670. lt_cv_dlopen_libs=
  8671. ;;
  8672. cygwin*)
  8673. lt_cv_dlopen="dlopen"
  8674. lt_cv_dlopen_libs=
  8675. ;;
  8676. darwin*)
  8677. # if libdl is installed we need to link against it
  8678. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8679. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8680. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8681. echo $ECHO_N "(cached) $ECHO_C" >&6
  8682. else
  8683. ac_check_lib_save_LIBS=$LIBS
  8684. LIBS="-ldl $LIBS"
  8685. cat >conftest.$ac_ext <<_ACEOF
  8686. /* confdefs.h. */
  8687. _ACEOF
  8688. cat confdefs.h >>conftest.$ac_ext
  8689. cat >>conftest.$ac_ext <<_ACEOF
  8690. /* end confdefs.h. */
  8691. /* Override any GCC internal prototype to avoid an error.
  8692. Use char because int might match the return type of a GCC
  8693. builtin and then its argument prototype would still apply. */
  8694. #ifdef __cplusplus
  8695. extern "C"
  8696. #endif
  8697. char dlopen ();
  8698. int
  8699. main ()
  8700. {
  8701. return dlopen ();
  8702. ;
  8703. return 0;
  8704. }
  8705. _ACEOF
  8706. rm -f conftest.$ac_objext conftest$ac_exeext
  8707. if { (ac_try="$ac_link"
  8708. case "(($ac_try" in
  8709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8710. *) ac_try_echo=$ac_try;;
  8711. esac
  8712. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8713. (eval "$ac_link") 2>conftest.er1
  8714. ac_status=$?
  8715. grep -v '^ *+' conftest.er1 >conftest.err
  8716. rm -f conftest.er1
  8717. cat conftest.err >&5
  8718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8719. (exit $ac_status); } && {
  8720. test -z "$ac_c_werror_flag" ||
  8721. test ! -s conftest.err
  8722. } && test -s conftest$ac_exeext &&
  8723. $as_test_x conftest$ac_exeext; then
  8724. ac_cv_lib_dl_dlopen=yes
  8725. else
  8726. echo "$as_me: failed program was:" >&5
  8727. sed 's/^/| /' conftest.$ac_ext >&5
  8728. ac_cv_lib_dl_dlopen=no
  8729. fi
  8730. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8731. conftest$ac_exeext conftest.$ac_ext
  8732. LIBS=$ac_check_lib_save_LIBS
  8733. fi
  8734. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8735. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8736. if test $ac_cv_lib_dl_dlopen = yes; then
  8737. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8738. else
  8739. lt_cv_dlopen="dyld"
  8740. lt_cv_dlopen_libs=
  8741. lt_cv_dlopen_self=yes
  8742. fi
  8743. ;;
  8744. *)
  8745. { echo "$as_me:$LINENO: checking for shl_load" >&5
  8746. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  8747. if test "${ac_cv_func_shl_load+set}" = set; then
  8748. echo $ECHO_N "(cached) $ECHO_C" >&6
  8749. else
  8750. cat >conftest.$ac_ext <<_ACEOF
  8751. /* confdefs.h. */
  8752. _ACEOF
  8753. cat confdefs.h >>conftest.$ac_ext
  8754. cat >>conftest.$ac_ext <<_ACEOF
  8755. /* end confdefs.h. */
  8756. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8757. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8758. #define shl_load innocuous_shl_load
  8759. /* System header to define __stub macros and hopefully few prototypes,
  8760. which can conflict with char shl_load (); below.
  8761. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8762. <limits.h> exists even on freestanding compilers. */
  8763. #ifdef __STDC__
  8764. # include <limits.h>
  8765. #else
  8766. # include <assert.h>
  8767. #endif
  8768. #undef shl_load
  8769. /* Override any GCC internal prototype to avoid an error.
  8770. Use char because int might match the return type of a GCC
  8771. builtin and then its argument prototype would still apply. */
  8772. #ifdef __cplusplus
  8773. extern "C"
  8774. #endif
  8775. char shl_load ();
  8776. /* The GNU C library defines this for functions which it implements
  8777. to always fail with ENOSYS. Some functions are actually named
  8778. something starting with __ and the normal name is an alias. */
  8779. #if defined __stub_shl_load || defined __stub___shl_load
  8780. choke me
  8781. #endif
  8782. int
  8783. main ()
  8784. {
  8785. return shl_load ();
  8786. ;
  8787. return 0;
  8788. }
  8789. _ACEOF
  8790. rm -f conftest.$ac_objext conftest$ac_exeext
  8791. if { (ac_try="$ac_link"
  8792. case "(($ac_try" in
  8793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8794. *) ac_try_echo=$ac_try;;
  8795. esac
  8796. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8797. (eval "$ac_link") 2>conftest.er1
  8798. ac_status=$?
  8799. grep -v '^ *+' conftest.er1 >conftest.err
  8800. rm -f conftest.er1
  8801. cat conftest.err >&5
  8802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8803. (exit $ac_status); } && {
  8804. test -z "$ac_c_werror_flag" ||
  8805. test ! -s conftest.err
  8806. } && test -s conftest$ac_exeext &&
  8807. $as_test_x conftest$ac_exeext; then
  8808. ac_cv_func_shl_load=yes
  8809. else
  8810. echo "$as_me: failed program was:" >&5
  8811. sed 's/^/| /' conftest.$ac_ext >&5
  8812. ac_cv_func_shl_load=no
  8813. fi
  8814. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8815. conftest$ac_exeext conftest.$ac_ext
  8816. fi
  8817. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8818. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  8819. if test $ac_cv_func_shl_load = yes; then
  8820. lt_cv_dlopen="shl_load"
  8821. else
  8822. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8823. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  8824. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8825. echo $ECHO_N "(cached) $ECHO_C" >&6
  8826. else
  8827. ac_check_lib_save_LIBS=$LIBS
  8828. LIBS="-ldld $LIBS"
  8829. cat >conftest.$ac_ext <<_ACEOF
  8830. /* confdefs.h. */
  8831. _ACEOF
  8832. cat confdefs.h >>conftest.$ac_ext
  8833. cat >>conftest.$ac_ext <<_ACEOF
  8834. /* end confdefs.h. */
  8835. /* Override any GCC internal prototype to avoid an error.
  8836. Use char because int might match the return type of a GCC
  8837. builtin and then its argument prototype would still apply. */
  8838. #ifdef __cplusplus
  8839. extern "C"
  8840. #endif
  8841. char shl_load ();
  8842. int
  8843. main ()
  8844. {
  8845. return shl_load ();
  8846. ;
  8847. return 0;
  8848. }
  8849. _ACEOF
  8850. rm -f conftest.$ac_objext conftest$ac_exeext
  8851. if { (ac_try="$ac_link"
  8852. case "(($ac_try" in
  8853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8854. *) ac_try_echo=$ac_try;;
  8855. esac
  8856. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8857. (eval "$ac_link") 2>conftest.er1
  8858. ac_status=$?
  8859. grep -v '^ *+' conftest.er1 >conftest.err
  8860. rm -f conftest.er1
  8861. cat conftest.err >&5
  8862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8863. (exit $ac_status); } && {
  8864. test -z "$ac_c_werror_flag" ||
  8865. test ! -s conftest.err
  8866. } && test -s conftest$ac_exeext &&
  8867. $as_test_x conftest$ac_exeext; then
  8868. ac_cv_lib_dld_shl_load=yes
  8869. else
  8870. echo "$as_me: failed program was:" >&5
  8871. sed 's/^/| /' conftest.$ac_ext >&5
  8872. ac_cv_lib_dld_shl_load=no
  8873. fi
  8874. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8875. conftest$ac_exeext conftest.$ac_ext
  8876. LIBS=$ac_check_lib_save_LIBS
  8877. fi
  8878. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8879. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  8880. if test $ac_cv_lib_dld_shl_load = yes; then
  8881. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8882. else
  8883. { echo "$as_me:$LINENO: checking for dlopen" >&5
  8884. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  8885. if test "${ac_cv_func_dlopen+set}" = set; then
  8886. echo $ECHO_N "(cached) $ECHO_C" >&6
  8887. else
  8888. cat >conftest.$ac_ext <<_ACEOF
  8889. /* confdefs.h. */
  8890. _ACEOF
  8891. cat confdefs.h >>conftest.$ac_ext
  8892. cat >>conftest.$ac_ext <<_ACEOF
  8893. /* end confdefs.h. */
  8894. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8895. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8896. #define dlopen innocuous_dlopen
  8897. /* System header to define __stub macros and hopefully few prototypes,
  8898. which can conflict with char dlopen (); below.
  8899. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8900. <limits.h> exists even on freestanding compilers. */
  8901. #ifdef __STDC__
  8902. # include <limits.h>
  8903. #else
  8904. # include <assert.h>
  8905. #endif
  8906. #undef dlopen
  8907. /* Override any GCC internal prototype to avoid an error.
  8908. Use char because int might match the return type of a GCC
  8909. builtin and then its argument prototype would still apply. */
  8910. #ifdef __cplusplus
  8911. extern "C"
  8912. #endif
  8913. char dlopen ();
  8914. /* The GNU C library defines this for functions which it implements
  8915. to always fail with ENOSYS. Some functions are actually named
  8916. something starting with __ and the normal name is an alias. */
  8917. #if defined __stub_dlopen || defined __stub___dlopen
  8918. choke me
  8919. #endif
  8920. int
  8921. main ()
  8922. {
  8923. return dlopen ();
  8924. ;
  8925. return 0;
  8926. }
  8927. _ACEOF
  8928. rm -f conftest.$ac_objext conftest$ac_exeext
  8929. if { (ac_try="$ac_link"
  8930. case "(($ac_try" in
  8931. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8932. *) ac_try_echo=$ac_try;;
  8933. esac
  8934. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8935. (eval "$ac_link") 2>conftest.er1
  8936. ac_status=$?
  8937. grep -v '^ *+' conftest.er1 >conftest.err
  8938. rm -f conftest.er1
  8939. cat conftest.err >&5
  8940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8941. (exit $ac_status); } && {
  8942. test -z "$ac_c_werror_flag" ||
  8943. test ! -s conftest.err
  8944. } && test -s conftest$ac_exeext &&
  8945. $as_test_x conftest$ac_exeext; then
  8946. ac_cv_func_dlopen=yes
  8947. else
  8948. echo "$as_me: failed program was:" >&5
  8949. sed 's/^/| /' conftest.$ac_ext >&5
  8950. ac_cv_func_dlopen=no
  8951. fi
  8952. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8953. conftest$ac_exeext conftest.$ac_ext
  8954. fi
  8955. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8956. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  8957. if test $ac_cv_func_dlopen = yes; then
  8958. lt_cv_dlopen="dlopen"
  8959. else
  8960. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8961. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8962. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8963. echo $ECHO_N "(cached) $ECHO_C" >&6
  8964. else
  8965. ac_check_lib_save_LIBS=$LIBS
  8966. LIBS="-ldl $LIBS"
  8967. cat >conftest.$ac_ext <<_ACEOF
  8968. /* confdefs.h. */
  8969. _ACEOF
  8970. cat confdefs.h >>conftest.$ac_ext
  8971. cat >>conftest.$ac_ext <<_ACEOF
  8972. /* end confdefs.h. */
  8973. /* Override any GCC internal prototype to avoid an error.
  8974. Use char because int might match the return type of a GCC
  8975. builtin and then its argument prototype would still apply. */
  8976. #ifdef __cplusplus
  8977. extern "C"
  8978. #endif
  8979. char dlopen ();
  8980. int
  8981. main ()
  8982. {
  8983. return dlopen ();
  8984. ;
  8985. return 0;
  8986. }
  8987. _ACEOF
  8988. rm -f conftest.$ac_objext conftest$ac_exeext
  8989. if { (ac_try="$ac_link"
  8990. case "(($ac_try" in
  8991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8992. *) ac_try_echo=$ac_try;;
  8993. esac
  8994. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8995. (eval "$ac_link") 2>conftest.er1
  8996. ac_status=$?
  8997. grep -v '^ *+' conftest.er1 >conftest.err
  8998. rm -f conftest.er1
  8999. cat conftest.err >&5
  9000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9001. (exit $ac_status); } && {
  9002. test -z "$ac_c_werror_flag" ||
  9003. test ! -s conftest.err
  9004. } && test -s conftest$ac_exeext &&
  9005. $as_test_x conftest$ac_exeext; then
  9006. ac_cv_lib_dl_dlopen=yes
  9007. else
  9008. echo "$as_me: failed program was:" >&5
  9009. sed 's/^/| /' conftest.$ac_ext >&5
  9010. ac_cv_lib_dl_dlopen=no
  9011. fi
  9012. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9013. conftest$ac_exeext conftest.$ac_ext
  9014. LIBS=$ac_check_lib_save_LIBS
  9015. fi
  9016. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9017. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  9018. if test $ac_cv_lib_dl_dlopen = yes; then
  9019. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9020. else
  9021. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  9022. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  9023. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  9024. echo $ECHO_N "(cached) $ECHO_C" >&6
  9025. else
  9026. ac_check_lib_save_LIBS=$LIBS
  9027. LIBS="-lsvld $LIBS"
  9028. cat >conftest.$ac_ext <<_ACEOF
  9029. /* confdefs.h. */
  9030. _ACEOF
  9031. cat confdefs.h >>conftest.$ac_ext
  9032. cat >>conftest.$ac_ext <<_ACEOF
  9033. /* end confdefs.h. */
  9034. /* Override any GCC internal prototype to avoid an error.
  9035. Use char because int might match the return type of a GCC
  9036. builtin and then its argument prototype would still apply. */
  9037. #ifdef __cplusplus
  9038. extern "C"
  9039. #endif
  9040. char dlopen ();
  9041. int
  9042. main ()
  9043. {
  9044. return dlopen ();
  9045. ;
  9046. return 0;
  9047. }
  9048. _ACEOF
  9049. rm -f conftest.$ac_objext conftest$ac_exeext
  9050. if { (ac_try="$ac_link"
  9051. case "(($ac_try" in
  9052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9053. *) ac_try_echo=$ac_try;;
  9054. esac
  9055. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9056. (eval "$ac_link") 2>conftest.er1
  9057. ac_status=$?
  9058. grep -v '^ *+' conftest.er1 >conftest.err
  9059. rm -f conftest.er1
  9060. cat conftest.err >&5
  9061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9062. (exit $ac_status); } && {
  9063. test -z "$ac_c_werror_flag" ||
  9064. test ! -s conftest.err
  9065. } && test -s conftest$ac_exeext &&
  9066. $as_test_x conftest$ac_exeext; then
  9067. ac_cv_lib_svld_dlopen=yes
  9068. else
  9069. echo "$as_me: failed program was:" >&5
  9070. sed 's/^/| /' conftest.$ac_ext >&5
  9071. ac_cv_lib_svld_dlopen=no
  9072. fi
  9073. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9074. conftest$ac_exeext conftest.$ac_ext
  9075. LIBS=$ac_check_lib_save_LIBS
  9076. fi
  9077. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  9078. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  9079. if test $ac_cv_lib_svld_dlopen = yes; then
  9080. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9081. else
  9082. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  9083. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  9084. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  9085. echo $ECHO_N "(cached) $ECHO_C" >&6
  9086. else
  9087. ac_check_lib_save_LIBS=$LIBS
  9088. LIBS="-ldld $LIBS"
  9089. cat >conftest.$ac_ext <<_ACEOF
  9090. /* confdefs.h. */
  9091. _ACEOF
  9092. cat confdefs.h >>conftest.$ac_ext
  9093. cat >>conftest.$ac_ext <<_ACEOF
  9094. /* end confdefs.h. */
  9095. /* Override any GCC internal prototype to avoid an error.
  9096. Use char because int might match the return type of a GCC
  9097. builtin and then its argument prototype would still apply. */
  9098. #ifdef __cplusplus
  9099. extern "C"
  9100. #endif
  9101. char dld_link ();
  9102. int
  9103. main ()
  9104. {
  9105. return dld_link ();
  9106. ;
  9107. return 0;
  9108. }
  9109. _ACEOF
  9110. rm -f conftest.$ac_objext conftest$ac_exeext
  9111. if { (ac_try="$ac_link"
  9112. case "(($ac_try" in
  9113. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9114. *) ac_try_echo=$ac_try;;
  9115. esac
  9116. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9117. (eval "$ac_link") 2>conftest.er1
  9118. ac_status=$?
  9119. grep -v '^ *+' conftest.er1 >conftest.err
  9120. rm -f conftest.er1
  9121. cat conftest.err >&5
  9122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9123. (exit $ac_status); } && {
  9124. test -z "$ac_c_werror_flag" ||
  9125. test ! -s conftest.err
  9126. } && test -s conftest$ac_exeext &&
  9127. $as_test_x conftest$ac_exeext; then
  9128. ac_cv_lib_dld_dld_link=yes
  9129. else
  9130. echo "$as_me: failed program was:" >&5
  9131. sed 's/^/| /' conftest.$ac_ext >&5
  9132. ac_cv_lib_dld_dld_link=no
  9133. fi
  9134. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9135. conftest$ac_exeext conftest.$ac_ext
  9136. LIBS=$ac_check_lib_save_LIBS
  9137. fi
  9138. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9139. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  9140. if test $ac_cv_lib_dld_dld_link = yes; then
  9141. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  9142. fi
  9143. fi
  9144. fi
  9145. fi
  9146. fi
  9147. fi
  9148. ;;
  9149. esac
  9150. if test "x$lt_cv_dlopen" != xno; then
  9151. enable_dlopen=yes
  9152. else
  9153. enable_dlopen=no
  9154. fi
  9155. case $lt_cv_dlopen in
  9156. dlopen)
  9157. save_CPPFLAGS="$CPPFLAGS"
  9158. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9159. save_LDFLAGS="$LDFLAGS"
  9160. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9161. save_LIBS="$LIBS"
  9162. LIBS="$lt_cv_dlopen_libs $LIBS"
  9163. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9164. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  9165. if test "${lt_cv_dlopen_self+set}" = set; then
  9166. echo $ECHO_N "(cached) $ECHO_C" >&6
  9167. else
  9168. if test "$cross_compiling" = yes; then :
  9169. lt_cv_dlopen_self=cross
  9170. else
  9171. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9172. lt_status=$lt_dlunknown
  9173. cat > conftest.$ac_ext <<EOF
  9174. #line 10181 "configure"
  9175. #include "confdefs.h"
  9176. #if HAVE_DLFCN_H
  9177. #include <dlfcn.h>
  9178. #endif
  9179. #include <stdio.h>
  9180. #ifdef RTLD_GLOBAL
  9181. # define LT_DLGLOBAL RTLD_GLOBAL
  9182. #else
  9183. # ifdef DL_GLOBAL
  9184. # define LT_DLGLOBAL DL_GLOBAL
  9185. # else
  9186. # define LT_DLGLOBAL 0
  9187. # endif
  9188. #endif
  9189. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9190. find out it does not work in some platform. */
  9191. #ifndef LT_DLLAZY_OR_NOW
  9192. # ifdef RTLD_LAZY
  9193. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9194. # else
  9195. # ifdef DL_LAZY
  9196. # define LT_DLLAZY_OR_NOW DL_LAZY
  9197. # else
  9198. # ifdef RTLD_NOW
  9199. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9200. # else
  9201. # ifdef DL_NOW
  9202. # define LT_DLLAZY_OR_NOW DL_NOW
  9203. # else
  9204. # define LT_DLLAZY_OR_NOW 0
  9205. # endif
  9206. # endif
  9207. # endif
  9208. # endif
  9209. #endif
  9210. #ifdef __cplusplus
  9211. extern "C" void exit (int);
  9212. #endif
  9213. void fnord() { int i=42;}
  9214. int main ()
  9215. {
  9216. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9217. int status = $lt_dlunknown;
  9218. if (self)
  9219. {
  9220. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9221. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9222. /* dlclose (self); */
  9223. }
  9224. else
  9225. puts (dlerror ());
  9226. exit (status);
  9227. }
  9228. EOF
  9229. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9230. (eval $ac_link) 2>&5
  9231. ac_status=$?
  9232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9233. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9234. (./conftest; exit; ) >&5 2>/dev/null
  9235. lt_status=$?
  9236. case x$lt_status in
  9237. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9238. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9239. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9240. esac
  9241. else :
  9242. # compilation failed
  9243. lt_cv_dlopen_self=no
  9244. fi
  9245. fi
  9246. rm -fr conftest*
  9247. fi
  9248. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9249. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  9250. if test "x$lt_cv_dlopen_self" = xyes; then
  9251. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9252. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9253. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  9254. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9255. echo $ECHO_N "(cached) $ECHO_C" >&6
  9256. else
  9257. if test "$cross_compiling" = yes; then :
  9258. lt_cv_dlopen_self_static=cross
  9259. else
  9260. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9261. lt_status=$lt_dlunknown
  9262. cat > conftest.$ac_ext <<EOF
  9263. #line 10281 "configure"
  9264. #include "confdefs.h"
  9265. #if HAVE_DLFCN_H
  9266. #include <dlfcn.h>
  9267. #endif
  9268. #include <stdio.h>
  9269. #ifdef RTLD_GLOBAL
  9270. # define LT_DLGLOBAL RTLD_GLOBAL
  9271. #else
  9272. # ifdef DL_GLOBAL
  9273. # define LT_DLGLOBAL DL_GLOBAL
  9274. # else
  9275. # define LT_DLGLOBAL 0
  9276. # endif
  9277. #endif
  9278. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9279. find out it does not work in some platform. */
  9280. #ifndef LT_DLLAZY_OR_NOW
  9281. # ifdef RTLD_LAZY
  9282. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9283. # else
  9284. # ifdef DL_LAZY
  9285. # define LT_DLLAZY_OR_NOW DL_LAZY
  9286. # else
  9287. # ifdef RTLD_NOW
  9288. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9289. # else
  9290. # ifdef DL_NOW
  9291. # define LT_DLLAZY_OR_NOW DL_NOW
  9292. # else
  9293. # define LT_DLLAZY_OR_NOW 0
  9294. # endif
  9295. # endif
  9296. # endif
  9297. # endif
  9298. #endif
  9299. #ifdef __cplusplus
  9300. extern "C" void exit (int);
  9301. #endif
  9302. void fnord() { int i=42;}
  9303. int main ()
  9304. {
  9305. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9306. int status = $lt_dlunknown;
  9307. if (self)
  9308. {
  9309. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9310. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9311. /* dlclose (self); */
  9312. }
  9313. else
  9314. puts (dlerror ());
  9315. exit (status);
  9316. }
  9317. EOF
  9318. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9319. (eval $ac_link) 2>&5
  9320. ac_status=$?
  9321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9322. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9323. (./conftest; exit; ) >&5 2>/dev/null
  9324. lt_status=$?
  9325. case x$lt_status in
  9326. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9327. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9328. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9329. esac
  9330. else :
  9331. # compilation failed
  9332. lt_cv_dlopen_self_static=no
  9333. fi
  9334. fi
  9335. rm -fr conftest*
  9336. fi
  9337. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9338. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  9339. fi
  9340. CPPFLAGS="$save_CPPFLAGS"
  9341. LDFLAGS="$save_LDFLAGS"
  9342. LIBS="$save_LIBS"
  9343. ;;
  9344. esac
  9345. case $lt_cv_dlopen_self in
  9346. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9347. *) enable_dlopen_self=unknown ;;
  9348. esac
  9349. case $lt_cv_dlopen_self_static in
  9350. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9351. *) enable_dlopen_self_static=unknown ;;
  9352. esac
  9353. fi
  9354. # Report which library types will actually be built
  9355. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9356. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  9357. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9358. echo "${ECHO_T}$can_build_shared" >&6; }
  9359. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9360. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  9361. test "$can_build_shared" = "no" && enable_shared=no
  9362. # On AIX, shared libraries and static libraries use the same namespace, and
  9363. # are all built from PIC.
  9364. case $host_os in
  9365. aix3*)
  9366. test "$enable_shared" = yes && enable_static=no
  9367. if test -n "$RANLIB"; then
  9368. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9369. postinstall_cmds='$RANLIB $lib'
  9370. fi
  9371. ;;
  9372. aix4* | aix5*)
  9373. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9374. test "$enable_shared" = yes && enable_static=no
  9375. fi
  9376. ;;
  9377. esac
  9378. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  9379. echo "${ECHO_T}$enable_shared" >&6; }
  9380. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9381. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  9382. # Make sure either enable_shared or enable_static is yes.
  9383. test "$enable_shared" = yes || enable_static=yes
  9384. { echo "$as_me:$LINENO: result: $enable_static" >&5
  9385. echo "${ECHO_T}$enable_static" >&6; }
  9386. # The else clause should only fire when bootstrapping the
  9387. # libtool distribution, otherwise you forgot to ship ltmain.sh
  9388. # with your package, and you will get complaints that there are
  9389. # no rules to generate ltmain.sh.
  9390. if test -f "$ltmain"; then
  9391. # See if we are running on zsh, and set the options which allow our commands through
  9392. # without removal of \ escapes.
  9393. if test -n "${ZSH_VERSION+set}" ; then
  9394. setopt NO_GLOB_SUBST
  9395. fi
  9396. # Now quote all the things that may contain metacharacters while being
  9397. # careful not to overquote the AC_SUBSTed values. We take copies of the
  9398. # variables and quote the copies for generation of the libtool script.
  9399. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  9400. SED SHELL STRIP \
  9401. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  9402. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  9403. deplibs_check_method reload_flag reload_cmds need_locks \
  9404. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  9405. lt_cv_sys_global_symbol_to_c_name_address \
  9406. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  9407. old_postinstall_cmds old_postuninstall_cmds \
  9408. compiler \
  9409. CC \
  9410. LD \
  9411. lt_prog_compiler_wl \
  9412. lt_prog_compiler_pic \
  9413. lt_prog_compiler_static \
  9414. lt_prog_compiler_no_builtin_flag \
  9415. export_dynamic_flag_spec \
  9416. thread_safe_flag_spec \
  9417. whole_archive_flag_spec \
  9418. enable_shared_with_static_runtimes \
  9419. old_archive_cmds \
  9420. old_archive_from_new_cmds \
  9421. predep_objects \
  9422. postdep_objects \
  9423. predeps \
  9424. postdeps \
  9425. compiler_lib_search_path \
  9426. archive_cmds \
  9427. archive_expsym_cmds \
  9428. postinstall_cmds \
  9429. postuninstall_cmds \
  9430. old_archive_from_expsyms_cmds \
  9431. allow_undefined_flag \
  9432. no_undefined_flag \
  9433. export_symbols_cmds \
  9434. hardcode_libdir_flag_spec \
  9435. hardcode_libdir_flag_spec_ld \
  9436. hardcode_libdir_separator \
  9437. hardcode_automatic \
  9438. module_cmds \
  9439. module_expsym_cmds \
  9440. lt_cv_prog_compiler_c_o \
  9441. fix_srcfile_path \
  9442. exclude_expsyms \
  9443. include_expsyms; do
  9444. case $var in
  9445. old_archive_cmds | \
  9446. old_archive_from_new_cmds | \
  9447. archive_cmds | \
  9448. archive_expsym_cmds | \
  9449. module_cmds | \
  9450. module_expsym_cmds | \
  9451. old_archive_from_expsyms_cmds | \
  9452. export_symbols_cmds | \
  9453. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  9454. postinstall_cmds | postuninstall_cmds | \
  9455. old_postinstall_cmds | old_postuninstall_cmds | \
  9456. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  9457. # Double-quote double-evaled strings.
  9458. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  9459. ;;
  9460. *)
  9461. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  9462. ;;
  9463. esac
  9464. done
  9465. case $lt_echo in
  9466. *'\$0 --fallback-echo"')
  9467. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  9468. ;;
  9469. esac
  9470. cfgfile="${ofile}T"
  9471. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  9472. $rm -f "$cfgfile"
  9473. { echo "$as_me:$LINENO: creating $ofile" >&5
  9474. echo "$as_me: creating $ofile" >&6;}
  9475. cat <<__EOF__ >> "$cfgfile"
  9476. #! $SHELL
  9477. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  9478. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  9479. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  9480. #
  9481. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
  9482. # Free Software Foundation, Inc.
  9483. #
  9484. # This file is part of GNU Libtool:
  9485. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  9486. #
  9487. # This program is free software; you can redistribute it and/or modify
  9488. # it under the terms of the GNU General Public License as published by
  9489. # the Free Software Foundation; either version 2 of the License, or
  9490. # (at your option) any later version.
  9491. #
  9492. # This program is distributed in the hope that it will be useful, but
  9493. # WITHOUT ANY WARRANTY; without even the implied warranty of
  9494. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9495. # General Public License for more details.
  9496. #
  9497. # You should have received a copy of the GNU General Public License
  9498. # along with this program; if not, write to the Free Software
  9499. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  9500. #
  9501. # As a special exception to the GNU General Public License, if you
  9502. # distribute this file as part of a program that contains a
  9503. # configuration script generated by Autoconf, you may include it under
  9504. # the same distribution terms that you use for the rest of that program.
  9505. # A sed program that does not truncate output.
  9506. SED=$lt_SED
  9507. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  9508. Xsed="$SED -e 1s/^X//"
  9509. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9510. # if CDPATH is set.
  9511. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9512. # The names of the tagged configurations supported by this script.
  9513. available_tags=
  9514. # ### BEGIN LIBTOOL CONFIG
  9515. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  9516. # Shell to use when invoking shell scripts.
  9517. SHELL=$lt_SHELL
  9518. # Whether or not to build shared libraries.
  9519. build_libtool_libs=$enable_shared
  9520. # Whether or not to build static libraries.
  9521. build_old_libs=$enable_static
  9522. # Whether or not to add -lc for building shared libraries.
  9523. build_libtool_need_lc=$archive_cmds_need_lc
  9524. # Whether or not to disallow shared libs when runtime libs are static
  9525. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  9526. # Whether or not to optimize for fast installation.
  9527. fast_install=$enable_fast_install
  9528. # The host system.
  9529. host_alias=$host_alias
  9530. host=$host
  9531. host_os=$host_os
  9532. # The build system.
  9533. build_alias=$build_alias
  9534. build=$build
  9535. build_os=$build_os
  9536. # An echo program that does not interpret backslashes.
  9537. echo=$lt_echo
  9538. # The archiver.
  9539. AR=$lt_AR
  9540. AR_FLAGS=$lt_AR_FLAGS
  9541. # A C compiler.
  9542. LTCC=$lt_LTCC
  9543. # LTCC compiler flags.
  9544. LTCFLAGS=$lt_LTCFLAGS
  9545. # A language-specific compiler.
  9546. CC=$lt_compiler
  9547. # Is the compiler the GNU C compiler?
  9548. with_gcc=$GCC
  9549. # An ERE matcher.
  9550. EGREP=$lt_EGREP
  9551. # The linker used to build libraries.
  9552. LD=$lt_LD
  9553. # Whether we need hard or soft links.
  9554. LN_S=$lt_LN_S
  9555. # A BSD-compatible nm program.
  9556. NM=$lt_NM
  9557. # A symbol stripping program
  9558. STRIP=$lt_STRIP
  9559. # Used to examine libraries when file_magic_cmd begins "file"
  9560. MAGIC_CMD=$MAGIC_CMD
  9561. # Used on cygwin: DLL creation program.
  9562. DLLTOOL="$DLLTOOL"
  9563. # Used on cygwin: object dumper.
  9564. OBJDUMP="$OBJDUMP"
  9565. # Used on cygwin: assembler.
  9566. AS="$AS"
  9567. # The name of the directory that contains temporary libtool files.
  9568. objdir=$objdir
  9569. # How to create reloadable object files.
  9570. reload_flag=$lt_reload_flag
  9571. reload_cmds=$lt_reload_cmds
  9572. # How to pass a linker flag through the compiler.
  9573. wl=$lt_lt_prog_compiler_wl
  9574. # Object file suffix (normally "o").
  9575. objext="$ac_objext"
  9576. # Old archive suffix (normally "a").
  9577. libext="$libext"
  9578. # Shared library suffix (normally ".so").
  9579. shrext_cmds='$shrext_cmds'
  9580. # Executable file suffix (normally "").
  9581. exeext="$exeext"
  9582. # Additional compiler flags for building library objects.
  9583. pic_flag=$lt_lt_prog_compiler_pic
  9584. pic_mode=$pic_mode
  9585. # What is the maximum length of a command?
  9586. max_cmd_len=$lt_cv_sys_max_cmd_len
  9587. # Does compiler simultaneously support -c and -o options?
  9588. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  9589. # Must we lock files when doing compilation?
  9590. need_locks=$lt_need_locks
  9591. # Do we need the lib prefix for modules?
  9592. need_lib_prefix=$need_lib_prefix
  9593. # Do we need a version for libraries?
  9594. need_version=$need_version
  9595. # Whether dlopen is supported.
  9596. dlopen_support=$enable_dlopen
  9597. # Whether dlopen of programs is supported.
  9598. dlopen_self=$enable_dlopen_self
  9599. # Whether dlopen of statically linked programs is supported.
  9600. dlopen_self_static=$enable_dlopen_self_static
  9601. # Compiler flag to prevent dynamic linking.
  9602. link_static_flag=$lt_lt_prog_compiler_static
  9603. # Compiler flag to turn off builtin functions.
  9604. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  9605. # Compiler flag to allow reflexive dlopens.
  9606. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  9607. # Compiler flag to generate shared objects directly from archives.
  9608. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  9609. # Compiler flag to generate thread-safe objects.
  9610. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  9611. # Library versioning type.
  9612. version_type=$version_type
  9613. # Format of library name prefix.
  9614. libname_spec=$lt_libname_spec
  9615. # List of archive names. First name is the real one, the rest are links.
  9616. # The last name is the one that the linker finds with -lNAME.
  9617. library_names_spec=$lt_library_names_spec
  9618. # The coded name of the library, if different from the real name.
  9619. soname_spec=$lt_soname_spec
  9620. # Commands used to build and install an old-style archive.
  9621. RANLIB=$lt_RANLIB
  9622. old_archive_cmds=$lt_old_archive_cmds
  9623. old_postinstall_cmds=$lt_old_postinstall_cmds
  9624. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  9625. # Create an old-style archive from a shared archive.
  9626. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  9627. # Create a temporary old-style archive to link instead of a shared archive.
  9628. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  9629. # Commands used to build and install a shared archive.
  9630. archive_cmds=$lt_archive_cmds
  9631. archive_expsym_cmds=$lt_archive_expsym_cmds
  9632. postinstall_cmds=$lt_postinstall_cmds
  9633. postuninstall_cmds=$lt_postuninstall_cmds
  9634. # Commands used to build a loadable module (assumed same as above if empty)
  9635. module_cmds=$lt_module_cmds
  9636. module_expsym_cmds=$lt_module_expsym_cmds
  9637. # Commands to strip libraries.
  9638. old_striplib=$lt_old_striplib
  9639. striplib=$lt_striplib
  9640. # Dependencies to place before the objects being linked to create a
  9641. # shared library.
  9642. predep_objects=$lt_predep_objects
  9643. # Dependencies to place after the objects being linked to create a
  9644. # shared library.
  9645. postdep_objects=$lt_postdep_objects
  9646. # Dependencies to place before the objects being linked to create a
  9647. # shared library.
  9648. predeps=$lt_predeps
  9649. # Dependencies to place after the objects being linked to create a
  9650. # shared library.
  9651. postdeps=$lt_postdeps
  9652. # The library search path used internally by the compiler when linking
  9653. # a shared library.
  9654. compiler_lib_search_path=$lt_compiler_lib_search_path
  9655. # Method to check whether dependent libraries are shared objects.
  9656. deplibs_check_method=$lt_deplibs_check_method
  9657. # Command to use when deplibs_check_method == file_magic.
  9658. file_magic_cmd=$lt_file_magic_cmd
  9659. # Flag that allows shared libraries with undefined symbols to be built.
  9660. allow_undefined_flag=$lt_allow_undefined_flag
  9661. # Flag that forces no undefined symbols.
  9662. no_undefined_flag=$lt_no_undefined_flag
  9663. # Commands used to finish a libtool library installation in a directory.
  9664. finish_cmds=$lt_finish_cmds
  9665. # Same as above, but a single script fragment to be evaled but not shown.
  9666. finish_eval=$lt_finish_eval
  9667. # Take the output of nm and produce a listing of raw symbols and C names.
  9668. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  9669. # Transform the output of nm in a proper C declaration
  9670. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  9671. # Transform the output of nm in a C name address pair
  9672. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  9673. # This is the shared library runtime path variable.
  9674. runpath_var=$runpath_var
  9675. # This is the shared library path variable.
  9676. shlibpath_var=$shlibpath_var
  9677. # Is shlibpath searched before the hard-coded library search path?
  9678. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  9679. # How to hardcode a shared library path into an executable.
  9680. hardcode_action=$hardcode_action
  9681. # Whether we should hardcode library paths into libraries.
  9682. hardcode_into_libs=$hardcode_into_libs
  9683. # Flag to hardcode \$libdir into a binary during linking.
  9684. # This must work even if \$libdir does not exist.
  9685. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  9686. # If ld is used when linking, flag to hardcode \$libdir into
  9687. # a binary during linking. This must work even if \$libdir does
  9688. # not exist.
  9689. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  9690. # Whether we need a single -rpath flag with a separated argument.
  9691. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  9692. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  9693. # resulting binary.
  9694. hardcode_direct=$hardcode_direct
  9695. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  9696. # resulting binary.
  9697. hardcode_minus_L=$hardcode_minus_L
  9698. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  9699. # the resulting binary.
  9700. hardcode_shlibpath_var=$hardcode_shlibpath_var
  9701. # Set to yes if building a shared library automatically hardcodes DIR into the library
  9702. # and all subsequent libraries and executables linked against it.
  9703. hardcode_automatic=$hardcode_automatic
  9704. # Variables whose values should be saved in libtool wrapper scripts and
  9705. # restored at relink time.
  9706. variables_saved_for_relink="$variables_saved_for_relink"
  9707. # Whether libtool must link a program against all its dependency libraries.
  9708. link_all_deplibs=$link_all_deplibs
  9709. # Compile-time system search path for libraries
  9710. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  9711. # Run-time system search path for libraries
  9712. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  9713. # Fix the shell variable \$srcfile for the compiler.
  9714. fix_srcfile_path=$lt_fix_srcfile_path
  9715. # Set to yes if exported symbols are required.
  9716. always_export_symbols=$always_export_symbols
  9717. # The commands to list exported symbols.
  9718. export_symbols_cmds=$lt_export_symbols_cmds
  9719. # The commands to extract the exported symbol list from a shared archive.
  9720. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  9721. # Symbols that should not be listed in the preloaded symbols.
  9722. exclude_expsyms=$lt_exclude_expsyms
  9723. # Symbols that must always be exported.
  9724. include_expsyms=$lt_include_expsyms
  9725. # ### END LIBTOOL CONFIG
  9726. __EOF__
  9727. case $host_os in
  9728. aix3*)
  9729. cat <<\EOF >> "$cfgfile"
  9730. # AIX sometimes has problems with the GCC collect2 program. For some
  9731. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9732. # vanish in a puff of smoke.
  9733. if test "X${COLLECT_NAMES+set}" != Xset; then
  9734. COLLECT_NAMES=
  9735. export COLLECT_NAMES
  9736. fi
  9737. EOF
  9738. ;;
  9739. esac
  9740. # We use sed instead of cat because bash on DJGPP gets confused if
  9741. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9742. # text mode, it properly converts lines to CR/LF. This bash problem
  9743. # is reportedly fixed, but why not run on old versions too?
  9744. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9745. mv -f "$cfgfile" "$ofile" || \
  9746. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9747. chmod +x "$ofile"
  9748. else
  9749. # If there is no Makefile yet, we rely on a make rule to execute
  9750. # `config.status --recheck' to rerun these tests and create the
  9751. # libtool script then.
  9752. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9753. if test -f "$ltmain_in"; then
  9754. test -f Makefile && make "$ltmain"
  9755. fi
  9756. fi
  9757. ac_ext=c
  9758. ac_cpp='$CPP $CPPFLAGS'
  9759. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9760. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9761. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9762. CC="$lt_save_CC"
  9763. # Check whether --with-tags was given.
  9764. if test "${with_tags+set}" = set; then
  9765. withval=$with_tags; tagnames="$withval"
  9766. fi
  9767. if test -f "$ltmain" && test -n "$tagnames"; then
  9768. if test ! -f "${ofile}"; then
  9769. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9770. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9771. fi
  9772. if test -z "$LTCC"; then
  9773. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9774. if test -z "$LTCC"; then
  9775. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9776. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9777. else
  9778. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9779. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9780. fi
  9781. fi
  9782. if test -z "$LTCFLAGS"; then
  9783. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  9784. fi
  9785. # Extract list of available tagged configurations in $ofile.
  9786. # Note that this assumes the entire list is on one line.
  9787. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9788. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9789. for tagname in $tagnames; do
  9790. IFS="$lt_save_ifs"
  9791. # Check whether tagname contains only valid characters
  9792. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9793. "") ;;
  9794. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9795. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9796. { (exit 1); exit 1; }; }
  9797. ;;
  9798. esac
  9799. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9800. then
  9801. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9802. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9803. { (exit 1); exit 1; }; }
  9804. fi
  9805. # Update the list of available tags.
  9806. if test -n "$tagname"; then
  9807. echo appending configuration tag \"$tagname\" to $ofile
  9808. case $tagname in
  9809. CXX)
  9810. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9811. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9812. (test "X$CXX" != "Xg++"))) ; then
  9813. ac_ext=cpp
  9814. ac_cpp='$CXXCPP $CPPFLAGS'
  9815. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9816. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9817. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9818. archive_cmds_need_lc_CXX=no
  9819. allow_undefined_flag_CXX=
  9820. always_export_symbols_CXX=no
  9821. archive_expsym_cmds_CXX=
  9822. export_dynamic_flag_spec_CXX=
  9823. hardcode_direct_CXX=no
  9824. hardcode_libdir_flag_spec_CXX=
  9825. hardcode_libdir_flag_spec_ld_CXX=
  9826. hardcode_libdir_separator_CXX=
  9827. hardcode_minus_L_CXX=no
  9828. hardcode_shlibpath_var_CXX=unsupported
  9829. hardcode_automatic_CXX=no
  9830. module_cmds_CXX=
  9831. module_expsym_cmds_CXX=
  9832. link_all_deplibs_CXX=unknown
  9833. old_archive_cmds_CXX=$old_archive_cmds
  9834. no_undefined_flag_CXX=
  9835. whole_archive_flag_spec_CXX=
  9836. enable_shared_with_static_runtimes_CXX=no
  9837. # Dependencies to place before and after the object being linked:
  9838. predep_objects_CXX=
  9839. postdep_objects_CXX=
  9840. predeps_CXX=
  9841. postdeps_CXX=
  9842. compiler_lib_search_path_CXX=
  9843. # Source file extension for C++ test sources.
  9844. ac_ext=cpp
  9845. # Object file extension for compiled C++ test sources.
  9846. objext=o
  9847. objext_CXX=$objext
  9848. # Code to be used in simple compile tests
  9849. lt_simple_compile_test_code="int some_variable = 0;"
  9850. # Code to be used in simple link tests
  9851. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9852. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9853. # If no C compiler was specified, use CC.
  9854. LTCC=${LTCC-"$CC"}
  9855. # If no C compiler flags were specified, use CFLAGS.
  9856. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9857. # Allow CC to be a program name with arguments.
  9858. compiler=$CC
  9859. # save warnings/boilerplate of simple test code
  9860. ac_outfile=conftest.$ac_objext
  9861. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9862. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9863. _lt_compiler_boilerplate=`cat conftest.err`
  9864. $rm conftest*
  9865. ac_outfile=conftest.$ac_objext
  9866. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9867. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9868. _lt_linker_boilerplate=`cat conftest.err`
  9869. $rm conftest*
  9870. # Allow CC to be a program name with arguments.
  9871. lt_save_CC=$CC
  9872. lt_save_LD=$LD
  9873. lt_save_GCC=$GCC
  9874. GCC=$GXX
  9875. lt_save_with_gnu_ld=$with_gnu_ld
  9876. lt_save_path_LD=$lt_cv_path_LD
  9877. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9878. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9879. else
  9880. $as_unset lt_cv_prog_gnu_ld
  9881. fi
  9882. if test -n "${lt_cv_path_LDCXX+set}"; then
  9883. lt_cv_path_LD=$lt_cv_path_LDCXX
  9884. else
  9885. $as_unset lt_cv_path_LD
  9886. fi
  9887. test -z "${LDCXX+set}" || LD=$LDCXX
  9888. CC=${CXX-"c++"}
  9889. compiler=$CC
  9890. compiler_CXX=$CC
  9891. for cc_temp in $compiler""; do
  9892. case $cc_temp in
  9893. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9894. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9895. \-*) ;;
  9896. *) break;;
  9897. esac
  9898. done
  9899. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9900. # We don't want -fno-exception wen compiling C++ code, so set the
  9901. # no_builtin_flag separately
  9902. if test "$GXX" = yes; then
  9903. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9904. else
  9905. lt_prog_compiler_no_builtin_flag_CXX=
  9906. fi
  9907. if test "$GXX" = yes; then
  9908. # Set up default GNU C++ configuration
  9909. # Check whether --with-gnu-ld was given.
  9910. if test "${with_gnu_ld+set}" = set; then
  9911. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9912. else
  9913. with_gnu_ld=no
  9914. fi
  9915. ac_prog=ld
  9916. if test "$GCC" = yes; then
  9917. # Check if gcc -print-prog-name=ld gives a path.
  9918. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9919. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  9920. case $host in
  9921. *-*-mingw*)
  9922. # gcc leaves a trailing carriage return which upsets mingw
  9923. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9924. *)
  9925. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9926. esac
  9927. case $ac_prog in
  9928. # Accept absolute paths.
  9929. [\\/]* | ?:[\\/]*)
  9930. re_direlt='/[^/][^/]*/\.\./'
  9931. # Canonicalize the pathname of ld
  9932. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9933. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9934. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9935. done
  9936. test -z "$LD" && LD="$ac_prog"
  9937. ;;
  9938. "")
  9939. # If it fails, then pretend we aren't using GCC.
  9940. ac_prog=ld
  9941. ;;
  9942. *)
  9943. # If it is relative, then search for the first ld in PATH.
  9944. with_gnu_ld=unknown
  9945. ;;
  9946. esac
  9947. elif test "$with_gnu_ld" = yes; then
  9948. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  9949. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  9950. else
  9951. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9952. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  9953. fi
  9954. if test "${lt_cv_path_LD+set}" = set; then
  9955. echo $ECHO_N "(cached) $ECHO_C" >&6
  9956. else
  9957. if test -z "$LD"; then
  9958. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9959. for ac_dir in $PATH; do
  9960. IFS="$lt_save_ifs"
  9961. test -z "$ac_dir" && ac_dir=.
  9962. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9963. lt_cv_path_LD="$ac_dir/$ac_prog"
  9964. # Check to see if the program is GNU ld. I'd rather use --version,
  9965. # but apparently some variants of GNU ld only accept -v.
  9966. # Break only if it was the GNU/non-GNU ld that we prefer.
  9967. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9968. *GNU* | *'with BFD'*)
  9969. test "$with_gnu_ld" != no && break
  9970. ;;
  9971. *)
  9972. test "$with_gnu_ld" != yes && break
  9973. ;;
  9974. esac
  9975. fi
  9976. done
  9977. IFS="$lt_save_ifs"
  9978. else
  9979. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9980. fi
  9981. fi
  9982. LD="$lt_cv_path_LD"
  9983. if test -n "$LD"; then
  9984. { echo "$as_me:$LINENO: result: $LD" >&5
  9985. echo "${ECHO_T}$LD" >&6; }
  9986. else
  9987. { echo "$as_me:$LINENO: result: no" >&5
  9988. echo "${ECHO_T}no" >&6; }
  9989. fi
  9990. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9991. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9992. { (exit 1); exit 1; }; }
  9993. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9994. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  9995. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9996. echo $ECHO_N "(cached) $ECHO_C" >&6
  9997. else
  9998. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9999. case `$LD -v 2>&1 </dev/null` in
  10000. *GNU* | *'with BFD'*)
  10001. lt_cv_prog_gnu_ld=yes
  10002. ;;
  10003. *)
  10004. lt_cv_prog_gnu_ld=no
  10005. ;;
  10006. esac
  10007. fi
  10008. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  10009. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  10010. with_gnu_ld=$lt_cv_prog_gnu_ld
  10011. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10012. # archiving commands below assume that GNU ld is being used.
  10013. if test "$with_gnu_ld" = yes; then
  10014. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10015. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10016. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10017. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10018. # If archive_cmds runs LD, not CC, wlarc should be empty
  10019. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10020. # investigate it a little bit more. (MM)
  10021. wlarc='${wl}'
  10022. # ancient GNU ld didn't support --whole-archive et. al.
  10023. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  10024. grep 'no-whole-archive' > /dev/null; then
  10025. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10026. else
  10027. whole_archive_flag_spec_CXX=
  10028. fi
  10029. else
  10030. with_gnu_ld=no
  10031. wlarc=
  10032. # A generic and very simple default shared library creation
  10033. # command for GNU C++ for the case where it uses the native
  10034. # linker, instead of GNU ld. If possible, this setting should
  10035. # overridden to take advantage of the native linker features on
  10036. # the platform it is being used on.
  10037. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10038. fi
  10039. # Commands to make compiler produce verbose output that lists
  10040. # what "hidden" libraries, object files and flags are used when
  10041. # linking a shared library.
  10042. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10043. else
  10044. GXX=no
  10045. with_gnu_ld=no
  10046. wlarc=
  10047. fi
  10048. # PORTME: fill in a description of your system's C++ link characteristics
  10049. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10050. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  10051. ld_shlibs_CXX=yes
  10052. case $host_os in
  10053. aix3*)
  10054. # FIXME: insert proper C++ library support
  10055. ld_shlibs_CXX=no
  10056. ;;
  10057. aix4* | aix5*)
  10058. if test "$host_cpu" = ia64; then
  10059. # On IA64, the linker does run time linking by default, so we don't
  10060. # have to do anything special.
  10061. aix_use_runtimelinking=no
  10062. exp_sym_flag='-Bexport'
  10063. no_entry_flag=""
  10064. else
  10065. aix_use_runtimelinking=no
  10066. # Test if we are trying to use run time linking or normal
  10067. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10068. # need to do runtime linking.
  10069. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  10070. for ld_flag in $LDFLAGS; do
  10071. case $ld_flag in
  10072. *-brtl*)
  10073. aix_use_runtimelinking=yes
  10074. break
  10075. ;;
  10076. esac
  10077. done
  10078. ;;
  10079. esac
  10080. exp_sym_flag='-bexport'
  10081. no_entry_flag='-bnoentry'
  10082. fi
  10083. # When large executables or shared objects are built, AIX ld can
  10084. # have problems creating the table of contents. If linking a library
  10085. # or program results in "error TOC overflow" add -mminimal-toc to
  10086. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10087. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10088. archive_cmds_CXX=''
  10089. hardcode_direct_CXX=yes
  10090. hardcode_libdir_separator_CXX=':'
  10091. link_all_deplibs_CXX=yes
  10092. if test "$GXX" = yes; then
  10093. case $host_os in aix4.[012]|aix4.[012].*)
  10094. # We only want to do this on AIX 4.2 and lower, the check
  10095. # below for broken collect2 doesn't work under 4.3+
  10096. collect2name=`${CC} -print-prog-name=collect2`
  10097. if test -f "$collect2name" && \
  10098. strings "$collect2name" | grep resolve_lib_name >/dev/null
  10099. then
  10100. # We have reworked collect2
  10101. :
  10102. else
  10103. # We have old collect2
  10104. hardcode_direct_CXX=unsupported
  10105. # It fails to find uninstalled libraries when the uninstalled
  10106. # path is not listed in the libpath. Setting hardcode_minus_L
  10107. # to unsupported forces relinking
  10108. hardcode_minus_L_CXX=yes
  10109. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10110. hardcode_libdir_separator_CXX=
  10111. fi
  10112. ;;
  10113. esac
  10114. shared_flag='-shared'
  10115. if test "$aix_use_runtimelinking" = yes; then
  10116. shared_flag="$shared_flag "'${wl}-G'
  10117. fi
  10118. else
  10119. # not using gcc
  10120. if test "$host_cpu" = ia64; then
  10121. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10122. # chokes on -Wl,-G. The following line is correct:
  10123. shared_flag='-G'
  10124. else
  10125. if test "$aix_use_runtimelinking" = yes; then
  10126. shared_flag='${wl}-G'
  10127. else
  10128. shared_flag='${wl}-bM:SRE'
  10129. fi
  10130. fi
  10131. fi
  10132. # It seems that -bexpall does not export symbols beginning with
  10133. # underscore (_), so it is better to generate a list of symbols to export.
  10134. always_export_symbols_CXX=yes
  10135. if test "$aix_use_runtimelinking" = yes; then
  10136. # Warning - without using the other runtime loading flags (-brtl),
  10137. # -berok will link without error, but may produce a broken library.
  10138. allow_undefined_flag_CXX='-berok'
  10139. # Determine the default libpath from the value encoded in an empty executable.
  10140. cat >conftest.$ac_ext <<_ACEOF
  10141. /* confdefs.h. */
  10142. _ACEOF
  10143. cat confdefs.h >>conftest.$ac_ext
  10144. cat >>conftest.$ac_ext <<_ACEOF
  10145. /* end confdefs.h. */
  10146. int
  10147. main ()
  10148. {
  10149. ;
  10150. return 0;
  10151. }
  10152. _ACEOF
  10153. rm -f conftest.$ac_objext conftest$ac_exeext
  10154. if { (ac_try="$ac_link"
  10155. case "(($ac_try" in
  10156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10157. *) ac_try_echo=$ac_try;;
  10158. esac
  10159. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10160. (eval "$ac_link") 2>conftest.er1
  10161. ac_status=$?
  10162. grep -v '^ *+' conftest.er1 >conftest.err
  10163. rm -f conftest.er1
  10164. cat conftest.err >&5
  10165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10166. (exit $ac_status); } && {
  10167. test -z "$ac_cxx_werror_flag" ||
  10168. test ! -s conftest.err
  10169. } && test -s conftest$ac_exeext &&
  10170. $as_test_x conftest$ac_exeext; then
  10171. lt_aix_libpath_sed='
  10172. /Import File Strings/,/^$/ {
  10173. /^0/ {
  10174. s/^0 *\(.*\)$/\1/
  10175. p
  10176. }
  10177. }'
  10178. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10179. # Check for a 64-bit object if we didn't find anything.
  10180. if test -z "$aix_libpath"; then
  10181. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10182. fi
  10183. else
  10184. echo "$as_me: failed program was:" >&5
  10185. sed 's/^/| /' conftest.$ac_ext >&5
  10186. fi
  10187. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10188. conftest$ac_exeext conftest.$ac_ext
  10189. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10190. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10191. 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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10192. else
  10193. if test "$host_cpu" = ia64; then
  10194. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10195. allow_undefined_flag_CXX="-z nodefs"
  10196. 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"
  10197. else
  10198. # Determine the default libpath from the value encoded in an empty executable.
  10199. cat >conftest.$ac_ext <<_ACEOF
  10200. /* confdefs.h. */
  10201. _ACEOF
  10202. cat confdefs.h >>conftest.$ac_ext
  10203. cat >>conftest.$ac_ext <<_ACEOF
  10204. /* end confdefs.h. */
  10205. int
  10206. main ()
  10207. {
  10208. ;
  10209. return 0;
  10210. }
  10211. _ACEOF
  10212. rm -f conftest.$ac_objext conftest$ac_exeext
  10213. if { (ac_try="$ac_link"
  10214. case "(($ac_try" in
  10215. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10216. *) ac_try_echo=$ac_try;;
  10217. esac
  10218. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10219. (eval "$ac_link") 2>conftest.er1
  10220. ac_status=$?
  10221. grep -v '^ *+' conftest.er1 >conftest.err
  10222. rm -f conftest.er1
  10223. cat conftest.err >&5
  10224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10225. (exit $ac_status); } && {
  10226. test -z "$ac_cxx_werror_flag" ||
  10227. test ! -s conftest.err
  10228. } && test -s conftest$ac_exeext &&
  10229. $as_test_x conftest$ac_exeext; then
  10230. lt_aix_libpath_sed='
  10231. /Import File Strings/,/^$/ {
  10232. /^0/ {
  10233. s/^0 *\(.*\)$/\1/
  10234. p
  10235. }
  10236. }'
  10237. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10238. # Check for a 64-bit object if we didn't find anything.
  10239. if test -z "$aix_libpath"; then
  10240. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10241. fi
  10242. else
  10243. echo "$as_me: failed program was:" >&5
  10244. sed 's/^/| /' conftest.$ac_ext >&5
  10245. fi
  10246. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10247. conftest$ac_exeext conftest.$ac_ext
  10248. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10249. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10250. # Warning - without using the other run time loading flags,
  10251. # -berok will link without error, but may produce a broken library.
  10252. no_undefined_flag_CXX=' ${wl}-bernotok'
  10253. allow_undefined_flag_CXX=' ${wl}-berok'
  10254. # Exported symbols can be pulled into shared objects from archives
  10255. whole_archive_flag_spec_CXX='$convenience'
  10256. archive_cmds_need_lc_CXX=yes
  10257. # This is similar to how AIX traditionally builds its shared libraries.
  10258. 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'
  10259. fi
  10260. fi
  10261. ;;
  10262. beos*)
  10263. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  10264. allow_undefined_flag_CXX=unsupported
  10265. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10266. # support --undefined. This deserves some investigation. FIXME
  10267. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10268. else
  10269. ld_shlibs_CXX=no
  10270. fi
  10271. ;;
  10272. chorus*)
  10273. case $cc_basename in
  10274. *)
  10275. # FIXME: insert proper C++ library support
  10276. ld_shlibs_CXX=no
  10277. ;;
  10278. esac
  10279. ;;
  10280. cygwin* | mingw* | pw32*)
  10281. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10282. # as there is no search path for DLLs.
  10283. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10284. allow_undefined_flag_CXX=unsupported
  10285. always_export_symbols_CXX=no
  10286. enable_shared_with_static_runtimes_CXX=yes
  10287. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  10288. 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'
  10289. # If the export-symbols file already is a .def file (1st line
  10290. # is EXPORTS), use it as is; otherwise, prepend...
  10291. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10292. cp $export_symbols $output_objdir/$soname.def;
  10293. else
  10294. echo EXPORTS > $output_objdir/$soname.def;
  10295. cat $export_symbols >> $output_objdir/$soname.def;
  10296. fi~
  10297. $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'
  10298. else
  10299. ld_shlibs_CXX=no
  10300. fi
  10301. ;;
  10302. darwin* | rhapsody*)
  10303. case $host_os in
  10304. rhapsody* | darwin1.[012])
  10305. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  10306. ;;
  10307. *) # Darwin 1.3 on
  10308. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  10309. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10310. else
  10311. case ${MACOSX_DEPLOYMENT_TARGET} in
  10312. 10.[012])
  10313. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10314. ;;
  10315. 10.*)
  10316. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  10317. ;;
  10318. esac
  10319. fi
  10320. ;;
  10321. esac
  10322. archive_cmds_need_lc_CXX=no
  10323. hardcode_direct_CXX=no
  10324. hardcode_automatic_CXX=yes
  10325. hardcode_shlibpath_var_CXX=unsupported
  10326. whole_archive_flag_spec_CXX=''
  10327. link_all_deplibs_CXX=yes
  10328. if test "$GXX" = yes ; then
  10329. lt_int_apple_cc_single_mod=no
  10330. output_verbose_link_cmd='echo'
  10331. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  10332. lt_int_apple_cc_single_mod=yes
  10333. fi
  10334. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10335. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10336. else
  10337. 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'
  10338. fi
  10339. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10340. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10341. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10342. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10343. else
  10344. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10345. fi
  10346. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10347. else
  10348. case $cc_basename in
  10349. xlc*)
  10350. output_verbose_link_cmd='echo'
  10351. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  10352. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10353. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10354. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10355. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10356. ;;
  10357. *)
  10358. ld_shlibs_CXX=no
  10359. ;;
  10360. esac
  10361. fi
  10362. ;;
  10363. dgux*)
  10364. case $cc_basename in
  10365. ec++*)
  10366. # FIXME: insert proper C++ library support
  10367. ld_shlibs_CXX=no
  10368. ;;
  10369. ghcx*)
  10370. # Green Hills C++ Compiler
  10371. # FIXME: insert proper C++ library support
  10372. ld_shlibs_CXX=no
  10373. ;;
  10374. *)
  10375. # FIXME: insert proper C++ library support
  10376. ld_shlibs_CXX=no
  10377. ;;
  10378. esac
  10379. ;;
  10380. freebsd[12]*)
  10381. # C++ shared libraries reported to be fairly broken before switch to ELF
  10382. ld_shlibs_CXX=no
  10383. ;;
  10384. freebsd-elf*)
  10385. archive_cmds_need_lc_CXX=no
  10386. ;;
  10387. freebsd* | dragonfly*)
  10388. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10389. # conventions
  10390. ld_shlibs_CXX=yes
  10391. ;;
  10392. gnu*)
  10393. ;;
  10394. hpux9*)
  10395. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10396. hardcode_libdir_separator_CXX=:
  10397. export_dynamic_flag_spec_CXX='${wl}-E'
  10398. hardcode_direct_CXX=yes
  10399. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10400. # but as the default
  10401. # location of the library.
  10402. case $cc_basename in
  10403. CC*)
  10404. # FIXME: insert proper C++ library support
  10405. ld_shlibs_CXX=no
  10406. ;;
  10407. aCC*)
  10408. 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'
  10409. # Commands to make compiler produce verbose output that lists
  10410. # what "hidden" libraries, object files and flags are used when
  10411. # linking a shared library.
  10412. #
  10413. # There doesn't appear to be a way to prevent this compiler from
  10414. # explicitly linking system object files so we need to strip them
  10415. # from the output so that they don't get included in the library
  10416. # dependencies.
  10417. 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; echo $list'
  10418. ;;
  10419. *)
  10420. if test "$GXX" = yes; then
  10421. archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
  10422. else
  10423. # FIXME: insert proper C++ library support
  10424. ld_shlibs_CXX=no
  10425. fi
  10426. ;;
  10427. esac
  10428. ;;
  10429. hpux10*|hpux11*)
  10430. if test $with_gnu_ld = no; then
  10431. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10432. hardcode_libdir_separator_CXX=:
  10433. case $host_cpu in
  10434. hppa*64*|ia64*) ;;
  10435. *)
  10436. export_dynamic_flag_spec_CXX='${wl}-E'
  10437. ;;
  10438. esac
  10439. fi
  10440. case $host_cpu in
  10441. hppa*64*|ia64*)
  10442. hardcode_direct_CXX=no
  10443. hardcode_shlibpath_var_CXX=no
  10444. ;;
  10445. *)
  10446. hardcode_direct_CXX=yes
  10447. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10448. # but as the default
  10449. # location of the library.
  10450. ;;
  10451. esac
  10452. case $cc_basename in
  10453. CC*)
  10454. # FIXME: insert proper C++ library support
  10455. ld_shlibs_CXX=no
  10456. ;;
  10457. aCC*)
  10458. case $host_cpu in
  10459. hppa*64*)
  10460. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10461. ;;
  10462. ia64*)
  10463. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10464. ;;
  10465. *)
  10466. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10467. ;;
  10468. esac
  10469. # Commands to make compiler produce verbose output that lists
  10470. # what "hidden" libraries, object files and flags are used when
  10471. # linking a shared library.
  10472. #
  10473. # There doesn't appear to be a way to prevent this compiler from
  10474. # explicitly linking system object files so we need to strip them
  10475. # from the output so that they don't get included in the library
  10476. # dependencies.
  10477. 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; echo $list'
  10478. ;;
  10479. *)
  10480. if test "$GXX" = yes; then
  10481. if test $with_gnu_ld = no; then
  10482. case $host_cpu in
  10483. hppa*64*)
  10484. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10485. ;;
  10486. ia64*)
  10487. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10488. ;;
  10489. *)
  10490. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10491. ;;
  10492. esac
  10493. fi
  10494. else
  10495. # FIXME: insert proper C++ library support
  10496. ld_shlibs_CXX=no
  10497. fi
  10498. ;;
  10499. esac
  10500. ;;
  10501. interix[3-9]*)
  10502. hardcode_direct_CXX=no
  10503. hardcode_shlibpath_var_CXX=no
  10504. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10505. export_dynamic_flag_spec_CXX='${wl}-E'
  10506. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10507. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10508. # default) and relocated if they conflict, which is a slow very memory
  10509. # consuming and fragmenting process. To avoid this, we pick a random,
  10510. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10511. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10512. 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'
  10513. 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'
  10514. ;;
  10515. irix5* | irix6*)
  10516. case $cc_basename in
  10517. CC*)
  10518. # SGI C++
  10519. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10520. # Archives containing C++ object files must be created using
  10521. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10522. # necessary to make sure instantiated templates are included
  10523. # in the archive.
  10524. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10525. ;;
  10526. *)
  10527. if test "$GXX" = yes; then
  10528. if test "$with_gnu_ld" = no; then
  10529. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10530. else
  10531. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  10532. fi
  10533. fi
  10534. link_all_deplibs_CXX=yes
  10535. ;;
  10536. esac
  10537. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10538. hardcode_libdir_separator_CXX=:
  10539. ;;
  10540. linux* | k*bsd*-gnu)
  10541. case $cc_basename in
  10542. KCC*)
  10543. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10544. # KCC will only create a shared library if the output file
  10545. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10546. # to its proper name (with version) after linking.
  10547. 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'
  10548. 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'
  10549. # Commands to make compiler produce verbose output that lists
  10550. # what "hidden" libraries, object files and flags are used when
  10551. # linking a shared library.
  10552. #
  10553. # There doesn't appear to be a way to prevent this compiler from
  10554. # explicitly linking system object files so we need to strip them
  10555. # from the output so that they don't get included in the library
  10556. # dependencies.
  10557. 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; echo $list'
  10558. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  10559. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10560. # Archives containing C++ object files must be created using
  10561. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10562. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10563. ;;
  10564. icpc*)
  10565. # Intel C++
  10566. with_gnu_ld=yes
  10567. # version 8.0 and above of icpc choke on multiply defined symbols
  10568. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10569. # earlier do not add the objects themselves.
  10570. case `$CC -V 2>&1` in
  10571. *"Version 7."*)
  10572. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10573. 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'
  10574. ;;
  10575. *) # Version 8.0 or newer
  10576. tmp_idyn=
  10577. case $host_cpu in
  10578. ia64*) tmp_idyn=' -i_dynamic';;
  10579. esac
  10580. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10581. 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'
  10582. ;;
  10583. esac
  10584. archive_cmds_need_lc_CXX=no
  10585. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10586. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10587. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10588. ;;
  10589. pgCC*)
  10590. # Portland Group C++ compiler
  10591. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10592. 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'
  10593. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10594. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10595. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  10596. ;;
  10597. cxx*)
  10598. # Compaq C++
  10599. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10600. 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'
  10601. runpath_var=LD_RUN_PATH
  10602. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10603. hardcode_libdir_separator_CXX=:
  10604. # Commands to make compiler produce verbose output that lists
  10605. # what "hidden" libraries, object files and flags are used when
  10606. # linking a shared library.
  10607. #
  10608. # There doesn't appear to be a way to prevent this compiler from
  10609. # explicitly linking system object files so we need to strip them
  10610. # from the output so that they don't get included in the library
  10611. # dependencies.
  10612. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
  10613. ;;
  10614. *)
  10615. case `$CC -V 2>&1 | sed 5q` in
  10616. *Sun\ C*)
  10617. # Sun C++ 5.9
  10618. no_undefined_flag_CXX=' -zdefs'
  10619. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10620. 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'
  10621. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10622. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  10623. # Not sure whether something based on
  10624. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10625. # would be better.
  10626. output_verbose_link_cmd='echo'
  10627. # Archives containing C++ object files must be created using
  10628. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10629. # necessary to make sure instantiated templates are included
  10630. # in the archive.
  10631. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10632. ;;
  10633. esac
  10634. ;;
  10635. esac
  10636. ;;
  10637. lynxos*)
  10638. # FIXME: insert proper C++ library support
  10639. ld_shlibs_CXX=no
  10640. ;;
  10641. m88k*)
  10642. # FIXME: insert proper C++ library support
  10643. ld_shlibs_CXX=no
  10644. ;;
  10645. mvs*)
  10646. case $cc_basename in
  10647. cxx*)
  10648. # FIXME: insert proper C++ library support
  10649. ld_shlibs_CXX=no
  10650. ;;
  10651. *)
  10652. # FIXME: insert proper C++ library support
  10653. ld_shlibs_CXX=no
  10654. ;;
  10655. esac
  10656. ;;
  10657. netbsd*)
  10658. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10659. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10660. wlarc=
  10661. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10662. hardcode_direct_CXX=yes
  10663. hardcode_shlibpath_var_CXX=no
  10664. fi
  10665. # Workaround some broken pre-1.5 toolchains
  10666. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10667. ;;
  10668. openbsd2*)
  10669. # C++ shared libraries are fairly broken
  10670. ld_shlibs_CXX=no
  10671. ;;
  10672. openbsd*)
  10673. if test -f /usr/libexec/ld.so; then
  10674. hardcode_direct_CXX=yes
  10675. hardcode_shlibpath_var_CXX=no
  10676. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10677. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10678. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10679. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10680. export_dynamic_flag_spec_CXX='${wl}-E'
  10681. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10682. fi
  10683. output_verbose_link_cmd='echo'
  10684. else
  10685. ld_shlibs_CXX=no
  10686. fi
  10687. ;;
  10688. osf3*)
  10689. case $cc_basename in
  10690. KCC*)
  10691. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10692. # KCC will only create a shared library if the output file
  10693. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10694. # to its proper name (with version) after linking.
  10695. 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'
  10696. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10697. hardcode_libdir_separator_CXX=:
  10698. # Archives containing C++ object files must be created using
  10699. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10700. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10701. ;;
  10702. RCC*)
  10703. # Rational C++ 2.4.1
  10704. # FIXME: insert proper C++ library support
  10705. ld_shlibs_CXX=no
  10706. ;;
  10707. cxx*)
  10708. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10709. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10710. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10711. hardcode_libdir_separator_CXX=:
  10712. # Commands to make compiler produce verbose output that lists
  10713. # what "hidden" libraries, object files and flags are used when
  10714. # linking a shared library.
  10715. #
  10716. # There doesn't appear to be a way to prevent this compiler from
  10717. # explicitly linking system object files so we need to strip them
  10718. # from the output so that they don't get included in the library
  10719. # dependencies.
  10720. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
  10721. ;;
  10722. *)
  10723. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10724. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10725. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10726. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10727. hardcode_libdir_separator_CXX=:
  10728. # Commands to make compiler produce verbose output that lists
  10729. # what "hidden" libraries, object files and flags are used when
  10730. # linking a shared library.
  10731. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10732. else
  10733. # FIXME: insert proper C++ library support
  10734. ld_shlibs_CXX=no
  10735. fi
  10736. ;;
  10737. esac
  10738. ;;
  10739. osf4* | osf5*)
  10740. case $cc_basename in
  10741. KCC*)
  10742. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10743. # KCC will only create a shared library if the output file
  10744. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10745. # to its proper name (with version) after linking.
  10746. 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'
  10747. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10748. hardcode_libdir_separator_CXX=:
  10749. # Archives containing C++ object files must be created using
  10750. # the KAI C++ compiler.
  10751. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  10752. ;;
  10753. RCC*)
  10754. # Rational C++ 2.4.1
  10755. # FIXME: insert proper C++ library support
  10756. ld_shlibs_CXX=no
  10757. ;;
  10758. cxx*)
  10759. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10760. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10761. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10762. echo "-hidden">> $lib.exp~
  10763. $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~
  10764. $rm $lib.exp'
  10765. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10766. hardcode_libdir_separator_CXX=:
  10767. # Commands to make compiler produce verbose output that lists
  10768. # what "hidden" libraries, object files and flags are used when
  10769. # linking a shared library.
  10770. #
  10771. # There doesn't appear to be a way to prevent this compiler from
  10772. # explicitly linking system object files so we need to strip them
  10773. # from the output so that they don't get included in the library
  10774. # dependencies.
  10775. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
  10776. ;;
  10777. *)
  10778. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10779. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10780. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10781. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10782. hardcode_libdir_separator_CXX=:
  10783. # Commands to make compiler produce verbose output that lists
  10784. # what "hidden" libraries, object files and flags are used when
  10785. # linking a shared library.
  10786. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10787. else
  10788. # FIXME: insert proper C++ library support
  10789. ld_shlibs_CXX=no
  10790. fi
  10791. ;;
  10792. esac
  10793. ;;
  10794. psos*)
  10795. # FIXME: insert proper C++ library support
  10796. ld_shlibs_CXX=no
  10797. ;;
  10798. sunos4*)
  10799. case $cc_basename in
  10800. CC*)
  10801. # Sun C++ 4.x
  10802. # FIXME: insert proper C++ library support
  10803. ld_shlibs_CXX=no
  10804. ;;
  10805. lcc*)
  10806. # Lucid
  10807. # FIXME: insert proper C++ library support
  10808. ld_shlibs_CXX=no
  10809. ;;
  10810. *)
  10811. # FIXME: insert proper C++ library support
  10812. ld_shlibs_CXX=no
  10813. ;;
  10814. esac
  10815. ;;
  10816. solaris*)
  10817. case $cc_basename in
  10818. CC*)
  10819. # Sun C++ 4.2, 5.x and Centerline C++
  10820. archive_cmds_need_lc_CXX=yes
  10821. no_undefined_flag_CXX=' -zdefs'
  10822. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10823. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10824. $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'
  10825. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10826. hardcode_shlibpath_var_CXX=no
  10827. case $host_os in
  10828. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10829. *)
  10830. # The compiler driver will combine and reorder linker options,
  10831. # but understands `-z linker_flag'.
  10832. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10833. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10834. ;;
  10835. esac
  10836. link_all_deplibs_CXX=yes
  10837. output_verbose_link_cmd='echo'
  10838. # Archives containing C++ object files must be created using
  10839. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10840. # necessary to make sure instantiated templates are included
  10841. # in the archive.
  10842. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10843. ;;
  10844. gcx*)
  10845. # Green Hills C++ Compiler
  10846. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10847. # The C++ compiler must be used to create the archive.
  10848. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10849. ;;
  10850. *)
  10851. # GNU C++ compiler with Solaris linker
  10852. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10853. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10854. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10855. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10856. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10857. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10858. # Commands to make compiler produce verbose output that lists
  10859. # what "hidden" libraries, object files and flags are used when
  10860. # linking a shared library.
  10861. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10862. else
  10863. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10864. # platform.
  10865. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10866. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10867. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10868. # Commands to make compiler produce verbose output that lists
  10869. # what "hidden" libraries, object files and flags are used when
  10870. # linking a shared library.
  10871. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10872. fi
  10873. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10874. case $host_os in
  10875. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10876. *)
  10877. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10878. ;;
  10879. esac
  10880. fi
  10881. ;;
  10882. esac
  10883. ;;
  10884. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10885. no_undefined_flag_CXX='${wl}-z,text'
  10886. archive_cmds_need_lc_CXX=no
  10887. hardcode_shlibpath_var_CXX=no
  10888. runpath_var='LD_RUN_PATH'
  10889. case $cc_basename in
  10890. CC*)
  10891. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10892. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10893. ;;
  10894. *)
  10895. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10896. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10897. ;;
  10898. esac
  10899. ;;
  10900. sysv5* | sco3.2v5* | sco5v6*)
  10901. # Note: We can NOT use -z defs as we might desire, because we do not
  10902. # link with -lc, and that would cause any symbols used from libc to
  10903. # always be unresolved, which means just about no library would
  10904. # ever link correctly. If we're not using GNU ld we use -z text
  10905. # though, which does catch some bad symbols but isn't as heavy-handed
  10906. # as -z defs.
  10907. # For security reasons, it is highly recommended that you always
  10908. # use absolute paths for naming shared libraries, and exclude the
  10909. # DT_RUNPATH tag from executables and libraries. But doing so
  10910. # requires that you compile everything twice, which is a pain.
  10911. # So that behaviour is only enabled if SCOABSPATH is set to a
  10912. # non-empty value in the environment. Most likely only useful for
  10913. # creating official distributions of packages.
  10914. # This is a hack until libtool officially supports absolute path
  10915. # names for shared libraries.
  10916. no_undefined_flag_CXX='${wl}-z,text'
  10917. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10918. archive_cmds_need_lc_CXX=no
  10919. hardcode_shlibpath_var_CXX=no
  10920. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10921. hardcode_libdir_separator_CXX=':'
  10922. link_all_deplibs_CXX=yes
  10923. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10924. runpath_var='LD_RUN_PATH'
  10925. case $cc_basename in
  10926. CC*)
  10927. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10928. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10929. ;;
  10930. *)
  10931. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10932. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10933. ;;
  10934. esac
  10935. ;;
  10936. tandem*)
  10937. case $cc_basename in
  10938. NCC*)
  10939. # NonStop-UX NCC 3.20
  10940. # FIXME: insert proper C++ library support
  10941. ld_shlibs_CXX=no
  10942. ;;
  10943. *)
  10944. # FIXME: insert proper C++ library support
  10945. ld_shlibs_CXX=no
  10946. ;;
  10947. esac
  10948. ;;
  10949. vxworks*)
  10950. # FIXME: insert proper C++ library support
  10951. ld_shlibs_CXX=no
  10952. ;;
  10953. *)
  10954. # FIXME: insert proper C++ library support
  10955. ld_shlibs_CXX=no
  10956. ;;
  10957. esac
  10958. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10959. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  10960. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10961. GCC_CXX="$GXX"
  10962. LD_CXX="$LD"
  10963. cat > conftest.$ac_ext <<EOF
  10964. class Foo
  10965. {
  10966. public:
  10967. Foo (void) { a = 0; }
  10968. private:
  10969. int a;
  10970. };
  10971. EOF
  10972. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10973. (eval $ac_compile) 2>&5
  10974. ac_status=$?
  10975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10976. (exit $ac_status); }; then
  10977. # Parse the compiler output and extract the necessary
  10978. # objects, libraries and library flags.
  10979. # Sentinel used to keep track of whether or not we are before
  10980. # the conftest object file.
  10981. pre_test_object_deps_done=no
  10982. # The `*' in the case matches for architectures that use `case' in
  10983. # $output_verbose_cmd can trigger glob expansion during the loop
  10984. # eval without this substitution.
  10985. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  10986. for p in `eval $output_verbose_link_cmd`; do
  10987. case $p in
  10988. -L* | -R* | -l*)
  10989. # Some compilers place space between "-{L,R}" and the path.
  10990. # Remove the space.
  10991. if test $p = "-L" \
  10992. || test $p = "-R"; then
  10993. prev=$p
  10994. continue
  10995. else
  10996. prev=
  10997. fi
  10998. if test "$pre_test_object_deps_done" = no; then
  10999. case $p in
  11000. -L* | -R*)
  11001. # Internal compiler library paths should come after those
  11002. # provided the user. The postdeps already come after the
  11003. # user supplied libs so there is no need to process them.
  11004. if test -z "$compiler_lib_search_path_CXX"; then
  11005. compiler_lib_search_path_CXX="${prev}${p}"
  11006. else
  11007. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11008. fi
  11009. ;;
  11010. # The "-l" case would never come before the object being
  11011. # linked, so don't bother handling this case.
  11012. esac
  11013. else
  11014. if test -z "$postdeps_CXX"; then
  11015. postdeps_CXX="${prev}${p}"
  11016. else
  11017. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11018. fi
  11019. fi
  11020. ;;
  11021. *.$objext)
  11022. # This assumes that the test object file only shows up
  11023. # once in the compiler output.
  11024. if test "$p" = "conftest.$objext"; then
  11025. pre_test_object_deps_done=yes
  11026. continue
  11027. fi
  11028. if test "$pre_test_object_deps_done" = no; then
  11029. if test -z "$predep_objects_CXX"; then
  11030. predep_objects_CXX="$p"
  11031. else
  11032. predep_objects_CXX="$predep_objects_CXX $p"
  11033. fi
  11034. else
  11035. if test -z "$postdep_objects_CXX"; then
  11036. postdep_objects_CXX="$p"
  11037. else
  11038. postdep_objects_CXX="$postdep_objects_CXX $p"
  11039. fi
  11040. fi
  11041. ;;
  11042. *) ;; # Ignore the rest.
  11043. esac
  11044. done
  11045. # Clean up.
  11046. rm -f a.out a.exe
  11047. else
  11048. echo "libtool.m4: error: problem compiling CXX test program"
  11049. fi
  11050. $rm -f confest.$objext
  11051. # PORTME: override above test on systems where it is broken
  11052. case $host_os in
  11053. interix[3-9]*)
  11054. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11055. # hack all around it, let's just trust "g++" to DTRT.
  11056. predep_objects_CXX=
  11057. postdep_objects_CXX=
  11058. postdeps_CXX=
  11059. ;;
  11060. linux*)
  11061. case `$CC -V 2>&1 | sed 5q` in
  11062. *Sun\ C*)
  11063. # Sun C++ 5.9
  11064. #
  11065. # The more standards-conforming stlport4 library is
  11066. # incompatible with the Cstd library. Avoid specifying
  11067. # it if it's in CXXFLAGS. Ignore libCrun as
  11068. # -library=stlport4 depends on it.
  11069. case " $CXX $CXXFLAGS " in
  11070. *" -library=stlport4 "*)
  11071. solaris_use_stlport4=yes
  11072. ;;
  11073. esac
  11074. if test "$solaris_use_stlport4" != yes; then
  11075. postdeps_CXX='-library=Cstd -library=Crun'
  11076. fi
  11077. ;;
  11078. esac
  11079. ;;
  11080. solaris*)
  11081. case $cc_basename in
  11082. CC*)
  11083. # The more standards-conforming stlport4 library is
  11084. # incompatible with the Cstd library. Avoid specifying
  11085. # it if it's in CXXFLAGS. Ignore libCrun as
  11086. # -library=stlport4 depends on it.
  11087. case " $CXX $CXXFLAGS " in
  11088. *" -library=stlport4 "*)
  11089. solaris_use_stlport4=yes
  11090. ;;
  11091. esac
  11092. # Adding this requires a known-good setup of shared libraries for
  11093. # Sun compiler versions before 5.6, else PIC objects from an old
  11094. # archive will be linked into the output, leading to subtle bugs.
  11095. if test "$solaris_use_stlport4" != yes; then
  11096. postdeps_CXX='-library=Cstd -library=Crun'
  11097. fi
  11098. ;;
  11099. esac
  11100. ;;
  11101. esac
  11102. case " $postdeps_CXX " in
  11103. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11104. esac
  11105. lt_prog_compiler_wl_CXX=
  11106. lt_prog_compiler_pic_CXX=
  11107. lt_prog_compiler_static_CXX=
  11108. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11109. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  11110. # C++ specific cases for pic, static, wl, etc.
  11111. if test "$GXX" = yes; then
  11112. lt_prog_compiler_wl_CXX='-Wl,'
  11113. lt_prog_compiler_static_CXX='-static'
  11114. case $host_os in
  11115. aix*)
  11116. # All AIX code is PIC.
  11117. if test "$host_cpu" = ia64; then
  11118. # AIX 5 now supports IA64 processor
  11119. lt_prog_compiler_static_CXX='-Bstatic'
  11120. fi
  11121. ;;
  11122. amigaos*)
  11123. # FIXME: we need at least 68020 code to build shared libraries, but
  11124. # adding the `-m68020' flag to GCC prevents building anything better,
  11125. # like `-m68040'.
  11126. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11127. ;;
  11128. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11129. # PIC is the default for these OSes.
  11130. ;;
  11131. mingw* | cygwin* | os2* | pw32*)
  11132. # This hack is so that the source file can tell whether it is being
  11133. # built for inclusion in a dll (and should export symbols for example).
  11134. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11135. # (--disable-auto-import) libraries
  11136. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11137. ;;
  11138. darwin* | rhapsody*)
  11139. # PIC is the default on this platform
  11140. # Common symbols not allowed in MH_DYLIB files
  11141. lt_prog_compiler_pic_CXX='-fno-common'
  11142. ;;
  11143. *djgpp*)
  11144. # DJGPP does not support shared libraries at all
  11145. lt_prog_compiler_pic_CXX=
  11146. ;;
  11147. interix[3-9]*)
  11148. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11149. # Instead, we relocate shared libraries at runtime.
  11150. ;;
  11151. sysv4*MP*)
  11152. if test -d /usr/nec; then
  11153. lt_prog_compiler_pic_CXX=-Kconform_pic
  11154. fi
  11155. ;;
  11156. hpux*)
  11157. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11158. # not for PA HP-UX.
  11159. case $host_cpu in
  11160. hppa*64*|ia64*)
  11161. ;;
  11162. *)
  11163. lt_prog_compiler_pic_CXX='-fPIC'
  11164. ;;
  11165. esac
  11166. ;;
  11167. *)
  11168. lt_prog_compiler_pic_CXX='-fPIC'
  11169. ;;
  11170. esac
  11171. else
  11172. case $host_os in
  11173. aix4* | aix5*)
  11174. # All AIX code is PIC.
  11175. if test "$host_cpu" = ia64; then
  11176. # AIX 5 now supports IA64 processor
  11177. lt_prog_compiler_static_CXX='-Bstatic'
  11178. else
  11179. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11180. fi
  11181. ;;
  11182. chorus*)
  11183. case $cc_basename in
  11184. cxch68*)
  11185. # Green Hills C++ Compiler
  11186. # _LT_AC_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"
  11187. ;;
  11188. esac
  11189. ;;
  11190. darwin*)
  11191. # PIC is the default on this platform
  11192. # Common symbols not allowed in MH_DYLIB files
  11193. case $cc_basename in
  11194. xlc*)
  11195. lt_prog_compiler_pic_CXX='-qnocommon'
  11196. lt_prog_compiler_wl_CXX='-Wl,'
  11197. ;;
  11198. esac
  11199. ;;
  11200. dgux*)
  11201. case $cc_basename in
  11202. ec++*)
  11203. lt_prog_compiler_pic_CXX='-KPIC'
  11204. ;;
  11205. ghcx*)
  11206. # Green Hills C++ Compiler
  11207. lt_prog_compiler_pic_CXX='-pic'
  11208. ;;
  11209. *)
  11210. ;;
  11211. esac
  11212. ;;
  11213. freebsd* | dragonfly*)
  11214. # FreeBSD uses GNU C++
  11215. ;;
  11216. hpux9* | hpux10* | hpux11*)
  11217. case $cc_basename in
  11218. CC*)
  11219. lt_prog_compiler_wl_CXX='-Wl,'
  11220. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11221. if test "$host_cpu" != ia64; then
  11222. lt_prog_compiler_pic_CXX='+Z'
  11223. fi
  11224. ;;
  11225. aCC*)
  11226. lt_prog_compiler_wl_CXX='-Wl,'
  11227. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11228. case $host_cpu in
  11229. hppa*64*|ia64*)
  11230. # +Z the default
  11231. ;;
  11232. *)
  11233. lt_prog_compiler_pic_CXX='+Z'
  11234. ;;
  11235. esac
  11236. ;;
  11237. *)
  11238. ;;
  11239. esac
  11240. ;;
  11241. interix*)
  11242. # This is c89, which is MS Visual C++ (no shared libs)
  11243. # Anyone wants to do a port?
  11244. ;;
  11245. irix5* | irix6* | nonstopux*)
  11246. case $cc_basename in
  11247. CC*)
  11248. lt_prog_compiler_wl_CXX='-Wl,'
  11249. lt_prog_compiler_static_CXX='-non_shared'
  11250. # CC pic flag -KPIC is the default.
  11251. ;;
  11252. *)
  11253. ;;
  11254. esac
  11255. ;;
  11256. linux* | k*bsd*-gnu)
  11257. case $cc_basename in
  11258. KCC*)
  11259. # KAI C++ Compiler
  11260. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11261. lt_prog_compiler_pic_CXX='-fPIC'
  11262. ;;
  11263. icpc* | ecpc*)
  11264. # Intel C++
  11265. lt_prog_compiler_wl_CXX='-Wl,'
  11266. lt_prog_compiler_pic_CXX='-KPIC'
  11267. lt_prog_compiler_static_CXX='-static'
  11268. ;;
  11269. pgCC*)
  11270. # Portland Group C++ compiler.
  11271. lt_prog_compiler_wl_CXX='-Wl,'
  11272. lt_prog_compiler_pic_CXX='-fpic'
  11273. lt_prog_compiler_static_CXX='-Bstatic'
  11274. ;;
  11275. cxx*)
  11276. # Compaq C++
  11277. # Make sure the PIC flag is empty. It appears that all Alpha
  11278. # Linux and Compaq Tru64 Unix objects are PIC.
  11279. lt_prog_compiler_pic_CXX=
  11280. lt_prog_compiler_static_CXX='-non_shared'
  11281. ;;
  11282. *)
  11283. case `$CC -V 2>&1 | sed 5q` in
  11284. *Sun\ C*)
  11285. # Sun C++ 5.9
  11286. lt_prog_compiler_pic_CXX='-KPIC'
  11287. lt_prog_compiler_static_CXX='-Bstatic'
  11288. lt_prog_compiler_wl_CXX='-Qoption ld '
  11289. ;;
  11290. esac
  11291. ;;
  11292. esac
  11293. ;;
  11294. lynxos*)
  11295. ;;
  11296. m88k*)
  11297. ;;
  11298. mvs*)
  11299. case $cc_basename in
  11300. cxx*)
  11301. lt_prog_compiler_pic_CXX='-W c,exportall'
  11302. ;;
  11303. *)
  11304. ;;
  11305. esac
  11306. ;;
  11307. netbsd*)
  11308. ;;
  11309. osf3* | osf4* | osf5*)
  11310. case $cc_basename in
  11311. KCC*)
  11312. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11313. ;;
  11314. RCC*)
  11315. # Rational C++ 2.4.1
  11316. lt_prog_compiler_pic_CXX='-pic'
  11317. ;;
  11318. cxx*)
  11319. # Digital/Compaq C++
  11320. lt_prog_compiler_wl_CXX='-Wl,'
  11321. # Make sure the PIC flag is empty. It appears that all Alpha
  11322. # Linux and Compaq Tru64 Unix objects are PIC.
  11323. lt_prog_compiler_pic_CXX=
  11324. lt_prog_compiler_static_CXX='-non_shared'
  11325. ;;
  11326. *)
  11327. ;;
  11328. esac
  11329. ;;
  11330. psos*)
  11331. ;;
  11332. solaris*)
  11333. case $cc_basename in
  11334. CC*)
  11335. # Sun C++ 4.2, 5.x and Centerline C++
  11336. lt_prog_compiler_pic_CXX='-KPIC'
  11337. lt_prog_compiler_static_CXX='-Bstatic'
  11338. lt_prog_compiler_wl_CXX='-Qoption ld '
  11339. ;;
  11340. gcx*)
  11341. # Green Hills C++ Compiler
  11342. lt_prog_compiler_pic_CXX='-PIC'
  11343. ;;
  11344. *)
  11345. ;;
  11346. esac
  11347. ;;
  11348. sunos4*)
  11349. case $cc_basename in
  11350. CC*)
  11351. # Sun C++ 4.x
  11352. lt_prog_compiler_pic_CXX='-pic'
  11353. lt_prog_compiler_static_CXX='-Bstatic'
  11354. ;;
  11355. lcc*)
  11356. # Lucid
  11357. lt_prog_compiler_pic_CXX='-pic'
  11358. ;;
  11359. *)
  11360. ;;
  11361. esac
  11362. ;;
  11363. tandem*)
  11364. case $cc_basename in
  11365. NCC*)
  11366. # NonStop-UX NCC 3.20
  11367. lt_prog_compiler_pic_CXX='-KPIC'
  11368. ;;
  11369. *)
  11370. ;;
  11371. esac
  11372. ;;
  11373. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11374. case $cc_basename in
  11375. CC*)
  11376. lt_prog_compiler_wl_CXX='-Wl,'
  11377. lt_prog_compiler_pic_CXX='-KPIC'
  11378. lt_prog_compiler_static_CXX='-Bstatic'
  11379. ;;
  11380. esac
  11381. ;;
  11382. vxworks*)
  11383. ;;
  11384. *)
  11385. lt_prog_compiler_can_build_shared_CXX=no
  11386. ;;
  11387. esac
  11388. fi
  11389. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  11390. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  11391. #
  11392. # Check to make sure the PIC flag actually works.
  11393. #
  11394. if test -n "$lt_prog_compiler_pic_CXX"; then
  11395. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11396. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  11397. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  11398. echo $ECHO_N "(cached) $ECHO_C" >&6
  11399. else
  11400. lt_prog_compiler_pic_works_CXX=no
  11401. ac_outfile=conftest.$ac_objext
  11402. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11403. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11404. # Insert the option either (1) after the last *FLAGS variable, or
  11405. # (2) before a word containing "conftest.", or (3) at the end.
  11406. # Note that $ac_compile itself does not contain backslashes and begins
  11407. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11408. # The option is referenced via a variable to avoid confusing sed.
  11409. lt_compile=`echo "$ac_compile" | $SED \
  11410. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11411. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11412. -e 's:$: $lt_compiler_flag:'`
  11413. (eval echo "\"\$as_me:12701: $lt_compile\"" >&5)
  11414. (eval "$lt_compile" 2>conftest.err)
  11415. ac_status=$?
  11416. cat conftest.err >&5
  11417. echo "$as_me:12705: \$? = $ac_status" >&5
  11418. if (exit $ac_status) && test -s "$ac_outfile"; then
  11419. # The compiler can only warn and ignore the option if not recognized
  11420. # So say no if there are warnings other than the usual output.
  11421. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11422. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11423. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11424. lt_prog_compiler_pic_works_CXX=yes
  11425. fi
  11426. fi
  11427. $rm conftest*
  11428. fi
  11429. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  11430. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  11431. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  11432. case $lt_prog_compiler_pic_CXX in
  11433. "" | " "*) ;;
  11434. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11435. esac
  11436. else
  11437. lt_prog_compiler_pic_CXX=
  11438. lt_prog_compiler_can_build_shared_CXX=no
  11439. fi
  11440. fi
  11441. case $host_os in
  11442. # For platforms which do not support PIC, -DPIC is meaningless:
  11443. *djgpp*)
  11444. lt_prog_compiler_pic_CXX=
  11445. ;;
  11446. *)
  11447. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11448. ;;
  11449. esac
  11450. #
  11451. # Check to make sure the static flag actually works.
  11452. #
  11453. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11454. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11455. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  11456. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  11457. echo $ECHO_N "(cached) $ECHO_C" >&6
  11458. else
  11459. lt_prog_compiler_static_works_CXX=no
  11460. save_LDFLAGS="$LDFLAGS"
  11461. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11462. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11463. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11464. # The linker can only warn and ignore the option if not recognized
  11465. # So say no if there are warnings
  11466. if test -s conftest.err; then
  11467. # Append any errors to the config.log.
  11468. cat conftest.err 1>&5
  11469. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11470. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11471. if diff conftest.exp conftest.er2 >/dev/null; then
  11472. lt_prog_compiler_static_works_CXX=yes
  11473. fi
  11474. else
  11475. lt_prog_compiler_static_works_CXX=yes
  11476. fi
  11477. fi
  11478. $rm conftest*
  11479. LDFLAGS="$save_LDFLAGS"
  11480. fi
  11481. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  11482. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
  11483. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  11484. :
  11485. else
  11486. lt_prog_compiler_static_CXX=
  11487. fi
  11488. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11489. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  11490. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  11491. echo $ECHO_N "(cached) $ECHO_C" >&6
  11492. else
  11493. lt_cv_prog_compiler_c_o_CXX=no
  11494. $rm -r conftest 2>/dev/null
  11495. mkdir conftest
  11496. cd conftest
  11497. mkdir out
  11498. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11499. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11500. # Insert the option either (1) after the last *FLAGS variable, or
  11501. # (2) before a word containing "conftest.", or (3) at the end.
  11502. # Note that $ac_compile itself does not contain backslashes and begins
  11503. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11504. lt_compile=`echo "$ac_compile" | $SED \
  11505. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11506. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11507. -e 's:$: $lt_compiler_flag:'`
  11508. (eval echo "\"\$as_me:12805: $lt_compile\"" >&5)
  11509. (eval "$lt_compile" 2>out/conftest.err)
  11510. ac_status=$?
  11511. cat out/conftest.err >&5
  11512. echo "$as_me:12809: \$? = $ac_status" >&5
  11513. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11514. then
  11515. # The compiler can only warn and ignore the option if not recognized
  11516. # So say no if there are warnings
  11517. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11518. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11519. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11520. lt_cv_prog_compiler_c_o_CXX=yes
  11521. fi
  11522. fi
  11523. chmod u+w . 2>&5
  11524. $rm conftest*
  11525. # SGI C++ compiler will create directory out/ii_files/ for
  11526. # template instantiation
  11527. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11528. $rm out/* && rmdir out
  11529. cd ..
  11530. rmdir conftest
  11531. $rm conftest*
  11532. fi
  11533. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11534. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11535. hard_links="nottested"
  11536. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11537. # do not overwrite the value of need_locks provided by the user
  11538. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11539. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  11540. hard_links=yes
  11541. $rm conftest*
  11542. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11543. touch conftest.a
  11544. ln conftest.a conftest.b 2>&5 || hard_links=no
  11545. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11546. { echo "$as_me:$LINENO: result: $hard_links" >&5
  11547. echo "${ECHO_T}$hard_links" >&6; }
  11548. if test "$hard_links" = no; then
  11549. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11550. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11551. need_locks=warn
  11552. fi
  11553. else
  11554. need_locks=no
  11555. fi
  11556. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11557. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  11558. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11559. case $host_os in
  11560. aix4* | aix5*)
  11561. # If we're using GNU nm, then we don't want the "-C" option.
  11562. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11563. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11564. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  11565. else
  11566. 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'
  11567. fi
  11568. ;;
  11569. pw32*)
  11570. export_symbols_cmds_CXX="$ltdll_cmds"
  11571. ;;
  11572. cygwin* | mingw*)
  11573. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  11574. ;;
  11575. *)
  11576. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11577. ;;
  11578. esac
  11579. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11580. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  11581. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11582. #
  11583. # Do we need to explicitly link libc?
  11584. #
  11585. case "x$archive_cmds_need_lc_CXX" in
  11586. x|xyes)
  11587. # Assume -lc should be added
  11588. archive_cmds_need_lc_CXX=yes
  11589. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11590. case $archive_cmds_CXX in
  11591. *'~'*)
  11592. # FIXME: we may have to deal with multi-command sequences.
  11593. ;;
  11594. '$CC '*)
  11595. # Test whether the compiler implicitly links with -lc since on some
  11596. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11597. # to ld, don't add -lc before -lgcc.
  11598. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  11599. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  11600. $rm conftest*
  11601. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11602. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11603. (eval $ac_compile) 2>&5
  11604. ac_status=$?
  11605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11606. (exit $ac_status); } 2>conftest.err; then
  11607. soname=conftest
  11608. lib=conftest
  11609. libobjs=conftest.$ac_objext
  11610. deplibs=
  11611. wl=$lt_prog_compiler_wl_CXX
  11612. pic_flag=$lt_prog_compiler_pic_CXX
  11613. compiler_flags=-v
  11614. linker_flags=-v
  11615. verstring=
  11616. output_objdir=.
  11617. libname=conftest
  11618. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11619. allow_undefined_flag_CXX=
  11620. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  11621. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11622. ac_status=$?
  11623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11624. (exit $ac_status); }
  11625. then
  11626. archive_cmds_need_lc_CXX=no
  11627. else
  11628. archive_cmds_need_lc_CXX=yes
  11629. fi
  11630. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11631. else
  11632. cat conftest.err 1>&5
  11633. fi
  11634. $rm conftest*
  11635. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  11636. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  11637. ;;
  11638. esac
  11639. fi
  11640. ;;
  11641. esac
  11642. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  11643. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  11644. library_names_spec=
  11645. libname_spec='lib$name'
  11646. soname_spec=
  11647. shrext_cmds=".so"
  11648. postinstall_cmds=
  11649. postuninstall_cmds=
  11650. finish_cmds=
  11651. finish_eval=
  11652. shlibpath_var=
  11653. shlibpath_overrides_runpath=unknown
  11654. version_type=none
  11655. dynamic_linker="$host_os ld.so"
  11656. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11657. need_lib_prefix=unknown
  11658. hardcode_into_libs=no
  11659. # when you set need_version to no, make sure it does not cause -set_version
  11660. # flags to be left without arguments
  11661. need_version=unknown
  11662. case $host_os in
  11663. aix3*)
  11664. version_type=linux
  11665. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11666. shlibpath_var=LIBPATH
  11667. # AIX 3 has no versioning support, so we append a major version to the name.
  11668. soname_spec='${libname}${release}${shared_ext}$major'
  11669. ;;
  11670. aix4* | aix5*)
  11671. version_type=linux
  11672. need_lib_prefix=no
  11673. need_version=no
  11674. hardcode_into_libs=yes
  11675. if test "$host_cpu" = ia64; then
  11676. # AIX 5 supports IA64
  11677. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11678. shlibpath_var=LD_LIBRARY_PATH
  11679. else
  11680. # With GCC up to 2.95.x, collect2 would create an import file
  11681. # for dependence libraries. The import file would start with
  11682. # the line `#! .'. This would cause the generated library to
  11683. # depend on `.', always an invalid library. This was fixed in
  11684. # development snapshots of GCC prior to 3.0.
  11685. case $host_os in
  11686. aix4 | aix4.[01] | aix4.[01].*)
  11687. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11688. echo ' yes '
  11689. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  11690. :
  11691. else
  11692. can_build_shared=no
  11693. fi
  11694. ;;
  11695. esac
  11696. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11697. # soname into executable. Probably we can add versioning support to
  11698. # collect2, so additional links can be useful in future.
  11699. if test "$aix_use_runtimelinking" = yes; then
  11700. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11701. # instead of lib<name>.a to let people know that these are not
  11702. # typical AIX shared libraries.
  11703. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11704. else
  11705. # We preserve .a as extension for shared libraries through AIX4.2
  11706. # and later when we are not doing run time linking.
  11707. library_names_spec='${libname}${release}.a $libname.a'
  11708. soname_spec='${libname}${release}${shared_ext}$major'
  11709. fi
  11710. shlibpath_var=LIBPATH
  11711. fi
  11712. ;;
  11713. amigaos*)
  11714. library_names_spec='$libname.ixlibrary $libname.a'
  11715. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11716. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  11717. ;;
  11718. beos*)
  11719. library_names_spec='${libname}${shared_ext}'
  11720. dynamic_linker="$host_os ld.so"
  11721. shlibpath_var=LIBRARY_PATH
  11722. ;;
  11723. bsdi[45]*)
  11724. version_type=linux
  11725. need_version=no
  11726. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11727. soname_spec='${libname}${release}${shared_ext}$major'
  11728. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11729. shlibpath_var=LD_LIBRARY_PATH
  11730. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11731. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11732. # the default ld.so.conf also contains /usr/contrib/lib and
  11733. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11734. # libtool to hard-code these into programs
  11735. ;;
  11736. cygwin* | mingw* | pw32*)
  11737. version_type=windows
  11738. shrext_cmds=".dll"
  11739. need_version=no
  11740. need_lib_prefix=no
  11741. case $GCC,$host_os in
  11742. yes,cygwin* | yes,mingw* | yes,pw32*)
  11743. library_names_spec='$libname.dll.a'
  11744. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11745. postinstall_cmds='base_file=`basename \${file}`~
  11746. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  11747. dldir=$destdir/`dirname \$dlpath`~
  11748. test -d \$dldir || mkdir -p \$dldir~
  11749. $install_prog $dir/$dlname \$dldir/$dlname~
  11750. chmod a+x \$dldir/$dlname'
  11751. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11752. dlpath=$dir/\$dldll~
  11753. $rm \$dlpath'
  11754. shlibpath_overrides_runpath=yes
  11755. case $host_os in
  11756. cygwin*)
  11757. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11758. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11759. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11760. ;;
  11761. mingw*)
  11762. # MinGW DLLs use traditional 'lib' prefix
  11763. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11764. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11765. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  11766. # It is most probably a Windows format PATH printed by
  11767. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11768. # path with ; separators, and with drive letters. We can handle the
  11769. # drive letters (cygwin fileutils understands them), so leave them,
  11770. # especially as we might pass files found there to a mingw objdump,
  11771. # which wouldn't understand a cygwinified path. Ahh.
  11772. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11773. else
  11774. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11775. fi
  11776. ;;
  11777. pw32*)
  11778. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11779. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11780. ;;
  11781. esac
  11782. ;;
  11783. *)
  11784. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11785. ;;
  11786. esac
  11787. dynamic_linker='Win32 ld.exe'
  11788. # FIXME: first we should search . and the directory the executable is in
  11789. shlibpath_var=PATH
  11790. ;;
  11791. darwin* | rhapsody*)
  11792. dynamic_linker="$host_os dyld"
  11793. version_type=darwin
  11794. need_lib_prefix=no
  11795. need_version=no
  11796. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11797. soname_spec='${libname}${release}${major}$shared_ext'
  11798. shlibpath_overrides_runpath=yes
  11799. shlibpath_var=DYLD_LIBRARY_PATH
  11800. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11801. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11802. ;;
  11803. dgux*)
  11804. version_type=linux
  11805. need_lib_prefix=no
  11806. need_version=no
  11807. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11808. soname_spec='${libname}${release}${shared_ext}$major'
  11809. shlibpath_var=LD_LIBRARY_PATH
  11810. ;;
  11811. freebsd1*)
  11812. dynamic_linker=no
  11813. ;;
  11814. freebsd* | dragonfly*)
  11815. # DragonFly does not have aout. When/if they implement a new
  11816. # versioning mechanism, adjust this.
  11817. if test -x /usr/bin/objformat; then
  11818. objformat=`/usr/bin/objformat`
  11819. else
  11820. case $host_os in
  11821. freebsd[123]*) objformat=aout ;;
  11822. *) objformat=elf ;;
  11823. esac
  11824. fi
  11825. version_type=freebsd-$objformat
  11826. case $version_type in
  11827. freebsd-elf*)
  11828. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11829. need_version=no
  11830. need_lib_prefix=no
  11831. ;;
  11832. freebsd-*)
  11833. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11834. need_version=yes
  11835. ;;
  11836. esac
  11837. shlibpath_var=LD_LIBRARY_PATH
  11838. case $host_os in
  11839. freebsd2*)
  11840. shlibpath_overrides_runpath=yes
  11841. ;;
  11842. freebsd3.[01]* | freebsdelf3.[01]*)
  11843. shlibpath_overrides_runpath=yes
  11844. hardcode_into_libs=yes
  11845. ;;
  11846. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11847. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11848. shlibpath_overrides_runpath=no
  11849. hardcode_into_libs=yes
  11850. ;;
  11851. *) # from 4.6 on, and DragonFly
  11852. shlibpath_overrides_runpath=yes
  11853. hardcode_into_libs=yes
  11854. ;;
  11855. esac
  11856. ;;
  11857. gnu*)
  11858. version_type=linux
  11859. need_lib_prefix=no
  11860. need_version=no
  11861. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11862. soname_spec='${libname}${release}${shared_ext}$major'
  11863. shlibpath_var=LD_LIBRARY_PATH
  11864. hardcode_into_libs=yes
  11865. ;;
  11866. hpux9* | hpux10* | hpux11*)
  11867. # Give a soname corresponding to the major version so that dld.sl refuses to
  11868. # link against other versions.
  11869. version_type=sunos
  11870. need_lib_prefix=no
  11871. need_version=no
  11872. case $host_cpu in
  11873. ia64*)
  11874. shrext_cmds='.so'
  11875. hardcode_into_libs=yes
  11876. dynamic_linker="$host_os dld.so"
  11877. shlibpath_var=LD_LIBRARY_PATH
  11878. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11879. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11880. soname_spec='${libname}${release}${shared_ext}$major'
  11881. if test "X$HPUX_IA64_MODE" = X32; then
  11882. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11883. else
  11884. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11885. fi
  11886. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11887. ;;
  11888. hppa*64*)
  11889. shrext_cmds='.sl'
  11890. hardcode_into_libs=yes
  11891. dynamic_linker="$host_os dld.sl"
  11892. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11893. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11894. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11895. soname_spec='${libname}${release}${shared_ext}$major'
  11896. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11897. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11898. ;;
  11899. *)
  11900. shrext_cmds='.sl'
  11901. dynamic_linker="$host_os dld.sl"
  11902. shlibpath_var=SHLIB_PATH
  11903. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11904. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11905. soname_spec='${libname}${release}${shared_ext}$major'
  11906. ;;
  11907. esac
  11908. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11909. postinstall_cmds='chmod 555 $lib'
  11910. ;;
  11911. interix[3-9]*)
  11912. version_type=linux
  11913. need_lib_prefix=no
  11914. need_version=no
  11915. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11916. soname_spec='${libname}${release}${shared_ext}$major'
  11917. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11918. shlibpath_var=LD_LIBRARY_PATH
  11919. shlibpath_overrides_runpath=no
  11920. hardcode_into_libs=yes
  11921. ;;
  11922. irix5* | irix6* | nonstopux*)
  11923. case $host_os in
  11924. nonstopux*) version_type=nonstopux ;;
  11925. *)
  11926. if test "$lt_cv_prog_gnu_ld" = yes; then
  11927. version_type=linux
  11928. else
  11929. version_type=irix
  11930. fi ;;
  11931. esac
  11932. need_lib_prefix=no
  11933. need_version=no
  11934. soname_spec='${libname}${release}${shared_ext}$major'
  11935. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11936. case $host_os in
  11937. irix5* | nonstopux*)
  11938. libsuff= shlibsuff=
  11939. ;;
  11940. *)
  11941. case $LD in # libtool.m4 will add one of these switches to LD
  11942. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11943. libsuff= shlibsuff= libmagic=32-bit;;
  11944. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11945. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11946. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11947. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11948. *) libsuff= shlibsuff= libmagic=never-match;;
  11949. esac
  11950. ;;
  11951. esac
  11952. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11953. shlibpath_overrides_runpath=no
  11954. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11955. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11956. hardcode_into_libs=yes
  11957. ;;
  11958. # No shared lib support for Linux oldld, aout, or coff.
  11959. linux*oldld* | linux*aout* | linux*coff*)
  11960. dynamic_linker=no
  11961. ;;
  11962. # This must be Linux ELF.
  11963. linux* | k*bsd*-gnu)
  11964. version_type=linux
  11965. need_lib_prefix=no
  11966. need_version=no
  11967. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11968. soname_spec='${libname}${release}${shared_ext}$major'
  11969. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11970. shlibpath_var=LD_LIBRARY_PATH
  11971. shlibpath_overrides_runpath=no
  11972. # This implies no fast_install, which is unacceptable.
  11973. # Some rework will be needed to allow for fast_install
  11974. # before this can be enabled.
  11975. hardcode_into_libs=yes
  11976. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11977. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11978. # Append ld.so.conf contents to the search path
  11979. if test -f /etc/ld.so.conf; then
  11980. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  11981. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  11982. fi
  11983. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11984. # powerpc, because MkLinux only supported shared libraries with the
  11985. # GNU dynamic linker. Since this was broken with cross compilers,
  11986. # most powerpc-linux boxes support dynamic linking these days and
  11987. # people can always --disable-shared, the test was removed, and we
  11988. # assume the GNU/Linux dynamic linker is in use.
  11989. dynamic_linker='GNU/Linux ld.so'
  11990. ;;
  11991. netbsd*)
  11992. version_type=sunos
  11993. need_lib_prefix=no
  11994. need_version=no
  11995. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11996. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11997. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11998. dynamic_linker='NetBSD (a.out) ld.so'
  11999. else
  12000. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12001. soname_spec='${libname}${release}${shared_ext}$major'
  12002. dynamic_linker='NetBSD ld.elf_so'
  12003. fi
  12004. shlibpath_var=LD_LIBRARY_PATH
  12005. shlibpath_overrides_runpath=yes
  12006. hardcode_into_libs=yes
  12007. ;;
  12008. newsos6)
  12009. version_type=linux
  12010. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12011. shlibpath_var=LD_LIBRARY_PATH
  12012. shlibpath_overrides_runpath=yes
  12013. ;;
  12014. nto-qnx*)
  12015. version_type=linux
  12016. need_lib_prefix=no
  12017. need_version=no
  12018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12019. soname_spec='${libname}${release}${shared_ext}$major'
  12020. shlibpath_var=LD_LIBRARY_PATH
  12021. shlibpath_overrides_runpath=yes
  12022. ;;
  12023. openbsd*)
  12024. version_type=sunos
  12025. sys_lib_dlsearch_path_spec="/usr/lib"
  12026. need_lib_prefix=no
  12027. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12028. case $host_os in
  12029. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12030. *) need_version=no ;;
  12031. esac
  12032. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12033. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12034. shlibpath_var=LD_LIBRARY_PATH
  12035. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12036. case $host_os in
  12037. openbsd2.[89] | openbsd2.[89].*)
  12038. shlibpath_overrides_runpath=no
  12039. ;;
  12040. *)
  12041. shlibpath_overrides_runpath=yes
  12042. ;;
  12043. esac
  12044. else
  12045. shlibpath_overrides_runpath=yes
  12046. fi
  12047. ;;
  12048. os2*)
  12049. libname_spec='$name'
  12050. shrext_cmds=".dll"
  12051. need_lib_prefix=no
  12052. library_names_spec='$libname${shared_ext} $libname.a'
  12053. dynamic_linker='OS/2 ld.exe'
  12054. shlibpath_var=LIBPATH
  12055. ;;
  12056. osf3* | osf4* | osf5*)
  12057. version_type=osf
  12058. need_lib_prefix=no
  12059. need_version=no
  12060. soname_spec='${libname}${release}${shared_ext}$major'
  12061. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12062. shlibpath_var=LD_LIBRARY_PATH
  12063. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12064. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12065. ;;
  12066. rdos*)
  12067. dynamic_linker=no
  12068. ;;
  12069. solaris*)
  12070. version_type=linux
  12071. need_lib_prefix=no
  12072. need_version=no
  12073. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12074. soname_spec='${libname}${release}${shared_ext}$major'
  12075. shlibpath_var=LD_LIBRARY_PATH
  12076. shlibpath_overrides_runpath=yes
  12077. hardcode_into_libs=yes
  12078. # ldd complains unless libraries are executable
  12079. postinstall_cmds='chmod +x $lib'
  12080. ;;
  12081. sunos4*)
  12082. version_type=sunos
  12083. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12084. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12085. shlibpath_var=LD_LIBRARY_PATH
  12086. shlibpath_overrides_runpath=yes
  12087. if test "$with_gnu_ld" = yes; then
  12088. need_lib_prefix=no
  12089. fi
  12090. need_version=yes
  12091. ;;
  12092. sysv4 | sysv4.3*)
  12093. version_type=linux
  12094. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12095. soname_spec='${libname}${release}${shared_ext}$major'
  12096. shlibpath_var=LD_LIBRARY_PATH
  12097. case $host_vendor in
  12098. sni)
  12099. shlibpath_overrides_runpath=no
  12100. need_lib_prefix=no
  12101. export_dynamic_flag_spec='${wl}-Blargedynsym'
  12102. runpath_var=LD_RUN_PATH
  12103. ;;
  12104. siemens)
  12105. need_lib_prefix=no
  12106. ;;
  12107. motorola)
  12108. need_lib_prefix=no
  12109. need_version=no
  12110. shlibpath_overrides_runpath=no
  12111. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12112. ;;
  12113. esac
  12114. ;;
  12115. sysv4*MP*)
  12116. if test -d /usr/nec ;then
  12117. version_type=linux
  12118. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12119. soname_spec='$libname${shared_ext}.$major'
  12120. shlibpath_var=LD_LIBRARY_PATH
  12121. fi
  12122. ;;
  12123. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12124. version_type=freebsd-elf
  12125. need_lib_prefix=no
  12126. need_version=no
  12127. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12128. soname_spec='${libname}${release}${shared_ext}$major'
  12129. shlibpath_var=LD_LIBRARY_PATH
  12130. hardcode_into_libs=yes
  12131. if test "$with_gnu_ld" = yes; then
  12132. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12133. shlibpath_overrides_runpath=no
  12134. else
  12135. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12136. shlibpath_overrides_runpath=yes
  12137. case $host_os in
  12138. sco3.2v5*)
  12139. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12140. ;;
  12141. esac
  12142. fi
  12143. sys_lib_dlsearch_path_spec='/usr/lib'
  12144. ;;
  12145. uts4*)
  12146. version_type=linux
  12147. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12148. soname_spec='${libname}${release}${shared_ext}$major'
  12149. shlibpath_var=LD_LIBRARY_PATH
  12150. ;;
  12151. *)
  12152. dynamic_linker=no
  12153. ;;
  12154. esac
  12155. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  12156. echo "${ECHO_T}$dynamic_linker" >&6; }
  12157. test "$dynamic_linker" = no && can_build_shared=no
  12158. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12159. if test "$GCC" = yes; then
  12160. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12161. fi
  12162. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  12163. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  12164. hardcode_action_CXX=
  12165. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  12166. test -n "$runpath_var_CXX" || \
  12167. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12168. # We can hardcode non-existent directories.
  12169. if test "$hardcode_direct_CXX" != no &&
  12170. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12171. # have to relink, otherwise we might link with an installed library
  12172. # when we should be linking with a yet-to-be-installed one
  12173. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12174. test "$hardcode_minus_L_CXX" != no; then
  12175. # Linking always hardcodes the temporary library directory.
  12176. hardcode_action_CXX=relink
  12177. else
  12178. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12179. hardcode_action_CXX=immediate
  12180. fi
  12181. else
  12182. # We cannot hardcode anything, or else we can only hardcode existing
  12183. # directories.
  12184. hardcode_action_CXX=unsupported
  12185. fi
  12186. { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  12187. echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  12188. if test "$hardcode_action_CXX" = relink; then
  12189. # Fast installation is not supported
  12190. enable_fast_install=no
  12191. elif test "$shlibpath_overrides_runpath" = yes ||
  12192. test "$enable_shared" = no; then
  12193. # Fast installation is not necessary
  12194. enable_fast_install=needless
  12195. fi
  12196. # The else clause should only fire when bootstrapping the
  12197. # libtool distribution, otherwise you forgot to ship ltmain.sh
  12198. # with your package, and you will get complaints that there are
  12199. # no rules to generate ltmain.sh.
  12200. if test -f "$ltmain"; then
  12201. # See if we are running on zsh, and set the options which allow our commands through
  12202. # without removal of \ escapes.
  12203. if test -n "${ZSH_VERSION+set}" ; then
  12204. setopt NO_GLOB_SUBST
  12205. fi
  12206. # Now quote all the things that may contain metacharacters while being
  12207. # careful not to overquote the AC_SUBSTed values. We take copies of the
  12208. # variables and quote the copies for generation of the libtool script.
  12209. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  12210. SED SHELL STRIP \
  12211. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  12212. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  12213. deplibs_check_method reload_flag reload_cmds need_locks \
  12214. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  12215. lt_cv_sys_global_symbol_to_c_name_address \
  12216. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  12217. old_postinstall_cmds old_postuninstall_cmds \
  12218. compiler_CXX \
  12219. CC_CXX \
  12220. LD_CXX \
  12221. lt_prog_compiler_wl_CXX \
  12222. lt_prog_compiler_pic_CXX \
  12223. lt_prog_compiler_static_CXX \
  12224. lt_prog_compiler_no_builtin_flag_CXX \
  12225. export_dynamic_flag_spec_CXX \
  12226. thread_safe_flag_spec_CXX \
  12227. whole_archive_flag_spec_CXX \
  12228. enable_shared_with_static_runtimes_CXX \
  12229. old_archive_cmds_CXX \
  12230. old_archive_from_new_cmds_CXX \
  12231. predep_objects_CXX \
  12232. postdep_objects_CXX \
  12233. predeps_CXX \
  12234. postdeps_CXX \
  12235. compiler_lib_search_path_CXX \
  12236. archive_cmds_CXX \
  12237. archive_expsym_cmds_CXX \
  12238. postinstall_cmds_CXX \
  12239. postuninstall_cmds_CXX \
  12240. old_archive_from_expsyms_cmds_CXX \
  12241. allow_undefined_flag_CXX \
  12242. no_undefined_flag_CXX \
  12243. export_symbols_cmds_CXX \
  12244. hardcode_libdir_flag_spec_CXX \
  12245. hardcode_libdir_flag_spec_ld_CXX \
  12246. hardcode_libdir_separator_CXX \
  12247. hardcode_automatic_CXX \
  12248. module_cmds_CXX \
  12249. module_expsym_cmds_CXX \
  12250. lt_cv_prog_compiler_c_o_CXX \
  12251. fix_srcfile_path_CXX \
  12252. exclude_expsyms_CXX \
  12253. include_expsyms_CXX; do
  12254. case $var in
  12255. old_archive_cmds_CXX | \
  12256. old_archive_from_new_cmds_CXX | \
  12257. archive_cmds_CXX | \
  12258. archive_expsym_cmds_CXX | \
  12259. module_cmds_CXX | \
  12260. module_expsym_cmds_CXX | \
  12261. old_archive_from_expsyms_cmds_CXX | \
  12262. export_symbols_cmds_CXX | \
  12263. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  12264. postinstall_cmds | postuninstall_cmds | \
  12265. old_postinstall_cmds | old_postuninstall_cmds | \
  12266. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  12267. # Double-quote double-evaled strings.
  12268. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  12269. ;;
  12270. *)
  12271. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  12272. ;;
  12273. esac
  12274. done
  12275. case $lt_echo in
  12276. *'\$0 --fallback-echo"')
  12277. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  12278. ;;
  12279. esac
  12280. cfgfile="$ofile"
  12281. cat <<__EOF__ >> "$cfgfile"
  12282. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  12283. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12284. # Shell to use when invoking shell scripts.
  12285. SHELL=$lt_SHELL
  12286. # Whether or not to build shared libraries.
  12287. build_libtool_libs=$enable_shared
  12288. # Whether or not to build static libraries.
  12289. build_old_libs=$enable_static
  12290. # Whether or not to add -lc for building shared libraries.
  12291. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  12292. # Whether or not to disallow shared libs when runtime libs are static
  12293. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  12294. # Whether or not to optimize for fast installation.
  12295. fast_install=$enable_fast_install
  12296. # The host system.
  12297. host_alias=$host_alias
  12298. host=$host
  12299. host_os=$host_os
  12300. # The build system.
  12301. build_alias=$build_alias
  12302. build=$build
  12303. build_os=$build_os
  12304. # An echo program that does not interpret backslashes.
  12305. echo=$lt_echo
  12306. # The archiver.
  12307. AR=$lt_AR
  12308. AR_FLAGS=$lt_AR_FLAGS
  12309. # A C compiler.
  12310. LTCC=$lt_LTCC
  12311. # LTCC compiler flags.
  12312. LTCFLAGS=$lt_LTCFLAGS
  12313. # A language-specific compiler.
  12314. CC=$lt_compiler_CXX
  12315. # Is the compiler the GNU C compiler?
  12316. with_gcc=$GCC_CXX
  12317. # An ERE matcher.
  12318. EGREP=$lt_EGREP
  12319. # The linker used to build libraries.
  12320. LD=$lt_LD_CXX
  12321. # Whether we need hard or soft links.
  12322. LN_S=$lt_LN_S
  12323. # A BSD-compatible nm program.
  12324. NM=$lt_NM
  12325. # A symbol stripping program
  12326. STRIP=$lt_STRIP
  12327. # Used to examine libraries when file_magic_cmd begins "file"
  12328. MAGIC_CMD=$MAGIC_CMD
  12329. # Used on cygwin: DLL creation program.
  12330. DLLTOOL="$DLLTOOL"
  12331. # Used on cygwin: object dumper.
  12332. OBJDUMP="$OBJDUMP"
  12333. # Used on cygwin: assembler.
  12334. AS="$AS"
  12335. # The name of the directory that contains temporary libtool files.
  12336. objdir=$objdir
  12337. # How to create reloadable object files.
  12338. reload_flag=$lt_reload_flag
  12339. reload_cmds=$lt_reload_cmds
  12340. # How to pass a linker flag through the compiler.
  12341. wl=$lt_lt_prog_compiler_wl_CXX
  12342. # Object file suffix (normally "o").
  12343. objext="$ac_objext"
  12344. # Old archive suffix (normally "a").
  12345. libext="$libext"
  12346. # Shared library suffix (normally ".so").
  12347. shrext_cmds='$shrext_cmds'
  12348. # Executable file suffix (normally "").
  12349. exeext="$exeext"
  12350. # Additional compiler flags for building library objects.
  12351. pic_flag=$lt_lt_prog_compiler_pic_CXX
  12352. pic_mode=$pic_mode
  12353. # What is the maximum length of a command?
  12354. max_cmd_len=$lt_cv_sys_max_cmd_len
  12355. # Does compiler simultaneously support -c and -o options?
  12356. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  12357. # Must we lock files when doing compilation?
  12358. need_locks=$lt_need_locks
  12359. # Do we need the lib prefix for modules?
  12360. need_lib_prefix=$need_lib_prefix
  12361. # Do we need a version for libraries?
  12362. need_version=$need_version
  12363. # Whether dlopen is supported.
  12364. dlopen_support=$enable_dlopen
  12365. # Whether dlopen of programs is supported.
  12366. dlopen_self=$enable_dlopen_self
  12367. # Whether dlopen of statically linked programs is supported.
  12368. dlopen_self_static=$enable_dlopen_self_static
  12369. # Compiler flag to prevent dynamic linking.
  12370. link_static_flag=$lt_lt_prog_compiler_static_CXX
  12371. # Compiler flag to turn off builtin functions.
  12372. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  12373. # Compiler flag to allow reflexive dlopens.
  12374. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  12375. # Compiler flag to generate shared objects directly from archives.
  12376. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  12377. # Compiler flag to generate thread-safe objects.
  12378. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  12379. # Library versioning type.
  12380. version_type=$version_type
  12381. # Format of library name prefix.
  12382. libname_spec=$lt_libname_spec
  12383. # List of archive names. First name is the real one, the rest are links.
  12384. # The last name is the one that the linker finds with -lNAME.
  12385. library_names_spec=$lt_library_names_spec
  12386. # The coded name of the library, if different from the real name.
  12387. soname_spec=$lt_soname_spec
  12388. # Commands used to build and install an old-style archive.
  12389. RANLIB=$lt_RANLIB
  12390. old_archive_cmds=$lt_old_archive_cmds_CXX
  12391. old_postinstall_cmds=$lt_old_postinstall_cmds
  12392. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12393. # Create an old-style archive from a shared archive.
  12394. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  12395. # Create a temporary old-style archive to link instead of a shared archive.
  12396. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  12397. # Commands used to build and install a shared archive.
  12398. archive_cmds=$lt_archive_cmds_CXX
  12399. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  12400. postinstall_cmds=$lt_postinstall_cmds
  12401. postuninstall_cmds=$lt_postuninstall_cmds
  12402. # Commands used to build a loadable module (assumed same as above if empty)
  12403. module_cmds=$lt_module_cmds_CXX
  12404. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  12405. # Commands to strip libraries.
  12406. old_striplib=$lt_old_striplib
  12407. striplib=$lt_striplib
  12408. # Dependencies to place before the objects being linked to create a
  12409. # shared library.
  12410. predep_objects=$lt_predep_objects_CXX
  12411. # Dependencies to place after the objects being linked to create a
  12412. # shared library.
  12413. postdep_objects=$lt_postdep_objects_CXX
  12414. # Dependencies to place before the objects being linked to create a
  12415. # shared library.
  12416. predeps=$lt_predeps_CXX
  12417. # Dependencies to place after the objects being linked to create a
  12418. # shared library.
  12419. postdeps=$lt_postdeps_CXX
  12420. # The library search path used internally by the compiler when linking
  12421. # a shared library.
  12422. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  12423. # Method to check whether dependent libraries are shared objects.
  12424. deplibs_check_method=$lt_deplibs_check_method
  12425. # Command to use when deplibs_check_method == file_magic.
  12426. file_magic_cmd=$lt_file_magic_cmd
  12427. # Flag that allows shared libraries with undefined symbols to be built.
  12428. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  12429. # Flag that forces no undefined symbols.
  12430. no_undefined_flag=$lt_no_undefined_flag_CXX
  12431. # Commands used to finish a libtool library installation in a directory.
  12432. finish_cmds=$lt_finish_cmds
  12433. # Same as above, but a single script fragment to be evaled but not shown.
  12434. finish_eval=$lt_finish_eval
  12435. # Take the output of nm and produce a listing of raw symbols and C names.
  12436. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12437. # Transform the output of nm in a proper C declaration
  12438. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12439. # Transform the output of nm in a C name address pair
  12440. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12441. # This is the shared library runtime path variable.
  12442. runpath_var=$runpath_var
  12443. # This is the shared library path variable.
  12444. shlibpath_var=$shlibpath_var
  12445. # Is shlibpath searched before the hard-coded library search path?
  12446. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12447. # How to hardcode a shared library path into an executable.
  12448. hardcode_action=$hardcode_action_CXX
  12449. # Whether we should hardcode library paths into libraries.
  12450. hardcode_into_libs=$hardcode_into_libs
  12451. # Flag to hardcode \$libdir into a binary during linking.
  12452. # This must work even if \$libdir does not exist.
  12453. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  12454. # If ld is used when linking, flag to hardcode \$libdir into
  12455. # a binary during linking. This must work even if \$libdir does
  12456. # not exist.
  12457. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  12458. # Whether we need a single -rpath flag with a separated argument.
  12459. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  12460. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12461. # resulting binary.
  12462. hardcode_direct=$hardcode_direct_CXX
  12463. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12464. # resulting binary.
  12465. hardcode_minus_L=$hardcode_minus_L_CXX
  12466. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12467. # the resulting binary.
  12468. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  12469. # Set to yes if building a shared library automatically hardcodes DIR into the library
  12470. # and all subsequent libraries and executables linked against it.
  12471. hardcode_automatic=$hardcode_automatic_CXX
  12472. # Variables whose values should be saved in libtool wrapper scripts and
  12473. # restored at relink time.
  12474. variables_saved_for_relink="$variables_saved_for_relink"
  12475. # Whether libtool must link a program against all its dependency libraries.
  12476. link_all_deplibs=$link_all_deplibs_CXX
  12477. # Compile-time system search path for libraries
  12478. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12479. # Run-time system search path for libraries
  12480. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12481. # Fix the shell variable \$srcfile for the compiler.
  12482. fix_srcfile_path=$lt_fix_srcfile_path
  12483. # Set to yes if exported symbols are required.
  12484. always_export_symbols=$always_export_symbols_CXX
  12485. # The commands to list exported symbols.
  12486. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  12487. # The commands to extract the exported symbol list from a shared archive.
  12488. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12489. # Symbols that should not be listed in the preloaded symbols.
  12490. exclude_expsyms=$lt_exclude_expsyms_CXX
  12491. # Symbols that must always be exported.
  12492. include_expsyms=$lt_include_expsyms_CXX
  12493. # ### END LIBTOOL TAG CONFIG: $tagname
  12494. __EOF__
  12495. else
  12496. # If there is no Makefile yet, we rely on a make rule to execute
  12497. # `config.status --recheck' to rerun these tests and create the
  12498. # libtool script then.
  12499. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  12500. if test -f "$ltmain_in"; then
  12501. test -f Makefile && make "$ltmain"
  12502. fi
  12503. fi
  12504. ac_ext=c
  12505. ac_cpp='$CPP $CPPFLAGS'
  12506. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12507. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12508. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12509. CC=$lt_save_CC
  12510. LDCXX=$LD
  12511. LD=$lt_save_LD
  12512. GCC=$lt_save_GCC
  12513. with_gnu_ldcxx=$with_gnu_ld
  12514. with_gnu_ld=$lt_save_with_gnu_ld
  12515. lt_cv_path_LDCXX=$lt_cv_path_LD
  12516. lt_cv_path_LD=$lt_save_path_LD
  12517. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12518. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12519. else
  12520. tagname=""
  12521. fi
  12522. ;;
  12523. F77)
  12524. if test -n "$F77" && test "X$F77" != "Xno"; then
  12525. ac_ext=f
  12526. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  12527. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12528. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  12529. archive_cmds_need_lc_F77=no
  12530. allow_undefined_flag_F77=
  12531. always_export_symbols_F77=no
  12532. archive_expsym_cmds_F77=
  12533. export_dynamic_flag_spec_F77=
  12534. hardcode_direct_F77=no
  12535. hardcode_libdir_flag_spec_F77=
  12536. hardcode_libdir_flag_spec_ld_F77=
  12537. hardcode_libdir_separator_F77=
  12538. hardcode_minus_L_F77=no
  12539. hardcode_automatic_F77=no
  12540. module_cmds_F77=
  12541. module_expsym_cmds_F77=
  12542. link_all_deplibs_F77=unknown
  12543. old_archive_cmds_F77=$old_archive_cmds
  12544. no_undefined_flag_F77=
  12545. whole_archive_flag_spec_F77=
  12546. enable_shared_with_static_runtimes_F77=no
  12547. # Source file extension for f77 test sources.
  12548. ac_ext=f
  12549. # Object file extension for compiled f77 test sources.
  12550. objext=o
  12551. objext_F77=$objext
  12552. # Code to be used in simple compile tests
  12553. lt_simple_compile_test_code="\
  12554. subroutine t
  12555. return
  12556. end
  12557. "
  12558. # Code to be used in simple link tests
  12559. lt_simple_link_test_code="\
  12560. program t
  12561. end
  12562. "
  12563. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12564. # If no C compiler was specified, use CC.
  12565. LTCC=${LTCC-"$CC"}
  12566. # If no C compiler flags were specified, use CFLAGS.
  12567. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12568. # Allow CC to be a program name with arguments.
  12569. compiler=$CC
  12570. # save warnings/boilerplate of simple test code
  12571. ac_outfile=conftest.$ac_objext
  12572. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12573. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12574. _lt_compiler_boilerplate=`cat conftest.err`
  12575. $rm conftest*
  12576. ac_outfile=conftest.$ac_objext
  12577. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12578. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12579. _lt_linker_boilerplate=`cat conftest.err`
  12580. $rm conftest*
  12581. # Allow CC to be a program name with arguments.
  12582. lt_save_CC="$CC"
  12583. CC=${F77-"f77"}
  12584. compiler=$CC
  12585. compiler_F77=$CC
  12586. for cc_temp in $compiler""; do
  12587. case $cc_temp in
  12588. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12589. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12590. \-*) ;;
  12591. *) break;;
  12592. esac
  12593. done
  12594. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12595. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  12596. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  12597. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  12598. echo "${ECHO_T}$can_build_shared" >&6; }
  12599. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  12600. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  12601. test "$can_build_shared" = "no" && enable_shared=no
  12602. # On AIX, shared libraries and static libraries use the same namespace, and
  12603. # are all built from PIC.
  12604. case $host_os in
  12605. aix3*)
  12606. test "$enable_shared" = yes && enable_static=no
  12607. if test -n "$RANLIB"; then
  12608. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12609. postinstall_cmds='$RANLIB $lib'
  12610. fi
  12611. ;;
  12612. aix4* | aix5*)
  12613. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12614. test "$enable_shared" = yes && enable_static=no
  12615. fi
  12616. ;;
  12617. esac
  12618. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  12619. echo "${ECHO_T}$enable_shared" >&6; }
  12620. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  12621. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  12622. # Make sure either enable_shared or enable_static is yes.
  12623. test "$enable_shared" = yes || enable_static=yes
  12624. { echo "$as_me:$LINENO: result: $enable_static" >&5
  12625. echo "${ECHO_T}$enable_static" >&6; }
  12626. GCC_F77="$G77"
  12627. LD_F77="$LD"
  12628. lt_prog_compiler_wl_F77=
  12629. lt_prog_compiler_pic_F77=
  12630. lt_prog_compiler_static_F77=
  12631. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12632. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  12633. if test "$GCC" = yes; then
  12634. lt_prog_compiler_wl_F77='-Wl,'
  12635. lt_prog_compiler_static_F77='-static'
  12636. case $host_os in
  12637. aix*)
  12638. # All AIX code is PIC.
  12639. if test "$host_cpu" = ia64; then
  12640. # AIX 5 now supports IA64 processor
  12641. lt_prog_compiler_static_F77='-Bstatic'
  12642. fi
  12643. ;;
  12644. amigaos*)
  12645. # FIXME: we need at least 68020 code to build shared libraries, but
  12646. # adding the `-m68020' flag to GCC prevents building anything better,
  12647. # like `-m68040'.
  12648. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  12649. ;;
  12650. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12651. # PIC is the default for these OSes.
  12652. ;;
  12653. mingw* | cygwin* | pw32* | os2*)
  12654. # This hack is so that the source file can tell whether it is being
  12655. # built for inclusion in a dll (and should export symbols for example).
  12656. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12657. # (--disable-auto-import) libraries
  12658. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12659. ;;
  12660. darwin* | rhapsody*)
  12661. # PIC is the default on this platform
  12662. # Common symbols not allowed in MH_DYLIB files
  12663. lt_prog_compiler_pic_F77='-fno-common'
  12664. ;;
  12665. interix[3-9]*)
  12666. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12667. # Instead, we relocate shared libraries at runtime.
  12668. ;;
  12669. msdosdjgpp*)
  12670. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12671. # on systems that don't support them.
  12672. lt_prog_compiler_can_build_shared_F77=no
  12673. enable_shared=no
  12674. ;;
  12675. sysv4*MP*)
  12676. if test -d /usr/nec; then
  12677. lt_prog_compiler_pic_F77=-Kconform_pic
  12678. fi
  12679. ;;
  12680. hpux*)
  12681. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12682. # not for PA HP-UX.
  12683. case $host_cpu in
  12684. hppa*64*|ia64*)
  12685. # +Z the default
  12686. ;;
  12687. *)
  12688. lt_prog_compiler_pic_F77='-fPIC'
  12689. ;;
  12690. esac
  12691. ;;
  12692. *)
  12693. lt_prog_compiler_pic_F77='-fPIC'
  12694. ;;
  12695. esac
  12696. else
  12697. # PORTME Check for flag to pass linker flags through the system compiler.
  12698. case $host_os in
  12699. aix*)
  12700. lt_prog_compiler_wl_F77='-Wl,'
  12701. if test "$host_cpu" = ia64; then
  12702. # AIX 5 now supports IA64 processor
  12703. lt_prog_compiler_static_F77='-Bstatic'
  12704. else
  12705. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  12706. fi
  12707. ;;
  12708. darwin*)
  12709. # PIC is the default on this platform
  12710. # Common symbols not allowed in MH_DYLIB files
  12711. case $cc_basename in
  12712. xlc*)
  12713. lt_prog_compiler_pic_F77='-qnocommon'
  12714. lt_prog_compiler_wl_F77='-Wl,'
  12715. ;;
  12716. esac
  12717. ;;
  12718. mingw* | cygwin* | pw32* | os2*)
  12719. # This hack is so that the source file can tell whether it is being
  12720. # built for inclusion in a dll (and should export symbols for example).
  12721. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12722. ;;
  12723. hpux9* | hpux10* | hpux11*)
  12724. lt_prog_compiler_wl_F77='-Wl,'
  12725. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12726. # not for PA HP-UX.
  12727. case $host_cpu in
  12728. hppa*64*|ia64*)
  12729. # +Z the default
  12730. ;;
  12731. *)
  12732. lt_prog_compiler_pic_F77='+Z'
  12733. ;;
  12734. esac
  12735. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12736. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  12737. ;;
  12738. irix5* | irix6* | nonstopux*)
  12739. lt_prog_compiler_wl_F77='-Wl,'
  12740. # PIC (with -KPIC) is the default.
  12741. lt_prog_compiler_static_F77='-non_shared'
  12742. ;;
  12743. newsos6)
  12744. lt_prog_compiler_pic_F77='-KPIC'
  12745. lt_prog_compiler_static_F77='-Bstatic'
  12746. ;;
  12747. linux* | k*bsd*-gnu)
  12748. case $cc_basename in
  12749. icc* | ecc*)
  12750. lt_prog_compiler_wl_F77='-Wl,'
  12751. lt_prog_compiler_pic_F77='-KPIC'
  12752. lt_prog_compiler_static_F77='-static'
  12753. ;;
  12754. pgcc* | pgf77* | pgf90* | pgf95*)
  12755. # Portland Group compilers (*not* the Pentium gcc compiler,
  12756. # which looks to be a dead project)
  12757. lt_prog_compiler_wl_F77='-Wl,'
  12758. lt_prog_compiler_pic_F77='-fpic'
  12759. lt_prog_compiler_static_F77='-Bstatic'
  12760. ;;
  12761. ccc*)
  12762. lt_prog_compiler_wl_F77='-Wl,'
  12763. # All Alpha code is PIC.
  12764. lt_prog_compiler_static_F77='-non_shared'
  12765. ;;
  12766. *)
  12767. case `$CC -V 2>&1 | sed 5q` in
  12768. *Sun\ C*)
  12769. # Sun C 5.9
  12770. lt_prog_compiler_pic_F77='-KPIC'
  12771. lt_prog_compiler_static_F77='-Bstatic'
  12772. lt_prog_compiler_wl_F77='-Wl,'
  12773. ;;
  12774. *Sun\ F*)
  12775. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  12776. lt_prog_compiler_pic_F77='-KPIC'
  12777. lt_prog_compiler_static_F77='-Bstatic'
  12778. lt_prog_compiler_wl_F77=''
  12779. ;;
  12780. esac
  12781. ;;
  12782. esac
  12783. ;;
  12784. osf3* | osf4* | osf5*)
  12785. lt_prog_compiler_wl_F77='-Wl,'
  12786. # All OSF/1 code is PIC.
  12787. lt_prog_compiler_static_F77='-non_shared'
  12788. ;;
  12789. rdos*)
  12790. lt_prog_compiler_static_F77='-non_shared'
  12791. ;;
  12792. solaris*)
  12793. lt_prog_compiler_pic_F77='-KPIC'
  12794. lt_prog_compiler_static_F77='-Bstatic'
  12795. case $cc_basename in
  12796. f77* | f90* | f95*)
  12797. lt_prog_compiler_wl_F77='-Qoption ld ';;
  12798. *)
  12799. lt_prog_compiler_wl_F77='-Wl,';;
  12800. esac
  12801. ;;
  12802. sunos4*)
  12803. lt_prog_compiler_wl_F77='-Qoption ld '
  12804. lt_prog_compiler_pic_F77='-PIC'
  12805. lt_prog_compiler_static_F77='-Bstatic'
  12806. ;;
  12807. sysv4 | sysv4.2uw2* | sysv4.3*)
  12808. lt_prog_compiler_wl_F77='-Wl,'
  12809. lt_prog_compiler_pic_F77='-KPIC'
  12810. lt_prog_compiler_static_F77='-Bstatic'
  12811. ;;
  12812. sysv4*MP*)
  12813. if test -d /usr/nec ;then
  12814. lt_prog_compiler_pic_F77='-Kconform_pic'
  12815. lt_prog_compiler_static_F77='-Bstatic'
  12816. fi
  12817. ;;
  12818. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12819. lt_prog_compiler_wl_F77='-Wl,'
  12820. lt_prog_compiler_pic_F77='-KPIC'
  12821. lt_prog_compiler_static_F77='-Bstatic'
  12822. ;;
  12823. unicos*)
  12824. lt_prog_compiler_wl_F77='-Wl,'
  12825. lt_prog_compiler_can_build_shared_F77=no
  12826. ;;
  12827. uts4*)
  12828. lt_prog_compiler_pic_F77='-pic'
  12829. lt_prog_compiler_static_F77='-Bstatic'
  12830. ;;
  12831. *)
  12832. lt_prog_compiler_can_build_shared_F77=no
  12833. ;;
  12834. esac
  12835. fi
  12836. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  12837. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  12838. #
  12839. # Check to make sure the PIC flag actually works.
  12840. #
  12841. if test -n "$lt_prog_compiler_pic_F77"; then
  12842. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  12843. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  12844. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  12845. echo $ECHO_N "(cached) $ECHO_C" >&6
  12846. else
  12847. lt_prog_compiler_pic_works_F77=no
  12848. ac_outfile=conftest.$ac_objext
  12849. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12850. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  12851. # Insert the option either (1) after the last *FLAGS variable, or
  12852. # (2) before a word containing "conftest.", or (3) at the end.
  12853. # Note that $ac_compile itself does not contain backslashes and begins
  12854. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12855. # The option is referenced via a variable to avoid confusing sed.
  12856. lt_compile=`echo "$ac_compile" | $SED \
  12857. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12858. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12859. -e 's:$: $lt_compiler_flag:'`
  12860. (eval echo "\"\$as_me:14369: $lt_compile\"" >&5)
  12861. (eval "$lt_compile" 2>conftest.err)
  12862. ac_status=$?
  12863. cat conftest.err >&5
  12864. echo "$as_me:14373: \$? = $ac_status" >&5
  12865. if (exit $ac_status) && test -s "$ac_outfile"; then
  12866. # The compiler can only warn and ignore the option if not recognized
  12867. # So say no if there are warnings other than the usual output.
  12868. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12869. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12870. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12871. lt_prog_compiler_pic_works_F77=yes
  12872. fi
  12873. fi
  12874. $rm conftest*
  12875. fi
  12876. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  12877. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  12878. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  12879. case $lt_prog_compiler_pic_F77 in
  12880. "" | " "*) ;;
  12881. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12882. esac
  12883. else
  12884. lt_prog_compiler_pic_F77=
  12885. lt_prog_compiler_can_build_shared_F77=no
  12886. fi
  12887. fi
  12888. case $host_os in
  12889. # For platforms which do not support PIC, -DPIC is meaningless:
  12890. *djgpp*)
  12891. lt_prog_compiler_pic_F77=
  12892. ;;
  12893. *)
  12894. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12895. ;;
  12896. esac
  12897. #
  12898. # Check to make sure the static flag actually works.
  12899. #
  12900. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  12901. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12902. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  12903. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  12904. echo $ECHO_N "(cached) $ECHO_C" >&6
  12905. else
  12906. lt_prog_compiler_static_works_F77=no
  12907. save_LDFLAGS="$LDFLAGS"
  12908. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12909. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12910. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12911. # The linker can only warn and ignore the option if not recognized
  12912. # So say no if there are warnings
  12913. if test -s conftest.err; then
  12914. # Append any errors to the config.log.
  12915. cat conftest.err 1>&5
  12916. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12917. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12918. if diff conftest.exp conftest.er2 >/dev/null; then
  12919. lt_prog_compiler_static_works_F77=yes
  12920. fi
  12921. else
  12922. lt_prog_compiler_static_works_F77=yes
  12923. fi
  12924. fi
  12925. $rm conftest*
  12926. LDFLAGS="$save_LDFLAGS"
  12927. fi
  12928. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  12929. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
  12930. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  12931. :
  12932. else
  12933. lt_prog_compiler_static_F77=
  12934. fi
  12935. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12936. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  12937. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  12938. echo $ECHO_N "(cached) $ECHO_C" >&6
  12939. else
  12940. lt_cv_prog_compiler_c_o_F77=no
  12941. $rm -r conftest 2>/dev/null
  12942. mkdir conftest
  12943. cd conftest
  12944. mkdir out
  12945. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12946. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12947. # Insert the option either (1) after the last *FLAGS variable, or
  12948. # (2) before a word containing "conftest.", or (3) at the end.
  12949. # Note that $ac_compile itself does not contain backslashes and begins
  12950. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12951. lt_compile=`echo "$ac_compile" | $SED \
  12952. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12953. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12954. -e 's:$: $lt_compiler_flag:'`
  12955. (eval echo "\"\$as_me:14473: $lt_compile\"" >&5)
  12956. (eval "$lt_compile" 2>out/conftest.err)
  12957. ac_status=$?
  12958. cat out/conftest.err >&5
  12959. echo "$as_me:14477: \$? = $ac_status" >&5
  12960. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12961. then
  12962. # The compiler can only warn and ignore the option if not recognized
  12963. # So say no if there are warnings
  12964. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12965. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12966. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12967. lt_cv_prog_compiler_c_o_F77=yes
  12968. fi
  12969. fi
  12970. chmod u+w . 2>&5
  12971. $rm conftest*
  12972. # SGI C++ compiler will create directory out/ii_files/ for
  12973. # template instantiation
  12974. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12975. $rm out/* && rmdir out
  12976. cd ..
  12977. rmdir conftest
  12978. $rm conftest*
  12979. fi
  12980. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  12981. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  12982. hard_links="nottested"
  12983. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  12984. # do not overwrite the value of need_locks provided by the user
  12985. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12986. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  12987. hard_links=yes
  12988. $rm conftest*
  12989. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12990. touch conftest.a
  12991. ln conftest.a conftest.b 2>&5 || hard_links=no
  12992. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12993. { echo "$as_me:$LINENO: result: $hard_links" >&5
  12994. echo "${ECHO_T}$hard_links" >&6; }
  12995. if test "$hard_links" = no; then
  12996. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12997. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12998. need_locks=warn
  12999. fi
  13000. else
  13001. need_locks=no
  13002. fi
  13003. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13004. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  13005. runpath_var=
  13006. allow_undefined_flag_F77=
  13007. enable_shared_with_static_runtimes_F77=no
  13008. archive_cmds_F77=
  13009. archive_expsym_cmds_F77=
  13010. old_archive_From_new_cmds_F77=
  13011. old_archive_from_expsyms_cmds_F77=
  13012. export_dynamic_flag_spec_F77=
  13013. whole_archive_flag_spec_F77=
  13014. thread_safe_flag_spec_F77=
  13015. hardcode_libdir_flag_spec_F77=
  13016. hardcode_libdir_flag_spec_ld_F77=
  13017. hardcode_libdir_separator_F77=
  13018. hardcode_direct_F77=no
  13019. hardcode_minus_L_F77=no
  13020. hardcode_shlibpath_var_F77=unsupported
  13021. link_all_deplibs_F77=unknown
  13022. hardcode_automatic_F77=no
  13023. module_cmds_F77=
  13024. module_expsym_cmds_F77=
  13025. always_export_symbols_F77=no
  13026. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13027. # include_expsyms should be a list of space-separated symbols to be *always*
  13028. # included in the symbol list
  13029. include_expsyms_F77=
  13030. # exclude_expsyms can be an extended regexp of symbols to exclude
  13031. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  13032. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  13033. # as well as any symbol that contains `d'.
  13034. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  13035. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  13036. # platforms (ab)use it in PIC code, but their linkers get confused if
  13037. # the symbol is explicitly referenced. Since portable code cannot
  13038. # rely on this symbol name, it's probably fine to never include it in
  13039. # preloaded symbol tables.
  13040. extract_expsyms_cmds=
  13041. # Just being paranoid about ensuring that cc_basename is set.
  13042. for cc_temp in $compiler""; do
  13043. case $cc_temp in
  13044. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13045. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13046. \-*) ;;
  13047. *) break;;
  13048. esac
  13049. done
  13050. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13051. case $host_os in
  13052. cygwin* | mingw* | pw32*)
  13053. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  13054. # When not using gcc, we currently assume that we are using
  13055. # Microsoft Visual C++.
  13056. if test "$GCC" != yes; then
  13057. with_gnu_ld=no
  13058. fi
  13059. ;;
  13060. interix*)
  13061. # we just hope/assume this is gcc and not c89 (= MSVC++)
  13062. with_gnu_ld=yes
  13063. ;;
  13064. openbsd*)
  13065. with_gnu_ld=no
  13066. ;;
  13067. esac
  13068. ld_shlibs_F77=yes
  13069. if test "$with_gnu_ld" = yes; then
  13070. # If archive_cmds runs LD, not CC, wlarc should be empty
  13071. wlarc='${wl}'
  13072. # Set some defaults for GNU ld with shared library support. These
  13073. # are reset later if shared libraries are not supported. Putting them
  13074. # here allows them to be overridden if necessary.
  13075. runpath_var=LD_RUN_PATH
  13076. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  13077. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  13078. # ancient GNU ld didn't support --whole-archive et. al.
  13079. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  13080. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13081. else
  13082. whole_archive_flag_spec_F77=
  13083. fi
  13084. supports_anon_versioning=no
  13085. case `$LD -v 2>/dev/null` in
  13086. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  13087. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  13088. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  13089. *\ 2.11.*) ;; # other 2.11 versions
  13090. *) supports_anon_versioning=yes ;;
  13091. esac
  13092. # See if GNU ld supports shared libraries.
  13093. case $host_os in
  13094. aix3* | aix4* | aix5*)
  13095. # On AIX/PPC, the GNU linker is very broken
  13096. if test "$host_cpu" != ia64; then
  13097. ld_shlibs_F77=no
  13098. cat <<EOF 1>&2
  13099. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  13100. *** to be unable to reliably create shared libraries on AIX.
  13101. *** Therefore, libtool is disabling shared libraries support. If you
  13102. *** really care for shared libraries, you may want to modify your PATH
  13103. *** so that a non-GNU linker is found, and then restart.
  13104. EOF
  13105. fi
  13106. ;;
  13107. amigaos*)
  13108. archive_cmds_F77='$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)'
  13109. hardcode_libdir_flag_spec_F77='-L$libdir'
  13110. hardcode_minus_L_F77=yes
  13111. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  13112. # that the semantics of dynamic libraries on AmigaOS, at least up
  13113. # to version 4, is to share data among multiple programs linked
  13114. # with the same dynamic library. Since this doesn't match the
  13115. # behavior of shared libraries on other platforms, we can't use
  13116. # them.
  13117. ld_shlibs_F77=no
  13118. ;;
  13119. beos*)
  13120. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13121. allow_undefined_flag_F77=unsupported
  13122. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13123. # support --undefined. This deserves some investigation. FIXME
  13124. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13125. else
  13126. ld_shlibs_F77=no
  13127. fi
  13128. ;;
  13129. cygwin* | mingw* | pw32*)
  13130. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  13131. # as there is no search path for DLLs.
  13132. hardcode_libdir_flag_spec_F77='-L$libdir'
  13133. allow_undefined_flag_F77=unsupported
  13134. always_export_symbols_F77=no
  13135. enable_shared_with_static_runtimes_F77=yes
  13136. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  13137. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13138. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13139. # If the export-symbols file already is a .def file (1st line
  13140. # is EXPORTS), use it as is; otherwise, prepend...
  13141. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13142. cp $export_symbols $output_objdir/$soname.def;
  13143. else
  13144. echo EXPORTS > $output_objdir/$soname.def;
  13145. cat $export_symbols >> $output_objdir/$soname.def;
  13146. fi~
  13147. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13148. else
  13149. ld_shlibs_F77=no
  13150. fi
  13151. ;;
  13152. interix[3-9]*)
  13153. hardcode_direct_F77=no
  13154. hardcode_shlibpath_var_F77=no
  13155. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13156. export_dynamic_flag_spec_F77='${wl}-E'
  13157. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13158. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13159. # default) and relocated if they conflict, which is a slow very memory
  13160. # consuming and fragmenting process. To avoid this, we pick a random,
  13161. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13162. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13163. archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13164. archive_expsym_cmds_F77='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'
  13165. ;;
  13166. gnu* | linux* | k*bsd*-gnu)
  13167. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13168. tmp_addflag=
  13169. case $cc_basename,$host_cpu in
  13170. pgcc*) # Portland Group C compiler
  13171. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13172. tmp_addflag=' $pic_flag'
  13173. ;;
  13174. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  13175. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13176. tmp_addflag=' $pic_flag -Mnomain' ;;
  13177. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13178. tmp_addflag=' -i_dynamic' ;;
  13179. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13180. tmp_addflag=' -i_dynamic -nofor_main' ;;
  13181. ifc* | ifort*) # Intel Fortran compiler
  13182. tmp_addflag=' -nofor_main' ;;
  13183. esac
  13184. case `$CC -V 2>&1 | sed 5q` in
  13185. *Sun\ C*) # Sun C 5.9
  13186. whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13187. tmp_sharedflag='-G' ;;
  13188. *Sun\ F*) # Sun Fortran 8.3
  13189. tmp_sharedflag='-G' ;;
  13190. *)
  13191. tmp_sharedflag='-shared' ;;
  13192. esac
  13193. archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13194. if test $supports_anon_versioning = yes; then
  13195. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  13196. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13197. $echo "local: *; };" >> $output_objdir/$libname.ver~
  13198. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13199. fi
  13200. else
  13201. ld_shlibs_F77=no
  13202. fi
  13203. ;;
  13204. netbsd*)
  13205. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13206. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13207. wlarc=
  13208. else
  13209. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13210. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13211. fi
  13212. ;;
  13213. solaris*)
  13214. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  13215. ld_shlibs_F77=no
  13216. cat <<EOF 1>&2
  13217. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13218. *** create shared libraries on Solaris systems. Therefore, libtool
  13219. *** is disabling shared libraries support. We urge you to upgrade GNU
  13220. *** binutils to release 2.9.1 or newer. Another option is to modify
  13221. *** your PATH or compiler configuration so that the native linker is
  13222. *** used, and then restart.
  13223. EOF
  13224. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13225. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13226. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13227. else
  13228. ld_shlibs_F77=no
  13229. fi
  13230. ;;
  13231. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  13232. case `$LD -v 2>&1` in
  13233. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  13234. ld_shlibs_F77=no
  13235. cat <<_LT_EOF 1>&2
  13236. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  13237. *** reliably create shared libraries on SCO systems. Therefore, libtool
  13238. *** is disabling shared libraries support. We urge you to upgrade GNU
  13239. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  13240. *** your PATH or compiler configuration so that the native linker is
  13241. *** used, and then restart.
  13242. _LT_EOF
  13243. ;;
  13244. *)
  13245. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13246. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  13247. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  13248. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  13249. else
  13250. ld_shlibs_F77=no
  13251. fi
  13252. ;;
  13253. esac
  13254. ;;
  13255. sunos4*)
  13256. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13257. wlarc=
  13258. hardcode_direct_F77=yes
  13259. hardcode_shlibpath_var_F77=no
  13260. ;;
  13261. *)
  13262. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13263. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13264. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13265. else
  13266. ld_shlibs_F77=no
  13267. fi
  13268. ;;
  13269. esac
  13270. if test "$ld_shlibs_F77" = no; then
  13271. runpath_var=
  13272. hardcode_libdir_flag_spec_F77=
  13273. export_dynamic_flag_spec_F77=
  13274. whole_archive_flag_spec_F77=
  13275. fi
  13276. else
  13277. # PORTME fill in a description of your system's linker (not GNU ld)
  13278. case $host_os in
  13279. aix3*)
  13280. allow_undefined_flag_F77=unsupported
  13281. always_export_symbols_F77=yes
  13282. archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  13283. # Note: this linker hardcodes the directories in LIBPATH if there
  13284. # are no directories specified by -L.
  13285. hardcode_minus_L_F77=yes
  13286. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  13287. # Neither direct hardcoding nor static linking is supported with a
  13288. # broken collect2.
  13289. hardcode_direct_F77=unsupported
  13290. fi
  13291. ;;
  13292. aix4* | aix5*)
  13293. if test "$host_cpu" = ia64; then
  13294. # On IA64, the linker does run time linking by default, so we don't
  13295. # have to do anything special.
  13296. aix_use_runtimelinking=no
  13297. exp_sym_flag='-Bexport'
  13298. no_entry_flag=""
  13299. else
  13300. # If we're using GNU nm, then we don't want the "-C" option.
  13301. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13302. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  13303. export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  13304. else
  13305. export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  13306. fi
  13307. aix_use_runtimelinking=no
  13308. # Test if we are trying to use run time linking or normal
  13309. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13310. # need to do runtime linking.
  13311. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  13312. for ld_flag in $LDFLAGS; do
  13313. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  13314. aix_use_runtimelinking=yes
  13315. break
  13316. fi
  13317. done
  13318. ;;
  13319. esac
  13320. exp_sym_flag='-bexport'
  13321. no_entry_flag='-bnoentry'
  13322. fi
  13323. # When large executables or shared objects are built, AIX ld can
  13324. # have problems creating the table of contents. If linking a library
  13325. # or program results in "error TOC overflow" add -mminimal-toc to
  13326. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13327. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13328. archive_cmds_F77=''
  13329. hardcode_direct_F77=yes
  13330. hardcode_libdir_separator_F77=':'
  13331. link_all_deplibs_F77=yes
  13332. if test "$GCC" = yes; then
  13333. case $host_os in aix4.[012]|aix4.[012].*)
  13334. # We only want to do this on AIX 4.2 and lower, the check
  13335. # below for broken collect2 doesn't work under 4.3+
  13336. collect2name=`${CC} -print-prog-name=collect2`
  13337. if test -f "$collect2name" && \
  13338. strings "$collect2name" | grep resolve_lib_name >/dev/null
  13339. then
  13340. # We have reworked collect2
  13341. :
  13342. else
  13343. # We have old collect2
  13344. hardcode_direct_F77=unsupported
  13345. # It fails to find uninstalled libraries when the uninstalled
  13346. # path is not listed in the libpath. Setting hardcode_minus_L
  13347. # to unsupported forces relinking
  13348. hardcode_minus_L_F77=yes
  13349. hardcode_libdir_flag_spec_F77='-L$libdir'
  13350. hardcode_libdir_separator_F77=
  13351. fi
  13352. ;;
  13353. esac
  13354. shared_flag='-shared'
  13355. if test "$aix_use_runtimelinking" = yes; then
  13356. shared_flag="$shared_flag "'${wl}-G'
  13357. fi
  13358. else
  13359. # not using gcc
  13360. if test "$host_cpu" = ia64; then
  13361. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13362. # chokes on -Wl,-G. The following line is correct:
  13363. shared_flag='-G'
  13364. else
  13365. if test "$aix_use_runtimelinking" = yes; then
  13366. shared_flag='${wl}-G'
  13367. else
  13368. shared_flag='${wl}-bM:SRE'
  13369. fi
  13370. fi
  13371. fi
  13372. # It seems that -bexpall does not export symbols beginning with
  13373. # underscore (_), so it is better to generate a list of symbols to export.
  13374. always_export_symbols_F77=yes
  13375. if test "$aix_use_runtimelinking" = yes; then
  13376. # Warning - without using the other runtime loading flags (-brtl),
  13377. # -berok will link without error, but may produce a broken library.
  13378. allow_undefined_flag_F77='-berok'
  13379. # Determine the default libpath from the value encoded in an empty executable.
  13380. cat >conftest.$ac_ext <<_ACEOF
  13381. program main
  13382. end
  13383. _ACEOF
  13384. rm -f conftest.$ac_objext conftest$ac_exeext
  13385. if { (ac_try="$ac_link"
  13386. case "(($ac_try" in
  13387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13388. *) ac_try_echo=$ac_try;;
  13389. esac
  13390. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13391. (eval "$ac_link") 2>conftest.er1
  13392. ac_status=$?
  13393. grep -v '^ *+' conftest.er1 >conftest.err
  13394. rm -f conftest.er1
  13395. cat conftest.err >&5
  13396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13397. (exit $ac_status); } && {
  13398. test -z "$ac_f77_werror_flag" ||
  13399. test ! -s conftest.err
  13400. } && test -s conftest$ac_exeext &&
  13401. $as_test_x conftest$ac_exeext; then
  13402. lt_aix_libpath_sed='
  13403. /Import File Strings/,/^$/ {
  13404. /^0/ {
  13405. s/^0 *\(.*\)$/\1/
  13406. p
  13407. }
  13408. }'
  13409. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13410. # Check for a 64-bit object if we didn't find anything.
  13411. if test -z "$aix_libpath"; then
  13412. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13413. fi
  13414. else
  13415. echo "$as_me: failed program was:" >&5
  13416. sed 's/^/| /' conftest.$ac_ext >&5
  13417. fi
  13418. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13419. conftest$ac_exeext conftest.$ac_ext
  13420. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13421. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13422. archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  13423. else
  13424. if test "$host_cpu" = ia64; then
  13425. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  13426. allow_undefined_flag_F77="-z nodefs"
  13427. archive_expsym_cmds_F77="\$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"
  13428. else
  13429. # Determine the default libpath from the value encoded in an empty executable.
  13430. cat >conftest.$ac_ext <<_ACEOF
  13431. program main
  13432. end
  13433. _ACEOF
  13434. rm -f conftest.$ac_objext conftest$ac_exeext
  13435. if { (ac_try="$ac_link"
  13436. case "(($ac_try" in
  13437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13438. *) ac_try_echo=$ac_try;;
  13439. esac
  13440. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13441. (eval "$ac_link") 2>conftest.er1
  13442. ac_status=$?
  13443. grep -v '^ *+' conftest.er1 >conftest.err
  13444. rm -f conftest.er1
  13445. cat conftest.err >&5
  13446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13447. (exit $ac_status); } && {
  13448. test -z "$ac_f77_werror_flag" ||
  13449. test ! -s conftest.err
  13450. } && test -s conftest$ac_exeext &&
  13451. $as_test_x conftest$ac_exeext; then
  13452. lt_aix_libpath_sed='
  13453. /Import File Strings/,/^$/ {
  13454. /^0/ {
  13455. s/^0 *\(.*\)$/\1/
  13456. p
  13457. }
  13458. }'
  13459. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13460. # Check for a 64-bit object if we didn't find anything.
  13461. if test -z "$aix_libpath"; then
  13462. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13463. fi
  13464. else
  13465. echo "$as_me: failed program was:" >&5
  13466. sed 's/^/| /' conftest.$ac_ext >&5
  13467. fi
  13468. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13469. conftest$ac_exeext conftest.$ac_ext
  13470. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13471. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13472. # Warning - without using the other run time loading flags,
  13473. # -berok will link without error, but may produce a broken library.
  13474. no_undefined_flag_F77=' ${wl}-bernotok'
  13475. allow_undefined_flag_F77=' ${wl}-berok'
  13476. # Exported symbols can be pulled into shared objects from archives
  13477. whole_archive_flag_spec_F77='$convenience'
  13478. archive_cmds_need_lc_F77=yes
  13479. # This is similar to how AIX traditionally builds its shared libraries.
  13480. archive_expsym_cmds_F77="\$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'
  13481. fi
  13482. fi
  13483. ;;
  13484. amigaos*)
  13485. archive_cmds_F77='$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)'
  13486. hardcode_libdir_flag_spec_F77='-L$libdir'
  13487. hardcode_minus_L_F77=yes
  13488. # see comment about different semantics on the GNU ld section
  13489. ld_shlibs_F77=no
  13490. ;;
  13491. bsdi[45]*)
  13492. export_dynamic_flag_spec_F77=-rdynamic
  13493. ;;
  13494. cygwin* | mingw* | pw32*)
  13495. # When not using gcc, we currently assume that we are using
  13496. # Microsoft Visual C++.
  13497. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13498. # no search path for DLLs.
  13499. hardcode_libdir_flag_spec_F77=' '
  13500. allow_undefined_flag_F77=unsupported
  13501. # Tell ltmain to make .lib files, not .a files.
  13502. libext=lib
  13503. # Tell ltmain to make .dll files, not .so files.
  13504. shrext_cmds=".dll"
  13505. # FIXME: Setting linknames here is a bad hack.
  13506. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  13507. # The linker will automatically build a .lib file if we build a DLL.
  13508. old_archive_From_new_cmds_F77='true'
  13509. # FIXME: Should let the user specify the lib program.
  13510. old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  13511. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  13512. enable_shared_with_static_runtimes_F77=yes
  13513. ;;
  13514. darwin* | rhapsody*)
  13515. case $host_os in
  13516. rhapsody* | darwin1.[012])
  13517. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  13518. ;;
  13519. *) # Darwin 1.3 on
  13520. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  13521. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13522. else
  13523. case ${MACOSX_DEPLOYMENT_TARGET} in
  13524. 10.[012])
  13525. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13526. ;;
  13527. 10.*)
  13528. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  13529. ;;
  13530. esac
  13531. fi
  13532. ;;
  13533. esac
  13534. archive_cmds_need_lc_F77=no
  13535. hardcode_direct_F77=no
  13536. hardcode_automatic_F77=yes
  13537. hardcode_shlibpath_var_F77=unsupported
  13538. whole_archive_flag_spec_F77=''
  13539. link_all_deplibs_F77=yes
  13540. if test "$GCC" = yes ; then
  13541. output_verbose_link_cmd='echo'
  13542. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  13543. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13544. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13545. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13546. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13547. else
  13548. case $cc_basename in
  13549. xlc*)
  13550. output_verbose_link_cmd='echo'
  13551. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  13552. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13553. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13554. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13555. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13556. ;;
  13557. *)
  13558. ld_shlibs_F77=no
  13559. ;;
  13560. esac
  13561. fi
  13562. ;;
  13563. dgux*)
  13564. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13565. hardcode_libdir_flag_spec_F77='-L$libdir'
  13566. hardcode_shlibpath_var_F77=no
  13567. ;;
  13568. freebsd1*)
  13569. ld_shlibs_F77=no
  13570. ;;
  13571. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13572. # support. Future versions do this automatically, but an explicit c++rt0.o
  13573. # does not break anything, and helps significantly (at the cost of a little
  13574. # extra space).
  13575. freebsd2.2*)
  13576. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13577. hardcode_libdir_flag_spec_F77='-R$libdir'
  13578. hardcode_direct_F77=yes
  13579. hardcode_shlibpath_var_F77=no
  13580. ;;
  13581. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13582. freebsd2*)
  13583. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13584. hardcode_direct_F77=yes
  13585. hardcode_minus_L_F77=yes
  13586. hardcode_shlibpath_var_F77=no
  13587. ;;
  13588. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13589. freebsd* | dragonfly*)
  13590. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  13591. hardcode_libdir_flag_spec_F77='-R$libdir'
  13592. hardcode_direct_F77=yes
  13593. hardcode_shlibpath_var_F77=no
  13594. ;;
  13595. hpux9*)
  13596. if test "$GCC" = yes; then
  13597. archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  13598. else
  13599. archive_cmds_F77='$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'
  13600. fi
  13601. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13602. hardcode_libdir_separator_F77=:
  13603. hardcode_direct_F77=yes
  13604. # hardcode_minus_L: Not really in the search PATH,
  13605. # but as the default location of the library.
  13606. hardcode_minus_L_F77=yes
  13607. export_dynamic_flag_spec_F77='${wl}-E'
  13608. ;;
  13609. hpux10*)
  13610. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13611. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13612. else
  13613. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13614. fi
  13615. if test "$with_gnu_ld" = no; then
  13616. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13617. hardcode_libdir_separator_F77=:
  13618. hardcode_direct_F77=yes
  13619. export_dynamic_flag_spec_F77='${wl}-E'
  13620. # hardcode_minus_L: Not really in the search PATH,
  13621. # but as the default location of the library.
  13622. hardcode_minus_L_F77=yes
  13623. fi
  13624. ;;
  13625. hpux11*)
  13626. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13627. case $host_cpu in
  13628. hppa*64*)
  13629. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13630. ;;
  13631. ia64*)
  13632. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13633. ;;
  13634. *)
  13635. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13636. ;;
  13637. esac
  13638. else
  13639. case $host_cpu in
  13640. hppa*64*)
  13641. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13642. ;;
  13643. ia64*)
  13644. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13645. ;;
  13646. *)
  13647. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13648. ;;
  13649. esac
  13650. fi
  13651. if test "$with_gnu_ld" = no; then
  13652. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13653. hardcode_libdir_separator_F77=:
  13654. case $host_cpu in
  13655. hppa*64*|ia64*)
  13656. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  13657. hardcode_direct_F77=no
  13658. hardcode_shlibpath_var_F77=no
  13659. ;;
  13660. *)
  13661. hardcode_direct_F77=yes
  13662. export_dynamic_flag_spec_F77='${wl}-E'
  13663. # hardcode_minus_L: Not really in the search PATH,
  13664. # but as the default location of the library.
  13665. hardcode_minus_L_F77=yes
  13666. ;;
  13667. esac
  13668. fi
  13669. ;;
  13670. irix5* | irix6* | nonstopux*)
  13671. if test "$GCC" = yes; then
  13672. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13673. else
  13674. archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13675. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  13676. fi
  13677. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13678. hardcode_libdir_separator_F77=:
  13679. link_all_deplibs_F77=yes
  13680. ;;
  13681. netbsd*)
  13682. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13683. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13684. else
  13685. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13686. fi
  13687. hardcode_libdir_flag_spec_F77='-R$libdir'
  13688. hardcode_direct_F77=yes
  13689. hardcode_shlibpath_var_F77=no
  13690. ;;
  13691. newsos6)
  13692. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13693. hardcode_direct_F77=yes
  13694. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13695. hardcode_libdir_separator_F77=:
  13696. hardcode_shlibpath_var_F77=no
  13697. ;;
  13698. openbsd*)
  13699. if test -f /usr/libexec/ld.so; then
  13700. hardcode_direct_F77=yes
  13701. hardcode_shlibpath_var_F77=no
  13702. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13703. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13704. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  13705. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13706. export_dynamic_flag_spec_F77='${wl}-E'
  13707. else
  13708. case $host_os in
  13709. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  13710. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13711. hardcode_libdir_flag_spec_F77='-R$libdir'
  13712. ;;
  13713. *)
  13714. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13715. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13716. ;;
  13717. esac
  13718. fi
  13719. else
  13720. ld_shlibs_F77=no
  13721. fi
  13722. ;;
  13723. os2*)
  13724. hardcode_libdir_flag_spec_F77='-L$libdir'
  13725. hardcode_minus_L_F77=yes
  13726. allow_undefined_flag_F77=unsupported
  13727. archive_cmds_F77='$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'
  13728. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  13729. ;;
  13730. osf3*)
  13731. if test "$GCC" = yes; then
  13732. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13733. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13734. else
  13735. allow_undefined_flag_F77=' -expect_unresolved \*'
  13736. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13737. fi
  13738. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13739. hardcode_libdir_separator_F77=:
  13740. ;;
  13741. osf4* | osf5*) # as osf3* with the addition of -msym flag
  13742. if test "$GCC" = yes; then
  13743. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13744. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13745. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13746. else
  13747. allow_undefined_flag_F77=' -expect_unresolved \*'
  13748. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13749. archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  13750. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  13751. # Both c and cxx compiler support -rpath directly
  13752. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  13753. fi
  13754. hardcode_libdir_separator_F77=:
  13755. ;;
  13756. solaris*)
  13757. no_undefined_flag_F77=' -z text'
  13758. if test "$GCC" = yes; then
  13759. wlarc='${wl}'
  13760. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13761. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13762. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  13763. else
  13764. wlarc=''
  13765. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13766. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13767. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13768. fi
  13769. hardcode_libdir_flag_spec_F77='-R$libdir'
  13770. hardcode_shlibpath_var_F77=no
  13771. case $host_os in
  13772. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13773. *)
  13774. # The compiler driver will combine and reorder linker options,
  13775. # but understands `-z linker_flag'. GCC discards it without `$wl',
  13776. # but is careful enough not to reorder.
  13777. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13778. if test "$GCC" = yes; then
  13779. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  13780. else
  13781. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  13782. fi
  13783. ;;
  13784. esac
  13785. link_all_deplibs_F77=yes
  13786. ;;
  13787. sunos4*)
  13788. if test "x$host_vendor" = xsequent; then
  13789. # Use $CC to link under sequent, because it throws in some extra .o
  13790. # files that make .init and .fini sections work.
  13791. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13792. else
  13793. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13794. fi
  13795. hardcode_libdir_flag_spec_F77='-L$libdir'
  13796. hardcode_direct_F77=yes
  13797. hardcode_minus_L_F77=yes
  13798. hardcode_shlibpath_var_F77=no
  13799. ;;
  13800. sysv4)
  13801. case $host_vendor in
  13802. sni)
  13803. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13804. hardcode_direct_F77=yes # is this really true???
  13805. ;;
  13806. siemens)
  13807. ## LD is ld it makes a PLAMLIB
  13808. ## CC just makes a GrossModule.
  13809. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13810. reload_cmds_F77='$CC -r -o $output$reload_objs'
  13811. hardcode_direct_F77=no
  13812. ;;
  13813. motorola)
  13814. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13815. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  13816. ;;
  13817. esac
  13818. runpath_var='LD_RUN_PATH'
  13819. hardcode_shlibpath_var_F77=no
  13820. ;;
  13821. sysv4.3*)
  13822. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13823. hardcode_shlibpath_var_F77=no
  13824. export_dynamic_flag_spec_F77='-Bexport'
  13825. ;;
  13826. sysv4*MP*)
  13827. if test -d /usr/nec; then
  13828. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13829. hardcode_shlibpath_var_F77=no
  13830. runpath_var=LD_RUN_PATH
  13831. hardcode_runpath_var=yes
  13832. ld_shlibs_F77=yes
  13833. fi
  13834. ;;
  13835. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13836. no_undefined_flag_F77='${wl}-z,text'
  13837. archive_cmds_need_lc_F77=no
  13838. hardcode_shlibpath_var_F77=no
  13839. runpath_var='LD_RUN_PATH'
  13840. if test "$GCC" = yes; then
  13841. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13842. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13843. else
  13844. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13845. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13846. fi
  13847. ;;
  13848. sysv5* | sco3.2v5* | sco5v6*)
  13849. # Note: We can NOT use -z defs as we might desire, because we do not
  13850. # link with -lc, and that would cause any symbols used from libc to
  13851. # always be unresolved, which means just about no library would
  13852. # ever link correctly. If we're not using GNU ld we use -z text
  13853. # though, which does catch some bad symbols but isn't as heavy-handed
  13854. # as -z defs.
  13855. no_undefined_flag_F77='${wl}-z,text'
  13856. allow_undefined_flag_F77='${wl}-z,nodefs'
  13857. archive_cmds_need_lc_F77=no
  13858. hardcode_shlibpath_var_F77=no
  13859. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  13860. hardcode_libdir_separator_F77=':'
  13861. link_all_deplibs_F77=yes
  13862. export_dynamic_flag_spec_F77='${wl}-Bexport'
  13863. runpath_var='LD_RUN_PATH'
  13864. if test "$GCC" = yes; then
  13865. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13866. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13867. else
  13868. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13869. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13870. fi
  13871. ;;
  13872. uts4*)
  13873. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13874. hardcode_libdir_flag_spec_F77='-L$libdir'
  13875. hardcode_shlibpath_var_F77=no
  13876. ;;
  13877. *)
  13878. ld_shlibs_F77=no
  13879. ;;
  13880. esac
  13881. fi
  13882. { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13883. echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  13884. test "$ld_shlibs_F77" = no && can_build_shared=no
  13885. #
  13886. # Do we need to explicitly link libc?
  13887. #
  13888. case "x$archive_cmds_need_lc_F77" in
  13889. x|xyes)
  13890. # Assume -lc should be added
  13891. archive_cmds_need_lc_F77=yes
  13892. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13893. case $archive_cmds_F77 in
  13894. *'~'*)
  13895. # FIXME: we may have to deal with multi-command sequences.
  13896. ;;
  13897. '$CC '*)
  13898. # Test whether the compiler implicitly links with -lc since on some
  13899. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13900. # to ld, don't add -lc before -lgcc.
  13901. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13902. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  13903. $rm conftest*
  13904. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13905. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13906. (eval $ac_compile) 2>&5
  13907. ac_status=$?
  13908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13909. (exit $ac_status); } 2>conftest.err; then
  13910. soname=conftest
  13911. lib=conftest
  13912. libobjs=conftest.$ac_objext
  13913. deplibs=
  13914. wl=$lt_prog_compiler_wl_F77
  13915. pic_flag=$lt_prog_compiler_pic_F77
  13916. compiler_flags=-v
  13917. linker_flags=-v
  13918. verstring=
  13919. output_objdir=.
  13920. libname=conftest
  13921. lt_save_allow_undefined_flag=$allow_undefined_flag_F77