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

/vendor/gc/configure

http://github.com/feyeleanor/RubyGoLightly
Shell | 16176 lines | 13909 code | 965 blank | 1302 comment | 758 complexity | bc4ea0fc2fce7d47281fe64981bc7546 MD5 | raw file
Possible License(s): BSD-3-Clause, GPL-2.0
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.35 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.61 for gc 7.1.
  5. #
  6. # Report bugs to <Hans.Boehm@hp.com>.
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. ## --------------------- ##
  13. ## M4sh Initialization. ##
  14. ## --------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  18. emulate sh
  19. NULLCMD=:
  20. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  21. # is contrary to our usage. Disable this feature.
  22. alias -g '${1+"$@"}'='"$@"'
  23. setopt NO_GLOB_SUBST
  24. else
  25. case `(set -o) 2>/dev/null` in
  26. *posix*) set -o posix ;;
  27. esac
  28. fi
  29. # PATH needs CR
  30. # Avoid depending upon Character Ranges.
  31. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  32. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  33. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  34. as_cr_digits='0123456789'
  35. as_cr_alnum=$as_cr_Letters$as_cr_digits
  36. # The user is always right.
  37. if test "${PATH_SEPARATOR+set}" != set; then
  38. echo "#! /bin/sh" >conf$$.sh
  39. echo "exit 0" >>conf$$.sh
  40. chmod +x conf$$.sh
  41. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  42. PATH_SEPARATOR=';'
  43. else
  44. PATH_SEPARATOR=:
  45. fi
  46. rm -f conf$$.sh
  47. fi
  48. # Support unset when possible.
  49. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  50. as_unset=unset
  51. else
  52. as_unset=false
  53. fi
  54. # IFS
  55. # We need space, tab and new line, in precisely that order. Quoting is
  56. # there to prevent editors from complaining about space-tab.
  57. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  58. # splitting by setting IFS to empty value.)
  59. as_nl='
  60. '
  61. IFS=" "" $as_nl"
  62. # Find who we are. Look in the path if we contain no directory separator.
  63. case $0 in
  64. *[\\/]* ) as_myself=$0 ;;
  65. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  66. for as_dir in $PATH
  67. do
  68. IFS=$as_save_IFS
  69. test -z "$as_dir" && as_dir=.
  70. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  71. done
  72. IFS=$as_save_IFS
  73. ;;
  74. esac
  75. # We did not find ourselves, most probably we were run as `sh COMMAND'
  76. # in which case we are not to be found in the path.
  77. if test "x$as_myself" = x; then
  78. as_myself=$0
  79. fi
  80. if test ! -f "$as_myself"; then
  81. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  82. { (exit 1); exit 1; }
  83. fi
  84. # Work around bugs in pre-3.0 UWIN ksh.
  85. for as_var in ENV MAIL MAILPATH
  86. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  87. done
  88. PS1='$ '
  89. PS2='> '
  90. PS4='+ '
  91. # NLS nuisances.
  92. for as_var in \
  93. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  94. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  95. LC_TELEPHONE LC_TIME
  96. do
  97. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  98. eval $as_var=C; export $as_var
  99. else
  100. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  101. fi
  102. done
  103. # Required to use basename.
  104. if expr a : '\(a\)' >/dev/null 2>&1 &&
  105. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  106. as_expr=expr
  107. else
  108. as_expr=false
  109. fi
  110. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  111. as_basename=basename
  112. else
  113. as_basename=false
  114. fi
  115. # Name of the executable.
  116. as_me=`$as_basename -- "$0" ||
  117. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  118. X"$0" : 'X\(//\)$' \| \
  119. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  120. echo X/"$0" |
  121. sed '/^.*\/\([^/][^/]*\)\/*$/{
  122. s//\1/
  123. q
  124. }
  125. /^X\/\(\/\/\)$/{
  126. s//\1/
  127. q
  128. }
  129. /^X\/\(\/\).*/{
  130. s//\1/
  131. q
  132. }
  133. s/.*/./; q'`
  134. # CDPATH.
  135. $as_unset CDPATH
  136. if test "x$CONFIG_SHELL" = x; then
  137. if (eval ":") 2>/dev/null; then
  138. as_have_required=yes
  139. else
  140. as_have_required=no
  141. fi
  142. if test $as_have_required = yes && (eval ":
  143. (as_func_return () {
  144. (exit \$1)
  145. }
  146. as_func_success () {
  147. as_func_return 0
  148. }
  149. as_func_failure () {
  150. as_func_return 1
  151. }
  152. as_func_ret_success () {
  153. return 0
  154. }
  155. as_func_ret_failure () {
  156. return 1
  157. }
  158. exitcode=0
  159. if as_func_success; then
  160. :
  161. else
  162. exitcode=1
  163. echo as_func_success failed.
  164. fi
  165. if as_func_failure; then
  166. exitcode=1
  167. echo as_func_failure succeeded.
  168. fi
  169. if as_func_ret_success; then
  170. :
  171. else
  172. exitcode=1
  173. echo as_func_ret_success failed.
  174. fi
  175. if as_func_ret_failure; then
  176. exitcode=1
  177. echo as_func_ret_failure succeeded.
  178. fi
  179. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  180. :
  181. else
  182. exitcode=1
  183. echo positional parameters were not saved.
  184. fi
  185. test \$exitcode = 0) || { (exit 1); exit 1; }
  186. (
  187. as_lineno_1=\$LINENO
  188. as_lineno_2=\$LINENO
  189. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  190. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  191. ") 2> /dev/null; then
  192. :
  193. else
  194. as_candidate_shells=
  195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  196. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  197. do
  198. IFS=$as_save_IFS
  199. test -z "$as_dir" && as_dir=.
  200. case $as_dir in
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  204. done;;
  205. esac
  206. done
  207. IFS=$as_save_IFS
  208. for as_shell in $as_candidate_shells $SHELL; do
  209. # Try only shells that exist, to save several forks.
  210. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  211. { ("$as_shell") 2> /dev/null <<\_ASEOF
  212. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  213. emulate sh
  214. NULLCMD=:
  215. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  216. # is contrary to our usage. Disable this feature.
  217. alias -g '${1+"$@"}'='"$@"'
  218. setopt NO_GLOB_SUBST
  219. else
  220. case `(set -o) 2>/dev/null` in
  221. *posix*) set -o posix ;;
  222. esac
  223. fi
  224. :
  225. _ASEOF
  226. }; then
  227. CONFIG_SHELL=$as_shell
  228. as_have_required=yes
  229. if { "$as_shell" 2> /dev/null <<\_ASEOF
  230. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  231. emulate sh
  232. NULLCMD=:
  233. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  234. # is contrary to our usage. Disable this feature.
  235. alias -g '${1+"$@"}'='"$@"'
  236. setopt NO_GLOB_SUBST
  237. else
  238. case `(set -o) 2>/dev/null` in
  239. *posix*) set -o posix ;;
  240. esac
  241. fi
  242. :
  243. (as_func_return () {
  244. (exit $1)
  245. }
  246. as_func_success () {
  247. as_func_return 0
  248. }
  249. as_func_failure () {
  250. as_func_return 1
  251. }
  252. as_func_ret_success () {
  253. return 0
  254. }
  255. as_func_ret_failure () {
  256. return 1
  257. }
  258. exitcode=0
  259. if as_func_success; then
  260. :
  261. else
  262. exitcode=1
  263. echo as_func_success failed.
  264. fi
  265. if as_func_failure; then
  266. exitcode=1
  267. echo as_func_failure succeeded.
  268. fi
  269. if as_func_ret_success; then
  270. :
  271. else
  272. exitcode=1
  273. echo as_func_ret_success failed.
  274. fi
  275. if as_func_ret_failure; then
  276. exitcode=1
  277. echo as_func_ret_failure succeeded.
  278. fi
  279. if ( set x; as_func_ret_success y && test x = "$1" ); then
  280. :
  281. else
  282. exitcode=1
  283. echo positional parameters were not saved.
  284. fi
  285. test $exitcode = 0) || { (exit 1); exit 1; }
  286. (
  287. as_lineno_1=$LINENO
  288. as_lineno_2=$LINENO
  289. test "x$as_lineno_1" != "x$as_lineno_2" &&
  290. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  291. _ASEOF
  292. }; then
  293. break
  294. fi
  295. fi
  296. done
  297. if test "x$CONFIG_SHELL" != x; then
  298. for as_var in BASH_ENV ENV
  299. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  300. done
  301. export CONFIG_SHELL
  302. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  303. fi
  304. if test $as_have_required = no; then
  305. echo This script requires a shell more modern than all the
  306. echo shells that I found on your system. Please install a
  307. echo modern shell, or manually run the script under such a
  308. echo shell if you do have one.
  309. { (exit 1); exit 1; }
  310. fi
  311. fi
  312. fi
  313. (eval "as_func_return () {
  314. (exit \$1)
  315. }
  316. as_func_success () {
  317. as_func_return 0
  318. }
  319. as_func_failure () {
  320. as_func_return 1
  321. }
  322. as_func_ret_success () {
  323. return 0
  324. }
  325. as_func_ret_failure () {
  326. return 1
  327. }
  328. exitcode=0
  329. if as_func_success; then
  330. :
  331. else
  332. exitcode=1
  333. echo as_func_success failed.
  334. fi
  335. if as_func_failure; then
  336. exitcode=1
  337. echo as_func_failure succeeded.
  338. fi
  339. if as_func_ret_success; then
  340. :
  341. else
  342. exitcode=1
  343. echo as_func_ret_success failed.
  344. fi
  345. if as_func_ret_failure; then
  346. exitcode=1
  347. echo as_func_ret_failure succeeded.
  348. fi
  349. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  350. :
  351. else
  352. exitcode=1
  353. echo positional parameters were not saved.
  354. fi
  355. test \$exitcode = 0") || {
  356. echo No shell found that supports shell functions.
  357. echo Please tell autoconf@gnu.org about your system,
  358. echo including any error possibly output before this
  359. echo message
  360. }
  361. as_lineno_1=$LINENO
  362. as_lineno_2=$LINENO
  363. test "x$as_lineno_1" != "x$as_lineno_2" &&
  364. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  365. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  366. # uniformly replaced by the line number. The first 'sed' inserts a
  367. # line-number line after each line using $LINENO; the second 'sed'
  368. # does the real work. The second script uses 'N' to pair each
  369. # line-number line with the line containing $LINENO, and appends
  370. # trailing '-' during substitution so that $LINENO is not a special
  371. # case at line end.
  372. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  373. # scripts with optimization help from Paolo Bonzini. Blame Lee
  374. # E. McMahon (1931-1989) for sed's syntax. :-)
  375. sed -n '
  376. p
  377. /[$]LINENO/=
  378. ' <$as_myself |
  379. sed '
  380. s/[$]LINENO.*/&-/
  381. t lineno
  382. b
  383. :lineno
  384. N
  385. :loop
  386. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  387. t loop
  388. s/-\n.*//
  389. ' >$as_me.lineno &&
  390. chmod +x "$as_me.lineno" ||
  391. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  392. { (exit 1); exit 1; }; }
  393. # Don't try to exec as it changes $[0], causing all sort of problems
  394. # (the dirname of $[0] is not the place where we might find the
  395. # original and so on. Autoconf is especially sensitive to this).
  396. . "./$as_me.lineno"
  397. # Exit status is that of the last command.
  398. exit
  399. }
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. ECHO_C= ECHO_N= ECHO_T=
  406. case `echo -n x` in
  407. -n*)
  408. case `echo 'x\c'` in
  409. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  410. *) ECHO_C='\c';;
  411. esac;;
  412. *)
  413. ECHO_N='-n';;
  414. esac
  415. if expr a : '\(a\)' >/dev/null 2>&1 &&
  416. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  417. as_expr=expr
  418. else
  419. as_expr=false
  420. fi
  421. rm -f conf$$ conf$$.exe conf$$.file
  422. if test -d conf$$.dir; then
  423. rm -f conf$$.dir/conf$$.file
  424. else
  425. rm -f conf$$.dir
  426. mkdir conf$$.dir
  427. fi
  428. echo >conf$$.file
  429. if ln -s conf$$.file conf$$ 2>/dev/null; then
  430. as_ln_s='ln -s'
  431. # ... but there are two gotchas:
  432. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  433. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  434. # In both cases, we have to default to `cp -p'.
  435. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  436. as_ln_s='cp -p'
  437. elif ln conf$$.file conf$$ 2>/dev/null; then
  438. as_ln_s=ln
  439. else
  440. as_ln_s='cp -p'
  441. fi
  442. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  443. rmdir conf$$.dir 2>/dev/null
  444. if mkdir -p . 2>/dev/null; then
  445. as_mkdir_p=:
  446. else
  447. test -d ./-p && rmdir ./-p
  448. as_mkdir_p=false
  449. fi
  450. if test -x / >/dev/null 2>&1; then
  451. as_test_x='test -x'
  452. else
  453. if ls -dL / >/dev/null 2>&1; then
  454. as_ls_L_option=L
  455. else
  456. as_ls_L_option=
  457. fi
  458. as_test_x='
  459. eval sh -c '\''
  460. if test -d "$1"; then
  461. test -d "$1/.";
  462. else
  463. case $1 in
  464. -*)set "./$1";;
  465. esac;
  466. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  467. ???[sx]*):;;*)false;;esac;fi
  468. '\'' sh
  469. '
  470. fi
  471. as_executable_p=$as_test_x
  472. # Sed expression to map a string onto a valid CPP name.
  473. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  474. # Sed expression to map a string onto a valid variable name.
  475. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  476. # Check that we are running under the correct shell.
  477. SHELL=${CONFIG_SHELL-/bin/sh}
  478. case X$ECHO in
  479. X*--fallback-echo)
  480. # Remove one level of quotation (which was required for Make).
  481. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  482. ;;
  483. esac
  484. echo=${ECHO-echo}
  485. if test "X$1" = X--no-reexec; then
  486. # Discard the --no-reexec flag, and continue.
  487. shift
  488. elif test "X$1" = X--fallback-echo; then
  489. # Avoid inline document here, it may be left over
  490. :
  491. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  492. # Yippee, $echo works!
  493. :
  494. else
  495. # Restart under the correct shell.
  496. exec $SHELL "$0" --no-reexec ${1+"$@"}
  497. fi
  498. if test "X$1" = X--fallback-echo; then
  499. # used as fallback echo
  500. shift
  501. cat <<EOF
  502. $*
  503. EOF
  504. exit 0
  505. fi
  506. # The HP-UX ksh and POSIX shell print the target directory to stdout
  507. # if CDPATH is set.
  508. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  509. if test -z "$ECHO"; then
  510. if test "X${echo_test_string+set}" != Xset; then
  511. # find a string as large as possible, as long as the shell can cope with it
  512. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  513. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  514. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  515. echo_test_string=`eval $cmd` &&
  516. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  517. then
  518. break
  519. fi
  520. done
  521. fi
  522. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  523. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  524. test "X$echo_testing_string" = "X$echo_test_string"; then
  525. :
  526. else
  527. # The Solaris, AIX, and Digital Unix default echo programs unquote
  528. # backslashes. This makes it impossible to quote backslashes using
  529. # echo "$something" | sed 's/\\/\\\\/g'
  530. #
  531. # So, first we look for a working echo in the user's PATH.
  532. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  533. for dir in $PATH /usr/ucb; do
  534. IFS="$lt_save_ifs"
  535. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  536. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  537. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  538. test "X$echo_testing_string" = "X$echo_test_string"; then
  539. echo="$dir/echo"
  540. break
  541. fi
  542. done
  543. IFS="$lt_save_ifs"
  544. if test "X$echo" = Xecho; then
  545. # We didn't find a better echo, so look for alternatives.
  546. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  547. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  548. test "X$echo_testing_string" = "X$echo_test_string"; then
  549. # This shell has a builtin print -r that does the trick.
  550. echo='print -r'
  551. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  552. test "X$CONFIG_SHELL" != X/bin/ksh; then
  553. # If we have ksh, try running configure again with it.
  554. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  555. export ORIGINAL_CONFIG_SHELL
  556. CONFIG_SHELL=/bin/ksh
  557. export CONFIG_SHELL
  558. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  559. else
  560. # Try using printf.
  561. echo='printf %s\n'
  562. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  563. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  564. test "X$echo_testing_string" = "X$echo_test_string"; then
  565. # Cool, printf works
  566. :
  567. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  568. test "X$echo_testing_string" = 'X\t' &&
  569. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  570. test "X$echo_testing_string" = "X$echo_test_string"; then
  571. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  572. export CONFIG_SHELL
  573. SHELL="$CONFIG_SHELL"
  574. export SHELL
  575. echo="$CONFIG_SHELL $0 --fallback-echo"
  576. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  577. test "X$echo_testing_string" = 'X\t' &&
  578. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  579. test "X$echo_testing_string" = "X$echo_test_string"; then
  580. echo="$CONFIG_SHELL $0 --fallback-echo"
  581. else
  582. # maybe with a smaller string...
  583. prev=:
  584. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  585. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  586. then
  587. break
  588. fi
  589. prev="$cmd"
  590. done
  591. if test "$prev" != 'sed 50q "$0"'; then
  592. echo_test_string=`eval $prev`
  593. export echo_test_string
  594. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  595. else
  596. # Oops. We lost completely, so just stick with echo.
  597. echo=echo
  598. fi
  599. fi
  600. fi
  601. fi
  602. fi
  603. fi
  604. # Copy echo and quote the copy suitably for passing to libtool from
  605. # the Makefile, instead of quoting the original, which is used later.
  606. ECHO=$echo
  607. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  608. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  609. fi
  610. tagnames=${tagnames+${tagnames},}CXX
  611. tagnames=${tagnames+${tagnames},}F77
  612. exec 7<&0 </dev/null 6>&1
  613. # Name of the host.
  614. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  615. # so uname gets run too.
  616. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  617. #
  618. # Initializations.
  619. #
  620. ac_default_prefix=/usr/local
  621. ac_clean_files=
  622. ac_config_libobj_dir=.
  623. LIBOBJS=
  624. cross_compiling=no
  625. subdirs=
  626. MFLAGS=
  627. MAKEFLAGS=
  628. SHELL=${CONFIG_SHELL-/bin/sh}
  629. # Identity of this package.
  630. PACKAGE_NAME='gc'
  631. PACKAGE_TARNAME='gc'
  632. PACKAGE_VERSION='7.1'
  633. PACKAGE_STRING='gc 7.1'
  634. PACKAGE_BUGREPORT='Hans.Boehm@hp.com'
  635. ac_unique_file="gcj_mlc.c"
  636. # Factoring default headers for most tests.
  637. ac_includes_default="\
  638. #include <stdio.h>
  639. #ifdef HAVE_SYS_TYPES_H
  640. # include <sys/types.h>
  641. #endif
  642. #ifdef HAVE_SYS_STAT_H
  643. # include <sys/stat.h>
  644. #endif
  645. #ifdef STDC_HEADERS
  646. # include <stdlib.h>
  647. # include <stddef.h>
  648. #else
  649. # ifdef HAVE_STDLIB_H
  650. # include <stdlib.h>
  651. # endif
  652. #endif
  653. #ifdef HAVE_STRING_H
  654. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  655. # include <memory.h>
  656. # endif
  657. # include <string.h>
  658. #endif
  659. #ifdef HAVE_STRINGS_H
  660. # include <strings.h>
  661. #endif
  662. #ifdef HAVE_INTTYPES_H
  663. # include <inttypes.h>
  664. #endif
  665. #ifdef HAVE_STDINT_H
  666. # include <stdint.h>
  667. #endif
  668. #ifdef HAVE_UNISTD_H
  669. # include <unistd.h>
  670. #endif"
  671. ac_subst_vars='SHELL
  672. PATH_SEPARATOR
  673. PACKAGE_NAME
  674. PACKAGE_TARNAME
  675. PACKAGE_VERSION
  676. PACKAGE_STRING
  677. PACKAGE_BUGREPORT
  678. exec_prefix
  679. prefix
  680. program_transform_name
  681. bindir
  682. sbindir
  683. libexecdir
  684. datarootdir
  685. datadir
  686. sysconfdir
  687. sharedstatedir
  688. localstatedir
  689. includedir
  690. oldincludedir
  691. docdir
  692. infodir
  693. htmldir
  694. dvidir
  695. pdfdir
  696. psdir
  697. libdir
  698. localedir
  699. mandir
  700. DEFS
  701. ECHO_C
  702. ECHO_N
  703. ECHO_T
  704. LIBS
  705. build_alias
  706. host_alias
  707. target_alias
  708. build
  709. build_cpu
  710. build_vendor
  711. build_os
  712. host
  713. host_cpu
  714. host_vendor
  715. host_os
  716. target
  717. target_cpu
  718. target_vendor
  719. target_os
  720. INSTALL_PROGRAM
  721. INSTALL_SCRIPT
  722. INSTALL_DATA
  723. CYGPATH_W
  724. PACKAGE
  725. VERSION
  726. ACLOCAL
  727. AUTOCONF
  728. AUTOMAKE
  729. AUTOHEADER
  730. MAKEINFO
  731. install_sh
  732. STRIP
  733. INSTALL_STRIP_PROGRAM
  734. mkdir_p
  735. AWK
  736. SET_MAKE
  737. am__leading_dot
  738. AMTAR
  739. am__tar
  740. am__untar
  741. MAINTAINER_MODE_TRUE
  742. MAINTAINER_MODE_FALSE
  743. MAINT
  744. GC_VERSION
  745. CC
  746. CFLAGS
  747. LDFLAGS
  748. CPPFLAGS
  749. ac_ct_CC
  750. EXEEXT
  751. OBJEXT
  752. DEPDIR
  753. am__include
  754. am__quote
  755. AMDEP_TRUE
  756. AMDEP_FALSE
  757. AMDEPBACKSLASH
  758. CCDEPMODE
  759. am__fastdepCC_TRUE
  760. am__fastdepCC_FALSE
  761. CXX
  762. CXXFLAGS
  763. ac_ct_CXX
  764. CXXDEPMODE
  765. am__fastdepCXX_TRUE
  766. am__fastdepCXX_FALSE
  767. CCAS
  768. CCASFLAGS
  769. AR
  770. RANLIB
  771. GC_CFLAGS
  772. THREADDLLIBS
  773. THREADS_TRUE
  774. THREADS_FALSE
  775. PTHREADS_TRUE
  776. PTHREADS_FALSE
  777. DARWIN_THREADS_TRUE
  778. DARWIN_THREADS_FALSE
  779. WIN32_THREADS_TRUE
  780. WIN32_THREADS_FALSE
  781. COMPILER_XLC_TRUE
  782. COMPILER_XLC_FALSE
  783. AVOID_CPP_LIB_TRUE
  784. AVOID_CPP_LIB_FALSE
  785. extra_ldflags_libgc
  786. EXTRA_TEST_LIBS
  787. target_all
  788. CPLUSPLUS_TRUE
  789. CPLUSPLUS_FALSE
  790. INCLUDES
  791. CXXINCLUDES
  792. addobjs
  793. addlibs
  794. GREP
  795. EGREP
  796. LN_S
  797. ECHO
  798. CPP
  799. CXXCPP
  800. F77
  801. FFLAGS
  802. ac_ct_F77
  803. LIBTOOL
  804. ENABLE_GCJ_SUPPORT_TRUE
  805. ENABLE_GCJ_SUPPORT_FALSE
  806. UNWINDLIBS
  807. USE_LIBDIR_TRUE
  808. USE_LIBDIR_FALSE
  809. subdirs
  810. USE_INTERNAL_LIBATOMIC_OPS_TRUE
  811. USE_INTERNAL_LIBATOMIC_OPS_FALSE
  812. NEED_ATOMIC_OPS_ASM_TRUE
  813. NEED_ATOMIC_OPS_ASM_FALSE
  814. atomic_ops_libs
  815. LIBOBJS
  816. LTLIBOBJS'
  817. ac_subst_files=''
  818. ac_precious_vars='build_alias
  819. host_alias
  820. target_alias
  821. CC
  822. CFLAGS
  823. LDFLAGS
  824. LIBS
  825. CPPFLAGS
  826. CXX
  827. CXXFLAGS
  828. CCC
  829. CCAS
  830. CCASFLAGS
  831. CPP
  832. CXXCPP
  833. F77
  834. FFLAGS'
  835. ac_subdirs_all='libatomic_ops'
  836. # Initialize some variables set by options.
  837. ac_init_help=
  838. ac_init_version=false
  839. # The variables have the same names as the options, with
  840. # dashes changed to underlines.
  841. cache_file=/dev/null
  842. exec_prefix=NONE
  843. no_create=
  844. no_recursion=
  845. prefix=NONE
  846. program_prefix=NONE
  847. program_suffix=NONE
  848. program_transform_name=s,x,x,
  849. silent=
  850. site=
  851. srcdir=
  852. verbose=
  853. x_includes=NONE
  854. x_libraries=NONE
  855. # Installation directory options.
  856. # These are left unexpanded so users can "make install exec_prefix=/foo"
  857. # and all the variables that are supposed to be based on exec_prefix
  858. # by default will actually change.
  859. # Use braces instead of parens because sh, perl, etc. also accept them.
  860. # (The list follows the same order as the GNU Coding Standards.)
  861. bindir='${exec_prefix}/bin'
  862. sbindir='${exec_prefix}/sbin'
  863. libexecdir='${exec_prefix}/libexec'
  864. datarootdir='${prefix}/share'
  865. datadir='${datarootdir}'
  866. sysconfdir='${prefix}/etc'
  867. sharedstatedir='${prefix}/com'
  868. localstatedir='${prefix}/var'
  869. includedir='${prefix}/include'
  870. oldincludedir='/usr/include'
  871. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  872. infodir='${datarootdir}/info'
  873. htmldir='${docdir}'
  874. dvidir='${docdir}'
  875. pdfdir='${docdir}'
  876. psdir='${docdir}'
  877. libdir='${exec_prefix}/lib'
  878. localedir='${datarootdir}/locale'
  879. mandir='${datarootdir}/man'
  880. ac_prev=
  881. ac_dashdash=
  882. for ac_option
  883. do
  884. # If the previous option needs an argument, assign it.
  885. if test -n "$ac_prev"; then
  886. eval $ac_prev=\$ac_option
  887. ac_prev=
  888. continue
  889. fi
  890. case $ac_option in
  891. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  892. *) ac_optarg=yes ;;
  893. esac
  894. # Accept the important Cygnus configure options, so we can diagnose typos.
  895. case $ac_dashdash$ac_option in
  896. --)
  897. ac_dashdash=yes ;;
  898. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  899. ac_prev=bindir ;;
  900. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  901. bindir=$ac_optarg ;;
  902. -build | --build | --buil | --bui | --bu)
  903. ac_prev=build_alias ;;
  904. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  905. build_alias=$ac_optarg ;;
  906. -cache-file | --cache-file | --cache-fil | --cache-fi \
  907. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  908. ac_prev=cache_file ;;
  909. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  910. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  911. cache_file=$ac_optarg ;;
  912. --config-cache | -C)
  913. cache_file=config.cache ;;
  914. -datadir | --datadir | --datadi | --datad)
  915. ac_prev=datadir ;;
  916. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  917. datadir=$ac_optarg ;;
  918. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  919. | --dataroo | --dataro | --datar)
  920. ac_prev=datarootdir ;;
  921. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  922. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  923. datarootdir=$ac_optarg ;;
  924. -disable-* | --disable-*)
  925. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  926. # Reject names that are not valid shell variable names.
  927. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  928. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  929. { (exit 1); exit 1; }; }
  930. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  931. eval enable_$ac_feature=no ;;
  932. -docdir | --docdir | --docdi | --doc | --do)
  933. ac_prev=docdir ;;
  934. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  935. docdir=$ac_optarg ;;
  936. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  937. ac_prev=dvidir ;;
  938. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  939. dvidir=$ac_optarg ;;
  940. -enable-* | --enable-*)
  941. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  942. # Reject names that are not valid shell variable names.
  943. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  944. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  945. { (exit 1); exit 1; }; }
  946. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  947. eval enable_$ac_feature=\$ac_optarg ;;
  948. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  949. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  950. | --exec | --exe | --ex)
  951. ac_prev=exec_prefix ;;
  952. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  953. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  954. | --exec=* | --exe=* | --ex=*)
  955. exec_prefix=$ac_optarg ;;
  956. -gas | --gas | --ga | --g)
  957. # Obsolete; use --with-gas.
  958. with_gas=yes ;;
  959. -help | --help | --hel | --he | -h)
  960. ac_init_help=long ;;
  961. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  962. ac_init_help=recursive ;;
  963. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  964. ac_init_help=short ;;
  965. -host | --host | --hos | --ho)
  966. ac_prev=host_alias ;;
  967. -host=* | --host=* | --hos=* | --ho=*)
  968. host_alias=$ac_optarg ;;
  969. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  970. ac_prev=htmldir ;;
  971. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  972. | --ht=*)
  973. htmldir=$ac_optarg ;;
  974. -includedir | --includedir | --includedi | --included | --include \
  975. | --includ | --inclu | --incl | --inc)
  976. ac_prev=includedir ;;
  977. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  978. | --includ=* | --inclu=* | --incl=* | --inc=*)
  979. includedir=$ac_optarg ;;
  980. -infodir | --infodir | --infodi | --infod | --info | --inf)
  981. ac_prev=infodir ;;
  982. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  983. infodir=$ac_optarg ;;
  984. -libdir | --libdir | --libdi | --libd)
  985. ac_prev=libdir ;;
  986. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  987. libdir=$ac_optarg ;;
  988. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  989. | --libexe | --libex | --libe)
  990. ac_prev=libexecdir ;;
  991. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  992. | --libexe=* | --libex=* | --libe=*)
  993. libexecdir=$ac_optarg ;;
  994. -localedir | --localedir | --localedi | --localed | --locale)
  995. ac_prev=localedir ;;
  996. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  997. localedir=$ac_optarg ;;
  998. -localstatedir | --localstatedir | --localstatedi | --localstated \
  999. | --localstate | --localstat | --localsta | --localst | --locals)
  1000. ac_prev=localstatedir ;;
  1001. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1002. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1003. localstatedir=$ac_optarg ;;
  1004. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1005. ac_prev=mandir ;;
  1006. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1007. mandir=$ac_optarg ;;
  1008. -nfp | --nfp | --nf)
  1009. # Obsolete; use --without-fp.
  1010. with_fp=no ;;
  1011. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1012. | --no-cr | --no-c | -n)
  1013. no_create=yes ;;
  1014. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1015. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1016. no_recursion=yes ;;
  1017. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1018. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1019. | --oldin | --oldi | --old | --ol | --o)
  1020. ac_prev=oldincludedir ;;
  1021. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1022. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1023. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1024. oldincludedir=$ac_optarg ;;
  1025. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1026. ac_prev=prefix ;;
  1027. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1028. prefix=$ac_optarg ;;
  1029. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1030. | --program-pre | --program-pr | --program-p)
  1031. ac_prev=program_prefix ;;
  1032. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1033. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1034. program_prefix=$ac_optarg ;;
  1035. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1036. | --program-suf | --program-su | --program-s)
  1037. ac_prev=program_suffix ;;
  1038. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1039. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1040. program_suffix=$ac_optarg ;;
  1041. -program-transform-name | --program-transform-name \
  1042. | --program-transform-nam | --program-transform-na \
  1043. | --program-transform-n | --program-transform- \
  1044. | --program-transform | --program-transfor \
  1045. | --program-transfo | --program-transf \
  1046. | --program-trans | --program-tran \
  1047. | --progr-tra | --program-tr | --program-t)
  1048. ac_prev=program_transform_name ;;
  1049. -program-transform-name=* | --program-transform-name=* \
  1050. | --program-transform-nam=* | --program-transform-na=* \
  1051. | --program-transform-n=* | --program-transform-=* \
  1052. | --program-transform=* | --program-transfor=* \
  1053. | --program-transfo=* | --program-transf=* \
  1054. | --program-trans=* | --program-tran=* \
  1055. | --progr-tra=* | --program-tr=* | --program-t=*)
  1056. program_transform_name=$ac_optarg ;;
  1057. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1058. ac_prev=pdfdir ;;
  1059. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1060. pdfdir=$ac_optarg ;;
  1061. -psdir | --psdir | --psdi | --psd | --ps)
  1062. ac_prev=psdir ;;
  1063. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1064. psdir=$ac_optarg ;;
  1065. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1066. | -silent | --silent | --silen | --sile | --sil)
  1067. silent=yes ;;
  1068. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1069. ac_prev=sbindir ;;
  1070. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1071. | --sbi=* | --sb=*)
  1072. sbindir=$ac_optarg ;;
  1073. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1074. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1075. | --sharedst | --shareds | --shared | --share | --shar \
  1076. | --sha | --sh)
  1077. ac_prev=sharedstatedir ;;
  1078. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1079. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1080. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1081. | --sha=* | --sh=*)
  1082. sharedstatedir=$ac_optarg ;;
  1083. -site | --site | --sit)
  1084. ac_prev=site ;;
  1085. -site=* | --site=* | --sit=*)
  1086. site=$ac_optarg ;;
  1087. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1088. ac_prev=srcdir ;;
  1089. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1090. srcdir=$ac_optarg ;;
  1091. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1092. | --syscon | --sysco | --sysc | --sys | --sy)
  1093. ac_prev=sysconfdir ;;
  1094. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1095. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1096. sysconfdir=$ac_optarg ;;
  1097. -target | --target | --targe | --targ | --tar | --ta | --t)
  1098. ac_prev=target_alias ;;
  1099. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1100. target_alias=$ac_optarg ;;
  1101. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1102. verbose=yes ;;
  1103. -version | --version | --versio | --versi | --vers | -V)
  1104. ac_init_version=: ;;
  1105. -with-* | --with-*)
  1106. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1107. # Reject names that are not valid shell variable names.
  1108. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1109. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1110. { (exit 1); exit 1; }; }
  1111. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1112. eval with_$ac_package=\$ac_optarg ;;
  1113. -without-* | --without-*)
  1114. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1115. # Reject names that are not valid shell variable names.
  1116. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1117. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1118. { (exit 1); exit 1; }; }
  1119. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1120. eval with_$ac_package=no ;;
  1121. --x)
  1122. # Obsolete; use --with-x.
  1123. with_x=yes ;;
  1124. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1125. | --x-incl | --x-inc | --x-in | --x-i)
  1126. ac_prev=x_includes ;;
  1127. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1128. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1129. x_includes=$ac_optarg ;;
  1130. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1131. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1132. ac_prev=x_libraries ;;
  1133. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1134. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1135. x_libraries=$ac_optarg ;;
  1136. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1137. Try \`$0 --help' for more information." >&2
  1138. { (exit 1); exit 1; }; }
  1139. ;;
  1140. *=*)
  1141. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1142. # Reject names that are not valid shell variable names.
  1143. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1144. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1145. { (exit 1); exit 1; }; }
  1146. eval $ac_envvar=\$ac_optarg
  1147. export $ac_envvar ;;
  1148. *)
  1149. # FIXME: should be removed in autoconf 3.0.
  1150. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1151. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1152. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1153. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1154. ;;
  1155. esac
  1156. done
  1157. if test -n "$ac_prev"; then
  1158. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1159. { echo "$as_me: error: missing argument to $ac_option" >&2
  1160. { (exit 1); exit 1; }; }
  1161. fi
  1162. # Be sure to have absolute directory names.
  1163. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1164. datadir sysconfdir sharedstatedir localstatedir includedir \
  1165. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1166. libdir localedir mandir
  1167. do
  1168. eval ac_val=\$$ac_var
  1169. case $ac_val in
  1170. [\\/$]* | ?:[\\/]* ) continue;;
  1171. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1172. esac
  1173. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1174. { (exit 1); exit 1; }; }
  1175. done
  1176. # There might be people who depend on the old broken behavior: `$host'
  1177. # used to hold the argument of --host etc.
  1178. # FIXME: To remove some day.
  1179. build=$build_alias
  1180. host=$host_alias
  1181. target=$target_alias
  1182. # FIXME: To remove some day.
  1183. if test "x$host_alias" != x; then
  1184. if test "x$build_alias" = x; then
  1185. cross_compiling=maybe
  1186. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1187. If a cross compiler is detected then cross compile mode will be used." >&2
  1188. elif test "x$build_alias" != "x$host_alias"; then
  1189. cross_compiling=yes
  1190. fi
  1191. fi
  1192. ac_tool_prefix=
  1193. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1194. test "$silent" = yes && exec 6>/dev/null
  1195. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1196. ac_ls_di=`ls -di .` &&
  1197. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1198. { echo "$as_me: error: Working directory cannot be determined" >&2
  1199. { (exit 1); exit 1; }; }
  1200. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1201. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1202. { (exit 1); exit 1; }; }
  1203. # Find the source files, if location was not specified.
  1204. if test -z "$srcdir"; then
  1205. ac_srcdir_defaulted=yes
  1206. # Try the directory containing this script, then the parent directory.
  1207. ac_confdir=`$as_dirname -- "$0" ||
  1208. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1209. X"$0" : 'X\(//\)[^/]' \| \
  1210. X"$0" : 'X\(//\)$' \| \
  1211. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1212. echo X"$0" |
  1213. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1214. s//\1/
  1215. q
  1216. }
  1217. /^X\(\/\/\)[^/].*/{
  1218. s//\1/
  1219. q
  1220. }
  1221. /^X\(\/\/\)$/{
  1222. s//\1/
  1223. q
  1224. }
  1225. /^X\(\/\).*/{
  1226. s//\1/
  1227. q
  1228. }
  1229. s/.*/./; q'`
  1230. srcdir=$ac_confdir
  1231. if test ! -r "$srcdir/$ac_unique_file"; then
  1232. srcdir=..
  1233. fi
  1234. else
  1235. ac_srcdir_defaulted=no
  1236. fi
  1237. if test ! -r "$srcdir/$ac_unique_file"; then
  1238. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1239. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1240. { (exit 1); exit 1; }; }
  1241. fi
  1242. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1243. ac_abs_confdir=`(
  1244. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1245. { (exit 1); exit 1; }; }
  1246. pwd)`
  1247. # When building in place, set srcdir=.
  1248. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1249. srcdir=.
  1250. fi
  1251. # Remove unnecessary trailing slashes from srcdir.
  1252. # Double slashes in file names in object file debugging info
  1253. # mess up M-x gdb in Emacs.
  1254. case $srcdir in
  1255. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1256. esac
  1257. for ac_var in $ac_precious_vars; do
  1258. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1259. eval ac_env_${ac_var}_value=\$${ac_var}
  1260. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1261. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1262. done
  1263. #
  1264. # Report the --help message.
  1265. #
  1266. if test "$ac_init_help" = "long"; then
  1267. # Omit some internal or obsolete options to make the list less imposing.
  1268. # This message is too long to be a string in the A/UX 3.1 sh.
  1269. cat <<_ACEOF
  1270. \`configure' configures gc 7.1 to adapt to many kinds of systems.
  1271. Usage: $0 [OPTION]... [VAR=VALUE]...
  1272. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1273. VAR=VALUE. See below for descriptions of some of the useful variables.
  1274. Defaults for the options are specified in brackets.
  1275. Configuration:
  1276. -h, --help display this help and exit
  1277. --help=short display options specific to this package
  1278. --help=recursive display the short help of all the included packages
  1279. -V, --version display version information and exit
  1280. -q, --quiet, --silent do not print \`checking...' messages
  1281. --cache-file=FILE cache test results in FILE [disabled]
  1282. -C, --config-cache alias for \`--cache-file=config.cache'
  1283. -n, --no-create do not create output files
  1284. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1285. Installation directories:
  1286. --prefix=PREFIX install architecture-independent files in PREFIX
  1287. [$ac_default_prefix]
  1288. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1289. [PREFIX]
  1290. By default, \`make install' will install all the files in
  1291. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1292. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1293. for instance \`--prefix=\$HOME'.
  1294. For better control, use the options below.
  1295. Fine tuning of the installation directories:
  1296. --bindir=DIR user executables [EPREFIX/bin]
  1297. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1298. --libexecdir=DIR program executables [EPREFIX/libexec]
  1299. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1300. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1301. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1302. --libdir=DIR object code libraries [EPREFIX/lib]
  1303. --includedir=DIR C header files [PREFIX/include]
  1304. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1305. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1306. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1307. --infodir=DIR info documentation [DATAROOTDIR/info]
  1308. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1309. --mandir=DIR man documentation [DATAROOTDIR/man]
  1310. --docdir=DIR documentation root [DATAROOTDIR/doc/gc]
  1311. --htmldir=DIR html documentation [DOCDIR]
  1312. --dvidir=DIR dvi documentation [DOCDIR]
  1313. --pdfdir=DIR pdf documentation [DOCDIR]
  1314. --psdir=DIR ps documentation [DOCDIR]
  1315. _ACEOF
  1316. cat <<\_ACEOF
  1317. Program names:
  1318. --program-prefix=PREFIX prepend PREFIX to installed program names
  1319. --program-suffix=SUFFIX append SUFFIX to installed program names
  1320. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1321. System types:
  1322. --build=BUILD configure for building on BUILD [guessed]
  1323. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1324. --target=TARGET configure for building compilers for TARGET [HOST]
  1325. _ACEOF
  1326. fi
  1327. if test -n "$ac_init_help"; then
  1328. case $ac_init_help in
  1329. short | recursive ) echo "Configuration of gc 7.1:";;
  1330. esac
  1331. cat <<\_ACEOF
  1332. Optional Features:
  1333. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1334. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1335. --enable-maintainer-mode enable make rules and dependencies not useful
  1336. (and sometimes confusing) to the casual installer
  1337. --disable-dependency-tracking speeds up one-time build
  1338. --enable-dependency-tracking do not reject slow dependency extractors
  1339. --enable-threads=TYPE choose threading package
  1340. --enable-parallel-mark parallelize marking and free list construction
  1341. --enable-cplusplus install C++ support
  1342. --enable-shared[=PKGS] build shared libraries [default=yes]
  1343. --enable-static[=PKGS] build static libraries [default=yes]
  1344. --enable-fast-install[=PKGS]
  1345. optimize for fast installation [default=yes]
  1346. --disable-libtool-lock avoid locking (might break parallel builds)
  1347. --disable-gcj-support Disable support for gcj.
  1348. --disable-java-finalization
  1349. Disable support for java finalization.
  1350. --disable-atomic-uncollectible
  1351. Disable support for atomic uncollectible allocation.
  1352. --enable-redirect-malloc
  1353. Redirect malloc and friends to GC routines
  1354. --enable-large-config Optimize for large (> 100 MB) heap or root set
  1355. --enable-gc-debug include full support for pointer backtracing etc.
  1356. --enable-gc-assertions collector-internal assertion checking
  1357. --enable-munmap=N return page to the os if empty for N collections
  1358. Optional Packages:
  1359. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1360. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1361. --with-ecos enable runtime eCos target support
  1362. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1363. --with-pic try to use only PIC/non-PIC objects [default=use
  1364. both]
  1365. --with-tags[=TAGS] include additional configurations [automatic]
  1366. --with-target-subdir=SUBDIR
  1367. configuring with a cross compiler
  1368. --with-cross-host=HOST configuring with a cross compiler
  1369. Some influential environment variables:
  1370. CC C compiler command
  1371. CFLAGS C compiler flags
  1372. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1373. nonstandard directory <lib dir>
  1374. LIBS libraries to pass to the linker, e.g. -l<library>
  1375. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1376. you have headers in a nonstandard directory <include dir>
  1377. CXX C++ compiler command
  1378. CXXFLAGS C++ compiler flags
  1379. CCAS assembler compiler command (defaults to CC)
  1380. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1381. CPP C preprocessor
  1382. CXXCPP C++ preprocessor
  1383. F77 Fortran 77 compiler command
  1384. FFLAGS Fortran 77 compiler flags
  1385. Use these variables to override the choices made by `configure' or to help
  1386. it to find libraries and programs with nonstandard names/locations.
  1387. Report bugs to <Hans.Boehm@hp.com>.
  1388. _ACEOF
  1389. ac_status=$?
  1390. fi
  1391. if test "$ac_init_help" = "recursive"; then
  1392. # If there are subdirs, report their specific --help.
  1393. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1394. test -d "$ac_dir" || continue
  1395. ac_builddir=.
  1396. case "$ac_dir" in
  1397. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1398. *)
  1399. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1400. # A ".." for each directory in $ac_dir_suffix.
  1401. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1402. case $ac_top_builddir_sub in
  1403. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1404. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1405. esac ;;
  1406. esac
  1407. ac_abs_top_builddir=$ac_pwd
  1408. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1409. # for backward compatibility:
  1410. ac_top_builddir=$ac_top_build_prefix
  1411. case $srcdir in
  1412. .) # We are building in place.
  1413. ac_srcdir=.
  1414. ac_top_srcdir=$ac_top_builddir_sub
  1415. ac_abs_top_srcdir=$ac_pwd ;;
  1416. [\\/]* | ?:[\\/]* ) # Absolute name.
  1417. ac_srcdir=$srcdir$ac_dir_suffix;
  1418. ac_top_srcdir=$srcdir
  1419. ac_abs_top_srcdir=$srcdir ;;
  1420. *) # Relative name.
  1421. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1422. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1423. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1424. esac
  1425. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1426. cd "$ac_dir" || { ac_status=$?; continue; }
  1427. # Check for guested configure.
  1428. if test -f "$ac_srcdir/configure.gnu"; then
  1429. echo &&
  1430. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1431. elif test -f "$ac_srcdir/configure"; then
  1432. echo &&
  1433. $SHELL "$ac_srcdir/configure" --help=recursive
  1434. else
  1435. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1436. fi || ac_status=$?
  1437. cd "$ac_pwd" || { ac_status=$?; break; }
  1438. done
  1439. fi
  1440. test -n "$ac_init_help" && exit $ac_status
  1441. if $ac_init_version; then
  1442. cat <<\_ACEOF
  1443. gc configure 7.1
  1444. generated by GNU Autoconf 2.61
  1445. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1446. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1447. This configure script is free software; the Free Software Foundation
  1448. gives unlimited permission to copy, distribute and modify it.
  1449. _ACEOF
  1450. exit
  1451. fi
  1452. cat >config.log <<_ACEOF
  1453. This file contains any messages produced by compilers while
  1454. running configure, to aid debugging if configure makes a mistake.
  1455. It was created by gc $as_me 7.1, which was
  1456. generated by GNU Autoconf 2.61. Invocation command line was
  1457. $ $0 $@
  1458. _ACEOF
  1459. exec 5>>config.log
  1460. {
  1461. cat <<_ASUNAME
  1462. ## --------- ##
  1463. ## Platform. ##
  1464. ## --------- ##
  1465. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1466. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1467. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1468. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1469. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1470. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1471. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1472. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1473. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1474. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1475. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1476. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1477. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1478. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1479. _ASUNAME
  1480. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1481. for as_dir in $PATH
  1482. do
  1483. IFS=$as_save_IFS
  1484. test -z "$as_dir" && as_dir=.
  1485. echo "PATH: $as_dir"
  1486. done
  1487. IFS=$as_save_IFS
  1488. } >&5
  1489. cat >&5 <<_ACEOF
  1490. ## ----------- ##
  1491. ## Core tests. ##
  1492. ## ----------- ##
  1493. _ACEOF
  1494. # Keep a trace of the command line.
  1495. # Strip out --no-create and --no-recursion so they do not pile up.
  1496. # Strip out --silent because we don't want to record it for future runs.
  1497. # Also quote any args containing shell meta-characters.
  1498. # Make two passes to allow for proper duplicate-argument suppression.
  1499. ac_configure_args=
  1500. ac_configure_args0=
  1501. ac_configure_args1=
  1502. ac_must_keep_next=false
  1503. for ac_pass in 1 2
  1504. do
  1505. for ac_arg
  1506. do
  1507. case $ac_arg in
  1508. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1509. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1510. | -silent | --silent | --silen | --sile | --sil)
  1511. continue ;;
  1512. *\'*)
  1513. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1514. esac
  1515. case $ac_pass in
  1516. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1517. 2)
  1518. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1519. if test $ac_must_keep_next = true; then
  1520. ac_must_keep_next=false # Got value, back to normal.
  1521. else
  1522. case $ac_arg in
  1523. *=* | --config-cache | -C | -disable-* | --disable-* \
  1524. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1525. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1526. | -with-* | --with-* | -without-* | --without-* | --x)
  1527. case "$ac_configure_args0 " in
  1528. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1529. esac
  1530. ;;
  1531. -* ) ac_must_keep_next=true ;;
  1532. esac
  1533. fi
  1534. ac_configure_args="$ac_configure_args '$ac_arg'"
  1535. ;;
  1536. esac
  1537. done
  1538. done
  1539. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1540. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1541. # When interrupted or exit'd, cleanup temporary files, and complete
  1542. # config.log. We remove comments because anyway the quotes in there
  1543. # would cause problems or look ugly.
  1544. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1545. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1546. trap 'exit_status=$?
  1547. # Save into config.log some information that might help in debugging.
  1548. {
  1549. echo
  1550. cat <<\_ASBOX
  1551. ## ---------------- ##
  1552. ## Cache variables. ##
  1553. ## ---------------- ##
  1554. _ASBOX
  1555. echo
  1556. # The following way of writing the cache mishandles newlines in values,
  1557. (
  1558. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1559. eval ac_val=\$$ac_var
  1560. case $ac_val in #(
  1561. *${as_nl}*)
  1562. case $ac_var in #(
  1563. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1564. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1565. esac
  1566. case $ac_var in #(
  1567. _ | IFS | as_nl) ;; #(
  1568. *) $as_unset $ac_var ;;
  1569. esac ;;
  1570. esac
  1571. done
  1572. (set) 2>&1 |
  1573. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1574. *${as_nl}ac_space=\ *)
  1575. sed -n \
  1576. "s/'\''/'\''\\\\'\'''\''/g;
  1577. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1578. ;; #(
  1579. *)
  1580. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1581. ;;
  1582. esac |
  1583. sort
  1584. )
  1585. echo
  1586. cat <<\_ASBOX
  1587. ## ----------------- ##
  1588. ## Output variables. ##
  1589. ## ----------------- ##
  1590. _ASBOX
  1591. echo
  1592. for ac_var in $ac_subst_vars
  1593. do
  1594. eval ac_val=\$$ac_var
  1595. case $ac_val in
  1596. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1597. esac
  1598. echo "$ac_var='\''$ac_val'\''"
  1599. done | sort
  1600. echo
  1601. if test -n "$ac_subst_files"; then
  1602. cat <<\_ASBOX
  1603. ## ------------------- ##
  1604. ## File substitutions. ##
  1605. ## ------------------- ##
  1606. _ASBOX
  1607. echo
  1608. for ac_var in $ac_subst_files
  1609. do
  1610. eval ac_val=\$$ac_var
  1611. case $ac_val in
  1612. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1613. esac
  1614. echo "$ac_var='\''$ac_val'\''"
  1615. done | sort
  1616. echo
  1617. fi
  1618. if test -s confdefs.h; then
  1619. cat <<\_ASBOX
  1620. ## ----------- ##
  1621. ## confdefs.h. ##
  1622. ## ----------- ##
  1623. _ASBOX
  1624. echo
  1625. cat confdefs.h
  1626. echo
  1627. fi
  1628. test "$ac_signal" != 0 &&
  1629. echo "$as_me: caught signal $ac_signal"
  1630. echo "$as_me: exit $exit_status"
  1631. } >&5
  1632. rm -f core *.core core.conftest.* &&
  1633. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1634. exit $exit_status
  1635. ' 0
  1636. for ac_signal in 1 2 13 15; do
  1637. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1638. done
  1639. ac_signal=0
  1640. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1641. rm -f -r conftest* confdefs.h
  1642. # Predefined preprocessor variables.
  1643. cat >>confdefs.h <<_ACEOF
  1644. #define PACKAGE_NAME "$PACKAGE_NAME"
  1645. _ACEOF
  1646. cat >>confdefs.h <<_ACEOF
  1647. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1648. _ACEOF
  1649. cat >>confdefs.h <<_ACEOF
  1650. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1651. _ACEOF
  1652. cat >>confdefs.h <<_ACEOF
  1653. #define PACKAGE_STRING "$PACKAGE_STRING"
  1654. _ACEOF
  1655. cat >>confdefs.h <<_ACEOF
  1656. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1657. _ACEOF
  1658. # Let the site file select an alternate cache file if it wants to.
  1659. # Prefer explicitly selected file to automatically selected ones.
  1660. if test -n "$CONFIG_SITE"; then
  1661. set x "$CONFIG_SITE"
  1662. elif test "x$prefix" != xNONE; then
  1663. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1664. else
  1665. set x "$ac_default_prefix/share/config.site" \
  1666. "$ac_default_prefix/etc/config.site"
  1667. fi
  1668. shift
  1669. for ac_site_file
  1670. do
  1671. if test -r "$ac_site_file"; then
  1672. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1673. echo "$as_me: loading site script $ac_site_file" >&6;}
  1674. sed 's/^/| /' "$ac_site_file" >&5
  1675. . "$ac_site_file"
  1676. fi
  1677. done
  1678. if test -r "$cache_file"; then
  1679. # Some versions of bash will fail to source /dev/null (special
  1680. # files actually), so we avoid doing that.
  1681. if test -f "$cache_file"; then
  1682. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1683. echo "$as_me: loading cache $cache_file" >&6;}
  1684. case $cache_file in
  1685. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1686. *) . "./$cache_file";;
  1687. esac
  1688. fi
  1689. else
  1690. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1691. echo "$as_me: creating cache $cache_file" >&6;}
  1692. >$cache_file
  1693. fi
  1694. # Check that the precious variables saved in the cache have kept the same
  1695. # value.
  1696. ac_cache_corrupted=false
  1697. for ac_var in $ac_precious_vars; do
  1698. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1699. eval ac_new_set=\$ac_env_${ac_var}_set
  1700. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1701. eval ac_new_val=\$ac_env_${ac_var}_value
  1702. case $ac_old_set,$ac_new_set in
  1703. set,)
  1704. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1705. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1706. ac_cache_corrupted=: ;;
  1707. ,set)
  1708. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1709. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1710. ac_cache_corrupted=: ;;
  1711. ,);;
  1712. *)
  1713. if test "x$ac_old_val" != "x$ac_new_val"; then
  1714. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1715. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1716. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1717. echo "$as_me: former value: $ac_old_val" >&2;}
  1718. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1719. echo "$as_me: current value: $ac_new_val" >&2;}
  1720. ac_cache_corrupted=:
  1721. fi;;
  1722. esac
  1723. # Pass precious variables to config.status.
  1724. if test "$ac_new_set" = set; then
  1725. case $ac_new_val in
  1726. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1727. *) ac_arg=$ac_var=$ac_new_val ;;
  1728. esac
  1729. case " $ac_configure_args " in
  1730. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1731. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1732. esac
  1733. fi
  1734. done
  1735. if $ac_cache_corrupted; then
  1736. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1737. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1738. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1739. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1740. { (exit 1); exit 1; }; }
  1741. fi
  1742. ac_ext=c
  1743. ac_cpp='$CPP $CPPFLAGS'
  1744. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1745. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1746. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1747. ## version must conform to [0-9]+[.][0-9]+(alpha[0-9]+)?
  1748. ac_aux_dir=
  1749. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1750. if test -f "$ac_dir/install-sh"; then
  1751. ac_aux_dir=$ac_dir
  1752. ac_install_sh="$ac_aux_dir/install-sh -c"
  1753. break
  1754. elif test -f "$ac_dir/install.sh"; then
  1755. ac_aux_dir=$ac_dir
  1756. ac_install_sh="$ac_aux_dir/install.sh -c"
  1757. break
  1758. elif test -f "$ac_dir/shtool"; then
  1759. ac_aux_dir=$ac_dir
  1760. ac_install_sh="$ac_aux_dir/shtool install -c"
  1761. break
  1762. fi
  1763. done
  1764. if test -z "$ac_aux_dir"; then
  1765. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1766. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1767. { (exit 1); exit 1; }; }
  1768. fi
  1769. # These three variables are undocumented and unsupported,
  1770. # and are intended to be withdrawn in a future Autoconf release.
  1771. # They can cause serious problems if a builder's source tree is in a directory
  1772. # whose full name contains unusual characters.
  1773. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1774. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1775. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1776. # Make sure we can run config.sub.
  1777. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1778. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1779. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1780. { (exit 1); exit 1; }; }
  1781. { echo "$as_me:$LINENO: checking build system type" >&5
  1782. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1783. if test "${ac_cv_build+set}" = set; then
  1784. echo $ECHO_N "(cached) $ECHO_C" >&6
  1785. else
  1786. ac_build_alias=$build_alias
  1787. test "x$ac_build_alias" = x &&
  1788. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1789. test "x$ac_build_alias" = x &&
  1790. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1791. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1792. { (exit 1); exit 1; }; }
  1793. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1794. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1795. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1796. { (exit 1); exit 1; }; }
  1797. fi
  1798. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1799. echo "${ECHO_T}$ac_cv_build" >&6; }
  1800. case $ac_cv_build in
  1801. *-*-*) ;;
  1802. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1803. echo "$as_me: error: invalid value of canonical build" >&2;}
  1804. { (exit 1); exit 1; }; };;
  1805. esac
  1806. build=$ac_cv_build
  1807. ac_save_IFS=$IFS; IFS='-'
  1808. set x $ac_cv_build
  1809. shift
  1810. build_cpu=$1
  1811. build_vendor=$2
  1812. shift; shift
  1813. # Remember, the first character of IFS is used to create $*,
  1814. # except with old shells:
  1815. build_os=$*
  1816. IFS=$ac_save_IFS
  1817. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1818. { echo "$as_me:$LINENO: checking host system type" >&5
  1819. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1820. if test "${ac_cv_host+set}" = set; then
  1821. echo $ECHO_N "(cached) $ECHO_C" >&6
  1822. else
  1823. if test "x$host_alias" = x; then
  1824. ac_cv_host=$ac_cv_build
  1825. else
  1826. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1827. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1828. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1829. { (exit 1); exit 1; }; }
  1830. fi
  1831. fi
  1832. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1833. echo "${ECHO_T}$ac_cv_host" >&6; }
  1834. case $ac_cv_host in
  1835. *-*-*) ;;
  1836. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1837. echo "$as_me: error: invalid value of canonical host" >&2;}
  1838. { (exit 1); exit 1; }; };;
  1839. esac
  1840. host=$ac_cv_host
  1841. ac_save_IFS=$IFS; IFS='-'
  1842. set x $ac_cv_host
  1843. shift
  1844. host_cpu=$1
  1845. host_vendor=$2
  1846. shift; shift
  1847. # Remember, the first character of IFS is used to create $*,
  1848. # except with old shells:
  1849. host_os=$*
  1850. IFS=$ac_save_IFS
  1851. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1852. { echo "$as_me:$LINENO: checking target system type" >&5
  1853. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1854. if test "${ac_cv_target+set}" = set; then
  1855. echo $ECHO_N "(cached) $ECHO_C" >&6
  1856. else
  1857. if test "x$target_alias" = x; then
  1858. ac_cv_target=$ac_cv_host
  1859. else
  1860. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1861. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1862. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1863. { (exit 1); exit 1; }; }
  1864. fi
  1865. fi
  1866. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1867. echo "${ECHO_T}$ac_cv_target" >&6; }
  1868. case $ac_cv_target in
  1869. *-*-*) ;;
  1870. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1871. echo "$as_me: error: invalid value of canonical target" >&2;}
  1872. { (exit 1); exit 1; }; };;
  1873. esac
  1874. target=$ac_cv_target
  1875. ac_save_IFS=$IFS; IFS='-'
  1876. set x $ac_cv_target
  1877. shift
  1878. target_cpu=$1
  1879. target_vendor=$2
  1880. shift; shift
  1881. # Remember, the first character of IFS is used to create $*,
  1882. # except with old shells:
  1883. target_os=$*
  1884. IFS=$ac_save_IFS
  1885. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1886. # The aliases save the names the user supplied, while $host etc.
  1887. # will get canonicalized.
  1888. test -n "$target_alias" &&
  1889. test "$program_prefix$program_suffix$program_transform_name" = \
  1890. NONENONEs,x,x, &&
  1891. program_prefix=${target_alias}-
  1892. { echo "$as_me:$LINENO: checking GC version numbers" >&5
  1893. echo $ECHO_N "checking GC version numbers... $ECHO_C" >&6; }
  1894. GC_VERSION_MAJOR=`echo $PACKAGE_VERSION | sed 's/^\([0-9][0-9]*\)[.].*$/\1/g'`
  1895. GC_VERSION_MINOR=`echo $PACKAGE_VERSION | sed 's/^[^.]*[.]\([0-9][0-9]*\).*$/\1/g'`
  1896. GC_ALPHA_VERSION=`echo $PACKAGE_VERSION | sed 's/^[^.]*[.][0-9]*//'`
  1897. case "$GC_ALPHA_VERSION" in
  1898. alpha*)
  1899. GC_ALPHA_VERSION=`echo $GC_ALPHA_VERSION \
  1900. | sed 's/alpha\([0-9][0-9]*\)/\1/'` ;;
  1901. *) GC_ALPHA_MAJOR='' ;;
  1902. esac
  1903. if test :$GC_VERSION_MAJOR: = :: \
  1904. -o :$GC_VERSION_MINOR: = :: ;
  1905. then
  1906. { echo "$as_me:$LINENO: result: invalid" >&5
  1907. echo "${ECHO_T}invalid" >&6; }
  1908. { { echo "$as_me:$LINENO: error: nonconforming PACKAGE_VERSION='$PACKAGE_VERSION'" >&5
  1909. echo "$as_me: error: nonconforming PACKAGE_VERSION='$PACKAGE_VERSION'" >&2;}
  1910. { (exit 1); exit 1; }; }
  1911. fi
  1912. cat >>confdefs.h <<_ACEOF
  1913. #define GC_VERSION_MAJOR $GC_VERSION_MAJOR
  1914. _ACEOF
  1915. cat >>confdefs.h <<_ACEOF
  1916. #define GC_VERSION_MINOR $GC_VERSION_MINOR
  1917. _ACEOF
  1918. if test :$GC_ALPHA_VERSION: != :: ; then
  1919. cat >>confdefs.h <<_ACEOF
  1920. #define GC_ALPHA_VERSION $GC_ALPHA_VERSION
  1921. _ACEOF
  1922. fi
  1923. { echo "$as_me:$LINENO: result: major=$GC_VERSION_MAJOR minor=$GC_VERSION_MINOR \
  1924. ${GC_ALPHA_VERSION:+alpha=}$GC_ALPHA_VERSION" >&5
  1925. echo "${ECHO_T}major=$GC_VERSION_MAJOR minor=$GC_VERSION_MINOR \
  1926. ${GC_ALPHA_VERSION:+alpha=}$GC_ALPHA_VERSION" >&6; }
  1927. am__api_version="1.9"
  1928. # Find a good install program. We prefer a C program (faster),
  1929. # so one script is as good as another. But avoid the broken or
  1930. # incompatible versions:
  1931. # SysV /etc/install, /usr/sbin/install
  1932. # SunOS /usr/etc/install
  1933. # IRIX /sbin/install
  1934. # AIX /bin/install
  1935. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1936. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1937. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1938. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1939. # OS/2's system install, which has a completely different semantic
  1940. # ./install, which can be erroneously created by make from ./install.sh.
  1941. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1942. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1943. if test -z "$INSTALL"; then
  1944. if test "${ac_cv_path_install+set}" = set; then
  1945. echo $ECHO_N "(cached) $ECHO_C" >&6
  1946. else
  1947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1948. for as_dir in $PATH
  1949. do
  1950. IFS=$as_save_IFS
  1951. test -z "$as_dir" && as_dir=.
  1952. # Account for people who put trailing slashes in PATH elements.
  1953. case $as_dir/ in
  1954. ./ | .// | /cC/* | \
  1955. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1956. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1957. /usr/ucb/* ) ;;
  1958. *)
  1959. # OSF1 and SCO ODT 3.0 have their own names for install.
  1960. # Don't use installbsd from OSF since it installs stuff as root
  1961. # by default.
  1962. for ac_prog in ginstall scoinst install; do
  1963. for ac_exec_ext in '' $ac_executable_extensions; do
  1964. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1965. if test $ac_prog = install &&
  1966. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1967. # AIX install. It has an incompatible calling convention.
  1968. :
  1969. elif test $ac_prog = install &&
  1970. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1971. # program-specific install script used by HP pwplus--don't use.
  1972. :
  1973. else
  1974. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1975. break 3
  1976. fi
  1977. fi
  1978. done
  1979. done
  1980. ;;
  1981. esac
  1982. done
  1983. IFS=$as_save_IFS
  1984. fi
  1985. if test "${ac_cv_path_install+set}" = set; then
  1986. INSTALL=$ac_cv_path_install
  1987. else
  1988. # As a last resort, use the slow shell script. Don't cache a
  1989. # value for INSTALL within a source directory, because that will
  1990. # break other packages using the cache if that directory is
  1991. # removed, or if the value is a relative name.
  1992. INSTALL=$ac_install_sh
  1993. fi
  1994. fi
  1995. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1996. echo "${ECHO_T}$INSTALL" >&6; }
  1997. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1998. # It thinks the first close brace ends the variable substitution.
  1999. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2000. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2001. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2002. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2003. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  2004. # Just in case
  2005. sleep 1
  2006. echo timestamp > conftest.file
  2007. # Do `set' in a subshell so we don't clobber the current shell's
  2008. # arguments. Must try -L first in case configure is actually a
  2009. # symlink; some systems play weird games with the mod time of symlinks
  2010. # (eg FreeBSD returns the mod time of the symlink's containing
  2011. # directory).
  2012. if (
  2013. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2014. if test "$*" = "X"; then
  2015. # -L didn't work.
  2016. set X `ls -t $srcdir/configure conftest.file`
  2017. fi
  2018. rm -f conftest.file
  2019. if test "$*" != "X $srcdir/configure conftest.file" \
  2020. && test "$*" != "X conftest.file $srcdir/configure"; then
  2021. # If neither matched, then we have a broken ls. This can happen
  2022. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2023. # broken ls alias from the environment. This has actually
  2024. # happened. Such a system could not be considered "sane".
  2025. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2026. alias in your environment" >&5
  2027. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2028. alias in your environment" >&2;}
  2029. { (exit 1); exit 1; }; }
  2030. fi
  2031. test "$2" = conftest.file
  2032. )
  2033. then
  2034. # Ok.
  2035. :
  2036. else
  2037. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2038. Check your system clock" >&5
  2039. echo "$as_me: error: newly created file is older than distributed files!
  2040. Check your system clock" >&2;}
  2041. { (exit 1); exit 1; }; }
  2042. fi
  2043. { echo "$as_me:$LINENO: result: yes" >&5
  2044. echo "${ECHO_T}yes" >&6; }
  2045. test "$program_prefix" != NONE &&
  2046. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2047. # Use a double $ so make ignores it.
  2048. test "$program_suffix" != NONE &&
  2049. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2050. # Double any \ or $. echo might interpret backslashes.
  2051. # By default was `s,x,x', remove it if useless.
  2052. cat <<\_ACEOF >conftest.sed
  2053. s/[\\$]/&&/g;s/;s,x,x,$//
  2054. _ACEOF
  2055. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  2056. rm -f conftest.sed
  2057. # expand $ac_aux_dir to an absolute path
  2058. am_aux_dir=`cd $ac_aux_dir && pwd`
  2059. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2060. # Use eval to expand $SHELL
  2061. if eval "$MISSING --run true"; then
  2062. am_missing_run="$MISSING --run "
  2063. else
  2064. am_missing_run=
  2065. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2066. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2067. fi
  2068. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  2069. # We used to keeping the `.' as first argument, in order to
  2070. # allow $(mkdir_p) to be used without argument. As in
  2071. # $(mkdir_p) $(somedir)
  2072. # where $(somedir) is conditionally defined. However this is wrong
  2073. # for two reasons:
  2074. # 1. if the package is installed by a user who cannot write `.'
  2075. # make install will fail,
  2076. # 2. the above comment should most certainly read
  2077. # $(mkdir_p) $(DESTDIR)$(somedir)
  2078. # so it does not work when $(somedir) is undefined and
  2079. # $(DESTDIR) is not.
  2080. # To support the latter case, we have to write
  2081. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  2082. # so the `.' trick is pointless.
  2083. mkdir_p='mkdir -p --'
  2084. else
  2085. # On NextStep and OpenStep, the `mkdir' command does not
  2086. # recognize any option. It will interpret all options as
  2087. # directories to create, and then abort because `.' already
  2088. # exists.
  2089. for d in ./-p ./--version;
  2090. do
  2091. test -d $d && rmdir $d
  2092. done
  2093. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  2094. if test -f "$ac_aux_dir/mkinstalldirs"; then
  2095. mkdir_p='$(mkinstalldirs)'
  2096. else
  2097. mkdir_p='$(install_sh) -d'
  2098. fi
  2099. fi
  2100. for ac_prog in gawk mawk nawk awk
  2101. do
  2102. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2103. set dummy $ac_prog; ac_word=$2
  2104. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2105. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2106. if test "${ac_cv_prog_AWK+set}" = set; then
  2107. echo $ECHO_N "(cached) $ECHO_C" >&6
  2108. else
  2109. if test -n "$AWK"; then
  2110. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2111. else
  2112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2113. for as_dir in $PATH
  2114. do
  2115. IFS=$as_save_IFS
  2116. test -z "$as_dir" && as_dir=.
  2117. for ac_exec_ext in '' $ac_executable_extensions; do
  2118. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2119. ac_cv_prog_AWK="$ac_prog"
  2120. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2121. break 2
  2122. fi
  2123. done
  2124. done
  2125. IFS=$as_save_IFS
  2126. fi
  2127. fi
  2128. AWK=$ac_cv_prog_AWK
  2129. if test -n "$AWK"; then
  2130. { echo "$as_me:$LINENO: result: $AWK" >&5
  2131. echo "${ECHO_T}$AWK" >&6; }
  2132. else
  2133. { echo "$as_me:$LINENO: result: no" >&5
  2134. echo "${ECHO_T}no" >&6; }
  2135. fi
  2136. test -n "$AWK" && break
  2137. done
  2138. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2139. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2140. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2141. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2142. echo $ECHO_N "(cached) $ECHO_C" >&6
  2143. else
  2144. cat >conftest.make <<\_ACEOF
  2145. SHELL = /bin/sh
  2146. all:
  2147. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2148. _ACEOF
  2149. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2150. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2151. *@@@%%%=?*=@@@%%%*)
  2152. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2153. *)
  2154. eval ac_cv_prog_make_${ac_make}_set=no;;
  2155. esac
  2156. rm -f conftest.make
  2157. fi
  2158. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2159. { echo "$as_me:$LINENO: result: yes" >&5
  2160. echo "${ECHO_T}yes" >&6; }
  2161. SET_MAKE=
  2162. else
  2163. { echo "$as_me:$LINENO: result: no" >&5
  2164. echo "${ECHO_T}no" >&6; }
  2165. SET_MAKE="MAKE=${MAKE-make}"
  2166. fi
  2167. rm -rf .tst 2>/dev/null
  2168. mkdir .tst 2>/dev/null
  2169. if test -d .tst; then
  2170. am__leading_dot=.
  2171. else
  2172. am__leading_dot=_
  2173. fi
  2174. rmdir .tst 2>/dev/null
  2175. # test to see if srcdir already configured
  2176. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2177. test -f $srcdir/config.status; then
  2178. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2179. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2180. { (exit 1); exit 1; }; }
  2181. fi
  2182. # test whether we have cygpath
  2183. if test -z "$CYGPATH_W"; then
  2184. if (cygpath --version) >/dev/null 2>/dev/null; then
  2185. CYGPATH_W='cygpath -w'
  2186. else
  2187. CYGPATH_W=echo
  2188. fi
  2189. fi
  2190. # Define the identity of the package.
  2191. PACKAGE='gc'
  2192. VERSION='7.1'
  2193. cat >>confdefs.h <<_ACEOF
  2194. #define PACKAGE "$PACKAGE"
  2195. _ACEOF
  2196. cat >>confdefs.h <<_ACEOF
  2197. #define VERSION "$VERSION"
  2198. _ACEOF
  2199. # Some tools Automake needs.
  2200. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2201. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2202. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2203. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2204. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2205. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2206. # Installed binaries are usually stripped using `strip' when the user
  2207. # run `make install-strip'. However `strip' might not be the right
  2208. # tool to use in cross-compilation environments, therefore Automake
  2209. # will honor the `STRIP' environment variable to overrule this program.
  2210. if test "$cross_compiling" != no; then
  2211. if test -n "$ac_tool_prefix"; then
  2212. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2213. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2214. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2215. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2216. if test "${ac_cv_prog_STRIP+set}" = set; then
  2217. echo $ECHO_N "(cached) $ECHO_C" >&6
  2218. else
  2219. if test -n "$STRIP"; then
  2220. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2221. else
  2222. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2223. for as_dir in $PATH
  2224. do
  2225. IFS=$as_save_IFS
  2226. test -z "$as_dir" && as_dir=.
  2227. for ac_exec_ext in '' $ac_executable_extensions; do
  2228. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2229. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2230. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2231. break 2
  2232. fi
  2233. done
  2234. done
  2235. IFS=$as_save_IFS
  2236. fi
  2237. fi
  2238. STRIP=$ac_cv_prog_STRIP
  2239. if test -n "$STRIP"; then
  2240. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2241. echo "${ECHO_T}$STRIP" >&6; }
  2242. else
  2243. { echo "$as_me:$LINENO: result: no" >&5
  2244. echo "${ECHO_T}no" >&6; }
  2245. fi
  2246. fi
  2247. if test -z "$ac_cv_prog_STRIP"; then
  2248. ac_ct_STRIP=$STRIP
  2249. # Extract the first word of "strip", so it can be a program name with args.
  2250. set dummy strip; ac_word=$2
  2251. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2252. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2253. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2254. echo $ECHO_N "(cached) $ECHO_C" >&6
  2255. else
  2256. if test -n "$ac_ct_STRIP"; then
  2257. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2258. else
  2259. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2260. for as_dir in $PATH
  2261. do
  2262. IFS=$as_save_IFS
  2263. test -z "$as_dir" && as_dir=.
  2264. for ac_exec_ext in '' $ac_executable_extensions; do
  2265. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2266. ac_cv_prog_ac_ct_STRIP="strip"
  2267. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2268. break 2
  2269. fi
  2270. done
  2271. done
  2272. IFS=$as_save_IFS
  2273. fi
  2274. fi
  2275. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2276. if test -n "$ac_ct_STRIP"; then
  2277. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2278. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2279. else
  2280. { echo "$as_me:$LINENO: result: no" >&5
  2281. echo "${ECHO_T}no" >&6; }
  2282. fi
  2283. if test "x$ac_ct_STRIP" = x; then
  2284. STRIP=":"
  2285. else
  2286. case $cross_compiling:$ac_tool_warned in
  2287. yes:)
  2288. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2289. whose name does not start with the host triplet. If you think this
  2290. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2291. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2292. whose name does not start with the host triplet. If you think this
  2293. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2294. ac_tool_warned=yes ;;
  2295. esac
  2296. STRIP=$ac_ct_STRIP
  2297. fi
  2298. else
  2299. STRIP="$ac_cv_prog_STRIP"
  2300. fi
  2301. fi
  2302. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2303. # We need awk for the "check" target. The system "awk" is bad on
  2304. # some platforms.
  2305. # Always define AMTAR for backward compatibility.
  2306. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2307. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2308. { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2309. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  2310. # Check whether --enable-maintainer-mode was given.
  2311. if test "${enable_maintainer_mode+set}" = set; then
  2312. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2313. else
  2314. USE_MAINTAINER_MODE=no
  2315. fi
  2316. { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  2317. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  2318. if test $USE_MAINTAINER_MODE = yes; then
  2319. MAINTAINER_MODE_TRUE=
  2320. MAINTAINER_MODE_FALSE='#'
  2321. else
  2322. MAINTAINER_MODE_TRUE='#'
  2323. MAINTAINER_MODE_FALSE=
  2324. fi
  2325. MAINT=$MAINTAINER_MODE_TRUE
  2326. DEPDIR="${am__leading_dot}deps"
  2327. ac_config_commands="$ac_config_commands depfiles"
  2328. am_make=${MAKE-make}
  2329. cat > confinc << 'END'
  2330. am__doit:
  2331. @echo done
  2332. .PHONY: am__doit
  2333. END
  2334. # If we don't find an include directive, just comment out the code.
  2335. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2336. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2337. am__include="#"
  2338. am__quote=
  2339. _am_result=none
  2340. # First try GNU make style include.
  2341. echo "include confinc" > confmf
  2342. # We grep out `Entering directory' and `Leaving directory'
  2343. # messages which can occur if `w' ends up in MAKEFLAGS.
  2344. # In particular we don't look at `^make:' because GNU make might
  2345. # be invoked under some other name (usually "gmake"), in which
  2346. # case it prints its new name instead of `make'.
  2347. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2348. am__include=include
  2349. am__quote=
  2350. _am_result=GNU
  2351. fi
  2352. # Now try BSD make style include.
  2353. if test "$am__include" = "#"; then
  2354. echo '.include "confinc"' > confmf
  2355. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2356. am__include=.include
  2357. am__quote="\""
  2358. _am_result=BSD
  2359. fi
  2360. fi
  2361. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2362. echo "${ECHO_T}$_am_result" >&6; }
  2363. rm -f confinc confmf
  2364. # Check whether --enable-dependency-tracking was given.
  2365. if test "${enable_dependency_tracking+set}" = set; then
  2366. enableval=$enable_dependency_tracking;
  2367. fi
  2368. if test "x$enable_dependency_tracking" != xno; then
  2369. am_depcomp="$ac_aux_dir/depcomp"
  2370. AMDEPBACKSLASH='\'
  2371. fi
  2372. if test "x$enable_dependency_tracking" != xno; then
  2373. AMDEP_TRUE=
  2374. AMDEP_FALSE='#'
  2375. else
  2376. AMDEP_TRUE='#'
  2377. AMDEP_FALSE=
  2378. fi
  2379. ac_ext=c
  2380. ac_cpp='$CPP $CPPFLAGS'
  2381. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2382. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2383. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2384. if test -n "$ac_tool_prefix"; then
  2385. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2386. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2387. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2388. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2389. if test "${ac_cv_prog_CC+set}" = set; then
  2390. echo $ECHO_N "(cached) $ECHO_C" >&6
  2391. else
  2392. if test -n "$CC"; then
  2393. ac_cv_prog_CC="$CC" # Let the user override the test.
  2394. else
  2395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2396. for as_dir in $PATH
  2397. do
  2398. IFS=$as_save_IFS
  2399. test -z "$as_dir" && as_dir=.
  2400. for ac_exec_ext in '' $ac_executable_extensions; do
  2401. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2402. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2403. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2404. break 2
  2405. fi
  2406. done
  2407. done
  2408. IFS=$as_save_IFS
  2409. fi
  2410. fi
  2411. CC=$ac_cv_prog_CC
  2412. if test -n "$CC"; then
  2413. { echo "$as_me:$LINENO: result: $CC" >&5
  2414. echo "${ECHO_T}$CC" >&6; }
  2415. else
  2416. { echo "$as_me:$LINENO: result: no" >&5
  2417. echo "${ECHO_T}no" >&6; }
  2418. fi
  2419. fi
  2420. if test -z "$ac_cv_prog_CC"; then
  2421. ac_ct_CC=$CC
  2422. # Extract the first word of "gcc", so it can be a program name with args.
  2423. set dummy gcc; ac_word=$2
  2424. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2425. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2426. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2427. echo $ECHO_N "(cached) $ECHO_C" >&6
  2428. else
  2429. if test -n "$ac_ct_CC"; then
  2430. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2431. else
  2432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2433. for as_dir in $PATH
  2434. do
  2435. IFS=$as_save_IFS
  2436. test -z "$as_dir" && as_dir=.
  2437. for ac_exec_ext in '' $ac_executable_extensions; do
  2438. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2439. ac_cv_prog_ac_ct_CC="gcc"
  2440. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2441. break 2
  2442. fi
  2443. done
  2444. done
  2445. IFS=$as_save_IFS
  2446. fi
  2447. fi
  2448. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2449. if test -n "$ac_ct_CC"; then
  2450. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2451. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2452. else
  2453. { echo "$as_me:$LINENO: result: no" >&5
  2454. echo "${ECHO_T}no" >&6; }
  2455. fi
  2456. if test "x$ac_ct_CC" = x; then
  2457. CC=""
  2458. else
  2459. case $cross_compiling:$ac_tool_warned in
  2460. yes:)
  2461. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2462. whose name does not start with the host triplet. If you think this
  2463. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2464. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2465. whose name does not start with the host triplet. If you think this
  2466. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2467. ac_tool_warned=yes ;;
  2468. esac
  2469. CC=$ac_ct_CC
  2470. fi
  2471. else
  2472. CC="$ac_cv_prog_CC"
  2473. fi
  2474. if test -z "$CC"; then
  2475. if test -n "$ac_tool_prefix"; then
  2476. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2477. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2478. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2479. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2480. if test "${ac_cv_prog_CC+set}" = set; then
  2481. echo $ECHO_N "(cached) $ECHO_C" >&6
  2482. else
  2483. if test -n "$CC"; then
  2484. ac_cv_prog_CC="$CC" # Let the user override the test.
  2485. else
  2486. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2487. for as_dir in $PATH
  2488. do
  2489. IFS=$as_save_IFS
  2490. test -z "$as_dir" && as_dir=.
  2491. for ac_exec_ext in '' $ac_executable_extensions; do
  2492. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2493. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2494. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2495. break 2
  2496. fi
  2497. done
  2498. done
  2499. IFS=$as_save_IFS
  2500. fi
  2501. fi
  2502. CC=$ac_cv_prog_CC
  2503. if test -n "$CC"; then
  2504. { echo "$as_me:$LINENO: result: $CC" >&5
  2505. echo "${ECHO_T}$CC" >&6; }
  2506. else
  2507. { echo "$as_me:$LINENO: result: no" >&5
  2508. echo "${ECHO_T}no" >&6; }
  2509. fi
  2510. fi
  2511. fi
  2512. if test -z "$CC"; then
  2513. # Extract the first word of "cc", so it can be a program name with args.
  2514. set dummy cc; ac_word=$2
  2515. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2516. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2517. if test "${ac_cv_prog_CC+set}" = set; then
  2518. echo $ECHO_N "(cached) $ECHO_C" >&6
  2519. else
  2520. if test -n "$CC"; then
  2521. ac_cv_prog_CC="$CC" # Let the user override the test.
  2522. else
  2523. ac_prog_rejected=no
  2524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2525. for as_dir in $PATH
  2526. do
  2527. IFS=$as_save_IFS
  2528. test -z "$as_dir" && as_dir=.
  2529. for ac_exec_ext in '' $ac_executable_extensions; do
  2530. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2531. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2532. ac_prog_rejected=yes
  2533. continue
  2534. fi
  2535. ac_cv_prog_CC="cc"
  2536. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2537. break 2
  2538. fi
  2539. done
  2540. done
  2541. IFS=$as_save_IFS
  2542. if test $ac_prog_rejected = yes; then
  2543. # We found a bogon in the path, so make sure we never use it.
  2544. set dummy $ac_cv_prog_CC
  2545. shift
  2546. if test $# != 0; then
  2547. # We chose a different compiler from the bogus one.
  2548. # However, it has the same basename, so the bogon will be chosen
  2549. # first if we set CC to just the basename; use the full file name.
  2550. shift
  2551. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2552. fi
  2553. fi
  2554. fi
  2555. fi
  2556. CC=$ac_cv_prog_CC
  2557. if test -n "$CC"; then
  2558. { echo "$as_me:$LINENO: result: $CC" >&5
  2559. echo "${ECHO_T}$CC" >&6; }
  2560. else
  2561. { echo "$as_me:$LINENO: result: no" >&5
  2562. echo "${ECHO_T}no" >&6; }
  2563. fi
  2564. fi
  2565. if test -z "$CC"; then
  2566. if test -n "$ac_tool_prefix"; then
  2567. for ac_prog in cl.exe
  2568. do
  2569. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2570. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2571. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2572. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2573. if test "${ac_cv_prog_CC+set}" = set; then
  2574. echo $ECHO_N "(cached) $ECHO_C" >&6
  2575. else
  2576. if test -n "$CC"; then
  2577. ac_cv_prog_CC="$CC" # Let the user override the test.
  2578. else
  2579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2580. for as_dir in $PATH
  2581. do
  2582. IFS=$as_save_IFS
  2583. test -z "$as_dir" && as_dir=.
  2584. for ac_exec_ext in '' $ac_executable_extensions; do
  2585. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2586. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2587. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2588. break 2
  2589. fi
  2590. done
  2591. done
  2592. IFS=$as_save_IFS
  2593. fi
  2594. fi
  2595. CC=$ac_cv_prog_CC
  2596. if test -n "$CC"; then
  2597. { echo "$as_me:$LINENO: result: $CC" >&5
  2598. echo "${ECHO_T}$CC" >&6; }
  2599. else
  2600. { echo "$as_me:$LINENO: result: no" >&5
  2601. echo "${ECHO_T}no" >&6; }
  2602. fi
  2603. test -n "$CC" && break
  2604. done
  2605. fi
  2606. if test -z "$CC"; then
  2607. ac_ct_CC=$CC
  2608. for ac_prog in cl.exe
  2609. do
  2610. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2611. set dummy $ac_prog; ac_word=$2
  2612. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2613. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2614. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2615. echo $ECHO_N "(cached) $ECHO_C" >&6
  2616. else
  2617. if test -n "$ac_ct_CC"; then
  2618. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2619. else
  2620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2621. for as_dir in $PATH
  2622. do
  2623. IFS=$as_save_IFS
  2624. test -z "$as_dir" && as_dir=.
  2625. for ac_exec_ext in '' $ac_executable_extensions; do
  2626. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2627. ac_cv_prog_ac_ct_CC="$ac_prog"
  2628. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2629. break 2
  2630. fi
  2631. done
  2632. done
  2633. IFS=$as_save_IFS
  2634. fi
  2635. fi
  2636. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2637. if test -n "$ac_ct_CC"; then
  2638. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2639. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2640. else
  2641. { echo "$as_me:$LINENO: result: no" >&5
  2642. echo "${ECHO_T}no" >&6; }
  2643. fi
  2644. test -n "$ac_ct_CC" && break
  2645. done
  2646. if test "x$ac_ct_CC" = x; then
  2647. CC=""
  2648. else
  2649. case $cross_compiling:$ac_tool_warned in
  2650. yes:)
  2651. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2652. whose name does not start with the host triplet. If you think this
  2653. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2654. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2655. whose name does not start with the host triplet. If you think this
  2656. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2657. ac_tool_warned=yes ;;
  2658. esac
  2659. CC=$ac_ct_CC
  2660. fi
  2661. fi
  2662. fi
  2663. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2664. See \`config.log' for more details." >&5
  2665. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2666. See \`config.log' for more details." >&2;}
  2667. { (exit 1); exit 1; }; }
  2668. # Provide some information about the compiler.
  2669. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2670. ac_compiler=`set X $ac_compile; echo $2`
  2671. { (ac_try="$ac_compiler --version >&5"
  2672. case "(($ac_try" in
  2673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2674. *) ac_try_echo=$ac_try;;
  2675. esac
  2676. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2677. (eval "$ac_compiler --version >&5") 2>&5
  2678. ac_status=$?
  2679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2680. (exit $ac_status); }
  2681. { (ac_try="$ac_compiler -v >&5"
  2682. case "(($ac_try" in
  2683. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2684. *) ac_try_echo=$ac_try;;
  2685. esac
  2686. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2687. (eval "$ac_compiler -v >&5") 2>&5
  2688. ac_status=$?
  2689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2690. (exit $ac_status); }
  2691. { (ac_try="$ac_compiler -V >&5"
  2692. case "(($ac_try" in
  2693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2694. *) ac_try_echo=$ac_try;;
  2695. esac
  2696. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2697. (eval "$ac_compiler -V >&5") 2>&5
  2698. ac_status=$?
  2699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2700. (exit $ac_status); }
  2701. cat >conftest.$ac_ext <<_ACEOF
  2702. /* confdefs.h. */
  2703. _ACEOF
  2704. cat confdefs.h >>conftest.$ac_ext
  2705. cat >>conftest.$ac_ext <<_ACEOF
  2706. /* end confdefs.h. */
  2707. int
  2708. main ()
  2709. {
  2710. ;
  2711. return 0;
  2712. }
  2713. _ACEOF
  2714. ac_clean_files_save=$ac_clean_files
  2715. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2716. # Try to create an executable without -o first, disregard a.out.
  2717. # It will help us diagnose broken compilers, and finding out an intuition
  2718. # of exeext.
  2719. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2720. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2721. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2722. #
  2723. # List of possible output files, starting from the most likely.
  2724. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2725. # only as a last resort. b.out is created by i960 compilers.
  2726. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2727. #
  2728. # The IRIX 6 linker writes into existing files which may not be
  2729. # executable, retaining their permissions. Remove them first so a
  2730. # subsequent execution test works.
  2731. ac_rmfiles=
  2732. for ac_file in $ac_files
  2733. do
  2734. case $ac_file in
  2735. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2736. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2737. esac
  2738. done
  2739. rm -f $ac_rmfiles
  2740. if { (ac_try="$ac_link_default"
  2741. case "(($ac_try" in
  2742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2743. *) ac_try_echo=$ac_try;;
  2744. esac
  2745. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2746. (eval "$ac_link_default") 2>&5
  2747. ac_status=$?
  2748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2749. (exit $ac_status); }; then
  2750. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2751. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2752. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2753. # so that the user can short-circuit this test for compilers unknown to
  2754. # Autoconf.
  2755. for ac_file in $ac_files ''
  2756. do
  2757. test -f "$ac_file" || continue
  2758. case $ac_file in
  2759. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2760. ;;
  2761. [ab].out )
  2762. # We found the default executable, but exeext='' is most
  2763. # certainly right.
  2764. break;;
  2765. *.* )
  2766. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2767. then :; else
  2768. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2769. fi
  2770. # We set ac_cv_exeext here because the later test for it is not
  2771. # safe: cross compilers may not add the suffix if given an `-o'
  2772. # argument, so we may need to know it at that point already.
  2773. # Even if this section looks crufty: it has the advantage of
  2774. # actually working.
  2775. break;;
  2776. * )
  2777. break;;
  2778. esac
  2779. done
  2780. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2781. else
  2782. ac_file=''
  2783. fi
  2784. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2785. echo "${ECHO_T}$ac_file" >&6; }
  2786. if test -z "$ac_file"; then
  2787. echo "$as_me: failed program was:" >&5
  2788. sed 's/^/| /' conftest.$ac_ext >&5
  2789. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2790. See \`config.log' for more details." >&5
  2791. echo "$as_me: error: C compiler cannot create executables
  2792. See \`config.log' for more details." >&2;}
  2793. { (exit 77); exit 77; }; }
  2794. fi
  2795. ac_exeext=$ac_cv_exeext
  2796. # Check that the compiler produces executables we can run. If not, either
  2797. # the compiler is broken, or we cross compile.
  2798. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2799. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2800. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2801. # If not cross compiling, check that we can run a simple program.
  2802. if test "$cross_compiling" != yes; then
  2803. if { ac_try='./$ac_file'
  2804. { (case "(($ac_try" in
  2805. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2806. *) ac_try_echo=$ac_try;;
  2807. esac
  2808. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2809. (eval "$ac_try") 2>&5
  2810. ac_status=$?
  2811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2812. (exit $ac_status); }; }; then
  2813. cross_compiling=no
  2814. else
  2815. if test "$cross_compiling" = maybe; then
  2816. cross_compiling=yes
  2817. else
  2818. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2819. If you meant to cross compile, use \`--host'.
  2820. See \`config.log' for more details." >&5
  2821. echo "$as_me: error: cannot run C compiled programs.
  2822. If you meant to cross compile, use \`--host'.
  2823. See \`config.log' for more details." >&2;}
  2824. { (exit 1); exit 1; }; }
  2825. fi
  2826. fi
  2827. fi
  2828. { echo "$as_me:$LINENO: result: yes" >&5
  2829. echo "${ECHO_T}yes" >&6; }
  2830. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2831. ac_clean_files=$ac_clean_files_save
  2832. # Check that the compiler produces executables we can run. If not, either
  2833. # the compiler is broken, or we cross compile.
  2834. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2835. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2836. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2837. echo "${ECHO_T}$cross_compiling" >&6; }
  2838. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2839. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2840. if { (ac_try="$ac_link"
  2841. case "(($ac_try" in
  2842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2843. *) ac_try_echo=$ac_try;;
  2844. esac
  2845. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2846. (eval "$ac_link") 2>&5
  2847. ac_status=$?
  2848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2849. (exit $ac_status); }; then
  2850. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2851. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2852. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2853. # `rm'.
  2854. for ac_file in conftest.exe conftest conftest.*; do
  2855. test -f "$ac_file" || continue
  2856. case $ac_file in
  2857. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2858. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2859. break;;
  2860. * ) break;;
  2861. esac
  2862. done
  2863. else
  2864. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2865. See \`config.log' for more details." >&5
  2866. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2867. See \`config.log' for more details." >&2;}
  2868. { (exit 1); exit 1; }; }
  2869. fi
  2870. rm -f conftest$ac_cv_exeext
  2871. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2872. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2873. rm -f conftest.$ac_ext
  2874. EXEEXT=$ac_cv_exeext
  2875. ac_exeext=$EXEEXT
  2876. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2877. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2878. if test "${ac_cv_objext+set}" = set; then
  2879. echo $ECHO_N "(cached) $ECHO_C" >&6
  2880. else
  2881. cat >conftest.$ac_ext <<_ACEOF
  2882. /* confdefs.h. */
  2883. _ACEOF
  2884. cat confdefs.h >>conftest.$ac_ext
  2885. cat >>conftest.$ac_ext <<_ACEOF
  2886. /* end confdefs.h. */
  2887. int
  2888. main ()
  2889. {
  2890. ;
  2891. return 0;
  2892. }
  2893. _ACEOF
  2894. rm -f conftest.o conftest.obj
  2895. if { (ac_try="$ac_compile"
  2896. case "(($ac_try" in
  2897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2898. *) ac_try_echo=$ac_try;;
  2899. esac
  2900. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2901. (eval "$ac_compile") 2>&5
  2902. ac_status=$?
  2903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2904. (exit $ac_status); }; then
  2905. for ac_file in conftest.o conftest.obj conftest.*; do
  2906. test -f "$ac_file" || continue;
  2907. case $ac_file in
  2908. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2909. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2910. break;;
  2911. esac
  2912. done
  2913. else
  2914. echo "$as_me: failed program was:" >&5
  2915. sed 's/^/| /' conftest.$ac_ext >&5
  2916. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2917. See \`config.log' for more details." >&5
  2918. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2919. See \`config.log' for more details." >&2;}
  2920. { (exit 1); exit 1; }; }
  2921. fi
  2922. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2923. fi
  2924. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2925. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2926. OBJEXT=$ac_cv_objext
  2927. ac_objext=$OBJEXT
  2928. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2929. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2930. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2931. echo $ECHO_N "(cached) $ECHO_C" >&6
  2932. else
  2933. cat >conftest.$ac_ext <<_ACEOF
  2934. /* confdefs.h. */
  2935. _ACEOF
  2936. cat confdefs.h >>conftest.$ac_ext
  2937. cat >>conftest.$ac_ext <<_ACEOF
  2938. /* end confdefs.h. */
  2939. int
  2940. main ()
  2941. {
  2942. #ifndef __GNUC__
  2943. choke me
  2944. #endif
  2945. ;
  2946. return 0;
  2947. }
  2948. _ACEOF
  2949. rm -f conftest.$ac_objext
  2950. if { (ac_try="$ac_compile"
  2951. case "(($ac_try" in
  2952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2953. *) ac_try_echo=$ac_try;;
  2954. esac
  2955. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2956. (eval "$ac_compile") 2>conftest.er1
  2957. ac_status=$?
  2958. grep -v '^ *+' conftest.er1 >conftest.err
  2959. rm -f conftest.er1
  2960. cat conftest.err >&5
  2961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2962. (exit $ac_status); } && {
  2963. test -z "$ac_c_werror_flag" ||
  2964. test ! -s conftest.err
  2965. } && test -s conftest.$ac_objext; then
  2966. ac_compiler_gnu=yes
  2967. else
  2968. echo "$as_me: failed program was:" >&5
  2969. sed 's/^/| /' conftest.$ac_ext >&5
  2970. ac_compiler_gnu=no
  2971. fi
  2972. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2973. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2974. fi
  2975. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2976. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2977. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2978. ac_test_CFLAGS=${CFLAGS+set}
  2979. ac_save_CFLAGS=$CFLAGS
  2980. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2981. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2982. if test "${ac_cv_prog_cc_g+set}" = set; then
  2983. echo $ECHO_N "(cached) $ECHO_C" >&6
  2984. else
  2985. ac_save_c_werror_flag=$ac_c_werror_flag
  2986. ac_c_werror_flag=yes
  2987. ac_cv_prog_cc_g=no
  2988. CFLAGS="-g"
  2989. cat >conftest.$ac_ext <<_ACEOF
  2990. /* confdefs.h. */
  2991. _ACEOF
  2992. cat confdefs.h >>conftest.$ac_ext
  2993. cat >>conftest.$ac_ext <<_ACEOF
  2994. /* end confdefs.h. */
  2995. int
  2996. main ()
  2997. {
  2998. ;
  2999. return 0;
  3000. }
  3001. _ACEOF
  3002. rm -f conftest.$ac_objext
  3003. if { (ac_try="$ac_compile"
  3004. case "(($ac_try" in
  3005. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3006. *) ac_try_echo=$ac_try;;
  3007. esac
  3008. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3009. (eval "$ac_compile") 2>conftest.er1
  3010. ac_status=$?
  3011. grep -v '^ *+' conftest.er1 >conftest.err
  3012. rm -f conftest.er1
  3013. cat conftest.err >&5
  3014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3015. (exit $ac_status); } && {
  3016. test -z "$ac_c_werror_flag" ||
  3017. test ! -s conftest.err
  3018. } && test -s conftest.$ac_objext; then
  3019. ac_cv_prog_cc_g=yes
  3020. else
  3021. echo "$as_me: failed program was:" >&5
  3022. sed 's/^/| /' conftest.$ac_ext >&5
  3023. CFLAGS=""
  3024. cat >conftest.$ac_ext <<_ACEOF
  3025. /* confdefs.h. */
  3026. _ACEOF
  3027. cat confdefs.h >>conftest.$ac_ext
  3028. cat >>conftest.$ac_ext <<_ACEOF
  3029. /* end confdefs.h. */
  3030. int
  3031. main ()
  3032. {
  3033. ;
  3034. return 0;
  3035. }
  3036. _ACEOF
  3037. rm -f conftest.$ac_objext
  3038. if { (ac_try="$ac_compile"
  3039. case "(($ac_try" in
  3040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3041. *) ac_try_echo=$ac_try;;
  3042. esac
  3043. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3044. (eval "$ac_compile") 2>conftest.er1
  3045. ac_status=$?
  3046. grep -v '^ *+' conftest.er1 >conftest.err
  3047. rm -f conftest.er1
  3048. cat conftest.err >&5
  3049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3050. (exit $ac_status); } && {
  3051. test -z "$ac_c_werror_flag" ||
  3052. test ! -s conftest.err
  3053. } && test -s conftest.$ac_objext; then
  3054. :
  3055. else
  3056. echo "$as_me: failed program was:" >&5
  3057. sed 's/^/| /' conftest.$ac_ext >&5
  3058. ac_c_werror_flag=$ac_save_c_werror_flag
  3059. CFLAGS="-g"
  3060. cat >conftest.$ac_ext <<_ACEOF
  3061. /* confdefs.h. */
  3062. _ACEOF
  3063. cat confdefs.h >>conftest.$ac_ext
  3064. cat >>conftest.$ac_ext <<_ACEOF
  3065. /* end confdefs.h. */
  3066. int
  3067. main ()
  3068. {
  3069. ;
  3070. return 0;
  3071. }
  3072. _ACEOF
  3073. rm -f conftest.$ac_objext
  3074. if { (ac_try="$ac_compile"
  3075. case "(($ac_try" in
  3076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3077. *) ac_try_echo=$ac_try;;
  3078. esac
  3079. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3080. (eval "$ac_compile") 2>conftest.er1
  3081. ac_status=$?
  3082. grep -v '^ *+' conftest.er1 >conftest.err
  3083. rm -f conftest.er1
  3084. cat conftest.err >&5
  3085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3086. (exit $ac_status); } && {
  3087. test -z "$ac_c_werror_flag" ||
  3088. test ! -s conftest.err
  3089. } && test -s conftest.$ac_objext; then
  3090. ac_cv_prog_cc_g=yes
  3091. else
  3092. echo "$as_me: failed program was:" >&5
  3093. sed 's/^/| /' conftest.$ac_ext >&5
  3094. fi
  3095. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3096. fi
  3097. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3098. fi
  3099. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3100. ac_c_werror_flag=$ac_save_c_werror_flag
  3101. fi
  3102. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3103. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3104. if test "$ac_test_CFLAGS" = set; then
  3105. CFLAGS=$ac_save_CFLAGS
  3106. elif test $ac_cv_prog_cc_g = yes; then
  3107. if test "$GCC" = yes; then
  3108. CFLAGS="-g -O2"
  3109. else
  3110. CFLAGS="-g"
  3111. fi
  3112. else
  3113. if test "$GCC" = yes; then
  3114. CFLAGS="-O2"
  3115. else
  3116. CFLAGS=
  3117. fi
  3118. fi
  3119. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3120. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3121. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3122. echo $ECHO_N "(cached) $ECHO_C" >&6
  3123. else
  3124. ac_cv_prog_cc_c89=no
  3125. ac_save_CC=$CC
  3126. cat >conftest.$ac_ext <<_ACEOF
  3127. /* confdefs.h. */
  3128. _ACEOF
  3129. cat confdefs.h >>conftest.$ac_ext
  3130. cat >>conftest.$ac_ext <<_ACEOF
  3131. /* end confdefs.h. */
  3132. #include <stdarg.h>
  3133. #include <stdio.h>
  3134. #include <sys/types.h>
  3135. #include <sys/stat.h>
  3136. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3137. struct buf { int x; };
  3138. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3139. static char *e (p, i)
  3140. char **p;
  3141. int i;
  3142. {
  3143. return p[i];
  3144. }
  3145. static char *f (char * (*g) (char **, int), char **p, ...)
  3146. {
  3147. char *s;
  3148. va_list v;
  3149. va_start (v,p);
  3150. s = g (p, va_arg (v,int));
  3151. va_end (v);
  3152. return s;
  3153. }
  3154. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3155. function prototypes and stuff, but not '\xHH' hex character constants.
  3156. These don't provoke an error unfortunately, instead are silently treated
  3157. as 'x'. The following induces an error, until -std is added to get
  3158. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3159. array size at least. It's necessary to write '\x00'==0 to get something
  3160. that's true only with -std. */
  3161. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3162. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3163. inside strings and character constants. */
  3164. #define FOO(x) 'x'
  3165. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3166. int test (int i, double x);
  3167. struct s1 {int (*f) (int a);};
  3168. struct s2 {int (*f) (double a);};
  3169. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3170. int argc;
  3171. char **argv;
  3172. int
  3173. main ()
  3174. {
  3175. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3176. ;
  3177. return 0;
  3178. }
  3179. _ACEOF
  3180. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3181. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3182. do
  3183. CC="$ac_save_CC $ac_arg"
  3184. rm -f conftest.$ac_objext
  3185. if { (ac_try="$ac_compile"
  3186. case "(($ac_try" in
  3187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3188. *) ac_try_echo=$ac_try;;
  3189. esac
  3190. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3191. (eval "$ac_compile") 2>conftest.er1
  3192. ac_status=$?
  3193. grep -v '^ *+' conftest.er1 >conftest.err
  3194. rm -f conftest.er1
  3195. cat conftest.err >&5
  3196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3197. (exit $ac_status); } && {
  3198. test -z "$ac_c_werror_flag" ||
  3199. test ! -s conftest.err
  3200. } && test -s conftest.$ac_objext; then
  3201. ac_cv_prog_cc_c89=$ac_arg
  3202. else
  3203. echo "$as_me: failed program was:" >&5
  3204. sed 's/^/| /' conftest.$ac_ext >&5
  3205. fi
  3206. rm -f core conftest.err conftest.$ac_objext
  3207. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3208. done
  3209. rm -f conftest.$ac_ext
  3210. CC=$ac_save_CC
  3211. fi
  3212. # AC_CACHE_VAL
  3213. case "x$ac_cv_prog_cc_c89" in
  3214. x)
  3215. { echo "$as_me:$LINENO: result: none needed" >&5
  3216. echo "${ECHO_T}none needed" >&6; } ;;
  3217. xno)
  3218. { echo "$as_me:$LINENO: result: unsupported" >&5
  3219. echo "${ECHO_T}unsupported" >&6; } ;;
  3220. *)
  3221. CC="$CC $ac_cv_prog_cc_c89"
  3222. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3223. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3224. esac
  3225. ac_ext=c
  3226. ac_cpp='$CPP $CPPFLAGS'
  3227. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3228. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3229. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3230. depcc="$CC" am_compiler_list=
  3231. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3232. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3233. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3234. echo $ECHO_N "(cached) $ECHO_C" >&6
  3235. else
  3236. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3237. # We make a subdir and do the tests there. Otherwise we can end up
  3238. # making bogus files that we don't know about and never remove. For
  3239. # instance it was reported that on HP-UX the gcc test will end up
  3240. # making a dummy file named `D' -- because `-MD' means `put the output
  3241. # in D'.
  3242. mkdir conftest.dir
  3243. # Copy depcomp to subdir because otherwise we won't find it if we're
  3244. # using a relative directory.
  3245. cp "$am_depcomp" conftest.dir
  3246. cd conftest.dir
  3247. # We will build objects and dependencies in a subdirectory because
  3248. # it helps to detect inapplicable dependency modes. For instance
  3249. # both Tru64's cc and ICC support -MD to output dependencies as a
  3250. # side effect of compilation, but ICC will put the dependencies in
  3251. # the current directory while Tru64 will put them in the object
  3252. # directory.
  3253. mkdir sub
  3254. am_cv_CC_dependencies_compiler_type=none
  3255. if test "$am_compiler_list" = ""; then
  3256. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3257. fi
  3258. for depmode in $am_compiler_list; do
  3259. # Setup a source with many dependencies, because some compilers
  3260. # like to wrap large dependency lists on column 80 (with \), and
  3261. # we should not choose a depcomp mode which is confused by this.
  3262. #
  3263. # We need to recreate these files for each test, as the compiler may
  3264. # overwrite some of them when testing with obscure command lines.
  3265. # This happens at least with the AIX C compiler.
  3266. : > sub/conftest.c
  3267. for i in 1 2 3 4 5 6; do
  3268. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3269. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3270. # Solaris 8's {/usr,}/bin/sh.
  3271. touch sub/conftst$i.h
  3272. done
  3273. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3274. case $depmode in
  3275. nosideeffect)
  3276. # after this tag, mechanisms are not by side-effect, so they'll
  3277. # only be used when explicitly requested
  3278. if test "x$enable_dependency_tracking" = xyes; then
  3279. continue
  3280. else
  3281. break
  3282. fi
  3283. ;;
  3284. none) break ;;
  3285. esac
  3286. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3287. # mode. It turns out that the SunPro C++ compiler does not properly
  3288. # handle `-M -o', and we need to detect this.
  3289. if depmode=$depmode \
  3290. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3291. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3292. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3293. >/dev/null 2>conftest.err &&
  3294. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3295. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3296. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3297. # icc doesn't choke on unknown options, it will just issue warnings
  3298. # or remarks (even with -Werror). So we grep stderr for any message
  3299. # that says an option was ignored or not supported.
  3300. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3301. # icc: Command line warning: ignoring option '-M'; no argument required
  3302. # The diagnosis changed in icc 8.0:
  3303. # icc: Command line remark: option '-MP' not supported
  3304. if (grep 'ignoring option' conftest.err ||
  3305. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3306. am_cv_CC_dependencies_compiler_type=$depmode
  3307. break
  3308. fi
  3309. fi
  3310. done
  3311. cd ..
  3312. rm -rf conftest.dir
  3313. else
  3314. am_cv_CC_dependencies_compiler_type=none
  3315. fi
  3316. fi
  3317. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3318. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3319. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3320. if
  3321. test "x$enable_dependency_tracking" != xno \
  3322. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3323. am__fastdepCC_TRUE=
  3324. am__fastdepCC_FALSE='#'
  3325. else
  3326. am__fastdepCC_TRUE='#'
  3327. am__fastdepCC_FALSE=
  3328. fi
  3329. if test "x$CC" != xcc; then
  3330. { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  3331. echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
  3332. else
  3333. { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  3334. echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
  3335. fi
  3336. set dummy $CC; ac_cc=`echo $2 |
  3337. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3338. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  3339. echo $ECHO_N "(cached) $ECHO_C" >&6
  3340. else
  3341. cat >conftest.$ac_ext <<_ACEOF
  3342. /* confdefs.h. */
  3343. _ACEOF
  3344. cat confdefs.h >>conftest.$ac_ext
  3345. cat >>conftest.$ac_ext <<_ACEOF
  3346. /* end confdefs.h. */
  3347. int
  3348. main ()
  3349. {
  3350. ;
  3351. return 0;
  3352. }
  3353. _ACEOF
  3354. # Make sure it works both with $CC and with simple cc.
  3355. # We do the test twice because some compilers refuse to overwrite an
  3356. # existing .o file with -o, though they will create one.
  3357. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3358. rm -f conftest2.*
  3359. if { (case "(($ac_try" in
  3360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3361. *) ac_try_echo=$ac_try;;
  3362. esac
  3363. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3364. (eval "$ac_try") 2>&5
  3365. ac_status=$?
  3366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3367. (exit $ac_status); } &&
  3368. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  3369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3370. *) ac_try_echo=$ac_try;;
  3371. esac
  3372. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3373. (eval "$ac_try") 2>&5
  3374. ac_status=$?
  3375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3376. (exit $ac_status); };
  3377. then
  3378. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3379. if test "x$CC" != xcc; then
  3380. # Test first that cc exists at all.
  3381. if { ac_try='cc -c conftest.$ac_ext >&5'
  3382. { (case "(($ac_try" in
  3383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3384. *) ac_try_echo=$ac_try;;
  3385. esac
  3386. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3387. (eval "$ac_try") 2>&5
  3388. ac_status=$?
  3389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3390. (exit $ac_status); }; }; then
  3391. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3392. rm -f conftest2.*
  3393. if { (case "(($ac_try" in
  3394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3395. *) ac_try_echo=$ac_try;;
  3396. esac
  3397. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3398. (eval "$ac_try") 2>&5
  3399. ac_status=$?
  3400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3401. (exit $ac_status); } &&
  3402. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  3403. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3404. *) ac_try_echo=$ac_try;;
  3405. esac
  3406. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3407. (eval "$ac_try") 2>&5
  3408. ac_status=$?
  3409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3410. (exit $ac_status); };
  3411. then
  3412. # cc works too.
  3413. :
  3414. else
  3415. # cc exists but doesn't like -o.
  3416. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3417. fi
  3418. fi
  3419. fi
  3420. else
  3421. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3422. fi
  3423. rm -f core conftest*
  3424. fi
  3425. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  3426. { echo "$as_me:$LINENO: result: yes" >&5
  3427. echo "${ECHO_T}yes" >&6; }
  3428. else
  3429. { echo "$as_me:$LINENO: result: no" >&5
  3430. echo "${ECHO_T}no" >&6; }
  3431. cat >>confdefs.h <<\_ACEOF
  3432. #define NO_MINUS_C_MINUS_O 1
  3433. _ACEOF
  3434. fi
  3435. # FIXME: we rely on the cache variable name because
  3436. # there is no other way.
  3437. set dummy $CC
  3438. ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3439. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  3440. # Losing compiler, so override with the script.
  3441. # FIXME: It is wrong to rewrite CC.
  3442. # But if we don't then we get into trouble of one sort or another.
  3443. # A longer-term fix would be to have automake use am__CC in this case,
  3444. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3445. CC="$am_aux_dir/compile $CC"
  3446. fi
  3447. ac_ext=cpp
  3448. ac_cpp='$CXXCPP $CPPFLAGS'
  3449. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3450. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3451. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3452. if test -z "$CXX"; then
  3453. if test -n "$CCC"; then
  3454. CXX=$CCC
  3455. else
  3456. if test -n "$ac_tool_prefix"; then
  3457. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3458. do
  3459. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3460. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3461. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3462. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3463. if test "${ac_cv_prog_CXX+set}" = set; then
  3464. echo $ECHO_N "(cached) $ECHO_C" >&6
  3465. else
  3466. if test -n "$CXX"; then
  3467. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3468. else
  3469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3470. for as_dir in $PATH
  3471. do
  3472. IFS=$as_save_IFS
  3473. test -z "$as_dir" && as_dir=.
  3474. for ac_exec_ext in '' $ac_executable_extensions; do
  3475. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3476. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3477. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3478. break 2
  3479. fi
  3480. done
  3481. done
  3482. IFS=$as_save_IFS
  3483. fi
  3484. fi
  3485. CXX=$ac_cv_prog_CXX
  3486. if test -n "$CXX"; then
  3487. { echo "$as_me:$LINENO: result: $CXX" >&5
  3488. echo "${ECHO_T}$CXX" >&6; }
  3489. else
  3490. { echo "$as_me:$LINENO: result: no" >&5
  3491. echo "${ECHO_T}no" >&6; }
  3492. fi
  3493. test -n "$CXX" && break
  3494. done
  3495. fi
  3496. if test -z "$CXX"; then
  3497. ac_ct_CXX=$CXX
  3498. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3499. do
  3500. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3501. set dummy $ac_prog; ac_word=$2
  3502. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3503. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3504. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  3505. echo $ECHO_N "(cached) $ECHO_C" >&6
  3506. else
  3507. if test -n "$ac_ct_CXX"; then
  3508. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3509. else
  3510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3511. for as_dir in $PATH
  3512. do
  3513. IFS=$as_save_IFS
  3514. test -z "$as_dir" && as_dir=.
  3515. for ac_exec_ext in '' $ac_executable_extensions; do
  3516. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3517. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3518. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3519. break 2
  3520. fi
  3521. done
  3522. done
  3523. IFS=$as_save_IFS
  3524. fi
  3525. fi
  3526. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3527. if test -n "$ac_ct_CXX"; then
  3528. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  3529. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  3530. else
  3531. { echo "$as_me:$LINENO: result: no" >&5
  3532. echo "${ECHO_T}no" >&6; }
  3533. fi
  3534. test -n "$ac_ct_CXX" && break
  3535. done
  3536. if test "x$ac_ct_CXX" = x; then
  3537. CXX="g++"
  3538. else
  3539. case $cross_compiling:$ac_tool_warned in
  3540. yes:)
  3541. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3542. whose name does not start with the host triplet. If you think this
  3543. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3544. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3545. whose name does not start with the host triplet. If you think this
  3546. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3547. ac_tool_warned=yes ;;
  3548. esac
  3549. CXX=$ac_ct_CXX
  3550. fi
  3551. fi
  3552. fi
  3553. fi
  3554. # Provide some information about the compiler.
  3555. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  3556. ac_compiler=`set X $ac_compile; echo $2`
  3557. { (ac_try="$ac_compiler --version >&5"
  3558. case "(($ac_try" in
  3559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3560. *) ac_try_echo=$ac_try;;
  3561. esac
  3562. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3563. (eval "$ac_compiler --version >&5") 2>&5
  3564. ac_status=$?
  3565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3566. (exit $ac_status); }
  3567. { (ac_try="$ac_compiler -v >&5"
  3568. case "(($ac_try" in
  3569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3570. *) ac_try_echo=$ac_try;;
  3571. esac
  3572. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3573. (eval "$ac_compiler -v >&5") 2>&5
  3574. ac_status=$?
  3575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3576. (exit $ac_status); }
  3577. { (ac_try="$ac_compiler -V >&5"
  3578. case "(($ac_try" in
  3579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3580. *) ac_try_echo=$ac_try;;
  3581. esac
  3582. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3583. (eval "$ac_compiler -V >&5") 2>&5
  3584. ac_status=$?
  3585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3586. (exit $ac_status); }
  3587. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  3588. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  3589. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  3590. echo $ECHO_N "(cached) $ECHO_C" >&6
  3591. else
  3592. cat >conftest.$ac_ext <<_ACEOF
  3593. /* confdefs.h. */
  3594. _ACEOF
  3595. cat confdefs.h >>conftest.$ac_ext
  3596. cat >>conftest.$ac_ext <<_ACEOF
  3597. /* end confdefs.h. */
  3598. int
  3599. main ()
  3600. {
  3601. #ifndef __GNUC__
  3602. choke me
  3603. #endif
  3604. ;
  3605. return 0;
  3606. }
  3607. _ACEOF
  3608. rm -f conftest.$ac_objext
  3609. if { (ac_try="$ac_compile"
  3610. case "(($ac_try" in
  3611. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3612. *) ac_try_echo=$ac_try;;
  3613. esac
  3614. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3615. (eval "$ac_compile") 2>conftest.er1
  3616. ac_status=$?
  3617. grep -v '^ *+' conftest.er1 >conftest.err
  3618. rm -f conftest.er1
  3619. cat conftest.err >&5
  3620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3621. (exit $ac_status); } && {
  3622. test -z "$ac_cxx_werror_flag" ||
  3623. test ! -s conftest.err
  3624. } && test -s conftest.$ac_objext; then
  3625. ac_compiler_gnu=yes
  3626. else
  3627. echo "$as_me: failed program was:" >&5
  3628. sed 's/^/| /' conftest.$ac_ext >&5
  3629. ac_compiler_gnu=no
  3630. fi
  3631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3632. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3633. fi
  3634. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  3635. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  3636. GXX=`test $ac_compiler_gnu = yes && echo yes`
  3637. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3638. ac_save_CXXFLAGS=$CXXFLAGS
  3639. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  3640. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  3641. if test "${ac_cv_prog_cxx_g+set}" = set; then
  3642. echo $ECHO_N "(cached) $ECHO_C" >&6
  3643. else
  3644. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3645. ac_cxx_werror_flag=yes
  3646. ac_cv_prog_cxx_g=no
  3647. CXXFLAGS="-g"
  3648. cat >conftest.$ac_ext <<_ACEOF
  3649. /* confdefs.h. */
  3650. _ACEOF
  3651. cat confdefs.h >>conftest.$ac_ext
  3652. cat >>conftest.$ac_ext <<_ACEOF
  3653. /* end confdefs.h. */
  3654. int
  3655. main ()
  3656. {
  3657. ;
  3658. return 0;
  3659. }
  3660. _ACEOF
  3661. rm -f conftest.$ac_objext
  3662. if { (ac_try="$ac_compile"
  3663. case "(($ac_try" in
  3664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3665. *) ac_try_echo=$ac_try;;
  3666. esac
  3667. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3668. (eval "$ac_compile") 2>conftest.er1
  3669. ac_status=$?
  3670. grep -v '^ *+' conftest.er1 >conftest.err
  3671. rm -f conftest.er1
  3672. cat conftest.err >&5
  3673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3674. (exit $ac_status); } && {
  3675. test -z "$ac_cxx_werror_flag" ||
  3676. test ! -s conftest.err
  3677. } && test -s conftest.$ac_objext; then
  3678. ac_cv_prog_cxx_g=yes
  3679. else
  3680. echo "$as_me: failed program was:" >&5
  3681. sed 's/^/| /' conftest.$ac_ext >&5
  3682. CXXFLAGS=""
  3683. cat >conftest.$ac_ext <<_ACEOF
  3684. /* confdefs.h. */
  3685. _ACEOF
  3686. cat confdefs.h >>conftest.$ac_ext
  3687. cat >>conftest.$ac_ext <<_ACEOF
  3688. /* end confdefs.h. */
  3689. int
  3690. main ()
  3691. {
  3692. ;
  3693. return 0;
  3694. }
  3695. _ACEOF
  3696. rm -f conftest.$ac_objext
  3697. if { (ac_try="$ac_compile"
  3698. case "(($ac_try" in
  3699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3700. *) ac_try_echo=$ac_try;;
  3701. esac
  3702. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3703. (eval "$ac_compile") 2>conftest.er1
  3704. ac_status=$?
  3705. grep -v '^ *+' conftest.er1 >conftest.err
  3706. rm -f conftest.er1
  3707. cat conftest.err >&5
  3708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3709. (exit $ac_status); } && {
  3710. test -z "$ac_cxx_werror_flag" ||
  3711. test ! -s conftest.err
  3712. } && test -s conftest.$ac_objext; then
  3713. :
  3714. else
  3715. echo "$as_me: failed program was:" >&5
  3716. sed 's/^/| /' conftest.$ac_ext >&5
  3717. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3718. CXXFLAGS="-g"
  3719. cat >conftest.$ac_ext <<_ACEOF
  3720. /* confdefs.h. */
  3721. _ACEOF
  3722. cat confdefs.h >>conftest.$ac_ext
  3723. cat >>conftest.$ac_ext <<_ACEOF
  3724. /* end confdefs.h. */
  3725. int
  3726. main ()
  3727. {
  3728. ;
  3729. return 0;
  3730. }
  3731. _ACEOF
  3732. rm -f conftest.$ac_objext
  3733. if { (ac_try="$ac_compile"
  3734. case "(($ac_try" in
  3735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3736. *) ac_try_echo=$ac_try;;
  3737. esac
  3738. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3739. (eval "$ac_compile") 2>conftest.er1
  3740. ac_status=$?
  3741. grep -v '^ *+' conftest.er1 >conftest.err
  3742. rm -f conftest.er1
  3743. cat conftest.err >&5
  3744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3745. (exit $ac_status); } && {
  3746. test -z "$ac_cxx_werror_flag" ||
  3747. test ! -s conftest.err
  3748. } && test -s conftest.$ac_objext; then
  3749. ac_cv_prog_cxx_g=yes
  3750. else
  3751. echo "$as_me: failed program was:" >&5
  3752. sed 's/^/| /' conftest.$ac_ext >&5
  3753. fi
  3754. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3755. fi
  3756. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3757. fi
  3758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3759. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3760. fi
  3761. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  3762. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  3763. if test "$ac_test_CXXFLAGS" = set; then
  3764. CXXFLAGS=$ac_save_CXXFLAGS
  3765. elif test $ac_cv_prog_cxx_g = yes; then
  3766. if test "$GXX" = yes; then
  3767. CXXFLAGS="-g -O2"
  3768. else
  3769. CXXFLAGS="-g"
  3770. fi
  3771. else
  3772. if test "$GXX" = yes; then
  3773. CXXFLAGS="-O2"
  3774. else
  3775. CXXFLAGS=
  3776. fi
  3777. fi
  3778. ac_ext=c
  3779. ac_cpp='$CPP $CPPFLAGS'
  3780. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3781. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3782. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3783. depcc="$CXX" am_compiler_list=
  3784. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3785. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3786. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3787. echo $ECHO_N "(cached) $ECHO_C" >&6
  3788. else
  3789. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3790. # We make a subdir and do the tests there. Otherwise we can end up
  3791. # making bogus files that we don't know about and never remove. For
  3792. # instance it was reported that on HP-UX the gcc test will end up
  3793. # making a dummy file named `D' -- because `-MD' means `put the output
  3794. # in D'.
  3795. mkdir conftest.dir
  3796. # Copy depcomp to subdir because otherwise we won't find it if we're
  3797. # using a relative directory.
  3798. cp "$am_depcomp" conftest.dir
  3799. cd conftest.dir
  3800. # We will build objects and dependencies in a subdirectory because
  3801. # it helps to detect inapplicable dependency modes. For instance
  3802. # both Tru64's cc and ICC support -MD to output dependencies as a
  3803. # side effect of compilation, but ICC will put the dependencies in
  3804. # the current directory while Tru64 will put them in the object
  3805. # directory.
  3806. mkdir sub
  3807. am_cv_CXX_dependencies_compiler_type=none
  3808. if test "$am_compiler_list" = ""; then
  3809. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3810. fi
  3811. for depmode in $am_compiler_list; do
  3812. # Setup a source with many dependencies, because some compilers
  3813. # like to wrap large dependency lists on column 80 (with \), and
  3814. # we should not choose a depcomp mode which is confused by this.
  3815. #
  3816. # We need to recreate these files for each test, as the compiler may
  3817. # overwrite some of them when testing with obscure command lines.
  3818. # This happens at least with the AIX C compiler.
  3819. : > sub/conftest.c
  3820. for i in 1 2 3 4 5 6; do
  3821. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3822. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3823. # Solaris 8's {/usr,}/bin/sh.
  3824. touch sub/conftst$i.h
  3825. done
  3826. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3827. case $depmode in
  3828. nosideeffect)
  3829. # after this tag, mechanisms are not by side-effect, so they'll
  3830. # only be used when explicitly requested
  3831. if test "x$enable_dependency_tracking" = xyes; then
  3832. continue
  3833. else
  3834. break
  3835. fi
  3836. ;;
  3837. none) break ;;
  3838. esac
  3839. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3840. # mode. It turns out that the SunPro C++ compiler does not properly
  3841. # handle `-M -o', and we need to detect this.
  3842. if depmode=$depmode \
  3843. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3844. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3845. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3846. >/dev/null 2>conftest.err &&
  3847. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3848. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3849. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3850. # icc doesn't choke on unknown options, it will just issue warnings
  3851. # or remarks (even with -Werror). So we grep stderr for any message
  3852. # that says an option was ignored or not supported.
  3853. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3854. # icc: Command line warning: ignoring option '-M'; no argument required
  3855. # The diagnosis changed in icc 8.0:
  3856. # icc: Command line remark: option '-MP' not supported
  3857. if (grep 'ignoring option' conftest.err ||
  3858. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3859. am_cv_CXX_dependencies_compiler_type=$depmode
  3860. break
  3861. fi
  3862. fi
  3863. done
  3864. cd ..
  3865. rm -rf conftest.dir
  3866. else
  3867. am_cv_CXX_dependencies_compiler_type=none
  3868. fi
  3869. fi
  3870. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3871. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3872. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3873. if
  3874. test "x$enable_dependency_tracking" != xno \
  3875. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3876. am__fastdepCXX_TRUE=
  3877. am__fastdepCXX_FALSE='#'
  3878. else
  3879. am__fastdepCXX_TRUE='#'
  3880. am__fastdepCXX_FALSE=
  3881. fi
  3882. # By default we simply use the C compiler to build assembly code.
  3883. test "${CCAS+set}" = set || CCAS=$CC
  3884. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  3885. ## FIXME: really needed? (AC_LIBTOOL already provides this)
  3886. if test -n "$ac_tool_prefix"; then
  3887. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  3888. set dummy ${ac_tool_prefix}ar; ac_word=$2
  3889. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3890. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3891. if test "${ac_cv_prog_AR+set}" = set; then
  3892. echo $ECHO_N "(cached) $ECHO_C" >&6
  3893. else
  3894. if test -n "$AR"; then
  3895. ac_cv_prog_AR="$AR" # Let the user override the test.
  3896. else
  3897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3898. for as_dir in $PATH
  3899. do
  3900. IFS=$as_save_IFS
  3901. test -z "$as_dir" && as_dir=.
  3902. for ac_exec_ext in '' $ac_executable_extensions; do
  3903. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3904. ac_cv_prog_AR="${ac_tool_prefix}ar"
  3905. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3906. break 2
  3907. fi
  3908. done
  3909. done
  3910. IFS=$as_save_IFS
  3911. fi
  3912. fi
  3913. AR=$ac_cv_prog_AR
  3914. if test -n "$AR"; then
  3915. { echo "$as_me:$LINENO: result: $AR" >&5
  3916. echo "${ECHO_T}$AR" >&6; }
  3917. else
  3918. { echo "$as_me:$LINENO: result: no" >&5
  3919. echo "${ECHO_T}no" >&6; }
  3920. fi
  3921. fi
  3922. if test -z "$ac_cv_prog_AR"; then
  3923. ac_ct_AR=$AR
  3924. # Extract the first word of "ar", so it can be a program name with args.
  3925. set dummy ar; ac_word=$2
  3926. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3927. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3928. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  3929. echo $ECHO_N "(cached) $ECHO_C" >&6
  3930. else
  3931. if test -n "$ac_ct_AR"; then
  3932. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  3933. else
  3934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3935. for as_dir in $PATH
  3936. do
  3937. IFS=$as_save_IFS
  3938. test -z "$as_dir" && as_dir=.
  3939. for ac_exec_ext in '' $ac_executable_extensions; do
  3940. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3941. ac_cv_prog_ac_ct_AR="ar"
  3942. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3943. break 2
  3944. fi
  3945. done
  3946. done
  3947. IFS=$as_save_IFS
  3948. fi
  3949. fi
  3950. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  3951. if test -n "$ac_ct_AR"; then
  3952. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  3953. echo "${ECHO_T}$ac_ct_AR" >&6; }
  3954. else
  3955. { echo "$as_me:$LINENO: result: no" >&5
  3956. echo "${ECHO_T}no" >&6; }
  3957. fi
  3958. if test "x$ac_ct_AR" = x; then
  3959. AR=""
  3960. else
  3961. case $cross_compiling:$ac_tool_warned in
  3962. yes:)
  3963. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3964. whose name does not start with the host triplet. If you think this
  3965. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3966. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3967. whose name does not start with the host triplet. If you think this
  3968. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3969. ac_tool_warned=yes ;;
  3970. esac
  3971. AR=$ac_ct_AR
  3972. fi
  3973. else
  3974. AR="$ac_cv_prog_AR"
  3975. fi
  3976. if test -n "$ac_tool_prefix"; then
  3977. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3978. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3979. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3980. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3981. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3982. echo $ECHO_N "(cached) $ECHO_C" >&6
  3983. else
  3984. if test -n "$RANLIB"; then
  3985. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3986. else
  3987. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3988. for as_dir in $PATH
  3989. do
  3990. IFS=$as_save_IFS
  3991. test -z "$as_dir" && as_dir=.
  3992. for ac_exec_ext in '' $ac_executable_extensions; do
  3993. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3994. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3995. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3996. break 2
  3997. fi
  3998. done
  3999. done
  4000. IFS=$as_save_IFS
  4001. fi
  4002. fi
  4003. RANLIB=$ac_cv_prog_RANLIB
  4004. if test -n "$RANLIB"; then
  4005. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  4006. echo "${ECHO_T}$RANLIB" >&6; }
  4007. else
  4008. { echo "$as_me:$LINENO: result: no" >&5
  4009. echo "${ECHO_T}no" >&6; }
  4010. fi
  4011. fi
  4012. if test -z "$ac_cv_prog_RANLIB"; then
  4013. ac_ct_RANLIB=$RANLIB
  4014. # Extract the first word of "ranlib", so it can be a program name with args.
  4015. set dummy ranlib; ac_word=$2
  4016. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4017. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4018. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4019. echo $ECHO_N "(cached) $ECHO_C" >&6
  4020. else
  4021. if test -n "$ac_ct_RANLIB"; then
  4022. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4023. else
  4024. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4025. for as_dir in $PATH
  4026. do
  4027. IFS=$as_save_IFS
  4028. test -z "$as_dir" && as_dir=.
  4029. for ac_exec_ext in '' $ac_executable_extensions; do
  4030. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4031. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4032. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4033. break 2
  4034. fi
  4035. done
  4036. done
  4037. IFS=$as_save_IFS
  4038. fi
  4039. fi
  4040. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4041. if test -n "$ac_ct_RANLIB"; then
  4042. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4043. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  4044. else
  4045. { echo "$as_me:$LINENO: result: no" >&5
  4046. echo "${ECHO_T}no" >&6; }
  4047. fi
  4048. if test "x$ac_ct_RANLIB" = x; then
  4049. RANLIB=":"
  4050. else
  4051. case $cross_compiling:$ac_tool_warned in
  4052. yes:)
  4053. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4054. whose name does not start with the host triplet. If you think this
  4055. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4056. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4057. whose name does not start with the host triplet. If you think this
  4058. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4059. ac_tool_warned=yes ;;
  4060. esac
  4061. RANLIB=$ac_ct_RANLIB
  4062. fi
  4063. else
  4064. RANLIB="$ac_cv_prog_RANLIB"
  4065. fi
  4066. # :)
  4067. # Find a good install program. We prefer a C program (faster),
  4068. # so one script is as good as another. But avoid the broken or
  4069. # incompatible versions:
  4070. # SysV /etc/install, /usr/sbin/install
  4071. # SunOS /usr/etc/install
  4072. # IRIX /sbin/install
  4073. # AIX /bin/install
  4074. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4075. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4076. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4077. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4078. # OS/2's system install, which has a completely different semantic
  4079. # ./install, which can be erroneously created by make from ./install.sh.
  4080. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  4081. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  4082. if test -z "$INSTALL"; then
  4083. if test "${ac_cv_path_install+set}" = set; then
  4084. echo $ECHO_N "(cached) $ECHO_C" >&6
  4085. else
  4086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4087. for as_dir in $PATH
  4088. do
  4089. IFS=$as_save_IFS
  4090. test -z "$as_dir" && as_dir=.
  4091. # Account for people who put trailing slashes in PATH elements.
  4092. case $as_dir/ in
  4093. ./ | .// | /cC/* | \
  4094. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4095. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  4096. /usr/ucb/* ) ;;
  4097. *)
  4098. # OSF1 and SCO ODT 3.0 have their own names for install.
  4099. # Don't use installbsd from OSF since it installs stuff as root
  4100. # by default.
  4101. for ac_prog in ginstall scoinst install; do
  4102. for ac_exec_ext in '' $ac_executable_extensions; do
  4103. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  4104. if test $ac_prog = install &&
  4105. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4106. # AIX install. It has an incompatible calling convention.
  4107. :
  4108. elif test $ac_prog = install &&
  4109. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4110. # program-specific install script used by HP pwplus--don't use.
  4111. :
  4112. else
  4113. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4114. break 3
  4115. fi
  4116. fi
  4117. done
  4118. done
  4119. ;;
  4120. esac
  4121. done
  4122. IFS=$as_save_IFS
  4123. fi
  4124. if test "${ac_cv_path_install+set}" = set; then
  4125. INSTALL=$ac_cv_path_install
  4126. else
  4127. # As a last resort, use the slow shell script. Don't cache a
  4128. # value for INSTALL within a source directory, because that will
  4129. # break other packages using the cache if that directory is
  4130. # removed, or if the value is a relative name.
  4131. INSTALL=$ac_install_sh
  4132. fi
  4133. fi
  4134. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  4135. echo "${ECHO_T}$INSTALL" >&6; }
  4136. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4137. # It thinks the first close brace ends the variable substitution.
  4138. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4139. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4140. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4141. . ${srcdir}/configure.host
  4142. GC_CFLAGS=${gc_cflags}
  4143. # Check whether --enable-threads was given.
  4144. if test "${enable_threads+set}" = set; then
  4145. enableval=$enable_threads; THREADS=$enableval
  4146. else
  4147. { echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
  4148. echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6; }
  4149. THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
  4150. if test -z "$THREADS"; then
  4151. THREADS=no
  4152. fi
  4153. { echo "$as_me:$LINENO: result: $THREADS" >&5
  4154. echo "${ECHO_T}$THREADS" >&6; }
  4155. fi
  4156. # Check whether --enable-parallel-mark was given.
  4157. if test "${enable_parallel_mark+set}" = set; then
  4158. enableval=$enable_parallel_mark; case "$THREADS" in
  4159. no | none | single)
  4160. { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5
  4161. echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;}
  4162. { (exit 1); exit 1; }; }
  4163. ;;
  4164. esac
  4165. fi
  4166. # Check whether --enable-cplusplus was given.
  4167. if test "${enable_cplusplus+set}" = set; then
  4168. enableval=$enable_cplusplus;
  4169. fi
  4170. INCLUDES=-I${srcdir}/include
  4171. THREADDLLIBS=
  4172. need_atomic_ops_asm=false
  4173. ## Libraries needed to support dynamic loading and/or threads.
  4174. case "$THREADS" in
  4175. no | none | single)
  4176. THREADS=none
  4177. ;;
  4178. posix | pthreads)
  4179. THREADS=posix
  4180. THREADDLLIBS=-lpthread
  4181. case "$host" in
  4182. x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*)
  4183. cat >>confdefs.h <<\_ACEOF
  4184. #define GC_LINUX_THREADS 1
  4185. _ACEOF
  4186. cat >>confdefs.h <<\_ACEOF
  4187. #define _REENTRANT 1
  4188. _ACEOF
  4189. if test "${enable_parallel_mark}" = yes; then
  4190. cat >>confdefs.h <<\_ACEOF
  4191. #define PARALLEL_MARK 1
  4192. _ACEOF
  4193. fi
  4194. cat >>confdefs.h <<\_ACEOF
  4195. #define THREAD_LOCAL_ALLOC 1
  4196. _ACEOF
  4197. { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5
  4198. echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;};
  4199. ;;
  4200. *-*-linux*)
  4201. cat >>confdefs.h <<\_ACEOF
  4202. #define GC_LINUX_THREADS 1
  4203. _ACEOF
  4204. cat >>confdefs.h <<\_ACEOF
  4205. #define _REENTRANT 1
  4206. _ACEOF
  4207. ;;
  4208. *-*-aix*)
  4209. cat >>confdefs.h <<\_ACEOF
  4210. #define GC_AIX_THREADS 1
  4211. _ACEOF
  4212. cat >>confdefs.h <<\_ACEOF
  4213. #define _REENTRANT 1
  4214. _ACEOF
  4215. ;;
  4216. *-*-hpux11*)
  4217. { echo "$as_me:$LINENO: WARNING: \"Only HP/UX 11 POSIX threads are supported.\"" >&5
  4218. echo "$as_me: WARNING: \"Only HP/UX 11 POSIX threads are supported.\"" >&2;}
  4219. cat >>confdefs.h <<\_ACEOF
  4220. #define GC_HPUX_THREADS 1
  4221. _ACEOF
  4222. cat >>confdefs.h <<\_ACEOF
  4223. #define _POSIX_C_SOURCE 199506L
  4224. _ACEOF
  4225. if test "${enable_parallel_mark}" = yes; then
  4226. cat >>confdefs.h <<\_ACEOF
  4227. #define PARALLEL_MARK 1
  4228. _ACEOF
  4229. fi
  4230. cat >>confdefs.h <<\_ACEOF
  4231. #define THREAD_LOCAL_ALLOC 1
  4232. _ACEOF
  4233. { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5
  4234. echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;};
  4235. THREADDLLIBS="-lpthread -lrt"
  4236. # HPUX needs REENTRANT for the _r calls.
  4237. cat >>confdefs.h <<\_ACEOF
  4238. #define _REENTRANT 1
  4239. _ACEOF
  4240. ;;
  4241. *-*-hpux10*)
  4242. { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5
  4243. echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;}
  4244. ;;
  4245. *-*-freebsd*)
  4246. { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5
  4247. echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;}
  4248. cat >>confdefs.h <<\_ACEOF
  4249. #define GC_FREEBSD_THREADS 1
  4250. _ACEOF
  4251. INCLUDES="$INCLUDES -pthread"
  4252. ;;
  4253. *-*-kfreebsd*-gnu)
  4254. cat >>confdefs.h <<\_ACEOF
  4255. #define GC_FREEBSD_THREADS 1
  4256. _ACEOF
  4257. INCLUDES="$INCLUDES -pthread"
  4258. THREADDLLIBS=-pthread
  4259. cat >>confdefs.h <<\_ACEOF
  4260. #define _REENTRANT 1
  4261. _ACEOF
  4262. if test "${enable_parallel_mark}" = yes; then
  4263. cat >>confdefs.h <<\_ACEOF
  4264. #define PARALLEL_MARK 1
  4265. _ACEOF
  4266. fi
  4267. cat >>confdefs.h <<\_ACEOF
  4268. #define THREAD_LOCAL_ALLOC 1
  4269. _ACEOF
  4270. cat >>confdefs.h <<\_ACEOF
  4271. #define USE_COMPILER_TLS 1
  4272. _ACEOF
  4273. ;;
  4274. *-*-gnu*)
  4275. cat >>confdefs.h <<\_ACEOF
  4276. #define GC_GNU_THREADS 1
  4277. _ACEOF
  4278. cat >>confdefs.h <<\_ACEOF
  4279. #define _REENTRANT 1
  4280. _ACEOF
  4281. cat >>confdefs.h <<\_ACEOF
  4282. #define THREAD_LOCAL_ALLOC 1
  4283. _ACEOF
  4284. ;;
  4285. *-*-netbsd*)
  4286. { echo "$as_me:$LINENO: WARNING: \"Only on NetBSD 2.0 or later.\"" >&5
  4287. echo "$as_me: WARNING: \"Only on NetBSD 2.0 or later.\"" >&2;}
  4288. cat >>confdefs.h <<\_ACEOF
  4289. #define GC_NETBSD_THREADS 1
  4290. _ACEOF
  4291. cat >>confdefs.h <<\_ACEOF
  4292. #define _REENTRANT 1
  4293. _ACEOF
  4294. cat >>confdefs.h <<\_ACEOF
  4295. #define _PTHREADS 1
  4296. _ACEOF
  4297. THREADDLLIBS="-lpthread -lrt"
  4298. ;;
  4299. *-*-solaris*)
  4300. cat >>confdefs.h <<\_ACEOF
  4301. #define GC_SOLARIS_THREADS 1
  4302. _ACEOF
  4303. cat >>confdefs.h <<\_ACEOF
  4304. #define THREAD_LOCAL_ALLOC 1
  4305. _ACEOF
  4306. THREADDLLIBS="-lpthread -lrt"
  4307. if test "$GCC" != yes; then
  4308. CFLAGS="$CFLAGS -O"
  4309. need_atomic_ops_asm=true
  4310. fi
  4311. ;;
  4312. *-*-irix*)
  4313. cat >>confdefs.h <<\_ACEOF
  4314. #define GC_IRIX_THREADS 1
  4315. _ACEOF
  4316. ;;
  4317. *-*-cygwin*)
  4318. cat >>confdefs.h <<\_ACEOF
  4319. #define GC_WIN32_THREADS 1
  4320. _ACEOF
  4321. cat >>confdefs.h <<\_ACEOF
  4322. #define THREAD_LOCAL_ALLOC 1
  4323. _ACEOF
  4324. win32_threads=true
  4325. ;;
  4326. *-*-darwin*)
  4327. cat >>confdefs.h <<\_ACEOF
  4328. #define GC_DARWIN_THREADS 1
  4329. _ACEOF
  4330. cat >>confdefs.h <<\_ACEOF
  4331. #define THREAD_LOCAL_ALLOC 1
  4332. _ACEOF
  4333. { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5
  4334. echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;};
  4335. # Parallel-mark is currently unreliable on Darwin; ignore request
  4336. # if test "${enable_parallel_mark}" = yes; then
  4337. # AC_DEFINE(PARALLEL_MARK)
  4338. # fi
  4339. darwin_threads=true
  4340. ;;
  4341. *-*-osf*)
  4342. cat >>confdefs.h <<\_ACEOF
  4343. #define GC_OSF1_THREADS 1
  4344. _ACEOF
  4345. if test "${enable_parallel_mark}" = yes; then
  4346. cat >>confdefs.h <<\_ACEOF
  4347. #define PARALLEL_MARK 1
  4348. _ACEOF
  4349. cat >>confdefs.h <<\_ACEOF
  4350. #define THREAD_LOCAL_ALLOC 1
  4351. _ACEOF
  4352. { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5
  4353. echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;};
  4354. # May want to enable it in other cases, too.
  4355. # Measurements havent yet been done.
  4356. fi
  4357. INCLUDES="$INCLUDES -pthread"
  4358. THREADDLLIBS="-lpthread -lrt"
  4359. ;;
  4360. *)
  4361. { { echo "$as_me:$LINENO: error: \"Pthreads not supported by the GC on this platform.\"" >&5
  4362. echo "$as_me: error: \"Pthreads not supported by the GC on this platform.\"" >&2;}
  4363. { (exit 1); exit 1; }; }
  4364. ;;
  4365. esac
  4366. ;;
  4367. win32)
  4368. cat >>confdefs.h <<\_ACEOF
  4369. #define GC_WIN32_THREADS 1
  4370. _ACEOF
  4371. cat >>confdefs.h <<\_ACEOF
  4372. #define NO_GETENV 1
  4373. _ACEOF
  4374. ;;
  4375. dgux386)
  4376. THREADS=dgux386
  4377. { echo "$as_me:$LINENO: result: $THREADDLLIBS" >&5
  4378. echo "${ECHO_T}$THREADDLLIBS" >&6; }
  4379. # Use pthread GCC switch
  4380. THREADDLLIBS=-pthread
  4381. if test "${enable_parallel_mark}" = yes; then
  4382. cat >>confdefs.h <<\_ACEOF
  4383. #define PARALLEL_MARK 1
  4384. _ACEOF
  4385. fi
  4386. cat >>confdefs.h <<\_ACEOF
  4387. #define THREAD_LOCAL_ALLOC 1
  4388. _ACEOF
  4389. { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5
  4390. echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;};
  4391. cat >>confdefs.h <<\_ACEOF
  4392. #define GC_DGUX386_THREADS 1
  4393. _ACEOF
  4394. cat >>confdefs.h <<\_ACEOF
  4395. #define DGUX_THREADS 1
  4396. _ACEOF
  4397. # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread
  4398. INCLUDES="-pthread $INCLUDES"
  4399. ;;
  4400. aix)
  4401. THREADS=posix
  4402. THREADDLLIBS=-lpthread
  4403. cat >>confdefs.h <<\_ACEOF
  4404. #define GC_AIX_THREADS 1
  4405. _ACEOF
  4406. cat >>confdefs.h <<\_ACEOF
  4407. #define _REENTRANT 1
  4408. _ACEOF
  4409. ;;
  4410. decosf1 | irix | mach | os2 | solaris | dce | vxworks)
  4411. { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
  4412. echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
  4413. { (exit 1); exit 1; }; }
  4414. ;;
  4415. *)
  4416. { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
  4417. echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
  4418. { (exit 1); exit 1; }; }
  4419. ;;
  4420. esac
  4421. if test x$THREADS != xnone; then
  4422. THREADS_TRUE=
  4423. THREADS_FALSE='#'
  4424. else
  4425. THREADS_TRUE='#'
  4426. THREADS_FALSE=
  4427. fi
  4428. if test x$THREADS = xposix; then
  4429. PTHREADS_TRUE=
  4430. PTHREADS_FALSE='#'
  4431. else
  4432. PTHREADS_TRUE='#'
  4433. PTHREADS_FALSE=
  4434. fi
  4435. if test x$darwin_threads = xtrue; then
  4436. DARWIN_THREADS_TRUE=
  4437. DARWIN_THREADS_FALSE='#'
  4438. else
  4439. DARWIN_THREADS_TRUE='#'
  4440. DARWIN_THREADS_FALSE=
  4441. fi
  4442. if test x$win32_threads = xtrue; then
  4443. WIN32_THREADS_TRUE=
  4444. WIN32_THREADS_FALSE='#'
  4445. else
  4446. WIN32_THREADS_TRUE='#'
  4447. WIN32_THREADS_FALSE=
  4448. fi
  4449. case "$host" in
  4450. powerpc-*-darwin*)
  4451. powerpc_darwin=true
  4452. ;;
  4453. esac
  4454. # Darwin needs a few extra special tests to deal with variation in the
  4455. # system headers.
  4456. case "$host" in
  4457. powerpc*-*-darwin*)
  4458. { echo "$as_me:$LINENO: checking for ppc_thread_state_t.r0" >&5
  4459. echo $ECHO_N "checking for ppc_thread_state_t.r0... $ECHO_C" >&6; }
  4460. if test "${ac_cv_member_ppc_thread_state_t_r0+set}" = set; then
  4461. echo $ECHO_N "(cached) $ECHO_C" >&6
  4462. else
  4463. cat >conftest.$ac_ext <<_ACEOF
  4464. /* confdefs.h. */
  4465. _ACEOF
  4466. cat confdefs.h >>conftest.$ac_ext
  4467. cat >>conftest.$ac_ext <<_ACEOF
  4468. /* end confdefs.h. */
  4469. #include <mach/thread_status.h>
  4470. int
  4471. main ()
  4472. {
  4473. static ppc_thread_state_t ac_aggr;
  4474. if (ac_aggr.r0)
  4475. return 0;
  4476. ;
  4477. return 0;
  4478. }
  4479. _ACEOF
  4480. rm -f conftest.$ac_objext
  4481. if { (ac_try="$ac_compile"
  4482. case "(($ac_try" in
  4483. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4484. *) ac_try_echo=$ac_try;;
  4485. esac
  4486. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4487. (eval "$ac_compile") 2>conftest.er1
  4488. ac_status=$?
  4489. grep -v '^ *+' conftest.er1 >conftest.err
  4490. rm -f conftest.er1
  4491. cat conftest.err >&5
  4492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4493. (exit $ac_status); } && {
  4494. test -z "$ac_c_werror_flag" ||
  4495. test ! -s conftest.err
  4496. } && test -s conftest.$ac_objext; then
  4497. ac_cv_member_ppc_thread_state_t_r0=yes
  4498. else
  4499. echo "$as_me: failed program was:" >&5
  4500. sed 's/^/| /' conftest.$ac_ext >&5
  4501. cat >conftest.$ac_ext <<_ACEOF
  4502. /* confdefs.h. */
  4503. _ACEOF
  4504. cat confdefs.h >>conftest.$ac_ext
  4505. cat >>conftest.$ac_ext <<_ACEOF
  4506. /* end confdefs.h. */
  4507. #include <mach/thread_status.h>
  4508. int
  4509. main ()
  4510. {
  4511. static ppc_thread_state_t ac_aggr;
  4512. if (sizeof ac_aggr.r0)
  4513. return 0;
  4514. ;
  4515. return 0;
  4516. }
  4517. _ACEOF
  4518. rm -f conftest.$ac_objext
  4519. if { (ac_try="$ac_compile"
  4520. case "(($ac_try" in
  4521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4522. *) ac_try_echo=$ac_try;;
  4523. esac
  4524. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4525. (eval "$ac_compile") 2>conftest.er1
  4526. ac_status=$?
  4527. grep -v '^ *+' conftest.er1 >conftest.err
  4528. rm -f conftest.er1
  4529. cat conftest.err >&5
  4530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4531. (exit $ac_status); } && {
  4532. test -z "$ac_c_werror_flag" ||
  4533. test ! -s conftest.err
  4534. } && test -s conftest.$ac_objext; then
  4535. ac_cv_member_ppc_thread_state_t_r0=yes
  4536. else
  4537. echo "$as_me: failed program was:" >&5
  4538. sed 's/^/| /' conftest.$ac_ext >&5
  4539. ac_cv_member_ppc_thread_state_t_r0=no
  4540. fi
  4541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4542. fi
  4543. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4544. fi
  4545. { echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t_r0" >&5
  4546. echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t_r0" >&6; }
  4547. if test $ac_cv_member_ppc_thread_state_t_r0 = yes; then
  4548. cat >>confdefs.h <<\_ACEOF
  4549. #define HAS_PPC_THREAD_STATE_R0 1
  4550. _ACEOF
  4551. fi
  4552. { echo "$as_me:$LINENO: checking for ppc_thread_state_t.__r0" >&5
  4553. echo $ECHO_N "checking for ppc_thread_state_t.__r0... $ECHO_C" >&6; }
  4554. if test "${ac_cv_member_ppc_thread_state_t___r0+set}" = set; then
  4555. echo $ECHO_N "(cached) $ECHO_C" >&6
  4556. else
  4557. cat >conftest.$ac_ext <<_ACEOF
  4558. /* confdefs.h. */
  4559. _ACEOF
  4560. cat confdefs.h >>conftest.$ac_ext
  4561. cat >>conftest.$ac_ext <<_ACEOF
  4562. /* end confdefs.h. */
  4563. #include <mach/thread_status.h>
  4564. int
  4565. main ()
  4566. {
  4567. static ppc_thread_state_t ac_aggr;
  4568. if (ac_aggr.__r0)
  4569. return 0;
  4570. ;
  4571. return 0;
  4572. }
  4573. _ACEOF
  4574. rm -f conftest.$ac_objext
  4575. if { (ac_try="$ac_compile"
  4576. case "(($ac_try" in
  4577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4578. *) ac_try_echo=$ac_try;;
  4579. esac
  4580. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4581. (eval "$ac_compile") 2>conftest.er1
  4582. ac_status=$?
  4583. grep -v '^ *+' conftest.er1 >conftest.err
  4584. rm -f conftest.er1
  4585. cat conftest.err >&5
  4586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4587. (exit $ac_status); } && {
  4588. test -z "$ac_c_werror_flag" ||
  4589. test ! -s conftest.err
  4590. } && test -s conftest.$ac_objext; then
  4591. ac_cv_member_ppc_thread_state_t___r0=yes
  4592. else
  4593. echo "$as_me: failed program was:" >&5
  4594. sed 's/^/| /' conftest.$ac_ext >&5
  4595. cat >conftest.$ac_ext <<_ACEOF
  4596. /* confdefs.h. */
  4597. _ACEOF
  4598. cat confdefs.h >>conftest.$ac_ext
  4599. cat >>conftest.$ac_ext <<_ACEOF
  4600. /* end confdefs.h. */
  4601. #include <mach/thread_status.h>
  4602. int
  4603. main ()
  4604. {
  4605. static ppc_thread_state_t ac_aggr;
  4606. if (sizeof ac_aggr.__r0)
  4607. return 0;
  4608. ;
  4609. return 0;
  4610. }
  4611. _ACEOF
  4612. rm -f conftest.$ac_objext
  4613. if { (ac_try="$ac_compile"
  4614. case "(($ac_try" in
  4615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4616. *) ac_try_echo=$ac_try;;
  4617. esac
  4618. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4619. (eval "$ac_compile") 2>conftest.er1
  4620. ac_status=$?
  4621. grep -v '^ *+' conftest.er1 >conftest.err
  4622. rm -f conftest.er1
  4623. cat conftest.err >&5
  4624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4625. (exit $ac_status); } && {
  4626. test -z "$ac_c_werror_flag" ||
  4627. test ! -s conftest.err
  4628. } && test -s conftest.$ac_objext; then
  4629. ac_cv_member_ppc_thread_state_t___r0=yes
  4630. else
  4631. echo "$as_me: failed program was:" >&5
  4632. sed 's/^/| /' conftest.$ac_ext >&5
  4633. ac_cv_member_ppc_thread_state_t___r0=no
  4634. fi
  4635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4636. fi
  4637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4638. fi
  4639. { echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t___r0" >&5
  4640. echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t___r0" >&6; }
  4641. if test $ac_cv_member_ppc_thread_state_t___r0 = yes; then
  4642. cat >>confdefs.h <<\_ACEOF
  4643. #define HAS_PPC_THREAD_STATE___R0 1
  4644. _ACEOF
  4645. fi
  4646. { echo "$as_me:$LINENO: checking for ppc_thread_state64_t.r0" >&5
  4647. echo $ECHO_N "checking for ppc_thread_state64_t.r0... $ECHO_C" >&6; }
  4648. if test "${ac_cv_member_ppc_thread_state64_t_r0+set}" = set; then
  4649. echo $ECHO_N "(cached) $ECHO_C" >&6
  4650. else
  4651. cat >conftest.$ac_ext <<_ACEOF
  4652. /* confdefs.h. */
  4653. _ACEOF
  4654. cat confdefs.h >>conftest.$ac_ext
  4655. cat >>conftest.$ac_ext <<_ACEOF
  4656. /* end confdefs.h. */
  4657. #include <mach/thread_status.h>
  4658. int
  4659. main ()
  4660. {
  4661. static ppc_thread_state64_t ac_aggr;
  4662. if (ac_aggr.r0)
  4663. return 0;
  4664. ;
  4665. return 0;
  4666. }
  4667. _ACEOF
  4668. rm -f conftest.$ac_objext
  4669. if { (ac_try="$ac_compile"
  4670. case "(($ac_try" in
  4671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4672. *) ac_try_echo=$ac_try;;
  4673. esac
  4674. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4675. (eval "$ac_compile") 2>conftest.er1
  4676. ac_status=$?
  4677. grep -v '^ *+' conftest.er1 >conftest.err
  4678. rm -f conftest.er1
  4679. cat conftest.err >&5
  4680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4681. (exit $ac_status); } && {
  4682. test -z "$ac_c_werror_flag" ||
  4683. test ! -s conftest.err
  4684. } && test -s conftest.$ac_objext; then
  4685. ac_cv_member_ppc_thread_state64_t_r0=yes
  4686. else
  4687. echo "$as_me: failed program was:" >&5
  4688. sed 's/^/| /' conftest.$ac_ext >&5
  4689. cat >conftest.$ac_ext <<_ACEOF
  4690. /* confdefs.h. */
  4691. _ACEOF
  4692. cat confdefs.h >>conftest.$ac_ext
  4693. cat >>conftest.$ac_ext <<_ACEOF
  4694. /* end confdefs.h. */
  4695. #include <mach/thread_status.h>
  4696. int
  4697. main ()
  4698. {
  4699. static ppc_thread_state64_t ac_aggr;
  4700. if (sizeof ac_aggr.r0)
  4701. return 0;
  4702. ;
  4703. return 0;
  4704. }
  4705. _ACEOF
  4706. rm -f conftest.$ac_objext
  4707. if { (ac_try="$ac_compile"
  4708. case "(($ac_try" in
  4709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4710. *) ac_try_echo=$ac_try;;
  4711. esac
  4712. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4713. (eval "$ac_compile") 2>conftest.er1
  4714. ac_status=$?
  4715. grep -v '^ *+' conftest.er1 >conftest.err
  4716. rm -f conftest.er1
  4717. cat conftest.err >&5
  4718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4719. (exit $ac_status); } && {
  4720. test -z "$ac_c_werror_flag" ||
  4721. test ! -s conftest.err
  4722. } && test -s conftest.$ac_objext; then
  4723. ac_cv_member_ppc_thread_state64_t_r0=yes
  4724. else
  4725. echo "$as_me: failed program was:" >&5
  4726. sed 's/^/| /' conftest.$ac_ext >&5
  4727. ac_cv_member_ppc_thread_state64_t_r0=no
  4728. fi
  4729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4730. fi
  4731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4732. fi
  4733. { echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t_r0" >&5
  4734. echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t_r0" >&6; }
  4735. if test $ac_cv_member_ppc_thread_state64_t_r0 = yes; then
  4736. cat >>confdefs.h <<\_ACEOF
  4737. #define HAS_PPC_THREAD_STATE64_R0 1
  4738. _ACEOF
  4739. fi
  4740. { echo "$as_me:$LINENO: checking for ppc_thread_state64_t.__r0" >&5
  4741. echo $ECHO_N "checking for ppc_thread_state64_t.__r0... $ECHO_C" >&6; }
  4742. if test "${ac_cv_member_ppc_thread_state64_t___r0+set}" = set; then
  4743. echo $ECHO_N "(cached) $ECHO_C" >&6
  4744. else
  4745. cat >conftest.$ac_ext <<_ACEOF
  4746. /* confdefs.h. */
  4747. _ACEOF
  4748. cat confdefs.h >>conftest.$ac_ext
  4749. cat >>conftest.$ac_ext <<_ACEOF
  4750. /* end confdefs.h. */
  4751. #include <mach/thread_status.h>
  4752. int
  4753. main ()
  4754. {
  4755. static ppc_thread_state64_t ac_aggr;
  4756. if (ac_aggr.__r0)
  4757. return 0;
  4758. ;
  4759. return 0;
  4760. }
  4761. _ACEOF
  4762. rm -f conftest.$ac_objext
  4763. if { (ac_try="$ac_compile"
  4764. case "(($ac_try" in
  4765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4766. *) ac_try_echo=$ac_try;;
  4767. esac
  4768. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4769. (eval "$ac_compile") 2>conftest.er1
  4770. ac_status=$?
  4771. grep -v '^ *+' conftest.er1 >conftest.err
  4772. rm -f conftest.er1
  4773. cat conftest.err >&5
  4774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4775. (exit $ac_status); } && {
  4776. test -z "$ac_c_werror_flag" ||
  4777. test ! -s conftest.err
  4778. } && test -s conftest.$ac_objext; then
  4779. ac_cv_member_ppc_thread_state64_t___r0=yes
  4780. else
  4781. echo "$as_me: failed program was:" >&5
  4782. sed 's/^/| /' conftest.$ac_ext >&5
  4783. cat >conftest.$ac_ext <<_ACEOF
  4784. /* confdefs.h. */
  4785. _ACEOF
  4786. cat confdefs.h >>conftest.$ac_ext
  4787. cat >>conftest.$ac_ext <<_ACEOF
  4788. /* end confdefs.h. */
  4789. #include <mach/thread_status.h>
  4790. int
  4791. main ()
  4792. {
  4793. static ppc_thread_state64_t ac_aggr;
  4794. if (sizeof ac_aggr.__r0)
  4795. return 0;
  4796. ;
  4797. return 0;
  4798. }
  4799. _ACEOF
  4800. rm -f conftest.$ac_objext
  4801. if { (ac_try="$ac_compile"
  4802. case "(($ac_try" in
  4803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4804. *) ac_try_echo=$ac_try;;
  4805. esac
  4806. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4807. (eval "$ac_compile") 2>conftest.er1
  4808. ac_status=$?
  4809. grep -v '^ *+' conftest.er1 >conftest.err
  4810. rm -f conftest.er1
  4811. cat conftest.err >&5
  4812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4813. (exit $ac_status); } && {
  4814. test -z "$ac_c_werror_flag" ||
  4815. test ! -s conftest.err
  4816. } && test -s conftest.$ac_objext; then
  4817. ac_cv_member_ppc_thread_state64_t___r0=yes
  4818. else
  4819. echo "$as_me: failed program was:" >&5
  4820. sed 's/^/| /' conftest.$ac_ext >&5
  4821. ac_cv_member_ppc_thread_state64_t___r0=no
  4822. fi
  4823. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4824. fi
  4825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4826. fi
  4827. { echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t___r0" >&5
  4828. echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t___r0" >&6; }
  4829. if test $ac_cv_member_ppc_thread_state64_t___r0 = yes; then
  4830. cat >>confdefs.h <<\_ACEOF
  4831. #define HAS_PPC_THREAD_STATE64___R0 1
  4832. _ACEOF
  4833. fi
  4834. ;;
  4835. i?86*-*-darwin*)
  4836. { echo "$as_me:$LINENO: checking for x86_thread_state32_t.eax" >&5
  4837. echo $ECHO_N "checking for x86_thread_state32_t.eax... $ECHO_C" >&6; }
  4838. if test "${ac_cv_member_x86_thread_state32_t_eax+set}" = set; then
  4839. echo $ECHO_N "(cached) $ECHO_C" >&6
  4840. else
  4841. cat >conftest.$ac_ext <<_ACEOF
  4842. /* confdefs.h. */
  4843. _ACEOF
  4844. cat confdefs.h >>conftest.$ac_ext
  4845. cat >>conftest.$ac_ext <<_ACEOF
  4846. /* end confdefs.h. */
  4847. #include <sys/cdefs.h>
  4848. #include <mach/thread_status.h>
  4849. int
  4850. main ()
  4851. {
  4852. static x86_thread_state32_t ac_aggr;
  4853. if (ac_aggr.eax)
  4854. return 0;
  4855. ;
  4856. return 0;
  4857. }
  4858. _ACEOF
  4859. rm -f conftest.$ac_objext
  4860. if { (ac_try="$ac_compile"
  4861. case "(($ac_try" in
  4862. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4863. *) ac_try_echo=$ac_try;;
  4864. esac
  4865. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4866. (eval "$ac_compile") 2>conftest.er1
  4867. ac_status=$?
  4868. grep -v '^ *+' conftest.er1 >conftest.err
  4869. rm -f conftest.er1
  4870. cat conftest.err >&5
  4871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4872. (exit $ac_status); } && {
  4873. test -z "$ac_c_werror_flag" ||
  4874. test ! -s conftest.err
  4875. } && test -s conftest.$ac_objext; then
  4876. ac_cv_member_x86_thread_state32_t_eax=yes
  4877. else
  4878. echo "$as_me: failed program was:" >&5
  4879. sed 's/^/| /' conftest.$ac_ext >&5
  4880. cat >conftest.$ac_ext <<_ACEOF
  4881. /* confdefs.h. */
  4882. _ACEOF
  4883. cat confdefs.h >>conftest.$ac_ext
  4884. cat >>conftest.$ac_ext <<_ACEOF
  4885. /* end confdefs.h. */
  4886. #include <sys/cdefs.h>
  4887. #include <mach/thread_status.h>
  4888. int
  4889. main ()
  4890. {
  4891. static x86_thread_state32_t ac_aggr;
  4892. if (sizeof ac_aggr.eax)
  4893. return 0;
  4894. ;
  4895. return 0;
  4896. }
  4897. _ACEOF
  4898. rm -f conftest.$ac_objext
  4899. if { (ac_try="$ac_compile"
  4900. case "(($ac_try" in
  4901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4902. *) ac_try_echo=$ac_try;;
  4903. esac
  4904. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4905. (eval "$ac_compile") 2>conftest.er1
  4906. ac_status=$?
  4907. grep -v '^ *+' conftest.er1 >conftest.err
  4908. rm -f conftest.er1
  4909. cat conftest.err >&5
  4910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4911. (exit $ac_status); } && {
  4912. test -z "$ac_c_werror_flag" ||
  4913. test ! -s conftest.err
  4914. } && test -s conftest.$ac_objext; then
  4915. ac_cv_member_x86_thread_state32_t_eax=yes
  4916. else
  4917. echo "$as_me: failed program was:" >&5
  4918. sed 's/^/| /' conftest.$ac_ext >&5
  4919. ac_cv_member_x86_thread_state32_t_eax=no
  4920. fi
  4921. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4922. fi
  4923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4924. fi
  4925. { echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t_eax" >&5
  4926. echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t_eax" >&6; }
  4927. if test $ac_cv_member_x86_thread_state32_t_eax = yes; then
  4928. cat >>confdefs.h <<\_ACEOF
  4929. #define HAS_X86_THREAD_STATE32_EAX 1
  4930. _ACEOF
  4931. fi
  4932. { echo "$as_me:$LINENO: checking for x86_thread_state32_t.__eax" >&5
  4933. echo $ECHO_N "checking for x86_thread_state32_t.__eax... $ECHO_C" >&6; }
  4934. if test "${ac_cv_member_x86_thread_state32_t___eax+set}" = set; then
  4935. echo $ECHO_N "(cached) $ECHO_C" >&6
  4936. else
  4937. cat >conftest.$ac_ext <<_ACEOF
  4938. /* confdefs.h. */
  4939. _ACEOF
  4940. cat confdefs.h >>conftest.$ac_ext
  4941. cat >>conftest.$ac_ext <<_ACEOF
  4942. /* end confdefs.h. */
  4943. #include <sys/cdefs.h>
  4944. #include <mach/thread_status.h>
  4945. int
  4946. main ()
  4947. {
  4948. static x86_thread_state32_t ac_aggr;
  4949. if (ac_aggr.__eax)
  4950. return 0;
  4951. ;
  4952. return 0;
  4953. }
  4954. _ACEOF
  4955. rm -f conftest.$ac_objext
  4956. if { (ac_try="$ac_compile"
  4957. case "(($ac_try" in
  4958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4959. *) ac_try_echo=$ac_try;;
  4960. esac
  4961. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4962. (eval "$ac_compile") 2>conftest.er1
  4963. ac_status=$?
  4964. grep -v '^ *+' conftest.er1 >conftest.err
  4965. rm -f conftest.er1
  4966. cat conftest.err >&5
  4967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4968. (exit $ac_status); } && {
  4969. test -z "$ac_c_werror_flag" ||
  4970. test ! -s conftest.err
  4971. } && test -s conftest.$ac_objext; then
  4972. ac_cv_member_x86_thread_state32_t___eax=yes
  4973. else
  4974. echo "$as_me: failed program was:" >&5
  4975. sed 's/^/| /' conftest.$ac_ext >&5
  4976. cat >conftest.$ac_ext <<_ACEOF
  4977. /* confdefs.h. */
  4978. _ACEOF
  4979. cat confdefs.h >>conftest.$ac_ext
  4980. cat >>conftest.$ac_ext <<_ACEOF
  4981. /* end confdefs.h. */
  4982. #include <sys/cdefs.h>
  4983. #include <mach/thread_status.h>
  4984. int
  4985. main ()
  4986. {
  4987. static x86_thread_state32_t ac_aggr;
  4988. if (sizeof ac_aggr.__eax)
  4989. return 0;
  4990. ;
  4991. return 0;
  4992. }
  4993. _ACEOF
  4994. rm -f conftest.$ac_objext
  4995. if { (ac_try="$ac_compile"
  4996. case "(($ac_try" in
  4997. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4998. *) ac_try_echo=$ac_try;;
  4999. esac
  5000. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5001. (eval "$ac_compile") 2>conftest.er1
  5002. ac_status=$?
  5003. grep -v '^ *+' conftest.er1 >conftest.err
  5004. rm -f conftest.er1
  5005. cat conftest.err >&5
  5006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5007. (exit $ac_status); } && {
  5008. test -z "$ac_c_werror_flag" ||
  5009. test ! -s conftest.err
  5010. } && test -s conftest.$ac_objext; then
  5011. ac_cv_member_x86_thread_state32_t___eax=yes
  5012. else
  5013. echo "$as_me: failed program was:" >&5
  5014. sed 's/^/| /' conftest.$ac_ext >&5
  5015. ac_cv_member_x86_thread_state32_t___eax=no
  5016. fi
  5017. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5018. fi
  5019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5020. fi
  5021. { echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t___eax" >&5
  5022. echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t___eax" >&6; }
  5023. if test $ac_cv_member_x86_thread_state32_t___eax = yes; then
  5024. cat >>confdefs.h <<\_ACEOF
  5025. #define HAS_X86_THREAD_STATE32___EAX 1
  5026. _ACEOF
  5027. fi
  5028. ;;
  5029. x86_64-*-darwin*)
  5030. { echo "$as_me:$LINENO: checking for x86_thread_state64_t.rax" >&5
  5031. echo $ECHO_N "checking for x86_thread_state64_t.rax... $ECHO_C" >&6; }
  5032. if test "${ac_cv_member_x86_thread_state64_t_rax+set}" = set; then
  5033. echo $ECHO_N "(cached) $ECHO_C" >&6
  5034. else
  5035. cat >conftest.$ac_ext <<_ACEOF
  5036. /* confdefs.h. */
  5037. _ACEOF
  5038. cat confdefs.h >>conftest.$ac_ext
  5039. cat >>conftest.$ac_ext <<_ACEOF
  5040. /* end confdefs.h. */
  5041. #include <sys/cdefs.h>
  5042. #include <mach/thread_status.h>
  5043. int
  5044. main ()
  5045. {
  5046. static x86_thread_state64_t ac_aggr;
  5047. if (ac_aggr.rax)
  5048. return 0;
  5049. ;
  5050. return 0;
  5051. }
  5052. _ACEOF
  5053. rm -f conftest.$ac_objext
  5054. if { (ac_try="$ac_compile"
  5055. case "(($ac_try" in
  5056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5057. *) ac_try_echo=$ac_try;;
  5058. esac
  5059. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5060. (eval "$ac_compile") 2>conftest.er1
  5061. ac_status=$?
  5062. grep -v '^ *+' conftest.er1 >conftest.err
  5063. rm -f conftest.er1
  5064. cat conftest.err >&5
  5065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5066. (exit $ac_status); } && {
  5067. test -z "$ac_c_werror_flag" ||
  5068. test ! -s conftest.err
  5069. } && test -s conftest.$ac_objext; then
  5070. ac_cv_member_x86_thread_state64_t_rax=yes
  5071. else
  5072. echo "$as_me: failed program was:" >&5
  5073. sed 's/^/| /' conftest.$ac_ext >&5
  5074. cat >conftest.$ac_ext <<_ACEOF
  5075. /* confdefs.h. */
  5076. _ACEOF
  5077. cat confdefs.h >>conftest.$ac_ext
  5078. cat >>conftest.$ac_ext <<_ACEOF
  5079. /* end confdefs.h. */
  5080. #include <sys/cdefs.h>
  5081. #include <mach/thread_status.h>
  5082. int
  5083. main ()
  5084. {
  5085. static x86_thread_state64_t ac_aggr;
  5086. if (sizeof ac_aggr.rax)
  5087. return 0;
  5088. ;
  5089. return 0;
  5090. }
  5091. _ACEOF
  5092. rm -f conftest.$ac_objext
  5093. if { (ac_try="$ac_compile"
  5094. case "(($ac_try" in
  5095. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5096. *) ac_try_echo=$ac_try;;
  5097. esac
  5098. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5099. (eval "$ac_compile") 2>conftest.er1
  5100. ac_status=$?
  5101. grep -v '^ *+' conftest.er1 >conftest.err
  5102. rm -f conftest.er1
  5103. cat conftest.err >&5
  5104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5105. (exit $ac_status); } && {
  5106. test -z "$ac_c_werror_flag" ||
  5107. test ! -s conftest.err
  5108. } && test -s conftest.$ac_objext; then
  5109. ac_cv_member_x86_thread_state64_t_rax=yes
  5110. else
  5111. echo "$as_me: failed program was:" >&5
  5112. sed 's/^/| /' conftest.$ac_ext >&5
  5113. ac_cv_member_x86_thread_state64_t_rax=no
  5114. fi
  5115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5116. fi
  5117. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5118. fi
  5119. { echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t_rax" >&5
  5120. echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t_rax" >&6; }
  5121. if test $ac_cv_member_x86_thread_state64_t_rax = yes; then
  5122. cat >>confdefs.h <<\_ACEOF
  5123. #define HAS_X86_THREAD_STATE64_RAX 1
  5124. _ACEOF
  5125. fi
  5126. { echo "$as_me:$LINENO: checking for x86_thread_state64_t.__rax" >&5
  5127. echo $ECHO_N "checking for x86_thread_state64_t.__rax... $ECHO_C" >&6; }
  5128. if test "${ac_cv_member_x86_thread_state64_t___rax+set}" = set; then
  5129. echo $ECHO_N "(cached) $ECHO_C" >&6
  5130. else
  5131. cat >conftest.$ac_ext <<_ACEOF
  5132. /* confdefs.h. */
  5133. _ACEOF
  5134. cat confdefs.h >>conftest.$ac_ext
  5135. cat >>conftest.$ac_ext <<_ACEOF
  5136. /* end confdefs.h. */
  5137. #include <sys/cdefs.h>
  5138. #include <mach/thread_status.h>
  5139. int
  5140. main ()
  5141. {
  5142. static x86_thread_state64_t ac_aggr;
  5143. if (ac_aggr.__rax)
  5144. return 0;
  5145. ;
  5146. return 0;
  5147. }
  5148. _ACEOF
  5149. rm -f conftest.$ac_objext
  5150. if { (ac_try="$ac_compile"
  5151. case "(($ac_try" in
  5152. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5153. *) ac_try_echo=$ac_try;;
  5154. esac
  5155. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5156. (eval "$ac_compile") 2>conftest.er1
  5157. ac_status=$?
  5158. grep -v '^ *+' conftest.er1 >conftest.err
  5159. rm -f conftest.er1
  5160. cat conftest.err >&5
  5161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5162. (exit $ac_status); } && {
  5163. test -z "$ac_c_werror_flag" ||
  5164. test ! -s conftest.err
  5165. } && test -s conftest.$ac_objext; then
  5166. ac_cv_member_x86_thread_state64_t___rax=yes
  5167. else
  5168. echo "$as_me: failed program was:" >&5
  5169. sed 's/^/| /' conftest.$ac_ext >&5
  5170. cat >conftest.$ac_ext <<_ACEOF
  5171. /* confdefs.h. */
  5172. _ACEOF
  5173. cat confdefs.h >>conftest.$ac_ext
  5174. cat >>conftest.$ac_ext <<_ACEOF
  5175. /* end confdefs.h. */
  5176. #include <sys/cdefs.h>
  5177. #include <mach/thread_status.h>
  5178. int
  5179. main ()
  5180. {
  5181. static x86_thread_state64_t ac_aggr;
  5182. if (sizeof ac_aggr.__rax)
  5183. return 0;
  5184. ;
  5185. return 0;
  5186. }
  5187. _ACEOF
  5188. rm -f conftest.$ac_objext
  5189. if { (ac_try="$ac_compile"
  5190. case "(($ac_try" in
  5191. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5192. *) ac_try_echo=$ac_try;;
  5193. esac
  5194. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5195. (eval "$ac_compile") 2>conftest.er1
  5196. ac_status=$?
  5197. grep -v '^ *+' conftest.er1 >conftest.err
  5198. rm -f conftest.er1
  5199. cat conftest.err >&5
  5200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5201. (exit $ac_status); } && {
  5202. test -z "$ac_c_werror_flag" ||
  5203. test ! -s conftest.err
  5204. } && test -s conftest.$ac_objext; then
  5205. ac_cv_member_x86_thread_state64_t___rax=yes
  5206. else
  5207. echo "$as_me: failed program was:" >&5
  5208. sed 's/^/| /' conftest.$ac_ext >&5
  5209. ac_cv_member_x86_thread_state64_t___rax=no
  5210. fi
  5211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5212. fi
  5213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5214. fi
  5215. { echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t___rax" >&5
  5216. echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t___rax" >&6; }
  5217. if test $ac_cv_member_x86_thread_state64_t___rax = yes; then
  5218. cat >>confdefs.h <<\_ACEOF
  5219. #define HAS_X86_THREAD_STATE64___RAX 1
  5220. _ACEOF
  5221. fi
  5222. ;;
  5223. *) ;;
  5224. esac
  5225. { echo "$as_me:$LINENO: checking for xlc" >&5
  5226. echo $ECHO_N "checking for xlc... $ECHO_C" >&6; }
  5227. cat >conftest.$ac_ext <<_ACEOF
  5228. /* confdefs.h. */
  5229. _ACEOF
  5230. cat confdefs.h >>conftest.$ac_ext
  5231. cat >>conftest.$ac_ext <<_ACEOF
  5232. /* end confdefs.h. */
  5233. int
  5234. main ()
  5235. {
  5236. #ifndef __xlC__
  5237. # error
  5238. #endif
  5239. ;
  5240. return 0;
  5241. }
  5242. _ACEOF
  5243. rm -f conftest.$ac_objext
  5244. if { (ac_try="$ac_compile"
  5245. case "(($ac_try" in
  5246. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5247. *) ac_try_echo=$ac_try;;
  5248. esac
  5249. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5250. (eval "$ac_compile") 2>conftest.er1
  5251. ac_status=$?
  5252. grep -v '^ *+' conftest.er1 >conftest.err
  5253. rm -f conftest.er1
  5254. cat conftest.err >&5
  5255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5256. (exit $ac_status); } && {
  5257. test -z "$ac_c_werror_flag" ||
  5258. test ! -s conftest.err
  5259. } && test -s conftest.$ac_objext; then
  5260. compiler_xlc=yes
  5261. else
  5262. echo "$as_me: failed program was:" >&5
  5263. sed 's/^/| /' conftest.$ac_ext >&5
  5264. compiler_xlc=no
  5265. fi
  5266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5267. { echo "$as_me:$LINENO: result: $compiler_xlc" >&5
  5268. echo "${ECHO_T}$compiler_xlc" >&6; }
  5269. if test $compiler_xlc = yes; then
  5270. COMPILER_XLC_TRUE=
  5271. COMPILER_XLC_FALSE='#'
  5272. else
  5273. COMPILER_XLC_TRUE='#'
  5274. COMPILER_XLC_FALSE=
  5275. fi
  5276. if test $compiler_xlc = yes -a "$powerpc_darwin" = true; then
  5277. # the darwin stack-frame-walking code is completely broken on xlc
  5278. cat >>confdefs.h <<\_ACEOF
  5279. #define DARWIN_DONT_PARSE_STACK 1
  5280. _ACEOF
  5281. fi
  5282. # We never want libdl on darwin. It is a fake libdl that just ends up making
  5283. # dyld calls anyway
  5284. case "$host" in
  5285. *-*-darwin*) ;;
  5286. *)
  5287. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  5288. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  5289. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  5290. echo $ECHO_N "(cached) $ECHO_C" >&6
  5291. else
  5292. ac_check_lib_save_LIBS=$LIBS
  5293. LIBS="-ldl $LIBS"
  5294. cat >conftest.$ac_ext <<_ACEOF
  5295. /* confdefs.h. */
  5296. _ACEOF
  5297. cat confdefs.h >>conftest.$ac_ext
  5298. cat >>conftest.$ac_ext <<_ACEOF
  5299. /* end confdefs.h. */
  5300. /* Override any GCC internal prototype to avoid an error.
  5301. Use char because int might match the return type of a GCC
  5302. builtin and then its argument prototype would still apply. */
  5303. #ifdef __cplusplus
  5304. extern "C"
  5305. #endif
  5306. char dlopen ();
  5307. int
  5308. main ()
  5309. {
  5310. return dlopen ();
  5311. ;
  5312. return 0;
  5313. }
  5314. _ACEOF
  5315. rm -f conftest.$ac_objext conftest$ac_exeext
  5316. if { (ac_try="$ac_link"
  5317. case "(($ac_try" in
  5318. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5319. *) ac_try_echo=$ac_try;;
  5320. esac
  5321. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5322. (eval "$ac_link") 2>conftest.er1
  5323. ac_status=$?
  5324. grep -v '^ *+' conftest.er1 >conftest.err
  5325. rm -f conftest.er1
  5326. cat conftest.err >&5
  5327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5328. (exit $ac_status); } && {
  5329. test -z "$ac_c_werror_flag" ||
  5330. test ! -s conftest.err
  5331. } && test -s conftest$ac_exeext &&
  5332. $as_test_x conftest$ac_exeext; then
  5333. ac_cv_lib_dl_dlopen=yes
  5334. else
  5335. echo "$as_me: failed program was:" >&5
  5336. sed 's/^/| /' conftest.$ac_ext >&5
  5337. ac_cv_lib_dl_dlopen=no
  5338. fi
  5339. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5340. conftest$ac_exeext conftest.$ac_ext
  5341. LIBS=$ac_check_lib_save_LIBS
  5342. fi
  5343. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  5344. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  5345. if test $ac_cv_lib_dl_dlopen = yes; then
  5346. THREADDLLIBS="$THREADDLLIBS -ldl"
  5347. fi
  5348. ;;
  5349. esac
  5350. case "$host" in
  5351. *-*-hpux*)
  5352. avoid_cpp_lib=yes;;
  5353. *)
  5354. avoid_cpp_lib=no;
  5355. ;;
  5356. esac
  5357. if test $avoid_cpp_lib = yes; then
  5358. AVOID_CPP_LIB_TRUE=
  5359. AVOID_CPP_LIB_FALSE='#'
  5360. else
  5361. AVOID_CPP_LIB_TRUE='#'
  5362. AVOID_CPP_LIB_FALSE=
  5363. fi
  5364. # extra LD Flags which are required for targets
  5365. case "${host}" in
  5366. *-*-darwin*)
  5367. extra_ldflags_libgc=-Wl,-single_module
  5368. ;;
  5369. esac
  5370. target_all=libgc.la
  5371. TARGET_ECOS="no"
  5372. # Check whether --with-ecos was given.
  5373. if test "${with_ecos+set}" = set; then
  5374. withval=$with_ecos; TARGET_ECOS="$with_ecos"
  5375. fi
  5376. addobjs=
  5377. addlibs=
  5378. CXXINCLUDES=
  5379. case "$TARGET_ECOS" in
  5380. no)
  5381. ;;
  5382. *)
  5383. cat >>confdefs.h <<\_ACEOF
  5384. #define ECOS 1
  5385. _ACEOF
  5386. CXXINCLUDES="-I${TARGET_ECOS}/include"
  5387. addobjs="$addobjs ecos.lo"
  5388. ;;
  5389. esac
  5390. if test "${enable_cplusplus}" = yes; then
  5391. CPLUSPLUS_TRUE=
  5392. CPLUSPLUS_FALSE='#'
  5393. else
  5394. CPLUSPLUS_TRUE='#'
  5395. CPLUSPLUS_FALSE=
  5396. fi
  5397. # Configuration of shared libraries
  5398. #
  5399. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  5400. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  5401. # Check whether --enable-shared was given.
  5402. if test "${enable_shared+set}" = set; then
  5403. enableval=$enable_shared; p=${PACKAGE-default}
  5404. case $enableval in
  5405. yes) enable_shared=yes ;;
  5406. no) enable_shared=no ;;
  5407. *)
  5408. enable_shared=no
  5409. # Look at the argument we got. We use all the common list separators.
  5410. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5411. for pkg in $enableval; do
  5412. IFS="$lt_save_ifs"
  5413. if test "X$pkg" = "X$p"; then
  5414. enable_shared=yes
  5415. fi
  5416. done
  5417. IFS="$lt_save_ifs"
  5418. ;;
  5419. esac
  5420. else
  5421. enable_shared=yes
  5422. fi
  5423. case "$host" in
  5424. alpha-*-openbsd*)
  5425. enable_shared=no
  5426. ;;
  5427. *)
  5428. ;;
  5429. esac
  5430. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  5431. echo "${ECHO_T}$enable_shared" >&6; }
  5432. # Configuration of machine-dependent code
  5433. #
  5434. { echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5
  5435. echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6; }
  5436. machdep=
  5437. case "$host" in
  5438. alpha-*-openbsd*)
  5439. machdep="mach_dep.lo"
  5440. if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
  5441. { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5
  5442. echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;}
  5443. fi
  5444. ;;
  5445. alpha*-*-linux*)
  5446. machdep="mach_dep.lo"
  5447. ;;
  5448. i?86-*-solaris2.[89] | i?86-*-solaris2.1?)
  5449. cat >>confdefs.h <<\_ACEOF
  5450. #define SOLARIS25_PROC_VDB_BUG_FIXED 1
  5451. _ACEOF
  5452. ;;
  5453. mipstx39-*-elf*)
  5454. machdep="mach_dep.lo"
  5455. cat >>confdefs.h <<\_ACEOF
  5456. #define STACKBASE __stackbase
  5457. _ACEOF
  5458. cat >>confdefs.h <<\_ACEOF
  5459. #define DATASTART_IS_ETEXT 1
  5460. _ACEOF
  5461. ;;
  5462. mips-dec-ultrix*)
  5463. machdep="mach-dep.lo"
  5464. ;;
  5465. mips-nec-sysv*|mips-unknown-sysv*)
  5466. ;;
  5467. mips*-*-linux*)
  5468. ;;
  5469. mips-*-*)
  5470. machdep="mach_dep.lo"
  5471. ;;
  5472. sparc-*-netbsd*)
  5473. machdep="mach_dep.lo sparc_netbsd_mach_dep.lo"
  5474. ;;
  5475. sparc-sun-solaris2.3)
  5476. machdep="mach_dep.lo sparc_mach_dep.lo"
  5477. cat >>confdefs.h <<\_ACEOF
  5478. #define SUNOS53_SHARED_LIB 1
  5479. _ACEOF
  5480. ;;
  5481. sparc*-sun-solaris2.*)
  5482. machdep="mach_dep.lo sparc_mach_dep.lo"
  5483. ;;
  5484. ia64-*-*)
  5485. machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
  5486. ;;
  5487. esac
  5488. if test x"$machdep" = x; then
  5489. { echo "$as_me:$LINENO: result: $machdep" >&5
  5490. echo "${ECHO_T}$machdep" >&6; }
  5491. machdep="mach_dep.lo"
  5492. fi
  5493. addobjs="$addobjs $machdep"
  5494. # Check whether --enable-static was given.
  5495. if test "${enable_static+set}" = set; then
  5496. enableval=$enable_static; p=${PACKAGE-default}
  5497. case $enableval in
  5498. yes) enable_static=yes ;;
  5499. no) enable_static=no ;;
  5500. *)
  5501. enable_static=no
  5502. # Look at the argument we got. We use all the common list separators.
  5503. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5504. for pkg in $enableval; do
  5505. IFS="$lt_save_ifs"
  5506. if test "X$pkg" = "X$p"; then
  5507. enable_static=yes
  5508. fi
  5509. done
  5510. IFS="$lt_save_ifs"
  5511. ;;
  5512. esac
  5513. else
  5514. enable_static=yes
  5515. fi
  5516. # Check whether --enable-fast-install was given.
  5517. if test "${enable_fast_install+set}" = set; then
  5518. enableval=$enable_fast_install; p=${PACKAGE-default}
  5519. case $enableval in
  5520. yes) enable_fast_install=yes ;;
  5521. no) enable_fast_install=no ;;
  5522. *)
  5523. enable_fast_install=no
  5524. # Look at the argument we got. We use all the common list separators.
  5525. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  5526. for pkg in $enableval; do
  5527. IFS="$lt_save_ifs"
  5528. if test "X$pkg" = "X$p"; then
  5529. enable_fast_install=yes
  5530. fi
  5531. done
  5532. IFS="$lt_save_ifs"
  5533. ;;
  5534. esac
  5535. else
  5536. enable_fast_install=yes
  5537. fi
  5538. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  5539. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  5540. if test "${lt_cv_path_SED+set}" = set; then
  5541. echo $ECHO_N "(cached) $ECHO_C" >&6
  5542. else
  5543. # Loop through the user's path and test for sed and gsed.
  5544. # Then use that list of sed's as ones to test for truncation.
  5545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5546. for as_dir in $PATH
  5547. do
  5548. IFS=$as_save_IFS
  5549. test -z "$as_dir" && as_dir=.
  5550. for lt_ac_prog in sed gsed; do
  5551. for ac_exec_ext in '' $ac_executable_extensions; do
  5552. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  5553. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  5554. fi
  5555. done
  5556. done
  5557. done
  5558. lt_ac_max=0
  5559. lt_ac_count=0
  5560. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  5561. # along with /bin/sed that truncates output.
  5562. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  5563. test ! -f $lt_ac_sed && continue
  5564. cat /dev/null > conftest.in
  5565. lt_ac_count=0
  5566. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  5567. # Check for GNU sed and select it if it is found.
  5568. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  5569. lt_cv_path_SED=$lt_ac_sed
  5570. break
  5571. fi
  5572. while true; do
  5573. cat conftest.in conftest.in >conftest.tmp
  5574. mv conftest.tmp conftest.in
  5575. cp conftest.in conftest.nl
  5576. echo >>conftest.nl
  5577. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  5578. cmp -s conftest.out conftest.nl || break
  5579. # 10000 chars as input seems more than enough
  5580. test $lt_ac_count -gt 10 && break
  5581. lt_ac_count=`expr $lt_ac_count + 1`
  5582. if test $lt_ac_count -gt $lt_ac_max; then
  5583. lt_ac_max=$lt_ac_count
  5584. lt_cv_path_SED=$lt_ac_sed
  5585. fi
  5586. done
  5587. done
  5588. fi
  5589. SED=$lt_cv_path_SED
  5590. { echo "$as_me:$LINENO: result: $SED" >&5
  5591. echo "${ECHO_T}$SED" >&6; }
  5592. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  5593. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  5594. if test "${ac_cv_path_GREP+set}" = set; then
  5595. echo $ECHO_N "(cached) $ECHO_C" >&6
  5596. else
  5597. # Extract the first word of "grep ggrep" to use in msg output
  5598. if test -z "$GREP"; then
  5599. set dummy grep ggrep; ac_prog_name=$2
  5600. if test "${ac_cv_path_GREP+set}" = set; then
  5601. echo $ECHO_N "(cached) $ECHO_C" >&6
  5602. else
  5603. ac_path_GREP_found=false
  5604. # Loop through the user's path and test for each of PROGNAME-LIST
  5605. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5606. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5607. do
  5608. IFS=$as_save_IFS
  5609. test -z "$as_dir" && as_dir=.
  5610. for ac_prog in grep ggrep; do
  5611. for ac_exec_ext in '' $ac_executable_extensions; do
  5612. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5613. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  5614. # Check for GNU ac_path_GREP and select it if it is found.
  5615. # Check for GNU $ac_path_GREP
  5616. case `"$ac_path_GREP" --version 2>&1` in
  5617. *GNU*)
  5618. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5619. *)
  5620. ac_count=0
  5621. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5622. while :
  5623. do
  5624. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5625. mv "conftest.tmp" "conftest.in"
  5626. cp "conftest.in" "conftest.nl"
  5627. echo 'GREP' >> "conftest.nl"
  5628. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5629. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5630. ac_count=`expr $ac_count + 1`
  5631. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5632. # Best one so far, save it but keep looking for a better one
  5633. ac_cv_path_GREP="$ac_path_GREP"
  5634. ac_path_GREP_max=$ac_count
  5635. fi
  5636. # 10*(2^10) chars as input seems more than enough
  5637. test $ac_count -gt 10 && break
  5638. done
  5639. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5640. esac
  5641. $ac_path_GREP_found && break 3
  5642. done
  5643. done
  5644. done
  5645. IFS=$as_save_IFS
  5646. fi
  5647. GREP="$ac_cv_path_GREP"
  5648. if test -z "$GREP"; then
  5649. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5650. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5651. { (exit 1); exit 1; }; }
  5652. fi
  5653. else
  5654. ac_cv_path_GREP=$GREP
  5655. fi
  5656. fi
  5657. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  5658. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  5659. GREP="$ac_cv_path_GREP"
  5660. { echo "$as_me:$LINENO: checking for egrep" >&5
  5661. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  5662. if test "${ac_cv_path_EGREP+set}" = set; then
  5663. echo $ECHO_N "(cached) $ECHO_C" >&6
  5664. else
  5665. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5666. then ac_cv_path_EGREP="$GREP -E"
  5667. else
  5668. # Extract the first word of "egrep" to use in msg output
  5669. if test -z "$EGREP"; then
  5670. set dummy egrep; ac_prog_name=$2
  5671. if test "${ac_cv_path_EGREP+set}" = set; then
  5672. echo $ECHO_N "(cached) $ECHO_C" >&6
  5673. else
  5674. ac_path_EGREP_found=false
  5675. # Loop through the user's path and test for each of PROGNAME-LIST
  5676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5677. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5678. do
  5679. IFS=$as_save_IFS
  5680. test -z "$as_dir" && as_dir=.
  5681. for ac_prog in egrep; do
  5682. for ac_exec_ext in '' $ac_executable_extensions; do
  5683. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5684. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5685. # Check for GNU ac_path_EGREP and select it if it is found.
  5686. # Check for GNU $ac_path_EGREP
  5687. case `"$ac_path_EGREP" --version 2>&1` in
  5688. *GNU*)
  5689. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5690. *)
  5691. ac_count=0
  5692. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5693. while :
  5694. do
  5695. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5696. mv "conftest.tmp" "conftest.in"
  5697. cp "conftest.in" "conftest.nl"
  5698. echo 'EGREP' >> "conftest.nl"
  5699. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5700. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5701. ac_count=`expr $ac_count + 1`
  5702. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5703. # Best one so far, save it but keep looking for a better one
  5704. ac_cv_path_EGREP="$ac_path_EGREP"
  5705. ac_path_EGREP_max=$ac_count
  5706. fi
  5707. # 10*(2^10) chars as input seems more than enough
  5708. test $ac_count -gt 10 && break
  5709. done
  5710. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5711. esac
  5712. $ac_path_EGREP_found && break 3
  5713. done
  5714. done
  5715. done
  5716. IFS=$as_save_IFS
  5717. fi
  5718. EGREP="$ac_cv_path_EGREP"
  5719. if test -z "$EGREP"; then
  5720. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5721. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5722. { (exit 1); exit 1; }; }
  5723. fi
  5724. else
  5725. ac_cv_path_EGREP=$EGREP
  5726. fi
  5727. fi
  5728. fi
  5729. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  5730. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  5731. EGREP="$ac_cv_path_EGREP"
  5732. # Check whether --with-gnu-ld was given.
  5733. if test "${with_gnu_ld+set}" = set; then
  5734. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5735. else
  5736. with_gnu_ld=no
  5737. fi
  5738. ac_prog=ld
  5739. if test "$GCC" = yes; then
  5740. # Check if gcc -print-prog-name=ld gives a path.
  5741. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  5742. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  5743. case $host in
  5744. *-*-mingw*)
  5745. # gcc leaves a trailing carriage return which upsets mingw
  5746. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5747. *)
  5748. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5749. esac
  5750. case $ac_prog in
  5751. # Accept absolute paths.
  5752. [\\/]* | ?:[\\/]*)
  5753. re_direlt='/[^/][^/]*/\.\./'
  5754. # Canonicalize the pathname of ld
  5755. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  5756. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  5757. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  5758. done
  5759. test -z "$LD" && LD="$ac_prog"
  5760. ;;
  5761. "")
  5762. # If it fails, then pretend we aren't using GCC.
  5763. ac_prog=ld
  5764. ;;
  5765. *)
  5766. # If it is relative, then search for the first ld in PATH.
  5767. with_gnu_ld=unknown
  5768. ;;
  5769. esac
  5770. elif test "$with_gnu_ld" = yes; then
  5771. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  5772. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  5773. else
  5774. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  5775. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  5776. fi
  5777. if test "${lt_cv_path_LD+set}" = set; then
  5778. echo $ECHO_N "(cached) $ECHO_C" >&6
  5779. else
  5780. if test -z "$LD"; then
  5781. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5782. for ac_dir in $PATH; do
  5783. IFS="$lt_save_ifs"
  5784. test -z "$ac_dir" && ac_dir=.
  5785. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5786. lt_cv_path_LD="$ac_dir/$ac_prog"
  5787. # Check to see if the program is GNU ld. I'd rather use --version,
  5788. # but apparently some variants of GNU ld only accept -v.
  5789. # Break only if it was the GNU/non-GNU ld that we prefer.
  5790. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5791. *GNU* | *'with BFD'*)
  5792. test "$with_gnu_ld" != no && break
  5793. ;;
  5794. *)
  5795. test "$with_gnu_ld" != yes && break
  5796. ;;
  5797. esac
  5798. fi
  5799. done
  5800. IFS="$lt_save_ifs"
  5801. else
  5802. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5803. fi
  5804. fi
  5805. LD="$lt_cv_path_LD"
  5806. if test -n "$LD"; then
  5807. { echo "$as_me:$LINENO: result: $LD" >&5
  5808. echo "${ECHO_T}$LD" >&6; }
  5809. else
  5810. { echo "$as_me:$LINENO: result: no" >&5
  5811. echo "${ECHO_T}no" >&6; }
  5812. fi
  5813. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  5814. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  5815. { (exit 1); exit 1; }; }
  5816. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  5817. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  5818. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  5819. echo $ECHO_N "(cached) $ECHO_C" >&6
  5820. else
  5821. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5822. case `$LD -v 2>&1 </dev/null` in
  5823. *GNU* | *'with BFD'*)
  5824. lt_cv_prog_gnu_ld=yes
  5825. ;;
  5826. *)
  5827. lt_cv_prog_gnu_ld=no
  5828. ;;
  5829. esac
  5830. fi
  5831. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  5832. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  5833. with_gnu_ld=$lt_cv_prog_gnu_ld
  5834. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  5835. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  5836. if test "${lt_cv_ld_reload_flag+set}" = set; then
  5837. echo $ECHO_N "(cached) $ECHO_C" >&6
  5838. else
  5839. lt_cv_ld_reload_flag='-r'
  5840. fi
  5841. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  5842. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  5843. reload_flag=$lt_cv_ld_reload_flag
  5844. case $reload_flag in
  5845. "" | " "*) ;;
  5846. *) reload_flag=" $reload_flag" ;;
  5847. esac
  5848. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5849. case $host_os in
  5850. darwin*)
  5851. if test "$GCC" = yes; then
  5852. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5853. else
  5854. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5855. fi
  5856. ;;
  5857. esac
  5858. { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  5859. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  5860. if test "${lt_cv_path_NM+set}" = set; then
  5861. echo $ECHO_N "(cached) $ECHO_C" >&6
  5862. else
  5863. if test -n "$NM"; then
  5864. # Let the user override the test.
  5865. lt_cv_path_NM="$NM"
  5866. else
  5867. lt_nm_to_check="${ac_tool_prefix}nm"
  5868. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5869. lt_nm_to_check="$lt_nm_to_check nm"
  5870. fi
  5871. for lt_tmp_nm in $lt_nm_to_check; do
  5872. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5873. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5874. IFS="$lt_save_ifs"
  5875. test -z "$ac_dir" && ac_dir=.
  5876. tmp_nm="$ac_dir/$lt_tmp_nm"
  5877. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5878. # Check to see if the nm accepts a BSD-compat flag.
  5879. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5880. # nm: unknown option "B" ignored
  5881. # Tru64's nm complains that /dev/null is an invalid object file
  5882. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5883. */dev/null* | *'Invalid file or object type'*)
  5884. lt_cv_path_NM="$tmp_nm -B"
  5885. break
  5886. ;;
  5887. *)
  5888. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5889. */dev/null*)
  5890. lt_cv_path_NM="$tmp_nm -p"
  5891. break
  5892. ;;
  5893. *)
  5894. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5895. continue # so that we can try to find one that supports BSD flags
  5896. ;;
  5897. esac
  5898. ;;
  5899. esac
  5900. fi
  5901. done
  5902. IFS="$lt_save_ifs"
  5903. done
  5904. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  5905. fi
  5906. fi
  5907. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  5908. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  5909. NM="$lt_cv_path_NM"
  5910. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  5911. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  5912. LN_S=$as_ln_s
  5913. if test "$LN_S" = "ln -s"; then
  5914. { echo "$as_me:$LINENO: result: yes" >&5
  5915. echo "${ECHO_T}yes" >&6; }
  5916. else
  5917. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  5918. echo "${ECHO_T}no, using $LN_S" >&6; }
  5919. fi
  5920. { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  5921. echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
  5922. if test "${lt_cv_deplibs_check_method+set}" = set; then
  5923. echo $ECHO_N "(cached) $ECHO_C" >&6
  5924. else
  5925. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5926. lt_cv_file_magic_test_file=
  5927. lt_cv_deplibs_check_method='unknown'
  5928. # Need to set the preceding variable on all platforms that support
  5929. # interlibrary dependencies.
  5930. # 'none' -- dependencies not supported.
  5931. # `unknown' -- same as none, but documents that we really don't know.
  5932. # 'pass_all' -- all dependencies passed with no checks.
  5933. # 'test_compile' -- check by making test program.
  5934. # 'file_magic [[regex]]' -- check by looking for files in library path
  5935. # which responds to the $file_magic_cmd with a given extended regex.
  5936. # If you have `file' or equivalent on your system and you're not sure
  5937. # whether `pass_all' will *always* work, you probably want this one.
  5938. case $host_os in
  5939. aix4* | aix5*)
  5940. lt_cv_deplibs_check_method=pass_all
  5941. ;;
  5942. beos*)
  5943. lt_cv_deplibs_check_method=pass_all
  5944. ;;
  5945. bsdi[45]*)
  5946. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5947. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5948. lt_cv_file_magic_test_file=/shlib/libc.so
  5949. ;;
  5950. cygwin*)
  5951. # func_win32_libid is a shell function defined in ltmain.sh
  5952. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5953. lt_cv_file_magic_cmd='func_win32_libid'
  5954. ;;
  5955. mingw* | pw32*)
  5956. # Base MSYS/MinGW do not provide the 'file' command needed by
  5957. # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  5958. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5959. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5960. ;;
  5961. darwin* | rhapsody*)
  5962. lt_cv_deplibs_check_method=pass_all
  5963. ;;
  5964. freebsd* | kfreebsd*-gnu | dragonfly*)
  5965. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  5966. case $host_cpu in
  5967. i*86 )
  5968. # Not sure whether the presence of OpenBSD here was a mistake.
  5969. # Let's accept both of them until this is cleared up.
  5970. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5971. lt_cv_file_magic_cmd=/usr/bin/file
  5972. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5973. ;;
  5974. esac
  5975. else
  5976. lt_cv_deplibs_check_method=pass_all
  5977. fi
  5978. ;;
  5979. gnu*)
  5980. lt_cv_deplibs_check_method=pass_all
  5981. ;;
  5982. hpux10.20* | hpux11*)
  5983. lt_cv_file_magic_cmd=/usr/bin/file
  5984. case $host_cpu in
  5985. ia64*)
  5986. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5987. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5988. ;;
  5989. hppa*64*)
  5990. 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]'
  5991. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5992. ;;
  5993. *)
  5994. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5995. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5996. ;;
  5997. esac
  5998. ;;
  5999. interix3*)
  6000. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6001. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6002. ;;
  6003. irix5* | irix6* | nonstopux*)
  6004. case $LD in
  6005. *-32|*"-32 ") libmagic=32-bit;;
  6006. *-n32|*"-n32 ") libmagic=N32;;
  6007. *-64|*"-64 ") libmagic=64-bit;;
  6008. *) libmagic=never-match;;
  6009. esac
  6010. lt_cv_deplibs_check_method=pass_all
  6011. ;;
  6012. # This must be Linux ELF.
  6013. linux*)
  6014. lt_cv_deplibs_check_method=pass_all
  6015. ;;
  6016. netbsd*)
  6017. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  6018. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6019. else
  6020. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6021. fi
  6022. ;;
  6023. newos6*)
  6024. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6025. lt_cv_file_magic_cmd=/usr/bin/file
  6026. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6027. ;;
  6028. nto-qnx*)
  6029. lt_cv_deplibs_check_method=unknown
  6030. ;;
  6031. openbsd*)
  6032. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6033. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6034. else
  6035. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6036. fi
  6037. ;;
  6038. osf3* | osf4* | osf5*)
  6039. lt_cv_deplibs_check_method=pass_all
  6040. ;;
  6041. solaris*)
  6042. lt_cv_deplibs_check_method=pass_all
  6043. ;;
  6044. sysv4 | sysv4.3*)
  6045. case $host_vendor in
  6046. motorola)
  6047. 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]'
  6048. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6049. ;;
  6050. ncr)
  6051. lt_cv_deplibs_check_method=pass_all
  6052. ;;
  6053. sequent)
  6054. lt_cv_file_magic_cmd='/bin/file'
  6055. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6056. ;;
  6057. sni)
  6058. lt_cv_file_magic_cmd='/bin/file'
  6059. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6060. lt_cv_file_magic_test_file=/lib/libc.so
  6061. ;;
  6062. siemens)
  6063. lt_cv_deplibs_check_method=pass_all
  6064. ;;
  6065. pc)
  6066. lt_cv_deplibs_check_method=pass_all
  6067. ;;
  6068. esac
  6069. ;;
  6070. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6071. lt_cv_deplibs_check_method=pass_all
  6072. ;;
  6073. esac
  6074. fi
  6075. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  6076. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  6077. file_magic_cmd=$lt_cv_file_magic_cmd
  6078. deplibs_check_method=$lt_cv_deplibs_check_method
  6079. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6080. # If no C compiler was specified, use CC.
  6081. LTCC=${LTCC-"$CC"}
  6082. # If no C compiler flags were specified, use CFLAGS.
  6083. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6084. # Allow CC to be a program name with arguments.
  6085. compiler=$CC
  6086. # Check whether --enable-libtool-lock was given.
  6087. if test "${enable_libtool_lock+set}" = set; then
  6088. enableval=$enable_libtool_lock;
  6089. fi
  6090. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6091. # Some flags need to be propagated to the compiler or linker for good
  6092. # libtool support.
  6093. case $host in
  6094. ia64-*-hpux*)
  6095. # Find out which ABI we are using.
  6096. echo 'int i;' > conftest.$ac_ext
  6097. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6098. (eval $ac_compile) 2>&5
  6099. ac_status=$?
  6100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6101. (exit $ac_status); }; then
  6102. case `/usr/bin/file conftest.$ac_objext` in
  6103. *ELF-32*)
  6104. HPUX_IA64_MODE="32"
  6105. ;;
  6106. *ELF-64*)
  6107. HPUX_IA64_MODE="64"
  6108. ;;
  6109. esac
  6110. fi
  6111. rm -rf conftest*
  6112. ;;
  6113. *-*-irix6*)
  6114. # Find out which ABI we are using.
  6115. echo '#line 6875 "configure"' > conftest.$ac_ext
  6116. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6117. (eval $ac_compile) 2>&5
  6118. ac_status=$?
  6119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6120. (exit $ac_status); }; then
  6121. if test "$lt_cv_prog_gnu_ld" = yes; then
  6122. case `/usr/bin/file conftest.$ac_objext` in
  6123. *32-bit*)
  6124. LD="${LD-ld} -melf32bsmip"
  6125. ;;
  6126. *N32*)
  6127. LD="${LD-ld} -melf32bmipn32"
  6128. ;;
  6129. *64-bit*)
  6130. LD="${LD-ld} -melf64bmip"
  6131. ;;
  6132. esac
  6133. else
  6134. case `/usr/bin/file conftest.$ac_objext` in
  6135. *32-bit*)
  6136. LD="${LD-ld} -32"
  6137. ;;
  6138. *N32*)
  6139. LD="${LD-ld} -n32"
  6140. ;;
  6141. *64-bit*)
  6142. LD="${LD-ld} -64"
  6143. ;;
  6144. esac
  6145. fi
  6146. fi
  6147. rm -rf conftest*
  6148. ;;
  6149. x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  6150. # Find out which ABI we are using.
  6151. echo 'int i;' > conftest.$ac_ext
  6152. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6153. (eval $ac_compile) 2>&5
  6154. ac_status=$?
  6155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6156. (exit $ac_status); }; then
  6157. case `/usr/bin/file conftest.o` in
  6158. *32-bit*)
  6159. case $host in
  6160. x86_64-*linux*)
  6161. LD="${LD-ld} -m elf_i386"
  6162. ;;
  6163. ppc64-*linux*|powerpc64-*linux*)
  6164. LD="${LD-ld} -m elf32ppclinux"
  6165. ;;
  6166. s390x-*linux*)
  6167. LD="${LD-ld} -m elf_s390"
  6168. ;;
  6169. sparc64-*linux*)
  6170. LD="${LD-ld} -m elf32_sparc"
  6171. ;;
  6172. esac
  6173. ;;
  6174. *64-bit*)
  6175. case $host in
  6176. x86_64-*linux*)
  6177. LD="${LD-ld} -m elf_x86_64"
  6178. ;;
  6179. ppc*-*linux*|powerpc*-*linux*)
  6180. LD="${LD-ld} -m elf64ppc"
  6181. ;;
  6182. s390*-*linux*)
  6183. LD="${LD-ld} -m elf64_s390"
  6184. ;;
  6185. sparc*-*linux*)
  6186. LD="${LD-ld} -m elf64_sparc"
  6187. ;;
  6188. esac
  6189. ;;
  6190. esac
  6191. fi
  6192. rm -rf conftest*
  6193. ;;
  6194. *-*-sco3.2v5*)
  6195. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6196. SAVE_CFLAGS="$CFLAGS"
  6197. CFLAGS="$CFLAGS -belf"
  6198. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  6199. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  6200. if test "${lt_cv_cc_needs_belf+set}" = set; then
  6201. echo $ECHO_N "(cached) $ECHO_C" >&6
  6202. else
  6203. ac_ext=c
  6204. ac_cpp='$CPP $CPPFLAGS'
  6205. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6206. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6207. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6208. cat >conftest.$ac_ext <<_ACEOF
  6209. /* confdefs.h. */
  6210. _ACEOF
  6211. cat confdefs.h >>conftest.$ac_ext
  6212. cat >>conftest.$ac_ext <<_ACEOF
  6213. /* end confdefs.h. */
  6214. int
  6215. main ()
  6216. {
  6217. ;
  6218. return 0;
  6219. }
  6220. _ACEOF
  6221. rm -f conftest.$ac_objext conftest$ac_exeext
  6222. if { (ac_try="$ac_link"
  6223. case "(($ac_try" in
  6224. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6225. *) ac_try_echo=$ac_try;;
  6226. esac
  6227. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6228. (eval "$ac_link") 2>conftest.er1
  6229. ac_status=$?
  6230. grep -v '^ *+' conftest.er1 >conftest.err
  6231. rm -f conftest.er1
  6232. cat conftest.err >&5
  6233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6234. (exit $ac_status); } && {
  6235. test -z "$ac_c_werror_flag" ||
  6236. test ! -s conftest.err
  6237. } && test -s conftest$ac_exeext &&
  6238. $as_test_x conftest$ac_exeext; then
  6239. lt_cv_cc_needs_belf=yes
  6240. else
  6241. echo "$as_me: failed program was:" >&5
  6242. sed 's/^/| /' conftest.$ac_ext >&5
  6243. lt_cv_cc_needs_belf=no
  6244. fi
  6245. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6246. conftest$ac_exeext conftest.$ac_ext
  6247. ac_ext=c
  6248. ac_cpp='$CPP $CPPFLAGS'
  6249. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6250. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6251. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6252. fi
  6253. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  6254. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  6255. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6256. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6257. CFLAGS="$SAVE_CFLAGS"
  6258. fi
  6259. ;;
  6260. sparc*-*solaris*)
  6261. # Find out which ABI we are using.
  6262. echo 'int i;' > conftest.$ac_ext
  6263. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6264. (eval $ac_compile) 2>&5
  6265. ac_status=$?
  6266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6267. (exit $ac_status); }; then
  6268. case `/usr/bin/file conftest.o` in
  6269. *64-bit*)
  6270. case $lt_cv_prog_gnu_ld in
  6271. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6272. *) LD="${LD-ld} -64" ;;
  6273. esac
  6274. ;;
  6275. esac
  6276. fi
  6277. rm -rf conftest*
  6278. ;;
  6279. esac
  6280. need_locks="$enable_libtool_lock"
  6281. ac_ext=c
  6282. ac_cpp='$CPP $CPPFLAGS'
  6283. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6284. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6285. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6286. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  6287. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  6288. # On Suns, sometimes $CPP names a directory.
  6289. if test -n "$CPP" && test -d "$CPP"; then
  6290. CPP=
  6291. fi
  6292. if test -z "$CPP"; then
  6293. if test "${ac_cv_prog_CPP+set}" = set; then
  6294. echo $ECHO_N "(cached) $ECHO_C" >&6
  6295. else
  6296. # Double quotes because CPP needs to be expanded
  6297. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6298. do
  6299. ac_preproc_ok=false
  6300. for ac_c_preproc_warn_flag in '' yes
  6301. do
  6302. # Use a header file that comes with gcc, so configuring glibc
  6303. # with a fresh cross-compiler works.
  6304. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6305. # <limits.h> exists even on freestanding compilers.
  6306. # On the NeXT, cc -E runs the code through the compiler's parser,
  6307. # not just through cpp. "Syntax error" is here to catch this case.
  6308. cat >conftest.$ac_ext <<_ACEOF
  6309. /* confdefs.h. */
  6310. _ACEOF
  6311. cat confdefs.h >>conftest.$ac_ext
  6312. cat >>conftest.$ac_ext <<_ACEOF
  6313. /* end confdefs.h. */
  6314. #ifdef __STDC__
  6315. # include <limits.h>
  6316. #else
  6317. # include <assert.h>
  6318. #endif
  6319. Syntax error
  6320. _ACEOF
  6321. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6322. case "(($ac_try" in
  6323. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6324. *) ac_try_echo=$ac_try;;
  6325. esac
  6326. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6327. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6328. ac_status=$?
  6329. grep -v '^ *+' conftest.er1 >conftest.err
  6330. rm -f conftest.er1
  6331. cat conftest.err >&5
  6332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6333. (exit $ac_status); } >/dev/null && {
  6334. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6335. test ! -s conftest.err
  6336. }; then
  6337. :
  6338. else
  6339. echo "$as_me: failed program was:" >&5
  6340. sed 's/^/| /' conftest.$ac_ext >&5
  6341. # Broken: fails on valid input.
  6342. continue
  6343. fi
  6344. rm -f conftest.err conftest.$ac_ext
  6345. # OK, works on sane cases. Now check whether nonexistent headers
  6346. # can be detected and how.
  6347. cat >conftest.$ac_ext <<_ACEOF
  6348. /* confdefs.h. */
  6349. _ACEOF
  6350. cat confdefs.h >>conftest.$ac_ext
  6351. cat >>conftest.$ac_ext <<_ACEOF
  6352. /* end confdefs.h. */
  6353. #include <ac_nonexistent.h>
  6354. _ACEOF
  6355. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6356. case "(($ac_try" in
  6357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6358. *) ac_try_echo=$ac_try;;
  6359. esac
  6360. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6361. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6362. ac_status=$?
  6363. grep -v '^ *+' conftest.er1 >conftest.err
  6364. rm -f conftest.er1
  6365. cat conftest.err >&5
  6366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6367. (exit $ac_status); } >/dev/null && {
  6368. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6369. test ! -s conftest.err
  6370. }; then
  6371. # Broken: success on invalid input.
  6372. continue
  6373. else
  6374. echo "$as_me: failed program was:" >&5
  6375. sed 's/^/| /' conftest.$ac_ext >&5
  6376. # Passes both tests.
  6377. ac_preproc_ok=:
  6378. break
  6379. fi
  6380. rm -f conftest.err conftest.$ac_ext
  6381. done
  6382. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6383. rm -f conftest.err conftest.$ac_ext
  6384. if $ac_preproc_ok; then
  6385. break
  6386. fi
  6387. done
  6388. ac_cv_prog_CPP=$CPP
  6389. fi
  6390. CPP=$ac_cv_prog_CPP
  6391. else
  6392. ac_cv_prog_CPP=$CPP
  6393. fi
  6394. { echo "$as_me:$LINENO: result: $CPP" >&5
  6395. echo "${ECHO_T}$CPP" >&6; }
  6396. ac_preproc_ok=false
  6397. for ac_c_preproc_warn_flag in '' yes
  6398. do
  6399. # Use a header file that comes with gcc, so configuring glibc
  6400. # with a fresh cross-compiler works.
  6401. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6402. # <limits.h> exists even on freestanding compilers.
  6403. # On the NeXT, cc -E runs the code through the compiler's parser,
  6404. # not just through cpp. "Syntax error" is here to catch this case.
  6405. cat >conftest.$ac_ext <<_ACEOF
  6406. /* confdefs.h. */
  6407. _ACEOF
  6408. cat confdefs.h >>conftest.$ac_ext
  6409. cat >>conftest.$ac_ext <<_ACEOF
  6410. /* end confdefs.h. */
  6411. #ifdef __STDC__
  6412. # include <limits.h>
  6413. #else
  6414. # include <assert.h>
  6415. #endif
  6416. Syntax error
  6417. _ACEOF
  6418. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6419. case "(($ac_try" in
  6420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6421. *) ac_try_echo=$ac_try;;
  6422. esac
  6423. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6424. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6425. ac_status=$?
  6426. grep -v '^ *+' conftest.er1 >conftest.err
  6427. rm -f conftest.er1
  6428. cat conftest.err >&5
  6429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6430. (exit $ac_status); } >/dev/null && {
  6431. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6432. test ! -s conftest.err
  6433. }; then
  6434. :
  6435. else
  6436. echo "$as_me: failed program was:" >&5
  6437. sed 's/^/| /' conftest.$ac_ext >&5
  6438. # Broken: fails on valid input.
  6439. continue
  6440. fi
  6441. rm -f conftest.err conftest.$ac_ext
  6442. # OK, works on sane cases. Now check whether nonexistent headers
  6443. # can be detected and how.
  6444. cat >conftest.$ac_ext <<_ACEOF
  6445. /* confdefs.h. */
  6446. _ACEOF
  6447. cat confdefs.h >>conftest.$ac_ext
  6448. cat >>conftest.$ac_ext <<_ACEOF
  6449. /* end confdefs.h. */
  6450. #include <ac_nonexistent.h>
  6451. _ACEOF
  6452. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6453. case "(($ac_try" in
  6454. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6455. *) ac_try_echo=$ac_try;;
  6456. esac
  6457. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6458. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6459. ac_status=$?
  6460. grep -v '^ *+' conftest.er1 >conftest.err
  6461. rm -f conftest.er1
  6462. cat conftest.err >&5
  6463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6464. (exit $ac_status); } >/dev/null && {
  6465. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6466. test ! -s conftest.err
  6467. }; then
  6468. # Broken: success on invalid input.
  6469. continue
  6470. else
  6471. echo "$as_me: failed program was:" >&5
  6472. sed 's/^/| /' conftest.$ac_ext >&5
  6473. # Passes both tests.
  6474. ac_preproc_ok=:
  6475. break
  6476. fi
  6477. rm -f conftest.err conftest.$ac_ext
  6478. done
  6479. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6480. rm -f conftest.err conftest.$ac_ext
  6481. if $ac_preproc_ok; then
  6482. :
  6483. else
  6484. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  6485. See \`config.log' for more details." >&5
  6486. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  6487. See \`config.log' for more details." >&2;}
  6488. { (exit 1); exit 1; }; }
  6489. fi
  6490. ac_ext=c
  6491. ac_cpp='$CPP $CPPFLAGS'
  6492. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6493. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6494. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6495. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6496. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  6497. if test "${ac_cv_header_stdc+set}" = set; then
  6498. echo $ECHO_N "(cached) $ECHO_C" >&6
  6499. else
  6500. cat >conftest.$ac_ext <<_ACEOF
  6501. /* confdefs.h. */
  6502. _ACEOF
  6503. cat confdefs.h >>conftest.$ac_ext
  6504. cat >>conftest.$ac_ext <<_ACEOF
  6505. /* end confdefs.h. */
  6506. #include <stdlib.h>
  6507. #include <stdarg.h>
  6508. #include <string.h>
  6509. #include <float.h>
  6510. int
  6511. main ()
  6512. {
  6513. ;
  6514. return 0;
  6515. }
  6516. _ACEOF
  6517. rm -f conftest.$ac_objext
  6518. if { (ac_try="$ac_compile"
  6519. case "(($ac_try" in
  6520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6521. *) ac_try_echo=$ac_try;;
  6522. esac
  6523. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6524. (eval "$ac_compile") 2>conftest.er1
  6525. ac_status=$?
  6526. grep -v '^ *+' conftest.er1 >conftest.err
  6527. rm -f conftest.er1
  6528. cat conftest.err >&5
  6529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6530. (exit $ac_status); } && {
  6531. test -z "$ac_c_werror_flag" ||
  6532. test ! -s conftest.err
  6533. } && test -s conftest.$ac_objext; then
  6534. ac_cv_header_stdc=yes
  6535. else
  6536. echo "$as_me: failed program was:" >&5
  6537. sed 's/^/| /' conftest.$ac_ext >&5
  6538. ac_cv_header_stdc=no
  6539. fi
  6540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6541. if test $ac_cv_header_stdc = yes; then
  6542. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6543. cat >conftest.$ac_ext <<_ACEOF
  6544. /* confdefs.h. */
  6545. _ACEOF
  6546. cat confdefs.h >>conftest.$ac_ext
  6547. cat >>conftest.$ac_ext <<_ACEOF
  6548. /* end confdefs.h. */
  6549. #include <string.h>
  6550. _ACEOF
  6551. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6552. $EGREP "memchr" >/dev/null 2>&1; then
  6553. :
  6554. else
  6555. ac_cv_header_stdc=no
  6556. fi
  6557. rm -f conftest*
  6558. fi
  6559. if test $ac_cv_header_stdc = yes; then
  6560. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6561. cat >conftest.$ac_ext <<_ACEOF
  6562. /* confdefs.h. */
  6563. _ACEOF
  6564. cat confdefs.h >>conftest.$ac_ext
  6565. cat >>conftest.$ac_ext <<_ACEOF
  6566. /* end confdefs.h. */
  6567. #include <stdlib.h>
  6568. _ACEOF
  6569. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6570. $EGREP "free" >/dev/null 2>&1; then
  6571. :
  6572. else
  6573. ac_cv_header_stdc=no
  6574. fi
  6575. rm -f conftest*
  6576. fi
  6577. if test $ac_cv_header_stdc = yes; then
  6578. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6579. if test "$cross_compiling" = yes; then
  6580. :
  6581. else
  6582. cat >conftest.$ac_ext <<_ACEOF
  6583. /* confdefs.h. */
  6584. _ACEOF
  6585. cat confdefs.h >>conftest.$ac_ext
  6586. cat >>conftest.$ac_ext <<_ACEOF
  6587. /* end confdefs.h. */
  6588. #include <ctype.h>
  6589. #include <stdlib.h>
  6590. #if ((' ' & 0x0FF) == 0x020)
  6591. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6592. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6593. #else
  6594. # define ISLOWER(c) \
  6595. (('a' <= (c) && (c) <= 'i') \
  6596. || ('j' <= (c) && (c) <= 'r') \
  6597. || ('s' <= (c) && (c) <= 'z'))
  6598. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6599. #endif
  6600. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6601. int
  6602. main ()
  6603. {
  6604. int i;
  6605. for (i = 0; i < 256; i++)
  6606. if (XOR (islower (i), ISLOWER (i))
  6607. || toupper (i) != TOUPPER (i))
  6608. return 2;
  6609. return 0;
  6610. }
  6611. _ACEOF
  6612. rm -f conftest$ac_exeext
  6613. if { (ac_try="$ac_link"
  6614. case "(($ac_try" in
  6615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6616. *) ac_try_echo=$ac_try;;
  6617. esac
  6618. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6619. (eval "$ac_link") 2>&5
  6620. ac_status=$?
  6621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6622. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6623. { (case "(($ac_try" in
  6624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6625. *) ac_try_echo=$ac_try;;
  6626. esac
  6627. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6628. (eval "$ac_try") 2>&5
  6629. ac_status=$?
  6630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6631. (exit $ac_status); }; }; then
  6632. :
  6633. else
  6634. echo "$as_me: program exited with status $ac_status" >&5
  6635. echo "$as_me: failed program was:" >&5
  6636. sed 's/^/| /' conftest.$ac_ext >&5
  6637. ( exit $ac_status )
  6638. ac_cv_header_stdc=no
  6639. fi
  6640. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6641. fi
  6642. fi
  6643. fi
  6644. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6645. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  6646. if test $ac_cv_header_stdc = yes; then
  6647. cat >>confdefs.h <<\_ACEOF
  6648. #define STDC_HEADERS 1
  6649. _ACEOF
  6650. fi
  6651. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6652. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6653. inttypes.h stdint.h unistd.h
  6654. do
  6655. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6656. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6657. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6658. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6659. echo $ECHO_N "(cached) $ECHO_C" >&6
  6660. else
  6661. cat >conftest.$ac_ext <<_ACEOF
  6662. /* confdefs.h. */
  6663. _ACEOF
  6664. cat confdefs.h >>conftest.$ac_ext
  6665. cat >>conftest.$ac_ext <<_ACEOF
  6666. /* end confdefs.h. */
  6667. $ac_includes_default
  6668. #include <$ac_header>
  6669. _ACEOF
  6670. rm -f conftest.$ac_objext
  6671. if { (ac_try="$ac_compile"
  6672. case "(($ac_try" in
  6673. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6674. *) ac_try_echo=$ac_try;;
  6675. esac
  6676. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6677. (eval "$ac_compile") 2>conftest.er1
  6678. ac_status=$?
  6679. grep -v '^ *+' conftest.er1 >conftest.err
  6680. rm -f conftest.er1
  6681. cat conftest.err >&5
  6682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6683. (exit $ac_status); } && {
  6684. test -z "$ac_c_werror_flag" ||
  6685. test ! -s conftest.err
  6686. } && test -s conftest.$ac_objext; then
  6687. eval "$as_ac_Header=yes"
  6688. else
  6689. echo "$as_me: failed program was:" >&5
  6690. sed 's/^/| /' conftest.$ac_ext >&5
  6691. eval "$as_ac_Header=no"
  6692. fi
  6693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6694. fi
  6695. ac_res=`eval echo '${'$as_ac_Header'}'`
  6696. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6697. echo "${ECHO_T}$ac_res" >&6; }
  6698. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6699. cat >>confdefs.h <<_ACEOF
  6700. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6701. _ACEOF
  6702. fi
  6703. done
  6704. for ac_header in dlfcn.h
  6705. do
  6706. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6707. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6708. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6709. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6710. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6711. echo $ECHO_N "(cached) $ECHO_C" >&6
  6712. fi
  6713. ac_res=`eval echo '${'$as_ac_Header'}'`
  6714. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6715. echo "${ECHO_T}$ac_res" >&6; }
  6716. else
  6717. # Is the header compilable?
  6718. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6719. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6720. cat >conftest.$ac_ext <<_ACEOF
  6721. /* confdefs.h. */
  6722. _ACEOF
  6723. cat confdefs.h >>conftest.$ac_ext
  6724. cat >>conftest.$ac_ext <<_ACEOF
  6725. /* end confdefs.h. */
  6726. $ac_includes_default
  6727. #include <$ac_header>
  6728. _ACEOF
  6729. rm -f conftest.$ac_objext
  6730. if { (ac_try="$ac_compile"
  6731. case "(($ac_try" in
  6732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6733. *) ac_try_echo=$ac_try;;
  6734. esac
  6735. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6736. (eval "$ac_compile") 2>conftest.er1
  6737. ac_status=$?
  6738. grep -v '^ *+' conftest.er1 >conftest.err
  6739. rm -f conftest.er1
  6740. cat conftest.err >&5
  6741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6742. (exit $ac_status); } && {
  6743. test -z "$ac_c_werror_flag" ||
  6744. test ! -s conftest.err
  6745. } && test -s conftest.$ac_objext; then
  6746. ac_header_compiler=yes
  6747. else
  6748. echo "$as_me: failed program was:" >&5
  6749. sed 's/^/| /' conftest.$ac_ext >&5
  6750. ac_header_compiler=no
  6751. fi
  6752. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6753. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6754. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6755. # Is the header present?
  6756. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6757. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6758. cat >conftest.$ac_ext <<_ACEOF
  6759. /* confdefs.h. */
  6760. _ACEOF
  6761. cat confdefs.h >>conftest.$ac_ext
  6762. cat >>conftest.$ac_ext <<_ACEOF
  6763. /* end confdefs.h. */
  6764. #include <$ac_header>
  6765. _ACEOF
  6766. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6767. case "(($ac_try" in
  6768. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6769. *) ac_try_echo=$ac_try;;
  6770. esac
  6771. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6772. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6773. ac_status=$?
  6774. grep -v '^ *+' conftest.er1 >conftest.err
  6775. rm -f conftest.er1
  6776. cat conftest.err >&5
  6777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6778. (exit $ac_status); } >/dev/null && {
  6779. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6780. test ! -s conftest.err
  6781. }; then
  6782. ac_header_preproc=yes
  6783. else
  6784. echo "$as_me: failed program was:" >&5
  6785. sed 's/^/| /' conftest.$ac_ext >&5
  6786. ac_header_preproc=no
  6787. fi
  6788. rm -f conftest.err conftest.$ac_ext
  6789. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6790. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6791. # So? What about this header?
  6792. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6793. yes:no: )
  6794. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6795. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6796. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6797. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6798. ac_header_preproc=yes
  6799. ;;
  6800. no:yes:* )
  6801. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6802. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6803. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6804. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6805. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6806. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6807. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6808. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6809. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6810. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6811. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6812. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6813. ( cat <<\_ASBOX
  6814. ## -------------------------------- ##
  6815. ## Report this to Hans.Boehm@hp.com ##
  6816. ## -------------------------------- ##
  6817. _ASBOX
  6818. ) | sed "s/^/$as_me: WARNING: /" >&2
  6819. ;;
  6820. esac
  6821. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6822. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6823. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6824. echo $ECHO_N "(cached) $ECHO_C" >&6
  6825. else
  6826. eval "$as_ac_Header=\$ac_header_preproc"
  6827. fi
  6828. ac_res=`eval echo '${'$as_ac_Header'}'`
  6829. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6830. echo "${ECHO_T}$ac_res" >&6; }
  6831. fi
  6832. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6833. cat >>confdefs.h <<_ACEOF
  6834. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6835. _ACEOF
  6836. fi
  6837. done
  6838. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6839. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6840. (test "X$CXX" != "Xg++"))) ; then
  6841. ac_ext=cpp
  6842. ac_cpp='$CXXCPP $CPPFLAGS'
  6843. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6844. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6845. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6846. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  6847. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  6848. if test -z "$CXXCPP"; then
  6849. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  6850. echo $ECHO_N "(cached) $ECHO_C" >&6
  6851. else
  6852. # Double quotes because CXXCPP needs to be expanded
  6853. for CXXCPP in "$CXX -E" "/lib/cpp"
  6854. do
  6855. ac_preproc_ok=false
  6856. for ac_cxx_preproc_warn_flag in '' yes
  6857. do
  6858. # Use a header file that comes with gcc, so configuring glibc
  6859. # with a fresh cross-compiler works.
  6860. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6861. # <limits.h> exists even on freestanding compilers.
  6862. # On the NeXT, cc -E runs the code through the compiler's parser,
  6863. # not just through cpp. "Syntax error" is here to catch this case.
  6864. cat >conftest.$ac_ext <<_ACEOF
  6865. /* confdefs.h. */
  6866. _ACEOF
  6867. cat confdefs.h >>conftest.$ac_ext
  6868. cat >>conftest.$ac_ext <<_ACEOF
  6869. /* end confdefs.h. */
  6870. #ifdef __STDC__
  6871. # include <limits.h>
  6872. #else
  6873. # include <assert.h>
  6874. #endif
  6875. Syntax error
  6876. _ACEOF
  6877. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6878. case "(($ac_try" in
  6879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6880. *) ac_try_echo=$ac_try;;
  6881. esac
  6882. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6883. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6884. ac_status=$?
  6885. grep -v '^ *+' conftest.er1 >conftest.err
  6886. rm -f conftest.er1
  6887. cat conftest.err >&5
  6888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6889. (exit $ac_status); } >/dev/null && {
  6890. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  6891. test ! -s conftest.err
  6892. }; then
  6893. :
  6894. else
  6895. echo "$as_me: failed program was:" >&5
  6896. sed 's/^/| /' conftest.$ac_ext >&5
  6897. # Broken: fails on valid input.
  6898. continue
  6899. fi
  6900. rm -f conftest.err conftest.$ac_ext
  6901. # OK, works on sane cases. Now check whether nonexistent headers
  6902. # can be detected and how.
  6903. cat >conftest.$ac_ext <<_ACEOF
  6904. /* confdefs.h. */
  6905. _ACEOF
  6906. cat confdefs.h >>conftest.$ac_ext
  6907. cat >>conftest.$ac_ext <<_ACEOF
  6908. /* end confdefs.h. */
  6909. #include <ac_nonexistent.h>
  6910. _ACEOF
  6911. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6912. case "(($ac_try" in
  6913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6914. *) ac_try_echo=$ac_try;;
  6915. esac
  6916. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6917. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6918. ac_status=$?
  6919. grep -v '^ *+' conftest.er1 >conftest.err
  6920. rm -f conftest.er1
  6921. cat conftest.err >&5
  6922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6923. (exit $ac_status); } >/dev/null && {
  6924. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  6925. test ! -s conftest.err
  6926. }; then
  6927. # Broken: success on invalid input.
  6928. continue
  6929. else
  6930. echo "$as_me: failed program was:" >&5
  6931. sed 's/^/| /' conftest.$ac_ext >&5
  6932. # Passes both tests.
  6933. ac_preproc_ok=:
  6934. break
  6935. fi
  6936. rm -f conftest.err conftest.$ac_ext
  6937. done
  6938. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6939. rm -f conftest.err conftest.$ac_ext
  6940. if $ac_preproc_ok; then
  6941. break
  6942. fi
  6943. done
  6944. ac_cv_prog_CXXCPP=$CXXCPP
  6945. fi
  6946. CXXCPP=$ac_cv_prog_CXXCPP
  6947. else
  6948. ac_cv_prog_CXXCPP=$CXXCPP
  6949. fi
  6950. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  6951. echo "${ECHO_T}$CXXCPP" >&6; }
  6952. ac_preproc_ok=false
  6953. for ac_cxx_preproc_warn_flag in '' yes
  6954. do
  6955. # Use a header file that comes with gcc, so configuring glibc
  6956. # with a fresh cross-compiler works.
  6957. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6958. # <limits.h> exists even on freestanding compilers.
  6959. # On the NeXT, cc -E runs the code through the compiler's parser,
  6960. # not just through cpp. "Syntax error" is here to catch this case.
  6961. cat >conftest.$ac_ext <<_ACEOF
  6962. /* confdefs.h. */
  6963. _ACEOF
  6964. cat confdefs.h >>conftest.$ac_ext
  6965. cat >>conftest.$ac_ext <<_ACEOF
  6966. /* end confdefs.h. */
  6967. #ifdef __STDC__
  6968. # include <limits.h>
  6969. #else
  6970. # include <assert.h>
  6971. #endif
  6972. Syntax error
  6973. _ACEOF
  6974. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6975. case "(($ac_try" in
  6976. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6977. *) ac_try_echo=$ac_try;;
  6978. esac
  6979. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6980. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6981. ac_status=$?
  6982. grep -v '^ *+' conftest.er1 >conftest.err
  6983. rm -f conftest.er1
  6984. cat conftest.err >&5
  6985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6986. (exit $ac_status); } >/dev/null && {
  6987. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  6988. test ! -s conftest.err
  6989. }; then
  6990. :
  6991. else
  6992. echo "$as_me: failed program was:" >&5
  6993. sed 's/^/| /' conftest.$ac_ext >&5
  6994. # Broken: fails on valid input.
  6995. continue
  6996. fi
  6997. rm -f conftest.err conftest.$ac_ext
  6998. # OK, works on sane cases. Now check whether nonexistent headers
  6999. # can be detected and how.
  7000. cat >conftest.$ac_ext <<_ACEOF
  7001. /* confdefs.h. */
  7002. _ACEOF
  7003. cat confdefs.h >>conftest.$ac_ext
  7004. cat >>conftest.$ac_ext <<_ACEOF
  7005. /* end confdefs.h. */
  7006. #include <ac_nonexistent.h>
  7007. _ACEOF
  7008. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7009. case "(($ac_try" in
  7010. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7011. *) ac_try_echo=$ac_try;;
  7012. esac
  7013. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7014. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7015. ac_status=$?
  7016. grep -v '^ *+' conftest.er1 >conftest.err
  7017. rm -f conftest.er1
  7018. cat conftest.err >&5
  7019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7020. (exit $ac_status); } >/dev/null && {
  7021. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7022. test ! -s conftest.err
  7023. }; then
  7024. # Broken: success on invalid input.
  7025. continue
  7026. else
  7027. echo "$as_me: failed program was:" >&5
  7028. sed 's/^/| /' conftest.$ac_ext >&5
  7029. # Passes both tests.
  7030. ac_preproc_ok=:
  7031. break
  7032. fi
  7033. rm -f conftest.err conftest.$ac_ext
  7034. done
  7035. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7036. rm -f conftest.err conftest.$ac_ext
  7037. if $ac_preproc_ok; then
  7038. :
  7039. else
  7040. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  7041. See \`config.log' for more details." >&5
  7042. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  7043. See \`config.log' for more details." >&2;}
  7044. { (exit 1); exit 1; }; }
  7045. fi
  7046. ac_ext=cpp
  7047. ac_cpp='$CXXCPP $CPPFLAGS'
  7048. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7049. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7050. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7051. fi
  7052. ac_ext=f
  7053. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  7054. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7055. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  7056. if test -n "$ac_tool_prefix"; then
  7057. 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
  7058. do
  7059. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7060. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7061. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7062. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7063. if test "${ac_cv_prog_F77+set}" = set; then
  7064. echo $ECHO_N "(cached) $ECHO_C" >&6
  7065. else
  7066. if test -n "$F77"; then
  7067. ac_cv_prog_F77="$F77" # Let the user override the test.
  7068. else
  7069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7070. for as_dir in $PATH
  7071. do
  7072. IFS=$as_save_IFS
  7073. test -z "$as_dir" && as_dir=.
  7074. for ac_exec_ext in '' $ac_executable_extensions; do
  7075. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7076. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  7077. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7078. break 2
  7079. fi
  7080. done
  7081. done
  7082. IFS=$as_save_IFS
  7083. fi
  7084. fi
  7085. F77=$ac_cv_prog_F77
  7086. if test -n "$F77"; then
  7087. { echo "$as_me:$LINENO: result: $F77" >&5
  7088. echo "${ECHO_T}$F77" >&6; }
  7089. else
  7090. { echo "$as_me:$LINENO: result: no" >&5
  7091. echo "${ECHO_T}no" >&6; }
  7092. fi
  7093. test -n "$F77" && break
  7094. done
  7095. fi
  7096. if test -z "$F77"; then
  7097. ac_ct_F77=$F77
  7098. 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
  7099. do
  7100. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7101. set dummy $ac_prog; ac_word=$2
  7102. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7103. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7104. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  7105. echo $ECHO_N "(cached) $ECHO_C" >&6
  7106. else
  7107. if test -n "$ac_ct_F77"; then
  7108. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  7109. else
  7110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7111. for as_dir in $PATH
  7112. do
  7113. IFS=$as_save_IFS
  7114. test -z "$as_dir" && as_dir=.
  7115. for ac_exec_ext in '' $ac_executable_extensions; do
  7116. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7117. ac_cv_prog_ac_ct_F77="$ac_prog"
  7118. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7119. break 2
  7120. fi
  7121. done
  7122. done
  7123. IFS=$as_save_IFS
  7124. fi
  7125. fi
  7126. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  7127. if test -n "$ac_ct_F77"; then
  7128. { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  7129. echo "${ECHO_T}$ac_ct_F77" >&6; }
  7130. else
  7131. { echo "$as_me:$LINENO: result: no" >&5
  7132. echo "${ECHO_T}no" >&6; }
  7133. fi
  7134. test -n "$ac_ct_F77" && break
  7135. done
  7136. if test "x$ac_ct_F77" = x; then
  7137. F77=""
  7138. else
  7139. case $cross_compiling:$ac_tool_warned in
  7140. yes:)
  7141. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7142. whose name does not start with the host triplet. If you think this
  7143. configuration is useful to you, please write to autoconf@gnu.org." >&5
  7144. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7145. whose name does not start with the host triplet. If you think this
  7146. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  7147. ac_tool_warned=yes ;;
  7148. esac
  7149. F77=$ac_ct_F77
  7150. fi
  7151. fi
  7152. # Provide some information about the compiler.
  7153. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  7154. ac_compiler=`set X $ac_compile; echo $2`
  7155. { (ac_try="$ac_compiler --version >&5"
  7156. case "(($ac_try" in
  7157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7158. *) ac_try_echo=$ac_try;;
  7159. esac
  7160. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7161. (eval "$ac_compiler --version >&5") 2>&5
  7162. ac_status=$?
  7163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7164. (exit $ac_status); }
  7165. { (ac_try="$ac_compiler -v >&5"
  7166. case "(($ac_try" in
  7167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7168. *) ac_try_echo=$ac_try;;
  7169. esac
  7170. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7171. (eval "$ac_compiler -v >&5") 2>&5
  7172. ac_status=$?
  7173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7174. (exit $ac_status); }
  7175. { (ac_try="$ac_compiler -V >&5"
  7176. case "(($ac_try" in
  7177. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7178. *) ac_try_echo=$ac_try;;
  7179. esac
  7180. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7181. (eval "$ac_compiler -V >&5") 2>&5
  7182. ac_status=$?
  7183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7184. (exit $ac_status); }
  7185. rm -f a.out
  7186. # If we don't use `.F' as extension, the preprocessor is not run on the
  7187. # input file. (Note that this only needs to work for GNU compilers.)
  7188. ac_save_ext=$ac_ext
  7189. ac_ext=F
  7190. { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  7191. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  7192. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  7193. echo $ECHO_N "(cached) $ECHO_C" >&6
  7194. else
  7195. cat >conftest.$ac_ext <<_ACEOF
  7196. program main
  7197. #ifndef __GNUC__
  7198. choke me
  7199. #endif
  7200. end
  7201. _ACEOF
  7202. rm -f conftest.$ac_objext
  7203. if { (ac_try="$ac_compile"
  7204. case "(($ac_try" in
  7205. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7206. *) ac_try_echo=$ac_try;;
  7207. esac
  7208. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7209. (eval "$ac_compile") 2>conftest.er1
  7210. ac_status=$?
  7211. grep -v '^ *+' conftest.er1 >conftest.err
  7212. rm -f conftest.er1
  7213. cat conftest.err >&5
  7214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7215. (exit $ac_status); } && {
  7216. test -z "$ac_f77_werror_flag" ||
  7217. test ! -s conftest.err
  7218. } && test -s conftest.$ac_objext; then
  7219. ac_compiler_gnu=yes
  7220. else
  7221. echo "$as_me: failed program was:" >&5
  7222. sed 's/^/| /' conftest.$ac_ext >&5
  7223. ac_compiler_gnu=no
  7224. fi
  7225. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7226. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  7227. fi
  7228. { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  7229. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  7230. ac_ext=$ac_save_ext
  7231. ac_test_FFLAGS=${FFLAGS+set}
  7232. ac_save_FFLAGS=$FFLAGS
  7233. FFLAGS=
  7234. { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  7235. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  7236. if test "${ac_cv_prog_f77_g+set}" = set; then
  7237. echo $ECHO_N "(cached) $ECHO_C" >&6
  7238. else
  7239. FFLAGS=-g
  7240. cat >conftest.$ac_ext <<_ACEOF
  7241. program main
  7242. end
  7243. _ACEOF
  7244. rm -f conftest.$ac_objext
  7245. if { (ac_try="$ac_compile"
  7246. case "(($ac_try" in
  7247. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7248. *) ac_try_echo=$ac_try;;
  7249. esac
  7250. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7251. (eval "$ac_compile") 2>conftest.er1
  7252. ac_status=$?
  7253. grep -v '^ *+' conftest.er1 >conftest.err
  7254. rm -f conftest.er1
  7255. cat conftest.err >&5
  7256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7257. (exit $ac_status); } && {
  7258. test -z "$ac_f77_werror_flag" ||
  7259. test ! -s conftest.err
  7260. } && test -s conftest.$ac_objext; then
  7261. ac_cv_prog_f77_g=yes
  7262. else
  7263. echo "$as_me: failed program was:" >&5
  7264. sed 's/^/| /' conftest.$ac_ext >&5
  7265. ac_cv_prog_f77_g=no
  7266. fi
  7267. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7268. fi
  7269. { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  7270. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  7271. if test "$ac_test_FFLAGS" = set; then
  7272. FFLAGS=$ac_save_FFLAGS
  7273. elif test $ac_cv_prog_f77_g = yes; then
  7274. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  7275. FFLAGS="-g -O2"
  7276. else
  7277. FFLAGS="-g"
  7278. fi
  7279. else
  7280. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  7281. FFLAGS="-O2"
  7282. else
  7283. FFLAGS=
  7284. fi
  7285. fi
  7286. G77=`test $ac_compiler_gnu = yes && echo yes`
  7287. ac_ext=c
  7288. ac_cpp='$CPP $CPPFLAGS'
  7289. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7290. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7291. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7292. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  7293. # find the maximum length of command line arguments
  7294. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  7295. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  7296. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  7297. echo $ECHO_N "(cached) $ECHO_C" >&6
  7298. else
  7299. i=0
  7300. teststring="ABCD"
  7301. case $build_os in
  7302. msdosdjgpp*)
  7303. # On DJGPP, this test can blow up pretty badly due to problems in libc
  7304. # (any single argument exceeding 2000 bytes causes a buffer overrun
  7305. # during glob expansion). Even if it were fixed, the result of this
  7306. # check would be larger than it should be.
  7307. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  7308. ;;
  7309. gnu*)
  7310. # Under GNU Hurd, this test is not required because there is
  7311. # no limit to the length of command line arguments.
  7312. # Libtool will interpret -1 as no limit whatsoever
  7313. lt_cv_sys_max_cmd_len=-1;
  7314. ;;
  7315. cygwin* | mingw*)
  7316. # On Win9x/ME, this test blows up -- it succeeds, but takes
  7317. # about 5 minutes as the teststring grows exponentially.
  7318. # Worse, since 9x/ME are not pre-emptively multitasking,
  7319. # you end up with a "frozen" computer, even though with patience
  7320. # the test eventually succeeds (with a max line length of 256k).
  7321. # Instead, let's just punt: use the minimum linelength reported by
  7322. # all of the supported platforms: 8192 (on NT/2K/XP).
  7323. lt_cv_sys_max_cmd_len=8192;
  7324. ;;
  7325. amigaos*)
  7326. # On AmigaOS with pdksh, this test takes hours, literally.
  7327. # So we just punt and use a minimum line length of 8192.
  7328. lt_cv_sys_max_cmd_len=8192;
  7329. ;;
  7330. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  7331. # This has been around since 386BSD, at least. Likely further.
  7332. if test -x /sbin/sysctl; then
  7333. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  7334. elif test -x /usr/sbin/sysctl; then
  7335. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  7336. else
  7337. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  7338. fi
  7339. # And add a safety zone
  7340. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  7341. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  7342. ;;
  7343. interix*)
  7344. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  7345. lt_cv_sys_max_cmd_len=196608
  7346. ;;
  7347. osf*)
  7348. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  7349. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  7350. # nice to cause kernel panics so lets avoid the loop below.
  7351. # First set a reasonable default.
  7352. lt_cv_sys_max_cmd_len=16384
  7353. #
  7354. if test -x /sbin/sysconfig; then
  7355. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  7356. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  7357. esac
  7358. fi
  7359. ;;
  7360. sco3.2v5*)
  7361. lt_cv_sys_max_cmd_len=102400
  7362. ;;
  7363. sysv5* | sco5v6* | sysv4.2uw2*)
  7364. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  7365. if test -n "$kargmax"; then
  7366. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  7367. else
  7368. lt_cv_sys_max_cmd_len=32768
  7369. fi
  7370. ;;
  7371. *)
  7372. # If test is not a shell built-in, we'll probably end up computing a
  7373. # maximum length that is only half of the actual maximum length, but
  7374. # we can't tell.
  7375. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  7376. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  7377. = "XX$teststring") >/dev/null 2>&1 &&
  7378. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  7379. lt_cv_sys_max_cmd_len=$new_result &&
  7380. test $i != 17 # 1/2 MB should be enough
  7381. do
  7382. i=`expr $i + 1`
  7383. teststring=$teststring$teststring
  7384. done
  7385. teststring=
  7386. # Add a significant safety factor because C++ compilers can tack on massive
  7387. # amounts of additional arguments before passing them to the linker.
  7388. # It appears as though 1/2 is a usable value.
  7389. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  7390. ;;
  7391. esac
  7392. fi
  7393. if test -n $lt_cv_sys_max_cmd_len ; then
  7394. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  7395. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  7396. else
  7397. { echo "$as_me:$LINENO: result: none" >&5
  7398. echo "${ECHO_T}none" >&6; }
  7399. fi
  7400. # Check for command to grab the raw symbol name followed by C symbol from nm.
  7401. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  7402. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  7403. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  7404. echo $ECHO_N "(cached) $ECHO_C" >&6
  7405. else
  7406. # These are sane defaults that work on at least a few old systems.
  7407. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7408. # Character class describing NM global symbol codes.
  7409. symcode='[BCDEGRST]'
  7410. # Regexp to match symbols that can be accessed directly from C.
  7411. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  7412. # Transform an extracted symbol line into a proper C declaration
  7413. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  7414. # Transform an extracted symbol line into symbol name and symbol address
  7415. 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'"
  7416. # Define system-specific variables.
  7417. case $host_os in
  7418. aix*)
  7419. symcode='[BCDT]'
  7420. ;;
  7421. cygwin* | mingw* | pw32*)
  7422. symcode='[ABCDGISTW]'
  7423. ;;
  7424. hpux*) # Its linker distinguishes data from code symbols
  7425. if test "$host_cpu" = ia64; then
  7426. symcode='[ABCDEGRST]'
  7427. fi
  7428. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7429. 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'"
  7430. ;;
  7431. linux*)
  7432. if test "$host_cpu" = ia64; then
  7433. symcode='[ABCDGIRSTW]'
  7434. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7435. 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'"
  7436. fi
  7437. ;;
  7438. irix* | nonstopux*)
  7439. symcode='[BCDEGRST]'
  7440. ;;
  7441. osf*)
  7442. symcode='[BCDEGQRST]'
  7443. ;;
  7444. solaris*)
  7445. symcode='[BDRT]'
  7446. ;;
  7447. sco3.2v5*)
  7448. symcode='[DT]'
  7449. ;;
  7450. sysv4.2uw2*)
  7451. symcode='[DT]'
  7452. ;;
  7453. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  7454. symcode='[ABDT]'
  7455. ;;
  7456. sysv4)
  7457. symcode='[DFNSTU]'
  7458. ;;
  7459. esac
  7460. # Handle CRLF in mingw tool chain
  7461. opt_cr=
  7462. case $build_os in
  7463. mingw*)
  7464. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  7465. ;;
  7466. esac
  7467. # If we're using GNU nm, then use its standard symbol codes.
  7468. case `$NM -V 2>&1` in
  7469. *GNU* | *'with BFD'*)
  7470. symcode='[ABCDGIRSTW]' ;;
  7471. esac
  7472. # Try without a prefix undercore, then with it.
  7473. for ac_symprfx in "" "_"; do
  7474. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  7475. symxfrm="\\1 $ac_symprfx\\2 \\2"
  7476. # Write the raw and C identifiers.
  7477. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  7478. # Check to see that the pipe works correctly.
  7479. pipe_works=no
  7480. rm -f conftest*
  7481. cat > conftest.$ac_ext <<EOF
  7482. #ifdef __cplusplus
  7483. extern "C" {
  7484. #endif
  7485. char nm_test_var;
  7486. void nm_test_func(){}
  7487. #ifdef __cplusplus
  7488. }
  7489. #endif
  7490. int main(){nm_test_var='a';nm_test_func();return(0);}
  7491. EOF
  7492. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7493. (eval $ac_compile) 2>&5
  7494. ac_status=$?
  7495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7496. (exit $ac_status); }; then
  7497. # Now try to grab the symbols.
  7498. nlist=conftest.nm
  7499. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  7500. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  7501. ac_status=$?
  7502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7503. (exit $ac_status); } && test -s "$nlist"; then
  7504. # Try sorting and uniquifying the output.
  7505. if sort "$nlist" | uniq > "$nlist"T; then
  7506. mv -f "$nlist"T "$nlist"
  7507. else
  7508. rm -f "$nlist"T
  7509. fi
  7510. # Make sure that we snagged all the symbols we need.
  7511. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  7512. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  7513. cat <<EOF > conftest.$ac_ext
  7514. #ifdef __cplusplus
  7515. extern "C" {
  7516. #endif
  7517. EOF
  7518. # Now generate the symbol file.
  7519. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  7520. cat <<EOF >> conftest.$ac_ext
  7521. #if defined (__STDC__) && __STDC__
  7522. # define lt_ptr_t void *
  7523. #else
  7524. # define lt_ptr_t char *
  7525. # define const
  7526. #endif
  7527. /* The mapping between symbol names and symbols. */
  7528. const struct {
  7529. const char *name;
  7530. lt_ptr_t address;
  7531. }
  7532. lt_preloaded_symbols[] =
  7533. {
  7534. EOF
  7535. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  7536. cat <<\EOF >> conftest.$ac_ext
  7537. {0, (lt_ptr_t) 0}
  7538. };
  7539. #ifdef __cplusplus
  7540. }
  7541. #endif
  7542. EOF
  7543. # Now try linking the two files.
  7544. mv conftest.$ac_objext conftstm.$ac_objext
  7545. lt_save_LIBS="$LIBS"
  7546. lt_save_CFLAGS="$CFLAGS"
  7547. LIBS="conftstm.$ac_objext"
  7548. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  7549. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7550. (eval $ac_link) 2>&5
  7551. ac_status=$?
  7552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7553. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  7554. pipe_works=yes
  7555. fi
  7556. LIBS="$lt_save_LIBS"
  7557. CFLAGS="$lt_save_CFLAGS"
  7558. else
  7559. echo "cannot find nm_test_func in $nlist" >&5
  7560. fi
  7561. else
  7562. echo "cannot find nm_test_var in $nlist" >&5
  7563. fi
  7564. else
  7565. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  7566. fi
  7567. else
  7568. echo "$progname: failed program was:" >&5
  7569. cat conftest.$ac_ext >&5
  7570. fi
  7571. rm -f conftest* conftst*
  7572. # Do not use the global_symbol_pipe unless it works.
  7573. if test "$pipe_works" = yes; then
  7574. break
  7575. else
  7576. lt_cv_sys_global_symbol_pipe=
  7577. fi
  7578. done
  7579. fi
  7580. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  7581. lt_cv_sys_global_symbol_to_cdecl=
  7582. fi
  7583. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  7584. { echo "$as_me:$LINENO: result: failed" >&5
  7585. echo "${ECHO_T}failed" >&6; }
  7586. else
  7587. { echo "$as_me:$LINENO: result: ok" >&5
  7588. echo "${ECHO_T}ok" >&6; }
  7589. fi
  7590. { echo "$as_me:$LINENO: checking for objdir" >&5
  7591. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  7592. if test "${lt_cv_objdir+set}" = set; then
  7593. echo $ECHO_N "(cached) $ECHO_C" >&6
  7594. else
  7595. rm -f .libs 2>/dev/null
  7596. mkdir .libs 2>/dev/null
  7597. if test -d .libs; then
  7598. lt_cv_objdir=.libs
  7599. else
  7600. # MS-DOS does not allow filenames that begin with a dot.
  7601. lt_cv_objdir=_libs
  7602. fi
  7603. rmdir .libs 2>/dev/null
  7604. fi
  7605. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  7606. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  7607. objdir=$lt_cv_objdir
  7608. case $host_os in
  7609. aix3*)
  7610. # AIX sometimes has problems with the GCC collect2 program. For some
  7611. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7612. # vanish in a puff of smoke.
  7613. if test "X${COLLECT_NAMES+set}" != Xset; then
  7614. COLLECT_NAMES=
  7615. export COLLECT_NAMES
  7616. fi
  7617. ;;
  7618. esac
  7619. # Sed substitution that helps us do robust quoting. It backslashifies
  7620. # metacharacters that are still active within double-quoted strings.
  7621. Xsed='sed -e 1s/^X//'
  7622. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  7623. # Same as above, but do not quote variable references.
  7624. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  7625. # Sed substitution to delay expansion of an escaped shell variable in a
  7626. # double_quote_subst'ed string.
  7627. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7628. # Sed substitution to avoid accidental globbing in evaled expressions
  7629. no_glob_subst='s/\*/\\\*/g'
  7630. # Constants:
  7631. rm="rm -f"
  7632. # Global variables:
  7633. default_ofile=libtool
  7634. can_build_shared=yes
  7635. # All known linkers require a `.a' archive for static linking (except MSVC,
  7636. # which needs '.lib').
  7637. libext=a
  7638. ltmain="$ac_aux_dir/ltmain.sh"
  7639. ofile="$default_ofile"
  7640. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7641. if test -n "$ac_tool_prefix"; then
  7642. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  7643. set dummy ${ac_tool_prefix}ar; ac_word=$2
  7644. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7645. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7646. if test "${ac_cv_prog_AR+set}" = set; then
  7647. echo $ECHO_N "(cached) $ECHO_C" >&6
  7648. else
  7649. if test -n "$AR"; then
  7650. ac_cv_prog_AR="$AR" # Let the user override the test.
  7651. else
  7652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7653. for as_dir in $PATH
  7654. do
  7655. IFS=$as_save_IFS
  7656. test -z "$as_dir" && as_dir=.
  7657. for ac_exec_ext in '' $ac_executable_extensions; do
  7658. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7659. ac_cv_prog_AR="${ac_tool_prefix}ar"
  7660. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7661. break 2
  7662. fi
  7663. done
  7664. done
  7665. IFS=$as_save_IFS
  7666. fi
  7667. fi
  7668. AR=$ac_cv_prog_AR
  7669. if test -n "$AR"; then
  7670. { echo "$as_me:$LINENO: result: $AR" >&5
  7671. echo "${ECHO_T}$AR" >&6; }
  7672. else
  7673. { echo "$as_me:$LINENO: result: no" >&5
  7674. echo "${ECHO_T}no" >&6; }
  7675. fi
  7676. fi
  7677. if test -z "$ac_cv_prog_AR"; then
  7678. ac_ct_AR=$AR
  7679. # Extract the first word of "ar", so it can be a program name with args.
  7680. set dummy ar; ac_word=$2
  7681. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7682. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7683. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  7684. echo $ECHO_N "(cached) $ECHO_C" >&6
  7685. else
  7686. if test -n "$ac_ct_AR"; then
  7687. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  7688. else
  7689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7690. for as_dir in $PATH
  7691. do
  7692. IFS=$as_save_IFS
  7693. test -z "$as_dir" && as_dir=.
  7694. for ac_exec_ext in '' $ac_executable_extensions; do
  7695. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7696. ac_cv_prog_ac_ct_AR="ar"
  7697. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7698. break 2
  7699. fi
  7700. done
  7701. done
  7702. IFS=$as_save_IFS
  7703. fi
  7704. fi
  7705. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  7706. if test -n "$ac_ct_AR"; then
  7707. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  7708. echo "${ECHO_T}$ac_ct_AR" >&6; }
  7709. else
  7710. { echo "$as_me:$LINENO: result: no" >&5
  7711. echo "${ECHO_T}no" >&6; }
  7712. fi
  7713. if test "x$ac_ct_AR" = x; then
  7714. AR="false"
  7715. else
  7716. case $cross_compiling:$ac_tool_warned in
  7717. yes:)
  7718. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7719. whose name does not start with the host triplet. If you think this
  7720. configuration is useful to you, please write to autoconf@gnu.org." >&5
  7721. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7722. whose name does not start with the host triplet. If you think this
  7723. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  7724. ac_tool_warned=yes ;;
  7725. esac
  7726. AR=$ac_ct_AR
  7727. fi
  7728. else
  7729. AR="$ac_cv_prog_AR"
  7730. fi
  7731. if test -n "$ac_tool_prefix"; then
  7732. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  7733. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  7734. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7735. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7736. if test "${ac_cv_prog_RANLIB+set}" = set; then
  7737. echo $ECHO_N "(cached) $ECHO_C" >&6
  7738. else
  7739. if test -n "$RANLIB"; then
  7740. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  7741. else
  7742. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7743. for as_dir in $PATH
  7744. do
  7745. IFS=$as_save_IFS
  7746. test -z "$as_dir" && as_dir=.
  7747. for ac_exec_ext in '' $ac_executable_extensions; do
  7748. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7749. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  7750. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7751. break 2
  7752. fi
  7753. done
  7754. done
  7755. IFS=$as_save_IFS
  7756. fi
  7757. fi
  7758. RANLIB=$ac_cv_prog_RANLIB
  7759. if test -n "$RANLIB"; then
  7760. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  7761. echo "${ECHO_T}$RANLIB" >&6; }
  7762. else
  7763. { echo "$as_me:$LINENO: result: no" >&5
  7764. echo "${ECHO_T}no" >&6; }
  7765. fi
  7766. fi
  7767. if test -z "$ac_cv_prog_RANLIB"; then
  7768. ac_ct_RANLIB=$RANLIB
  7769. # Extract the first word of "ranlib", so it can be a program name with args.
  7770. set dummy ranlib; ac_word=$2
  7771. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7772. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7773. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  7774. echo $ECHO_N "(cached) $ECHO_C" >&6
  7775. else
  7776. if test -n "$ac_ct_RANLIB"; then
  7777. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  7778. else
  7779. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7780. for as_dir in $PATH
  7781. do
  7782. IFS=$as_save_IFS
  7783. test -z "$as_dir" && as_dir=.
  7784. for ac_exec_ext in '' $ac_executable_extensions; do
  7785. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7786. ac_cv_prog_ac_ct_RANLIB="ranlib"
  7787. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7788. break 2
  7789. fi
  7790. done
  7791. done
  7792. IFS=$as_save_IFS
  7793. fi
  7794. fi
  7795. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  7796. if test -n "$ac_ct_RANLIB"; then
  7797. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  7798. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  7799. else
  7800. { echo "$as_me:$LINENO: result: no" >&5
  7801. echo "${ECHO_T}no" >&6; }
  7802. fi
  7803. if test "x$ac_ct_RANLIB" = x; then
  7804. RANLIB=":"
  7805. else
  7806. case $cross_compiling:$ac_tool_warned in
  7807. yes:)
  7808. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7809. whose name does not start with the host triplet. If you think this
  7810. configuration is useful to you, please write to autoconf@gnu.org." >&5
  7811. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7812. whose name does not start with the host triplet. If you think this
  7813. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  7814. ac_tool_warned=yes ;;
  7815. esac
  7816. RANLIB=$ac_ct_RANLIB
  7817. fi
  7818. else
  7819. RANLIB="$ac_cv_prog_RANLIB"
  7820. fi
  7821. if test -n "$ac_tool_prefix"; then
  7822. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  7823. set dummy ${ac_tool_prefix}strip; ac_word=$2
  7824. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7825. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7826. if test "${ac_cv_prog_STRIP+set}" = set; then
  7827. echo $ECHO_N "(cached) $ECHO_C" >&6
  7828. else
  7829. if test -n "$STRIP"; then
  7830. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  7831. else
  7832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7833. for as_dir in $PATH
  7834. do
  7835. IFS=$as_save_IFS
  7836. test -z "$as_dir" && as_dir=.
  7837. for ac_exec_ext in '' $ac_executable_extensions; do
  7838. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7839. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  7840. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7841. break 2
  7842. fi
  7843. done
  7844. done
  7845. IFS=$as_save_IFS
  7846. fi
  7847. fi
  7848. STRIP=$ac_cv_prog_STRIP
  7849. if test -n "$STRIP"; then
  7850. { echo "$as_me:$LINENO: result: $STRIP" >&5
  7851. echo "${ECHO_T}$STRIP" >&6; }
  7852. else
  7853. { echo "$as_me:$LINENO: result: no" >&5
  7854. echo "${ECHO_T}no" >&6; }
  7855. fi
  7856. fi
  7857. if test -z "$ac_cv_prog_STRIP"; then
  7858. ac_ct_STRIP=$STRIP
  7859. # Extract the first word of "strip", so it can be a program name with args.
  7860. set dummy strip; ac_word=$2
  7861. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7862. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7863. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  7864. echo $ECHO_N "(cached) $ECHO_C" >&6
  7865. else
  7866. if test -n "$ac_ct_STRIP"; then
  7867. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  7868. else
  7869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7870. for as_dir in $PATH
  7871. do
  7872. IFS=$as_save_IFS
  7873. test -z "$as_dir" && as_dir=.
  7874. for ac_exec_ext in '' $ac_executable_extensions; do
  7875. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7876. ac_cv_prog_ac_ct_STRIP="strip"
  7877. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7878. break 2
  7879. fi
  7880. done
  7881. done
  7882. IFS=$as_save_IFS
  7883. fi
  7884. fi
  7885. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  7886. if test -n "$ac_ct_STRIP"; then
  7887. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  7888. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  7889. else
  7890. { echo "$as_me:$LINENO: result: no" >&5
  7891. echo "${ECHO_T}no" >&6; }
  7892. fi
  7893. if test "x$ac_ct_STRIP" = x; then
  7894. STRIP=":"
  7895. else
  7896. case $cross_compiling:$ac_tool_warned in
  7897. yes:)
  7898. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  7899. whose name does not start with the host triplet. If you think this
  7900. configuration is useful to you, please write to autoconf@gnu.org." >&5
  7901. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  7902. whose name does not start with the host triplet. If you think this
  7903. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  7904. ac_tool_warned=yes ;;
  7905. esac
  7906. STRIP=$ac_ct_STRIP
  7907. fi
  7908. else
  7909. STRIP="$ac_cv_prog_STRIP"
  7910. fi
  7911. old_CC="$CC"
  7912. old_CFLAGS="$CFLAGS"
  7913. # Set sane defaults for various variables
  7914. test -z "$AR" && AR=ar
  7915. test -z "$AR_FLAGS" && AR_FLAGS=cru
  7916. test -z "$AS" && AS=as
  7917. test -z "$CC" && CC=cc
  7918. test -z "$LTCC" && LTCC=$CC
  7919. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7920. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7921. test -z "$LD" && LD=ld
  7922. test -z "$LN_S" && LN_S="ln -s"
  7923. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7924. test -z "$NM" && NM=nm
  7925. test -z "$SED" && SED=sed
  7926. test -z "$OBJDUMP" && OBJDUMP=objdump
  7927. test -z "$RANLIB" && RANLIB=:
  7928. test -z "$STRIP" && STRIP=:
  7929. test -z "$ac_objext" && ac_objext=o
  7930. # Determine commands to create old-style static archives.
  7931. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  7932. old_postinstall_cmds='chmod 644 $oldlib'
  7933. old_postuninstall_cmds=
  7934. if test -n "$RANLIB"; then
  7935. case $host_os in
  7936. openbsd*)
  7937. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  7938. ;;
  7939. *)
  7940. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  7941. ;;
  7942. esac
  7943. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  7944. fi
  7945. for cc_temp in $compiler""; do
  7946. case $cc_temp in
  7947. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7948. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7949. \-*) ;;
  7950. *) break;;
  7951. esac
  7952. done
  7953. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7954. # Only perform the check for file, if the check method requires it
  7955. case $deplibs_check_method in
  7956. file_magic*)
  7957. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7958. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  7959. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  7960. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7961. echo $ECHO_N "(cached) $ECHO_C" >&6
  7962. else
  7963. case $MAGIC_CMD in
  7964. [\\/*] | ?:[\\/]*)
  7965. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7966. ;;
  7967. *)
  7968. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7969. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7970. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7971. for ac_dir in $ac_dummy; do
  7972. IFS="$lt_save_ifs"
  7973. test -z "$ac_dir" && ac_dir=.
  7974. if test -f $ac_dir/${ac_tool_prefix}file; then
  7975. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7976. if test -n "$file_magic_test_file"; then
  7977. case $deplibs_check_method in
  7978. "file_magic "*)
  7979. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7980. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7981. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7982. $EGREP "$file_magic_regex" > /dev/null; then
  7983. :
  7984. else
  7985. cat <<EOF 1>&2
  7986. *** Warning: the command libtool uses to detect shared libraries,
  7987. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7988. *** The result is that libtool may fail to recognize shared libraries
  7989. *** as such. This will affect the creation of libtool libraries that
  7990. *** depend on shared libraries, but programs linked with such libtool
  7991. *** libraries will work regardless of this problem. Nevertheless, you
  7992. *** may want to report the problem to your system manager and/or to
  7993. *** bug-libtool@gnu.org
  7994. EOF
  7995. fi ;;
  7996. esac
  7997. fi
  7998. break
  7999. fi
  8000. done
  8001. IFS="$lt_save_ifs"
  8002. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8003. ;;
  8004. esac
  8005. fi
  8006. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8007. if test -n "$MAGIC_CMD"; then
  8008. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  8009. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  8010. else
  8011. { echo "$as_me:$LINENO: result: no" >&5
  8012. echo "${ECHO_T}no" >&6; }
  8013. fi
  8014. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8015. if test -n "$ac_tool_prefix"; then
  8016. { echo "$as_me:$LINENO: checking for file" >&5
  8017. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  8018. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  8019. echo $ECHO_N "(cached) $ECHO_C" >&6
  8020. else
  8021. case $MAGIC_CMD in
  8022. [\\/*] | ?:[\\/]*)
  8023. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8024. ;;
  8025. *)
  8026. lt_save_MAGIC_CMD="$MAGIC_CMD"
  8027. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8028. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  8029. for ac_dir in $ac_dummy; do
  8030. IFS="$lt_save_ifs"
  8031. test -z "$ac_dir" && ac_dir=.
  8032. if test -f $ac_dir/file; then
  8033. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  8034. if test -n "$file_magic_test_file"; then
  8035. case $deplibs_check_method in
  8036. "file_magic "*)
  8037. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  8038. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8039. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  8040. $EGREP "$file_magic_regex" > /dev/null; then
  8041. :
  8042. else
  8043. cat <<EOF 1>&2
  8044. *** Warning: the command libtool uses to detect shared libraries,
  8045. *** $file_magic_cmd, produces output that libtool cannot recognize.
  8046. *** The result is that libtool may fail to recognize shared libraries
  8047. *** as such. This will affect the creation of libtool libraries that
  8048. *** depend on shared libraries, but programs linked with such libtool
  8049. *** libraries will work regardless of this problem. Nevertheless, you
  8050. *** may want to report the problem to your system manager and/or to
  8051. *** bug-libtool@gnu.org
  8052. EOF
  8053. fi ;;
  8054. esac
  8055. fi
  8056. break
  8057. fi
  8058. done
  8059. IFS="$lt_save_ifs"
  8060. MAGIC_CMD="$lt_save_MAGIC_CMD"
  8061. ;;
  8062. esac
  8063. fi
  8064. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8065. if test -n "$MAGIC_CMD"; then
  8066. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  8067. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  8068. else
  8069. { echo "$as_me:$LINENO: result: no" >&5
  8070. echo "${ECHO_T}no" >&6; }
  8071. fi
  8072. else
  8073. MAGIC_CMD=:
  8074. fi
  8075. fi
  8076. fi
  8077. ;;
  8078. esac
  8079. enable_dlopen=no
  8080. enable_win32_dll=no
  8081. # Check whether --enable-libtool-lock was given.
  8082. if test "${enable_libtool_lock+set}" = set; then
  8083. enableval=$enable_libtool_lock;
  8084. fi
  8085. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  8086. # Check whether --with-pic was given.
  8087. if test "${with_pic+set}" = set; then
  8088. withval=$with_pic; pic_mode="$withval"
  8089. else
  8090. pic_mode=default
  8091. fi
  8092. test -z "$pic_mode" && pic_mode=default
  8093. # Use C for the default configuration in the libtool script
  8094. tagname=
  8095. lt_save_CC="$CC"
  8096. ac_ext=c
  8097. ac_cpp='$CPP $CPPFLAGS'
  8098. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8099. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8100. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8101. # Source file extension for C test sources.
  8102. ac_ext=c
  8103. # Object file extension for compiled C test sources.
  8104. objext=o
  8105. objext=$objext
  8106. # Code to be used in simple compile tests
  8107. lt_simple_compile_test_code="int some_variable = 0;\n"
  8108. # Code to be used in simple link tests
  8109. lt_simple_link_test_code='int main(){return(0);}\n'
  8110. # If no C compiler was specified, use CC.
  8111. LTCC=${LTCC-"$CC"}
  8112. # If no C compiler flags were specified, use CFLAGS.
  8113. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  8114. # Allow CC to be a program name with arguments.
  8115. compiler=$CC
  8116. # save warnings/boilerplate of simple test code
  8117. ac_outfile=conftest.$ac_objext
  8118. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  8119. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8120. _lt_compiler_boilerplate=`cat conftest.err`
  8121. $rm conftest*
  8122. ac_outfile=conftest.$ac_objext
  8123. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  8124. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  8125. _lt_linker_boilerplate=`cat conftest.err`
  8126. $rm conftest*
  8127. ## CAVEAT EMPTOR:
  8128. ## There is no encapsulation within the following macros, do not change
  8129. ## the running order or otherwise move them around unless you know exactly
  8130. ## what you are doing...
  8131. lt_prog_compiler_no_builtin_flag=
  8132. if test "$GCC" = yes; then
  8133. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  8134. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8135. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  8136. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  8137. echo $ECHO_N "(cached) $ECHO_C" >&6
  8138. else
  8139. lt_cv_prog_compiler_rtti_exceptions=no
  8140. ac_outfile=conftest.$ac_objext
  8141. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  8142. lt_compiler_flag="-fno-rtti -fno-exceptions"
  8143. # Insert the option either (1) after the last *FLAGS variable, or
  8144. # (2) before a word containing "conftest.", or (3) at the end.
  8145. # Note that $ac_compile itself does not contain backslashes and begins
  8146. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8147. # The option is referenced via a variable to avoid confusing sed.
  8148. lt_compile=`echo "$ac_compile" | $SED \
  8149. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8150. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8151. -e 's:$: $lt_compiler_flag:'`
  8152. (eval echo "\"\$as_me:9138: $lt_compile\"" >&5)
  8153. (eval "$lt_compile" 2>conftest.err)
  8154. ac_status=$?
  8155. cat conftest.err >&5
  8156. echo "$as_me:9142: \$? = $ac_status" >&5
  8157. if (exit $ac_status) && test -s "$ac_outfile"; then
  8158. # The compiler can only warn and ignore the option if not recognized
  8159. # So say no if there are warnings other than the usual output.
  8160. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  8161. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8162. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8163. lt_cv_prog_compiler_rtti_exceptions=yes
  8164. fi
  8165. fi
  8166. $rm conftest*
  8167. fi
  8168. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  8169. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  8170. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  8171. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  8172. else
  8173. :
  8174. fi
  8175. fi
  8176. lt_prog_compiler_wl=
  8177. lt_prog_compiler_pic=
  8178. lt_prog_compiler_static=
  8179. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  8180. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  8181. if test "$GCC" = yes; then
  8182. lt_prog_compiler_wl='-Wl,'
  8183. lt_prog_compiler_static='-static'
  8184. case $host_os in
  8185. aix*)
  8186. # All AIX code is PIC.
  8187. if test "$host_cpu" = ia64; then
  8188. # AIX 5 now supports IA64 processor
  8189. lt_prog_compiler_static='-Bstatic'
  8190. fi
  8191. ;;
  8192. amigaos*)
  8193. # FIXME: we need at least 68020 code to build shared libraries, but
  8194. # adding the `-m68020' flag to GCC prevents building anything better,
  8195. # like `-m68040'.
  8196. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8197. ;;
  8198. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8199. # PIC is the default for these OSes.
  8200. ;;
  8201. mingw* | pw32* | os2*)
  8202. # This hack is so that the source file can tell whether it is being
  8203. # built for inclusion in a dll (and should export symbols for example).
  8204. lt_prog_compiler_pic='-DDLL_EXPORT'
  8205. ;;
  8206. darwin* | rhapsody*)
  8207. # PIC is the default on this platform
  8208. # Common symbols not allowed in MH_DYLIB files
  8209. lt_prog_compiler_pic='-fno-common'
  8210. ;;
  8211. interix3*)
  8212. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8213. # Instead, we relocate shared libraries at runtime.
  8214. ;;
  8215. msdosdjgpp*)
  8216. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8217. # on systems that don't support them.
  8218. lt_prog_compiler_can_build_shared=no
  8219. enable_shared=no
  8220. ;;
  8221. sysv4*MP*)
  8222. if test -d /usr/nec; then
  8223. lt_prog_compiler_pic=-Kconform_pic
  8224. fi
  8225. ;;
  8226. hpux*)
  8227. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8228. # not for PA HP-UX.
  8229. case $host_cpu in
  8230. hppa*64*|ia64*)
  8231. # +Z the default
  8232. ;;
  8233. *)
  8234. lt_prog_compiler_pic='-fPIC'
  8235. ;;
  8236. esac
  8237. ;;
  8238. *)
  8239. lt_prog_compiler_pic='-fPIC'
  8240. ;;
  8241. esac
  8242. else
  8243. # PORTME Check for flag to pass linker flags through the system compiler.
  8244. case $host_os in
  8245. aix*)
  8246. lt_prog_compiler_wl='-Wl,'
  8247. if test "$host_cpu" = ia64; then
  8248. # AIX 5 now supports IA64 processor
  8249. lt_prog_compiler_static='-Bstatic'
  8250. else
  8251. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8252. fi
  8253. ;;
  8254. darwin*)
  8255. # PIC is the default on this platform
  8256. # Common symbols not allowed in MH_DYLIB files
  8257. case $cc_basename in
  8258. xlc*)
  8259. lt_prog_compiler_pic='-qnocommon'
  8260. lt_prog_compiler_wl='-Wl,'
  8261. ;;
  8262. esac
  8263. ;;
  8264. mingw* | pw32* | os2*)
  8265. # This hack is so that the source file can tell whether it is being
  8266. # built for inclusion in a dll (and should export symbols for example).
  8267. lt_prog_compiler_pic='-DDLL_EXPORT'
  8268. ;;
  8269. hpux9* | hpux10* | hpux11*)
  8270. lt_prog_compiler_wl='-Wl,'
  8271. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8272. # not for PA HP-UX.
  8273. case $host_cpu in
  8274. hppa*64*|ia64*)
  8275. # +Z the default
  8276. ;;
  8277. *)
  8278. lt_prog_compiler_pic='+Z'
  8279. ;;
  8280. esac
  8281. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8282. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8283. ;;
  8284. irix5* | irix6* | nonstopux*)
  8285. lt_prog_compiler_wl='-Wl,'
  8286. # PIC (with -KPIC) is the default.
  8287. lt_prog_compiler_static='-non_shared'
  8288. ;;
  8289. newsos6)
  8290. lt_prog_compiler_pic='-KPIC'
  8291. lt_prog_compiler_static='-Bstatic'
  8292. ;;
  8293. linux*)
  8294. case $cc_basename in
  8295. icc* | ecc*)
  8296. lt_prog_compiler_wl='-Wl,'
  8297. lt_prog_compiler_pic='-KPIC'
  8298. lt_prog_compiler_static='-static'
  8299. ;;
  8300. pgcc* | pgf77* | pgf90* | pgf95*)
  8301. # Portland Group compilers (*not* the Pentium gcc compiler,
  8302. # which looks to be a dead project)
  8303. lt_prog_compiler_wl='-Wl,'
  8304. lt_prog_compiler_pic='-fpic'
  8305. lt_prog_compiler_static='-Bstatic'
  8306. ;;
  8307. ccc*)
  8308. lt_prog_compiler_wl='-Wl,'
  8309. # All Alpha code is PIC.
  8310. lt_prog_compiler_static='-non_shared'
  8311. ;;
  8312. esac
  8313. ;;
  8314. osf3* | osf4* | osf5*)
  8315. lt_prog_compiler_wl='-Wl,'
  8316. # All OSF/1 code is PIC.
  8317. lt_prog_compiler_static='-non_shared'
  8318. ;;
  8319. solaris*)
  8320. lt_prog_compiler_pic='-KPIC'
  8321. lt_prog_compiler_static='-Bstatic'
  8322. case $cc_basename in
  8323. f77* | f90* | f95*)
  8324. lt_prog_compiler_wl='-Qoption ld ';;
  8325. *)
  8326. lt_prog_compiler_wl='-Wl,';;
  8327. esac
  8328. ;;
  8329. sunos4*)
  8330. lt_prog_compiler_wl='-Qoption ld '
  8331. lt_prog_compiler_pic='-PIC'
  8332. lt_prog_compiler_static='-Bstatic'
  8333. ;;
  8334. sysv4 | sysv4.2uw2* | sysv4.3*)
  8335. lt_prog_compiler_wl='-Wl,'
  8336. lt_prog_compiler_pic='-KPIC'
  8337. lt_prog_compiler_static='-Bstatic'
  8338. ;;
  8339. sysv4*MP*)
  8340. if test -d /usr/nec ;then
  8341. lt_prog_compiler_pic='-Kconform_pic'
  8342. lt_prog_compiler_static='-Bstatic'
  8343. fi
  8344. ;;
  8345. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8346. lt_prog_compiler_wl='-Wl,'
  8347. lt_prog_compiler_pic='-KPIC'
  8348. lt_prog_compiler_static='-Bstatic'
  8349. ;;
  8350. unicos*)
  8351. lt_prog_compiler_wl='-Wl,'
  8352. lt_prog_compiler_can_build_shared=no
  8353. ;;
  8354. uts4*)
  8355. lt_prog_compiler_pic='-pic'
  8356. lt_prog_compiler_static='-Bstatic'
  8357. ;;
  8358. *)
  8359. lt_prog_compiler_can_build_shared=no
  8360. ;;
  8361. esac
  8362. fi
  8363. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  8364. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  8365. #
  8366. # Check to make sure the PIC flag actually works.
  8367. #
  8368. if test -n "$lt_prog_compiler_pic"; then
  8369. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8370. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  8371. if test "${lt_prog_compiler_pic_works+set}" = set; then
  8372. echo $ECHO_N "(cached) $ECHO_C" >&6
  8373. else
  8374. lt_prog_compiler_pic_works=no
  8375. ac_outfile=conftest.$ac_objext
  8376. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  8377. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8378. # Insert the option either (1) after the last *FLAGS variable, or
  8379. # (2) before a word containing "conftest.", or (3) at the end.
  8380. # Note that $ac_compile itself does not contain backslashes and begins
  8381. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8382. # The option is referenced via a variable to avoid confusing sed.
  8383. lt_compile=`echo "$ac_compile" | $SED \
  8384. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8385. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8386. -e 's:$: $lt_compiler_flag:'`
  8387. (eval echo "\"\$as_me:9406: $lt_compile\"" >&5)
  8388. (eval "$lt_compile" 2>conftest.err)
  8389. ac_status=$?
  8390. cat conftest.err >&5
  8391. echo "$as_me:9410: \$? = $ac_status" >&5
  8392. if (exit $ac_status) && test -s "$ac_outfile"; then
  8393. # The compiler can only warn and ignore the option if not recognized
  8394. # So say no if there are warnings other than the usual output.
  8395. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  8396. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8397. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8398. lt_prog_compiler_pic_works=yes
  8399. fi
  8400. fi
  8401. $rm conftest*
  8402. fi
  8403. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  8404. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  8405. if test x"$lt_prog_compiler_pic_works" = xyes; then
  8406. case $lt_prog_compiler_pic in
  8407. "" | " "*) ;;
  8408. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8409. esac
  8410. else
  8411. lt_prog_compiler_pic=
  8412. lt_prog_compiler_can_build_shared=no
  8413. fi
  8414. fi
  8415. case $host_os in
  8416. # For platforms which do not support PIC, -DPIC is meaningless:
  8417. *djgpp*)
  8418. lt_prog_compiler_pic=
  8419. ;;
  8420. *)
  8421. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8422. ;;
  8423. esac
  8424. #
  8425. # Check to make sure the static flag actually works.
  8426. #
  8427. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8428. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8429. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  8430. if test "${lt_prog_compiler_static_works+set}" = set; then
  8431. echo $ECHO_N "(cached) $ECHO_C" >&6
  8432. else
  8433. lt_prog_compiler_static_works=no
  8434. save_LDFLAGS="$LDFLAGS"
  8435. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8436. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  8437. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8438. # The linker can only warn and ignore the option if not recognized
  8439. # So say no if there are warnings
  8440. if test -s conftest.err; then
  8441. # Append any errors to the config.log.
  8442. cat conftest.err 1>&5
  8443. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  8444. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8445. if diff conftest.exp conftest.er2 >/dev/null; then
  8446. lt_prog_compiler_static_works=yes
  8447. fi
  8448. else
  8449. lt_prog_compiler_static_works=yes
  8450. fi
  8451. fi
  8452. $rm conftest*
  8453. LDFLAGS="$save_LDFLAGS"
  8454. fi
  8455. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  8456. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  8457. if test x"$lt_prog_compiler_static_works" = xyes; then
  8458. :
  8459. else
  8460. lt_prog_compiler_static=
  8461. fi
  8462. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  8463. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  8464. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  8465. echo $ECHO_N "(cached) $ECHO_C" >&6
  8466. else
  8467. lt_cv_prog_compiler_c_o=no
  8468. $rm -r conftest 2>/dev/null
  8469. mkdir conftest
  8470. cd conftest
  8471. mkdir out
  8472. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  8473. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8474. # Insert the option either (1) after the last *FLAGS variable, or
  8475. # (2) before a word containing "conftest.", or (3) at the end.
  8476. # Note that $ac_compile itself does not contain backslashes and begins
  8477. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8478. lt_compile=`echo "$ac_compile" | $SED \
  8479. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8480. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8481. -e 's:$: $lt_compiler_flag:'`
  8482. (eval echo "\"\$as_me:9510: $lt_compile\"" >&5)
  8483. (eval "$lt_compile" 2>out/conftest.err)
  8484. ac_status=$?
  8485. cat out/conftest.err >&5
  8486. echo "$as_me:9514: \$? = $ac_status" >&5
  8487. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8488. then
  8489. # The compiler can only warn and ignore the option if not recognized
  8490. # So say no if there are warnings
  8491. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8492. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8493. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8494. lt_cv_prog_compiler_c_o=yes
  8495. fi
  8496. fi
  8497. chmod u+w . 2>&5
  8498. $rm conftest*
  8499. # SGI C++ compiler will create directory out/ii_files/ for
  8500. # template instantiation
  8501. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  8502. $rm out/* && rmdir out
  8503. cd ..
  8504. rmdir conftest
  8505. $rm conftest*
  8506. fi
  8507. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  8508. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  8509. hard_links="nottested"
  8510. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8511. # do not overwrite the value of need_locks provided by the user
  8512. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  8513. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  8514. hard_links=yes
  8515. $rm conftest*
  8516. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8517. touch conftest.a
  8518. ln conftest.a conftest.b 2>&5 || hard_links=no
  8519. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8520. { echo "$as_me:$LINENO: result: $hard_links" >&5
  8521. echo "${ECHO_T}$hard_links" >&6; }
  8522. if test "$hard_links" = no; then
  8523. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8524. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8525. need_locks=warn
  8526. fi
  8527. else
  8528. need_locks=no
  8529. fi
  8530. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8531. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  8532. runpath_var=
  8533. allow_undefined_flag=
  8534. enable_shared_with_static_runtimes=no
  8535. archive_cmds=
  8536. archive_expsym_cmds=
  8537. old_archive_From_new_cmds=
  8538. old_archive_from_expsyms_cmds=
  8539. export_dynamic_flag_spec=
  8540. whole_archive_flag_spec=
  8541. thread_safe_flag_spec=
  8542. hardcode_libdir_flag_spec=
  8543. hardcode_libdir_flag_spec_ld=
  8544. hardcode_libdir_separator=
  8545. hardcode_direct=no
  8546. hardcode_minus_L=no
  8547. hardcode_shlibpath_var=unsupported
  8548. link_all_deplibs=unknown
  8549. hardcode_automatic=no
  8550. module_cmds=
  8551. module_expsym_cmds=
  8552. always_export_symbols=no
  8553. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8554. # include_expsyms should be a list of space-separated symbols to be *always*
  8555. # included in the symbol list
  8556. include_expsyms=
  8557. # exclude_expsyms can be an extended regexp of symbols to exclude
  8558. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8559. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8560. # as well as any symbol that contains `d'.
  8561. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  8562. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8563. # platforms (ab)use it in PIC code, but their linkers get confused if
  8564. # the symbol is explicitly referenced. Since portable code cannot
  8565. # rely on this symbol name, it's probably fine to never include it in
  8566. # preloaded symbol tables.
  8567. extract_expsyms_cmds=
  8568. # Just being paranoid about ensuring that cc_basename is set.
  8569. for cc_temp in $compiler""; do
  8570. case $cc_temp in
  8571. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  8572. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  8573. \-*) ;;
  8574. *) break;;
  8575. esac
  8576. done
  8577. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  8578. case $host_os in
  8579. cygwin* | mingw* | pw32*)
  8580. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8581. # When not using gcc, we currently assume that we are using
  8582. # Microsoft Visual C++.
  8583. if test "$GCC" != yes; then
  8584. with_gnu_ld=no
  8585. fi
  8586. ;;
  8587. interix*)
  8588. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8589. with_gnu_ld=yes
  8590. ;;
  8591. openbsd*)
  8592. with_gnu_ld=no
  8593. ;;
  8594. esac
  8595. ld_shlibs=yes
  8596. if test "$with_gnu_ld" = yes; then
  8597. # If archive_cmds runs LD, not CC, wlarc should be empty
  8598. wlarc='${wl}'
  8599. # Set some defaults for GNU ld with shared library support. These
  8600. # are reset later if shared libraries are not supported. Putting them
  8601. # here allows them to be overridden if necessary.
  8602. runpath_var=LD_RUN_PATH
  8603. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  8604. export_dynamic_flag_spec='${wl}--export-dynamic'
  8605. # ancient GNU ld didn't support --whole-archive et. al.
  8606. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  8607. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8608. else
  8609. whole_archive_flag_spec=
  8610. fi
  8611. supports_anon_versioning=no
  8612. case `$LD -v 2>/dev/null` in
  8613. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8614. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8615. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8616. *\ 2.11.*) ;; # other 2.11 versions
  8617. *) supports_anon_versioning=yes ;;
  8618. esac
  8619. # See if GNU ld supports shared libraries.
  8620. case $host_os in
  8621. aix3* | aix4* | aix5*)
  8622. # On AIX/PPC, the GNU linker is very broken
  8623. if test "$host_cpu" != ia64; then
  8624. ld_shlibs=no
  8625. cat <<EOF 1>&2
  8626. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8627. *** to be unable to reliably create shared libraries on AIX.
  8628. *** Therefore, libtool is disabling shared libraries support. If you
  8629. *** really care for shared libraries, you may want to modify your PATH
  8630. *** so that a non-GNU linker is found, and then restart.
  8631. EOF
  8632. fi
  8633. ;;
  8634. amigaos*)
  8635. 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)'
  8636. hardcode_libdir_flag_spec='-L$libdir'
  8637. hardcode_minus_L=yes
  8638. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  8639. # that the semantics of dynamic libraries on AmigaOS, at least up
  8640. # to version 4, is to share data among multiple programs linked
  8641. # with the same dynamic library. Since this doesn't match the
  8642. # behavior of shared libraries on other platforms, we can't use
  8643. # them.
  8644. ld_shlibs=no
  8645. ;;
  8646. beos*)
  8647. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8648. allow_undefined_flag=unsupported
  8649. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8650. # support --undefined. This deserves some investigation. FIXME
  8651. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8652. else
  8653. ld_shlibs=no
  8654. fi
  8655. ;;
  8656. cygwin* | mingw* | pw32*)
  8657. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8658. # as there is no search path for DLLs.
  8659. hardcode_libdir_flag_spec='-L$libdir'
  8660. allow_undefined_flag=unsupported
  8661. always_export_symbols=no
  8662. enable_shared_with_static_runtimes=yes
  8663. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  8664. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  8665. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8666. # If the export-symbols file already is a .def file (1st line
  8667. # is EXPORTS), use it as is; otherwise, prepend...
  8668. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8669. cp $export_symbols $output_objdir/$soname.def;
  8670. else
  8671. echo EXPORTS > $output_objdir/$soname.def;
  8672. cat $export_symbols >> $output_objdir/$soname.def;
  8673. fi~
  8674. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8675. else
  8676. ld_shlibs=no
  8677. fi
  8678. ;;
  8679. interix3*)
  8680. hardcode_direct=no
  8681. hardcode_shlibpath_var=no
  8682. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8683. export_dynamic_flag_spec='${wl}-E'
  8684. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8685. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8686. # default) and relocated if they conflict, which is a slow very memory
  8687. # consuming and fragmenting process. To avoid this, we pick a random,
  8688. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8689. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8690. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8691. 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'
  8692. ;;
  8693. linux*)
  8694. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8695. tmp_addflag=
  8696. case $cc_basename,$host_cpu in
  8697. pgcc*) # Portland Group C compiler
  8698. 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'
  8699. tmp_addflag=' $pic_flag'
  8700. ;;
  8701. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8702. 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'
  8703. tmp_addflag=' $pic_flag -Mnomain' ;;
  8704. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8705. tmp_addflag=' -i_dynamic' ;;
  8706. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8707. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8708. ifc* | ifort*) # Intel Fortran compiler
  8709. tmp_addflag=' -nofor_main' ;;
  8710. esac
  8711. archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8712. if test $supports_anon_versioning = yes; then
  8713. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  8714. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8715. $echo "local: *; };" >> $output_objdir/$libname.ver~
  8716. $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8717. fi
  8718. else
  8719. ld_shlibs=no
  8720. fi
  8721. ;;
  8722. netbsd*)
  8723. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8724. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8725. wlarc=
  8726. else
  8727. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8728. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8729. fi
  8730. ;;
  8731. solaris*)
  8732. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  8733. ld_shlibs=no
  8734. cat <<EOF 1>&2
  8735. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8736. *** create shared libraries on Solaris systems. Therefore, libtool
  8737. *** is disabling shared libraries support. We urge you to upgrade GNU
  8738. *** binutils to release 2.9.1 or newer. Another option is to modify
  8739. *** your PATH or compiler configuration so that the native linker is
  8740. *** used, and then restart.
  8741. EOF
  8742. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8743. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8744. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8745. else
  8746. ld_shlibs=no
  8747. fi
  8748. ;;
  8749. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8750. case `$LD -v 2>&1` in
  8751. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8752. ld_shlibs=no
  8753. cat <<_LT_EOF 1>&2
  8754. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8755. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8756. *** is disabling shared libraries support. We urge you to upgrade GNU
  8757. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8758. *** your PATH or compiler configuration so that the native linker is
  8759. *** used, and then restart.
  8760. _LT_EOF
  8761. ;;
  8762. *)
  8763. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8764. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  8765. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  8766. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  8767. else
  8768. ld_shlibs=no
  8769. fi
  8770. ;;
  8771. esac
  8772. ;;
  8773. sunos4*)
  8774. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8775. wlarc=
  8776. hardcode_direct=yes
  8777. hardcode_shlibpath_var=no
  8778. ;;
  8779. *)
  8780. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  8781. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8782. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8783. else
  8784. ld_shlibs=no
  8785. fi
  8786. ;;
  8787. esac
  8788. if test "$ld_shlibs" = no; then
  8789. runpath_var=
  8790. hardcode_libdir_flag_spec=
  8791. export_dynamic_flag_spec=
  8792. whole_archive_flag_spec=
  8793. fi
  8794. else
  8795. # PORTME fill in a description of your system's linker (not GNU ld)
  8796. case $host_os in
  8797. aix3*)
  8798. allow_undefined_flag=unsupported
  8799. always_export_symbols=yes
  8800. 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'
  8801. # Note: this linker hardcodes the directories in LIBPATH if there
  8802. # are no directories specified by -L.
  8803. hardcode_minus_L=yes
  8804. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8805. # Neither direct hardcoding nor static linking is supported with a
  8806. # broken collect2.
  8807. hardcode_direct=unsupported
  8808. fi
  8809. ;;
  8810. aix4* | aix5*)
  8811. if test "$host_cpu" = ia64; then
  8812. # On IA64, the linker does run time linking by default, so we don't
  8813. # have to do anything special.
  8814. aix_use_runtimelinking=no
  8815. exp_sym_flag='-Bexport'
  8816. no_entry_flag=""
  8817. else
  8818. # If we're using GNU nm, then we don't want the "-C" option.
  8819. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8820. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  8821. 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'
  8822. else
  8823. 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'
  8824. fi
  8825. aix_use_runtimelinking=no
  8826. # Test if we are trying to use run time linking or normal
  8827. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8828. # need to do runtime linking.
  8829. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  8830. for ld_flag in $LDFLAGS; do
  8831. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8832. aix_use_runtimelinking=yes
  8833. break
  8834. fi
  8835. done
  8836. ;;
  8837. esac
  8838. exp_sym_flag='-bexport'
  8839. no_entry_flag='-bnoentry'
  8840. fi
  8841. # When large executables or shared objects are built, AIX ld can
  8842. # have problems creating the table of contents. If linking a library
  8843. # or program results in "error TOC overflow" add -mminimal-toc to
  8844. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8845. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8846. archive_cmds=''
  8847. hardcode_direct=yes
  8848. hardcode_libdir_separator=':'
  8849. link_all_deplibs=yes
  8850. if test "$GCC" = yes; then
  8851. case $host_os in aix4.[012]|aix4.[012].*)
  8852. # We only want to do this on AIX 4.2 and lower, the check
  8853. # below for broken collect2 doesn't work under 4.3+
  8854. collect2name=`${CC} -print-prog-name=collect2`
  8855. if test -f "$collect2name" && \
  8856. strings "$collect2name" | grep resolve_lib_name >/dev/null
  8857. then
  8858. # We have reworked collect2
  8859. hardcode_direct=yes
  8860. else
  8861. # We have old collect2
  8862. hardcode_direct=unsupported
  8863. # It fails to find uninstalled libraries when the uninstalled
  8864. # path is not listed in the libpath. Setting hardcode_minus_L
  8865. # to unsupported forces relinking
  8866. hardcode_minus_L=yes
  8867. hardcode_libdir_flag_spec='-L$libdir'
  8868. hardcode_libdir_separator=
  8869. fi
  8870. ;;
  8871. esac
  8872. shared_flag='-shared'
  8873. if test "$aix_use_runtimelinking" = yes; then
  8874. shared_flag="$shared_flag "'${wl}-G'
  8875. fi
  8876. else
  8877. # not using gcc
  8878. if test "$host_cpu" = ia64; then
  8879. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8880. # chokes on -Wl,-G. The following line is correct:
  8881. shared_flag='-G'
  8882. else
  8883. if test "$aix_use_runtimelinking" = yes; then
  8884. shared_flag='${wl}-G'
  8885. else
  8886. shared_flag='${wl}-bM:SRE'
  8887. fi
  8888. fi
  8889. fi
  8890. # It seems that -bexpall does not export symbols beginning with
  8891. # underscore (_), so it is better to generate a list of symbols to export.
  8892. always_export_symbols=yes
  8893. if test "$aix_use_runtimelinking" = yes; then
  8894. # Warning - without using the other runtime loading flags (-brtl),
  8895. # -berok will link without error, but may produce a broken library.
  8896. allow_undefined_flag='-berok'
  8897. # Determine the default libpath from the value encoded in an empty executable.
  8898. cat >conftest.$ac_ext <<_ACEOF
  8899. /* confdefs.h. */
  8900. _ACEOF
  8901. cat confdefs.h >>conftest.$ac_ext
  8902. cat >>conftest.$ac_ext <<_ACEOF
  8903. /* end confdefs.h. */
  8904. int
  8905. main ()
  8906. {
  8907. ;
  8908. return 0;
  8909. }
  8910. _ACEOF
  8911. rm -f conftest.$ac_objext conftest$ac_exeext
  8912. if { (ac_try="$ac_link"
  8913. case "(($ac_try" in
  8914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8915. *) ac_try_echo=$ac_try;;
  8916. esac
  8917. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8918. (eval "$ac_link") 2>conftest.er1
  8919. ac_status=$?
  8920. grep -v '^ *+' conftest.er1 >conftest.err
  8921. rm -f conftest.er1
  8922. cat conftest.err >&5
  8923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8924. (exit $ac_status); } && {
  8925. test -z "$ac_c_werror_flag" ||
  8926. test ! -s conftest.err
  8927. } && test -s conftest$ac_exeext &&
  8928. $as_test_x conftest$ac_exeext; then
  8929. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8930. }'`
  8931. # Check for a 64-bit object if we didn't find anything.
  8932. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8933. }'`; fi
  8934. else
  8935. echo "$as_me: failed program was:" >&5
  8936. sed 's/^/| /' conftest.$ac_ext >&5
  8937. fi
  8938. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8939. conftest$ac_exeext conftest.$ac_ext
  8940. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8941. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8942. 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"
  8943. else
  8944. if test "$host_cpu" = ia64; then
  8945. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8946. allow_undefined_flag="-z nodefs"
  8947. 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"
  8948. else
  8949. # Determine the default libpath from the value encoded in an empty executable.
  8950. cat >conftest.$ac_ext <<_ACEOF
  8951. /* confdefs.h. */
  8952. _ACEOF
  8953. cat confdefs.h >>conftest.$ac_ext
  8954. cat >>conftest.$ac_ext <<_ACEOF
  8955. /* end confdefs.h. */
  8956. int
  8957. main ()
  8958. {
  8959. ;
  8960. return 0;
  8961. }
  8962. _ACEOF
  8963. rm -f conftest.$ac_objext conftest$ac_exeext
  8964. if { (ac_try="$ac_link"
  8965. case "(($ac_try" in
  8966. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8967. *) ac_try_echo=$ac_try;;
  8968. esac
  8969. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8970. (eval "$ac_link") 2>conftest.er1
  8971. ac_status=$?
  8972. grep -v '^ *+' conftest.er1 >conftest.err
  8973. rm -f conftest.er1
  8974. cat conftest.err >&5
  8975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8976. (exit $ac_status); } && {
  8977. test -z "$ac_c_werror_flag" ||
  8978. test ! -s conftest.err
  8979. } && test -s conftest$ac_exeext &&
  8980. $as_test_x conftest$ac_exeext; then
  8981. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8982. }'`
  8983. # Check for a 64-bit object if we didn't find anything.
  8984. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  8985. }'`; fi
  8986. else
  8987. echo "$as_me: failed program was:" >&5
  8988. sed 's/^/| /' conftest.$ac_ext >&5
  8989. fi
  8990. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8991. conftest$ac_exeext conftest.$ac_ext
  8992. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8993. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8994. # Warning - without using the other run time loading flags,
  8995. # -berok will link without error, but may produce a broken library.
  8996. no_undefined_flag=' ${wl}-bernotok'
  8997. allow_undefined_flag=' ${wl}-berok'
  8998. # Exported symbols can be pulled into shared objects from archives
  8999. whole_archive_flag_spec='$convenience'
  9000. archive_cmds_need_lc=yes
  9001. # This is similar to how AIX traditionally builds its shared libraries.
  9002. 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'
  9003. fi
  9004. fi
  9005. ;;
  9006. amigaos*)
  9007. 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)'
  9008. hardcode_libdir_flag_spec='-L$libdir'
  9009. hardcode_minus_L=yes
  9010. # see comment about different semantics on the GNU ld section
  9011. ld_shlibs=no
  9012. ;;
  9013. bsdi[45]*)
  9014. export_dynamic_flag_spec=-rdynamic
  9015. ;;
  9016. cygwin* | mingw* | pw32*)
  9017. # When not using gcc, we currently assume that we are using
  9018. # Microsoft Visual C++.
  9019. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9020. # no search path for DLLs.
  9021. hardcode_libdir_flag_spec=' '
  9022. allow_undefined_flag=unsupported
  9023. # Tell ltmain to make .lib files, not .a files.
  9024. libext=lib
  9025. # Tell ltmain to make .dll files, not .so files.
  9026. shrext_cmds=".dll"
  9027. # FIXME: Setting linknames here is a bad hack.
  9028. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  9029. # The linker will automatically build a .lib file if we build a DLL.
  9030. old_archive_From_new_cmds='true'
  9031. # FIXME: Should let the user specify the lib program.
  9032. old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  9033. fix_srcfile_path='`cygpath -w "$srcfile"`'
  9034. enable_shared_with_static_runtimes=yes
  9035. ;;
  9036. darwin* | rhapsody*)
  9037. case $host_os in
  9038. rhapsody* | darwin1.[012])
  9039. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  9040. ;;
  9041. *) # Darwin 1.3 on
  9042. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  9043. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9044. else
  9045. case ${MACOSX_DEPLOYMENT_TARGET} in
  9046. 10.[012])
  9047. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  9048. ;;
  9049. 10.*)
  9050. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  9051. ;;
  9052. esac
  9053. fi
  9054. ;;
  9055. esac
  9056. archive_cmds_need_lc=no
  9057. hardcode_direct=no
  9058. hardcode_automatic=yes
  9059. hardcode_shlibpath_var=unsupported
  9060. whole_archive_flag_spec=''
  9061. link_all_deplibs=yes
  9062. if test "$GCC" = yes ; then
  9063. output_verbose_link_cmd='echo'
  9064. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  9065. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9066. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9067. 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}'
  9068. 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}'
  9069. else
  9070. case $cc_basename in
  9071. xlc*)
  9072. output_verbose_link_cmd='echo'
  9073. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  9074. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  9075. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  9076. 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  9077. 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}'
  9078. ;;
  9079. *)
  9080. ld_shlibs=no
  9081. ;;
  9082. esac
  9083. fi
  9084. ;;
  9085. dgux*)
  9086. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9087. hardcode_libdir_flag_spec='-L$libdir'
  9088. hardcode_shlibpath_var=no
  9089. ;;
  9090. freebsd1*)
  9091. ld_shlibs=no
  9092. ;;
  9093. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9094. # support. Future versions do this automatically, but an explicit c++rt0.o
  9095. # does not break anything, and helps significantly (at the cost of a little
  9096. # extra space).
  9097. freebsd2.2*)
  9098. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9099. hardcode_libdir_flag_spec='-R$libdir'
  9100. hardcode_direct=yes
  9101. hardcode_shlibpath_var=no
  9102. ;;
  9103. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9104. freebsd2*)
  9105. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9106. hardcode_direct=yes
  9107. hardcode_minus_L=yes
  9108. hardcode_shlibpath_var=no
  9109. ;;
  9110. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9111. freebsd* | kfreebsd*-gnu | dragonfly*)
  9112. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  9113. hardcode_libdir_flag_spec='-R$libdir'
  9114. hardcode_direct=yes
  9115. hardcode_shlibpath_var=no
  9116. ;;
  9117. hpux9*)
  9118. if test "$GCC" = yes; then
  9119. 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'
  9120. else
  9121. 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'
  9122. fi
  9123. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9124. hardcode_libdir_separator=:
  9125. hardcode_direct=yes
  9126. # hardcode_minus_L: Not really in the search PATH,
  9127. # but as the default location of the library.
  9128. hardcode_minus_L=yes
  9129. export_dynamic_flag_spec='${wl}-E'
  9130. ;;
  9131. hpux10*)
  9132. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  9133. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9134. else
  9135. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9136. fi
  9137. if test "$with_gnu_ld" = no; then
  9138. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9139. hardcode_libdir_separator=:
  9140. hardcode_direct=yes
  9141. export_dynamic_flag_spec='${wl}-E'
  9142. # hardcode_minus_L: Not really in the search PATH,
  9143. # but as the default location of the library.
  9144. hardcode_minus_L=yes
  9145. fi
  9146. ;;
  9147. hpux11*)
  9148. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  9149. case $host_cpu in
  9150. hppa*64*)
  9151. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9152. ;;
  9153. ia64*)
  9154. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9155. ;;
  9156. *)
  9157. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9158. ;;
  9159. esac
  9160. else
  9161. case $host_cpu in
  9162. hppa*64*)
  9163. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9164. ;;
  9165. ia64*)
  9166. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9167. ;;
  9168. *)
  9169. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9170. ;;
  9171. esac
  9172. fi
  9173. if test "$with_gnu_ld" = no; then
  9174. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9175. hardcode_libdir_separator=:
  9176. case $host_cpu in
  9177. hppa*64*|ia64*)
  9178. hardcode_libdir_flag_spec_ld='+b $libdir'
  9179. hardcode_direct=no
  9180. hardcode_shlibpath_var=no
  9181. ;;
  9182. *)
  9183. hardcode_direct=yes
  9184. export_dynamic_flag_spec='${wl}-E'
  9185. # hardcode_minus_L: Not really in the search PATH,
  9186. # but as the default location of the library.
  9187. hardcode_minus_L=yes
  9188. ;;
  9189. esac
  9190. fi
  9191. ;;
  9192. irix5* | irix6* | nonstopux*)
  9193. if test "$GCC" = yes; then
  9194. 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'
  9195. else
  9196. 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'
  9197. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  9198. fi
  9199. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9200. hardcode_libdir_separator=:
  9201. link_all_deplibs=yes
  9202. ;;
  9203. netbsd*)
  9204. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9205. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9206. else
  9207. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9208. fi
  9209. hardcode_libdir_flag_spec='-R$libdir'
  9210. hardcode_direct=yes
  9211. hardcode_shlibpath_var=no
  9212. ;;
  9213. newsos6)
  9214. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9215. hardcode_direct=yes
  9216. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9217. hardcode_libdir_separator=:
  9218. hardcode_shlibpath_var=no
  9219. ;;
  9220. openbsd*)
  9221. hardcode_direct=yes
  9222. hardcode_shlibpath_var=no
  9223. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9224. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9225. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9226. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9227. export_dynamic_flag_spec='${wl}-E'
  9228. else
  9229. case $host_os in
  9230. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9231. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9232. hardcode_libdir_flag_spec='-R$libdir'
  9233. ;;
  9234. *)
  9235. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9236. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9237. ;;
  9238. esac
  9239. fi
  9240. ;;
  9241. os2*)
  9242. hardcode_libdir_flag_spec='-L$libdir'
  9243. hardcode_minus_L=yes
  9244. allow_undefined_flag=unsupported
  9245. 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'
  9246. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9247. ;;
  9248. osf3*)
  9249. if test "$GCC" = yes; then
  9250. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9251. 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'
  9252. else
  9253. allow_undefined_flag=' -expect_unresolved \*'
  9254. 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'
  9255. fi
  9256. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9257. hardcode_libdir_separator=:
  9258. ;;
  9259. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9260. if test "$GCC" = yes; then
  9261. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9262. 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'
  9263. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9264. else
  9265. allow_undefined_flag=' -expect_unresolved \*'
  9266. 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'
  9267. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  9268. $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'
  9269. # Both c and cxx compiler support -rpath directly
  9270. hardcode_libdir_flag_spec='-rpath $libdir'
  9271. fi
  9272. hardcode_libdir_separator=:
  9273. ;;
  9274. solaris*)
  9275. no_undefined_flag=' -z text'
  9276. if test "$GCC" = yes; then
  9277. wlarc='${wl}'
  9278. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9279. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9280. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  9281. else
  9282. wlarc=''
  9283. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9284. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  9285. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  9286. fi
  9287. hardcode_libdir_flag_spec='-R$libdir'
  9288. hardcode_shlibpath_var=no
  9289. case $host_os in
  9290. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9291. *)
  9292. # The compiler driver will combine linker options so we
  9293. # cannot just pass the convience library names through
  9294. # without $wl, iff we do not link with $LD.
  9295. # Luckily, gcc supports the same syntax we need for Sun Studio.
  9296. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9297. case $wlarc in
  9298. '')
  9299. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  9300. *)
  9301. whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  9302. esac ;;
  9303. esac
  9304. link_all_deplibs=yes
  9305. ;;
  9306. sunos4*)
  9307. if test "x$host_vendor" = xsequent; then
  9308. # Use $CC to link under sequent, because it throws in some extra .o
  9309. # files that make .init and .fini sections work.
  9310. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9311. else
  9312. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9313. fi
  9314. hardcode_libdir_flag_spec='-L$libdir'
  9315. hardcode_direct=yes
  9316. hardcode_minus_L=yes
  9317. hardcode_shlibpath_var=no
  9318. ;;
  9319. sysv4)
  9320. case $host_vendor in
  9321. sni)
  9322. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9323. hardcode_direct=yes # is this really true???
  9324. ;;
  9325. siemens)
  9326. ## LD is ld it makes a PLAMLIB
  9327. ## CC just makes a GrossModule.
  9328. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9329. reload_cmds='$CC -r -o $output$reload_objs'
  9330. hardcode_direct=no
  9331. ;;
  9332. motorola)
  9333. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9334. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9335. ;;
  9336. esac
  9337. runpath_var='LD_RUN_PATH'
  9338. hardcode_shlibpath_var=no
  9339. ;;
  9340. sysv4.3*)
  9341. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9342. hardcode_shlibpath_var=no
  9343. export_dynamic_flag_spec='-Bexport'
  9344. ;;
  9345. sysv4*MP*)
  9346. if test -d /usr/nec; then
  9347. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9348. hardcode_shlibpath_var=no
  9349. runpath_var=LD_RUN_PATH
  9350. hardcode_runpath_var=yes
  9351. ld_shlibs=yes
  9352. fi
  9353. ;;
  9354. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
  9355. no_undefined_flag='${wl}-z,text'
  9356. archive_cmds_need_lc=no
  9357. hardcode_shlibpath_var=no
  9358. runpath_var='LD_RUN_PATH'
  9359. if test "$GCC" = yes; then
  9360. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9361. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9362. else
  9363. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9364. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9365. fi
  9366. ;;
  9367. sysv5* | sco3.2v5* | sco5v6*)
  9368. # Note: We can NOT use -z defs as we might desire, because we do not
  9369. # link with -lc, and that would cause any symbols used from libc to
  9370. # always be unresolved, which means just about no library would
  9371. # ever link correctly. If we're not using GNU ld we use -z text
  9372. # though, which does catch some bad symbols but isn't as heavy-handed
  9373. # as -z defs.
  9374. no_undefined_flag='${wl}-z,text'
  9375. allow_undefined_flag='${wl}-z,nodefs'
  9376. archive_cmds_need_lc=no
  9377. hardcode_shlibpath_var=no
  9378. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  9379. hardcode_libdir_separator=':'
  9380. link_all_deplibs=yes
  9381. export_dynamic_flag_spec='${wl}-Bexport'
  9382. runpath_var='LD_RUN_PATH'
  9383. if test "$GCC" = yes; then
  9384. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9385. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9386. else
  9387. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9388. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9389. fi
  9390. ;;
  9391. uts4*)
  9392. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9393. hardcode_libdir_flag_spec='-L$libdir'
  9394. hardcode_shlibpath_var=no
  9395. ;;
  9396. *)
  9397. ld_shlibs=no
  9398. ;;
  9399. esac
  9400. fi
  9401. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  9402. echo "${ECHO_T}$ld_shlibs" >&6; }
  9403. test "$ld_shlibs" = no && can_build_shared=no
  9404. #
  9405. # Do we need to explicitly link libc?
  9406. #
  9407. case "x$archive_cmds_need_lc" in
  9408. x|xyes)
  9409. # Assume -lc should be added
  9410. archive_cmds_need_lc=yes
  9411. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9412. case $archive_cmds in
  9413. *'~'*)
  9414. # FIXME: we may have to deal with multi-command sequences.
  9415. ;;
  9416. '$CC '*)
  9417. # Test whether the compiler implicitly links with -lc since on some
  9418. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9419. # to ld, don't add -lc before -lgcc.
  9420. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  9421. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  9422. $rm conftest*
  9423. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  9424. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9425. (eval $ac_compile) 2>&5
  9426. ac_status=$?
  9427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9428. (exit $ac_status); } 2>conftest.err; then
  9429. soname=conftest
  9430. lib=conftest
  9431. libobjs=conftest.$ac_objext
  9432. deplibs=
  9433. wl=$lt_prog_compiler_wl
  9434. pic_flag=$lt_prog_compiler_pic
  9435. compiler_flags=-v
  9436. linker_flags=-v
  9437. verstring=
  9438. output_objdir=.
  9439. libname=conftest
  9440. lt_save_allow_undefined_flag=$allow_undefined_flag
  9441. allow_undefined_flag=
  9442. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  9443. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9444. ac_status=$?
  9445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9446. (exit $ac_status); }
  9447. then
  9448. archive_cmds_need_lc=no
  9449. else
  9450. archive_cmds_need_lc=yes
  9451. fi
  9452. allow_undefined_flag=$lt_save_allow_undefined_flag
  9453. else
  9454. cat conftest.err 1>&5
  9455. fi
  9456. $rm conftest*
  9457. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  9458. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  9459. ;;
  9460. esac
  9461. fi
  9462. ;;
  9463. esac
  9464. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  9465. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  9466. library_names_spec=
  9467. libname_spec='lib$name'
  9468. soname_spec=
  9469. shrext_cmds=".so"
  9470. postinstall_cmds=
  9471. postuninstall_cmds=
  9472. finish_cmds=
  9473. finish_eval=
  9474. shlibpath_var=
  9475. shlibpath_overrides_runpath=unknown
  9476. version_type=none
  9477. dynamic_linker="$host_os ld.so"
  9478. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9479. if test "$GCC" = yes; then
  9480. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9481. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  9482. # if the path contains ";" then we assume it to be the separator
  9483. # otherwise default to the standard path separator (i.e. ":") - it is
  9484. # assumed that no part of a normal pathname contains ";" but that should
  9485. # okay in the real world where ";" in dirpaths is itself problematic.
  9486. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9487. else
  9488. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9489. fi
  9490. else
  9491. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9492. fi
  9493. need_lib_prefix=unknown
  9494. hardcode_into_libs=no
  9495. # when you set need_version to no, make sure it does not cause -set_version
  9496. # flags to be left without arguments
  9497. need_version=unknown
  9498. case $host_os in
  9499. aix3*)
  9500. version_type=linux
  9501. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9502. shlibpath_var=LIBPATH
  9503. # AIX 3 has no versioning support, so we append a major version to the name.
  9504. soname_spec='${libname}${release}${shared_ext}$major'
  9505. ;;
  9506. aix4* | aix5*)
  9507. version_type=linux
  9508. need_lib_prefix=no
  9509. need_version=no
  9510. hardcode_into_libs=yes
  9511. if test "$host_cpu" = ia64; then
  9512. # AIX 5 supports IA64
  9513. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9514. shlibpath_var=LD_LIBRARY_PATH
  9515. else
  9516. # With GCC up to 2.95.x, collect2 would create an import file
  9517. # for dependence libraries. The import file would start with
  9518. # the line `#! .'. This would cause the generated library to
  9519. # depend on `.', always an invalid library. This was fixed in
  9520. # development snapshots of GCC prior to 3.0.
  9521. case $host_os in
  9522. aix4 | aix4.[01] | aix4.[01].*)
  9523. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9524. echo ' yes '
  9525. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  9526. :
  9527. else
  9528. can_build_shared=no
  9529. fi
  9530. ;;
  9531. esac
  9532. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9533. # soname into executable. Probably we can add versioning support to
  9534. # collect2, so additional links can be useful in future.
  9535. if test "$aix_use_runtimelinking" = yes; then
  9536. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9537. # instead of lib<name>.a to let people know that these are not
  9538. # typical AIX shared libraries.
  9539. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9540. else
  9541. # We preserve .a as extension for shared libraries through AIX4.2
  9542. # and later when we are not doing run time linking.
  9543. library_names_spec='${libname}${release}.a $libname.a'
  9544. soname_spec='${libname}${release}${shared_ext}$major'
  9545. fi
  9546. shlibpath_var=LIBPATH
  9547. fi
  9548. ;;
  9549. amigaos*)
  9550. library_names_spec='$libname.ixlibrary $libname.a'
  9551. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9552. 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'
  9553. ;;
  9554. beos*)
  9555. library_names_spec='${libname}${shared_ext}'
  9556. dynamic_linker="$host_os ld.so"
  9557. shlibpath_var=LIBRARY_PATH
  9558. ;;
  9559. bsdi[45]*)
  9560. version_type=linux
  9561. need_version=no
  9562. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9563. soname_spec='${libname}${release}${shared_ext}$major'
  9564. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9565. shlibpath_var=LD_LIBRARY_PATH
  9566. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9567. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9568. # the default ld.so.conf also contains /usr/contrib/lib and
  9569. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9570. # libtool to hard-code these into programs
  9571. ;;
  9572. cygwin* | mingw* | pw32*)
  9573. version_type=windows
  9574. shrext_cmds=".dll"
  9575. need_version=no
  9576. need_lib_prefix=no
  9577. case $GCC,$host_os in
  9578. yes,cygwin* | yes,mingw* | yes,pw32*)
  9579. library_names_spec='$libname.dll.a'
  9580. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9581. postinstall_cmds='base_file=`basename \${file}`~
  9582. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  9583. dldir=$destdir/`dirname \$dlpath`~
  9584. test -d \$dldir || mkdir -p \$dldir~
  9585. $install_prog $dir/$dlname \$dldir/$dlname~
  9586. chmod a+x \$dldir/$dlname'
  9587. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9588. dlpath=$dir/\$dldll~
  9589. $rm \$dlpath'
  9590. shlibpath_overrides_runpath=yes
  9591. case $host_os in
  9592. cygwin*)
  9593. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9594. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9595. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9596. ;;
  9597. mingw*)
  9598. # MinGW DLLs use traditional 'lib' prefix
  9599. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9600. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9601. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  9602. # It is most probably a Windows format PATH printed by
  9603. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9604. # path with ; separators, and with drive letters. We can handle the
  9605. # drive letters (cygwin fileutils understands them), so leave them,
  9606. # especially as we might pass files found there to a mingw objdump,
  9607. # which wouldn't understand a cygwinified path. Ahh.
  9608. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9609. else
  9610. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9611. fi
  9612. ;;
  9613. pw32*)
  9614. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9615. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9616. ;;
  9617. esac
  9618. ;;
  9619. *)
  9620. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9621. ;;
  9622. esac
  9623. dynamic_linker='Win32 ld.exe'
  9624. # FIXME: first we should search . and the directory the executable is in
  9625. shlibpath_var=PATH
  9626. ;;
  9627. darwin* | rhapsody*)
  9628. dynamic_linker="$host_os dyld"
  9629. version_type=darwin
  9630. need_lib_prefix=no
  9631. need_version=no
  9632. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9633. soname_spec='${libname}${release}${major}$shared_ext'
  9634. shlibpath_overrides_runpath=yes
  9635. shlibpath_var=DYLD_LIBRARY_PATH
  9636. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9637. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  9638. if test "$GCC" = yes; then
  9639. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  9640. else
  9641. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  9642. fi
  9643. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9644. ;;
  9645. dgux*)
  9646. version_type=linux
  9647. need_lib_prefix=no
  9648. need_version=no
  9649. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9650. soname_spec='${libname}${release}${shared_ext}$major'
  9651. shlibpath_var=LD_LIBRARY_PATH
  9652. ;;
  9653. freebsd1*)
  9654. dynamic_linker=no
  9655. ;;
  9656. kfreebsd*-gnu)
  9657. version_type=linux
  9658. need_lib_prefix=no
  9659. need_version=no
  9660. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9661. soname_spec='${libname}${release}${shared_ext}$major'
  9662. shlibpath_var=LD_LIBRARY_PATH
  9663. shlibpath_overrides_runpath=no
  9664. hardcode_into_libs=yes
  9665. dynamic_linker='GNU ld.so'
  9666. ;;
  9667. freebsd* | dragonfly*)
  9668. # DragonFly does not have aout. When/if they implement a new
  9669. # versioning mechanism, adjust this.
  9670. if test -x /usr/bin/objformat; then
  9671. objformat=`/usr/bin/objformat`
  9672. else
  9673. case $host_os in
  9674. freebsd[123]*) objformat=aout ;;
  9675. *) objformat=elf ;;
  9676. esac
  9677. fi
  9678. version_type=freebsd-$objformat
  9679. case $version_type in
  9680. freebsd-elf*)
  9681. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9682. need_version=no
  9683. need_lib_prefix=no
  9684. ;;
  9685. freebsd-*)
  9686. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9687. need_version=yes
  9688. ;;
  9689. esac
  9690. shlibpath_var=LD_LIBRARY_PATH
  9691. case $host_os in
  9692. freebsd2*)
  9693. shlibpath_overrides_runpath=yes
  9694. ;;
  9695. freebsd3.[01]* | freebsdelf3.[01]*)
  9696. shlibpath_overrides_runpath=yes
  9697. hardcode_into_libs=yes
  9698. ;;
  9699. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9700. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9701. shlibpath_overrides_runpath=no
  9702. hardcode_into_libs=yes
  9703. ;;
  9704. freebsd*) # from 4.6 on
  9705. shlibpath_overrides_runpath=yes
  9706. hardcode_into_libs=yes
  9707. ;;
  9708. esac
  9709. ;;
  9710. gnu*)
  9711. version_type=linux
  9712. need_lib_prefix=no
  9713. need_version=no
  9714. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9715. soname_spec='${libname}${release}${shared_ext}$major'
  9716. shlibpath_var=LD_LIBRARY_PATH
  9717. hardcode_into_libs=yes
  9718. ;;
  9719. hpux9* | hpux10* | hpux11*)
  9720. # Give a soname corresponding to the major version so that dld.sl refuses to
  9721. # link against other versions.
  9722. version_type=sunos
  9723. need_lib_prefix=no
  9724. need_version=no
  9725. case $host_cpu in
  9726. ia64*)
  9727. shrext_cmds='.so'
  9728. hardcode_into_libs=yes
  9729. dynamic_linker="$host_os dld.so"
  9730. shlibpath_var=LD_LIBRARY_PATH
  9731. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9732. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9733. soname_spec='${libname}${release}${shared_ext}$major'
  9734. if test "X$HPUX_IA64_MODE" = X32; then
  9735. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9736. else
  9737. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9738. fi
  9739. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9740. ;;
  9741. hppa*64*)
  9742. shrext_cmds='.sl'
  9743. hardcode_into_libs=yes
  9744. dynamic_linker="$host_os dld.sl"
  9745. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9746. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9747. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9748. soname_spec='${libname}${release}${shared_ext}$major'
  9749. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9750. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9751. ;;
  9752. *)
  9753. shrext_cmds='.sl'
  9754. dynamic_linker="$host_os dld.sl"
  9755. shlibpath_var=SHLIB_PATH
  9756. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9757. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9758. soname_spec='${libname}${release}${shared_ext}$major'
  9759. ;;
  9760. esac
  9761. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9762. postinstall_cmds='chmod 555 $lib'
  9763. ;;
  9764. interix3*)
  9765. version_type=linux
  9766. need_lib_prefix=no
  9767. need_version=no
  9768. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9769. soname_spec='${libname}${release}${shared_ext}$major'
  9770. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9771. shlibpath_var=LD_LIBRARY_PATH
  9772. shlibpath_overrides_runpath=no
  9773. hardcode_into_libs=yes
  9774. ;;
  9775. irix5* | irix6* | nonstopux*)
  9776. case $host_os in
  9777. nonstopux*) version_type=nonstopux ;;
  9778. *)
  9779. if test "$lt_cv_prog_gnu_ld" = yes; then
  9780. version_type=linux
  9781. else
  9782. version_type=irix
  9783. fi ;;
  9784. esac
  9785. need_lib_prefix=no
  9786. need_version=no
  9787. soname_spec='${libname}${release}${shared_ext}$major'
  9788. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9789. case $host_os in
  9790. irix5* | nonstopux*)
  9791. libsuff= shlibsuff=
  9792. ;;
  9793. *)
  9794. case $LD in # libtool.m4 will add one of these switches to LD
  9795. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9796. libsuff= shlibsuff= libmagic=32-bit;;
  9797. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9798. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9799. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9800. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9801. *) libsuff= shlibsuff= libmagic=never-match;;
  9802. esac
  9803. ;;
  9804. esac
  9805. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9806. shlibpath_overrides_runpath=no
  9807. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9808. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9809. hardcode_into_libs=yes
  9810. ;;
  9811. # No shared lib support for Linux oldld, aout, or coff.
  9812. linux*oldld* | linux*aout* | linux*coff*)
  9813. dynamic_linker=no
  9814. ;;
  9815. # This must be Linux ELF.
  9816. linux*)
  9817. version_type=linux
  9818. need_lib_prefix=no
  9819. need_version=no
  9820. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9821. soname_spec='${libname}${release}${shared_ext}$major'
  9822. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9823. shlibpath_var=LD_LIBRARY_PATH
  9824. shlibpath_overrides_runpath=no
  9825. # This implies no fast_install, which is unacceptable.
  9826. # Some rework will be needed to allow for fast_install
  9827. # before this can be enabled.
  9828. hardcode_into_libs=yes
  9829. # Append ld.so.conf contents to the search path
  9830. if test -f /etc/ld.so.conf; then
  9831. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  9832. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9833. fi
  9834. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9835. # powerpc, because MkLinux only supported shared libraries with the
  9836. # GNU dynamic linker. Since this was broken with cross compilers,
  9837. # most powerpc-linux boxes support dynamic linking these days and
  9838. # people can always --disable-shared, the test was removed, and we
  9839. # assume the GNU/Linux dynamic linker is in use.
  9840. dynamic_linker='GNU/Linux ld.so'
  9841. ;;
  9842. knetbsd*-gnu)
  9843. version_type=linux
  9844. need_lib_prefix=no
  9845. need_version=no
  9846. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9847. soname_spec='${libname}${release}${shared_ext}$major'
  9848. shlibpath_var=LD_LIBRARY_PATH
  9849. shlibpath_overrides_runpath=no
  9850. hardcode_into_libs=yes
  9851. dynamic_linker='GNU ld.so'
  9852. ;;
  9853. netbsd*)
  9854. version_type=sunos
  9855. need_lib_prefix=no
  9856. need_version=no
  9857. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9858. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9859. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9860. dynamic_linker='NetBSD (a.out) ld.so'
  9861. else
  9862. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9863. soname_spec='${libname}${release}${shared_ext}$major'
  9864. dynamic_linker='NetBSD ld.elf_so'
  9865. fi
  9866. shlibpath_var=LD_LIBRARY_PATH
  9867. shlibpath_overrides_runpath=yes
  9868. hardcode_into_libs=yes
  9869. ;;
  9870. newsos6)
  9871. version_type=linux
  9872. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9873. shlibpath_var=LD_LIBRARY_PATH
  9874. shlibpath_overrides_runpath=yes
  9875. ;;
  9876. nto-qnx*)
  9877. version_type=linux
  9878. need_lib_prefix=no
  9879. need_version=no
  9880. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9881. soname_spec='${libname}${release}${shared_ext}$major'
  9882. shlibpath_var=LD_LIBRARY_PATH
  9883. shlibpath_overrides_runpath=yes
  9884. ;;
  9885. openbsd*)
  9886. version_type=sunos
  9887. sys_lib_dlsearch_path_spec="/usr/lib"
  9888. need_lib_prefix=no
  9889. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9890. case $host_os in
  9891. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9892. *) need_version=no ;;
  9893. esac
  9894. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9895. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9896. shlibpath_var=LD_LIBRARY_PATH
  9897. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9898. case $host_os in
  9899. openbsd2.[89] | openbsd2.[89].*)
  9900. shlibpath_overrides_runpath=no
  9901. ;;
  9902. *)
  9903. shlibpath_overrides_runpath=yes
  9904. ;;
  9905. esac
  9906. else
  9907. shlibpath_overrides_runpath=yes
  9908. fi
  9909. ;;
  9910. os2*)
  9911. libname_spec='$name'
  9912. shrext_cmds=".dll"
  9913. need_lib_prefix=no
  9914. library_names_spec='$libname${shared_ext} $libname.a'
  9915. dynamic_linker='OS/2 ld.exe'
  9916. shlibpath_var=LIBPATH
  9917. ;;
  9918. osf3* | osf4* | osf5*)
  9919. version_type=osf
  9920. need_lib_prefix=no
  9921. need_version=no
  9922. soname_spec='${libname}${release}${shared_ext}$major'
  9923. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9924. shlibpath_var=LD_LIBRARY_PATH
  9925. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9926. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9927. ;;
  9928. solaris*)
  9929. version_type=linux
  9930. need_lib_prefix=no
  9931. need_version=no
  9932. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9933. soname_spec='${libname}${release}${shared_ext}$major'
  9934. shlibpath_var=LD_LIBRARY_PATH
  9935. shlibpath_overrides_runpath=yes
  9936. hardcode_into_libs=yes
  9937. # ldd complains unless libraries are executable
  9938. postinstall_cmds='chmod +x $lib'
  9939. ;;
  9940. sunos4*)
  9941. version_type=sunos
  9942. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9943. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9944. shlibpath_var=LD_LIBRARY_PATH
  9945. shlibpath_overrides_runpath=yes
  9946. if test "$with_gnu_ld" = yes; then
  9947. need_lib_prefix=no
  9948. fi
  9949. need_version=yes
  9950. ;;
  9951. sysv4 | sysv4.3*)
  9952. version_type=linux
  9953. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9954. soname_spec='${libname}${release}${shared_ext}$major'
  9955. shlibpath_var=LD_LIBRARY_PATH
  9956. case $host_vendor in
  9957. sni)
  9958. shlibpath_overrides_runpath=no
  9959. need_lib_prefix=no
  9960. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9961. runpath_var=LD_RUN_PATH
  9962. ;;
  9963. siemens)
  9964. need_lib_prefix=no
  9965. ;;
  9966. motorola)
  9967. need_lib_prefix=no
  9968. need_version=no
  9969. shlibpath_overrides_runpath=no
  9970. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9971. ;;
  9972. esac
  9973. ;;
  9974. sysv4*MP*)
  9975. if test -d /usr/nec ;then
  9976. version_type=linux
  9977. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9978. soname_spec='$libname${shared_ext}.$major'
  9979. shlibpath_var=LD_LIBRARY_PATH
  9980. fi
  9981. ;;
  9982. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9983. version_type=freebsd-elf
  9984. need_lib_prefix=no
  9985. need_version=no
  9986. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9987. soname_spec='${libname}${release}${shared_ext}$major'
  9988. shlibpath_var=LD_LIBRARY_PATH
  9989. hardcode_into_libs=yes
  9990. if test "$with_gnu_ld" = yes; then
  9991. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9992. shlibpath_overrides_runpath=no
  9993. else
  9994. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9995. shlibpath_overrides_runpath=yes
  9996. case $host_os in
  9997. sco3.2v5*)
  9998. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9999. ;;
  10000. esac
  10001. fi
  10002. sys_lib_dlsearch_path_spec='/usr/lib'
  10003. ;;
  10004. uts4*)
  10005. version_type=linux
  10006. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10007. soname_spec='${libname}${release}${shared_ext}$major'
  10008. shlibpath_var=LD_LIBRARY_PATH
  10009. ;;
  10010. *)
  10011. dynamic_linker=no
  10012. ;;
  10013. esac
  10014. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  10015. echo "${ECHO_T}$dynamic_linker" >&6; }
  10016. test "$dynamic_linker" = no && can_build_shared=no
  10017. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10018. if test "$GCC" = yes; then
  10019. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10020. fi
  10021. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  10022. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  10023. hardcode_action=
  10024. if test -n "$hardcode_libdir_flag_spec" || \
  10025. test -n "$runpath_var" || \
  10026. test "X$hardcode_automatic" = "Xyes" ; then
  10027. # We can hardcode non-existant directories.
  10028. if test "$hardcode_direct" != no &&
  10029. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10030. # have to relink, otherwise we might link with an installed library
  10031. # when we should be linking with a yet-to-be-installed one
  10032. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10033. test "$hardcode_minus_L" != no; then
  10034. # Linking always hardcodes the temporary library directory.
  10035. hardcode_action=relink
  10036. else
  10037. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10038. hardcode_action=immediate
  10039. fi
  10040. else
  10041. # We cannot hardcode anything, or else we can only hardcode existing
  10042. # directories.
  10043. hardcode_action=unsupported
  10044. fi
  10045. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  10046. echo "${ECHO_T}$hardcode_action" >&6; }
  10047. if test "$hardcode_action" = relink; then
  10048. # Fast installation is not supported
  10049. enable_fast_install=no
  10050. elif test "$shlibpath_overrides_runpath" = yes ||
  10051. test "$enable_shared" = no; then
  10052. # Fast installation is not necessary
  10053. enable_fast_install=needless
  10054. fi
  10055. striplib=
  10056. old_striplib=
  10057. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  10058. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  10059. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  10060. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10061. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10062. { echo "$as_me:$LINENO: result: yes" >&5
  10063. echo "${ECHO_T}yes" >&6; }
  10064. else
  10065. # FIXME - insert some real tests, host_os isn't really good enough
  10066. case $host_os in
  10067. darwin*)
  10068. if test -n "$STRIP" ; then
  10069. striplib="$STRIP -x"
  10070. { echo "$as_me:$LINENO: result: yes" >&5
  10071. echo "${ECHO_T}yes" >&6; }
  10072. else
  10073. { echo "$as_me:$LINENO: result: no" >&5
  10074. echo "${ECHO_T}no" >&6; }
  10075. fi
  10076. ;;
  10077. *)
  10078. { echo "$as_me:$LINENO: result: no" >&5
  10079. echo "${ECHO_T}no" >&6; }
  10080. ;;
  10081. esac
  10082. fi
  10083. if test "x$enable_dlopen" != xyes; then
  10084. enable_dlopen=unknown
  10085. enable_dlopen_self=unknown
  10086. enable_dlopen_self_static=unknown
  10087. else
  10088. lt_cv_dlopen=no
  10089. lt_cv_dlopen_libs=
  10090. case $host_os in
  10091. beos*)
  10092. lt_cv_dlopen="load_add_on"
  10093. lt_cv_dlopen_libs=
  10094. lt_cv_dlopen_self=yes
  10095. ;;
  10096. mingw* | pw32*)
  10097. lt_cv_dlopen="LoadLibrary"
  10098. lt_cv_dlopen_libs=
  10099. ;;
  10100. cygwin*)
  10101. lt_cv_dlopen="dlopen"
  10102. lt_cv_dlopen_libs=
  10103. ;;
  10104. darwin*)
  10105. # if libdl is installed we need to link against it
  10106. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10107. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  10108. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10109. echo $ECHO_N "(cached) $ECHO_C" >&6
  10110. else
  10111. ac_check_lib_save_LIBS=$LIBS
  10112. LIBS="-ldl $LIBS"
  10113. cat >conftest.$ac_ext <<_ACEOF
  10114. /* confdefs.h. */
  10115. _ACEOF
  10116. cat confdefs.h >>conftest.$ac_ext
  10117. cat >>conftest.$ac_ext <<_ACEOF
  10118. /* end confdefs.h. */
  10119. /* Override any GCC internal prototype to avoid an error.
  10120. Use char because int might match the return type of a GCC
  10121. builtin and then its argument prototype would still apply. */
  10122. #ifdef __cplusplus
  10123. extern "C"
  10124. #endif
  10125. char dlopen ();
  10126. int
  10127. main ()
  10128. {
  10129. return dlopen ();
  10130. ;
  10131. return 0;
  10132. }
  10133. _ACEOF
  10134. rm -f conftest.$ac_objext conftest$ac_exeext
  10135. if { (ac_try="$ac_link"
  10136. case "(($ac_try" in
  10137. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10138. *) ac_try_echo=$ac_try;;
  10139. esac
  10140. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10141. (eval "$ac_link") 2>conftest.er1
  10142. ac_status=$?
  10143. grep -v '^ *+' conftest.er1 >conftest.err
  10144. rm -f conftest.er1
  10145. cat conftest.err >&5
  10146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10147. (exit $ac_status); } && {
  10148. test -z "$ac_c_werror_flag" ||
  10149. test ! -s conftest.err
  10150. } && test -s conftest$ac_exeext &&
  10151. $as_test_x conftest$ac_exeext; then
  10152. ac_cv_lib_dl_dlopen=yes
  10153. else
  10154. echo "$as_me: failed program was:" >&5
  10155. sed 's/^/| /' conftest.$ac_ext >&5
  10156. ac_cv_lib_dl_dlopen=no
  10157. fi
  10158. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10159. conftest$ac_exeext conftest.$ac_ext
  10160. LIBS=$ac_check_lib_save_LIBS
  10161. fi
  10162. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10163. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  10164. if test $ac_cv_lib_dl_dlopen = yes; then
  10165. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10166. else
  10167. lt_cv_dlopen="dyld"
  10168. lt_cv_dlopen_libs=
  10169. lt_cv_dlopen_self=yes
  10170. fi
  10171. ;;
  10172. *)
  10173. { echo "$as_me:$LINENO: checking for shl_load" >&5
  10174. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  10175. if test "${ac_cv_func_shl_load+set}" = set; then
  10176. echo $ECHO_N "(cached) $ECHO_C" >&6
  10177. else
  10178. cat >conftest.$ac_ext <<_ACEOF
  10179. /* confdefs.h. */
  10180. _ACEOF
  10181. cat confdefs.h >>conftest.$ac_ext
  10182. cat >>conftest.$ac_ext <<_ACEOF
  10183. /* end confdefs.h. */
  10184. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  10185. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10186. #define shl_load innocuous_shl_load
  10187. /* System header to define __stub macros and hopefully few prototypes,
  10188. which can conflict with char shl_load (); below.
  10189. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10190. <limits.h> exists even on freestanding compilers. */
  10191. #ifdef __STDC__
  10192. # include <limits.h>
  10193. #else
  10194. # include <assert.h>
  10195. #endif
  10196. #undef shl_load
  10197. /* Override any GCC internal prototype to avoid an error.
  10198. Use char because int might match the return type of a GCC
  10199. builtin and then its argument prototype would still apply. */
  10200. #ifdef __cplusplus
  10201. extern "C"
  10202. #endif
  10203. char shl_load ();
  10204. /* The GNU C library defines this for functions which it implements
  10205. to always fail with ENOSYS. Some functions are actually named
  10206. something starting with __ and the normal name is an alias. */
  10207. #if defined __stub_shl_load || defined __stub___shl_load
  10208. choke me
  10209. #endif
  10210. int
  10211. main ()
  10212. {
  10213. return shl_load ();
  10214. ;
  10215. return 0;
  10216. }
  10217. _ACEOF
  10218. rm -f conftest.$ac_objext conftest$ac_exeext
  10219. if { (ac_try="$ac_link"
  10220. case "(($ac_try" in
  10221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10222. *) ac_try_echo=$ac_try;;
  10223. esac
  10224. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10225. (eval "$ac_link") 2>conftest.er1
  10226. ac_status=$?
  10227. grep -v '^ *+' conftest.er1 >conftest.err
  10228. rm -f conftest.er1
  10229. cat conftest.err >&5
  10230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10231. (exit $ac_status); } && {
  10232. test -z "$ac_c_werror_flag" ||
  10233. test ! -s conftest.err
  10234. } && test -s conftest$ac_exeext &&
  10235. $as_test_x conftest$ac_exeext; then
  10236. ac_cv_func_shl_load=yes
  10237. else
  10238. echo "$as_me: failed program was:" >&5
  10239. sed 's/^/| /' conftest.$ac_ext >&5
  10240. ac_cv_func_shl_load=no
  10241. fi
  10242. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10243. conftest$ac_exeext conftest.$ac_ext
  10244. fi
  10245. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  10246. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  10247. if test $ac_cv_func_shl_load = yes; then
  10248. lt_cv_dlopen="shl_load"
  10249. else
  10250. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  10251. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  10252. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  10253. echo $ECHO_N "(cached) $ECHO_C" >&6
  10254. else
  10255. ac_check_lib_save_LIBS=$LIBS
  10256. LIBS="-ldld $LIBS"
  10257. cat >conftest.$ac_ext <<_ACEOF
  10258. /* confdefs.h. */
  10259. _ACEOF
  10260. cat confdefs.h >>conftest.$ac_ext
  10261. cat >>conftest.$ac_ext <<_ACEOF
  10262. /* end confdefs.h. */
  10263. /* Override any GCC internal prototype to avoid an error.
  10264. Use char because int might match the return type of a GCC
  10265. builtin and then its argument prototype would still apply. */
  10266. #ifdef __cplusplus
  10267. extern "C"
  10268. #endif
  10269. char shl_load ();
  10270. int
  10271. main ()
  10272. {
  10273. return shl_load ();
  10274. ;
  10275. return 0;
  10276. }
  10277. _ACEOF
  10278. rm -f conftest.$ac_objext conftest$ac_exeext
  10279. if { (ac_try="$ac_link"
  10280. case "(($ac_try" in
  10281. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10282. *) ac_try_echo=$ac_try;;
  10283. esac
  10284. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10285. (eval "$ac_link") 2>conftest.er1
  10286. ac_status=$?
  10287. grep -v '^ *+' conftest.er1 >conftest.err
  10288. rm -f conftest.er1
  10289. cat conftest.err >&5
  10290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10291. (exit $ac_status); } && {
  10292. test -z "$ac_c_werror_flag" ||
  10293. test ! -s conftest.err
  10294. } && test -s conftest$ac_exeext &&
  10295. $as_test_x conftest$ac_exeext; then
  10296. ac_cv_lib_dld_shl_load=yes
  10297. else
  10298. echo "$as_me: failed program was:" >&5
  10299. sed 's/^/| /' conftest.$ac_ext >&5
  10300. ac_cv_lib_dld_shl_load=no
  10301. fi
  10302. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10303. conftest$ac_exeext conftest.$ac_ext
  10304. LIBS=$ac_check_lib_save_LIBS
  10305. fi
  10306. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  10307. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  10308. if test $ac_cv_lib_dld_shl_load = yes; then
  10309. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  10310. else
  10311. { echo "$as_me:$LINENO: checking for dlopen" >&5
  10312. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  10313. if test "${ac_cv_func_dlopen+set}" = set; then
  10314. echo $ECHO_N "(cached) $ECHO_C" >&6
  10315. else
  10316. cat >conftest.$ac_ext <<_ACEOF
  10317. /* confdefs.h. */
  10318. _ACEOF
  10319. cat confdefs.h >>conftest.$ac_ext
  10320. cat >>conftest.$ac_ext <<_ACEOF
  10321. /* end confdefs.h. */
  10322. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  10323. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10324. #define dlopen innocuous_dlopen
  10325. /* System header to define __stub macros and hopefully few prototypes,
  10326. which can conflict with char dlopen (); below.
  10327. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10328. <limits.h> exists even on freestanding compilers. */
  10329. #ifdef __STDC__
  10330. # include <limits.h>
  10331. #else
  10332. # include <assert.h>
  10333. #endif
  10334. #undef dlopen
  10335. /* Override any GCC internal prototype to avoid an error.
  10336. Use char because int might match the return type of a GCC
  10337. builtin and then its argument prototype would still apply. */
  10338. #ifdef __cplusplus
  10339. extern "C"
  10340. #endif
  10341. char dlopen ();
  10342. /* The GNU C library defines this for functions which it implements
  10343. to always fail with ENOSYS. Some functions are actually named
  10344. something starting with __ and the normal name is an alias. */
  10345. #if defined __stub_dlopen || defined __stub___dlopen
  10346. choke me
  10347. #endif
  10348. int
  10349. main ()
  10350. {
  10351. return dlopen ();
  10352. ;
  10353. return 0;
  10354. }
  10355. _ACEOF
  10356. rm -f conftest.$ac_objext conftest$ac_exeext
  10357. if { (ac_try="$ac_link"
  10358. case "(($ac_try" in
  10359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10360. *) ac_try_echo=$ac_try;;
  10361. esac
  10362. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10363. (eval "$ac_link") 2>conftest.er1
  10364. ac_status=$?
  10365. grep -v '^ *+' conftest.er1 >conftest.err
  10366. rm -f conftest.er1
  10367. cat conftest.err >&5
  10368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10369. (exit $ac_status); } && {
  10370. test -z "$ac_c_werror_flag" ||
  10371. test ! -s conftest.err
  10372. } && test -s conftest$ac_exeext &&
  10373. $as_test_x conftest$ac_exeext; then
  10374. ac_cv_func_dlopen=yes
  10375. else
  10376. echo "$as_me: failed program was:" >&5
  10377. sed 's/^/| /' conftest.$ac_ext >&5
  10378. ac_cv_func_dlopen=no
  10379. fi
  10380. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10381. conftest$ac_exeext conftest.$ac_ext
  10382. fi
  10383. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  10384. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  10385. if test $ac_cv_func_dlopen = yes; then
  10386. lt_cv_dlopen="dlopen"
  10387. else
  10388. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10389. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  10390. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10391. echo $ECHO_N "(cached) $ECHO_C" >&6
  10392. else
  10393. ac_check_lib_save_LIBS=$LIBS
  10394. LIBS="-ldl $LIBS"
  10395. cat >conftest.$ac_ext <<_ACEOF
  10396. /* confdefs.h. */
  10397. _ACEOF
  10398. cat confdefs.h >>conftest.$ac_ext
  10399. cat >>conftest.$ac_ext <<_ACEOF
  10400. /* end confdefs.h. */
  10401. /* Override any GCC internal prototype to avoid an error.
  10402. Use char because int might match the return type of a GCC
  10403. builtin and then its argument prototype would still apply. */
  10404. #ifdef __cplusplus
  10405. extern "C"
  10406. #endif
  10407. char dlopen ();
  10408. int
  10409. main ()
  10410. {
  10411. return dlopen ();
  10412. ;
  10413. return 0;
  10414. }
  10415. _ACEOF
  10416. rm -f conftest.$ac_objext conftest$ac_exeext
  10417. if { (ac_try="$ac_link"
  10418. case "(($ac_try" in
  10419. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10420. *) ac_try_echo=$ac_try;;
  10421. esac
  10422. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10423. (eval "$ac_link") 2>conftest.er1
  10424. ac_status=$?
  10425. grep -v '^ *+' conftest.er1 >conftest.err
  10426. rm -f conftest.er1
  10427. cat conftest.err >&5
  10428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10429. (exit $ac_status); } && {
  10430. test -z "$ac_c_werror_flag" ||
  10431. test ! -s conftest.err
  10432. } && test -s conftest$ac_exeext &&
  10433. $as_test_x conftest$ac_exeext; then
  10434. ac_cv_lib_dl_dlopen=yes
  10435. else
  10436. echo "$as_me: failed program was:" >&5
  10437. sed 's/^/| /' conftest.$ac_ext >&5
  10438. ac_cv_lib_dl_dlopen=no
  10439. fi
  10440. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10441. conftest$ac_exeext conftest.$ac_ext
  10442. LIBS=$ac_check_lib_save_LIBS
  10443. fi
  10444. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10445. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  10446. if test $ac_cv_lib_dl_dlopen = yes; then
  10447. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10448. else
  10449. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  10450. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  10451. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  10452. echo $ECHO_N "(cached) $ECHO_C" >&6
  10453. else
  10454. ac_check_lib_save_LIBS=$LIBS
  10455. LIBS="-lsvld $LIBS"
  10456. cat >conftest.$ac_ext <<_ACEOF
  10457. /* confdefs.h. */
  10458. _ACEOF
  10459. cat confdefs.h >>conftest.$ac_ext
  10460. cat >>conftest.$ac_ext <<_ACEOF
  10461. /* end confdefs.h. */
  10462. /* Override any GCC internal prototype to avoid an error.
  10463. Use char because int might match the return type of a GCC
  10464. builtin and then its argument prototype would still apply. */
  10465. #ifdef __cplusplus
  10466. extern "C"
  10467. #endif
  10468. char dlopen ();
  10469. int
  10470. main ()
  10471. {
  10472. return dlopen ();
  10473. ;
  10474. return 0;
  10475. }
  10476. _ACEOF
  10477. rm -f conftest.$ac_objext conftest$ac_exeext
  10478. if { (ac_try="$ac_link"
  10479. case "(($ac_try" in
  10480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10481. *) ac_try_echo=$ac_try;;
  10482. esac
  10483. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10484. (eval "$ac_link") 2>conftest.er1
  10485. ac_status=$?
  10486. grep -v '^ *+' conftest.er1 >conftest.err
  10487. rm -f conftest.er1
  10488. cat conftest.err >&5
  10489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10490. (exit $ac_status); } && {
  10491. test -z "$ac_c_werror_flag" ||
  10492. test ! -s conftest.err
  10493. } && test -s conftest$ac_exeext &&
  10494. $as_test_x conftest$ac_exeext; then
  10495. ac_cv_lib_svld_dlopen=yes
  10496. else
  10497. echo "$as_me: failed program was:" >&5
  10498. sed 's/^/| /' conftest.$ac_ext >&5
  10499. ac_cv_lib_svld_dlopen=no
  10500. fi
  10501. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10502. conftest$ac_exeext conftest.$ac_ext
  10503. LIBS=$ac_check_lib_save_LIBS
  10504. fi
  10505. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  10506. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  10507. if test $ac_cv_lib_svld_dlopen = yes; then
  10508. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10509. else
  10510. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  10511. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  10512. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  10513. echo $ECHO_N "(cached) $ECHO_C" >&6
  10514. else
  10515. ac_check_lib_save_LIBS=$LIBS
  10516. LIBS="-ldld $LIBS"
  10517. cat >conftest.$ac_ext <<_ACEOF
  10518. /* confdefs.h. */
  10519. _ACEOF
  10520. cat confdefs.h >>conftest.$ac_ext
  10521. cat >>conftest.$ac_ext <<_ACEOF
  10522. /* end confdefs.h. */
  10523. /* Override any GCC internal prototype to avoid an error.
  10524. Use char because int might match the return type of a GCC
  10525. builtin and then its argument prototype would still apply. */
  10526. #ifdef __cplusplus
  10527. extern "C"
  10528. #endif
  10529. char dld_link ();
  10530. int
  10531. main ()
  10532. {
  10533. return dld_link ();
  10534. ;
  10535. return 0;
  10536. }
  10537. _ACEOF
  10538. rm -f conftest.$ac_objext conftest$ac_exeext
  10539. if { (ac_try="$ac_link"
  10540. case "(($ac_try" in
  10541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10542. *) ac_try_echo=$ac_try;;
  10543. esac
  10544. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10545. (eval "$ac_link") 2>conftest.er1
  10546. ac_status=$?
  10547. grep -v '^ *+' conftest.er1 >conftest.err
  10548. rm -f conftest.er1
  10549. cat conftest.err >&5
  10550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10551. (exit $ac_status); } && {
  10552. test -z "$ac_c_werror_flag" ||
  10553. test ! -s conftest.err
  10554. } && test -s conftest$ac_exeext &&
  10555. $as_test_x conftest$ac_exeext; then
  10556. ac_cv_lib_dld_dld_link=yes
  10557. else
  10558. echo "$as_me: failed program was:" >&5
  10559. sed 's/^/| /' conftest.$ac_ext >&5
  10560. ac_cv_lib_dld_dld_link=no
  10561. fi
  10562. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10563. conftest$ac_exeext conftest.$ac_ext
  10564. LIBS=$ac_check_lib_save_LIBS
  10565. fi
  10566. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  10567. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  10568. if test $ac_cv_lib_dld_dld_link = yes; then
  10569. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  10570. fi
  10571. fi
  10572. fi
  10573. fi
  10574. fi
  10575. fi
  10576. ;;
  10577. esac
  10578. if test "x$lt_cv_dlopen" != xno; then
  10579. enable_dlopen=yes
  10580. else
  10581. enable_dlopen=no
  10582. fi
  10583. case $lt_cv_dlopen in
  10584. dlopen)
  10585. save_CPPFLAGS="$CPPFLAGS"
  10586. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10587. save_LDFLAGS="$LDFLAGS"
  10588. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10589. save_LIBS="$LIBS"
  10590. LIBS="$lt_cv_dlopen_libs $LIBS"
  10591. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  10592. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  10593. if test "${lt_cv_dlopen_self+set}" = set; then
  10594. echo $ECHO_N "(cached) $ECHO_C" >&6
  10595. else
  10596. if test "$cross_compiling" = yes; then :
  10597. lt_cv_dlopen_self=cross
  10598. else
  10599. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10600. lt_status=$lt_dlunknown
  10601. cat > conftest.$ac_ext <<EOF
  10602. #line 11818 "configure"
  10603. #include "confdefs.h"
  10604. #if HAVE_DLFCN_H
  10605. #include <dlfcn.h>
  10606. #endif
  10607. #include <stdio.h>
  10608. #ifdef RTLD_GLOBAL
  10609. # define LT_DLGLOBAL RTLD_GLOBAL
  10610. #else
  10611. # ifdef DL_GLOBAL
  10612. # define LT_DLGLOBAL DL_GLOBAL
  10613. # else
  10614. # define LT_DLGLOBAL 0
  10615. # endif
  10616. #endif
  10617. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10618. find out it does not work in some platform. */
  10619. #ifndef LT_DLLAZY_OR_NOW
  10620. # ifdef RTLD_LAZY
  10621. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10622. # else
  10623. # ifdef DL_LAZY
  10624. # define LT_DLLAZY_OR_NOW DL_LAZY
  10625. # else
  10626. # ifdef RTLD_NOW
  10627. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10628. # else
  10629. # ifdef DL_NOW
  10630. # define LT_DLLAZY_OR_NOW DL_NOW
  10631. # else
  10632. # define LT_DLLAZY_OR_NOW 0
  10633. # endif
  10634. # endif
  10635. # endif
  10636. # endif
  10637. #endif
  10638. #ifdef __cplusplus
  10639. extern "C" void exit (int);
  10640. #endif
  10641. void fnord() { int i=42;}
  10642. int main ()
  10643. {
  10644. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10645. int status = $lt_dlunknown;
  10646. if (self)
  10647. {
  10648. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10649. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10650. /* dlclose (self); */
  10651. }
  10652. else
  10653. puts (dlerror ());
  10654. exit (status);
  10655. }
  10656. EOF
  10657. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10658. (eval $ac_link) 2>&5
  10659. ac_status=$?
  10660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10661. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10662. (./conftest; exit; ) >&5 2>/dev/null
  10663. lt_status=$?
  10664. case x$lt_status in
  10665. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10666. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10667. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10668. esac
  10669. else :
  10670. # compilation failed
  10671. lt_cv_dlopen_self=no
  10672. fi
  10673. fi
  10674. rm -fr conftest*
  10675. fi
  10676. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  10677. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  10678. if test "x$lt_cv_dlopen_self" = xyes; then
  10679. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10680. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  10681. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  10682. if test "${lt_cv_dlopen_self_static+set}" = set; then
  10683. echo $ECHO_N "(cached) $ECHO_C" >&6
  10684. else
  10685. if test "$cross_compiling" = yes; then :
  10686. lt_cv_dlopen_self_static=cross
  10687. else
  10688. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10689. lt_status=$lt_dlunknown
  10690. cat > conftest.$ac_ext <<EOF
  10691. #line 11918 "configure"
  10692. #include "confdefs.h"
  10693. #if HAVE_DLFCN_H
  10694. #include <dlfcn.h>
  10695. #endif
  10696. #include <stdio.h>
  10697. #ifdef RTLD_GLOBAL
  10698. # define LT_DLGLOBAL RTLD_GLOBAL
  10699. #else
  10700. # ifdef DL_GLOBAL
  10701. # define LT_DLGLOBAL DL_GLOBAL
  10702. # else
  10703. # define LT_DLGLOBAL 0
  10704. # endif
  10705. #endif
  10706. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10707. find out it does not work in some platform. */
  10708. #ifndef LT_DLLAZY_OR_NOW
  10709. # ifdef RTLD_LAZY
  10710. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10711. # else
  10712. # ifdef DL_LAZY
  10713. # define LT_DLLAZY_OR_NOW DL_LAZY
  10714. # else
  10715. # ifdef RTLD_NOW
  10716. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10717. # else
  10718. # ifdef DL_NOW
  10719. # define LT_DLLAZY_OR_NOW DL_NOW
  10720. # else
  10721. # define LT_DLLAZY_OR_NOW 0
  10722. # endif
  10723. # endif
  10724. # endif
  10725. # endif
  10726. #endif
  10727. #ifdef __cplusplus
  10728. extern "C" void exit (int);
  10729. #endif
  10730. void fnord() { int i=42;}
  10731. int main ()
  10732. {
  10733. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10734. int status = $lt_dlunknown;
  10735. if (self)
  10736. {
  10737. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10738. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10739. /* dlclose (self); */
  10740. }
  10741. else
  10742. puts (dlerror ());
  10743. exit (status);
  10744. }
  10745. EOF
  10746. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10747. (eval $ac_link) 2>&5
  10748. ac_status=$?
  10749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10750. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10751. (./conftest; exit; ) >&5 2>/dev/null
  10752. lt_status=$?
  10753. case x$lt_status in
  10754. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10755. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10756. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10757. esac
  10758. else :
  10759. # compilation failed
  10760. lt_cv_dlopen_self_static=no
  10761. fi
  10762. fi
  10763. rm -fr conftest*
  10764. fi
  10765. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  10766. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  10767. fi
  10768. CPPFLAGS="$save_CPPFLAGS"
  10769. LDFLAGS="$save_LDFLAGS"
  10770. LIBS="$save_LIBS"
  10771. ;;
  10772. esac
  10773. case $lt_cv_dlopen_self in
  10774. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10775. *) enable_dlopen_self=unknown ;;
  10776. esac
  10777. case $lt_cv_dlopen_self_static in
  10778. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10779. *) enable_dlopen_self_static=unknown ;;
  10780. esac
  10781. fi
  10782. # Report which library types will actually be built
  10783. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  10784. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  10785. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  10786. echo "${ECHO_T}$can_build_shared" >&6; }
  10787. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  10788. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  10789. test "$can_build_shared" = "no" && enable_shared=no
  10790. # On AIX, shared libraries and static libraries use the same namespace, and
  10791. # are all built from PIC.
  10792. case $host_os in
  10793. aix3*)
  10794. test "$enable_shared" = yes && enable_static=no
  10795. if test -n "$RANLIB"; then
  10796. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10797. postinstall_cmds='$RANLIB $lib'
  10798. fi
  10799. ;;
  10800. aix4* | aix5*)
  10801. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10802. test "$enable_shared" = yes && enable_static=no
  10803. fi
  10804. ;;
  10805. esac
  10806. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  10807. echo "${ECHO_T}$enable_shared" >&6; }
  10808. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  10809. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  10810. # Make sure either enable_shared or enable_static is yes.
  10811. test "$enable_shared" = yes || enable_static=yes
  10812. { echo "$as_me:$LINENO: result: $enable_static" >&5
  10813. echo "${ECHO_T}$enable_static" >&6; }
  10814. # The else clause should only fire when bootstrapping the
  10815. # libtool distribution, otherwise you forgot to ship ltmain.sh
  10816. # with your package, and you will get complaints that there are
  10817. # no rules to generate ltmain.sh.
  10818. if test -f "$ltmain"; then
  10819. # See if we are running on zsh, and set the options which allow our commands through
  10820. # without removal of \ escapes.
  10821. if test -n "${ZSH_VERSION+set}" ; then
  10822. setopt NO_GLOB_SUBST
  10823. fi
  10824. # Now quote all the things that may contain metacharacters while being
  10825. # careful not to overquote the AC_SUBSTed values. We take copies of the
  10826. # variables and quote the copies for generation of the libtool script.
  10827. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  10828. SED SHELL STRIP \
  10829. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  10830. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  10831. deplibs_check_method reload_flag reload_cmds need_locks \
  10832. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  10833. lt_cv_sys_global_symbol_to_c_name_address \
  10834. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  10835. old_postinstall_cmds old_postuninstall_cmds \
  10836. compiler \
  10837. CC \
  10838. LD \
  10839. lt_prog_compiler_wl \
  10840. lt_prog_compiler_pic \
  10841. lt_prog_compiler_static \
  10842. lt_prog_compiler_no_builtin_flag \
  10843. export_dynamic_flag_spec \
  10844. thread_safe_flag_spec \
  10845. whole_archive_flag_spec \
  10846. enable_shared_with_static_runtimes \
  10847. old_archive_cmds \
  10848. old_archive_from_new_cmds \
  10849. predep_objects \
  10850. postdep_objects \
  10851. predeps \
  10852. postdeps \
  10853. compiler_lib_search_path \
  10854. archive_cmds \
  10855. archive_expsym_cmds \
  10856. postinstall_cmds \
  10857. postuninstall_cmds \
  10858. old_archive_from_expsyms_cmds \
  10859. allow_undefined_flag \
  10860. no_undefined_flag \
  10861. export_symbols_cmds \
  10862. hardcode_libdir_flag_spec \
  10863. hardcode_libdir_flag_spec_ld \
  10864. hardcode_libdir_separator \
  10865. hardcode_automatic \
  10866. module_cmds \
  10867. module_expsym_cmds \
  10868. lt_cv_prog_compiler_c_o \
  10869. exclude_expsyms \
  10870. include_expsyms; do
  10871. case $var in
  10872. old_archive_cmds | \
  10873. old_archive_from_new_cmds | \
  10874. archive_cmds | \
  10875. archive_expsym_cmds | \
  10876. module_cmds | \
  10877. module_expsym_cmds | \
  10878. old_archive_from_expsyms_cmds | \
  10879. export_symbols_cmds | \
  10880. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  10881. postinstall_cmds | postuninstall_cmds | \
  10882. old_postinstall_cmds | old_postuninstall_cmds | \
  10883. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  10884. # Double-quote double-evaled strings.
  10885. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  10886. ;;
  10887. *)
  10888. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  10889. ;;
  10890. esac
  10891. done
  10892. case $lt_echo in
  10893. *'\$0 --fallback-echo"')
  10894. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  10895. ;;
  10896. esac
  10897. cfgfile="${ofile}T"
  10898. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  10899. $rm -f "$cfgfile"
  10900. { echo "$as_me:$LINENO: creating $ofile" >&5
  10901. echo "$as_me: creating $ofile" >&6;}
  10902. cat <<__EOF__ >> "$cfgfile"
  10903. #! $SHELL
  10904. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  10905. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  10906. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  10907. #
  10908. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  10909. # Free Software Foundation, Inc.
  10910. #
  10911. # This file is part of GNU Libtool:
  10912. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  10913. #
  10914. # This program is free software; you can redistribute it and/or modify
  10915. # it under the terms of the GNU General Public License as published by
  10916. # the Free Software Foundation; either version 2 of the License, or
  10917. # (at your option) any later version.
  10918. #
  10919. # This program is distributed in the hope that it will be useful, but
  10920. # WITHOUT ANY WARRANTY; without even the implied warranty of
  10921. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10922. # General Public License for more details.
  10923. #
  10924. # You should have received a copy of the GNU General Public License
  10925. # along with this program; if not, write to the Free Software
  10926. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  10927. #
  10928. # As a special exception to the GNU General Public License, if you
  10929. # distribute this file as part of a program that contains a
  10930. # configuration script generated by Autoconf, you may include it under
  10931. # the same distribution terms that you use for the rest of that program.
  10932. # A sed program that does not truncate output.
  10933. SED=$lt_SED
  10934. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  10935. Xsed="$SED -e 1s/^X//"
  10936. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10937. # if CDPATH is set.
  10938. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10939. # The names of the tagged configurations supported by this script.
  10940. available_tags=
  10941. # ### BEGIN LIBTOOL CONFIG
  10942. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  10943. # Shell to use when invoking shell scripts.
  10944. SHELL=$lt_SHELL
  10945. # Whether or not to build shared libraries.
  10946. build_libtool_libs=$enable_shared
  10947. # Whether or not to build static libraries.
  10948. build_old_libs=$enable_static
  10949. # Whether or not to add -lc for building shared libraries.
  10950. build_libtool_need_lc=$archive_cmds_need_lc
  10951. # Whether or not to disallow shared libs when runtime libs are static
  10952. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  10953. # Whether or not to optimize for fast installation.
  10954. fast_install=$enable_fast_install
  10955. # The host system.
  10956. host_alias=$host_alias
  10957. host=$host
  10958. host_os=$host_os
  10959. # The build system.
  10960. build_alias=$build_alias
  10961. build=$build
  10962. build_os=$build_os
  10963. # An echo program that does not interpret backslashes.
  10964. echo=$lt_echo
  10965. # The archiver.
  10966. AR=$lt_AR
  10967. AR_FLAGS=$lt_AR_FLAGS
  10968. # A C compiler.
  10969. LTCC=$lt_LTCC
  10970. # LTCC compiler flags.
  10971. LTCFLAGS=$lt_LTCFLAGS
  10972. # A language-specific compiler.
  10973. CC=$lt_compiler
  10974. # Is the compiler the GNU C compiler?
  10975. with_gcc=$GCC
  10976. # An ERE matcher.
  10977. EGREP=$lt_EGREP
  10978. # The linker used to build libraries.
  10979. LD=$lt_LD
  10980. # Whether we need hard or soft links.
  10981. LN_S=$lt_LN_S
  10982. # A BSD-compatible nm program.
  10983. NM=$lt_NM
  10984. # A symbol stripping program
  10985. STRIP=$lt_STRIP
  10986. # Used to examine libraries when file_magic_cmd begins "file"
  10987. MAGIC_CMD=$MAGIC_CMD
  10988. # Used on cygwin: DLL creation program.
  10989. DLLTOOL="$DLLTOOL"
  10990. # Used on cygwin: object dumper.
  10991. OBJDUMP="$OBJDUMP"
  10992. # Used on cygwin: assembler.
  10993. AS="$AS"
  10994. # The name of the directory that contains temporary libtool files.
  10995. objdir=$objdir
  10996. # How to create reloadable object files.
  10997. reload_flag=$lt_reload_flag
  10998. reload_cmds=$lt_reload_cmds
  10999. # How to pass a linker flag through the compiler.
  11000. wl=$lt_lt_prog_compiler_wl
  11001. # Object file suffix (normally "o").
  11002. objext="$ac_objext"
  11003. # Old archive suffix (normally "a").
  11004. libext="$libext"
  11005. # Shared library suffix (normally ".so").
  11006. shrext_cmds='$shrext_cmds'
  11007. # Executable file suffix (normally "").
  11008. exeext="$exeext"
  11009. # Additional compiler flags for building library objects.
  11010. pic_flag=$lt_lt_prog_compiler_pic
  11011. pic_mode=$pic_mode
  11012. # What is the maximum length of a command?
  11013. max_cmd_len=$lt_cv_sys_max_cmd_len
  11014. # Does compiler simultaneously support -c and -o options?
  11015. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11016. # Must we lock files when doing compilation?
  11017. need_locks=$lt_need_locks
  11018. # Do we need the lib prefix for modules?
  11019. need_lib_prefix=$need_lib_prefix
  11020. # Do we need a version for libraries?
  11021. need_version=$need_version
  11022. # Whether dlopen is supported.
  11023. dlopen_support=$enable_dlopen
  11024. # Whether dlopen of programs is supported.
  11025. dlopen_self=$enable_dlopen_self
  11026. # Whether dlopen of statically linked programs is supported.
  11027. dlopen_self_static=$enable_dlopen_self_static
  11028. # Compiler flag to prevent dynamic linking.
  11029. link_static_flag=$lt_lt_prog_compiler_static
  11030. # Compiler flag to turn off builtin functions.
  11031. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11032. # Compiler flag to allow reflexive dlopens.
  11033. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11034. # Compiler flag to generate shared objects directly from archives.
  11035. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11036. # Compiler flag to generate thread-safe objects.
  11037. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  11038. # Library versioning type.
  11039. version_type=$version_type
  11040. # Format of library name prefix.
  11041. libname_spec=$lt_libname_spec
  11042. # List of archive names. First name is the real one, the rest are links.
  11043. # The last name is the one that the linker finds with -lNAME.
  11044. library_names_spec=$lt_library_names_spec
  11045. # The coded name of the library, if different from the real name.
  11046. soname_spec=$lt_soname_spec
  11047. # Commands used to build and install an old-style archive.
  11048. RANLIB=$lt_RANLIB
  11049. old_archive_cmds=$lt_old_archive_cmds
  11050. old_postinstall_cmds=$lt_old_postinstall_cmds
  11051. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11052. # Create an old-style archive from a shared archive.
  11053. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11054. # Create a temporary old-style archive to link instead of a shared archive.
  11055. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11056. # Commands used to build and install a shared archive.
  11057. archive_cmds=$lt_archive_cmds
  11058. archive_expsym_cmds=$lt_archive_expsym_cmds
  11059. postinstall_cmds=$lt_postinstall_cmds
  11060. postuninstall_cmds=$lt_postuninstall_cmds
  11061. # Commands used to build a loadable module (assumed same as above if empty)
  11062. module_cmds=$lt_module_cmds
  11063. module_expsym_cmds=$lt_module_expsym_cmds
  11064. # Commands to strip libraries.
  11065. old_striplib=$lt_old_striplib
  11066. striplib=$lt_striplib
  11067. # Dependencies to place before the objects being linked to create a
  11068. # shared library.
  11069. predep_objects=$lt_predep_objects
  11070. # Dependencies to place after the objects being linked to create a
  11071. # shared library.
  11072. postdep_objects=$lt_postdep_objects
  11073. # Dependencies to place before the objects being linked to create a
  11074. # shared library.
  11075. predeps=$lt_predeps
  11076. # Dependencies to place after the objects being linked to create a
  11077. # shared library.
  11078. postdeps=$lt_postdeps
  11079. # The library search path used internally by the compiler when linking
  11080. # a shared library.
  11081. compiler_lib_search_path=$lt_compiler_lib_search_path
  11082. # Method to check whether dependent libraries are shared objects.
  11083. deplibs_check_method=$lt_deplibs_check_method
  11084. # Command to use when deplibs_check_method == file_magic.
  11085. file_magic_cmd=$lt_file_magic_cmd
  11086. # Flag that allows shared libraries with undefined symbols to be built.
  11087. allow_undefined_flag=$lt_allow_undefined_flag
  11088. # Flag that forces no undefined symbols.
  11089. no_undefined_flag=$lt_no_undefined_flag
  11090. # Commands used to finish a libtool library installation in a directory.
  11091. finish_cmds=$lt_finish_cmds
  11092. # Same as above, but a single script fragment to be evaled but not shown.
  11093. finish_eval=$lt_finish_eval
  11094. # Take the output of nm and produce a listing of raw symbols and C names.
  11095. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11096. # Transform the output of nm in a proper C declaration
  11097. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11098. # Transform the output of nm in a C name address pair
  11099. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11100. # This is the shared library runtime path variable.
  11101. runpath_var=$runpath_var
  11102. # This is the shared library path variable.
  11103. shlibpath_var=$shlibpath_var
  11104. # Is shlibpath searched before the hard-coded library search path?
  11105. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11106. # How to hardcode a shared library path into an executable.
  11107. hardcode_action=$hardcode_action
  11108. # Whether we should hardcode library paths into libraries.
  11109. hardcode_into_libs=$hardcode_into_libs
  11110. # Flag to hardcode \$libdir into a binary during linking.
  11111. # This must work even if \$libdir does not exist.
  11112. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11113. # If ld is used when linking, flag to hardcode \$libdir into
  11114. # a binary during linking. This must work even if \$libdir does
  11115. # not exist.
  11116. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  11117. # Whether we need a single -rpath flag with a separated argument.
  11118. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11119. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  11120. # resulting binary.
  11121. hardcode_direct=$hardcode_direct
  11122. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  11123. # resulting binary.
  11124. hardcode_minus_L=$hardcode_minus_L
  11125. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  11126. # the resulting binary.
  11127. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11128. # Set to yes if building a shared library automatically hardcodes DIR into the library
  11129. # and all subsequent libraries and executables linked against it.
  11130. hardcode_automatic=$hardcode_automatic
  11131. # Variables whose values should be saved in libtool wrapper scripts and
  11132. # restored at relink time.
  11133. variables_saved_for_relink="$variables_saved_for_relink"
  11134. # Whether libtool must link a program against all its dependency libraries.
  11135. link_all_deplibs=$link_all_deplibs
  11136. # Compile-time system search path for libraries
  11137. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11138. # Run-time system search path for libraries
  11139. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11140. # Fix the shell variable \$srcfile for the compiler.
  11141. fix_srcfile_path="$fix_srcfile_path"
  11142. # Set to yes if exported symbols are required.
  11143. always_export_symbols=$always_export_symbols
  11144. # The commands to list exported symbols.
  11145. export_symbols_cmds=$lt_export_symbols_cmds
  11146. # The commands to extract the exported symbol list from a shared archive.
  11147. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11148. # Symbols that should not be listed in the preloaded symbols.
  11149. exclude_expsyms=$lt_exclude_expsyms
  11150. # Symbols that must always be exported.
  11151. include_expsyms=$lt_include_expsyms
  11152. # ### END LIBTOOL CONFIG
  11153. __EOF__
  11154. case $host_os in
  11155. aix3*)
  11156. cat <<\EOF >> "$cfgfile"
  11157. # AIX sometimes has problems with the GCC collect2 program. For some
  11158. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11159. # vanish in a puff of smoke.
  11160. if test "X${COLLECT_NAMES+set}" != Xset; then
  11161. COLLECT_NAMES=
  11162. export COLLECT_NAMES
  11163. fi
  11164. EOF
  11165. ;;
  11166. esac
  11167. # We use sed instead of cat because bash on DJGPP gets confused if
  11168. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11169. # text mode, it properly converts lines to CR/LF. This bash problem
  11170. # is reportedly fixed, but why not run on old versions too?
  11171. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  11172. mv -f "$cfgfile" "$ofile" || \
  11173. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11174. chmod +x "$ofile"
  11175. else
  11176. # If there is no Makefile yet, we rely on a make rule to execute
  11177. # `config.status --recheck' to rerun these tests and create the
  11178. # libtool script then.
  11179. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  11180. if test -f "$ltmain_in"; then
  11181. test -f Makefile && make "$ltmain"
  11182. fi
  11183. fi
  11184. ac_ext=c
  11185. ac_cpp='$CPP $CPPFLAGS'
  11186. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11187. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11188. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11189. CC="$lt_save_CC"
  11190. # Check whether --with-tags was given.
  11191. if test "${with_tags+set}" = set; then
  11192. withval=$with_tags; tagnames="$withval"
  11193. fi
  11194. if test -f "$ltmain" && test -n "$tagnames"; then
  11195. if test ! -f "${ofile}"; then
  11196. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  11197. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  11198. fi
  11199. if test -z "$LTCC"; then
  11200. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  11201. if test -z "$LTCC"; then
  11202. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  11203. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  11204. else
  11205. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  11206. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  11207. fi
  11208. fi
  11209. if test -z "$LTCFLAGS"; then
  11210. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  11211. fi
  11212. # Extract list of available tagged configurations in $ofile.
  11213. # Note that this assumes the entire list is on one line.
  11214. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  11215. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  11216. for tagname in $tagnames; do
  11217. IFS="$lt_save_ifs"
  11218. # Check whether tagname contains only valid characters
  11219. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  11220. "") ;;
  11221. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  11222. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  11223. { (exit 1); exit 1; }; }
  11224. ;;
  11225. esac
  11226. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  11227. then
  11228. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  11229. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  11230. { (exit 1); exit 1; }; }
  11231. fi
  11232. # Update the list of available tags.
  11233. if test -n "$tagname"; then
  11234. echo appending configuration tag \"$tagname\" to $ofile
  11235. case $tagname in
  11236. CXX)
  11237. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  11238. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  11239. (test "X$CXX" != "Xg++"))) ; then
  11240. ac_ext=cpp
  11241. ac_cpp='$CXXCPP $CPPFLAGS'
  11242. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11243. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11244. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11245. archive_cmds_need_lc_CXX=no
  11246. allow_undefined_flag_CXX=
  11247. always_export_symbols_CXX=no
  11248. archive_expsym_cmds_CXX=
  11249. export_dynamic_flag_spec_CXX=
  11250. hardcode_direct_CXX=no
  11251. hardcode_libdir_flag_spec_CXX=
  11252. hardcode_libdir_flag_spec_ld_CXX=
  11253. hardcode_libdir_separator_CXX=
  11254. hardcode_minus_L_CXX=no
  11255. hardcode_shlibpath_var_CXX=unsupported
  11256. hardcode_automatic_CXX=no
  11257. module_cmds_CXX=
  11258. module_expsym_cmds_CXX=
  11259. link_all_deplibs_CXX=unknown
  11260. old_archive_cmds_CXX=$old_archive_cmds
  11261. no_undefined_flag_CXX=
  11262. whole_archive_flag_spec_CXX=
  11263. enable_shared_with_static_runtimes_CXX=no
  11264. # Dependencies to place before and after the object being linked:
  11265. predep_objects_CXX=
  11266. postdep_objects_CXX=
  11267. predeps_CXX=
  11268. postdeps_CXX=
  11269. compiler_lib_search_path_CXX=
  11270. # Source file extension for C++ test sources.
  11271. ac_ext=cpp
  11272. # Object file extension for compiled C++ test sources.
  11273. objext=o
  11274. objext_CXX=$objext
  11275. # Code to be used in simple compile tests
  11276. lt_simple_compile_test_code="int some_variable = 0;\n"
  11277. # Code to be used in simple link tests
  11278. lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  11279. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11280. # If no C compiler was specified, use CC.
  11281. LTCC=${LTCC-"$CC"}
  11282. # If no C compiler flags were specified, use CFLAGS.
  11283. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  11284. # Allow CC to be a program name with arguments.
  11285. compiler=$CC
  11286. # save warnings/boilerplate of simple test code
  11287. ac_outfile=conftest.$ac_objext
  11288. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  11289. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11290. _lt_compiler_boilerplate=`cat conftest.err`
  11291. $rm conftest*
  11292. ac_outfile=conftest.$ac_objext
  11293. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  11294. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  11295. _lt_linker_boilerplate=`cat conftest.err`
  11296. $rm conftest*
  11297. # Allow CC to be a program name with arguments.
  11298. lt_save_CC=$CC
  11299. lt_save_LD=$LD
  11300. lt_save_GCC=$GCC
  11301. GCC=$GXX
  11302. lt_save_with_gnu_ld=$with_gnu_ld
  11303. lt_save_path_LD=$lt_cv_path_LD
  11304. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  11305. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  11306. else
  11307. $as_unset lt_cv_prog_gnu_ld
  11308. fi
  11309. if test -n "${lt_cv_path_LDCXX+set}"; then
  11310. lt_cv_path_LD=$lt_cv_path_LDCXX
  11311. else
  11312. $as_unset lt_cv_path_LD
  11313. fi
  11314. test -z "${LDCXX+set}" || LD=$LDCXX
  11315. CC=${CXX-"c++"}
  11316. compiler=$CC
  11317. compiler_CXX=$CC
  11318. for cc_temp in $compiler""; do
  11319. case $cc_temp in
  11320. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  11321. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  11322. \-*) ;;
  11323. *) break;;
  11324. esac
  11325. done
  11326. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  11327. # We don't want -fno-exception wen compiling C++ code, so set the
  11328. # no_builtin_flag separately
  11329. if test "$GXX" = yes; then
  11330. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  11331. else
  11332. lt_prog_compiler_no_builtin_flag_CXX=
  11333. fi
  11334. if test "$GXX" = yes; then
  11335. # Set up default GNU C++ configuration
  11336. # Check whether --with-gnu-ld was given.
  11337. if test "${with_gnu_ld+set}" = set; then
  11338. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11339. else
  11340. with_gnu_ld=no
  11341. fi
  11342. ac_prog=ld
  11343. if test "$GCC" = yes; then
  11344. # Check if gcc -print-prog-name=ld gives a path.
  11345. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  11346. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  11347. case $host in
  11348. *-*-mingw*)
  11349. # gcc leaves a trailing carriage return which upsets mingw
  11350. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11351. *)
  11352. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11353. esac
  11354. case $ac_prog in
  11355. # Accept absolute paths.
  11356. [\\/]* | ?:[\\/]*)
  11357. re_direlt='/[^/][^/]*/\.\./'
  11358. # Canonicalize the pathname of ld
  11359. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  11360. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  11361. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  11362. done
  11363. test -z "$LD" && LD="$ac_prog"
  11364. ;;
  11365. "")
  11366. # If it fails, then pretend we aren't using GCC.
  11367. ac_prog=ld
  11368. ;;
  11369. *)
  11370. # If it is relative, then search for the first ld in PATH.
  11371. with_gnu_ld=unknown
  11372. ;;
  11373. esac
  11374. elif test "$with_gnu_ld" = yes; then
  11375. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  11376. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  11377. else
  11378. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  11379. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  11380. fi
  11381. if test "${lt_cv_path_LD+set}" = set; then
  11382. echo $ECHO_N "(cached) $ECHO_C" >&6
  11383. else
  11384. if test -z "$LD"; then
  11385. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  11386. for ac_dir in $PATH; do
  11387. IFS="$lt_save_ifs"
  11388. test -z "$ac_dir" && ac_dir=.
  11389. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11390. lt_cv_path_LD="$ac_dir/$ac_prog"
  11391. # Check to see if the program is GNU ld. I'd rather use --version,
  11392. # but apparently some variants of GNU ld only accept -v.
  11393. # Break only if it was the GNU/non-GNU ld that we prefer.
  11394. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  11395. *GNU* | *'with BFD'*)
  11396. test "$with_gnu_ld" != no && break
  11397. ;;
  11398. *)
  11399. test "$with_gnu_ld" != yes && break
  11400. ;;
  11401. esac
  11402. fi
  11403. done
  11404. IFS="$lt_save_ifs"
  11405. else
  11406. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  11407. fi
  11408. fi
  11409. LD="$lt_cv_path_LD"
  11410. if test -n "$LD"; then
  11411. { echo "$as_me:$LINENO: result: $LD" >&5
  11412. echo "${ECHO_T}$LD" >&6; }
  11413. else
  11414. { echo "$as_me:$LINENO: result: no" >&5
  11415. echo "${ECHO_T}no" >&6; }
  11416. fi
  11417. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  11418. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  11419. { (exit 1); exit 1; }; }
  11420. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  11421. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  11422. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  11423. echo $ECHO_N "(cached) $ECHO_C" >&6
  11424. else
  11425. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  11426. case `$LD -v 2>&1 </dev/null` in
  11427. *GNU* | *'with BFD'*)
  11428. lt_cv_prog_gnu_ld=yes
  11429. ;;
  11430. *)
  11431. lt_cv_prog_gnu_ld=no
  11432. ;;
  11433. esac
  11434. fi
  11435. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  11436. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  11437. with_gnu_ld=$lt_cv_prog_gnu_ld
  11438. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  11439. # archiving commands below assume that GNU ld is being used.
  11440. if test "$with_gnu_ld" = yes; then
  11441. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11442. 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'
  11443. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11444. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11445. # If archive_cmds runs LD, not CC, wlarc should be empty
  11446. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  11447. # investigate it a little bit more. (MM)
  11448. wlarc='${wl}'
  11449. # ancient GNU ld didn't support --whole-archive et. al.
  11450. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  11451. grep 'no-whole-archive' > /dev/null; then
  11452. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11453. else
  11454. whole_archive_flag_spec_CXX=
  11455. fi
  11456. else
  11457. with_gnu_ld=no
  11458. wlarc=
  11459. # A generic and very simple default shared library creation
  11460. # command for GNU C++ for the case where it uses the native
  11461. # linker, instead of GNU ld. If possible, this setting should
  11462. # overridden to take advantage of the native linker features on
  11463. # the platform it is being used on.
  11464. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11465. fi
  11466. # Commands to make compiler produce verbose output that lists
  11467. # what "hidden" libraries, object files and flags are used when
  11468. # linking a shared library.
  11469. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  11470. else
  11471. GXX=no
  11472. with_gnu_ld=no
  11473. wlarc=
  11474. fi
  11475. # PORTME: fill in a description of your system's C++ link characteristics
  11476. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11477. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  11478. ld_shlibs_CXX=yes
  11479. case $host_os in
  11480. aix3*)
  11481. # FIXME: insert proper C++ library support
  11482. ld_shlibs_CXX=no
  11483. ;;
  11484. aix4* | aix5*)
  11485. if test "$host_cpu" = ia64; then
  11486. # On IA64, the linker does run time linking by default, so we don't
  11487. # have to do anything special.
  11488. aix_use_runtimelinking=no
  11489. exp_sym_flag='-Bexport'
  11490. no_entry_flag=""
  11491. else
  11492. aix_use_runtimelinking=no
  11493. # Test if we are trying to use run time linking or normal
  11494. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11495. # need to do runtime linking.
  11496. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  11497. for ld_flag in $LDFLAGS; do
  11498. case $ld_flag in
  11499. *-brtl*)
  11500. aix_use_runtimelinking=yes
  11501. break
  11502. ;;
  11503. esac
  11504. done
  11505. ;;
  11506. esac
  11507. exp_sym_flag='-bexport'
  11508. no_entry_flag='-bnoentry'
  11509. fi
  11510. # When large executables or shared objects are built, AIX ld can
  11511. # have problems creating the table of contents. If linking a library
  11512. # or program results in "error TOC overflow" add -mminimal-toc to
  11513. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11514. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11515. archive_cmds_CXX=''
  11516. hardcode_direct_CXX=yes
  11517. hardcode_libdir_separator_CXX=':'
  11518. link_all_deplibs_CXX=yes
  11519. if test "$GXX" = yes; then
  11520. case $host_os in aix4.[012]|aix4.[012].*)
  11521. # We only want to do this on AIX 4.2 and lower, the check
  11522. # below for broken collect2 doesn't work under 4.3+
  11523. collect2name=`${CC} -print-prog-name=collect2`
  11524. if test -f "$collect2name" && \
  11525. strings "$collect2name" | grep resolve_lib_name >/dev/null
  11526. then
  11527. # We have reworked collect2
  11528. hardcode_direct_CXX=yes
  11529. else
  11530. # We have old collect2
  11531. hardcode_direct_CXX=unsupported
  11532. # It fails to find uninstalled libraries when the uninstalled
  11533. # path is not listed in the libpath. Setting hardcode_minus_L
  11534. # to unsupported forces relinking
  11535. hardcode_minus_L_CXX=yes
  11536. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11537. hardcode_libdir_separator_CXX=
  11538. fi
  11539. ;;
  11540. esac
  11541. shared_flag='-shared'
  11542. if test "$aix_use_runtimelinking" = yes; then
  11543. shared_flag="$shared_flag "'${wl}-G'
  11544. fi
  11545. else
  11546. # not using gcc
  11547. if test "$host_cpu" = ia64; then
  11548. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11549. # chokes on -Wl,-G. The following line is correct:
  11550. shared_flag='-G'
  11551. else
  11552. if test "$aix_use_runtimelinking" = yes; then
  11553. shared_flag='${wl}-G'
  11554. else
  11555. shared_flag='${wl}-bM:SRE'
  11556. fi
  11557. fi
  11558. fi
  11559. # It seems that -bexpall does not export symbols beginning with
  11560. # underscore (_), so it is better to generate a list of symbols to export.
  11561. always_export_symbols_CXX=yes
  11562. if test "$aix_use_runtimelinking" = yes; then
  11563. # Warning - without using the other runtime loading flags (-brtl),
  11564. # -berok will link without error, but may produce a broken library.
  11565. allow_undefined_flag_CXX='-berok'
  11566. # Determine the default libpath from the value encoded in an empty executable.
  11567. cat >conftest.$ac_ext <<_ACEOF
  11568. /* confdefs.h. */
  11569. _ACEOF
  11570. cat confdefs.h >>conftest.$ac_ext
  11571. cat >>conftest.$ac_ext <<_ACEOF
  11572. /* end confdefs.h. */
  11573. int
  11574. main ()
  11575. {
  11576. ;
  11577. return 0;
  11578. }
  11579. _ACEOF
  11580. rm -f conftest.$ac_objext conftest$ac_exeext
  11581. if { (ac_try="$ac_link"
  11582. case "(($ac_try" in
  11583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11584. *) ac_try_echo=$ac_try;;
  11585. esac
  11586. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11587. (eval "$ac_link") 2>conftest.er1
  11588. ac_status=$?
  11589. grep -v '^ *+' conftest.er1 >conftest.err
  11590. rm -f conftest.er1
  11591. cat conftest.err >&5
  11592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11593. (exit $ac_status); } && {
  11594. test -z "$ac_cxx_werror_flag" ||
  11595. test ! -s conftest.err
  11596. } && test -s conftest$ac_exeext &&
  11597. $as_test_x conftest$ac_exeext; then
  11598. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  11599. }'`
  11600. # Check for a 64-bit object if we didn't find anything.
  11601. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  11602. }'`; fi
  11603. else
  11604. echo "$as_me: failed program was:" >&5
  11605. sed 's/^/| /' conftest.$ac_ext >&5
  11606. fi
  11607. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11608. conftest$ac_exeext conftest.$ac_ext
  11609. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11610. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11611. 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"
  11612. else
  11613. if test "$host_cpu" = ia64; then
  11614. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11615. allow_undefined_flag_CXX="-z nodefs"
  11616. 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"
  11617. else
  11618. # Determine the default libpath from the value encoded in an empty executable.
  11619. cat >conftest.$ac_ext <<_ACEOF
  11620. /* confdefs.h. */
  11621. _ACEOF
  11622. cat confdefs.h >>conftest.$ac_ext
  11623. cat >>conftest.$ac_ext <<_ACEOF
  11624. /* end confdefs.h. */
  11625. int
  11626. main ()
  11627. {
  11628. ;
  11629. return 0;
  11630. }
  11631. _ACEOF
  11632. rm -f conftest.$ac_objext conftest$ac_exeext
  11633. if { (ac_try="$ac_link"
  11634. case "(($ac_try" in
  11635. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11636. *) ac_try_echo=$ac_try;;
  11637. esac
  11638. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11639. (eval "$ac_link") 2>conftest.er1
  11640. ac_status=$?
  11641. grep -v '^ *+' conftest.er1 >conftest.err
  11642. rm -f conftest.er1
  11643. cat conftest.err >&5
  11644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11645. (exit $ac_status); } && {
  11646. test -z "$ac_cxx_werror_flag" ||
  11647. test ! -s conftest.err
  11648. } && test -s conftest$ac_exeext &&
  11649. $as_test_x conftest$ac_exeext; then
  11650. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  11651. }'`
  11652. # Check for a 64-bit object if we didn't find anything.
  11653. if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  11654. }'`; fi
  11655. else
  11656. echo "$as_me: failed program was:" >&5
  11657. sed 's/^/| /' conftest.$ac_ext >&5
  11658. fi
  11659. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11660. conftest$ac_exeext conftest.$ac_ext
  11661. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  11662. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11663. # Warning - without using the other run time loading flags,
  11664. # -berok will link without error, but may produce a broken library.
  11665. no_undefined_flag_CXX=' ${wl}-bernotok'
  11666. allow_undefined_flag_CXX=' ${wl}-berok'
  11667. # Exported symbols can be pulled into shared objects from archives
  11668. whole_archive_flag_spec_CXX='$convenience'
  11669. archive_cmds_need_lc_CXX=yes
  11670. # This is similar to how AIX traditionally builds its shared libraries.
  11671. 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'
  11672. fi
  11673. fi
  11674. ;;
  11675. beos*)
  11676. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11677. allow_undefined_flag_CXX=unsupported
  11678. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11679. # support --undefined. This deserves some investigation. FIXME
  11680. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11681. else
  11682. ld_shlibs_CXX=no
  11683. fi
  11684. ;;
  11685. chorus*)
  11686. case $cc_basename in
  11687. *)
  11688. # FIXME: insert proper C++ library support
  11689. ld_shlibs_CXX=no
  11690. ;;
  11691. esac
  11692. ;;
  11693. cygwin* | mingw* | pw32*)
  11694. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11695. # as there is no search path for DLLs.
  11696. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11697. allow_undefined_flag_CXX=unsupported
  11698. always_export_symbols_CXX=no
  11699. enable_shared_with_static_runtimes_CXX=yes
  11700. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  11701. 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'
  11702. # If the export-symbols file already is a .def file (1st line
  11703. # is EXPORTS), use it as is; otherwise, prepend...
  11704. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11705. cp $export_symbols $output_objdir/$soname.def;
  11706. else
  11707. echo EXPORTS > $output_objdir/$soname.def;
  11708. cat $export_symbols >> $output_objdir/$soname.def;
  11709. fi~
  11710. $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'
  11711. else
  11712. ld_shlibs_CXX=no
  11713. fi
  11714. ;;
  11715. darwin* | rhapsody*)
  11716. case $host_os in
  11717. rhapsody* | darwin1.[012])
  11718. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  11719. ;;
  11720. *) # Darwin 1.3 on
  11721. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  11722. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  11723. else
  11724. case ${MACOSX_DEPLOYMENT_TARGET} in
  11725. 10.[012])
  11726. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  11727. ;;
  11728. 10.*)
  11729. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  11730. ;;
  11731. esac
  11732. fi
  11733. ;;
  11734. esac
  11735. archive_cmds_need_lc_CXX=no
  11736. hardcode_direct_CXX=no
  11737. hardcode_automatic_CXX=yes
  11738. hardcode_shlibpath_var_CXX=unsupported
  11739. whole_archive_flag_spec_CXX=''
  11740. link_all_deplibs_CXX=yes
  11741. if test "$GXX" = yes ; then
  11742. lt_int_apple_cc_single_mod=no
  11743. output_verbose_link_cmd='echo'
  11744. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  11745. lt_int_apple_cc_single_mod=yes
  11746. fi
  11747. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  11748. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  11749. else
  11750. 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'
  11751. fi
  11752. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  11753. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  11754. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  11755. 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}'
  11756. else
  11757. 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}'
  11758. fi
  11759. 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}'
  11760. else
  11761. case $cc_basename in
  11762. xlc*)
  11763. output_verbose_link_cmd='echo'
  11764. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  11765. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  11766. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  11767. 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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11768. 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}'
  11769. ;;
  11770. *)
  11771. ld_shlibs_CXX=no
  11772. ;;
  11773. esac
  11774. fi
  11775. ;;
  11776. dgux*)
  11777. case $cc_basename in
  11778. ec++*)
  11779. # FIXME: insert proper C++ library support
  11780. ld_shlibs_CXX=no
  11781. ;;
  11782. ghcx*)
  11783. # Green Hills C++ Compiler
  11784. # FIXME: insert proper C++ library support
  11785. ld_shlibs_CXX=no
  11786. ;;
  11787. *)
  11788. # FIXME: insert proper C++ library support
  11789. ld_shlibs_CXX=no
  11790. ;;
  11791. esac
  11792. ;;
  11793. freebsd[12]*)
  11794. # C++ shared libraries reported to be fairly broken before switch to ELF
  11795. ld_shlibs_CXX=no
  11796. ;;
  11797. freebsd-elf*)
  11798. archive_cmds_need_lc_CXX=no
  11799. ;;
  11800. freebsd* | kfreebsd*-gnu | dragonfly*)
  11801. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11802. # conventions
  11803. ld_shlibs_CXX=yes
  11804. ;;
  11805. gnu*)
  11806. ;;
  11807. hpux9*)
  11808. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11809. hardcode_libdir_separator_CXX=:
  11810. export_dynamic_flag_spec_CXX='${wl}-E'
  11811. hardcode_direct_CXX=yes
  11812. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11813. # but as the default
  11814. # location of the library.
  11815. case $cc_basename in
  11816. CC*)
  11817. # FIXME: insert proper C++ library support
  11818. ld_shlibs_CXX=no
  11819. ;;
  11820. aCC*)
  11821. 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'
  11822. # Commands to make compiler produce verbose output that lists
  11823. # what "hidden" libraries, object files and flags are used when
  11824. # linking a shared library.
  11825. #
  11826. # There doesn't appear to be a way to prevent this compiler from
  11827. # explicitly linking system object files so we need to strip them
  11828. # from the output so that they don't get included in the library
  11829. # dependencies.
  11830. 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'
  11831. ;;
  11832. *)
  11833. if test "$GXX" = yes; then
  11834. 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'
  11835. else
  11836. # FIXME: insert proper C++ library support
  11837. ld_shlibs_CXX=no
  11838. fi
  11839. ;;
  11840. esac
  11841. ;;
  11842. hpux10*|hpux11*)
  11843. if test $with_gnu_ld = no; then
  11844. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11845. hardcode_libdir_separator_CXX=:
  11846. case $host_cpu in
  11847. hppa*64*|ia64*)
  11848. hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  11849. ;;
  11850. *)
  11851. export_dynamic_flag_spec_CXX='${wl}-E'
  11852. ;;
  11853. esac
  11854. fi
  11855. case $host_cpu in
  11856. hppa*64*|ia64*)
  11857. hardcode_direct_CXX=no
  11858. hardcode_shlibpath_var_CXX=no
  11859. ;;
  11860. *)
  11861. hardcode_direct_CXX=yes
  11862. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11863. # but as the default
  11864. # location of the library.
  11865. ;;
  11866. esac
  11867. case $cc_basename in
  11868. CC*)
  11869. # FIXME: insert proper C++ library support
  11870. ld_shlibs_CXX=no
  11871. ;;
  11872. aCC*)
  11873. case $host_cpu in
  11874. hppa*64*)
  11875. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11876. ;;
  11877. ia64*)
  11878. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11879. ;;
  11880. *)
  11881. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11882. ;;
  11883. esac
  11884. # Commands to make compiler produce verbose output that lists
  11885. # what "hidden" libraries, object files and flags are used when
  11886. # linking a shared library.
  11887. #
  11888. # There doesn't appear to be a way to prevent this compiler from
  11889. # explicitly linking system object files so we need to strip them
  11890. # from the output so that they don't get included in the library
  11891. # dependencies.
  11892. 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'
  11893. ;;
  11894. *)
  11895. if test "$GXX" = yes; then
  11896. if test $with_gnu_ld = no; then
  11897. case $host_cpu in
  11898. hppa*64*)
  11899. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11900. ;;
  11901. ia64*)
  11902. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11903. ;;
  11904. *)
  11905. 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'
  11906. ;;
  11907. esac
  11908. fi
  11909. else
  11910. # FIXME: insert proper C++ library support
  11911. ld_shlibs_CXX=no
  11912. fi
  11913. ;;
  11914. esac
  11915. ;;
  11916. interix3*)
  11917. hardcode_direct_CXX=no
  11918. hardcode_shlibpath_var_CXX=no
  11919. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11920. export_dynamic_flag_spec_CXX='${wl}-E'
  11921. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11922. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11923. # default) and relocated if they conflict, which is a slow very memory
  11924. # consuming and fragmenting process. To avoid this, we pick a random,
  11925. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11926. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11927. 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'
  11928. 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'
  11929. ;;
  11930. irix5* | irix6*)
  11931. case $cc_basename in
  11932. CC*)
  11933. # SGI C++
  11934. 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'
  11935. # Archives containing C++ object files must be created using
  11936. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11937. # necessary to make sure instantiated templates are included
  11938. # in the archive.
  11939. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11940. ;;
  11941. *)
  11942. if test "$GXX" = yes; then
  11943. if test "$with_gnu_ld" = no; then
  11944. 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'
  11945. else
  11946. 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'
  11947. fi
  11948. fi
  11949. link_all_deplibs_CXX=yes
  11950. ;;
  11951. esac
  11952. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11953. hardcode_libdir_separator_CXX=:
  11954. ;;
  11955. linux*)
  11956. case $cc_basename in
  11957. KCC*)
  11958. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11959. # KCC will only create a shared library if the output file
  11960. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11961. # to its proper name (with version) after linking.
  11962. 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'
  11963. 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'
  11964. # Commands to make compiler produce verbose output that lists
  11965. # what "hidden" libraries, object files and flags are used when
  11966. # linking a shared library.
  11967. #
  11968. # There doesn't appear to be a way to prevent this compiler from
  11969. # explicitly linking system object files so we need to strip them
  11970. # from the output so that they don't get included in the library
  11971. # dependencies.
  11972. 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'
  11973. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  11974. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11975. # Archives containing C++ object files must be created using
  11976. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11977. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11978. ;;
  11979. icpc*)
  11980. # Intel C++
  11981. with_gnu_ld=yes
  11982. # version 8.0 and above of icpc choke on multiply defined symbols
  11983. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11984. # earlier do not add the objects themselves.
  11985. case `$CC -V 2>&1` in
  11986. *"Version 7."*)
  11987. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11988. 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'
  11989. ;;
  11990. *) # Version 8.0 or newer
  11991. tmp_idyn=
  11992. case $host_cpu in
  11993. ia64*) tmp_idyn=' -i_dynamic';;
  11994. esac
  11995. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11996. 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'
  11997. ;;
  11998. esac
  11999. archive_cmds_need_lc_CXX=no
  12000. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12001. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12002. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  12003. ;;
  12004. pgCC*)
  12005. # Portland Group C++ compiler
  12006. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  12007. 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'
  12008. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  12009. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  12010. 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'
  12011. ;;
  12012. cxx*)
  12013. # Compaq C++
  12014. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  12015. 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'
  12016. runpath_var=LD_RUN_PATH
  12017. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12018. hardcode_libdir_separator_CXX=:
  12019. # Commands to make compiler produce verbose output that lists
  12020. # what "hidden" libraries, object files and flags are used when
  12021. # linking a shared library.
  12022. #
  12023. # There doesn't appear to be a way to prevent this compiler from
  12024. # explicitly linking system object files so we need to strip them
  12025. # from the output so that they don't get included in the library
  12026. # dependencies.
  12027. 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'
  12028. ;;
  12029. esac
  12030. ;;
  12031. lynxos*)
  12032. # FIXME: insert proper C++ library support
  12033. ld_shlibs_CXX=no
  12034. ;;
  12035. m88k*)
  12036. # FIXME: insert proper C++ library support
  12037. ld_shlibs_CXX=no
  12038. ;;
  12039. mvs*)
  12040. case $cc_basename in
  12041. cxx*)
  12042. # FIXME: insert proper C++ library support
  12043. ld_shlibs_CXX=no
  12044. ;;
  12045. *)
  12046. # FIXME: insert proper C++ library support
  12047. ld_shlibs_CXX=no
  12048. ;;
  12049. esac
  12050. ;;
  12051. netbsd*)
  12052. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12053. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  12054. wlarc=
  12055. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12056. hardcode_direct_CXX=yes
  12057. hardcode_shlibpath_var_CXX=no
  12058. fi
  12059. # Workaround some broken pre-1.5 toolchains
  12060. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  12061. ;;
  12062. openbsd2*)
  12063. # C++ shared libraries are fairly broken
  12064. ld_shlibs_CXX=no
  12065. ;;
  12066. openbsd*)
  12067. hardcode_direct_CXX=yes
  12068. hardcode_shlibpath_var_CXX=no
  12069. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  12070. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12071. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12072. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  12073. export_dynamic_flag_spec_CXX='${wl}-E'
  12074. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  12075. fi
  12076. output_verbose_link_cmd='echo'
  12077. ;;
  12078. osf3*)
  12079. case $cc_basename in
  12080. KCC*)
  12081. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12082. # KCC will only create a shared library if the output file
  12083. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12084. # to its proper name (with version) after linking.
  12085. 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'
  12086. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12087. hardcode_libdir_separator_CXX=:
  12088. # Archives containing C++ object files must be created using
  12089. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  12090. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  12091. ;;
  12092. RCC*)
  12093. # Rational C++ 2.4.1
  12094. # FIXME: insert proper C++ library support
  12095. ld_shlibs_CXX=no
  12096. ;;
  12097. cxx*)
  12098. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12099. 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'
  12100. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12101. hardcode_libdir_separator_CXX=:
  12102. # Commands to make compiler produce verbose output that lists
  12103. # what "hidden" libraries, object files and flags are used when
  12104. # linking a shared library.
  12105. #
  12106. # There doesn't appear to be a way to prevent this compiler from
  12107. # explicitly linking system object files so we need to strip them
  12108. # from the output so that they don't get included in the library
  12109. # dependencies.
  12110. 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'
  12111. ;;
  12112. *)
  12113. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12114. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12115. 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'
  12116. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12117. hardcode_libdir_separator_CXX=:
  12118. # Commands to make compiler produce verbose output that lists
  12119. # what "hidden" libraries, object files and flags are used when
  12120. # linking a shared library.
  12121. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  12122. else
  12123. # FIXME: insert proper C++ library support
  12124. ld_shlibs_CXX=no
  12125. fi
  12126. ;;
  12127. esac
  12128. ;;
  12129. osf4* | osf5*)
  12130. case $cc_basename in
  12131. KCC*)
  12132. # Kuck and Associates, Inc. (KAI) C++ Compiler
  12133. # KCC will only create a shared library if the output file
  12134. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  12135. # to its proper name (with version) after linking.
  12136. 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'
  12137. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  12138. hardcode_libdir_separator_CXX=:
  12139. # Archives containing C++ object files must be created using
  12140. # the KAI C++ compiler.
  12141. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  12142. ;;
  12143. RCC*)
  12144. # Rational C++ 2.4.1
  12145. # FIXME: insert proper C++ library support
  12146. ld_shlibs_CXX=no
  12147. ;;
  12148. cxx*)
  12149. allow_undefined_flag_CXX=' -expect_unresolved \*'
  12150. 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'
  12151. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  12152. echo "-hidden">> $lib.exp~
  12153. $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~
  12154. $rm $lib.exp'
  12155. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  12156. hardcode_libdir_separator_CXX=:
  12157. # Commands to make compiler produce verbose output that lists
  12158. # what "hidden" libraries, object files and flags are used when
  12159. # linking a shared library.
  12160. #
  12161. # There doesn't appear to be a way to prevent this compiler from
  12162. # explicitly linking system object files so we need to strip them
  12163. # from the output so that they don't get included in the library
  12164. # dependencies.
  12165. 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'
  12166. ;;
  12167. *)
  12168. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12169. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  12170. 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'
  12171. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  12172. hardcode_libdir_separator_CXX=:
  12173. # Commands to make compiler produce verbose output that lists
  12174. # what "hidden" libraries, object files and flags are used when
  12175. # linking a shared library.
  12176. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  12177. else
  12178. # FIXME: insert proper C++ library support
  12179. ld_shlibs_CXX=no
  12180. fi
  12181. ;;
  12182. esac
  12183. ;;
  12184. psos*)
  12185. # FIXME: insert proper C++ library support
  12186. ld_shlibs_CXX=no
  12187. ;;
  12188. sunos4*)
  12189. case $cc_basename in
  12190. CC*)
  12191. # Sun C++ 4.x
  12192. # FIXME: insert proper C++ library support
  12193. ld_shlibs_CXX=no
  12194. ;;
  12195. lcc*)
  12196. # Lucid
  12197. # FIXME: insert proper C++ library support
  12198. ld_shlibs_CXX=no
  12199. ;;
  12200. *)
  12201. # FIXME: insert proper C++ library support
  12202. ld_shlibs_CXX=no
  12203. ;;
  12204. esac
  12205. ;;
  12206. solaris*)
  12207. case $cc_basename in
  12208. CC*)
  12209. # Sun C++ 4.2, 5.x and Centerline C++
  12210. archive_cmds_need_lc_CXX=yes
  12211. no_undefined_flag_CXX=' -zdefs'
  12212. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  12213. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12214. $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'
  12215. hardcode_libdir_flag_spec_CXX='-R$libdir'
  12216. hardcode_shlibpath_var_CXX=no
  12217. case $host_os in
  12218. solaris2.[0-5] | solaris2.[0-5].*) ;;
  12219. *)
  12220. # The C++ compiler is used as linker so we must use $wl
  12221. # flag to pass the commands to the underlying system
  12222. # linker. We must also pass each convience library through
  12223. # to the system linker between allextract/defaultextract.
  12224. # The C++ compiler will combine linker options so we
  12225. # cannot just pass the convience library names through
  12226. # without $wl.
  12227. # Supported since Solaris 2.6 (maybe 2.5.1?)
  12228. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  12229. ;;
  12230. esac
  12231. link_all_deplibs_CXX=yes
  12232. output_verbose_link_cmd='echo'
  12233. # Archives containing C++ object files must be created using
  12234. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  12235. # necessary to make sure instantiated templates are included
  12236. # in the archive.
  12237. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  12238. ;;
  12239. gcx*)
  12240. # Green Hills C++ Compiler
  12241. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12242. # The C++ compiler must be used to create the archive.
  12243. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  12244. ;;
  12245. *)
  12246. # GNU C++ compiler with Solaris linker
  12247. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  12248. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  12249. if $CC --version | grep -v '^2\.7' > /dev/null; then
  12250. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12251. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12252. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  12253. # Commands to make compiler produce verbose output that lists
  12254. # what "hidden" libraries, object files and flags are used when
  12255. # linking a shared library.
  12256. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  12257. else
  12258. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  12259. # platform.
  12260. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  12261. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12262. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  12263. # Commands to make compiler produce verbose output that lists
  12264. # what "hidden" libraries, object files and flags are used when
  12265. # linking a shared library.
  12266. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  12267. fi
  12268. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  12269. fi
  12270. ;;
  12271. esac
  12272. ;;
  12273. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  12274. no_undefined_flag_CXX='${wl}-z,text'
  12275. archive_cmds_need_lc_CXX=no
  12276. hardcode_shlibpath_var_CXX=no
  12277. runpath_var='LD_RUN_PATH'
  12278. case $cc_basename in
  12279. CC*)
  12280. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12281. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12282. ;;
  12283. *)
  12284. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12285. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12286. ;;
  12287. esac
  12288. ;;
  12289. sysv5* | sco3.2v5* | sco5v6*)
  12290. # Note: We can NOT use -z defs as we might desire, because we do not
  12291. # link with -lc, and that would cause any symbols used from libc to
  12292. # always be unresolved, which means just about no library would
  12293. # ever link correctly. If we're not using GNU ld we use -z text
  12294. # though, which does catch some bad symbols but isn't as heavy-handed
  12295. # as -z defs.
  12296. # For security reasons, it is highly recommended that you always
  12297. # use absolute paths for naming shared libraries, and exclude the
  12298. # DT_RUNPATH tag from executables and libraries. But doing so
  12299. # requires that you compile everything twice, which is a pain.
  12300. # So that behaviour is only enabled if SCOABSPATH is set to a
  12301. # non-empty value in the environment. Most likely only useful for
  12302. # creating official distributions of packages.
  12303. # This is a hack until libtool officially supports absolute path
  12304. # names for shared libraries.
  12305. no_undefined_flag_CXX='${wl}-z,text'
  12306. allow_undefined_flag_CXX='${wl}-z,nodefs'
  12307. archive_cmds_need_lc_CXX=no
  12308. hardcode_shlibpath_var_CXX=no
  12309. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  12310. hardcode_libdir_separator_CXX=':'
  12311. link_all_deplibs_CXX=yes
  12312. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  12313. runpath_var='LD_RUN_PATH'
  12314. case $cc_basename in
  12315. CC*)
  12316. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12317. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12318. ;;
  12319. *)
  12320. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12321. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12322. ;;
  12323. esac
  12324. ;;
  12325. tandem*)
  12326. case $cc_basename in
  12327. NCC*)
  12328. # NonStop-UX NCC 3.20
  12329. # FIXME: insert proper C++ library support
  12330. ld_shlibs_CXX=no
  12331. ;;
  12332. *)
  12333. # FIXME: insert proper C++ library support
  12334. ld_shlibs_CXX=no
  12335. ;;
  12336. esac
  12337. ;;
  12338. vxworks*)
  12339. # FIXME: insert proper C++ library support
  12340. ld_shlibs_CXX=no
  12341. ;;
  12342. *)
  12343. # FIXME: insert proper C++ library support
  12344. ld_shlibs_CXX=no
  12345. ;;
  12346. esac
  12347. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  12348. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  12349. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12350. GCC_CXX="$GXX"
  12351. LD_CXX="$LD"
  12352. ## CAVEAT EMPTOR:
  12353. ## There is no encapsulation within the following macros, do not change
  12354. ## the running order or otherwise move them around unless you know exactly
  12355. ## what you are doing...
  12356. cat > conftest.$ac_ext <<EOF
  12357. class Foo
  12358. {
  12359. public:
  12360. Foo (void) { a = 0; }
  12361. private:
  12362. int a;
  12363. };
  12364. EOF
  12365. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12366. (eval $ac_compile) 2>&5
  12367. ac_status=$?
  12368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12369. (exit $ac_status); }; then
  12370. # Parse the compiler output and extract the necessary
  12371. # objects, libraries and library flags.
  12372. # Sentinel used to keep track of whether or not we are before
  12373. # the conftest object file.
  12374. pre_test_object_deps_done=no
  12375. # The `*' in the case matches for architectures that use `case' in
  12376. # $output_verbose_cmd can trigger glob expansion during the loop
  12377. # eval without this substitution.
  12378. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  12379. for p in `eval $output_verbose_link_cmd`; do
  12380. case $p in
  12381. -L* | -R* | -l*)
  12382. # Some compilers place space between "-{L,R}" and the path.
  12383. # Remove the space.
  12384. if test $p = "-L" \
  12385. || test $p = "-R"; then
  12386. prev=$p
  12387. continue
  12388. else
  12389. prev=
  12390. fi
  12391. if test "$pre_test_object_deps_done" = no; then
  12392. case $p in
  12393. -L* | -R*)
  12394. # Internal compiler library paths should come after those
  12395. # provided the user. The postdeps already come after the
  12396. # user supplied libs so there is no need to process them.
  12397. if test -z "$compiler_lib_search_path_CXX"; then
  12398. compiler_lib_search_path_CXX="${prev}${p}"
  12399. else
  12400. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12401. fi
  12402. ;;
  12403. # The "-l" case would never come before the object being
  12404. # linked, so don't bother handling this case.
  12405. esac
  12406. else
  12407. if test -z "$postdeps_CXX"; then
  12408. postdeps_CXX="${prev}${p}"
  12409. else
  12410. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12411. fi
  12412. fi
  12413. ;;
  12414. *.$objext)
  12415. # This assumes that the test object file only shows up
  12416. # once in the compiler output.
  12417. if test "$p" = "conftest.$objext"; then
  12418. pre_test_object_deps_done=yes
  12419. continue
  12420. fi
  12421. if test "$pre_test_object_deps_done" = no; then
  12422. if test -z "$predep_objects_CXX"; then
  12423. predep_objects_CXX="$p"
  12424. else
  12425. predep_objects_CXX="$predep_objects_CXX $p"
  12426. fi
  12427. else
  12428. if test -z "$postdep_objects_CXX"; then
  12429. postdep_objects_CXX="$p"
  12430. else
  12431. postdep_objects_CXX="$postdep_objects_CXX $p"
  12432. fi
  12433. fi
  12434. ;;
  12435. *) ;; # Ignore the rest.
  12436. esac
  12437. done
  12438. # Clean up.
  12439. rm -f a.out a.exe
  12440. else
  12441. echo "libtool.m4: error: problem compiling CXX test program"
  12442. fi
  12443. $rm -f confest.$objext
  12444. # PORTME: override above test on systems where it is broken
  12445. case $host_os in
  12446. interix3*)
  12447. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12448. # hack all around it, let's just trust "g++" to DTRT.
  12449. predep_objects_CXX=
  12450. postdep_objects_CXX=
  12451. postdeps_CXX=
  12452. ;;
  12453. solaris*)
  12454. case $cc_basename in
  12455. CC*)
  12456. # Adding this requires a known-good setup of shared libraries for
  12457. # Sun compiler versions before 5.6, else PIC objects from an old
  12458. # archive will be linked into the output, leading to subtle bugs.
  12459. postdeps_CXX='-lCstd -lCrun'
  12460. ;;
  12461. esac
  12462. ;;
  12463. esac
  12464. case " $postdeps_CXX " in
  12465. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12466. esac
  12467. lt_prog_compiler_wl_CXX=
  12468. lt_prog_compiler_pic_CXX=
  12469. lt_prog_compiler_static_CXX=
  12470. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12471. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  12472. # C++ specific cases for pic, static, wl, etc.
  12473. if test "$GXX" = yes; then
  12474. lt_prog_compiler_wl_CXX='-Wl,'
  12475. lt_prog_compiler_static_CXX='-static'
  12476. case $host_os in
  12477. aix*)
  12478. # All AIX code is PIC.
  12479. if test "$host_cpu" = ia64; then
  12480. # AIX 5 now supports IA64 processor
  12481. lt_prog_compiler_static_CXX='-Bstatic'
  12482. fi
  12483. ;;
  12484. amigaos*)
  12485. # FIXME: we need at least 68020 code to build shared libraries, but
  12486. # adding the `-m68020' flag to GCC prevents building anything better,
  12487. # like `-m68040'.
  12488. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12489. ;;
  12490. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12491. # PIC is the default for these OSes.
  12492. ;;
  12493. mingw* | os2* | pw32*)
  12494. # This hack is so that the source file can tell whether it is being
  12495. # built for inclusion in a dll (and should export symbols for example).
  12496. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12497. ;;
  12498. darwin* | rhapsody*)
  12499. # PIC is the default on this platform
  12500. # Common symbols not allowed in MH_DYLIB files
  12501. lt_prog_compiler_pic_CXX='-fno-common'
  12502. ;;
  12503. *djgpp*)
  12504. # DJGPP does not support shared libraries at all
  12505. lt_prog_compiler_pic_CXX=
  12506. ;;
  12507. interix3*)
  12508. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12509. # Instead, we relocate shared libraries at runtime.
  12510. ;;
  12511. sysv4*MP*)
  12512. if test -d /usr/nec; then
  12513. lt_prog_compiler_pic_CXX=-Kconform_pic
  12514. fi
  12515. ;;
  12516. hpux*)
  12517. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12518. # not for PA HP-UX.
  12519. case $host_cpu in
  12520. hppa*64*|ia64*)
  12521. ;;
  12522. *)
  12523. lt_prog_compiler_pic_CXX='-fPIC'
  12524. ;;
  12525. esac
  12526. ;;
  12527. *)
  12528. lt_prog_compiler_pic_CXX='-fPIC'
  12529. ;;
  12530. esac
  12531. else
  12532. case $host_os in
  12533. aix4* | aix5*)
  12534. # All AIX code is PIC.
  12535. if test "$host_cpu" = ia64; then
  12536. # AIX 5 now supports IA64 processor
  12537. lt_prog_compiler_static_CXX='-Bstatic'
  12538. else
  12539. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12540. fi
  12541. ;;
  12542. chorus*)
  12543. case $cc_basename in
  12544. cxch68*)
  12545. # Green Hills C++ Compiler
  12546. # _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"
  12547. ;;
  12548. esac
  12549. ;;
  12550. darwin*)
  12551. # PIC is the default on this platform
  12552. # Common symbols not allowed in MH_DYLIB files
  12553. case $cc_basename in
  12554. xlc*)
  12555. lt_prog_compiler_pic_CXX='-qnocommon'
  12556. lt_prog_compiler_wl_CXX='-Wl,'
  12557. ;;
  12558. esac
  12559. ;;
  12560. dgux*)
  12561. case $cc_basename in
  12562. ec++*)
  12563. lt_prog_compiler_pic_CXX='-KPIC'
  12564. ;;
  12565. ghcx*)
  12566. # Green Hills C++ Compiler
  12567. lt_prog_compiler_pic_CXX='-pic'
  12568. ;;
  12569. *)
  12570. ;;
  12571. esac
  12572. ;;
  12573. freebsd* | kfreebsd*-gnu | dragonfly*)
  12574. # FreeBSD uses GNU C++
  12575. ;;
  12576. hpux9* | hpux10* | hpux11*)
  12577. case $cc_basename in
  12578. CC*)
  12579. lt_prog_compiler_wl_CXX='-Wl,'
  12580. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12581. if test "$host_cpu" != ia64; then
  12582. lt_prog_compiler_pic_CXX='+Z'
  12583. fi
  12584. ;;
  12585. aCC*)
  12586. lt_prog_compiler_wl_CXX='-Wl,'
  12587. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12588. case $host_cpu in
  12589. hppa*64*|ia64*)
  12590. # +Z the default
  12591. ;;
  12592. *)
  12593. lt_prog_compiler_pic_CXX='+Z'
  12594. ;;
  12595. esac
  12596. ;;
  12597. *)
  12598. ;;
  12599. esac
  12600. ;;
  12601. interix*)
  12602. # This is c89, which is MS Visual C++ (no shared libs)
  12603. # Anyone wants to do a port?
  12604. ;;
  12605. irix5* | irix6* | nonstopux*)
  12606. case $cc_basename in
  12607. CC*)
  12608. lt_prog_compiler_wl_CXX='-Wl,'
  12609. lt_prog_compiler_static_CXX='-non_shared'
  12610. # CC pic flag -KPIC is the default.
  12611. ;;
  12612. *)
  12613. ;;
  12614. esac
  12615. ;;
  12616. linux*)
  12617. case $cc_basename in
  12618. KCC*)
  12619. # KAI C++ Compiler
  12620. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12621. lt_prog_compiler_pic_CXX='-fPIC'
  12622. ;;
  12623. icpc* | ecpc*)
  12624. # Intel C++
  12625. lt_prog_compiler_wl_CXX='-Wl,'
  12626. lt_prog_compiler_pic_CXX='-KPIC'
  12627. lt_prog_compiler_static_CXX='-static'
  12628. ;;
  12629. pgCC*)
  12630. # Portland Group C++ compiler.
  12631. lt_prog_compiler_wl_CXX='-Wl,'
  12632. lt_prog_compiler_pic_CXX='-fpic'
  12633. lt_prog_compiler_static_CXX='-Bstatic'
  12634. ;;
  12635. cxx*)
  12636. # Compaq C++
  12637. # Make sure the PIC flag is empty. It appears that all Alpha
  12638. # Linux and Compaq Tru64 Unix objects are PIC.
  12639. lt_prog_compiler_pic_CXX=
  12640. lt_prog_compiler_static_CXX='-non_shared'
  12641. ;;
  12642. *)
  12643. ;;
  12644. esac
  12645. ;;
  12646. lynxos*)
  12647. ;;
  12648. m88k*)
  12649. ;;
  12650. mvs*)
  12651. case $cc_basename in
  12652. cxx*)
  12653. lt_prog_compiler_pic_CXX='-W c,exportall'
  12654. ;;
  12655. *)
  12656. ;;
  12657. esac
  12658. ;;
  12659. netbsd*)
  12660. ;;
  12661. osf3* | osf4* | osf5*)
  12662. case $cc_basename in
  12663. KCC*)
  12664. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12665. ;;
  12666. RCC*)
  12667. # Rational C++ 2.4.1
  12668. lt_prog_compiler_pic_CXX='-pic'
  12669. ;;
  12670. cxx*)
  12671. # Digital/Compaq C++
  12672. lt_prog_compiler_wl_CXX='-Wl,'
  12673. # Make sure the PIC flag is empty. It appears that all Alpha
  12674. # Linux and Compaq Tru64 Unix objects are PIC.
  12675. lt_prog_compiler_pic_CXX=
  12676. lt_prog_compiler_static_CXX='-non_shared'
  12677. ;;
  12678. *)
  12679. ;;
  12680. esac
  12681. ;;
  12682. psos*)
  12683. ;;
  12684. solaris*)
  12685. case $cc_basename in
  12686. CC*)
  12687. # Sun C++ 4.2, 5.x and Centerline C++
  12688. lt_prog_compiler_pic_CXX='-KPIC'
  12689. lt_prog_compiler_static_CXX='-Bstatic'
  12690. lt_prog_compiler_wl_CXX='-Qoption ld '
  12691. ;;
  12692. gcx*)
  12693. # Green Hills C++ Compiler
  12694. lt_prog_compiler_pic_CXX='-PIC'
  12695. ;;
  12696. *)
  12697. ;;
  12698. esac
  12699. ;;
  12700. sunos4*)
  12701. case $cc_basename in
  12702. CC*)
  12703. # Sun C++ 4.x
  12704. lt_prog_compiler_pic_CXX='-pic'
  12705. lt_prog_compiler_static_CXX='-Bstatic'
  12706. ;;
  12707. lcc*)
  12708. # Lucid
  12709. lt_prog_compiler_pic_CXX='-pic'
  12710. ;;
  12711. *)
  12712. ;;
  12713. esac
  12714. ;;
  12715. tandem*)
  12716. case $cc_basename in
  12717. NCC*)
  12718. # NonStop-UX NCC 3.20
  12719. lt_prog_compiler_pic_CXX='-KPIC'
  12720. ;;
  12721. *)
  12722. ;;
  12723. esac
  12724. ;;
  12725. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12726. case $cc_basename in
  12727. CC*)
  12728. lt_prog_compiler_wl_CXX='-Wl,'
  12729. lt_prog_compiler_pic_CXX='-KPIC'
  12730. lt_prog_compiler_static_CXX='-Bstatic'
  12731. ;;
  12732. esac
  12733. ;;
  12734. vxworks*)
  12735. ;;
  12736. *)
  12737. lt_prog_compiler_can_build_shared_CXX=no
  12738. ;;
  12739. esac
  12740. fi
  12741. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  12742. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  12743. #
  12744. # Check to make sure the PIC flag actually works.
  12745. #
  12746. if test -n "$lt_prog_compiler_pic_CXX"; then
  12747. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12748. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  12749. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  12750. echo $ECHO_N "(cached) $ECHO_C" >&6
  12751. else
  12752. lt_prog_compiler_pic_works_CXX=no
  12753. ac_outfile=conftest.$ac_objext
  12754. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12755. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12756. # Insert the option either (1) after the last *FLAGS variable, or
  12757. # (2) before a word containing "conftest.", or (3) at the end.
  12758. # Note that $ac_compile itself does not contain backslashes and begins
  12759. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12760. # The option is referenced via a variable to avoid confusing sed.
  12761. lt_compile=`echo "$ac_compile" | $SED \
  12762. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12763. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12764. -e 's:$: $lt_compiler_flag:'`
  12765. (eval echo "\"\$as_me:14258: $lt_compile\"" >&5)
  12766. (eval "$lt_compile" 2>conftest.err)
  12767. ac_status=$?
  12768. cat conftest.err >&5
  12769. echo "$as_me:14262: \$? = $ac_status" >&5
  12770. if (exit $ac_status) && test -s "$ac_outfile"; then
  12771. # The compiler can only warn and ignore the option if not recognized
  12772. # So say no if there are warnings other than the usual output.
  12773. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12774. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12775. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12776. lt_prog_compiler_pic_works_CXX=yes
  12777. fi
  12778. fi
  12779. $rm conftest*
  12780. fi
  12781. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  12782. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  12783. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  12784. case $lt_prog_compiler_pic_CXX in
  12785. "" | " "*) ;;
  12786. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12787. esac
  12788. else
  12789. lt_prog_compiler_pic_CXX=
  12790. lt_prog_compiler_can_build_shared_CXX=no
  12791. fi
  12792. fi
  12793. case $host_os in
  12794. # For platforms which do not support PIC, -DPIC is meaningless:
  12795. *djgpp*)
  12796. lt_prog_compiler_pic_CXX=
  12797. ;;
  12798. *)
  12799. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12800. ;;
  12801. esac
  12802. #
  12803. # Check to make sure the static flag actually works.
  12804. #
  12805. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12806. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12807. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  12808. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  12809. echo $ECHO_N "(cached) $ECHO_C" >&6
  12810. else
  12811. lt_prog_compiler_static_works_CXX=no
  12812. save_LDFLAGS="$LDFLAGS"
  12813. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12814. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  12815. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12816. # The linker can only warn and ignore the option if not recognized
  12817. # So say no if there are warnings
  12818. if test -s conftest.err; then
  12819. # Append any errors to the config.log.
  12820. cat conftest.err 1>&5
  12821. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12822. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12823. if diff conftest.exp conftest.er2 >/dev/null; then
  12824. lt_prog_compiler_static_works_CXX=yes
  12825. fi
  12826. else
  12827. lt_prog_compiler_static_works_CXX=yes
  12828. fi
  12829. fi
  12830. $rm conftest*
  12831. LDFLAGS="$save_LDFLAGS"
  12832. fi
  12833. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  12834. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
  12835. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  12836. :
  12837. else
  12838. lt_prog_compiler_static_CXX=
  12839. fi
  12840. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12841. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  12842. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  12843. echo $ECHO_N "(cached) $ECHO_C" >&6
  12844. else
  12845. lt_cv_prog_compiler_c_o_CXX=no
  12846. $rm -r conftest 2>/dev/null
  12847. mkdir conftest
  12848. cd conftest
  12849. mkdir out
  12850. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12851. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12852. # Insert the option either (1) after the last *FLAGS variable, or
  12853. # (2) before a word containing "conftest.", or (3) at the end.
  12854. # Note that $ac_compile itself does not contain backslashes and begins
  12855. # with a dollar sign (not a hyphen), so the echo should work correctly.
  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:14362: $lt_compile\"" >&5)
  12861. (eval "$lt_compile" 2>out/conftest.err)
  12862. ac_status=$?
  12863. cat out/conftest.err >&5
  12864. echo "$as_me:14366: \$? = $ac_status" >&5
  12865. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12866. then
  12867. # The compiler can only warn and ignore the option if not recognized
  12868. # So say no if there are warnings
  12869. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12870. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12871. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12872. lt_cv_prog_compiler_c_o_CXX=yes
  12873. fi
  12874. fi
  12875. chmod u+w . 2>&5
  12876. $rm conftest*
  12877. # SGI C++ compiler will create directory out/ii_files/ for
  12878. # template instantiation
  12879. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12880. $rm out/* && rmdir out
  12881. cd ..
  12882. rmdir conftest
  12883. $rm conftest*
  12884. fi
  12885. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12886. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12887. hard_links="nottested"
  12888. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12889. # do not overwrite the value of need_locks provided by the user
  12890. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12891. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  12892. hard_links=yes
  12893. $rm conftest*
  12894. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12895. touch conftest.a
  12896. ln conftest.a conftest.b 2>&5 || hard_links=no
  12897. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12898. { echo "$as_me:$LINENO: result: $hard_links" >&5
  12899. echo "${ECHO_T}$hard_links" >&6; }
  12900. if test "$hard_links" = no; then
  12901. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12902. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12903. need_locks=warn
  12904. fi
  12905. else
  12906. need_locks=no
  12907. fi
  12908. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12909. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  12910. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12911. case $host_os in
  12912. aix4* | aix5*)
  12913. # If we're using GNU nm, then we don't want the "-C" option.
  12914. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12915. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12916. 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'
  12917. else
  12918. 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'
  12919. fi
  12920. ;;
  12921. pw32*)
  12922. export_symbols_cmds_CXX="$ltdll_cmds"
  12923. ;;
  12924. cygwin* | mingw*)
  12925. 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'
  12926. ;;
  12927. *)
  12928. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12929. ;;
  12930. esac
  12931. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  12932. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  12933. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12934. #
  12935. # Do we need to explicitly link libc?
  12936. #
  12937. case "x$archive_cmds_need_lc_CXX" in
  12938. x|xyes)
  12939. # Assume -lc should be added
  12940. archive_cmds_need_lc_CXX=yes
  12941. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12942. case $archive_cmds_CXX in
  12943. *'~'*)
  12944. # FIXME: we may have to deal with multi-command sequences.
  12945. ;;
  12946. '$CC '*)
  12947. # Test whether the compiler implicitly links with -lc since on some
  12948. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12949. # to ld, don't add -lc before -lgcc.
  12950. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  12951. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  12952. $rm conftest*
  12953. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12954. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12955. (eval $ac_compile) 2>&5
  12956. ac_status=$?
  12957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12958. (exit $ac_status); } 2>conftest.err; then
  12959. soname=conftest
  12960. lib=conftest
  12961. libobjs=conftest.$ac_objext
  12962. deplibs=
  12963. wl=$lt_prog_compiler_wl_CXX
  12964. pic_flag=$lt_prog_compiler_pic_CXX
  12965. compiler_flags=-v
  12966. linker_flags=-v
  12967. verstring=
  12968. output_objdir=.
  12969. libname=conftest
  12970. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12971. allow_undefined_flag_CXX=
  12972. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  12973. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12974. ac_status=$?
  12975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12976. (exit $ac_status); }
  12977. then
  12978. archive_cmds_need_lc_CXX=no
  12979. else
  12980. archive_cmds_need_lc_CXX=yes
  12981. fi
  12982. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12983. else
  12984. cat conftest.err 1>&5
  12985. fi
  12986. $rm conftest*
  12987. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  12988. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  12989. ;;
  12990. esac
  12991. fi
  12992. ;;
  12993. esac
  12994. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  12995. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  12996. library_names_spec=
  12997. libname_spec='lib$name'
  12998. soname_spec=
  12999. shrext_cmds=".so"
  13000. postinstall_cmds=
  13001. postuninstall_cmds=
  13002. finish_cmds=
  13003. finish_eval=
  13004. shlibpath_var=
  13005. shlibpath_overrides_runpath=unknown
  13006. version_type=none
  13007. dynamic_linker="$host_os ld.so"
  13008. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13009. if test "$GCC" = yes; then
  13010. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13011. if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  13012. # if the path contains ";" then we assume it to be the separator
  13013. # otherwise default to the standard path separator (i.e. ":") - it is
  13014. # assumed that no part of a normal pathname contains ";" but that should
  13015. # okay in the real world where ";" in dirpaths is itself problematic.
  13016. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13017. else
  13018. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13019. fi
  13020. else
  13021. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  13022. fi
  13023. need_lib_prefix=unknown
  13024. hardcode_into_libs=no
  13025. # when you set need_version to no, make sure it does not cause -set_version
  13026. # flags to be left without arguments
  13027. need_version=unknown
  13028. case $host_os in
  13029. aix3*)
  13030. version_type=linux
  13031. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13032. shlibpath_var=LIBPATH
  13033. # AIX 3 has no versioning support, so we append a major version to the name.
  13034. soname_spec='${libname}${release}${shared_ext}$major'
  13035. ;;
  13036. aix4* | aix5*)
  13037. version_type=linux
  13038. need_lib_prefix=no
  13039. need_version=no
  13040. hardcode_into_libs=yes
  13041. if test "$host_cpu" = ia64; then
  13042. # AIX 5 supports IA64
  13043. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13044. shlibpath_var=LD_LIBRARY_PATH
  13045. else
  13046. # With GCC up to 2.95.x, collect2 would create an import file
  13047. # for dependence libraries. The import file would start with
  13048. # the line `#! .'. This would cause the generated library to
  13049. # depend on `.', always an invalid library. This was fixed in
  13050. # development snapshots of GCC prior to 3.0.
  13051. case $host_os in
  13052. aix4 | aix4.[01] | aix4.[01].*)
  13053. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13054. echo ' yes '
  13055. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13056. :
  13057. else
  13058. can_build_shared=no
  13059. fi
  13060. ;;
  13061. esac
  13062. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  13063. # soname into executable. Probably we can add versioning support to
  13064. # collect2, so additional links can be useful in future.
  13065. if test "$aix_use_runtimelinking" = yes; then
  13066. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  13067. # instead of lib<name>.a to let people know that these are not
  13068. # typical AIX shared libraries.
  13069. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13070. else
  13071. # We preserve .a as extension for shared libraries through AIX4.2
  13072. # and later when we are not doing run time linking.
  13073. library_names_spec='${libname}${release}.a $libname.a'
  13074. soname_spec='${libname}${release}${shared_ext}$major'
  13075. fi
  13076. shlibpath_var=LIBPATH
  13077. fi
  13078. ;;
  13079. amigaos*)
  13080. library_names_spec='$libname.ixlibrary $libname.a'
  13081. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  13082. 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'
  13083. ;;
  13084. beos*)
  13085. library_names_spec='${libname}${shared_ext}'
  13086. dynamic_linker="$host_os ld.so"
  13087. shlibpath_var=LIBRARY_PATH
  13088. ;;
  13089. bsdi[45]*)
  13090. version_type=linux
  13091. need_version=no
  13092. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13093. soname_spec='${libname}${release}${shared_ext}$major'
  13094. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  13095. shlibpath_var=LD_LIBRARY_PATH
  13096. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  13097. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  13098. # the default ld.so.conf also contains /usr/contrib/lib and
  13099. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  13100. # libtool to hard-code these into programs
  13101. ;;
  13102. cygwin* | mingw* | pw32*)
  13103. version_type=windows
  13104. shrext_cmds=".dll"
  13105. need_version=no
  13106. need_lib_prefix=no
  13107. case $GCC,$host_os in
  13108. yes,cygwin* | yes,mingw* | yes,pw32*)
  13109. library_names_spec='$libname.dll.a'
  13110. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  13111. postinstall_cmds='base_file=`basename \${file}`~
  13112. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  13113. dldir=$destdir/`dirname \$dlpath`~
  13114. test -d \$dldir || mkdir -p \$dldir~
  13115. $install_prog $dir/$dlname \$dldir/$dlname~
  13116. chmod a+x \$dldir/$dlname'
  13117. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  13118. dlpath=$dir/\$dldll~
  13119. $rm \$dlpath'
  13120. shlibpath_overrides_runpath=yes
  13121. case $host_os in
  13122. cygwin*)
  13123. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  13124. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13125. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  13126. ;;
  13127. mingw*)
  13128. # MinGW DLLs use traditional 'lib' prefix
  13129. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13130. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  13131. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  13132. # It is most probably a Windows format PATH printed by
  13133. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  13134. # path with ; separators, and with drive letters. We can handle the
  13135. # drive letters (cygwin fileutils understands them), so leave them,
  13136. # especially as we might pass files found there to a mingw objdump,
  13137. # which wouldn't understand a cygwinified path. Ahh.
  13138. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  13139. else
  13140. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  13141. fi
  13142. ;;
  13143. pw32*)
  13144. # pw32 DLLs use 'pw' prefix rather than 'lib'
  13145. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  13146. ;;
  13147. esac
  13148. ;;
  13149. *)
  13150. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  13151. ;;
  13152. esac
  13153. dynamic_linker='Win32 ld.exe'
  13154. # FIXME: first we should search . and the directory the executable is in
  13155. shlibpath_var=PATH
  13156. ;;
  13157. darwin* | rhapsody*)
  13158. dynamic_linker="$host_os dyld"
  13159. version_type=darwin
  13160. need_lib_prefix=no
  13161. need_version=no
  13162. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  13163. soname_spec='${libname}${release}${major}$shared_ext'
  13164. shlibpath_overrides_runpath=yes
  13165. shlibpath_var=DYLD_LIBRARY_PATH
  13166. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  13167. # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  13168. if test "$GCC" = yes; then
  13169. sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  13170. else
  13171. sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  13172. fi
  13173. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  13174. ;;
  13175. dgux*)
  13176. version_type=linux
  13177. need_lib_prefix=no
  13178. need_version=no
  13179. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  13180. soname_spec='${libname}${release}${shared_ext}$major'
  13181. shlibpath_var=LD_LIBRARY_PATH
  13182. ;;
  13183. freebsd1*)
  13184. dynamic_linker=no
  13185. ;;
  13186. kfreebsd*-gnu)
  13187. version_type=linux
  13188. need_lib_prefix=no
  13189. need_version=no
  13190. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13191. soname_spec='${libname}${release}${shared_ext}$major'
  13192. shlibpath_var=LD_LIBRARY_PATH
  13193. shlibpath_overrides_runpath=no
  13194. hardcode_into_libs=yes
  13195. dynamic_linker='GNU ld.so'
  13196. ;;
  13197. freebsd* | dragonfly*)
  13198. # DragonFly does not have aout. When/if they implement a new
  13199. # versioning mechanism, adjust this.
  13200. if test -x /usr/bin/objformat; then
  13201. objformat=`/usr/bin/objformat`
  13202. else
  13203. case $host_os in
  13204. freebsd[123]*) objformat=aout ;;
  13205. *) objformat=elf ;;
  13206. esac
  13207. fi
  13208. version_type=freebsd-$objformat
  13209. case $version_type in
  13210. freebsd-elf*)
  13211. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13212. need_version=no
  13213. need_lib_prefix=no
  13214. ;;
  13215. freebsd-*)
  13216. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13217. need_version=yes
  13218. ;;
  13219. esac
  13220. shlibpath_var=LD_LIBRARY_PATH
  13221. case $host_os in
  13222. freebsd2*)
  13223. shlibpath_overrides_runpath=yes
  13224. ;;
  13225. freebsd3.[01]* | freebsdelf3.[01]*)
  13226. shlibpath_overrides_runpath=yes
  13227. hardcode_into_libs=yes
  13228. ;;
  13229. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13230. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13231. shlibpath_overrides_runpath=no
  13232. hardcode_into_libs=yes
  13233. ;;
  13234. freebsd*) # from 4.6 on
  13235. shlibpath_overrides_runpath=yes
  13236. hardcode_into_libs=yes
  13237. ;;
  13238. esac
  13239. ;;
  13240. gnu*)
  13241. version_type=linux
  13242. need_lib_prefix=no
  13243. need_version=no
  13244. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13245. soname_spec='${libname}${release}${shared_ext}$major'
  13246. shlibpath_var=LD_LIBRARY_PATH
  13247. hardcode_into_libs=yes
  13248. ;;
  13249. hpux9* | hpux10* | hpux11*)
  13250. # Give a soname corresponding to the major version so that dld.sl refuses to
  13251. # link against other versions.
  13252. version_type=sunos
  13253. need_lib_prefix=no
  13254. need_version=no
  13255. case $host_cpu in
  13256. ia64*)
  13257. shrext_cmds='.so'
  13258. hardcode_into_libs=yes
  13259. dynamic_linker="$host_os dld.so"
  13260. shlibpath_var=LD_LIBRARY_PATH
  13261. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13262. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13263. soname_spec='${libname}${release}${shared_ext}$major'
  13264. if test "X$HPUX_IA64_MODE" = X32; then
  13265. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13266. else
  13267. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13268. fi
  13269. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13270. ;;
  13271. hppa*64*)
  13272. shrext_cmds='.sl'
  13273. hardcode_into_libs=yes
  13274. dynamic_linker="$host_os dld.sl"
  13275. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13276. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13277. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13278. soname_spec='${libname}${release}${shared_ext}$major'
  13279. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13280. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13281. ;;
  13282. *)
  13283. shrext_cmds='.sl'
  13284. dynamic_linker="$host_os dld.sl"
  13285. shlibpath_var=SHLIB_PATH
  13286. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13287. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13288. soname_spec='${libname}${release}${shared_ext}$major'
  13289. ;;
  13290. esac
  13291. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  13292. postinstall_cmds='chmod 555 $lib'
  13293. ;;
  13294. interix3*)
  13295. version_type=linux
  13296. need_lib_prefix=no
  13297. need_version=no
  13298. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13299. soname_spec='${libname}${release}${shared_ext}$major'
  13300. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13301. shlibpath_var=LD_LIBRARY_PATH
  13302. shlibpath_overrides_runpath=no
  13303. hardcode_into_libs=yes
  13304. ;;
  13305. irix5* | irix6* | nonstopux*)
  13306. case $host_os in
  13307. nonstopux*) version_type=nonstopux ;;
  13308. *)
  13309. if test "$lt_cv_prog_gnu_ld" = yes; then
  13310. version_type=linux
  13311. else
  13312. version_type=irix
  13313. fi ;;
  13314. esac
  13315. need_lib_prefix=no
  13316. need_version=no
  13317. soname_spec='${libname}${release}${shared_ext}$major'
  13318. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13319. case $host_os in
  13320. irix5* | nonstopux*)
  13321. libsuff= shlibsuff=
  13322. ;;
  13323. *)
  13324. case $LD in # libtool.m4 will add one of these switches to LD
  13325. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13326. libsuff= shlibsuff= libmagic=32-bit;;
  13327. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13328. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13329. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13330. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13331. *) libsuff= shlibsuff= libmagic=never-match;;
  13332. esac
  13333. ;;
  13334. esac
  13335. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13336. shlibpath_overrides_runpath=no
  13337. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13338. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13339. hardcode_into_libs=yes
  13340. ;;
  13341. # No shared lib support for Linux oldld, aout, or coff.
  13342. linux*oldld* | linux*aout* | linux*coff*)
  13343. dynamic_linker=no
  13344. ;;
  13345. # This must be Linux ELF.
  13346. linux*)
  13347. version_type=linux
  13348. need_lib_prefix=no
  13349. need_version=no
  13350. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13351. soname_spec='${libname}${release}${shared_ext}$major'
  13352. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13353. shlibpath_var=LD_LIBRARY_PATH
  13354. shlibpath_overrides_runpath=no
  13355. # This implies no fast_install, which is unacceptable.
  13356. # Some rework will be needed to allow for fast_install
  13357. # before this can be enabled.
  13358. hardcode_into_libs=yes
  13359. # Append ld.so.conf contents to the search path
  13360. if test -f /etc/ld.so.conf; then
  13361. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  13362. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13363. fi
  13364. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13365. # powerpc, because MkLinux only supported shared libraries with the
  13366. # GNU dynamic linker. Since this was broken with cross compilers,
  13367. # most powerpc-linux boxes support dynamic linking these days and
  13368. # people can always --disable-shared, the test was removed, and we
  13369. # assume the GNU/Linux dynamic linker is in use.
  13370. dynamic_linker='GNU/Linux ld.so'
  13371. ;;
  13372. knetbsd*-gnu)
  13373. version_type=linux
  13374. need_lib_prefix=no
  13375. need_version=no
  13376. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13377. soname_spec='${libname}${release}${shared_ext}$major'
  13378. shlibpath_var=LD_LIBRARY_PATH
  13379. shlibpath_overrides_runpath=no
  13380. hardcode_into_libs=yes
  13381. dynamic_linker='GNU ld.so'
  13382. ;;
  13383. netbsd*)
  13384. version_type=sunos
  13385. need_lib_prefix=no
  13386. need_version=no
  13387. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13388. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13389. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13390. dynamic_linker='NetBSD (a.out) ld.so'
  13391. else
  13392. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13393. soname_spec='${libname}${release}${shared_ext}$major'
  13394. dynamic_linker='NetBSD ld.elf_so'
  13395. fi
  13396. shlibpath_var=LD_LIBRARY_PATH
  13397. shlibpath_overrides_runpath=yes
  13398. hardcode_into_libs=yes
  13399. ;;
  13400. newsos6)
  13401. version_type=linux
  13402. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13403. shlibpath_var=LD_LIBRARY_PATH
  13404. shlibpath_overrides_runpath=yes
  13405. ;;
  13406. nto-qnx*)
  13407. version_type=linux
  13408. need_lib_prefix=no
  13409. need_version=no
  13410. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13411. soname_spec='${libname}${release}${shared_ext}$major'
  13412. shlibpath_var=LD_LIBRARY_PATH
  13413. shlibpath_overrides_runpath=yes
  13414. ;;
  13415. openbsd*)
  13416. version_type=sunos
  13417. sys_lib_dlsearch_path_spec="/usr/lib"
  13418. need_lib_prefix=no
  13419. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13420. case $host_os in
  13421. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13422. *) need_version=no ;;
  13423. esac
  13424. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13425. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13426. shlibpath_var=LD_LIBRARY_PATH
  13427. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13428. case $host_os in
  13429. openbsd2.[89] | openbsd2.[89].*)
  13430. shlibpath_overrides_runpath=no
  13431. ;;
  13432. *)
  13433. shlibpath_overrides_runpath=yes
  13434. ;;
  13435. esac
  13436. else
  13437. shlibpath_overrides_runpath=yes
  13438. fi
  13439. ;;
  13440. os2*)
  13441. libname_spec='$name'
  13442. shrext_cmds=".dll"
  13443. need_lib_prefix=no
  13444. library_names_spec='$libname${shared_ext} $libname.a'
  13445. dynamic_linker='OS/2 ld.exe'
  13446. shlibpath_var=LIBPATH
  13447. ;;
  13448. osf3* | osf4* | osf5*)
  13449. version_type=osf
  13450. need_lib_prefix=no
  13451. need_version=no
  13452. soname_spec='${libname}${release}${shared_ext}$major'
  13453. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13454. shlibpath_var=LD_LIBRARY_PATH
  13455. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13456. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13457. ;;
  13458. solaris*)
  13459. version_type=linux
  13460. need_lib_prefix=no
  13461. need_version=no
  13462. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13463. soname_spec='${libname}${release}${shared_ext}$major'
  13464. shlibpath_var=LD_LIBRARY_PATH
  13465. shlibpath_overrides_runpath=yes
  13466. hardcode_into_libs=yes
  13467. # ldd complains unless libraries are executable
  13468. postinstall_cmds='chmod +x $lib'
  13469. ;;
  13470. sunos4*)
  13471. version_type=sunos
  13472. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13473. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13474. shlibpath_var=LD_LIBRARY_PATH
  13475. shlibpath_overrides_runpath=yes
  13476. if test "$with_gnu_ld" = yes; then
  13477. need_lib_prefix=no
  13478. fi
  13479. need_version=yes
  13480. ;;
  13481. sysv4 | sysv4.3*)
  13482. version_type=linux
  13483. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13484. soname_spec='${libname}${release}${shared_ext}$major'
  13485. shlibpath_var=LD_LIBRARY_PATH
  13486. case $host_vendor in
  13487. sni)
  13488. shlibpath_overrides_runpath=no
  13489. need_lib_prefix=no
  13490. export_dynamic_flag_spec='${wl}-Blargedynsym'
  13491. runpath_var=LD_RUN_PATH
  13492. ;;
  13493. siemens)
  13494. need_lib_prefix=no
  13495. ;;
  13496. motorola)
  13497. need_lib_prefix=no
  13498. need_version=no
  13499. shlibpath_overrides_runpath=no
  13500. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13501. ;;
  13502. esac
  13503. ;;
  13504. sysv4*MP*)
  13505. if test -d /usr/nec ;then
  13506. version_type=linux
  13507. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13508. soname_spec='$libname${shared_ext}.$major'
  13509. shlibpath_var=LD_LIBRARY_PATH
  13510. fi
  13511. ;;
  13512. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13513. version_type=freebsd-elf
  13514. need_lib_prefix=no
  13515. need_version=no
  13516. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13517. soname_spec='${libname}${release}${shared_ext}$major'
  13518. shlibpath_var=LD_LIBRARY_PATH
  13519. hardcode_into_libs=yes
  13520. if test "$with_gnu_ld" = yes; then
  13521. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13522. shlibpath_overrides_runpath=no
  13523. else
  13524. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13525. shlibpath_overrides_runpath=yes
  13526. case $host_os in
  13527. sco3.2v5*)
  13528. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13529. ;;
  13530. esac
  13531. fi
  13532. sys_lib_dlsearch_path_spec='/usr/lib'
  13533. ;;
  13534. uts4*)
  13535. version_type=linux
  13536. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13537. soname_spec='${libname}${release}${shared_ext}$major'
  13538. shlibpath_var=LD_LIBRARY_PATH
  13539. ;;
  13540. *)
  13541. dynamic_linker=no
  13542. ;;
  13543. esac
  13544. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  13545. echo "${ECHO_T}$dynamic_linker" >&6; }
  13546. test "$dynamic_linker" = no && can_build_shared=no
  13547. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13548. if test "$GCC" = yes; then
  13549. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13550. fi
  13551. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  13552. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  13553. hardcode_action_CXX=
  13554. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  13555. test -n "$runpath_var_CXX" || \
  13556. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13557. # We can hardcode non-existant directories.
  13558. if test "$hardcode_direct_CXX" != no &&
  13559. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13560. # have to relink, otherwise we might link with an installed library
  13561. # when we should be linking with a yet-to-be-installed one
  13562. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13563. test "$hardcode_minus_L_CXX" != no; then
  13564. # Linking always hardcodes the temporary library directory.
  13565. hardcode_action_CXX=relink
  13566. else
  13567. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13568. hardcode_action_CXX=immediate
  13569. fi
  13570. else
  13571. # We cannot hardcode anything, or else we can only hardcode existing
  13572. # directories.
  13573. hardcode_action_CXX=unsupported
  13574. fi
  13575. { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  13576. echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  13577. if test "$hardcode_action_CXX" = relink; then
  13578. # Fast installation is not supported
  13579. enable_fast_install=no
  13580. elif test "$shlibpath_overrides_runpath" = yes ||
  13581. test "$enable_shared" = no; then
  13582. # Fast installation is not necessary
  13583. enable_fast_install=needless
  13584. fi
  13585. # The else clause should only fire when bootstrapping the
  13586. # libtool distribution, otherwise you forgot to ship ltmain.sh
  13587. # with your package, and you will get complaints that there are
  13588. # no rules to generate ltmain.sh.
  13589. if test -f "$ltmain"; then
  13590. # See if we are running on zsh, and set the options which allow our commands through
  13591. # without removal of \ escapes.
  13592. if test -n "${ZSH_VERSION+set}" ; then
  13593. setopt NO_GLOB_SUBST
  13594. fi
  13595. # Now quote all the things that may contain metacharacters while being
  13596. # careful not to overquote the AC_SUBSTed values. We take copies of the
  13597. # variables and quote the copies for generation of the libtool script.
  13598. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  13599. SED SHELL STRIP \
  13600. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  13601. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  13602. deplibs_check_method reload_flag reload_cmds need_locks \
  13603. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  13604. lt_cv_sys_global_symbol_to_c_name_address \
  13605. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  13606. old_postinstall_cmds old_postuninstall_cmds \
  13607. compiler_CXX \
  13608. CC_CXX \
  13609. LD_CXX \
  13610. lt_prog_compiler_wl_CXX \
  13611. lt_prog_compiler_pic_CXX \
  13612. lt_prog_compiler_static_CXX \
  13613. lt_prog_compiler_no_builtin_flag_CXX \
  13614. export_dynamic_flag_spec_CXX \
  13615. thread_safe_flag_spec_CXX \
  13616. whole_archive_flag_spec_CXX \
  13617. enable_shared_with_static_runtimes_CXX \
  13618. old_archive_cmds_CXX \
  13619. old_archive_from_new_cmds_CXX \
  13620. predep_objects_CXX \
  13621. postdep_objects_CXX \
  13622. predeps_CXX \
  13623. postdeps_CXX \
  13624. compiler_lib_search_path_CXX \
  13625. archive_cmds_CXX \
  13626. archive_expsym_cmds_CXX \
  13627. postinstall_cmds_CXX \
  13628. postuninstall_cmds_CXX \
  13629. old_archive_from_expsyms_cmds_CXX \
  13630. allow_undefined_flag_CXX \
  13631. no_undefined_flag_CXX \
  13632. export_symbols_cmds_CXX \
  13633. hardcode_libdir_flag_spec_CXX \
  13634. hardcode_libdir_flag_spec_ld_CXX \
  13635. hardcode_libdir_separator_CXX \
  13636. hardcode_automatic_CXX \
  13637. module_cmds_CXX \
  13638. module_expsym_cmds_CXX \
  13639. lt_cv_prog_compiler_c_o_CXX \
  13640. exclude_expsyms_CXX \
  13641. include_expsyms_CXX; do
  13642. case $var in
  13643. old_archive_cmds_CXX | \
  13644. old_archive_from_new_cmds_CXX | \
  13645. archive_cmds_CXX | \
  13646. archive_expsym_cmds_CXX | \
  13647. module_cmds_CXX | \
  13648. module_expsym_cmds_CXX | \
  13649. old_archive_from_expsyms_cmds_CXX | \
  13650. export_symbols_cmds_CXX | \
  13651. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  13652. postinstall_cmds | postuninstall_cmds | \
  13653. old_postinstall_cmds | old_postuninstall_cmds | \
  13654. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  13655. # Double-quote double-evaled strings.
  13656. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  13657. ;;
  13658. *)
  13659. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  13660. ;;
  13661. esac
  13662. done
  13663. case $lt_echo in
  13664. *'\$0 --fallback-echo"')
  13665. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  13666. ;;
  13667. esac
  13668. cfgfile="$ofile"
  13669. cat <<__EOF__ >> "$cfgfile"
  13670. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  13671. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13672. # Shell to use when invoking shell scripts.
  13673. SHELL=$lt_SHELL
  13674. # Whether or not to build shared libraries.
  13675. build_libtool_libs=$enable_shared
  13676. # Whether or not to build static libraries.
  13677. build_old_libs=$enable_static
  13678. # Whether or not to add -lc for building shared libraries.
  13679. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  13680. # Whether or not to disallow shared libs when runtime libs are static
  13681. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  13682. # Whether or not to optimize for fast installation.
  13683. fast_install=$enable_fast_install
  13684. # The host system.
  13685. host_alias=$host_alias
  13686. host=$host
  13687. host_os=$host_os
  13688. # The build system.
  13689. build_alias=$build_alias
  13690. build=$build
  13691. build_os=$build_os
  13692. # An echo program that does not interpret backslashes.
  13693. echo=$lt_echo
  13694. # The archiver.
  13695. AR=$lt_AR
  13696. AR_FLAGS=$lt_AR_FLAGS
  13697. # A C compiler.
  13698. LTCC=$lt_LTCC
  13699. # LTCC compiler flags.
  13700. LTCFLAGS=$lt_LTCFLAGS
  13701. # A language-specific compiler.
  13702. CC=$lt_compiler_CXX
  13703. # Is the compiler the GNU C compiler?
  13704. with_gcc=$GCC_CXX
  13705. # An ERE matcher.
  13706. EGREP=$lt_EGREP
  13707. # The linker used to build libraries.
  13708. LD=$lt_LD_CXX
  13709. # Whether we need hard or soft links.
  13710. LN_S=$lt_LN_S
  13711. # A BSD-compatible nm program.
  13712. NM=$lt_NM
  13713. # A symbol stripping program
  13714. STRIP=$lt_STRIP
  13715. # Used to examine libraries when file_magic_cmd begins "file"
  13716. MAGIC_CMD=$MAGIC_CMD
  13717. # Used on cygwin: DLL creation program.
  13718. DLLTOOL="$DLLTOOL"
  13719. # Used on cygwin: object dumper.
  13720. OBJDUMP="$OBJDUMP"
  13721. # Used on cygwin: assembler.
  13722. AS="$AS"
  13723. # The name of the directory that contains temporary libtool files.
  13724. objdir=$objdir
  13725. # How to create reloadable object files.
  13726. reload_flag=$lt_reload_flag
  13727. reload_cmds=$lt_reload_cmds
  13728. # How to pass a linker flag through the compiler.
  13729. wl=$lt_lt_prog_compiler_wl_CXX
  13730. # Object file suffix (normally "o").
  13731. objext="$ac_objext"
  13732. # Old archive suffix (normally "a").
  13733. libext="$libext"
  13734. # Shared library suffix (normally ".so").
  13735. shrext_cmds='$shrext_cmds'
  13736. # Executable file suffix (normally "").
  13737. exeext="$exeext"
  13738. # Additional compiler flags for building library objects.
  13739. pic_flag=$lt_lt_prog_compiler_pic_CXX
  13740. pic_mode=$pic_mode
  13741. # What is the maximum length of a command?
  13742. max_cmd_len=$lt_cv_sys_max_cmd_len
  13743. # Does compiler simultaneously support -c and -o options?
  13744. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  13745. # Must we lock files when doing compilation?
  13746. need_locks=$lt_need_locks
  13747. # Do we need the lib prefix for modules?
  13748. need_lib_prefix=$need_lib_prefix
  13749. # Do we need a version for libraries?
  13750. need_version=$need_version
  13751. # Whether dlopen is supported.
  13752. dlopen_support=$enable_dlopen
  13753. # Whether dlopen of programs is supported.
  13754. dlopen_self=$enable_dlopen_self
  13755. # Whether dlopen of statically linked programs is supported.
  13756. dlopen_self_static=$enable_dlopen_self_static
  13757. # Compiler flag to prevent dynamic linking.
  13758. link_static_flag=$lt_lt_prog_compiler_static_CXX
  13759. # Compiler flag to turn off builtin functions.
  13760. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  13761. # Compiler flag to allow reflexive dlopens.
  13762. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  13763. # Compiler flag to generate shared objects directly from archives.
  13764. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  13765. # Compiler flag to generate thread-safe objects.
  13766. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  13767. # Library versioning type.
  13768. version_type=$version_type
  13769. # Format of library name prefix.
  13770. libname_spec=$lt_libname_spec
  13771. # List of archive names. First name is the real one, the rest are links.
  13772. # The last name is the one that the linker finds with -lNAME.
  13773. library_names_spec=$lt_library_names_spec
  13774. # The coded name of the library, if different from the real name.
  13775. soname_spec=$lt_soname_spec
  13776. # Commands used to build and install an old-style archive.
  13777. RANLIB=$lt_RANLIB
  13778. old_archive_cmds=$lt_old_archive_cmds_CXX
  13779. old_postinstall_cmds=$lt_old_postinstall_cmds
  13780. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  13781. # Create an old-style archive from a shared archive.
  13782. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  13783. # Create a temporary old-style archive to link instead of a shared archive.
  13784. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  13785. # Commands used to build and install a shared archive.
  13786. archive_cmds=$lt_archive_cmds_CXX
  13787. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  13788. postinstall_cmds=$lt_postinstall_cmds
  13789. postuninstall_cmds=$lt_postuninstall_cmds
  13790. # Commands used to build a loadable module (assumed same as above if empty)
  13791. module_cmds=$lt_module_cmds_CXX
  13792. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  13793. # Commands to strip libraries.
  13794. old_striplib=$lt_old_striplib
  13795. striplib=$lt_striplib
  13796. # Dependencies to place before the objects being linked to create a
  13797. # shared library.
  13798. predep_objects=$lt_predep_objects_CXX
  13799. # Dependencies to place after the objects being linked to create a
  13800. # shared library.
  13801. postdep_objects=$lt_postdep_objects_CXX
  13802. # Dependencies to place before the objects being linked to create a
  13803. # shared library.
  13804. predeps=$lt_predeps_CXX
  13805. # Dependencies to place after the objects being linked to create a
  13806. # shared library.
  13807. postdeps=$lt_postdeps_CXX
  13808. # The library search path used internally by the compiler when linking
  13809. # a shared library.
  13810. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  13811. # Method to check whether dependent libraries are shared objects.
  13812. deplibs_check_method=$lt_deplibs_check_method
  13813. # Command to use when deplibs_check_method == file_magic.
  13814. file_magic_cmd=$lt_file_magic_cmd
  13815. # Flag that allows shared libraries with undefined symbols to be built.
  13816. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  13817. # Flag that forces no undefined symbols.
  13818. no_undefined_flag=$lt_no_undefined_flag_CXX
  13819. # Commands used to finish a libtool library installation in a directory.
  13820. finish_cmds=$lt_finish_cmds
  13821. # Same as above, but a single script fragment to be evaled but not shown.
  13822. finish_eval=$lt_finish_eval
  13823. # Take the output of nm and produce a listing of raw symbols and C names.
  13824. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  13825. # Transform the output of nm in a proper C declaration
  13826. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  13827. # Transform the output of nm in a C name address pair
  13828. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  13829. # This is the shared library runtime path variable.
  13830. runpath_var=$runpath_var
  13831. # This is the shared library path variable.
  13832. shlibpath_var=$shlibpath_var
  13833. # Is shlibpath searched before the hard-coded library search path?
  13834. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  13835. # How to hardcode a shared library path into an executable.
  13836. hardcode_action=$hardcode_action_CXX
  13837. # Whether we should hardcode library paths into libraries.
  13838. hardcode_into_libs=$hardcode_into_libs
  13839. # Flag to hardcode \$libdir into a binary during linking.
  13840. # This must work even if \$libdir does not exist.
  13841. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  13842. # If ld is used when linking, flag to hardcode \$libdir into
  13843. # a binary during linking. This must work even if \$libdir does
  13844. # not exist.
  13845. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  13846. # Whether we need a single -rpath flag with a separated argument.
  13847. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  13848. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  13849. # resulting binary.
  13850. hardcode_direct=$hardcode_direct_CXX
  13851. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  13852. # resulting binary.
  13853. hardcode_minus_L=$hardcode_minus_L_CXX
  13854. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  13855. # the resulting binary.
  13856. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  13857. # Set to yes if building a shared library automatically hardcodes DIR into the library
  13858. # and all subsequent libraries and executables linked against it.
  13859. hardcode_automatic=$hardcode_automatic_CXX
  13860. # Variables whose values should be saved in libtool wrapper scripts and
  13861. # restored at relink time.
  13862. variables_saved_for_relink="$variables_saved_for_relink"
  13863. # Whether libtool must link a program against all its dependency libraries.
  13864. link_all_deplibs=$link_all_deplibs_CXX
  13865. # Compile-time system search path for libraries
  13866. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  13867. # Run-time system search path for libraries
  13868. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  13869. # Fix the shell variable \$srcfile for the compiler.
  13870. fix_srcfile_path="$fix_srcfile_path_CXX"
  13871. # Set to yes if exported symbols are required.
  13872. always_export_symbols=$always_export_symbols_CXX
  13873. # The commands to list exported symbols.
  13874. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  13875. # The commands to extract the exported symbol list from a shared archive.
  13876. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  13877. # Symbols that should not be listed in the preloaded symbols.
  13878. exclude_expsyms=$lt_exclude_expsyms_CXX
  13879. # Symbols that must always be exported.
  13880. include_expsyms=$lt_include_expsyms_CXX
  13881. # ### END LIBTOOL TAG CONFIG: $tagname
  13882. __EOF__
  13883. else
  13884. # If there is no Makefile yet, we rely on a make rule to execute
  13885. # `config.status --recheck' to rerun these tests and create the
  13886. # libtool script then.
  13887. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  13888. if test -f "$ltmain_in"; then
  13889. test -f Makefile && make "$ltmain"
  13890. fi
  13891. fi
  13892. ac_ext=c
  13893. ac_cpp='$CPP $CPPFLAGS'
  13894. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13895. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13896. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13897. CC=$lt_save_CC
  13898. LDCXX=$LD
  13899. LD=$lt_save_LD
  13900. GCC=$lt_save_GCC
  13901. with_gnu_ldcxx=$with_gnu_ld
  13902. with_gnu_ld=$lt_save_with_gnu_ld
  13903. lt_cv_path_LDCXX=$lt_cv_path_LD
  13904. lt_cv_path_LD=$lt_save_path_LD
  13905. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13906. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13907. else
  13908. tagname=""
  13909. fi
  13910. ;;
  13911. F77)
  13912. if test -n "$F77" && test "X$F77" != "Xno"; then
  13913. ac_ext=f
  13914. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  13915. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13916. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  13917. archive_cmds_need_lc_F77=no
  13918. allow_undefined_flag_F77=
  13919. always_export_symbols_F77=no
  13920. archive_expsym_cmds_F77=
  13921. export_dynamic_flag_spec_F77=
  13922. hardcode_direct_F77=no
  13923. hardcode_libdir_flag_spec_F77=
  13924. hardcode_libdir_flag_spec_ld_F77=
  13925. hardcode_libdir_separator_F77=
  13926. hardcode_minus_L_F77=no
  13927. hardcode_automatic_F77=no
  13928. module_cmds_F77=
  13929. module_expsym_cmds_F77=
  13930. link_all_deplibs_F77=unknown
  13931. old_archive_cmds_F77=$old_archive_cmds
  13932. no_undefined_flag_F77=
  13933. whole_archive_flag_spec_F77=
  13934. enable_shared_with_static_runtimes_F77=no
  13935. # Source file extension for f77 test sources.
  13936. ac_ext=f
  13937. # Object file extension for compiled f77 test sources.
  13938. objext=o
  13939. objext_F77=$objext
  13940. # Code to be used in simple compile tests
  13941. lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  13942. # Code to be used in simple link tests
  13943. lt_simple_link_test_code=" program t\n end\n"
  13944. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13945. # If no C compiler was specified, use CC.
  13946. LTCC=${LTCC-"$CC"}
  13947. # If no C compiler flags were specified, use CFLAGS.
  13948. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  13949. # Allow CC to be a program name with arguments.
  13950. compiler=$CC
  13951. # save warnings/boilerplate of simple test code
  13952. ac_outfile=conftest.$ac_objext
  13953. printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  13954. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13955. _lt_compiler_boilerplate=`cat conftest.err`
  13956. $rm conftest*
  13957. ac_outfile=conftest.$ac_objext
  13958. printf "$lt_simple_link_test_code" >conftest.$ac_ext
  13959. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13960. _lt_linker_boilerplate=`cat conftest.err`
  13961. $rm conftest*
  13962. # Allow CC to be a program name with arguments.
  13963. lt_save_CC="$CC"
  13964. CC=${F77-"f77"}
  13965. compiler=$CC
  13966. compiler_F77=$CC
  13967. for cc_temp in $compiler""; do
  13968. case $cc_temp in
  13969. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13970. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13971. \-*) ;;
  13972. *) break;;
  13973. esac
  13974. done
  13975. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13976. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  13977. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  13978. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  13979. echo "${ECHO_T}$can_build_shared" >&6; }
  13980. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  13981. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  13982. test "$can_build_shared" = "no" && enable_shared=no
  13983. # On AIX, shared libraries and static libraries use the same namespace, and
  13984. # are all built from PIC.
  13985. case $host_os in
  13986. aix3*)
  13987. test "$enable_shared" = yes && enable_static=no
  13988. if test -n "$RANLIB"; then
  13989. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  13990. postinstall_cmds='$RANLIB $lib'
  13991. fi
  13992. ;;
  13993. aix4* | aix5*)
  13994. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  13995. test "$enable_shared" = yes && enable_static=no
  13996. fi
  13997. ;;
  13998. esac
  13999. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  14000. echo "${ECHO_T}$enable_shared" >&6; }
  14001. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  14002. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  14003. # Make sure either enable_shared or enable_static is yes.
  14004. test "$enable_shared" = yes || enable_static=yes
  14005. { echo "$as_me:$LINENO: result: $enable_static" >&5
  14006. echo "${ECHO_T}$enable_static" >&6; }
  14007. GCC_F77="$G77"
  14008. LD_F77="$LD"
  14009. lt_prog_compiler_wl_F77=
  14010. lt_prog_compiler_pic_F77=
  14011. lt_prog_compiler_static_F77=
  14012. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14013. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  14014. if test "$GCC" = yes; then
  14015. lt_prog_compiler_wl_F77='-Wl,'
  14016. lt_prog_compiler_static_F77='-static'
  14017. case $host_os in
  14018. aix*)
  14019. # All AIX code is PIC.
  14020. if test "$host_cpu" = ia64; then
  14021. # AIX 5 now supports IA64 processor
  14022. lt_prog_compiler_static_F77='-Bstatic'
  14023. fi
  14024. ;;
  14025. amigaos*)
  14026. # FIXME: we need at least 68020 code to build shared libraries, but
  14027. # adding the `-m68020' flag to GCC prevents building anything better,
  14028. # like `-m68040'.
  14029. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  14030. ;;
  14031. beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14032. # PIC is the default for these OSes.
  14033. ;;
  14034. mingw* | pw32* | os2*)
  14035. # This hack is so that the source file can tell whether it is being
  14036. # built for inclusion in a dll (and should export symbols for example).
  14037. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  14038. ;;
  14039. darwin* | rhapsody*)
  14040. # PIC is the default on this platform
  14041. # Common symbols not allowed in MH_DYLIB files
  14042. lt_prog_compiler_pic_F77='-fno-common'
  14043. ;;
  14044. interix3*)
  14045. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14046. # Instead, we relocate shared libraries at runtime.
  14047. ;;
  14048. msdosdjgpp*)
  14049. # Just because we use GCC doesn't mean we suddenly get shared libraries
  14050. # on systems that don't support them.
  14051. lt_prog_compiler_can_build_shared_F77=no
  14052. enable_shared=no
  14053. ;;
  14054. sysv4*MP*)
  14055. if test -d /usr/nec; then
  14056. lt_prog_compiler_pic_F77=-Kconform_pic
  14057. fi
  14058. ;;
  14059. hpux*)
  14060. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14061. # not for PA HP-UX.
  14062. case $host_cpu in
  14063. hppa*64*|ia64*)
  14064. # +Z the default
  14065. ;;
  14066. *)
  14067. lt_prog_compiler_pic_F77='-fPIC'
  14068. ;;
  14069. esac
  14070. ;;
  14071. *)
  14072. lt_prog_compiler_pic_F77='-fPIC'
  14073. ;;
  14074. esac
  14075. else
  14076. # PORTME Check for flag to pass linker flags through the system compiler.
  14077. case $host_os in
  14078. aix*)
  14079. lt_prog_compiler_wl_F77='-Wl,'
  14080. if test "$host_cpu" = ia64; then
  14081. # AIX 5 now supports IA64 processor
  14082. lt_prog_compiler_static_F77='-Bstatic'
  14083. else
  14084. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  14085. fi
  14086. ;;
  14087. darwin*)
  14088. # PIC is the default on this platform
  14089. # Common symbols not allowed in MH_DYLIB files
  14090. case $cc_basename in
  14091. xlc*)
  14092. lt_prog_compiler_pic_F77='-qnocommon'
  14093. lt_prog_compiler_wl_F77='-Wl,'
  14094. ;;
  14095. esac
  14096. ;;
  14097. mingw* | pw32* | os2*)
  14098. # This hack is so that the source file can tell whether it is being
  14099. # built for inclusion in a dll (and should export symbols for example).
  14100. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  14101. ;;
  14102. hpux9* | hpux10* | hpux11*)
  14103. lt_prog_compiler_wl_F77='-Wl,'
  14104. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14105. # not for PA HP-UX.
  14106. case $host_cpu in
  14107. hppa*64*|ia64*)
  14108. # +Z the default
  14109. ;;
  14110. *)
  14111. lt_prog_compiler_pic_F77='+Z'
  14112. ;;
  14113. esac
  14114. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  14115. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  14116. ;;
  14117. irix5* | irix6* | nonstopux*)
  14118. lt_prog_compiler_wl_F77='-Wl,'
  14119. # PIC (with -KPIC) is the default.
  14120. lt_prog_compiler_static_F77='-non_shared'
  14121. ;;
  14122. newsos6)
  14123. lt_prog_compiler_pic_F77='-KPIC'
  14124. lt_prog_compiler_static_F77='-Bstatic'
  14125. ;;
  14126. linux*)
  14127. case $cc_basename in
  14128. icc* | ecc*)
  14129. lt_prog_compiler_wl_F77='-Wl,'
  14130. lt_prog_compiler_pic_F77='-KPIC'
  14131. lt_prog_compiler_static_F77='-static'
  14132. ;;
  14133. pgcc* | pgf77* | pgf90* | pgf95*)
  14134. # Portland Group compilers (*not* the Pentium gcc compiler,
  14135. # which looks to be a dead project)
  14136. lt_prog_compiler_wl_F77='-Wl,'
  14137. lt_prog_compiler_pic_F77='-fpic'
  14138. lt_prog_compiler_static_F77='-Bstatic'
  14139. ;;
  14140. ccc*)
  14141. lt_prog_compiler_wl_F77='-Wl,'
  14142. # All Alpha code is PIC.
  14143. lt_prog_compiler_static_F77='-non_shared'
  14144. ;;
  14145. esac
  14146. ;;
  14147. osf3* | osf4* | osf5*)
  14148. lt_prog_compiler_wl_F77='-Wl,'
  14149. # All OSF/1 code is PIC.
  14150. lt_prog_compiler_static_F77='-non_shared'
  14151. ;;
  14152. solaris*)
  14153. lt_prog_compiler_pic_F77='-KPIC'
  14154. lt_prog_compiler_static_F77='-Bstatic'
  14155. case $cc_basename in
  14156. f77* | f90* | f95*)
  14157. lt_prog_compiler_wl_F77='-Qoption ld ';;
  14158. *)
  14159. lt_prog_compiler_wl_F77='-Wl,';;
  14160. esac
  14161. ;;
  14162. sunos4*)
  14163. lt_prog_compiler_wl_F77='-Qoption ld '
  14164. lt_prog_compiler_pic_F77='-PIC'
  14165. lt_prog_compiler_static_F77='-Bstatic'
  14166. ;;
  14167. sysv4 | sysv4.2uw2* | sysv4.3*)
  14168. lt_prog_compiler_wl_F77='-Wl,'
  14169. lt_prog_compiler_pic_F77='-KPIC'
  14170. lt_prog_compiler_static_F77='-Bstatic'
  14171. ;;
  14172. sysv4*MP*)
  14173. if test -d /usr/nec ;then
  14174. lt_prog_compiler_pic_F77='-Kconform_pic'
  14175. lt_prog_compiler_static_F77='-Bstatic'
  14176. fi
  14177. ;;
  14178. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  14179. lt_prog_compiler_wl_F77='-Wl,'
  14180. lt_prog_compiler_pic_F77='-KPIC'
  14181. lt_prog_compiler_static_F77='-Bstatic'
  14182. ;;
  14183. unicos*)
  14184. lt_prog_compiler_wl_F77='-Wl,'
  14185. lt_prog_compiler_can_build_shared_F77=no
  14186. ;;
  14187. uts4*)
  14188. lt_prog_compiler_pic_F77='-pic'
  14189. lt_prog_compiler_static_F77='-Bstatic'
  14190. ;;
  14191. *)
  14192. lt_prog_compiler_can_build_shared_F77=no
  14193. ;;
  14194. esac
  14195. fi
  14196. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  14197. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  14198. #
  14199. # Check to make sure the PIC flag actually works.
  14200. #
  14201. if test -n "$lt_prog_compiler_pic_F77"; then
  14202. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  14203. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  14204. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  14205. echo $ECHO_N "(cached) $ECHO_C" >&6
  14206. else
  14207. lt_prog_compiler_pic_works_F77=no
  14208. ac_outfile=conftest.$ac_objext
  14209. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14210. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  14211. # Insert the option either (1) after the last *FLAGS variable, or
  14212. # (2) before a word containing "conftest.", or (3) at the end.
  14213. # Note that $ac_compile itself does not contain backslashes and begins
  14214. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14215. # The option is referenced via a variable to avoid confusing sed.
  14216. lt_compile=`echo "$ac_compile" | $SED \
  14217. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14218. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14219. -e 's:$: $lt_compiler_flag:'`
  14220. (eval echo "\"\$as_me:15932: $lt_compile\"" >&5)
  14221. (eval "$lt_compile" 2>conftest.err)
  14222. ac_status=$?
  14223. cat conftest.err >&5
  14224. echo "$as_me:15936: \$? = $ac_status" >&5
  14225. if (exit $ac_status) && test -s "$ac_outfile"; then
  14226. # The compiler can only warn and ignore the option if not recognized
  14227. # So say no if there are warnings other than the usual output.
  14228. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14229. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14230. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14231. lt_prog_compiler_pic_works_F77=yes
  14232. fi
  14233. fi
  14234. $rm conftest*
  14235. fi
  14236. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  14237. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  14238. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  14239. case $lt_prog_compiler_pic_F77 in
  14240. "" | " "*) ;;
  14241. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  14242. esac
  14243. else
  14244. lt_prog_compiler_pic_F77=
  14245. lt_prog_compiler_can_build_shared_F77=no
  14246. fi
  14247. fi
  14248. case $host_os in
  14249. # For platforms which do not support PIC, -DPIC is meaningless:
  14250. *djgpp*)
  14251. lt_prog_compiler_pic_F77=
  14252. ;;
  14253. *)
  14254. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  14255. ;;
  14256. esac
  14257. #
  14258. # Check to make sure the static flag actually works.
  14259. #
  14260. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  14261. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  14262. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  14263. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  14264. echo $ECHO_N "(cached) $ECHO_C" >&6
  14265. else
  14266. lt_prog_compiler_static_works_F77=no
  14267. save_LDFLAGS="$LDFLAGS"
  14268. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  14269. printf "$lt_simple_link_test_code" > conftest.$ac_ext
  14270. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  14271. # The linker can only warn and ignore the option if not recognized
  14272. # So say no if there are warnings
  14273. if test -s conftest.err; then
  14274. # Append any errors to the config.log.
  14275. cat conftest.err 1>&5
  14276. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  14277. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14278. if diff conftest.exp conftest.er2 >/dev/null; then
  14279. lt_prog_compiler_static_works_F77=yes
  14280. fi
  14281. else
  14282. lt_prog_compiler_static_works_F77=yes
  14283. fi
  14284. fi
  14285. $rm conftest*
  14286. LDFLAGS="$save_LDFLAGS"
  14287. fi
  14288. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  14289. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
  14290. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  14291. :
  14292. else
  14293. lt_prog_compiler_static_F77=
  14294. fi
  14295. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  14296. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  14297. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  14298. echo $ECHO_N "(cached) $ECHO_C" >&6
  14299. else
  14300. lt_cv_prog_compiler_c_o_F77=no
  14301. $rm -r conftest 2>/dev/null
  14302. mkdir conftest
  14303. cd conftest
  14304. mkdir out
  14305. printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14306. lt_compiler_flag="-o out/conftest2.$ac_objext"
  14307. # Insert the option either (1) after the last *FLAGS variable, or
  14308. # (2) before a word containing "conftest.", or (3) at the end.
  14309. # Note that $ac_compile itself does not contain backslashes and begins
  14310. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14311. lt_compile=`echo "$ac_compile" | $SED \
  14312. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14313. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14314. -e 's:$: $lt_compiler_flag:'`
  14315. (eval echo "\"\$as_me:16036: $lt_compile\"" >&5)
  14316. (eval "$lt_compile" 2>out/conftest.err)
  14317. ac_status=$?
  14318. cat out/conftest.err >&5
  14319. echo "$as_me:16040: \$? = $ac_status" >&5
  14320. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14321. then
  14322. # The compiler can only warn and ignore the option if not recognized
  14323. # So say no if there are warnings
  14324. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  14325. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14326. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14327. lt_cv_prog_compiler_c_o_F77=yes
  14328. fi
  14329. fi
  14330. chmod u+w . 2>&5
  14331. $rm conftest*
  14332. # SGI C++ compiler will create directory out/ii_files/ for
  14333. # template instantiation
  14334. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14335. $rm out/* && rmdir out
  14336. cd ..
  14337. rmdir conftest
  14338. $rm conftest*
  14339. fi
  14340. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  14341. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  14342. hard_links="nottested"
  14343. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  14344. # do not overwrite the value of need_locks provided by the user
  14345. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14346. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  14347. hard_links=yes
  14348. $rm conftest*
  14349. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14350. touch conftest.a
  14351. ln conftest.a conftest.b 2>&5 || hard_links=no
  14352. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14353. { echo "$as_me:$LINENO: result: $hard_links" >&5
  14354. echo "${ECHO_T}$hard_links" >&6; }
  14355. if test "$hard_links" = no; then
  14356. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14357. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14358. need_locks=warn
  14359. fi
  14360. else
  14361. need_locks=no
  14362. fi
  14363. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  14364. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  14365. runpath_var=
  14366. allow_undefined_flag_F77=
  14367. enable_shared_with_static_runtimes_F77=no
  14368. archive_cmds_F77=
  14369. archive_expsym_cmds_F77=
  14370. old_archive_From_new_cmds_F77=
  14371. old_archive_from_expsyms_cmds_F77=
  14372. export_dynamic_flag_spec_F77=
  14373. whole_archive_flag_spec_F77=
  14374. thread_safe_flag_spec_F77=
  14375. hardcode_libdir_flag_spec_F77=
  14376. hardcode_libdir_flag_spec_ld_F77=
  14377. hardcode_libdir_separator_F77=
  14378. hardcode_direct_F77=no
  14379. hardcode_minus_L_F77=no
  14380. hardcode_shlibpath_var_F77=unsupported
  14381. link_all_deplibs_F77=unknown
  14382. hardcode_automatic_F77=no
  14383. module_cmds_F77=
  14384. module_expsym_cmds_F77=
  14385. always_export_symbols_F77=no
  14386. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14387. # include_expsyms should be a list of space-separated symbols to be *always*
  14388. # included in the symbol list
  14389. include_expsyms_F77=
  14390. # exclude_expsyms can be an extended regexp of symbols to exclude
  14391. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  14392. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14393. # as well as any symbol that contains `d'.
  14394. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  14395. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14396. # platforms (ab)use it in PIC code, but their linkers get confused if
  14397. # the symbol is explicitly referenced. Since portable code cannot
  14398. # rely on this symbol name, it's probably fine to never include it in
  14399. # preloaded symbol tables.
  14400. extract_expsyms_cmds=
  14401. # Just being paranoid about ensuring that cc_basename is set.
  14402. for cc_temp in $compiler""; do
  14403. case $cc_temp in
  14404. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14405. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14406. \-*) ;;
  14407. *) break;;
  14408. esac
  14409. done
  14410. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14411. case $host_os in
  14412. cygwin* | mingw* | pw32*)
  14413. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14414. # When not using gcc, we currently assume that we are using
  14415. # Microsoft Visual C++.
  14416. if test "$GCC" != yes; then
  14417. with_gnu_ld=no
  14418. fi
  14419. ;;
  14420. interix*)
  14421. # we just hope/assume this is gcc and not c89 (= MSVC++)
  14422. with_gnu_ld=yes
  14423. ;;
  14424. openbsd*)
  14425. with_gnu_ld=no
  14426. ;;
  14427. esac
  14428. ld_shlibs_F77=yes
  14429. if test "$with_gnu_ld" = yes; then
  14430. # If archive_cmds runs LD, not CC, wlarc should be empty
  14431. wlarc='${wl}'
  14432. # Set some defaults for GNU ld with shared library support. These
  14433. # are reset later if shared libraries are not supported. Putting them
  14434. # here allows them to be overridden if necessary.
  14435. runpath_var=LD_RUN_PATH
  14436. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  14437. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  14438. # ancient GNU ld didn't support --whole-archive et. al.
  14439. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  14440. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  14441. else
  14442. whole_archive_flag_spec_F77=
  14443. fi
  14444. supports_anon_versioning=no
  14445. case `$LD -v 2>/dev/null` in
  14446. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  14447. *\ 2.11.93.0.2\ *) supports_anon_ver