PageRenderTime 134ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 1ms

/vendor/pcre/configure

http://github.com/feyeleanor/RubyGoLightly
Shell | 15668 lines | 13212 code | 1048 blank | 1408 comment | 995 complexity | 13d205a8cceea8922fd5c55383e0ab58 MD5 | raw file
Possible License(s): BSD-3-Clause, GPL-2.0
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for PCRE 7.8.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. ## --------------------- ##
  10. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be more Bourne compatible
  13. DUALCASE=1; export DUALCASE # for MKS sh
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. setopt NO_GLOB_SUBST
  21. else
  22. case `(set -o) 2>/dev/null` in
  23. *posix*) set -o posix ;;
  24. esac
  25. fi
  26. # PATH needs CR
  27. # Avoid depending upon Character Ranges.
  28. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  29. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  30. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  31. as_cr_digits='0123456789'
  32. as_cr_alnum=$as_cr_Letters$as_cr_digits
  33. # The user is always right.
  34. if test "${PATH_SEPARATOR+set}" != set; then
  35. echo "#! /bin/sh" >conf$$.sh
  36. echo "exit 0" >>conf$$.sh
  37. chmod +x conf$$.sh
  38. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  39. PATH_SEPARATOR=';'
  40. else
  41. PATH_SEPARATOR=:
  42. fi
  43. rm -f conf$$.sh
  44. fi
  45. # Support unset when possible.
  46. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  47. as_unset=unset
  48. else
  49. as_unset=false
  50. fi
  51. # IFS
  52. # We need space, tab and new line, in precisely that order. Quoting is
  53. # there to prevent editors from complaining about space-tab.
  54. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  55. # splitting by setting IFS to empty value.)
  56. as_nl='
  57. '
  58. IFS=" "" $as_nl"
  59. # Find who we are. Look in the path if we contain no directory separator.
  60. case $0 in
  61. *[\\/]* ) as_myself=$0 ;;
  62. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  63. for as_dir in $PATH
  64. do
  65. IFS=$as_save_IFS
  66. test -z "$as_dir" && as_dir=.
  67. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  68. done
  69. IFS=$as_save_IFS
  70. ;;
  71. esac
  72. # We did not find ourselves, most probably we were run as `sh COMMAND'
  73. # in which case we are not to be found in the path.
  74. if test "x$as_myself" = x; then
  75. as_myself=$0
  76. fi
  77. if test ! -f "$as_myself"; then
  78. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  79. { (exit 1); exit 1; }
  80. fi
  81. # Work around bugs in pre-3.0 UWIN ksh.
  82. for as_var in ENV MAIL MAILPATH
  83. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  84. done
  85. PS1='$ '
  86. PS2='> '
  87. PS4='+ '
  88. # NLS nuisances.
  89. for as_var in \
  90. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  91. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  92. LC_TELEPHONE LC_TIME
  93. do
  94. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  95. eval $as_var=C; export $as_var
  96. else
  97. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  98. fi
  99. done
  100. # Required to use basename.
  101. if expr a : '\(a\)' >/dev/null 2>&1 &&
  102. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  103. as_expr=expr
  104. else
  105. as_expr=false
  106. fi
  107. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  108. as_basename=basename
  109. else
  110. as_basename=false
  111. fi
  112. # Name of the executable.
  113. as_me=`$as_basename -- "$0" ||
  114. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  115. X"$0" : 'X\(//\)$' \| \
  116. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  117. echo X/"$0" |
  118. sed '/^.*\/\([^/][^/]*\)\/*$/{
  119. s//\1/
  120. q
  121. }
  122. /^X\/\(\/\/\)$/{
  123. s//\1/
  124. q
  125. }
  126. /^X\/\(\/\).*/{
  127. s//\1/
  128. q
  129. }
  130. s/.*/./; q'`
  131. # CDPATH.
  132. $as_unset CDPATH
  133. if test "x$CONFIG_SHELL" = x; then
  134. if (eval ":") 2>/dev/null; then
  135. as_have_required=yes
  136. else
  137. as_have_required=no
  138. fi
  139. if test $as_have_required = yes && (eval ":
  140. (as_func_return () {
  141. (exit \$1)
  142. }
  143. as_func_success () {
  144. as_func_return 0
  145. }
  146. as_func_failure () {
  147. as_func_return 1
  148. }
  149. as_func_ret_success () {
  150. return 0
  151. }
  152. as_func_ret_failure () {
  153. return 1
  154. }
  155. exitcode=0
  156. if as_func_success; then
  157. :
  158. else
  159. exitcode=1
  160. echo as_func_success failed.
  161. fi
  162. if as_func_failure; then
  163. exitcode=1
  164. echo as_func_failure succeeded.
  165. fi
  166. if as_func_ret_success; then
  167. :
  168. else
  169. exitcode=1
  170. echo as_func_ret_success failed.
  171. fi
  172. if as_func_ret_failure; then
  173. exitcode=1
  174. echo as_func_ret_failure succeeded.
  175. fi
  176. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  177. :
  178. else
  179. exitcode=1
  180. echo positional parameters were not saved.
  181. fi
  182. test \$exitcode = 0) || { (exit 1); exit 1; }
  183. (
  184. as_lineno_1=\$LINENO
  185. as_lineno_2=\$LINENO
  186. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  187. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  188. ") 2> /dev/null; then
  189. :
  190. else
  191. as_candidate_shells=
  192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  193. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  194. do
  195. IFS=$as_save_IFS
  196. test -z "$as_dir" && as_dir=.
  197. case $as_dir in
  198. /*)
  199. for as_base in sh bash ksh sh5; do
  200. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  201. done;;
  202. esac
  203. done
  204. IFS=$as_save_IFS
  205. for as_shell in $as_candidate_shells $SHELL; do
  206. # Try only shells that exist, to save several forks.
  207. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  208. { ("$as_shell") 2> /dev/null <<\_ASEOF
  209. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  210. emulate sh
  211. NULLCMD=:
  212. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  213. # is contrary to our usage. Disable this feature.
  214. alias -g '${1+"$@"}'='"$@"'
  215. setopt NO_GLOB_SUBST
  216. else
  217. case `(set -o) 2>/dev/null` in
  218. *posix*) set -o posix ;;
  219. esac
  220. fi
  221. :
  222. _ASEOF
  223. }; then
  224. CONFIG_SHELL=$as_shell
  225. as_have_required=yes
  226. if { "$as_shell" 2> /dev/null <<\_ASEOF
  227. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  228. emulate sh
  229. NULLCMD=:
  230. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  231. # is contrary to our usage. Disable this feature.
  232. alias -g '${1+"$@"}'='"$@"'
  233. setopt NO_GLOB_SUBST
  234. else
  235. case `(set -o) 2>/dev/null` in
  236. *posix*) set -o posix ;;
  237. esac
  238. fi
  239. :
  240. (as_func_return () {
  241. (exit $1)
  242. }
  243. as_func_success () {
  244. as_func_return 0
  245. }
  246. as_func_failure () {
  247. as_func_return 1
  248. }
  249. as_func_ret_success () {
  250. return 0
  251. }
  252. as_func_ret_failure () {
  253. return 1
  254. }
  255. exitcode=0
  256. if as_func_success; then
  257. :
  258. else
  259. exitcode=1
  260. echo as_func_success failed.
  261. fi
  262. if as_func_failure; then
  263. exitcode=1
  264. echo as_func_failure succeeded.
  265. fi
  266. if as_func_ret_success; then
  267. :
  268. else
  269. exitcode=1
  270. echo as_func_ret_success failed.
  271. fi
  272. if as_func_ret_failure; then
  273. exitcode=1
  274. echo as_func_ret_failure succeeded.
  275. fi
  276. if ( set x; as_func_ret_success y && test x = "$1" ); then
  277. :
  278. else
  279. exitcode=1
  280. echo positional parameters were not saved.
  281. fi
  282. test $exitcode = 0) || { (exit 1); exit 1; }
  283. (
  284. as_lineno_1=$LINENO
  285. as_lineno_2=$LINENO
  286. test "x$as_lineno_1" != "x$as_lineno_2" &&
  287. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  288. _ASEOF
  289. }; then
  290. break
  291. fi
  292. fi
  293. done
  294. if test "x$CONFIG_SHELL" != x; then
  295. for as_var in BASH_ENV ENV
  296. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  297. done
  298. export CONFIG_SHELL
  299. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  300. fi
  301. if test $as_have_required = no; then
  302. echo This script requires a shell more modern than all the
  303. echo shells that I found on your system. Please install a
  304. echo modern shell, or manually run the script under such a
  305. echo shell if you do have one.
  306. { (exit 1); exit 1; }
  307. fi
  308. fi
  309. fi
  310. (eval "as_func_return () {
  311. (exit \$1)
  312. }
  313. as_func_success () {
  314. as_func_return 0
  315. }
  316. as_func_failure () {
  317. as_func_return 1
  318. }
  319. as_func_ret_success () {
  320. return 0
  321. }
  322. as_func_ret_failure () {
  323. return 1
  324. }
  325. exitcode=0
  326. if as_func_success; then
  327. :
  328. else
  329. exitcode=1
  330. echo as_func_success failed.
  331. fi
  332. if as_func_failure; then
  333. exitcode=1
  334. echo as_func_failure succeeded.
  335. fi
  336. if as_func_ret_success; then
  337. :
  338. else
  339. exitcode=1
  340. echo as_func_ret_success failed.
  341. fi
  342. if as_func_ret_failure; then
  343. exitcode=1
  344. echo as_func_ret_failure succeeded.
  345. fi
  346. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  347. :
  348. else
  349. exitcode=1
  350. echo positional parameters were not saved.
  351. fi
  352. test \$exitcode = 0") || {
  353. echo No shell found that supports shell functions.
  354. echo Please tell autoconf@gnu.org about your system,
  355. echo including any error possibly output before this
  356. echo message
  357. }
  358. as_lineno_1=$LINENO
  359. as_lineno_2=$LINENO
  360. test "x$as_lineno_1" != "x$as_lineno_2" &&
  361. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  362. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  363. # uniformly replaced by the line number. The first 'sed' inserts a
  364. # line-number line after each line using $LINENO; the second 'sed'
  365. # does the real work. The second script uses 'N' to pair each
  366. # line-number line with the line containing $LINENO, and appends
  367. # trailing '-' during substitution so that $LINENO is not a special
  368. # case at line end.
  369. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  370. # scripts with optimization help from Paolo Bonzini. Blame Lee
  371. # E. McMahon (1931-1989) for sed's syntax. :-)
  372. sed -n '
  373. p
  374. /[$]LINENO/=
  375. ' <$as_myself |
  376. sed '
  377. s/[$]LINENO.*/&-/
  378. t lineno
  379. b
  380. :lineno
  381. N
  382. :loop
  383. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  384. t loop
  385. s/-\n.*//
  386. ' >$as_me.lineno &&
  387. chmod +x "$as_me.lineno" ||
  388. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  389. { (exit 1); exit 1; }; }
  390. # Don't try to exec as it changes $[0], causing all sort of problems
  391. # (the dirname of $[0] is not the place where we might find the
  392. # original and so on. Autoconf is especially sensitive to this).
  393. . "./$as_me.lineno"
  394. # Exit status is that of the last command.
  395. exit
  396. }
  397. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  398. as_dirname=dirname
  399. else
  400. as_dirname=false
  401. fi
  402. ECHO_C= ECHO_N= ECHO_T=
  403. case `echo -n x` in
  404. -n*)
  405. case `echo 'x\c'` in
  406. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  407. *) ECHO_C='\c';;
  408. esac;;
  409. *)
  410. ECHO_N='-n';;
  411. esac
  412. if expr a : '\(a\)' >/dev/null 2>&1 &&
  413. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  414. as_expr=expr
  415. else
  416. as_expr=false
  417. fi
  418. rm -f conf$$ conf$$.exe conf$$.file
  419. if test -d conf$$.dir; then
  420. rm -f conf$$.dir/conf$$.file
  421. else
  422. rm -f conf$$.dir
  423. mkdir conf$$.dir
  424. fi
  425. echo >conf$$.file
  426. if ln -s conf$$.file conf$$ 2>/dev/null; then
  427. as_ln_s='ln -s'
  428. # ... but there are two gotchas:
  429. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  430. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  431. # In both cases, we have to default to `cp -p'.
  432. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  433. as_ln_s='cp -p'
  434. elif ln conf$$.file conf$$ 2>/dev/null; then
  435. as_ln_s=ln
  436. else
  437. as_ln_s='cp -p'
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  440. rmdir conf$$.dir 2>/dev/null
  441. if mkdir -p . 2>/dev/null; then
  442. as_mkdir_p=:
  443. else
  444. test -d ./-p && rmdir ./-p
  445. as_mkdir_p=false
  446. fi
  447. if test -x / >/dev/null 2>&1; then
  448. as_test_x='test -x'
  449. else
  450. if ls -dL / >/dev/null 2>&1; then
  451. as_ls_L_option=L
  452. else
  453. as_ls_L_option=
  454. fi
  455. as_test_x='
  456. eval sh -c '\''
  457. if test -d "$1"; then
  458. test -d "$1/.";
  459. else
  460. case $1 in
  461. -*)set "./$1";;
  462. esac;
  463. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  464. ???[sx]*):;;*)false;;esac;fi
  465. '\'' sh
  466. '
  467. fi
  468. as_executable_p=$as_test_x
  469. # Sed expression to map a string onto a valid CPP name.
  470. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  471. # Sed expression to map a string onto a valid variable name.
  472. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  473. # Check that we are running under the correct shell.
  474. SHELL=${CONFIG_SHELL-/bin/sh}
  475. case X$ECHO in
  476. X*--fallback-echo)
  477. # Remove one level of quotation (which was required for Make).
  478. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  479. ;;
  480. esac
  481. echo=${ECHO-echo}
  482. if test "X$1" = X--no-reexec; then
  483. # Discard the --no-reexec flag, and continue.
  484. shift
  485. elif test "X$1" = X--fallback-echo; then
  486. # Avoid inline document here, it may be left over
  487. :
  488. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  489. # Yippee, $echo works!
  490. :
  491. else
  492. # Restart under the correct shell.
  493. exec $SHELL "$0" --no-reexec ${1+"$@"}
  494. fi
  495. if test "X$1" = X--fallback-echo; then
  496. # used as fallback echo
  497. shift
  498. cat <<EOF
  499. $*
  500. EOF
  501. exit 0
  502. fi
  503. # The HP-UX ksh and POSIX shell print the target directory to stdout
  504. # if CDPATH is set.
  505. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  506. if test -z "$ECHO"; then
  507. if test "X${echo_test_string+set}" != Xset; then
  508. # find a string as large as possible, as long as the shell can cope with it
  509. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  510. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  511. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  512. echo_test_string=`eval $cmd` &&
  513. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  514. then
  515. break
  516. fi
  517. done
  518. fi
  519. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  520. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  521. test "X$echo_testing_string" = "X$echo_test_string"; then
  522. :
  523. else
  524. # The Solaris, AIX, and Digital Unix default echo programs unquote
  525. # backslashes. This makes it impossible to quote backslashes using
  526. # echo "$something" | sed 's/\\/\\\\/g'
  527. #
  528. # So, first we look for a working echo in the user's PATH.
  529. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  530. for dir in $PATH /usr/ucb; do
  531. IFS="$lt_save_ifs"
  532. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  533. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  534. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  535. test "X$echo_testing_string" = "X$echo_test_string"; then
  536. echo="$dir/echo"
  537. break
  538. fi
  539. done
  540. IFS="$lt_save_ifs"
  541. if test "X$echo" = Xecho; then
  542. # We didn't find a better echo, so look for alternatives.
  543. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  544. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  545. test "X$echo_testing_string" = "X$echo_test_string"; then
  546. # This shell has a builtin print -r that does the trick.
  547. echo='print -r'
  548. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  549. test "X$CONFIG_SHELL" != X/bin/ksh; then
  550. # If we have ksh, try running configure again with it.
  551. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  552. export ORIGINAL_CONFIG_SHELL
  553. CONFIG_SHELL=/bin/ksh
  554. export CONFIG_SHELL
  555. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  556. else
  557. # Try using printf.
  558. echo='printf %s\n'
  559. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  560. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  561. test "X$echo_testing_string" = "X$echo_test_string"; then
  562. # Cool, printf works
  563. :
  564. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  565. test "X$echo_testing_string" = 'X\t' &&
  566. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  567. test "X$echo_testing_string" = "X$echo_test_string"; then
  568. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  569. export CONFIG_SHELL
  570. SHELL="$CONFIG_SHELL"
  571. export SHELL
  572. echo="$CONFIG_SHELL $0 --fallback-echo"
  573. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  574. test "X$echo_testing_string" = 'X\t' &&
  575. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  576. test "X$echo_testing_string" = "X$echo_test_string"; then
  577. echo="$CONFIG_SHELL $0 --fallback-echo"
  578. else
  579. # maybe with a smaller string...
  580. prev=:
  581. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  582. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  583. then
  584. break
  585. fi
  586. prev="$cmd"
  587. done
  588. if test "$prev" != 'sed 50q "$0"'; then
  589. echo_test_string=`eval $prev`
  590. export echo_test_string
  591. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  592. else
  593. # Oops. We lost completely, so just stick with echo.
  594. echo=echo
  595. fi
  596. fi
  597. fi
  598. fi
  599. fi
  600. fi
  601. # Copy echo and quote the copy suitably for passing to libtool from
  602. # the Makefile, instead of quoting the original, which is used later.
  603. ECHO=$echo
  604. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  605. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  606. fi
  607. tagnames=${tagnames+${tagnames},}CXX
  608. tagnames=${tagnames+${tagnames},}F77
  609. exec 7<&0 </dev/null 6>&1
  610. # Name of the host.
  611. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  612. # so uname gets run too.
  613. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  614. #
  615. # Initializations.
  616. #
  617. ac_default_prefix=/usr/local
  618. ac_clean_files=
  619. ac_config_libobj_dir=.
  620. LIBOBJS=
  621. cross_compiling=no
  622. subdirs=
  623. MFLAGS=
  624. MAKEFLAGS=
  625. SHELL=${CONFIG_SHELL-/bin/sh}
  626. # Identity of this package.
  627. PACKAGE_NAME='PCRE'
  628. PACKAGE_TARNAME='pcre'
  629. PACKAGE_VERSION='7.8'
  630. PACKAGE_STRING='PCRE 7.8'
  631. PACKAGE_BUGREPORT=''
  632. ac_unique_file="pcre.h.in"
  633. # Factoring default headers for most tests.
  634. ac_includes_default="\
  635. #include <stdio.h>
  636. #ifdef HAVE_SYS_TYPES_H
  637. # include <sys/types.h>
  638. #endif
  639. #ifdef HAVE_SYS_STAT_H
  640. # include <sys/stat.h>
  641. #endif
  642. #ifdef STDC_HEADERS
  643. # include <stdlib.h>
  644. # include <stddef.h>
  645. #else
  646. # ifdef HAVE_STDLIB_H
  647. # include <stdlib.h>
  648. # endif
  649. #endif
  650. #ifdef HAVE_STRING_H
  651. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  652. # include <memory.h>
  653. # endif
  654. # include <string.h>
  655. #endif
  656. #ifdef HAVE_STRINGS_H
  657. # include <strings.h>
  658. #endif
  659. #ifdef HAVE_INTTYPES_H
  660. # include <inttypes.h>
  661. #endif
  662. #ifdef HAVE_STDINT_H
  663. # include <stdint.h>
  664. #endif
  665. #ifdef HAVE_UNISTD_H
  666. # include <unistd.h>
  667. #endif"
  668. ac_subst_vars='SHELL
  669. PATH_SEPARATOR
  670. PACKAGE_NAME
  671. PACKAGE_TARNAME
  672. PACKAGE_VERSION
  673. PACKAGE_STRING
  674. PACKAGE_BUGREPORT
  675. exec_prefix
  676. prefix
  677. program_transform_name
  678. bindir
  679. sbindir
  680. libexecdir
  681. datarootdir
  682. datadir
  683. sysconfdir
  684. sharedstatedir
  685. localstatedir
  686. includedir
  687. oldincludedir
  688. docdir
  689. infodir
  690. htmldir
  691. dvidir
  692. pdfdir
  693. psdir
  694. libdir
  695. localedir
  696. mandir
  697. DEFS
  698. ECHO_C
  699. ECHO_N
  700. ECHO_T
  701. LIBS
  702. build_alias
  703. host_alias
  704. target_alias
  705. INSTALL_PROGRAM
  706. INSTALL_SCRIPT
  707. INSTALL_DATA
  708. am__isrc
  709. CYGPATH_W
  710. PACKAGE
  711. VERSION
  712. ACLOCAL
  713. AUTOCONF
  714. AUTOMAKE
  715. AUTOHEADER
  716. MAKEINFO
  717. install_sh
  718. STRIP
  719. INSTALL_STRIP_PROGRAM
  720. mkdir_p
  721. AWK
  722. SET_MAKE
  723. am__leading_dot
  724. AMTAR
  725. am__tar
  726. am__untar
  727. CC
  728. CFLAGS
  729. LDFLAGS
  730. CPPFLAGS
  731. ac_ct_CC
  732. EXEEXT
  733. OBJEXT
  734. DEPDIR
  735. am__include
  736. am__quote
  737. AMDEP_TRUE
  738. AMDEP_FALSE
  739. AMDEPBACKSLASH
  740. CCDEPMODE
  741. am__fastdepCC_TRUE
  742. am__fastdepCC_FALSE
  743. CXX
  744. CXXFLAGS
  745. ac_ct_CXX
  746. CXXDEPMODE
  747. am__fastdepCXX_TRUE
  748. am__fastdepCXX_FALSE
  749. build
  750. build_cpu
  751. build_vendor
  752. build_os
  753. host
  754. host_cpu
  755. host_vendor
  756. host_os
  757. SED
  758. GREP
  759. EGREP
  760. LN_S
  761. ECHO
  762. AR
  763. RANLIB
  764. DSYMUTIL
  765. NMEDIT
  766. DLLTOOL
  767. AS
  768. OBJDUMP
  769. CPP
  770. CXXCPP
  771. F77
  772. FFLAGS
  773. ac_ct_F77
  774. LIBTOOL
  775. PCRE_MAJOR
  776. PCRE_MINOR
  777. PCRE_PRERELEASE
  778. PCRE_DATE
  779. pcre_have_type_traits
  780. pcre_have_bits_type_traits
  781. WITH_PCRE_CPP_TRUE
  782. WITH_PCRE_CPP_FALSE
  783. WITH_REBUILD_CHARTABLES_TRUE
  784. WITH_REBUILD_CHARTABLES_FALSE
  785. pcre_have_long_long
  786. pcre_have_ulong_long
  787. EXTRA_LIBPCRE_LDFLAGS
  788. EXTRA_LIBPCREPOSIX_LDFLAGS
  789. EXTRA_LIBPCRECPP_LDFLAGS
  790. DISTCHECK_CONFIGURE_FLAGS
  791. LIBOBJS
  792. LTLIBOBJS'
  793. ac_subst_files=''
  794. ac_precious_vars='build_alias
  795. host_alias
  796. target_alias
  797. CC
  798. CFLAGS
  799. LDFLAGS
  800. LIBS
  801. CPPFLAGS
  802. CXX
  803. CXXFLAGS
  804. CCC
  805. CPP
  806. CXXCPP
  807. F77
  808. FFLAGS'
  809. # Initialize some variables set by options.
  810. ac_init_help=
  811. ac_init_version=false
  812. # The variables have the same names as the options, with
  813. # dashes changed to underlines.
  814. cache_file=/dev/null
  815. exec_prefix=NONE
  816. no_create=
  817. no_recursion=
  818. prefix=NONE
  819. program_prefix=NONE
  820. program_suffix=NONE
  821. program_transform_name=s,x,x,
  822. silent=
  823. site=
  824. srcdir=
  825. verbose=
  826. x_includes=NONE
  827. x_libraries=NONE
  828. # Installation directory options.
  829. # These are left unexpanded so users can "make install exec_prefix=/foo"
  830. # and all the variables that are supposed to be based on exec_prefix
  831. # by default will actually change.
  832. # Use braces instead of parens because sh, perl, etc. also accept them.
  833. # (The list follows the same order as the GNU Coding Standards.)
  834. bindir='${exec_prefix}/bin'
  835. sbindir='${exec_prefix}/sbin'
  836. libexecdir='${exec_prefix}/libexec'
  837. datarootdir='${prefix}/share'
  838. datadir='${datarootdir}'
  839. sysconfdir='${prefix}/etc'
  840. sharedstatedir='${prefix}/com'
  841. localstatedir='${prefix}/var'
  842. includedir='${prefix}/include'
  843. oldincludedir='/usr/include'
  844. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  845. infodir='${datarootdir}/info'
  846. htmldir='${docdir}'
  847. dvidir='${docdir}'
  848. pdfdir='${docdir}'
  849. psdir='${docdir}'
  850. libdir='${exec_prefix}/lib'
  851. localedir='${datarootdir}/locale'
  852. mandir='${datarootdir}/man'
  853. ac_prev=
  854. ac_dashdash=
  855. for ac_option
  856. do
  857. # If the previous option needs an argument, assign it.
  858. if test -n "$ac_prev"; then
  859. eval $ac_prev=\$ac_option
  860. ac_prev=
  861. continue
  862. fi
  863. case $ac_option in
  864. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  865. *) ac_optarg=yes ;;
  866. esac
  867. # Accept the important Cygnus configure options, so we can diagnose typos.
  868. case $ac_dashdash$ac_option in
  869. --)
  870. ac_dashdash=yes ;;
  871. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  872. ac_prev=bindir ;;
  873. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  874. bindir=$ac_optarg ;;
  875. -build | --build | --buil | --bui | --bu)
  876. ac_prev=build_alias ;;
  877. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  878. build_alias=$ac_optarg ;;
  879. -cache-file | --cache-file | --cache-fil | --cache-fi \
  880. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  881. ac_prev=cache_file ;;
  882. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  883. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  884. cache_file=$ac_optarg ;;
  885. --config-cache | -C)
  886. cache_file=config.cache ;;
  887. -datadir | --datadir | --datadi | --datad)
  888. ac_prev=datadir ;;
  889. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  890. datadir=$ac_optarg ;;
  891. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  892. | --dataroo | --dataro | --datar)
  893. ac_prev=datarootdir ;;
  894. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  895. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  896. datarootdir=$ac_optarg ;;
  897. -disable-* | --disable-*)
  898. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  899. # Reject names that are not valid shell variable names.
  900. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  901. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  902. { (exit 1); exit 1; }; }
  903. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  904. eval enable_$ac_feature=no ;;
  905. -docdir | --docdir | --docdi | --doc | --do)
  906. ac_prev=docdir ;;
  907. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  908. docdir=$ac_optarg ;;
  909. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  910. ac_prev=dvidir ;;
  911. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  912. dvidir=$ac_optarg ;;
  913. -enable-* | --enable-*)
  914. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  915. # Reject names that are not valid shell variable names.
  916. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  917. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  918. { (exit 1); exit 1; }; }
  919. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  920. eval enable_$ac_feature=\$ac_optarg ;;
  921. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  922. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  923. | --exec | --exe | --ex)
  924. ac_prev=exec_prefix ;;
  925. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  926. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  927. | --exec=* | --exe=* | --ex=*)
  928. exec_prefix=$ac_optarg ;;
  929. -gas | --gas | --ga | --g)
  930. # Obsolete; use --with-gas.
  931. with_gas=yes ;;
  932. -help | --help | --hel | --he | -h)
  933. ac_init_help=long ;;
  934. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  935. ac_init_help=recursive ;;
  936. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  937. ac_init_help=short ;;
  938. -host | --host | --hos | --ho)
  939. ac_prev=host_alias ;;
  940. -host=* | --host=* | --hos=* | --ho=*)
  941. host_alias=$ac_optarg ;;
  942. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  943. ac_prev=htmldir ;;
  944. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  945. | --ht=*)
  946. htmldir=$ac_optarg ;;
  947. -includedir | --includedir | --includedi | --included | --include \
  948. | --includ | --inclu | --incl | --inc)
  949. ac_prev=includedir ;;
  950. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  951. | --includ=* | --inclu=* | --incl=* | --inc=*)
  952. includedir=$ac_optarg ;;
  953. -infodir | --infodir | --infodi | --infod | --info | --inf)
  954. ac_prev=infodir ;;
  955. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  956. infodir=$ac_optarg ;;
  957. -libdir | --libdir | --libdi | --libd)
  958. ac_prev=libdir ;;
  959. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  960. libdir=$ac_optarg ;;
  961. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  962. | --libexe | --libex | --libe)
  963. ac_prev=libexecdir ;;
  964. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  965. | --libexe=* | --libex=* | --libe=*)
  966. libexecdir=$ac_optarg ;;
  967. -localedir | --localedir | --localedi | --localed | --locale)
  968. ac_prev=localedir ;;
  969. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  970. localedir=$ac_optarg ;;
  971. -localstatedir | --localstatedir | --localstatedi | --localstated \
  972. | --localstate | --localstat | --localsta | --localst | --locals)
  973. ac_prev=localstatedir ;;
  974. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  975. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  976. localstatedir=$ac_optarg ;;
  977. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  978. ac_prev=mandir ;;
  979. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  980. mandir=$ac_optarg ;;
  981. -nfp | --nfp | --nf)
  982. # Obsolete; use --without-fp.
  983. with_fp=no ;;
  984. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  985. | --no-cr | --no-c | -n)
  986. no_create=yes ;;
  987. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  988. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  989. no_recursion=yes ;;
  990. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  991. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  992. | --oldin | --oldi | --old | --ol | --o)
  993. ac_prev=oldincludedir ;;
  994. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  995. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  996. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  997. oldincludedir=$ac_optarg ;;
  998. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  999. ac_prev=prefix ;;
  1000. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1001. prefix=$ac_optarg ;;
  1002. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1003. | --program-pre | --program-pr | --program-p)
  1004. ac_prev=program_prefix ;;
  1005. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1006. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1007. program_prefix=$ac_optarg ;;
  1008. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1009. | --program-suf | --program-su | --program-s)
  1010. ac_prev=program_suffix ;;
  1011. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1012. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1013. program_suffix=$ac_optarg ;;
  1014. -program-transform-name | --program-transform-name \
  1015. | --program-transform-nam | --program-transform-na \
  1016. | --program-transform-n | --program-transform- \
  1017. | --program-transform | --program-transfor \
  1018. | --program-transfo | --program-transf \
  1019. | --program-trans | --program-tran \
  1020. | --progr-tra | --program-tr | --program-t)
  1021. ac_prev=program_transform_name ;;
  1022. -program-transform-name=* | --program-transform-name=* \
  1023. | --program-transform-nam=* | --program-transform-na=* \
  1024. | --program-transform-n=* | --program-transform-=* \
  1025. | --program-transform=* | --program-transfor=* \
  1026. | --program-transfo=* | --program-transf=* \
  1027. | --program-trans=* | --program-tran=* \
  1028. | --progr-tra=* | --program-tr=* | --program-t=*)
  1029. program_transform_name=$ac_optarg ;;
  1030. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1031. ac_prev=pdfdir ;;
  1032. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1033. pdfdir=$ac_optarg ;;
  1034. -psdir | --psdir | --psdi | --psd | --ps)
  1035. ac_prev=psdir ;;
  1036. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1037. psdir=$ac_optarg ;;
  1038. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1039. | -silent | --silent | --silen | --sile | --sil)
  1040. silent=yes ;;
  1041. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1042. ac_prev=sbindir ;;
  1043. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1044. | --sbi=* | --sb=*)
  1045. sbindir=$ac_optarg ;;
  1046. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1047. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1048. | --sharedst | --shareds | --shared | --share | --shar \
  1049. | --sha | --sh)
  1050. ac_prev=sharedstatedir ;;
  1051. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1052. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1053. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1054. | --sha=* | --sh=*)
  1055. sharedstatedir=$ac_optarg ;;
  1056. -site | --site | --sit)
  1057. ac_prev=site ;;
  1058. -site=* | --site=* | --sit=*)
  1059. site=$ac_optarg ;;
  1060. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1061. ac_prev=srcdir ;;
  1062. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1063. srcdir=$ac_optarg ;;
  1064. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1065. | --syscon | --sysco | --sysc | --sys | --sy)
  1066. ac_prev=sysconfdir ;;
  1067. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1068. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1069. sysconfdir=$ac_optarg ;;
  1070. -target | --target | --targe | --targ | --tar | --ta | --t)
  1071. ac_prev=target_alias ;;
  1072. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1073. target_alias=$ac_optarg ;;
  1074. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1075. verbose=yes ;;
  1076. -version | --version | --versio | --versi | --vers | -V)
  1077. ac_init_version=: ;;
  1078. -with-* | --with-*)
  1079. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1080. # Reject names that are not valid shell variable names.
  1081. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1082. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1083. { (exit 1); exit 1; }; }
  1084. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1085. eval with_$ac_package=\$ac_optarg ;;
  1086. -without-* | --without-*)
  1087. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1088. # Reject names that are not valid shell variable names.
  1089. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1090. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1091. { (exit 1); exit 1; }; }
  1092. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1093. eval with_$ac_package=no ;;
  1094. --x)
  1095. # Obsolete; use --with-x.
  1096. with_x=yes ;;
  1097. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1098. | --x-incl | --x-inc | --x-in | --x-i)
  1099. ac_prev=x_includes ;;
  1100. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1101. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1102. x_includes=$ac_optarg ;;
  1103. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1104. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1105. ac_prev=x_libraries ;;
  1106. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1107. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1108. x_libraries=$ac_optarg ;;
  1109. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1110. Try \`$0 --help' for more information." >&2
  1111. { (exit 1); exit 1; }; }
  1112. ;;
  1113. *=*)
  1114. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1115. # Reject names that are not valid shell variable names.
  1116. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1117. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1118. { (exit 1); exit 1; }; }
  1119. eval $ac_envvar=\$ac_optarg
  1120. export $ac_envvar ;;
  1121. *)
  1122. # FIXME: should be removed in autoconf 3.0.
  1123. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1124. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1125. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1126. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1127. ;;
  1128. esac
  1129. done
  1130. if test -n "$ac_prev"; then
  1131. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1132. { echo "$as_me: error: missing argument to $ac_option" >&2
  1133. { (exit 1); exit 1; }; }
  1134. fi
  1135. # Be sure to have absolute directory names.
  1136. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1137. datadir sysconfdir sharedstatedir localstatedir includedir \
  1138. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1139. libdir localedir mandir
  1140. do
  1141. eval ac_val=\$$ac_var
  1142. case $ac_val in
  1143. [\\/$]* | ?:[\\/]* ) continue;;
  1144. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1145. esac
  1146. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1147. { (exit 1); exit 1; }; }
  1148. done
  1149. # There might be people who depend on the old broken behavior: `$host'
  1150. # used to hold the argument of --host etc.
  1151. # FIXME: To remove some day.
  1152. build=$build_alias
  1153. host=$host_alias
  1154. target=$target_alias
  1155. # FIXME: To remove some day.
  1156. if test "x$host_alias" != x; then
  1157. if test "x$build_alias" = x; then
  1158. cross_compiling=maybe
  1159. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1160. If a cross compiler is detected then cross compile mode will be used." >&2
  1161. elif test "x$build_alias" != "x$host_alias"; then
  1162. cross_compiling=yes
  1163. fi
  1164. fi
  1165. ac_tool_prefix=
  1166. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1167. test "$silent" = yes && exec 6>/dev/null
  1168. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1169. ac_ls_di=`ls -di .` &&
  1170. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1171. { echo "$as_me: error: Working directory cannot be determined" >&2
  1172. { (exit 1); exit 1; }; }
  1173. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1174. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1175. { (exit 1); exit 1; }; }
  1176. # Find the source files, if location was not specified.
  1177. if test -z "$srcdir"; then
  1178. ac_srcdir_defaulted=yes
  1179. # Try the directory containing this script, then the parent directory.
  1180. ac_confdir=`$as_dirname -- "$0" ||
  1181. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1182. X"$0" : 'X\(//\)[^/]' \| \
  1183. X"$0" : 'X\(//\)$' \| \
  1184. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1185. echo X"$0" |
  1186. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1187. s//\1/
  1188. q
  1189. }
  1190. /^X\(\/\/\)[^/].*/{
  1191. s//\1/
  1192. q
  1193. }
  1194. /^X\(\/\/\)$/{
  1195. s//\1/
  1196. q
  1197. }
  1198. /^X\(\/\).*/{
  1199. s//\1/
  1200. q
  1201. }
  1202. s/.*/./; q'`
  1203. srcdir=$ac_confdir
  1204. if test ! -r "$srcdir/$ac_unique_file"; then
  1205. srcdir=..
  1206. fi
  1207. else
  1208. ac_srcdir_defaulted=no
  1209. fi
  1210. if test ! -r "$srcdir/$ac_unique_file"; then
  1211. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1212. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1213. { (exit 1); exit 1; }; }
  1214. fi
  1215. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1216. ac_abs_confdir=`(
  1217. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1218. { (exit 1); exit 1; }; }
  1219. pwd)`
  1220. # When building in place, set srcdir=.
  1221. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1222. srcdir=.
  1223. fi
  1224. # Remove unnecessary trailing slashes from srcdir.
  1225. # Double slashes in file names in object file debugging info
  1226. # mess up M-x gdb in Emacs.
  1227. case $srcdir in
  1228. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1229. esac
  1230. for ac_var in $ac_precious_vars; do
  1231. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1232. eval ac_env_${ac_var}_value=\$${ac_var}
  1233. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1234. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1235. done
  1236. #
  1237. # Report the --help message.
  1238. #
  1239. if test "$ac_init_help" = "long"; then
  1240. # Omit some internal or obsolete options to make the list less imposing.
  1241. # This message is too long to be a string in the A/UX 3.1 sh.
  1242. cat <<_ACEOF
  1243. \`configure' configures PCRE 7.8 to adapt to many kinds of systems.
  1244. Usage: $0 [OPTION]... [VAR=VALUE]...
  1245. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1246. VAR=VALUE. See below for descriptions of some of the useful variables.
  1247. Defaults for the options are specified in brackets.
  1248. Configuration:
  1249. -h, --help display this help and exit
  1250. --help=short display options specific to this package
  1251. --help=recursive display the short help of all the included packages
  1252. -V, --version display version information and exit
  1253. -q, --quiet, --silent do not print \`checking...' messages
  1254. --cache-file=FILE cache test results in FILE [disabled]
  1255. -C, --config-cache alias for \`--cache-file=config.cache'
  1256. -n, --no-create do not create output files
  1257. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1258. Installation directories:
  1259. --prefix=PREFIX install architecture-independent files in PREFIX
  1260. [$ac_default_prefix]
  1261. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1262. [PREFIX]
  1263. By default, \`make install' will install all the files in
  1264. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1265. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1266. for instance \`--prefix=\$HOME'.
  1267. For better control, use the options below.
  1268. Fine tuning of the installation directories:
  1269. --bindir=DIR user executables [EPREFIX/bin]
  1270. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1271. --libexecdir=DIR program executables [EPREFIX/libexec]
  1272. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1273. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1274. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1275. --libdir=DIR object code libraries [EPREFIX/lib]
  1276. --includedir=DIR C header files [PREFIX/include]
  1277. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1278. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1279. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1280. --infodir=DIR info documentation [DATAROOTDIR/info]
  1281. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1282. --mandir=DIR man documentation [DATAROOTDIR/man]
  1283. --docdir=DIR documentation root [DATAROOTDIR/doc/pcre]
  1284. --htmldir=DIR html documentation [DOCDIR]
  1285. --dvidir=DIR dvi documentation [DOCDIR]
  1286. --pdfdir=DIR pdf documentation [DOCDIR]
  1287. --psdir=DIR ps documentation [DOCDIR]
  1288. _ACEOF
  1289. cat <<\_ACEOF
  1290. Program names:
  1291. --program-prefix=PREFIX prepend PREFIX to installed program names
  1292. --program-suffix=SUFFIX append SUFFIX to installed program names
  1293. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1294. System types:
  1295. --build=BUILD configure for building on BUILD [guessed]
  1296. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1297. _ACEOF
  1298. fi
  1299. if test -n "$ac_init_help"; then
  1300. case $ac_init_help in
  1301. short | recursive ) echo "Configuration of PCRE 7.8:";;
  1302. esac
  1303. cat <<\_ACEOF
  1304. Optional Features:
  1305. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1306. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1307. --disable-dependency-tracking speeds up one-time build
  1308. --enable-dependency-tracking do not reject slow dependency extractors
  1309. --enable-shared[=PKGS] build shared libraries [default=yes]
  1310. --enable-static[=PKGS] build static libraries [default=yes]
  1311. --enable-fast-install[=PKGS]
  1312. optimize for fast installation [default=yes]
  1313. --disable-libtool-lock avoid locking (might break parallel builds)
  1314. --disable-cpp disable C++ support
  1315. --enable-rebuild-chartables
  1316. rebuild character tables in current locale
  1317. --enable-utf8 enable UTF-8 support
  1318. --enable-unicode-properties
  1319. enable Unicode properties support (implies
  1320. --enable-utf8)
  1321. --enable-newline-is-cr use CR as newline character
  1322. --enable-newline-is-lf use LF as newline character (default)
  1323. --enable-newline-is-crlf
  1324. use CRLF as newline sequence
  1325. --enable-newline-is-anycrlf
  1326. use CR, LF, or CRLF as newline sequence
  1327. --enable-newline-is-any use any valid Unicode newline sequence
  1328. --enable-bsr-anycrlf \R matches only CR, LF, CRLF by default
  1329. --enable-ebcdic assume EBCDIC coding rather than ASCII; use this
  1330. only in (uncommon) EBCDIC environments; it implies
  1331. --enable-rebuild-chartables
  1332. --disable-stack-for-recursion
  1333. don't use stack recursion when matching
  1334. --enable-pcregrep-libz link pcregrep with libz to handle .gz files
  1335. --enable-pcregrep-libbz2
  1336. link pcregrep with libbz2 to handle .bz2 files
  1337. --enable-pcretest-libreadline
  1338. link pcretest with libreadline
  1339. Optional Packages:
  1340. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1341. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1342. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1343. --with-pic try to use only PIC/non-PIC objects [default=use
  1344. both]
  1345. --with-tags[=TAGS] include additional configurations [automatic]
  1346. --with-posix-malloc-threshold=NBYTES
  1347. threshold for POSIX malloc usage (default=10)
  1348. --with-link-size=N internal link size (2, 3, or 4 allowed; default=2)
  1349. --with-match-limit=N default limit on internal looping (default=10000000)
  1350. --with-match-limit-recursion=N
  1351. default limit on internal recursion
  1352. (default=MATCH_LIMIT)
  1353. Some influential environment variables:
  1354. CC C compiler command
  1355. CFLAGS C compiler flags
  1356. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1357. nonstandard directory <lib dir>
  1358. LIBS libraries to pass to the linker, e.g. -l<library>
  1359. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1360. you have headers in a nonstandard directory <include dir>
  1361. CXX C++ compiler command
  1362. CXXFLAGS C++ compiler flags
  1363. CPP C preprocessor
  1364. CXXCPP C++ preprocessor
  1365. F77 Fortran 77 compiler command
  1366. FFLAGS Fortran 77 compiler flags
  1367. Use these variables to override the choices made by `configure' or to help
  1368. it to find libraries and programs with nonstandard names/locations.
  1369. _ACEOF
  1370. ac_status=$?
  1371. fi
  1372. if test "$ac_init_help" = "recursive"; then
  1373. # If there are subdirs, report their specific --help.
  1374. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1375. test -d "$ac_dir" || continue
  1376. ac_builddir=.
  1377. case "$ac_dir" in
  1378. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1379. *)
  1380. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1381. # A ".." for each directory in $ac_dir_suffix.
  1382. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1383. case $ac_top_builddir_sub in
  1384. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1385. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1386. esac ;;
  1387. esac
  1388. ac_abs_top_builddir=$ac_pwd
  1389. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1390. # for backward compatibility:
  1391. ac_top_builddir=$ac_top_build_prefix
  1392. case $srcdir in
  1393. .) # We are building in place.
  1394. ac_srcdir=.
  1395. ac_top_srcdir=$ac_top_builddir_sub
  1396. ac_abs_top_srcdir=$ac_pwd ;;
  1397. [\\/]* | ?:[\\/]* ) # Absolute name.
  1398. ac_srcdir=$srcdir$ac_dir_suffix;
  1399. ac_top_srcdir=$srcdir
  1400. ac_abs_top_srcdir=$srcdir ;;
  1401. *) # Relative name.
  1402. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1403. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1404. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1405. esac
  1406. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1407. cd "$ac_dir" || { ac_status=$?; continue; }
  1408. # Check for guested configure.
  1409. if test -f "$ac_srcdir/configure.gnu"; then
  1410. echo &&
  1411. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1412. elif test -f "$ac_srcdir/configure"; then
  1413. echo &&
  1414. $SHELL "$ac_srcdir/configure" --help=recursive
  1415. else
  1416. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1417. fi || ac_status=$?
  1418. cd "$ac_pwd" || { ac_status=$?; break; }
  1419. done
  1420. fi
  1421. test -n "$ac_init_help" && exit $ac_status
  1422. if $ac_init_version; then
  1423. cat <<\_ACEOF
  1424. PCRE configure 7.8
  1425. generated by GNU Autoconf 2.61
  1426. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1427. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1428. This configure script is free software; the Free Software Foundation
  1429. gives unlimited permission to copy, distribute and modify it.
  1430. _ACEOF
  1431. exit
  1432. fi
  1433. cat >config.log <<_ACEOF
  1434. This file contains any messages produced by compilers while
  1435. running configure, to aid debugging if configure makes a mistake.
  1436. It was created by PCRE $as_me 7.8, which was
  1437. generated by GNU Autoconf 2.61. Invocation command line was
  1438. $ $0 $@
  1439. _ACEOF
  1440. exec 5>>config.log
  1441. {
  1442. cat <<_ASUNAME
  1443. ## --------- ##
  1444. ## Platform. ##
  1445. ## --------- ##
  1446. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1447. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1448. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1449. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1450. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1451. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1452. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1453. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1454. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1455. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1456. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1457. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1458. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1459. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1460. _ASUNAME
  1461. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1462. for as_dir in $PATH
  1463. do
  1464. IFS=$as_save_IFS
  1465. test -z "$as_dir" && as_dir=.
  1466. echo "PATH: $as_dir"
  1467. done
  1468. IFS=$as_save_IFS
  1469. } >&5
  1470. cat >&5 <<_ACEOF
  1471. ## ----------- ##
  1472. ## Core tests. ##
  1473. ## ----------- ##
  1474. _ACEOF
  1475. # Keep a trace of the command line.
  1476. # Strip out --no-create and --no-recursion so they do not pile up.
  1477. # Strip out --silent because we don't want to record it for future runs.
  1478. # Also quote any args containing shell meta-characters.
  1479. # Make two passes to allow for proper duplicate-argument suppression.
  1480. ac_configure_args=
  1481. ac_configure_args0=
  1482. ac_configure_args1=
  1483. ac_must_keep_next=false
  1484. for ac_pass in 1 2
  1485. do
  1486. for ac_arg
  1487. do
  1488. case $ac_arg in
  1489. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1490. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1491. | -silent | --silent | --silen | --sile | --sil)
  1492. continue ;;
  1493. *\'*)
  1494. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1495. esac
  1496. case $ac_pass in
  1497. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1498. 2)
  1499. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1500. if test $ac_must_keep_next = true; then
  1501. ac_must_keep_next=false # Got value, back to normal.
  1502. else
  1503. case $ac_arg in
  1504. *=* | --config-cache | -C | -disable-* | --disable-* \
  1505. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1506. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1507. | -with-* | --with-* | -without-* | --without-* | --x)
  1508. case "$ac_configure_args0 " in
  1509. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1510. esac
  1511. ;;
  1512. -* ) ac_must_keep_next=true ;;
  1513. esac
  1514. fi
  1515. ac_configure_args="$ac_configure_args '$ac_arg'"
  1516. ;;
  1517. esac
  1518. done
  1519. done
  1520. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1521. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1522. # When interrupted or exit'd, cleanup temporary files, and complete
  1523. # config.log. We remove comments because anyway the quotes in there
  1524. # would cause problems or look ugly.
  1525. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1526. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1527. trap 'exit_status=$?
  1528. # Save into config.log some information that might help in debugging.
  1529. {
  1530. echo
  1531. cat <<\_ASBOX
  1532. ## ---------------- ##
  1533. ## Cache variables. ##
  1534. ## ---------------- ##
  1535. _ASBOX
  1536. echo
  1537. # The following way of writing the cache mishandles newlines in values,
  1538. (
  1539. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1540. eval ac_val=\$$ac_var
  1541. case $ac_val in #(
  1542. *${as_nl}*)
  1543. case $ac_var in #(
  1544. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1545. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1546. esac
  1547. case $ac_var in #(
  1548. _ | IFS | as_nl) ;; #(
  1549. *) $as_unset $ac_var ;;
  1550. esac ;;
  1551. esac
  1552. done
  1553. (set) 2>&1 |
  1554. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1555. *${as_nl}ac_space=\ *)
  1556. sed -n \
  1557. "s/'\''/'\''\\\\'\'''\''/g;
  1558. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1559. ;; #(
  1560. *)
  1561. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1562. ;;
  1563. esac |
  1564. sort
  1565. )
  1566. echo
  1567. cat <<\_ASBOX
  1568. ## ----------------- ##
  1569. ## Output variables. ##
  1570. ## ----------------- ##
  1571. _ASBOX
  1572. echo
  1573. for ac_var in $ac_subst_vars
  1574. do
  1575. eval ac_val=\$$ac_var
  1576. case $ac_val in
  1577. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1578. esac
  1579. echo "$ac_var='\''$ac_val'\''"
  1580. done | sort
  1581. echo
  1582. if test -n "$ac_subst_files"; then
  1583. cat <<\_ASBOX
  1584. ## ------------------- ##
  1585. ## File substitutions. ##
  1586. ## ------------------- ##
  1587. _ASBOX
  1588. echo
  1589. for ac_var in $ac_subst_files
  1590. do
  1591. eval ac_val=\$$ac_var
  1592. case $ac_val in
  1593. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1594. esac
  1595. echo "$ac_var='\''$ac_val'\''"
  1596. done | sort
  1597. echo
  1598. fi
  1599. if test -s confdefs.h; then
  1600. cat <<\_ASBOX
  1601. ## ----------- ##
  1602. ## confdefs.h. ##
  1603. ## ----------- ##
  1604. _ASBOX
  1605. echo
  1606. cat confdefs.h
  1607. echo
  1608. fi
  1609. test "$ac_signal" != 0 &&
  1610. echo "$as_me: caught signal $ac_signal"
  1611. echo "$as_me: exit $exit_status"
  1612. } >&5
  1613. rm -f core *.core core.conftest.* &&
  1614. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1615. exit $exit_status
  1616. ' 0
  1617. for ac_signal in 1 2 13 15; do
  1618. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1619. done
  1620. ac_signal=0
  1621. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1622. rm -f -r conftest* confdefs.h
  1623. # Predefined preprocessor variables.
  1624. cat >>confdefs.h <<_ACEOF
  1625. #define PACKAGE_NAME "$PACKAGE_NAME"
  1626. _ACEOF
  1627. cat >>confdefs.h <<_ACEOF
  1628. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1629. _ACEOF
  1630. cat >>confdefs.h <<_ACEOF
  1631. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1632. _ACEOF
  1633. cat >>confdefs.h <<_ACEOF
  1634. #define PACKAGE_STRING "$PACKAGE_STRING"
  1635. _ACEOF
  1636. cat >>confdefs.h <<_ACEOF
  1637. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1638. _ACEOF
  1639. # Let the site file select an alternate cache file if it wants to.
  1640. # Prefer explicitly selected file to automatically selected ones.
  1641. if test -n "$CONFIG_SITE"; then
  1642. set x "$CONFIG_SITE"
  1643. elif test "x$prefix" != xNONE; then
  1644. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1645. else
  1646. set x "$ac_default_prefix/share/config.site" \
  1647. "$ac_default_prefix/etc/config.site"
  1648. fi
  1649. shift
  1650. for ac_site_file
  1651. do
  1652. if test -r "$ac_site_file"; then
  1653. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1654. echo "$as_me: loading site script $ac_site_file" >&6;}
  1655. sed 's/^/| /' "$ac_site_file" >&5
  1656. . "$ac_site_file"
  1657. fi
  1658. done
  1659. if test -r "$cache_file"; then
  1660. # Some versions of bash will fail to source /dev/null (special
  1661. # files actually), so we avoid doing that.
  1662. if test -f "$cache_file"; then
  1663. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1664. echo "$as_me: loading cache $cache_file" >&6;}
  1665. case $cache_file in
  1666. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1667. *) . "./$cache_file";;
  1668. esac
  1669. fi
  1670. else
  1671. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1672. echo "$as_me: creating cache $cache_file" >&6;}
  1673. >$cache_file
  1674. fi
  1675. # Check that the precious variables saved in the cache have kept the same
  1676. # value.
  1677. ac_cache_corrupted=false
  1678. for ac_var in $ac_precious_vars; do
  1679. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1680. eval ac_new_set=\$ac_env_${ac_var}_set
  1681. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1682. eval ac_new_val=\$ac_env_${ac_var}_value
  1683. case $ac_old_set,$ac_new_set in
  1684. set,)
  1685. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1686. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1687. ac_cache_corrupted=: ;;
  1688. ,set)
  1689. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1690. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1691. ac_cache_corrupted=: ;;
  1692. ,);;
  1693. *)
  1694. if test "x$ac_old_val" != "x$ac_new_val"; then
  1695. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1696. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1697. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1698. echo "$as_me: former value: $ac_old_val" >&2;}
  1699. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1700. echo "$as_me: current value: $ac_new_val" >&2;}
  1701. ac_cache_corrupted=:
  1702. fi;;
  1703. esac
  1704. # Pass precious variables to config.status.
  1705. if test "$ac_new_set" = set; then
  1706. case $ac_new_val in
  1707. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1708. *) ac_arg=$ac_var=$ac_new_val ;;
  1709. esac
  1710. case " $ac_configure_args " in
  1711. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1712. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1713. esac
  1714. fi
  1715. done
  1716. if $ac_cache_corrupted; then
  1717. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1718. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1719. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1720. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1721. { (exit 1); exit 1; }; }
  1722. fi
  1723. ac_ext=c
  1724. ac_cpp='$CPP $CPPFLAGS'
  1725. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1726. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1727. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1728. am__api_version='1.10'
  1729. ac_aux_dir=
  1730. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1731. if test -f "$ac_dir/install-sh"; then
  1732. ac_aux_dir=$ac_dir
  1733. ac_install_sh="$ac_aux_dir/install-sh -c"
  1734. break
  1735. elif test -f "$ac_dir/install.sh"; then
  1736. ac_aux_dir=$ac_dir
  1737. ac_install_sh="$ac_aux_dir/install.sh -c"
  1738. break
  1739. elif test -f "$ac_dir/shtool"; then
  1740. ac_aux_dir=$ac_dir
  1741. ac_install_sh="$ac_aux_dir/shtool install -c"
  1742. break
  1743. fi
  1744. done
  1745. if test -z "$ac_aux_dir"; then
  1746. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1747. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1748. { (exit 1); exit 1; }; }
  1749. fi
  1750. # These three variables are undocumented and unsupported,
  1751. # and are intended to be withdrawn in a future Autoconf release.
  1752. # They can cause serious problems if a builder's source tree is in a directory
  1753. # whose full name contains unusual characters.
  1754. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1755. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1756. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1757. # Find a good install program. We prefer a C program (faster),
  1758. # so one script is as good as another. But avoid the broken or
  1759. # incompatible versions:
  1760. # SysV /etc/install, /usr/sbin/install
  1761. # SunOS /usr/etc/install
  1762. # IRIX /sbin/install
  1763. # AIX /bin/install
  1764. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1765. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1766. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1767. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1768. # OS/2's system install, which has a completely different semantic
  1769. # ./install, which can be erroneously created by make from ./install.sh.
  1770. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1771. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1772. if test -z "$INSTALL"; then
  1773. if test "${ac_cv_path_install+set}" = set; then
  1774. echo $ECHO_N "(cached) $ECHO_C" >&6
  1775. else
  1776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1777. for as_dir in $PATH
  1778. do
  1779. IFS=$as_save_IFS
  1780. test -z "$as_dir" && as_dir=.
  1781. # Account for people who put trailing slashes in PATH elements.
  1782. case $as_dir/ in
  1783. ./ | .// | /cC/* | \
  1784. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1785. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1786. /usr/ucb/* ) ;;
  1787. *)
  1788. # OSF1 and SCO ODT 3.0 have their own names for install.
  1789. # Don't use installbsd from OSF since it installs stuff as root
  1790. # by default.
  1791. for ac_prog in ginstall scoinst install; do
  1792. for ac_exec_ext in '' $ac_executable_extensions; do
  1793. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1794. if test $ac_prog = install &&
  1795. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1796. # AIX install. It has an incompatible calling convention.
  1797. :
  1798. elif test $ac_prog = install &&
  1799. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1800. # program-specific install script used by HP pwplus--don't use.
  1801. :
  1802. else
  1803. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1804. break 3
  1805. fi
  1806. fi
  1807. done
  1808. done
  1809. ;;
  1810. esac
  1811. done
  1812. IFS=$as_save_IFS
  1813. fi
  1814. if test "${ac_cv_path_install+set}" = set; then
  1815. INSTALL=$ac_cv_path_install
  1816. else
  1817. # As a last resort, use the slow shell script. Don't cache a
  1818. # value for INSTALL within a source directory, because that will
  1819. # break other packages using the cache if that directory is
  1820. # removed, or if the value is a relative name.
  1821. INSTALL=$ac_install_sh
  1822. fi
  1823. fi
  1824. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1825. echo "${ECHO_T}$INSTALL" >&6; }
  1826. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1827. # It thinks the first close brace ends the variable substitution.
  1828. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1829. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1830. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1831. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1832. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1833. # Just in case
  1834. sleep 1
  1835. echo timestamp > conftest.file
  1836. # Do `set' in a subshell so we don't clobber the current shell's
  1837. # arguments. Must try -L first in case configure is actually a
  1838. # symlink; some systems play weird games with the mod time of symlinks
  1839. # (eg FreeBSD returns the mod time of the symlink's containing
  1840. # directory).
  1841. if (
  1842. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1843. if test "$*" = "X"; then
  1844. # -L didn't work.
  1845. set X `ls -t $srcdir/configure conftest.file`
  1846. fi
  1847. rm -f conftest.file
  1848. if test "$*" != "X $srcdir/configure conftest.file" \
  1849. && test "$*" != "X conftest.file $srcdir/configure"; then
  1850. # If neither matched, then we have a broken ls. This can happen
  1851. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1852. # broken ls alias from the environment. This has actually
  1853. # happened. Such a system could not be considered "sane".
  1854. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1855. alias in your environment" >&5
  1856. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1857. alias in your environment" >&2;}
  1858. { (exit 1); exit 1; }; }
  1859. fi
  1860. test "$2" = conftest.file
  1861. )
  1862. then
  1863. # Ok.
  1864. :
  1865. else
  1866. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1867. Check your system clock" >&5
  1868. echo "$as_me: error: newly created file is older than distributed files!
  1869. Check your system clock" >&2;}
  1870. { (exit 1); exit 1; }; }
  1871. fi
  1872. { echo "$as_me:$LINENO: result: yes" >&5
  1873. echo "${ECHO_T}yes" >&6; }
  1874. test "$program_prefix" != NONE &&
  1875. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1876. # Use a double $ so make ignores it.
  1877. test "$program_suffix" != NONE &&
  1878. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1879. # Double any \ or $. echo might interpret backslashes.
  1880. # By default was `s,x,x', remove it if useless.
  1881. cat <<\_ACEOF >conftest.sed
  1882. s/[\\$]/&&/g;s/;s,x,x,$//
  1883. _ACEOF
  1884. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1885. rm -f conftest.sed
  1886. # expand $ac_aux_dir to an absolute path
  1887. am_aux_dir=`cd $ac_aux_dir && pwd`
  1888. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1889. # Use eval to expand $SHELL
  1890. if eval "$MISSING --run true"; then
  1891. am_missing_run="$MISSING --run "
  1892. else
  1893. am_missing_run=
  1894. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1895. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1896. fi
  1897. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1898. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  1899. if test -z "$MKDIR_P"; then
  1900. if test "${ac_cv_path_mkdir+set}" = set; then
  1901. echo $ECHO_N "(cached) $ECHO_C" >&6
  1902. else
  1903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1904. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1905. do
  1906. IFS=$as_save_IFS
  1907. test -z "$as_dir" && as_dir=.
  1908. for ac_prog in mkdir gmkdir; do
  1909. for ac_exec_ext in '' $ac_executable_extensions; do
  1910. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1911. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1912. 'mkdir (GNU coreutils) '* | \
  1913. 'mkdir (coreutils) '* | \
  1914. 'mkdir (fileutils) '4.1*)
  1915. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1916. break 3;;
  1917. esac
  1918. done
  1919. done
  1920. done
  1921. IFS=$as_save_IFS
  1922. fi
  1923. if test "${ac_cv_path_mkdir+set}" = set; then
  1924. MKDIR_P="$ac_cv_path_mkdir -p"
  1925. else
  1926. # As a last resort, use the slow shell script. Don't cache a
  1927. # value for MKDIR_P within a source directory, because that will
  1928. # break other packages using the cache if that directory is
  1929. # removed, or if the value is a relative name.
  1930. test -d ./--version && rmdir ./--version
  1931. MKDIR_P="$ac_install_sh -d"
  1932. fi
  1933. fi
  1934. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  1935. echo "${ECHO_T}$MKDIR_P" >&6; }
  1936. mkdir_p="$MKDIR_P"
  1937. case $mkdir_p in
  1938. [\\/$]* | ?:[\\/]*) ;;
  1939. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  1940. esac
  1941. for ac_prog in gawk mawk nawk awk
  1942. do
  1943. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1944. set dummy $ac_prog; ac_word=$2
  1945. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1946. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1947. if test "${ac_cv_prog_AWK+set}" = set; then
  1948. echo $ECHO_N "(cached) $ECHO_C" >&6
  1949. else
  1950. if test -n "$AWK"; then
  1951. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1952. else
  1953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1954. for as_dir in $PATH
  1955. do
  1956. IFS=$as_save_IFS
  1957. test -z "$as_dir" && as_dir=.
  1958. for ac_exec_ext in '' $ac_executable_extensions; do
  1959. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1960. ac_cv_prog_AWK="$ac_prog"
  1961. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1962. break 2
  1963. fi
  1964. done
  1965. done
  1966. IFS=$as_save_IFS
  1967. fi
  1968. fi
  1969. AWK=$ac_cv_prog_AWK
  1970. if test -n "$AWK"; then
  1971. { echo "$as_me:$LINENO: result: $AWK" >&5
  1972. echo "${ECHO_T}$AWK" >&6; }
  1973. else
  1974. { echo "$as_me:$LINENO: result: no" >&5
  1975. echo "${ECHO_T}no" >&6; }
  1976. fi
  1977. test -n "$AWK" && break
  1978. done
  1979. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1980. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  1981. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1982. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1983. echo $ECHO_N "(cached) $ECHO_C" >&6
  1984. else
  1985. cat >conftest.make <<\_ACEOF
  1986. SHELL = /bin/sh
  1987. all:
  1988. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1989. _ACEOF
  1990. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1991. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1992. *@@@%%%=?*=@@@%%%*)
  1993. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1994. *)
  1995. eval ac_cv_prog_make_${ac_make}_set=no;;
  1996. esac
  1997. rm -f conftest.make
  1998. fi
  1999. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2000. { echo "$as_me:$LINENO: result: yes" >&5
  2001. echo "${ECHO_T}yes" >&6; }
  2002. SET_MAKE=
  2003. else
  2004. { echo "$as_me:$LINENO: result: no" >&5
  2005. echo "${ECHO_T}no" >&6; }
  2006. SET_MAKE="MAKE=${MAKE-make}"
  2007. fi
  2008. rm -rf .tst 2>/dev/null
  2009. mkdir .tst 2>/dev/null
  2010. if test -d .tst; then
  2011. am__leading_dot=.
  2012. else
  2013. am__leading_dot=_
  2014. fi
  2015. rmdir .tst 2>/dev/null
  2016. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2017. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2018. # is not polluted with repeated "-I."
  2019. am__isrc=' -I$(srcdir)'
  2020. # test to see if srcdir already configured
  2021. if test -f $srcdir/config.status; then
  2022. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2023. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2024. { (exit 1); exit 1; }; }
  2025. fi
  2026. fi
  2027. # test whether we have cygpath
  2028. if test -z "$CYGPATH_W"; then
  2029. if (cygpath --version) >/dev/null 2>/dev/null; then
  2030. CYGPATH_W='cygpath -w'
  2031. else
  2032. CYGPATH_W=echo
  2033. fi
  2034. fi
  2035. # Define the identity of the package.
  2036. PACKAGE='pcre'
  2037. VERSION='7.8'
  2038. cat >>confdefs.h <<_ACEOF
  2039. #define PACKAGE "$PACKAGE"
  2040. _ACEOF
  2041. cat >>confdefs.h <<_ACEOF
  2042. #define VERSION "$VERSION"
  2043. _ACEOF
  2044. # Some tools Automake needs.
  2045. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2046. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2047. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2048. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2049. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2050. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2051. # Installed binaries are usually stripped using `strip' when the user
  2052. # run `make install-strip'. However `strip' might not be the right
  2053. # tool to use in cross-compilation environments, therefore Automake
  2054. # will honor the `STRIP' environment variable to overrule this program.
  2055. if test "$cross_compiling" != no; then
  2056. if test -n "$ac_tool_prefix"; then
  2057. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2058. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2059. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2060. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2061. if test "${ac_cv_prog_STRIP+set}" = set; then
  2062. echo $ECHO_N "(cached) $ECHO_C" >&6
  2063. else
  2064. if test -n "$STRIP"; then
  2065. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2066. else
  2067. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2068. for as_dir in $PATH
  2069. do
  2070. IFS=$as_save_IFS
  2071. test -z "$as_dir" && as_dir=.
  2072. for ac_exec_ext in '' $ac_executable_extensions; do
  2073. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2074. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2075. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2076. break 2
  2077. fi
  2078. done
  2079. done
  2080. IFS=$as_save_IFS
  2081. fi
  2082. fi
  2083. STRIP=$ac_cv_prog_STRIP
  2084. if test -n "$STRIP"; then
  2085. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2086. echo "${ECHO_T}$STRIP" >&6; }
  2087. else
  2088. { echo "$as_me:$LINENO: result: no" >&5
  2089. echo "${ECHO_T}no" >&6; }
  2090. fi
  2091. fi
  2092. if test -z "$ac_cv_prog_STRIP"; then
  2093. ac_ct_STRIP=$STRIP
  2094. # Extract the first word of "strip", so it can be a program name with args.
  2095. set dummy strip; ac_word=$2
  2096. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2097. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2098. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2099. echo $ECHO_N "(cached) $ECHO_C" >&6
  2100. else
  2101. if test -n "$ac_ct_STRIP"; then
  2102. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2103. else
  2104. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2105. for as_dir in $PATH
  2106. do
  2107. IFS=$as_save_IFS
  2108. test -z "$as_dir" && as_dir=.
  2109. for ac_exec_ext in '' $ac_executable_extensions; do
  2110. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2111. ac_cv_prog_ac_ct_STRIP="strip"
  2112. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2113. break 2
  2114. fi
  2115. done
  2116. done
  2117. IFS=$as_save_IFS
  2118. fi
  2119. fi
  2120. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2121. if test -n "$ac_ct_STRIP"; then
  2122. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2123. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2124. else
  2125. { echo "$as_me:$LINENO: result: no" >&5
  2126. echo "${ECHO_T}no" >&6; }
  2127. fi
  2128. if test "x$ac_ct_STRIP" = x; then
  2129. STRIP=":"
  2130. else
  2131. case $cross_compiling:$ac_tool_warned in
  2132. yes:)
  2133. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2134. whose name does not start with the host triplet. If you think this
  2135. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2136. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2137. whose name does not start with the host triplet. If you think this
  2138. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2139. ac_tool_warned=yes ;;
  2140. esac
  2141. STRIP=$ac_ct_STRIP
  2142. fi
  2143. else
  2144. STRIP="$ac_cv_prog_STRIP"
  2145. fi
  2146. fi
  2147. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2148. # We need awk for the "check" target. The system "awk" is bad on
  2149. # some platforms.
  2150. # Always define AMTAR for backward compatibility.
  2151. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2152. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2153. ac_config_headers="$ac_config_headers config.h"
  2154. # The default CFLAGS and CXXFLAGS in Autoconf are "-g -O2" for gcc and just
  2155. # "-g" for any other compiler. There doesn't seem to be a standard way of
  2156. # getting rid of the -g (which I don't think is needed for a production
  2157. # library). This fudge seems to achieve the necessary. First, we remember the
  2158. # externally set values of CFLAGS and CXXFLAGS. Then call the AC_PROG_CC and
  2159. # AC_PROG_CXX macros to find the compilers - if CFLAGS and CXXFLAGS are not
  2160. # set, they will be set to Autoconf's defaults. Afterwards, if the original
  2161. # values were not set, remove the -g from the Autoconf defaults.
  2162. # (PH 02-May-07)
  2163. remember_set_CFLAGS="$CFLAGS"
  2164. remember_set_CXXFLAGS="$CXXFLAGS"
  2165. ac_ext=c
  2166. ac_cpp='$CPP $CPPFLAGS'
  2167. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2168. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2169. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2170. if test -n "$ac_tool_prefix"; then
  2171. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2172. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2173. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2174. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2175. if test "${ac_cv_prog_CC+set}" = set; then
  2176. echo $ECHO_N "(cached) $ECHO_C" >&6
  2177. else
  2178. if test -n "$CC"; then
  2179. ac_cv_prog_CC="$CC" # Let the user override the test.
  2180. else
  2181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2182. for as_dir in $PATH
  2183. do
  2184. IFS=$as_save_IFS
  2185. test -z "$as_dir" && as_dir=.
  2186. for ac_exec_ext in '' $ac_executable_extensions; do
  2187. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2188. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2189. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2190. break 2
  2191. fi
  2192. done
  2193. done
  2194. IFS=$as_save_IFS
  2195. fi
  2196. fi
  2197. CC=$ac_cv_prog_CC
  2198. if test -n "$CC"; then
  2199. { echo "$as_me:$LINENO: result: $CC" >&5
  2200. echo "${ECHO_T}$CC" >&6; }
  2201. else
  2202. { echo "$as_me:$LINENO: result: no" >&5
  2203. echo "${ECHO_T}no" >&6; }
  2204. fi
  2205. fi
  2206. if test -z "$ac_cv_prog_CC"; then
  2207. ac_ct_CC=$CC
  2208. # Extract the first word of "gcc", so it can be a program name with args.
  2209. set dummy gcc; ac_word=$2
  2210. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2211. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2212. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2213. echo $ECHO_N "(cached) $ECHO_C" >&6
  2214. else
  2215. if test -n "$ac_ct_CC"; then
  2216. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2217. else
  2218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2219. for as_dir in $PATH
  2220. do
  2221. IFS=$as_save_IFS
  2222. test -z "$as_dir" && as_dir=.
  2223. for ac_exec_ext in '' $ac_executable_extensions; do
  2224. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2225. ac_cv_prog_ac_ct_CC="gcc"
  2226. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2227. break 2
  2228. fi
  2229. done
  2230. done
  2231. IFS=$as_save_IFS
  2232. fi
  2233. fi
  2234. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2235. if test -n "$ac_ct_CC"; then
  2236. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2237. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2238. else
  2239. { echo "$as_me:$LINENO: result: no" >&5
  2240. echo "${ECHO_T}no" >&6; }
  2241. fi
  2242. if test "x$ac_ct_CC" = x; then
  2243. CC=""
  2244. else
  2245. case $cross_compiling:$ac_tool_warned in
  2246. yes:)
  2247. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2248. whose name does not start with the host triplet. If you think this
  2249. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2250. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2251. whose name does not start with the host triplet. If you think this
  2252. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2253. ac_tool_warned=yes ;;
  2254. esac
  2255. CC=$ac_ct_CC
  2256. fi
  2257. else
  2258. CC="$ac_cv_prog_CC"
  2259. fi
  2260. if test -z "$CC"; then
  2261. if test -n "$ac_tool_prefix"; then
  2262. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2263. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2264. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2265. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2266. if test "${ac_cv_prog_CC+set}" = set; then
  2267. echo $ECHO_N "(cached) $ECHO_C" >&6
  2268. else
  2269. if test -n "$CC"; then
  2270. ac_cv_prog_CC="$CC" # Let the user override the test.
  2271. else
  2272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2273. for as_dir in $PATH
  2274. do
  2275. IFS=$as_save_IFS
  2276. test -z "$as_dir" && as_dir=.
  2277. for ac_exec_ext in '' $ac_executable_extensions; do
  2278. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2279. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2280. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2281. break 2
  2282. fi
  2283. done
  2284. done
  2285. IFS=$as_save_IFS
  2286. fi
  2287. fi
  2288. CC=$ac_cv_prog_CC
  2289. if test -n "$CC"; then
  2290. { echo "$as_me:$LINENO: result: $CC" >&5
  2291. echo "${ECHO_T}$CC" >&6; }
  2292. else
  2293. { echo "$as_me:$LINENO: result: no" >&5
  2294. echo "${ECHO_T}no" >&6; }
  2295. fi
  2296. fi
  2297. fi
  2298. if test -z "$CC"; then
  2299. # Extract the first word of "cc", so it can be a program name with args.
  2300. set dummy cc; ac_word=$2
  2301. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2302. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2303. if test "${ac_cv_prog_CC+set}" = set; then
  2304. echo $ECHO_N "(cached) $ECHO_C" >&6
  2305. else
  2306. if test -n "$CC"; then
  2307. ac_cv_prog_CC="$CC" # Let the user override the test.
  2308. else
  2309. ac_prog_rejected=no
  2310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2311. for as_dir in $PATH
  2312. do
  2313. IFS=$as_save_IFS
  2314. test -z "$as_dir" && as_dir=.
  2315. for ac_exec_ext in '' $ac_executable_extensions; do
  2316. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2317. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2318. ac_prog_rejected=yes
  2319. continue
  2320. fi
  2321. ac_cv_prog_CC="cc"
  2322. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2323. break 2
  2324. fi
  2325. done
  2326. done
  2327. IFS=$as_save_IFS
  2328. if test $ac_prog_rejected = yes; then
  2329. # We found a bogon in the path, so make sure we never use it.
  2330. set dummy $ac_cv_prog_CC
  2331. shift
  2332. if test $# != 0; then
  2333. # We chose a different compiler from the bogus one.
  2334. # However, it has the same basename, so the bogon will be chosen
  2335. # first if we set CC to just the basename; use the full file name.
  2336. shift
  2337. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2338. fi
  2339. fi
  2340. fi
  2341. fi
  2342. CC=$ac_cv_prog_CC
  2343. if test -n "$CC"; then
  2344. { echo "$as_me:$LINENO: result: $CC" >&5
  2345. echo "${ECHO_T}$CC" >&6; }
  2346. else
  2347. { echo "$as_me:$LINENO: result: no" >&5
  2348. echo "${ECHO_T}no" >&6; }
  2349. fi
  2350. fi
  2351. if test -z "$CC"; then
  2352. if test -n "$ac_tool_prefix"; then
  2353. for ac_prog in cl.exe
  2354. do
  2355. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2356. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2357. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2358. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2359. if test "${ac_cv_prog_CC+set}" = set; then
  2360. echo $ECHO_N "(cached) $ECHO_C" >&6
  2361. else
  2362. if test -n "$CC"; then
  2363. ac_cv_prog_CC="$CC" # Let the user override the test.
  2364. else
  2365. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2366. for as_dir in $PATH
  2367. do
  2368. IFS=$as_save_IFS
  2369. test -z "$as_dir" && as_dir=.
  2370. for ac_exec_ext in '' $ac_executable_extensions; do
  2371. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2372. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2373. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2374. break 2
  2375. fi
  2376. done
  2377. done
  2378. IFS=$as_save_IFS
  2379. fi
  2380. fi
  2381. CC=$ac_cv_prog_CC
  2382. if test -n "$CC"; then
  2383. { echo "$as_me:$LINENO: result: $CC" >&5
  2384. echo "${ECHO_T}$CC" >&6; }
  2385. else
  2386. { echo "$as_me:$LINENO: result: no" >&5
  2387. echo "${ECHO_T}no" >&6; }
  2388. fi
  2389. test -n "$CC" && break
  2390. done
  2391. fi
  2392. if test -z "$CC"; then
  2393. ac_ct_CC=$CC
  2394. for ac_prog in cl.exe
  2395. do
  2396. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2397. set dummy $ac_prog; ac_word=$2
  2398. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2399. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2400. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2401. echo $ECHO_N "(cached) $ECHO_C" >&6
  2402. else
  2403. if test -n "$ac_ct_CC"; then
  2404. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2405. else
  2406. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2407. for as_dir in $PATH
  2408. do
  2409. IFS=$as_save_IFS
  2410. test -z "$as_dir" && as_dir=.
  2411. for ac_exec_ext in '' $ac_executable_extensions; do
  2412. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2413. ac_cv_prog_ac_ct_CC="$ac_prog"
  2414. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2415. break 2
  2416. fi
  2417. done
  2418. done
  2419. IFS=$as_save_IFS
  2420. fi
  2421. fi
  2422. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2423. if test -n "$ac_ct_CC"; then
  2424. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2425. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2426. else
  2427. { echo "$as_me:$LINENO: result: no" >&5
  2428. echo "${ECHO_T}no" >&6; }
  2429. fi
  2430. test -n "$ac_ct_CC" && break
  2431. done
  2432. if test "x$ac_ct_CC" = x; then
  2433. CC=""
  2434. else
  2435. case $cross_compiling:$ac_tool_warned in
  2436. yes:)
  2437. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2438. whose name does not start with the host triplet. If you think this
  2439. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2440. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2441. whose name does not start with the host triplet. If you think this
  2442. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2443. ac_tool_warned=yes ;;
  2444. esac
  2445. CC=$ac_ct_CC
  2446. fi
  2447. fi
  2448. fi
  2449. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2450. See \`config.log' for more details." >&5
  2451. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2452. See \`config.log' for more details." >&2;}
  2453. { (exit 1); exit 1; }; }
  2454. # Provide some information about the compiler.
  2455. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2456. ac_compiler=`set X $ac_compile; echo $2`
  2457. { (ac_try="$ac_compiler --version >&5"
  2458. case "(($ac_try" in
  2459. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2460. *) ac_try_echo=$ac_try;;
  2461. esac
  2462. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2463. (eval "$ac_compiler --version >&5") 2>&5
  2464. ac_status=$?
  2465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2466. (exit $ac_status); }
  2467. { (ac_try="$ac_compiler -v >&5"
  2468. case "(($ac_try" in
  2469. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2470. *) ac_try_echo=$ac_try;;
  2471. esac
  2472. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2473. (eval "$ac_compiler -v >&5") 2>&5
  2474. ac_status=$?
  2475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2476. (exit $ac_status); }
  2477. { (ac_try="$ac_compiler -V >&5"
  2478. case "(($ac_try" in
  2479. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2480. *) ac_try_echo=$ac_try;;
  2481. esac
  2482. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2483. (eval "$ac_compiler -V >&5") 2>&5
  2484. ac_status=$?
  2485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2486. (exit $ac_status); }
  2487. cat >conftest.$ac_ext <<_ACEOF
  2488. /* confdefs.h. */
  2489. _ACEOF
  2490. cat confdefs.h >>conftest.$ac_ext
  2491. cat >>conftest.$ac_ext <<_ACEOF
  2492. /* end confdefs.h. */
  2493. int
  2494. main ()
  2495. {
  2496. ;
  2497. return 0;
  2498. }
  2499. _ACEOF
  2500. ac_clean_files_save=$ac_clean_files
  2501. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2502. # Try to create an executable without -o first, disregard a.out.
  2503. # It will help us diagnose broken compilers, and finding out an intuition
  2504. # of exeext.
  2505. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2506. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2507. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2508. #
  2509. # List of possible output files, starting from the most likely.
  2510. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2511. # only as a last resort. b.out is created by i960 compilers.
  2512. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2513. #
  2514. # The IRIX 6 linker writes into existing files which may not be
  2515. # executable, retaining their permissions. Remove them first so a
  2516. # subsequent execution test works.
  2517. ac_rmfiles=
  2518. for ac_file in $ac_files
  2519. do
  2520. case $ac_file in
  2521. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2522. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2523. esac
  2524. done
  2525. rm -f $ac_rmfiles
  2526. if { (ac_try="$ac_link_default"
  2527. case "(($ac_try" in
  2528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2529. *) ac_try_echo=$ac_try;;
  2530. esac
  2531. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2532. (eval "$ac_link_default") 2>&5
  2533. ac_status=$?
  2534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2535. (exit $ac_status); }; then
  2536. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2537. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2538. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2539. # so that the user can short-circuit this test for compilers unknown to
  2540. # Autoconf.
  2541. for ac_file in $ac_files ''
  2542. do
  2543. test -f "$ac_file" || continue
  2544. case $ac_file in
  2545. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2546. ;;
  2547. [ab].out )
  2548. # We found the default executable, but exeext='' is most
  2549. # certainly right.
  2550. break;;
  2551. *.* )
  2552. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2553. then :; else
  2554. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2555. fi
  2556. # We set ac_cv_exeext here because the later test for it is not
  2557. # safe: cross compilers may not add the suffix if given an `-o'
  2558. # argument, so we may need to know it at that point already.
  2559. # Even if this section looks crufty: it has the advantage of
  2560. # actually working.
  2561. break;;
  2562. * )
  2563. break;;
  2564. esac
  2565. done
  2566. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2567. else
  2568. ac_file=''
  2569. fi
  2570. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2571. echo "${ECHO_T}$ac_file" >&6; }
  2572. if test -z "$ac_file"; then
  2573. echo "$as_me: failed program was:" >&5
  2574. sed 's/^/| /' conftest.$ac_ext >&5
  2575. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2576. See \`config.log' for more details." >&5
  2577. echo "$as_me: error: C compiler cannot create executables
  2578. See \`config.log' for more details." >&2;}
  2579. { (exit 77); exit 77; }; }
  2580. fi
  2581. ac_exeext=$ac_cv_exeext
  2582. # Check that the compiler produces executables we can run. If not, either
  2583. # the compiler is broken, or we cross compile.
  2584. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2585. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2586. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2587. # If not cross compiling, check that we can run a simple program.
  2588. if test "$cross_compiling" != yes; then
  2589. if { ac_try='./$ac_file'
  2590. { (case "(($ac_try" in
  2591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2592. *) ac_try_echo=$ac_try;;
  2593. esac
  2594. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2595. (eval "$ac_try") 2>&5
  2596. ac_status=$?
  2597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2598. (exit $ac_status); }; }; then
  2599. cross_compiling=no
  2600. else
  2601. if test "$cross_compiling" = maybe; then
  2602. cross_compiling=yes
  2603. else
  2604. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2605. If you meant to cross compile, use \`--host'.
  2606. See \`config.log' for more details." >&5
  2607. echo "$as_me: error: cannot run C compiled programs.
  2608. If you meant to cross compile, use \`--host'.
  2609. See \`config.log' for more details." >&2;}
  2610. { (exit 1); exit 1; }; }
  2611. fi
  2612. fi
  2613. fi
  2614. { echo "$as_me:$LINENO: result: yes" >&5
  2615. echo "${ECHO_T}yes" >&6; }
  2616. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2617. ac_clean_files=$ac_clean_files_save
  2618. # Check that the compiler produces executables we can run. If not, either
  2619. # the compiler is broken, or we cross compile.
  2620. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2621. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2622. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2623. echo "${ECHO_T}$cross_compiling" >&6; }
  2624. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2625. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2626. if { (ac_try="$ac_link"
  2627. case "(($ac_try" in
  2628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2629. *) ac_try_echo=$ac_try;;
  2630. esac
  2631. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2632. (eval "$ac_link") 2>&5
  2633. ac_status=$?
  2634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2635. (exit $ac_status); }; then
  2636. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2637. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2638. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2639. # `rm'.
  2640. for ac_file in conftest.exe conftest conftest.*; do
  2641. test -f "$ac_file" || continue
  2642. case $ac_file in
  2643. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2644. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2645. break;;
  2646. * ) break;;
  2647. esac
  2648. done
  2649. else
  2650. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2651. See \`config.log' for more details." >&5
  2652. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2653. See \`config.log' for more details." >&2;}
  2654. { (exit 1); exit 1; }; }
  2655. fi
  2656. rm -f conftest$ac_cv_exeext
  2657. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2658. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2659. rm -f conftest.$ac_ext
  2660. EXEEXT=$ac_cv_exeext
  2661. ac_exeext=$EXEEXT
  2662. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2663. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2664. if test "${ac_cv_objext+set}" = set; then
  2665. echo $ECHO_N "(cached) $ECHO_C" >&6
  2666. else
  2667. cat >conftest.$ac_ext <<_ACEOF
  2668. /* confdefs.h. */
  2669. _ACEOF
  2670. cat confdefs.h >>conftest.$ac_ext
  2671. cat >>conftest.$ac_ext <<_ACEOF
  2672. /* end confdefs.h. */
  2673. int
  2674. main ()
  2675. {
  2676. ;
  2677. return 0;
  2678. }
  2679. _ACEOF
  2680. rm -f conftest.o conftest.obj
  2681. if { (ac_try="$ac_compile"
  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_compile") 2>&5
  2688. ac_status=$?
  2689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2690. (exit $ac_status); }; then
  2691. for ac_file in conftest.o conftest.obj conftest.*; do
  2692. test -f "$ac_file" || continue;
  2693. case $ac_file in
  2694. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2695. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2696. break;;
  2697. esac
  2698. done
  2699. else
  2700. echo "$as_me: failed program was:" >&5
  2701. sed 's/^/| /' conftest.$ac_ext >&5
  2702. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2703. See \`config.log' for more details." >&5
  2704. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2705. See \`config.log' for more details." >&2;}
  2706. { (exit 1); exit 1; }; }
  2707. fi
  2708. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2709. fi
  2710. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2711. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2712. OBJEXT=$ac_cv_objext
  2713. ac_objext=$OBJEXT
  2714. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2715. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2716. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2717. echo $ECHO_N "(cached) $ECHO_C" >&6
  2718. else
  2719. cat >conftest.$ac_ext <<_ACEOF
  2720. /* confdefs.h. */
  2721. _ACEOF
  2722. cat confdefs.h >>conftest.$ac_ext
  2723. cat >>conftest.$ac_ext <<_ACEOF
  2724. /* end confdefs.h. */
  2725. int
  2726. main ()
  2727. {
  2728. #ifndef __GNUC__
  2729. choke me
  2730. #endif
  2731. ;
  2732. return 0;
  2733. }
  2734. _ACEOF
  2735. rm -f conftest.$ac_objext
  2736. if { (ac_try="$ac_compile"
  2737. case "(($ac_try" in
  2738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2739. *) ac_try_echo=$ac_try;;
  2740. esac
  2741. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2742. (eval "$ac_compile") 2>conftest.er1
  2743. ac_status=$?
  2744. grep -v '^ *+' conftest.er1 >conftest.err
  2745. rm -f conftest.er1
  2746. cat conftest.err >&5
  2747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2748. (exit $ac_status); } && {
  2749. test -z "$ac_c_werror_flag" ||
  2750. test ! -s conftest.err
  2751. } && test -s conftest.$ac_objext; then
  2752. ac_compiler_gnu=yes
  2753. else
  2754. echo "$as_me: failed program was:" >&5
  2755. sed 's/^/| /' conftest.$ac_ext >&5
  2756. ac_compiler_gnu=no
  2757. fi
  2758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2759. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2760. fi
  2761. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2762. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2763. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2764. ac_test_CFLAGS=${CFLAGS+set}
  2765. ac_save_CFLAGS=$CFLAGS
  2766. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2767. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2768. if test "${ac_cv_prog_cc_g+set}" = set; then
  2769. echo $ECHO_N "(cached) $ECHO_C" >&6
  2770. else
  2771. ac_save_c_werror_flag=$ac_c_werror_flag
  2772. ac_c_werror_flag=yes
  2773. ac_cv_prog_cc_g=no
  2774. CFLAGS="-g"
  2775. cat >conftest.$ac_ext <<_ACEOF
  2776. /* confdefs.h. */
  2777. _ACEOF
  2778. cat confdefs.h >>conftest.$ac_ext
  2779. cat >>conftest.$ac_ext <<_ACEOF
  2780. /* end confdefs.h. */
  2781. int
  2782. main ()
  2783. {
  2784. ;
  2785. return 0;
  2786. }
  2787. _ACEOF
  2788. rm -f conftest.$ac_objext
  2789. if { (ac_try="$ac_compile"
  2790. case "(($ac_try" in
  2791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2792. *) ac_try_echo=$ac_try;;
  2793. esac
  2794. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2795. (eval "$ac_compile") 2>conftest.er1
  2796. ac_status=$?
  2797. grep -v '^ *+' conftest.er1 >conftest.err
  2798. rm -f conftest.er1
  2799. cat conftest.err >&5
  2800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2801. (exit $ac_status); } && {
  2802. test -z "$ac_c_werror_flag" ||
  2803. test ! -s conftest.err
  2804. } && test -s conftest.$ac_objext; then
  2805. ac_cv_prog_cc_g=yes
  2806. else
  2807. echo "$as_me: failed program was:" >&5
  2808. sed 's/^/| /' conftest.$ac_ext >&5
  2809. CFLAGS=""
  2810. cat >conftest.$ac_ext <<_ACEOF
  2811. /* confdefs.h. */
  2812. _ACEOF
  2813. cat confdefs.h >>conftest.$ac_ext
  2814. cat >>conftest.$ac_ext <<_ACEOF
  2815. /* end confdefs.h. */
  2816. int
  2817. main ()
  2818. {
  2819. ;
  2820. return 0;
  2821. }
  2822. _ACEOF
  2823. rm -f conftest.$ac_objext
  2824. if { (ac_try="$ac_compile"
  2825. case "(($ac_try" in
  2826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2827. *) ac_try_echo=$ac_try;;
  2828. esac
  2829. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2830. (eval "$ac_compile") 2>conftest.er1
  2831. ac_status=$?
  2832. grep -v '^ *+' conftest.er1 >conftest.err
  2833. rm -f conftest.er1
  2834. cat conftest.err >&5
  2835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2836. (exit $ac_status); } && {
  2837. test -z "$ac_c_werror_flag" ||
  2838. test ! -s conftest.err
  2839. } && test -s conftest.$ac_objext; then
  2840. :
  2841. else
  2842. echo "$as_me: failed program was:" >&5
  2843. sed 's/^/| /' conftest.$ac_ext >&5
  2844. ac_c_werror_flag=$ac_save_c_werror_flag
  2845. CFLAGS="-g"
  2846. cat >conftest.$ac_ext <<_ACEOF
  2847. /* confdefs.h. */
  2848. _ACEOF
  2849. cat confdefs.h >>conftest.$ac_ext
  2850. cat >>conftest.$ac_ext <<_ACEOF
  2851. /* end confdefs.h. */
  2852. int
  2853. main ()
  2854. {
  2855. ;
  2856. return 0;
  2857. }
  2858. _ACEOF
  2859. rm -f conftest.$ac_objext
  2860. if { (ac_try="$ac_compile"
  2861. case "(($ac_try" in
  2862. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2863. *) ac_try_echo=$ac_try;;
  2864. esac
  2865. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2866. (eval "$ac_compile") 2>conftest.er1
  2867. ac_status=$?
  2868. grep -v '^ *+' conftest.er1 >conftest.err
  2869. rm -f conftest.er1
  2870. cat conftest.err >&5
  2871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2872. (exit $ac_status); } && {
  2873. test -z "$ac_c_werror_flag" ||
  2874. test ! -s conftest.err
  2875. } && test -s conftest.$ac_objext; then
  2876. ac_cv_prog_cc_g=yes
  2877. else
  2878. echo "$as_me: failed program was:" >&5
  2879. sed 's/^/| /' conftest.$ac_ext >&5
  2880. fi
  2881. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2882. fi
  2883. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2884. fi
  2885. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2886. ac_c_werror_flag=$ac_save_c_werror_flag
  2887. fi
  2888. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2889. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  2890. if test "$ac_test_CFLAGS" = set; then
  2891. CFLAGS=$ac_save_CFLAGS
  2892. elif test $ac_cv_prog_cc_g = yes; then
  2893. if test "$GCC" = yes; then
  2894. CFLAGS="-g -O2"
  2895. else
  2896. CFLAGS="-g"
  2897. fi
  2898. else
  2899. if test "$GCC" = yes; then
  2900. CFLAGS="-O2"
  2901. else
  2902. CFLAGS=
  2903. fi
  2904. fi
  2905. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  2906. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  2907. if test "${ac_cv_prog_cc_c89+set}" = set; then
  2908. echo $ECHO_N "(cached) $ECHO_C" >&6
  2909. else
  2910. ac_cv_prog_cc_c89=no
  2911. ac_save_CC=$CC
  2912. cat >conftest.$ac_ext <<_ACEOF
  2913. /* confdefs.h. */
  2914. _ACEOF
  2915. cat confdefs.h >>conftest.$ac_ext
  2916. cat >>conftest.$ac_ext <<_ACEOF
  2917. /* end confdefs.h. */
  2918. #include <stdarg.h>
  2919. #include <stdio.h>
  2920. #include <sys/types.h>
  2921. #include <sys/stat.h>
  2922. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2923. struct buf { int x; };
  2924. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2925. static char *e (p, i)
  2926. char **p;
  2927. int i;
  2928. {
  2929. return p[i];
  2930. }
  2931. static char *f (char * (*g) (char **, int), char **p, ...)
  2932. {
  2933. char *s;
  2934. va_list v;
  2935. va_start (v,p);
  2936. s = g (p, va_arg (v,int));
  2937. va_end (v);
  2938. return s;
  2939. }
  2940. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2941. function prototypes and stuff, but not '\xHH' hex character constants.
  2942. These don't provoke an error unfortunately, instead are silently treated
  2943. as 'x'. The following induces an error, until -std is added to get
  2944. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2945. array size at least. It's necessary to write '\x00'==0 to get something
  2946. that's true only with -std. */
  2947. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2948. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  2949. inside strings and character constants. */
  2950. #define FOO(x) 'x'
  2951. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  2952. int test (int i, double x);
  2953. struct s1 {int (*f) (int a);};
  2954. struct s2 {int (*f) (double a);};
  2955. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2956. int argc;
  2957. char **argv;
  2958. int
  2959. main ()
  2960. {
  2961. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2962. ;
  2963. return 0;
  2964. }
  2965. _ACEOF
  2966. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  2967. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2968. do
  2969. CC="$ac_save_CC $ac_arg"
  2970. rm -f conftest.$ac_objext
  2971. if { (ac_try="$ac_compile"
  2972. case "(($ac_try" in
  2973. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2974. *) ac_try_echo=$ac_try;;
  2975. esac
  2976. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2977. (eval "$ac_compile") 2>conftest.er1
  2978. ac_status=$?
  2979. grep -v '^ *+' conftest.er1 >conftest.err
  2980. rm -f conftest.er1
  2981. cat conftest.err >&5
  2982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2983. (exit $ac_status); } && {
  2984. test -z "$ac_c_werror_flag" ||
  2985. test ! -s conftest.err
  2986. } && test -s conftest.$ac_objext; then
  2987. ac_cv_prog_cc_c89=$ac_arg
  2988. else
  2989. echo "$as_me: failed program was:" >&5
  2990. sed 's/^/| /' conftest.$ac_ext >&5
  2991. fi
  2992. rm -f core conftest.err conftest.$ac_objext
  2993. test "x$ac_cv_prog_cc_c89" != "xno" && break
  2994. done
  2995. rm -f conftest.$ac_ext
  2996. CC=$ac_save_CC
  2997. fi
  2998. # AC_CACHE_VAL
  2999. case "x$ac_cv_prog_cc_c89" in
  3000. x)
  3001. { echo "$as_me:$LINENO: result: none needed" >&5
  3002. echo "${ECHO_T}none needed" >&6; } ;;
  3003. xno)
  3004. { echo "$as_me:$LINENO: result: unsupported" >&5
  3005. echo "${ECHO_T}unsupported" >&6; } ;;
  3006. *)
  3007. CC="$CC $ac_cv_prog_cc_c89"
  3008. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3009. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3010. esac
  3011. ac_ext=c
  3012. ac_cpp='$CPP $CPPFLAGS'
  3013. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3014. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3015. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3016. DEPDIR="${am__leading_dot}deps"
  3017. ac_config_commands="$ac_config_commands depfiles"
  3018. am_make=${MAKE-make}
  3019. cat > confinc << 'END'
  3020. am__doit:
  3021. @echo done
  3022. .PHONY: am__doit
  3023. END
  3024. # If we don't find an include directive, just comment out the code.
  3025. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3026. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  3027. am__include="#"
  3028. am__quote=
  3029. _am_result=none
  3030. # First try GNU make style include.
  3031. echo "include confinc" > confmf
  3032. # We grep out `Entering directory' and `Leaving directory'
  3033. # messages which can occur if `w' ends up in MAKEFLAGS.
  3034. # In particular we don't look at `^make:' because GNU make might
  3035. # be invoked under some other name (usually "gmake"), in which
  3036. # case it prints its new name instead of `make'.
  3037. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3038. am__include=include
  3039. am__quote=
  3040. _am_result=GNU
  3041. fi
  3042. # Now try BSD make style include.
  3043. if test "$am__include" = "#"; then
  3044. echo '.include "confinc"' > confmf
  3045. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3046. am__include=.include
  3047. am__quote="\""
  3048. _am_result=BSD
  3049. fi
  3050. fi
  3051. { echo "$as_me:$LINENO: result: $_am_result" >&5
  3052. echo "${ECHO_T}$_am_result" >&6; }
  3053. rm -f confinc confmf
  3054. # Check whether --enable-dependency-tracking was given.
  3055. if test "${enable_dependency_tracking+set}" = set; then
  3056. enableval=$enable_dependency_tracking;
  3057. fi
  3058. if test "x$enable_dependency_tracking" != xno; then
  3059. am_depcomp="$ac_aux_dir/depcomp"
  3060. AMDEPBACKSLASH='\'
  3061. fi
  3062. if test "x$enable_dependency_tracking" != xno; then
  3063. AMDEP_TRUE=
  3064. AMDEP_FALSE='#'
  3065. else
  3066. AMDEP_TRUE='#'
  3067. AMDEP_FALSE=
  3068. fi
  3069. depcc="$CC" am_compiler_list=
  3070. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3071. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3072. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3073. echo $ECHO_N "(cached) $ECHO_C" >&6
  3074. else
  3075. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3076. # We make a subdir and do the tests there. Otherwise we can end up
  3077. # making bogus files that we don't know about and never remove. For
  3078. # instance it was reported that on HP-UX the gcc test will end up
  3079. # making a dummy file named `D' -- because `-MD' means `put the output
  3080. # in D'.
  3081. mkdir conftest.dir
  3082. # Copy depcomp to subdir because otherwise we won't find it if we're
  3083. # using a relative directory.
  3084. cp "$am_depcomp" conftest.dir
  3085. cd conftest.dir
  3086. # We will build objects and dependencies in a subdirectory because
  3087. # it helps to detect inapplicable dependency modes. For instance
  3088. # both Tru64's cc and ICC support -MD to output dependencies as a
  3089. # side effect of compilation, but ICC will put the dependencies in
  3090. # the current directory while Tru64 will put them in the object
  3091. # directory.
  3092. mkdir sub
  3093. am_cv_CC_dependencies_compiler_type=none
  3094. if test "$am_compiler_list" = ""; then
  3095. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3096. fi
  3097. for depmode in $am_compiler_list; do
  3098. # Setup a source with many dependencies, because some compilers
  3099. # like to wrap large dependency lists on column 80 (with \), and
  3100. # we should not choose a depcomp mode which is confused by this.
  3101. #
  3102. # We need to recreate these files for each test, as the compiler may
  3103. # overwrite some of them when testing with obscure command lines.
  3104. # This happens at least with the AIX C compiler.
  3105. : > sub/conftest.c
  3106. for i in 1 2 3 4 5 6; do
  3107. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3108. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3109. # Solaris 8's {/usr,}/bin/sh.
  3110. touch sub/conftst$i.h
  3111. done
  3112. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3113. case $depmode in
  3114. nosideeffect)
  3115. # after this tag, mechanisms are not by side-effect, so they'll
  3116. # only be used when explicitly requested
  3117. if test "x$enable_dependency_tracking" = xyes; then
  3118. continue
  3119. else
  3120. break
  3121. fi
  3122. ;;
  3123. none) break ;;
  3124. esac
  3125. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3126. # mode. It turns out that the SunPro C++ compiler does not properly
  3127. # handle `-M -o', and we need to detect this.
  3128. if depmode=$depmode \
  3129. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3130. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3131. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3132. >/dev/null 2>conftest.err &&
  3133. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3134. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3135. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3136. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3137. # icc doesn't choke on unknown options, it will just issue warnings
  3138. # or remarks (even with -Werror). So we grep stderr for any message
  3139. # that says an option was ignored or not supported.
  3140. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3141. # icc: Command line warning: ignoring option '-M'; no argument required
  3142. # The diagnosis changed in icc 8.0:
  3143. # icc: Command line remark: option '-MP' not supported
  3144. if (grep 'ignoring option' conftest.err ||
  3145. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3146. am_cv_CC_dependencies_compiler_type=$depmode
  3147. break
  3148. fi
  3149. fi
  3150. done
  3151. cd ..
  3152. rm -rf conftest.dir
  3153. else
  3154. am_cv_CC_dependencies_compiler_type=none
  3155. fi
  3156. fi
  3157. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3158. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3159. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3160. if
  3161. test "x$enable_dependency_tracking" != xno \
  3162. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3163. am__fastdepCC_TRUE=
  3164. am__fastdepCC_FALSE='#'
  3165. else
  3166. am__fastdepCC_TRUE='#'
  3167. am__fastdepCC_FALSE=
  3168. fi
  3169. ac_ext=cpp
  3170. ac_cpp='$CXXCPP $CPPFLAGS'
  3171. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3172. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3173. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3174. if test -z "$CXX"; then
  3175. if test -n "$CCC"; then
  3176. CXX=$CCC
  3177. else
  3178. if test -n "$ac_tool_prefix"; then
  3179. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3180. do
  3181. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3182. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3183. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3184. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3185. if test "${ac_cv_prog_CXX+set}" = set; then
  3186. echo $ECHO_N "(cached) $ECHO_C" >&6
  3187. else
  3188. if test -n "$CXX"; then
  3189. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3190. else
  3191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3192. for as_dir in $PATH
  3193. do
  3194. IFS=$as_save_IFS
  3195. test -z "$as_dir" && as_dir=.
  3196. for ac_exec_ext in '' $ac_executable_extensions; do
  3197. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3198. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3199. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3200. break 2
  3201. fi
  3202. done
  3203. done
  3204. IFS=$as_save_IFS
  3205. fi
  3206. fi
  3207. CXX=$ac_cv_prog_CXX
  3208. if test -n "$CXX"; then
  3209. { echo "$as_me:$LINENO: result: $CXX" >&5
  3210. echo "${ECHO_T}$CXX" >&6; }
  3211. else
  3212. { echo "$as_me:$LINENO: result: no" >&5
  3213. echo "${ECHO_T}no" >&6; }
  3214. fi
  3215. test -n "$CXX" && break
  3216. done
  3217. fi
  3218. if test -z "$CXX"; then
  3219. ac_ct_CXX=$CXX
  3220. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3221. do
  3222. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3223. set dummy $ac_prog; ac_word=$2
  3224. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3225. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3226. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  3227. echo $ECHO_N "(cached) $ECHO_C" >&6
  3228. else
  3229. if test -n "$ac_ct_CXX"; then
  3230. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3231. else
  3232. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3233. for as_dir in $PATH
  3234. do
  3235. IFS=$as_save_IFS
  3236. test -z "$as_dir" && as_dir=.
  3237. for ac_exec_ext in '' $ac_executable_extensions; do
  3238. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3239. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3240. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3241. break 2
  3242. fi
  3243. done
  3244. done
  3245. IFS=$as_save_IFS
  3246. fi
  3247. fi
  3248. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3249. if test -n "$ac_ct_CXX"; then
  3250. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  3251. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  3252. else
  3253. { echo "$as_me:$LINENO: result: no" >&5
  3254. echo "${ECHO_T}no" >&6; }
  3255. fi
  3256. test -n "$ac_ct_CXX" && break
  3257. done
  3258. if test "x$ac_ct_CXX" = x; then
  3259. CXX="g++"
  3260. else
  3261. case $cross_compiling:$ac_tool_warned in
  3262. yes:)
  3263. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3264. whose name does not start with the host triplet. If you think this
  3265. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3266. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3267. whose name does not start with the host triplet. If you think this
  3268. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3269. ac_tool_warned=yes ;;
  3270. esac
  3271. CXX=$ac_ct_CXX
  3272. fi
  3273. fi
  3274. fi
  3275. fi
  3276. # Provide some information about the compiler.
  3277. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  3278. ac_compiler=`set X $ac_compile; echo $2`
  3279. { (ac_try="$ac_compiler --version >&5"
  3280. case "(($ac_try" in
  3281. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3282. *) ac_try_echo=$ac_try;;
  3283. esac
  3284. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3285. (eval "$ac_compiler --version >&5") 2>&5
  3286. ac_status=$?
  3287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3288. (exit $ac_status); }
  3289. { (ac_try="$ac_compiler -v >&5"
  3290. case "(($ac_try" in
  3291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3292. *) ac_try_echo=$ac_try;;
  3293. esac
  3294. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3295. (eval "$ac_compiler -v >&5") 2>&5
  3296. ac_status=$?
  3297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3298. (exit $ac_status); }
  3299. { (ac_try="$ac_compiler -V >&5"
  3300. case "(($ac_try" in
  3301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3302. *) ac_try_echo=$ac_try;;
  3303. esac
  3304. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3305. (eval "$ac_compiler -V >&5") 2>&5
  3306. ac_status=$?
  3307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3308. (exit $ac_status); }
  3309. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  3310. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  3311. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  3312. echo $ECHO_N "(cached) $ECHO_C" >&6
  3313. else
  3314. cat >conftest.$ac_ext <<_ACEOF
  3315. /* confdefs.h. */
  3316. _ACEOF
  3317. cat confdefs.h >>conftest.$ac_ext
  3318. cat >>conftest.$ac_ext <<_ACEOF
  3319. /* end confdefs.h. */
  3320. int
  3321. main ()
  3322. {
  3323. #ifndef __GNUC__
  3324. choke me
  3325. #endif
  3326. ;
  3327. return 0;
  3328. }
  3329. _ACEOF
  3330. rm -f conftest.$ac_objext
  3331. if { (ac_try="$ac_compile"
  3332. case "(($ac_try" in
  3333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3334. *) ac_try_echo=$ac_try;;
  3335. esac
  3336. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3337. (eval "$ac_compile") 2>conftest.er1
  3338. ac_status=$?
  3339. grep -v '^ *+' conftest.er1 >conftest.err
  3340. rm -f conftest.er1
  3341. cat conftest.err >&5
  3342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3343. (exit $ac_status); } && {
  3344. test -z "$ac_cxx_werror_flag" ||
  3345. test ! -s conftest.err
  3346. } && test -s conftest.$ac_objext; then
  3347. ac_compiler_gnu=yes
  3348. else
  3349. echo "$as_me: failed program was:" >&5
  3350. sed 's/^/| /' conftest.$ac_ext >&5
  3351. ac_compiler_gnu=no
  3352. fi
  3353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3354. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3355. fi
  3356. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  3357. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  3358. GXX=`test $ac_compiler_gnu = yes && echo yes`
  3359. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3360. ac_save_CXXFLAGS=$CXXFLAGS
  3361. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  3362. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  3363. if test "${ac_cv_prog_cxx_g+set}" = set; then
  3364. echo $ECHO_N "(cached) $ECHO_C" >&6
  3365. else
  3366. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3367. ac_cxx_werror_flag=yes
  3368. ac_cv_prog_cxx_g=no
  3369. CXXFLAGS="-g"
  3370. cat >conftest.$ac_ext <<_ACEOF
  3371. /* confdefs.h. */
  3372. _ACEOF
  3373. cat confdefs.h >>conftest.$ac_ext
  3374. cat >>conftest.$ac_ext <<_ACEOF
  3375. /* end confdefs.h. */
  3376. int
  3377. main ()
  3378. {
  3379. ;
  3380. return 0;
  3381. }
  3382. _ACEOF
  3383. rm -f conftest.$ac_objext
  3384. if { (ac_try="$ac_compile"
  3385. case "(($ac_try" in
  3386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3387. *) ac_try_echo=$ac_try;;
  3388. esac
  3389. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3390. (eval "$ac_compile") 2>conftest.er1
  3391. ac_status=$?
  3392. grep -v '^ *+' conftest.er1 >conftest.err
  3393. rm -f conftest.er1
  3394. cat conftest.err >&5
  3395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3396. (exit $ac_status); } && {
  3397. test -z "$ac_cxx_werror_flag" ||
  3398. test ! -s conftest.err
  3399. } && test -s conftest.$ac_objext; then
  3400. ac_cv_prog_cxx_g=yes
  3401. else
  3402. echo "$as_me: failed program was:" >&5
  3403. sed 's/^/| /' conftest.$ac_ext >&5
  3404. CXXFLAGS=""
  3405. cat >conftest.$ac_ext <<_ACEOF
  3406. /* confdefs.h. */
  3407. _ACEOF
  3408. cat confdefs.h >>conftest.$ac_ext
  3409. cat >>conftest.$ac_ext <<_ACEOF
  3410. /* end confdefs.h. */
  3411. int
  3412. main ()
  3413. {
  3414. ;
  3415. return 0;
  3416. }
  3417. _ACEOF
  3418. rm -f conftest.$ac_objext
  3419. if { (ac_try="$ac_compile"
  3420. case "(($ac_try" in
  3421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3422. *) ac_try_echo=$ac_try;;
  3423. esac
  3424. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3425. (eval "$ac_compile") 2>conftest.er1
  3426. ac_status=$?
  3427. grep -v '^ *+' conftest.er1 >conftest.err
  3428. rm -f conftest.er1
  3429. cat conftest.err >&5
  3430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3431. (exit $ac_status); } && {
  3432. test -z "$ac_cxx_werror_flag" ||
  3433. test ! -s conftest.err
  3434. } && test -s conftest.$ac_objext; then
  3435. :
  3436. else
  3437. echo "$as_me: failed program was:" >&5
  3438. sed 's/^/| /' conftest.$ac_ext >&5
  3439. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3440. CXXFLAGS="-g"
  3441. cat >conftest.$ac_ext <<_ACEOF
  3442. /* confdefs.h. */
  3443. _ACEOF
  3444. cat confdefs.h >>conftest.$ac_ext
  3445. cat >>conftest.$ac_ext <<_ACEOF
  3446. /* end confdefs.h. */
  3447. int
  3448. main ()
  3449. {
  3450. ;
  3451. return 0;
  3452. }
  3453. _ACEOF
  3454. rm -f conftest.$ac_objext
  3455. if { (ac_try="$ac_compile"
  3456. case "(($ac_try" in
  3457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3458. *) ac_try_echo=$ac_try;;
  3459. esac
  3460. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3461. (eval "$ac_compile") 2>conftest.er1
  3462. ac_status=$?
  3463. grep -v '^ *+' conftest.er1 >conftest.err
  3464. rm -f conftest.er1
  3465. cat conftest.err >&5
  3466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3467. (exit $ac_status); } && {
  3468. test -z "$ac_cxx_werror_flag" ||
  3469. test ! -s conftest.err
  3470. } && test -s conftest.$ac_objext; then
  3471. ac_cv_prog_cxx_g=yes
  3472. else
  3473. echo "$as_me: failed program was:" >&5
  3474. sed 's/^/| /' conftest.$ac_ext >&5
  3475. fi
  3476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3477. fi
  3478. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3479. fi
  3480. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3481. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3482. fi
  3483. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  3484. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  3485. if test "$ac_test_CXXFLAGS" = set; then
  3486. CXXFLAGS=$ac_save_CXXFLAGS
  3487. elif test $ac_cv_prog_cxx_g = yes; then
  3488. if test "$GXX" = yes; then
  3489. CXXFLAGS="-g -O2"
  3490. else
  3491. CXXFLAGS="-g"
  3492. fi
  3493. else
  3494. if test "$GXX" = yes; then
  3495. CXXFLAGS="-O2"
  3496. else
  3497. CXXFLAGS=
  3498. fi
  3499. fi
  3500. ac_ext=c
  3501. ac_cpp='$CPP $CPPFLAGS'
  3502. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3503. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3504. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3505. depcc="$CXX" am_compiler_list=
  3506. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3507. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3508. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3509. echo $ECHO_N "(cached) $ECHO_C" >&6
  3510. else
  3511. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3512. # We make a subdir and do the tests there. Otherwise we can end up
  3513. # making bogus files that we don't know about and never remove. For
  3514. # instance it was reported that on HP-UX the gcc test will end up
  3515. # making a dummy file named `D' -- because `-MD' means `put the output
  3516. # in D'.
  3517. mkdir conftest.dir
  3518. # Copy depcomp to subdir because otherwise we won't find it if we're
  3519. # using a relative directory.
  3520. cp "$am_depcomp" conftest.dir
  3521. cd conftest.dir
  3522. # We will build objects and dependencies in a subdirectory because
  3523. # it helps to detect inapplicable dependency modes. For instance
  3524. # both Tru64's cc and ICC support -MD to output dependencies as a
  3525. # side effect of compilation, but ICC will put the dependencies in
  3526. # the current directory while Tru64 will put them in the object
  3527. # directory.
  3528. mkdir sub
  3529. am_cv_CXX_dependencies_compiler_type=none
  3530. if test "$am_compiler_list" = ""; then
  3531. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3532. fi
  3533. for depmode in $am_compiler_list; do
  3534. # Setup a source with many dependencies, because some compilers
  3535. # like to wrap large dependency lists on column 80 (with \), and
  3536. # we should not choose a depcomp mode which is confused by this.
  3537. #
  3538. # We need to recreate these files for each test, as the compiler may
  3539. # overwrite some of them when testing with obscure command lines.
  3540. # This happens at least with the AIX C compiler.
  3541. : > sub/conftest.c
  3542. for i in 1 2 3 4 5 6; do
  3543. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3544. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3545. # Solaris 8's {/usr,}/bin/sh.
  3546. touch sub/conftst$i.h
  3547. done
  3548. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3549. case $depmode in
  3550. nosideeffect)
  3551. # after this tag, mechanisms are not by side-effect, so they'll
  3552. # only be used when explicitly requested
  3553. if test "x$enable_dependency_tracking" = xyes; then
  3554. continue
  3555. else
  3556. break
  3557. fi
  3558. ;;
  3559. none) break ;;
  3560. esac
  3561. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3562. # mode. It turns out that the SunPro C++ compiler does not properly
  3563. # handle `-M -o', and we need to detect this.
  3564. if depmode=$depmode \
  3565. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3566. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3567. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3568. >/dev/null 2>conftest.err &&
  3569. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3570. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3571. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3572. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3573. # icc doesn't choke on unknown options, it will just issue warnings
  3574. # or remarks (even with -Werror). So we grep stderr for any message
  3575. # that says an option was ignored or not supported.
  3576. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3577. # icc: Command line warning: ignoring option '-M'; no argument required
  3578. # The diagnosis changed in icc 8.0:
  3579. # icc: Command line remark: option '-MP' not supported
  3580. if (grep 'ignoring option' conftest.err ||
  3581. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3582. am_cv_CXX_dependencies_compiler_type=$depmode
  3583. break
  3584. fi
  3585. fi
  3586. done
  3587. cd ..
  3588. rm -rf conftest.dir
  3589. else
  3590. am_cv_CXX_dependencies_compiler_type=none
  3591. fi
  3592. fi
  3593. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3594. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3595. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3596. if
  3597. test "x$enable_dependency_tracking" != xno \
  3598. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3599. am__fastdepCXX_TRUE=
  3600. am__fastdepCXX_FALSE='#'
  3601. else
  3602. am__fastdepCXX_TRUE='#'
  3603. am__fastdepCXX_FALSE=
  3604. fi
  3605. if test "x$remember_set_CFLAGS" = "x"
  3606. then
  3607. if test "$CFLAGS" = "-g -O2"
  3608. then
  3609. CFLAGS="-O2"
  3610. elif test "$CFLAGS" = "-g"
  3611. then
  3612. CFLAGS=""
  3613. fi
  3614. fi
  3615. if test "x$remember_set_CXXFLAGS" = "x"
  3616. then
  3617. if test "$CXXFLAGS" = "-g -O2"
  3618. then
  3619. CXXFLAGS="-O2"
  3620. elif test "$CXXFLAGS" = "-g"
  3621. then
  3622. CXXFLAGS=""
  3623. fi
  3624. fi
  3625. # AC_PROG_CXX will return "g++" even if no c++ compiler is installed.
  3626. # Check for that case, and just disable c++ code if g++ doesn't run.
  3627. ac_ext=cpp
  3628. ac_cpp='$CXXCPP $CPPFLAGS'
  3629. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3630. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3631. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3632. cat >conftest.$ac_ext <<_ACEOF
  3633. /* confdefs.h. */
  3634. _ACEOF
  3635. cat confdefs.h >>conftest.$ac_ext
  3636. cat >>conftest.$ac_ext <<_ACEOF
  3637. /* end confdefs.h. */
  3638. int
  3639. main ()
  3640. {
  3641. ;
  3642. return 0;
  3643. }
  3644. _ACEOF
  3645. rm -f conftest.$ac_objext
  3646. if { (ac_try="$ac_compile"
  3647. case "(($ac_try" in
  3648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3649. *) ac_try_echo=$ac_try;;
  3650. esac
  3651. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3652. (eval "$ac_compile") 2>conftest.er1
  3653. ac_status=$?
  3654. grep -v '^ *+' conftest.er1 >conftest.err
  3655. rm -f conftest.er1
  3656. cat conftest.err >&5
  3657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3658. (exit $ac_status); } && {
  3659. test -z "$ac_cxx_werror_flag" ||
  3660. test ! -s conftest.err
  3661. } && test -s conftest.$ac_objext; then
  3662. :
  3663. else
  3664. echo "$as_me: failed program was:" >&5
  3665. sed 's/^/| /' conftest.$ac_ext >&5
  3666. CXX=""; CXXCP=""; CXXFLAGS=""
  3667. fi
  3668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3669. ac_ext=c
  3670. ac_cpp='$CPP $CPPFLAGS'
  3671. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3672. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3673. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3674. # Find a good install program. We prefer a C program (faster),
  3675. # so one script is as good as another. But avoid the broken or
  3676. # incompatible versions:
  3677. # SysV /etc/install, /usr/sbin/install
  3678. # SunOS /usr/etc/install
  3679. # IRIX /sbin/install
  3680. # AIX /bin/install
  3681. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3682. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3683. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3684. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3685. # OS/2's system install, which has a completely different semantic
  3686. # ./install, which can be erroneously created by make from ./install.sh.
  3687. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3688. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3689. if test -z "$INSTALL"; then
  3690. if test "${ac_cv_path_install+set}" = set; then
  3691. echo $ECHO_N "(cached) $ECHO_C" >&6
  3692. else
  3693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3694. for as_dir in $PATH
  3695. do
  3696. IFS=$as_save_IFS
  3697. test -z "$as_dir" && as_dir=.
  3698. # Account for people who put trailing slashes in PATH elements.
  3699. case $as_dir/ in
  3700. ./ | .// | /cC/* | \
  3701. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3702. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3703. /usr/ucb/* ) ;;
  3704. *)
  3705. # OSF1 and SCO ODT 3.0 have their own names for install.
  3706. # Don't use installbsd from OSF since it installs stuff as root
  3707. # by default.
  3708. for ac_prog in ginstall scoinst install; do
  3709. for ac_exec_ext in '' $ac_executable_extensions; do
  3710. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3711. if test $ac_prog = install &&
  3712. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3713. # AIX install. It has an incompatible calling convention.
  3714. :
  3715. elif test $ac_prog = install &&
  3716. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3717. # program-specific install script used by HP pwplus--don't use.
  3718. :
  3719. else
  3720. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3721. break 3
  3722. fi
  3723. fi
  3724. done
  3725. done
  3726. ;;
  3727. esac
  3728. done
  3729. IFS=$as_save_IFS
  3730. fi
  3731. if test "${ac_cv_path_install+set}" = set; then
  3732. INSTALL=$ac_cv_path_install
  3733. else
  3734. # As a last resort, use the slow shell script. Don't cache a
  3735. # value for INSTALL within a source directory, because that will
  3736. # break other packages using the cache if that directory is
  3737. # removed, or if the value is a relative name.
  3738. INSTALL=$ac_install_sh
  3739. fi
  3740. fi
  3741. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3742. echo "${ECHO_T}$INSTALL" >&6; }
  3743. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3744. # It thinks the first close brace ends the variable substitution.
  3745. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3746. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3747. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3748. # Check whether --enable-shared was given.
  3749. if test "${enable_shared+set}" = set; then
  3750. enableval=$enable_shared; p=${PACKAGE-default}
  3751. case $enableval in
  3752. yes) enable_shared=yes ;;
  3753. no) enable_shared=no ;;
  3754. *)
  3755. enable_shared=no
  3756. # Look at the argument we got. We use all the common list separators.
  3757. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3758. for pkg in $enableval; do
  3759. IFS="$lt_save_ifs"
  3760. if test "X$pkg" = "X$p"; then
  3761. enable_shared=yes
  3762. fi
  3763. done
  3764. IFS="$lt_save_ifs"
  3765. ;;
  3766. esac
  3767. else
  3768. enable_shared=yes
  3769. fi
  3770. # Check whether --enable-static was given.
  3771. if test "${enable_static+set}" = set; then
  3772. enableval=$enable_static; p=${PACKAGE-default}
  3773. case $enableval in
  3774. yes) enable_static=yes ;;
  3775. no) enable_static=no ;;
  3776. *)
  3777. enable_static=no
  3778. # Look at the argument we got. We use all the common list separators.
  3779. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3780. for pkg in $enableval; do
  3781. IFS="$lt_save_ifs"
  3782. if test "X$pkg" = "X$p"; then
  3783. enable_static=yes
  3784. fi
  3785. done
  3786. IFS="$lt_save_ifs"
  3787. ;;
  3788. esac
  3789. else
  3790. enable_static=yes
  3791. fi
  3792. # Check whether --enable-fast-install was given.
  3793. if test "${enable_fast_install+set}" = set; then
  3794. enableval=$enable_fast_install; p=${PACKAGE-default}
  3795. case $enableval in
  3796. yes) enable_fast_install=yes ;;
  3797. no) enable_fast_install=no ;;
  3798. *)
  3799. enable_fast_install=no
  3800. # Look at the argument we got. We use all the common list separators.
  3801. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3802. for pkg in $enableval; do
  3803. IFS="$lt_save_ifs"
  3804. if test "X$pkg" = "X$p"; then
  3805. enable_fast_install=yes
  3806. fi
  3807. done
  3808. IFS="$lt_save_ifs"
  3809. ;;
  3810. esac
  3811. else
  3812. enable_fast_install=yes
  3813. fi
  3814. # Make sure we can run config.sub.
  3815. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3816. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  3817. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  3818. { (exit 1); exit 1; }; }
  3819. { echo "$as_me:$LINENO: checking build system type" >&5
  3820. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  3821. if test "${ac_cv_build+set}" = set; then
  3822. echo $ECHO_N "(cached) $ECHO_C" >&6
  3823. else
  3824. ac_build_alias=$build_alias
  3825. test "x$ac_build_alias" = x &&
  3826. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3827. test "x$ac_build_alias" = x &&
  3828. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  3829. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  3830. { (exit 1); exit 1; }; }
  3831. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3832. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  3833. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  3834. { (exit 1); exit 1; }; }
  3835. fi
  3836. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  3837. echo "${ECHO_T}$ac_cv_build" >&6; }
  3838. case $ac_cv_build in
  3839. *-*-*) ;;
  3840. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  3841. echo "$as_me: error: invalid value of canonical build" >&2;}
  3842. { (exit 1); exit 1; }; };;
  3843. esac
  3844. build=$ac_cv_build
  3845. ac_save_IFS=$IFS; IFS='-'
  3846. set x $ac_cv_build
  3847. shift
  3848. build_cpu=$1
  3849. build_vendor=$2
  3850. shift; shift
  3851. # Remember, the first character of IFS is used to create $*,
  3852. # except with old shells:
  3853. build_os=$*
  3854. IFS=$ac_save_IFS
  3855. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3856. { echo "$as_me:$LINENO: checking host system type" >&5
  3857. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  3858. if test "${ac_cv_host+set}" = set; then
  3859. echo $ECHO_N "(cached) $ECHO_C" >&6
  3860. else
  3861. if test "x$host_alias" = x; then
  3862. ac_cv_host=$ac_cv_build
  3863. else
  3864. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3865. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  3866. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  3867. { (exit 1); exit 1; }; }
  3868. fi
  3869. fi
  3870. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  3871. echo "${ECHO_T}$ac_cv_host" >&6; }
  3872. case $ac_cv_host in
  3873. *-*-*) ;;
  3874. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  3875. echo "$as_me: error: invalid value of canonical host" >&2;}
  3876. { (exit 1); exit 1; }; };;
  3877. esac
  3878. host=$ac_cv_host
  3879. ac_save_IFS=$IFS; IFS='-'
  3880. set x $ac_cv_host
  3881. shift
  3882. host_cpu=$1
  3883. host_vendor=$2
  3884. shift; shift
  3885. # Remember, the first character of IFS is used to create $*,
  3886. # except with old shells:
  3887. host_os=$*
  3888. IFS=$ac_save_IFS
  3889. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3890. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3891. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  3892. if test "${lt_cv_path_SED+set}" = set; then
  3893. echo $ECHO_N "(cached) $ECHO_C" >&6
  3894. else
  3895. # Loop through the user's path and test for sed and gsed.
  3896. # Then use that list of sed's as ones to test for truncation.
  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 lt_ac_prog in sed gsed; do
  3903. for ac_exec_ext in '' $ac_executable_extensions; do
  3904. if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  3905. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3906. fi
  3907. done
  3908. done
  3909. done
  3910. IFS=$as_save_IFS
  3911. lt_ac_max=0
  3912. lt_ac_count=0
  3913. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3914. # along with /bin/sed that truncates output.
  3915. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3916. test ! -f $lt_ac_sed && continue
  3917. cat /dev/null > conftest.in
  3918. lt_ac_count=0
  3919. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3920. # Check for GNU sed and select it if it is found.
  3921. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3922. lt_cv_path_SED=$lt_ac_sed
  3923. break
  3924. fi
  3925. while true; do
  3926. cat conftest.in conftest.in >conftest.tmp
  3927. mv conftest.tmp conftest.in
  3928. cp conftest.in conftest.nl
  3929. echo >>conftest.nl
  3930. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3931. cmp -s conftest.out conftest.nl || break
  3932. # 10000 chars as input seems more than enough
  3933. test $lt_ac_count -gt 10 && break
  3934. lt_ac_count=`expr $lt_ac_count + 1`
  3935. if test $lt_ac_count -gt $lt_ac_max; then
  3936. lt_ac_max=$lt_ac_count
  3937. lt_cv_path_SED=$lt_ac_sed
  3938. fi
  3939. done
  3940. done
  3941. fi
  3942. SED=$lt_cv_path_SED
  3943. { echo "$as_me:$LINENO: result: $SED" >&5
  3944. echo "${ECHO_T}$SED" >&6; }
  3945. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3946. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3947. if test "${ac_cv_path_GREP+set}" = set; then
  3948. echo $ECHO_N "(cached) $ECHO_C" >&6
  3949. else
  3950. # Extract the first word of "grep ggrep" to use in msg output
  3951. if test -z "$GREP"; then
  3952. set dummy grep ggrep; ac_prog_name=$2
  3953. if test "${ac_cv_path_GREP+set}" = set; then
  3954. echo $ECHO_N "(cached) $ECHO_C" >&6
  3955. else
  3956. ac_path_GREP_found=false
  3957. # Loop through the user's path and test for each of PROGNAME-LIST
  3958. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3959. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3960. do
  3961. IFS=$as_save_IFS
  3962. test -z "$as_dir" && as_dir=.
  3963. for ac_prog in grep ggrep; do
  3964. for ac_exec_ext in '' $ac_executable_extensions; do
  3965. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3966. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3967. # Check for GNU ac_path_GREP and select it if it is found.
  3968. # Check for GNU $ac_path_GREP
  3969. case `"$ac_path_GREP" --version 2>&1` in
  3970. *GNU*)
  3971. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3972. *)
  3973. ac_count=0
  3974. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3975. while :
  3976. do
  3977. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3978. mv "conftest.tmp" "conftest.in"
  3979. cp "conftest.in" "conftest.nl"
  3980. echo 'GREP' >> "conftest.nl"
  3981. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3982. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3983. ac_count=`expr $ac_count + 1`
  3984. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3985. # Best one so far, save it but keep looking for a better one
  3986. ac_cv_path_GREP="$ac_path_GREP"
  3987. ac_path_GREP_max=$ac_count
  3988. fi
  3989. # 10*(2^10) chars as input seems more than enough
  3990. test $ac_count -gt 10 && break
  3991. done
  3992. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3993. esac
  3994. $ac_path_GREP_found && break 3
  3995. done
  3996. done
  3997. done
  3998. IFS=$as_save_IFS
  3999. fi
  4000. GREP="$ac_cv_path_GREP"
  4001. if test -z "$GREP"; then
  4002. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4003. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4004. { (exit 1); exit 1; }; }
  4005. fi
  4006. else
  4007. ac_cv_path_GREP=$GREP
  4008. fi
  4009. fi
  4010. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4011. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4012. GREP="$ac_cv_path_GREP"
  4013. { echo "$as_me:$LINENO: checking for egrep" >&5
  4014. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4015. if test "${ac_cv_path_EGREP+set}" = set; then
  4016. echo $ECHO_N "(cached) $ECHO_C" >&6
  4017. else
  4018. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4019. then ac_cv_path_EGREP="$GREP -E"
  4020. else
  4021. # Extract the first word of "egrep" to use in msg output
  4022. if test -z "$EGREP"; then
  4023. set dummy egrep; ac_prog_name=$2
  4024. if test "${ac_cv_path_EGREP+set}" = set; then
  4025. echo $ECHO_N "(cached) $ECHO_C" >&6
  4026. else
  4027. ac_path_EGREP_found=false
  4028. # Loop through the user's path and test for each of PROGNAME-LIST
  4029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4030. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4031. do
  4032. IFS=$as_save_IFS
  4033. test -z "$as_dir" && as_dir=.
  4034. for ac_prog in egrep; do
  4035. for ac_exec_ext in '' $ac_executable_extensions; do
  4036. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4037. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4038. # Check for GNU ac_path_EGREP and select it if it is found.
  4039. # Check for GNU $ac_path_EGREP
  4040. case `"$ac_path_EGREP" --version 2>&1` in
  4041. *GNU*)
  4042. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4043. *)
  4044. ac_count=0
  4045. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4046. while :
  4047. do
  4048. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4049. mv "conftest.tmp" "conftest.in"
  4050. cp "conftest.in" "conftest.nl"
  4051. echo 'EGREP' >> "conftest.nl"
  4052. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4053. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4054. ac_count=`expr $ac_count + 1`
  4055. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4056. # Best one so far, save it but keep looking for a better one
  4057. ac_cv_path_EGREP="$ac_path_EGREP"
  4058. ac_path_EGREP_max=$ac_count
  4059. fi
  4060. # 10*(2^10) chars as input seems more than enough
  4061. test $ac_count -gt 10 && break
  4062. done
  4063. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4064. esac
  4065. $ac_path_EGREP_found && break 3
  4066. done
  4067. done
  4068. done
  4069. IFS=$as_save_IFS
  4070. fi
  4071. EGREP="$ac_cv_path_EGREP"
  4072. if test -z "$EGREP"; then
  4073. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4074. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4075. { (exit 1); exit 1; }; }
  4076. fi
  4077. else
  4078. ac_cv_path_EGREP=$EGREP
  4079. fi
  4080. fi
  4081. fi
  4082. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4083. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4084. EGREP="$ac_cv_path_EGREP"
  4085. # Check whether --with-gnu-ld was given.
  4086. if test "${with_gnu_ld+set}" = set; then
  4087. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4088. else
  4089. with_gnu_ld=no
  4090. fi
  4091. ac_prog=ld
  4092. if test "$GCC" = yes; then
  4093. # Check if gcc -print-prog-name=ld gives a path.
  4094. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  4095. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  4096. case $host in
  4097. *-*-mingw*)
  4098. # gcc leaves a trailing carriage return which upsets mingw
  4099. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4100. *)
  4101. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4102. esac
  4103. case $ac_prog in
  4104. # Accept absolute paths.
  4105. [\\/]* | ?:[\\/]*)
  4106. re_direlt='/[^/][^/]*/\.\./'
  4107. # Canonicalize the pathname of ld
  4108. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  4109. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  4110. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  4111. done
  4112. test -z "$LD" && LD="$ac_prog"
  4113. ;;
  4114. "")
  4115. # If it fails, then pretend we aren't using GCC.
  4116. ac_prog=ld
  4117. ;;
  4118. *)
  4119. # If it is relative, then search for the first ld in PATH.
  4120. with_gnu_ld=unknown
  4121. ;;
  4122. esac
  4123. elif test "$with_gnu_ld" = yes; then
  4124. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  4125. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  4126. else
  4127. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  4128. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  4129. fi
  4130. if test "${lt_cv_path_LD+set}" = set; then
  4131. echo $ECHO_N "(cached) $ECHO_C" >&6
  4132. else
  4133. if test -z "$LD"; then
  4134. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4135. for ac_dir in $PATH; do
  4136. IFS="$lt_save_ifs"
  4137. test -z "$ac_dir" && ac_dir=.
  4138. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4139. lt_cv_path_LD="$ac_dir/$ac_prog"
  4140. # Check to see if the program is GNU ld. I'd rather use --version,
  4141. # but apparently some variants of GNU ld only accept -v.
  4142. # Break only if it was the GNU/non-GNU ld that we prefer.
  4143. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4144. *GNU* | *'with BFD'*)
  4145. test "$with_gnu_ld" != no && break
  4146. ;;
  4147. *)
  4148. test "$with_gnu_ld" != yes && break
  4149. ;;
  4150. esac
  4151. fi
  4152. done
  4153. IFS="$lt_save_ifs"
  4154. else
  4155. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4156. fi
  4157. fi
  4158. LD="$lt_cv_path_LD"
  4159. if test -n "$LD"; then
  4160. { echo "$as_me:$LINENO: result: $LD" >&5
  4161. echo "${ECHO_T}$LD" >&6; }
  4162. else
  4163. { echo "$as_me:$LINENO: result: no" >&5
  4164. echo "${ECHO_T}no" >&6; }
  4165. fi
  4166. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  4167. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  4168. { (exit 1); exit 1; }; }
  4169. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  4170. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  4171. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  4172. echo $ECHO_N "(cached) $ECHO_C" >&6
  4173. else
  4174. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4175. case `$LD -v 2>&1 </dev/null` in
  4176. *GNU* | *'with BFD'*)
  4177. lt_cv_prog_gnu_ld=yes
  4178. ;;
  4179. *)
  4180. lt_cv_prog_gnu_ld=no
  4181. ;;
  4182. esac
  4183. fi
  4184. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  4185. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  4186. with_gnu_ld=$lt_cv_prog_gnu_ld
  4187. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  4188. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  4189. if test "${lt_cv_ld_reload_flag+set}" = set; then
  4190. echo $ECHO_N "(cached) $ECHO_C" >&6
  4191. else
  4192. lt_cv_ld_reload_flag='-r'
  4193. fi
  4194. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  4195. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  4196. reload_flag=$lt_cv_ld_reload_flag
  4197. case $reload_flag in
  4198. "" | " "*) ;;
  4199. *) reload_flag=" $reload_flag" ;;
  4200. esac
  4201. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4202. case $host_os in
  4203. darwin*)
  4204. if test "$GCC" = yes; then
  4205. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4206. else
  4207. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4208. fi
  4209. ;;
  4210. esac
  4211. { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  4212. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  4213. if test "${lt_cv_path_NM+set}" = set; then
  4214. echo $ECHO_N "(cached) $ECHO_C" >&6
  4215. else
  4216. if test -n "$NM"; then
  4217. # Let the user override the test.
  4218. lt_cv_path_NM="$NM"
  4219. else
  4220. lt_nm_to_check="${ac_tool_prefix}nm"
  4221. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4222. lt_nm_to_check="$lt_nm_to_check nm"
  4223. fi
  4224. for lt_tmp_nm in $lt_nm_to_check; do
  4225. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4226. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4227. IFS="$lt_save_ifs"
  4228. test -z "$ac_dir" && ac_dir=.
  4229. tmp_nm="$ac_dir/$lt_tmp_nm"
  4230. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4231. # Check to see if the nm accepts a BSD-compat flag.
  4232. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4233. # nm: unknown option "B" ignored
  4234. # Tru64's nm complains that /dev/null is an invalid object file
  4235. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4236. */dev/null* | *'Invalid file or object type'*)
  4237. lt_cv_path_NM="$tmp_nm -B"
  4238. break
  4239. ;;
  4240. *)
  4241. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4242. */dev/null*)
  4243. lt_cv_path_NM="$tmp_nm -p"
  4244. break
  4245. ;;
  4246. *)
  4247. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4248. continue # so that we can try to find one that supports BSD flags
  4249. ;;
  4250. esac
  4251. ;;
  4252. esac
  4253. fi
  4254. done
  4255. IFS="$lt_save_ifs"
  4256. done
  4257. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4258. fi
  4259. fi
  4260. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  4261. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  4262. NM="$lt_cv_path_NM"
  4263. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  4264. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  4265. LN_S=$as_ln_s
  4266. if test "$LN_S" = "ln -s"; then
  4267. { echo "$as_me:$LINENO: result: yes" >&5
  4268. echo "${ECHO_T}yes" >&6; }
  4269. else
  4270. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  4271. echo "${ECHO_T}no, using $LN_S" >&6; }
  4272. fi
  4273. { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  4274. echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
  4275. if test "${lt_cv_deplibs_check_method+set}" = set; then
  4276. echo $ECHO_N "(cached) $ECHO_C" >&6
  4277. else
  4278. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4279. lt_cv_file_magic_test_file=
  4280. lt_cv_deplibs_check_method='unknown'
  4281. # Need to set the preceding variable on all platforms that support
  4282. # interlibrary dependencies.
  4283. # 'none' -- dependencies not supported.
  4284. # `unknown' -- same as none, but documents that we really don't know.
  4285. # 'pass_all' -- all dependencies passed with no checks.
  4286. # 'test_compile' -- check by making test program.
  4287. # 'file_magic [[regex]]' -- check by looking for files in library path
  4288. # which responds to the $file_magic_cmd with a given extended regex.
  4289. # If you have `file' or equivalent on your system and you're not sure
  4290. # whether `pass_all' will *always* work, you probably want this one.
  4291. case $host_os in
  4292. aix[4-9]*)
  4293. lt_cv_deplibs_check_method=pass_all
  4294. ;;
  4295. beos*)
  4296. lt_cv_deplibs_check_method=pass_all
  4297. ;;
  4298. bsdi[45]*)
  4299. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4300. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4301. lt_cv_file_magic_test_file=/shlib/libc.so
  4302. ;;
  4303. cygwin*)
  4304. # func_win32_libid is a shell function defined in ltmain.sh
  4305. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4306. lt_cv_file_magic_cmd='func_win32_libid'
  4307. ;;
  4308. mingw* | pw32*)
  4309. # Base MSYS/MinGW do not provide the 'file' command needed by
  4310. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4311. # unless we find 'file', for example because we are cross-compiling.
  4312. if ( file / ) >/dev/null 2>&1; then
  4313. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4314. lt_cv_file_magic_cmd='func_win32_libid'
  4315. else
  4316. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4317. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4318. fi
  4319. ;;
  4320. darwin* | rhapsody*)
  4321. lt_cv_deplibs_check_method=pass_all
  4322. ;;
  4323. freebsd* | dragonfly*)
  4324. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4325. case $host_cpu in
  4326. i*86 )
  4327. # Not sure whether the presence of OpenBSD here was a mistake.
  4328. # Let's accept both of them until this is cleared up.
  4329. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4330. lt_cv_file_magic_cmd=/usr/bin/file
  4331. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4332. ;;
  4333. esac
  4334. else
  4335. lt_cv_deplibs_check_method=pass_all
  4336. fi
  4337. ;;
  4338. gnu*)
  4339. lt_cv_deplibs_check_method=pass_all
  4340. ;;
  4341. hpux10.20* | hpux11*)
  4342. lt_cv_file_magic_cmd=/usr/bin/file
  4343. case $host_cpu in
  4344. ia64*)
  4345. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4346. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4347. ;;
  4348. hppa*64*)
  4349. 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]'
  4350. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4351. ;;
  4352. *)
  4353. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4354. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4355. ;;
  4356. esac
  4357. ;;
  4358. interix[3-9]*)
  4359. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4360. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4361. ;;
  4362. irix5* | irix6* | nonstopux*)
  4363. case $LD in
  4364. *-32|*"-32 ") libmagic=32-bit;;
  4365. *-n32|*"-n32 ") libmagic=N32;;
  4366. *-64|*"-64 ") libmagic=64-bit;;
  4367. *) libmagic=never-match;;
  4368. esac
  4369. lt_cv_deplibs_check_method=pass_all
  4370. ;;
  4371. # This must be Linux ELF.
  4372. linux* | k*bsd*-gnu)
  4373. lt_cv_deplibs_check_method=pass_all
  4374. ;;
  4375. netbsd*)
  4376. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4377. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4378. else
  4379. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4380. fi
  4381. ;;
  4382. newos6*)
  4383. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4384. lt_cv_file_magic_cmd=/usr/bin/file
  4385. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4386. ;;
  4387. nto-qnx*)
  4388. lt_cv_deplibs_check_method=unknown
  4389. ;;
  4390. openbsd*)
  4391. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4392. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4393. else
  4394. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4395. fi
  4396. ;;
  4397. osf3* | osf4* | osf5*)
  4398. lt_cv_deplibs_check_method=pass_all
  4399. ;;
  4400. rdos*)
  4401. lt_cv_deplibs_check_method=pass_all
  4402. ;;
  4403. solaris*)
  4404. lt_cv_deplibs_check_method=pass_all
  4405. ;;
  4406. sysv4 | sysv4.3*)
  4407. case $host_vendor in
  4408. motorola)
  4409. 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]'
  4410. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4411. ;;
  4412. ncr)
  4413. lt_cv_deplibs_check_method=pass_all
  4414. ;;
  4415. sequent)
  4416. lt_cv_file_magic_cmd='/bin/file'
  4417. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4418. ;;
  4419. sni)
  4420. lt_cv_file_magic_cmd='/bin/file'
  4421. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4422. lt_cv_file_magic_test_file=/lib/libc.so
  4423. ;;
  4424. siemens)
  4425. lt_cv_deplibs_check_method=pass_all
  4426. ;;
  4427. pc)
  4428. lt_cv_deplibs_check_method=pass_all
  4429. ;;
  4430. esac
  4431. ;;
  4432. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4433. lt_cv_deplibs_check_method=pass_all
  4434. ;;
  4435. esac
  4436. fi
  4437. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4438. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  4439. file_magic_cmd=$lt_cv_file_magic_cmd
  4440. deplibs_check_method=$lt_cv_deplibs_check_method
  4441. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4442. # If no C compiler was specified, use CC.
  4443. LTCC=${LTCC-"$CC"}
  4444. # If no C compiler flags were specified, use CFLAGS.
  4445. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4446. # Allow CC to be a program name with arguments.
  4447. compiler=$CC
  4448. # Check whether --enable-libtool-lock was given.
  4449. if test "${enable_libtool_lock+set}" = set; then
  4450. enableval=$enable_libtool_lock;
  4451. fi
  4452. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4453. # Some flags need to be propagated to the compiler or linker for good
  4454. # libtool support.
  4455. case $host in
  4456. ia64-*-hpux*)
  4457. # Find out which ABI we are using.
  4458. echo 'int i;' > conftest.$ac_ext
  4459. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4460. (eval $ac_compile) 2>&5
  4461. ac_status=$?
  4462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4463. (exit $ac_status); }; then
  4464. case `/usr/bin/file conftest.$ac_objext` in
  4465. *ELF-32*)
  4466. HPUX_IA64_MODE="32"
  4467. ;;
  4468. *ELF-64*)
  4469. HPUX_IA64_MODE="64"
  4470. ;;
  4471. esac
  4472. fi
  4473. rm -rf conftest*
  4474. ;;
  4475. *-*-irix6*)
  4476. # Find out which ABI we are using.
  4477. echo '#line 5014 "configure"' > conftest.$ac_ext
  4478. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4479. (eval $ac_compile) 2>&5
  4480. ac_status=$?
  4481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4482. (exit $ac_status); }; then
  4483. if test "$lt_cv_prog_gnu_ld" = yes; then
  4484. case `/usr/bin/file conftest.$ac_objext` in
  4485. *32-bit*)
  4486. LD="${LD-ld} -melf32bsmip"
  4487. ;;
  4488. *N32*)
  4489. LD="${LD-ld} -melf32bmipn32"
  4490. ;;
  4491. *64-bit*)
  4492. LD="${LD-ld} -melf64bmip"
  4493. ;;
  4494. esac
  4495. else
  4496. case `/usr/bin/file conftest.$ac_objext` in
  4497. *32-bit*)
  4498. LD="${LD-ld} -32"
  4499. ;;
  4500. *N32*)
  4501. LD="${LD-ld} -n32"
  4502. ;;
  4503. *64-bit*)
  4504. LD="${LD-ld} -64"
  4505. ;;
  4506. esac
  4507. fi
  4508. fi
  4509. rm -rf conftest*
  4510. ;;
  4511. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  4512. s390*-*linux*|sparc*-*linux*)
  4513. # Find out which ABI we are using.
  4514. echo 'int i;' > conftest.$ac_ext
  4515. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4516. (eval $ac_compile) 2>&5
  4517. ac_status=$?
  4518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4519. (exit $ac_status); }; then
  4520. case `/usr/bin/file conftest.o` in
  4521. *32-bit*)
  4522. case $host in
  4523. x86_64-*kfreebsd*-gnu)
  4524. LD="${LD-ld} -m elf_i386_fbsd"
  4525. ;;
  4526. x86_64-*linux*)
  4527. LD="${LD-ld} -m elf_i386"
  4528. ;;
  4529. ppc64-*linux*|powerpc64-*linux*)
  4530. LD="${LD-ld} -m elf32ppclinux"
  4531. ;;
  4532. s390x-*linux*)
  4533. LD="${LD-ld} -m elf_s390"
  4534. ;;
  4535. sparc64-*linux*)
  4536. LD="${LD-ld} -m elf32_sparc"
  4537. ;;
  4538. esac
  4539. ;;
  4540. *64-bit*)
  4541. case $host in
  4542. x86_64-*kfreebsd*-gnu)
  4543. LD="${LD-ld} -m elf_x86_64_fbsd"
  4544. ;;
  4545. x86_64-*linux*)
  4546. LD="${LD-ld} -m elf_x86_64"
  4547. ;;
  4548. ppc*-*linux*|powerpc*-*linux*)
  4549. LD="${LD-ld} -m elf64ppc"
  4550. ;;
  4551. s390*-*linux*)
  4552. LD="${LD-ld} -m elf64_s390"
  4553. ;;
  4554. sparc*-*linux*)
  4555. LD="${LD-ld} -m elf64_sparc"
  4556. ;;
  4557. esac
  4558. ;;
  4559. esac
  4560. fi
  4561. rm -rf conftest*
  4562. ;;
  4563. *-*-sco3.2v5*)
  4564. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4565. SAVE_CFLAGS="$CFLAGS"
  4566. CFLAGS="$CFLAGS -belf"
  4567. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4568. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  4569. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4570. echo $ECHO_N "(cached) $ECHO_C" >&6
  4571. else
  4572. ac_ext=c
  4573. ac_cpp='$CPP $CPPFLAGS'
  4574. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4575. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4576. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4577. cat >conftest.$ac_ext <<_ACEOF
  4578. /* confdefs.h. */
  4579. _ACEOF
  4580. cat confdefs.h >>conftest.$ac_ext
  4581. cat >>conftest.$ac_ext <<_ACEOF
  4582. /* end confdefs.h. */
  4583. int
  4584. main ()
  4585. {
  4586. ;
  4587. return 0;
  4588. }
  4589. _ACEOF
  4590. rm -f conftest.$ac_objext conftest$ac_exeext
  4591. if { (ac_try="$ac_link"
  4592. case "(($ac_try" in
  4593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4594. *) ac_try_echo=$ac_try;;
  4595. esac
  4596. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4597. (eval "$ac_link") 2>conftest.er1
  4598. ac_status=$?
  4599. grep -v '^ *+' conftest.er1 >conftest.err
  4600. rm -f conftest.er1
  4601. cat conftest.err >&5
  4602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4603. (exit $ac_status); } && {
  4604. test -z "$ac_c_werror_flag" ||
  4605. test ! -s conftest.err
  4606. } && test -s conftest$ac_exeext &&
  4607. $as_test_x conftest$ac_exeext; then
  4608. lt_cv_cc_needs_belf=yes
  4609. else
  4610. echo "$as_me: failed program was:" >&5
  4611. sed 's/^/| /' conftest.$ac_ext >&5
  4612. lt_cv_cc_needs_belf=no
  4613. fi
  4614. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4615. conftest$ac_exeext conftest.$ac_ext
  4616. ac_ext=c
  4617. ac_cpp='$CPP $CPPFLAGS'
  4618. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4619. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4620. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4621. fi
  4622. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4623. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  4624. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4625. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4626. CFLAGS="$SAVE_CFLAGS"
  4627. fi
  4628. ;;
  4629. sparc*-*solaris*)
  4630. # Find out which ABI we are using.
  4631. echo 'int i;' > conftest.$ac_ext
  4632. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4633. (eval $ac_compile) 2>&5
  4634. ac_status=$?
  4635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4636. (exit $ac_status); }; then
  4637. case `/usr/bin/file conftest.o` in
  4638. *64-bit*)
  4639. case $lt_cv_prog_gnu_ld in
  4640. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4641. *)
  4642. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  4643. LD="${LD-ld} -64"
  4644. fi
  4645. ;;
  4646. esac
  4647. ;;
  4648. esac
  4649. fi
  4650. rm -rf conftest*
  4651. ;;
  4652. *-*-cygwin* | *-*-mingw* | *-*-pw32*)
  4653. if test -n "$ac_tool_prefix"; then
  4654. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4655. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4656. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4657. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4658. if test "${ac_cv_prog_DLLTOOL+set}" = set; then
  4659. echo $ECHO_N "(cached) $ECHO_C" >&6
  4660. else
  4661. if test -n "$DLLTOOL"; then
  4662. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4663. else
  4664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4665. for as_dir in $PATH
  4666. do
  4667. IFS=$as_save_IFS
  4668. test -z "$as_dir" && as_dir=.
  4669. for ac_exec_ext in '' $ac_executable_extensions; do
  4670. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4671. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4672. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4673. break 2
  4674. fi
  4675. done
  4676. done
  4677. IFS=$as_save_IFS
  4678. fi
  4679. fi
  4680. DLLTOOL=$ac_cv_prog_DLLTOOL
  4681. if test -n "$DLLTOOL"; then
  4682. { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
  4683. echo "${ECHO_T}$DLLTOOL" >&6; }
  4684. else
  4685. { echo "$as_me:$LINENO: result: no" >&5
  4686. echo "${ECHO_T}no" >&6; }
  4687. fi
  4688. fi
  4689. if test -z "$ac_cv_prog_DLLTOOL"; then
  4690. ac_ct_DLLTOOL=$DLLTOOL
  4691. # Extract the first word of "dlltool", so it can be a program name with args.
  4692. set dummy dlltool; ac_word=$2
  4693. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4694. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4695. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
  4696. echo $ECHO_N "(cached) $ECHO_C" >&6
  4697. else
  4698. if test -n "$ac_ct_DLLTOOL"; then
  4699. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4700. else
  4701. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4702. for as_dir in $PATH
  4703. do
  4704. IFS=$as_save_IFS
  4705. test -z "$as_dir" && as_dir=.
  4706. for ac_exec_ext in '' $ac_executable_extensions; do
  4707. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4708. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4709. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4710. break 2
  4711. fi
  4712. done
  4713. done
  4714. IFS=$as_save_IFS
  4715. fi
  4716. fi
  4717. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4718. if test -n "$ac_ct_DLLTOOL"; then
  4719. { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
  4720. echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
  4721. else
  4722. { echo "$as_me:$LINENO: result: no" >&5
  4723. echo "${ECHO_T}no" >&6; }
  4724. fi
  4725. if test "x$ac_ct_DLLTOOL" = x; then
  4726. DLLTOOL="false"
  4727. else
  4728. case $cross_compiling:$ac_tool_warned in
  4729. yes:)
  4730. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4731. whose name does not start with the host triplet. If you think this
  4732. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4733. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4734. whose name does not start with the host triplet. If you think this
  4735. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4736. ac_tool_warned=yes ;;
  4737. esac
  4738. DLLTOOL=$ac_ct_DLLTOOL
  4739. fi
  4740. else
  4741. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4742. fi
  4743. if test -n "$ac_tool_prefix"; then
  4744. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  4745. set dummy ${ac_tool_prefix}as; ac_word=$2
  4746. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4747. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4748. if test "${ac_cv_prog_AS+set}" = set; then
  4749. echo $ECHO_N "(cached) $ECHO_C" >&6
  4750. else
  4751. if test -n "$AS"; then
  4752. ac_cv_prog_AS="$AS" # Let the user override the test.
  4753. else
  4754. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4755. for as_dir in $PATH
  4756. do
  4757. IFS=$as_save_IFS
  4758. test -z "$as_dir" && as_dir=.
  4759. for ac_exec_ext in '' $ac_executable_extensions; do
  4760. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4761. ac_cv_prog_AS="${ac_tool_prefix}as"
  4762. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4763. break 2
  4764. fi
  4765. done
  4766. done
  4767. IFS=$as_save_IFS
  4768. fi
  4769. fi
  4770. AS=$ac_cv_prog_AS
  4771. if test -n "$AS"; then
  4772. { echo "$as_me:$LINENO: result: $AS" >&5
  4773. echo "${ECHO_T}$AS" >&6; }
  4774. else
  4775. { echo "$as_me:$LINENO: result: no" >&5
  4776. echo "${ECHO_T}no" >&6; }
  4777. fi
  4778. fi
  4779. if test -z "$ac_cv_prog_AS"; then
  4780. ac_ct_AS=$AS
  4781. # Extract the first word of "as", so it can be a program name with args.
  4782. set dummy as; ac_word=$2
  4783. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4784. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4785. if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
  4786. echo $ECHO_N "(cached) $ECHO_C" >&6
  4787. else
  4788. if test -n "$ac_ct_AS"; then
  4789. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  4790. else
  4791. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4792. for as_dir in $PATH
  4793. do
  4794. IFS=$as_save_IFS
  4795. test -z "$as_dir" && as_dir=.
  4796. for ac_exec_ext in '' $ac_executable_extensions; do
  4797. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4798. ac_cv_prog_ac_ct_AS="as"
  4799. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4800. break 2
  4801. fi
  4802. done
  4803. done
  4804. IFS=$as_save_IFS
  4805. fi
  4806. fi
  4807. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  4808. if test -n "$ac_ct_AS"; then
  4809. { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
  4810. echo "${ECHO_T}$ac_ct_AS" >&6; }
  4811. else
  4812. { echo "$as_me:$LINENO: result: no" >&5
  4813. echo "${ECHO_T}no" >&6; }
  4814. fi
  4815. if test "x$ac_ct_AS" = x; then
  4816. AS="false"
  4817. else
  4818. case $cross_compiling:$ac_tool_warned in
  4819. yes:)
  4820. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4821. whose name does not start with the host triplet. If you think this
  4822. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4823. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4824. whose name does not start with the host triplet. If you think this
  4825. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4826. ac_tool_warned=yes ;;
  4827. esac
  4828. AS=$ac_ct_AS
  4829. fi
  4830. else
  4831. AS="$ac_cv_prog_AS"
  4832. fi
  4833. if test -n "$ac_tool_prefix"; then
  4834. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4835. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4836. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4837. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4838. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  4839. echo $ECHO_N "(cached) $ECHO_C" >&6
  4840. else
  4841. if test -n "$OBJDUMP"; then
  4842. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4843. else
  4844. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4845. for as_dir in $PATH
  4846. do
  4847. IFS=$as_save_IFS
  4848. test -z "$as_dir" && as_dir=.
  4849. for ac_exec_ext in '' $ac_executable_extensions; do
  4850. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4851. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4852. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4853. break 2
  4854. fi
  4855. done
  4856. done
  4857. IFS=$as_save_IFS
  4858. fi
  4859. fi
  4860. OBJDUMP=$ac_cv_prog_OBJDUMP
  4861. if test -n "$OBJDUMP"; then
  4862. { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  4863. echo "${ECHO_T}$OBJDUMP" >&6; }
  4864. else
  4865. { echo "$as_me:$LINENO: result: no" >&5
  4866. echo "${ECHO_T}no" >&6; }
  4867. fi
  4868. fi
  4869. if test -z "$ac_cv_prog_OBJDUMP"; then
  4870. ac_ct_OBJDUMP=$OBJDUMP
  4871. # Extract the first word of "objdump", so it can be a program name with args.
  4872. set dummy objdump; ac_word=$2
  4873. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4874. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4875. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  4876. echo $ECHO_N "(cached) $ECHO_C" >&6
  4877. else
  4878. if test -n "$ac_ct_OBJDUMP"; then
  4879. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4880. else
  4881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4882. for as_dir in $PATH
  4883. do
  4884. IFS=$as_save_IFS
  4885. test -z "$as_dir" && as_dir=.
  4886. for ac_exec_ext in '' $ac_executable_extensions; do
  4887. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4888. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4889. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4890. break 2
  4891. fi
  4892. done
  4893. done
  4894. IFS=$as_save_IFS
  4895. fi
  4896. fi
  4897. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4898. if test -n "$ac_ct_OBJDUMP"; then
  4899. { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  4900. echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
  4901. else
  4902. { echo "$as_me:$LINENO: result: no" >&5
  4903. echo "${ECHO_T}no" >&6; }
  4904. fi
  4905. if test "x$ac_ct_OBJDUMP" = x; then
  4906. OBJDUMP="false"
  4907. else
  4908. case $cross_compiling:$ac_tool_warned in
  4909. yes:)
  4910. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4911. whose name does not start with the host triplet. If you think this
  4912. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4913. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4914. whose name does not start with the host triplet. If you think this
  4915. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4916. ac_tool_warned=yes ;;
  4917. esac
  4918. OBJDUMP=$ac_ct_OBJDUMP
  4919. fi
  4920. else
  4921. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4922. fi
  4923. ;;
  4924. esac
  4925. need_locks="$enable_libtool_lock"
  4926. ac_ext=c
  4927. ac_cpp='$CPP $CPPFLAGS'
  4928. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4929. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4930. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4931. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4932. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4933. # On Suns, sometimes $CPP names a directory.
  4934. if test -n "$CPP" && test -d "$CPP"; then
  4935. CPP=
  4936. fi
  4937. if test -z "$CPP"; then
  4938. if test "${ac_cv_prog_CPP+set}" = set; then
  4939. echo $ECHO_N "(cached) $ECHO_C" >&6
  4940. else
  4941. # Double quotes because CPP needs to be expanded
  4942. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4943. do
  4944. ac_preproc_ok=false
  4945. for ac_c_preproc_warn_flag in '' yes
  4946. do
  4947. # Use a header file that comes with gcc, so configuring glibc
  4948. # with a fresh cross-compiler works.
  4949. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4950. # <limits.h> exists even on freestanding compilers.
  4951. # On the NeXT, cc -E runs the code through the compiler's parser,
  4952. # not just through cpp. "Syntax error" is here to catch this case.
  4953. cat >conftest.$ac_ext <<_ACEOF
  4954. /* confdefs.h. */
  4955. _ACEOF
  4956. cat confdefs.h >>conftest.$ac_ext
  4957. cat >>conftest.$ac_ext <<_ACEOF
  4958. /* end confdefs.h. */
  4959. #ifdef __STDC__
  4960. # include <limits.h>
  4961. #else
  4962. # include <assert.h>
  4963. #endif
  4964. Syntax error
  4965. _ACEOF
  4966. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4967. case "(($ac_try" in
  4968. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4969. *) ac_try_echo=$ac_try;;
  4970. esac
  4971. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4972. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4973. ac_status=$?
  4974. grep -v '^ *+' conftest.er1 >conftest.err
  4975. rm -f conftest.er1
  4976. cat conftest.err >&5
  4977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4978. (exit $ac_status); } >/dev/null && {
  4979. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4980. test ! -s conftest.err
  4981. }; then
  4982. :
  4983. else
  4984. echo "$as_me: failed program was:" >&5
  4985. sed 's/^/| /' conftest.$ac_ext >&5
  4986. # Broken: fails on valid input.
  4987. continue
  4988. fi
  4989. rm -f conftest.err conftest.$ac_ext
  4990. # OK, works on sane cases. Now check whether nonexistent headers
  4991. # can be detected and how.
  4992. cat >conftest.$ac_ext <<_ACEOF
  4993. /* confdefs.h. */
  4994. _ACEOF
  4995. cat confdefs.h >>conftest.$ac_ext
  4996. cat >>conftest.$ac_ext <<_ACEOF
  4997. /* end confdefs.h. */
  4998. #include <ac_nonexistent.h>
  4999. _ACEOF
  5000. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5001. case "(($ac_try" in
  5002. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5003. *) ac_try_echo=$ac_try;;
  5004. esac
  5005. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5006. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5007. ac_status=$?
  5008. grep -v '^ *+' conftest.er1 >conftest.err
  5009. rm -f conftest.er1
  5010. cat conftest.err >&5
  5011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5012. (exit $ac_status); } >/dev/null && {
  5013. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5014. test ! -s conftest.err
  5015. }; then
  5016. # Broken: success on invalid input.
  5017. continue
  5018. else
  5019. echo "$as_me: failed program was:" >&5
  5020. sed 's/^/| /' conftest.$ac_ext >&5
  5021. # Passes both tests.
  5022. ac_preproc_ok=:
  5023. break
  5024. fi
  5025. rm -f conftest.err conftest.$ac_ext
  5026. done
  5027. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5028. rm -f conftest.err conftest.$ac_ext
  5029. if $ac_preproc_ok; then
  5030. break
  5031. fi
  5032. done
  5033. ac_cv_prog_CPP=$CPP
  5034. fi
  5035. CPP=$ac_cv_prog_CPP
  5036. else
  5037. ac_cv_prog_CPP=$CPP
  5038. fi
  5039. { echo "$as_me:$LINENO: result: $CPP" >&5
  5040. echo "${ECHO_T}$CPP" >&6; }
  5041. ac_preproc_ok=false
  5042. for ac_c_preproc_warn_flag in '' yes
  5043. do
  5044. # Use a header file that comes with gcc, so configuring glibc
  5045. # with a fresh cross-compiler works.
  5046. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5047. # <limits.h> exists even on freestanding compilers.
  5048. # On the NeXT, cc -E runs the code through the compiler's parser,
  5049. # not just through cpp. "Syntax error" is here to catch this case.
  5050. cat >conftest.$ac_ext <<_ACEOF
  5051. /* confdefs.h. */
  5052. _ACEOF
  5053. cat confdefs.h >>conftest.$ac_ext
  5054. cat >>conftest.$ac_ext <<_ACEOF
  5055. /* end confdefs.h. */
  5056. #ifdef __STDC__
  5057. # include <limits.h>
  5058. #else
  5059. # include <assert.h>
  5060. #endif
  5061. Syntax error
  5062. _ACEOF
  5063. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5064. case "(($ac_try" in
  5065. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5066. *) ac_try_echo=$ac_try;;
  5067. esac
  5068. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5069. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5070. ac_status=$?
  5071. grep -v '^ *+' conftest.er1 >conftest.err
  5072. rm -f conftest.er1
  5073. cat conftest.err >&5
  5074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5075. (exit $ac_status); } >/dev/null && {
  5076. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5077. test ! -s conftest.err
  5078. }; then
  5079. :
  5080. else
  5081. echo "$as_me: failed program was:" >&5
  5082. sed 's/^/| /' conftest.$ac_ext >&5
  5083. # Broken: fails on valid input.
  5084. continue
  5085. fi
  5086. rm -f conftest.err conftest.$ac_ext
  5087. # OK, works on sane cases. Now check whether nonexistent headers
  5088. # can be detected and how.
  5089. cat >conftest.$ac_ext <<_ACEOF
  5090. /* confdefs.h. */
  5091. _ACEOF
  5092. cat confdefs.h >>conftest.$ac_ext
  5093. cat >>conftest.$ac_ext <<_ACEOF
  5094. /* end confdefs.h. */
  5095. #include <ac_nonexistent.h>
  5096. _ACEOF
  5097. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5098. case "(($ac_try" in
  5099. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5100. *) ac_try_echo=$ac_try;;
  5101. esac
  5102. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5103. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5104. ac_status=$?
  5105. grep -v '^ *+' conftest.er1 >conftest.err
  5106. rm -f conftest.er1
  5107. cat conftest.err >&5
  5108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5109. (exit $ac_status); } >/dev/null && {
  5110. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5111. test ! -s conftest.err
  5112. }; then
  5113. # Broken: success on invalid input.
  5114. continue
  5115. else
  5116. echo "$as_me: failed program was:" >&5
  5117. sed 's/^/| /' conftest.$ac_ext >&5
  5118. # Passes both tests.
  5119. ac_preproc_ok=:
  5120. break
  5121. fi
  5122. rm -f conftest.err conftest.$ac_ext
  5123. done
  5124. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5125. rm -f conftest.err conftest.$ac_ext
  5126. if $ac_preproc_ok; then
  5127. :
  5128. else
  5129. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5130. See \`config.log' for more details." >&5
  5131. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5132. See \`config.log' for more details." >&2;}
  5133. { (exit 1); exit 1; }; }
  5134. fi
  5135. ac_ext=c
  5136. ac_cpp='$CPP $CPPFLAGS'
  5137. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5138. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5139. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5140. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5141. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  5142. if test "${ac_cv_header_stdc+set}" = set; then
  5143. echo $ECHO_N "(cached) $ECHO_C" >&6
  5144. else
  5145. cat >conftest.$ac_ext <<_ACEOF
  5146. /* confdefs.h. */
  5147. _ACEOF
  5148. cat confdefs.h >>conftest.$ac_ext
  5149. cat >>conftest.$ac_ext <<_ACEOF
  5150. /* end confdefs.h. */
  5151. #include <stdlib.h>
  5152. #include <stdarg.h>
  5153. #include <string.h>
  5154. #include <float.h>
  5155. int
  5156. main ()
  5157. {
  5158. ;
  5159. return 0;
  5160. }
  5161. _ACEOF
  5162. rm -f conftest.$ac_objext
  5163. if { (ac_try="$ac_compile"
  5164. case "(($ac_try" in
  5165. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5166. *) ac_try_echo=$ac_try;;
  5167. esac
  5168. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5169. (eval "$ac_compile") 2>conftest.er1
  5170. ac_status=$?
  5171. grep -v '^ *+' conftest.er1 >conftest.err
  5172. rm -f conftest.er1
  5173. cat conftest.err >&5
  5174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5175. (exit $ac_status); } && {
  5176. test -z "$ac_c_werror_flag" ||
  5177. test ! -s conftest.err
  5178. } && test -s conftest.$ac_objext; then
  5179. ac_cv_header_stdc=yes
  5180. else
  5181. echo "$as_me: failed program was:" >&5
  5182. sed 's/^/| /' conftest.$ac_ext >&5
  5183. ac_cv_header_stdc=no
  5184. fi
  5185. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5186. if test $ac_cv_header_stdc = yes; then
  5187. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5188. cat >conftest.$ac_ext <<_ACEOF
  5189. /* confdefs.h. */
  5190. _ACEOF
  5191. cat confdefs.h >>conftest.$ac_ext
  5192. cat >>conftest.$ac_ext <<_ACEOF
  5193. /* end confdefs.h. */
  5194. #include <string.h>
  5195. _ACEOF
  5196. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5197. $EGREP "memchr" >/dev/null 2>&1; then
  5198. :
  5199. else
  5200. ac_cv_header_stdc=no
  5201. fi
  5202. rm -f conftest*
  5203. fi
  5204. if test $ac_cv_header_stdc = yes; then
  5205. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5206. cat >conftest.$ac_ext <<_ACEOF
  5207. /* confdefs.h. */
  5208. _ACEOF
  5209. cat confdefs.h >>conftest.$ac_ext
  5210. cat >>conftest.$ac_ext <<_ACEOF
  5211. /* end confdefs.h. */
  5212. #include <stdlib.h>
  5213. _ACEOF
  5214. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5215. $EGREP "free" >/dev/null 2>&1; then
  5216. :
  5217. else
  5218. ac_cv_header_stdc=no
  5219. fi
  5220. rm -f conftest*
  5221. fi
  5222. if test $ac_cv_header_stdc = yes; then
  5223. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5224. if test "$cross_compiling" = yes; then
  5225. :
  5226. else
  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. #include <ctype.h>
  5234. #include <stdlib.h>
  5235. #if ((' ' & 0x0FF) == 0x020)
  5236. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5237. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5238. #else
  5239. # define ISLOWER(c) \
  5240. (('a' <= (c) && (c) <= 'i') \
  5241. || ('j' <= (c) && (c) <= 'r') \
  5242. || ('s' <= (c) && (c) <= 'z'))
  5243. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5244. #endif
  5245. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5246. int
  5247. main ()
  5248. {
  5249. int i;
  5250. for (i = 0; i < 256; i++)
  5251. if (XOR (islower (i), ISLOWER (i))
  5252. || toupper (i) != TOUPPER (i))
  5253. return 2;
  5254. return 0;
  5255. }
  5256. _ACEOF
  5257. rm -f conftest$ac_exeext
  5258. if { (ac_try="$ac_link"
  5259. case "(($ac_try" in
  5260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5261. *) ac_try_echo=$ac_try;;
  5262. esac
  5263. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5264. (eval "$ac_link") 2>&5
  5265. ac_status=$?
  5266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5267. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5268. { (case "(($ac_try" in
  5269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5270. *) ac_try_echo=$ac_try;;
  5271. esac
  5272. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5273. (eval "$ac_try") 2>&5
  5274. ac_status=$?
  5275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5276. (exit $ac_status); }; }; then
  5277. :
  5278. else
  5279. echo "$as_me: program exited with status $ac_status" >&5
  5280. echo "$as_me: failed program was:" >&5
  5281. sed 's/^/| /' conftest.$ac_ext >&5
  5282. ( exit $ac_status )
  5283. ac_cv_header_stdc=no
  5284. fi
  5285. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5286. fi
  5287. fi
  5288. fi
  5289. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5290. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  5291. if test $ac_cv_header_stdc = yes; then
  5292. cat >>confdefs.h <<\_ACEOF
  5293. #define STDC_HEADERS 1
  5294. _ACEOF
  5295. fi
  5296. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5297. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5298. inttypes.h stdint.h unistd.h
  5299. do
  5300. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5301. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5302. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5303. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5304. echo $ECHO_N "(cached) $ECHO_C" >&6
  5305. else
  5306. cat >conftest.$ac_ext <<_ACEOF
  5307. /* confdefs.h. */
  5308. _ACEOF
  5309. cat confdefs.h >>conftest.$ac_ext
  5310. cat >>conftest.$ac_ext <<_ACEOF
  5311. /* end confdefs.h. */
  5312. $ac_includes_default
  5313. #include <$ac_header>
  5314. _ACEOF
  5315. rm -f conftest.$ac_objext
  5316. if { (ac_try="$ac_compile"
  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_compile") 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_objext; then
  5332. eval "$as_ac_Header=yes"
  5333. else
  5334. echo "$as_me: failed program was:" >&5
  5335. sed 's/^/| /' conftest.$ac_ext >&5
  5336. eval "$as_ac_Header=no"
  5337. fi
  5338. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5339. fi
  5340. ac_res=`eval echo '${'$as_ac_Header'}'`
  5341. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5342. echo "${ECHO_T}$ac_res" >&6; }
  5343. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5344. cat >>confdefs.h <<_ACEOF
  5345. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5346. _ACEOF
  5347. fi
  5348. done
  5349. for ac_header in dlfcn.h
  5350. do
  5351. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5352. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5353. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5354. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5355. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5356. echo $ECHO_N "(cached) $ECHO_C" >&6
  5357. fi
  5358. ac_res=`eval echo '${'$as_ac_Header'}'`
  5359. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5360. echo "${ECHO_T}$ac_res" >&6; }
  5361. else
  5362. # Is the header compilable?
  5363. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5364. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  5365. cat >conftest.$ac_ext <<_ACEOF
  5366. /* confdefs.h. */
  5367. _ACEOF
  5368. cat confdefs.h >>conftest.$ac_ext
  5369. cat >>conftest.$ac_ext <<_ACEOF
  5370. /* end confdefs.h. */
  5371. $ac_includes_default
  5372. #include <$ac_header>
  5373. _ACEOF
  5374. rm -f conftest.$ac_objext
  5375. if { (ac_try="$ac_compile"
  5376. case "(($ac_try" in
  5377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5378. *) ac_try_echo=$ac_try;;
  5379. esac
  5380. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5381. (eval "$ac_compile") 2>conftest.er1
  5382. ac_status=$?
  5383. grep -v '^ *+' conftest.er1 >conftest.err
  5384. rm -f conftest.er1
  5385. cat conftest.err >&5
  5386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5387. (exit $ac_status); } && {
  5388. test -z "$ac_c_werror_flag" ||
  5389. test ! -s conftest.err
  5390. } && test -s conftest.$ac_objext; then
  5391. ac_header_compiler=yes
  5392. else
  5393. echo "$as_me: failed program was:" >&5
  5394. sed 's/^/| /' conftest.$ac_ext >&5
  5395. ac_header_compiler=no
  5396. fi
  5397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5398. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5399. echo "${ECHO_T}$ac_header_compiler" >&6; }
  5400. # Is the header present?
  5401. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5402. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  5403. cat >conftest.$ac_ext <<_ACEOF
  5404. /* confdefs.h. */
  5405. _ACEOF
  5406. cat confdefs.h >>conftest.$ac_ext
  5407. cat >>conftest.$ac_ext <<_ACEOF
  5408. /* end confdefs.h. */
  5409. #include <$ac_header>
  5410. _ACEOF
  5411. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5412. case "(($ac_try" in
  5413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5414. *) ac_try_echo=$ac_try;;
  5415. esac
  5416. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5417. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5418. ac_status=$?
  5419. grep -v '^ *+' conftest.er1 >conftest.err
  5420. rm -f conftest.er1
  5421. cat conftest.err >&5
  5422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5423. (exit $ac_status); } >/dev/null && {
  5424. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5425. test ! -s conftest.err
  5426. }; then
  5427. ac_header_preproc=yes
  5428. else
  5429. echo "$as_me: failed program was:" >&5
  5430. sed 's/^/| /' conftest.$ac_ext >&5
  5431. ac_header_preproc=no
  5432. fi
  5433. rm -f conftest.err conftest.$ac_ext
  5434. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5435. echo "${ECHO_T}$ac_header_preproc" >&6; }
  5436. # So? What about this header?
  5437. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5438. yes:no: )
  5439. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5440. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5441. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5442. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5443. ac_header_preproc=yes
  5444. ;;
  5445. no:yes:* )
  5446. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5447. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5448. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5449. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5450. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5451. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5452. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5453. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5454. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5455. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5456. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5457. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5458. ;;
  5459. esac
  5460. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5461. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5462. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5463. echo $ECHO_N "(cached) $ECHO_C" >&6
  5464. else
  5465. eval "$as_ac_Header=\$ac_header_preproc"
  5466. fi
  5467. ac_res=`eval echo '${'$as_ac_Header'}'`
  5468. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5469. echo "${ECHO_T}$ac_res" >&6; }
  5470. fi
  5471. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5472. cat >>confdefs.h <<_ACEOF
  5473. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5474. _ACEOF
  5475. fi
  5476. done
  5477. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5478. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5479. (test "X$CXX" != "Xg++"))) ; then
  5480. ac_ext=cpp
  5481. ac_cpp='$CXXCPP $CPPFLAGS'
  5482. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5483. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5484. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5485. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5486. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  5487. if test -z "$CXXCPP"; then
  5488. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5489. echo $ECHO_N "(cached) $ECHO_C" >&6
  5490. else
  5491. # Double quotes because CXXCPP needs to be expanded
  5492. for CXXCPP in "$CXX -E" "/lib/cpp"
  5493. do
  5494. ac_preproc_ok=false
  5495. for ac_cxx_preproc_warn_flag in '' yes
  5496. do
  5497. # Use a header file that comes with gcc, so configuring glibc
  5498. # with a fresh cross-compiler works.
  5499. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5500. # <limits.h> exists even on freestanding compilers.
  5501. # On the NeXT, cc -E runs the code through the compiler's parser,
  5502. # not just through cpp. "Syntax error" is here to catch this case.
  5503. cat >conftest.$ac_ext <<_ACEOF
  5504. /* confdefs.h. */
  5505. _ACEOF
  5506. cat confdefs.h >>conftest.$ac_ext
  5507. cat >>conftest.$ac_ext <<_ACEOF
  5508. /* end confdefs.h. */
  5509. #ifdef __STDC__
  5510. # include <limits.h>
  5511. #else
  5512. # include <assert.h>
  5513. #endif
  5514. Syntax error
  5515. _ACEOF
  5516. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5517. case "(($ac_try" in
  5518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5519. *) ac_try_echo=$ac_try;;
  5520. esac
  5521. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5522. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5523. ac_status=$?
  5524. grep -v '^ *+' conftest.er1 >conftest.err
  5525. rm -f conftest.er1
  5526. cat conftest.err >&5
  5527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5528. (exit $ac_status); } >/dev/null && {
  5529. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5530. test ! -s conftest.err
  5531. }; then
  5532. :
  5533. else
  5534. echo "$as_me: failed program was:" >&5
  5535. sed 's/^/| /' conftest.$ac_ext >&5
  5536. # Broken: fails on valid input.
  5537. continue
  5538. fi
  5539. rm -f conftest.err conftest.$ac_ext
  5540. # OK, works on sane cases. Now check whether nonexistent headers
  5541. # can be detected and how.
  5542. cat >conftest.$ac_ext <<_ACEOF
  5543. /* confdefs.h. */
  5544. _ACEOF
  5545. cat confdefs.h >>conftest.$ac_ext
  5546. cat >>conftest.$ac_ext <<_ACEOF
  5547. /* end confdefs.h. */
  5548. #include <ac_nonexistent.h>
  5549. _ACEOF
  5550. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5551. case "(($ac_try" in
  5552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5553. *) ac_try_echo=$ac_try;;
  5554. esac
  5555. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5556. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5557. ac_status=$?
  5558. grep -v '^ *+' conftest.er1 >conftest.err
  5559. rm -f conftest.er1
  5560. cat conftest.err >&5
  5561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5562. (exit $ac_status); } >/dev/null && {
  5563. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5564. test ! -s conftest.err
  5565. }; then
  5566. # Broken: success on invalid input.
  5567. continue
  5568. else
  5569. echo "$as_me: failed program was:" >&5
  5570. sed 's/^/| /' conftest.$ac_ext >&5
  5571. # Passes both tests.
  5572. ac_preproc_ok=:
  5573. break
  5574. fi
  5575. rm -f conftest.err conftest.$ac_ext
  5576. done
  5577. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5578. rm -f conftest.err conftest.$ac_ext
  5579. if $ac_preproc_ok; then
  5580. break
  5581. fi
  5582. done
  5583. ac_cv_prog_CXXCPP=$CXXCPP
  5584. fi
  5585. CXXCPP=$ac_cv_prog_CXXCPP
  5586. else
  5587. ac_cv_prog_CXXCPP=$CXXCPP
  5588. fi
  5589. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5590. echo "${ECHO_T}$CXXCPP" >&6; }
  5591. ac_preproc_ok=false
  5592. for ac_cxx_preproc_warn_flag in '' yes
  5593. do
  5594. # Use a header file that comes with gcc, so configuring glibc
  5595. # with a fresh cross-compiler works.
  5596. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5597. # <limits.h> exists even on freestanding compilers.
  5598. # On the NeXT, cc -E runs the code through the compiler's parser,
  5599. # not just through cpp. "Syntax error" is here to catch this case.
  5600. cat >conftest.$ac_ext <<_ACEOF
  5601. /* confdefs.h. */
  5602. _ACEOF
  5603. cat confdefs.h >>conftest.$ac_ext
  5604. cat >>conftest.$ac_ext <<_ACEOF
  5605. /* end confdefs.h. */
  5606. #ifdef __STDC__
  5607. # include <limits.h>
  5608. #else
  5609. # include <assert.h>
  5610. #endif
  5611. Syntax error
  5612. _ACEOF
  5613. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5614. case "(($ac_try" in
  5615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5616. *) ac_try_echo=$ac_try;;
  5617. esac
  5618. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5619. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5620. ac_status=$?
  5621. grep -v '^ *+' conftest.er1 >conftest.err
  5622. rm -f conftest.er1
  5623. cat conftest.err >&5
  5624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5625. (exit $ac_status); } >/dev/null && {
  5626. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5627. test ! -s conftest.err
  5628. }; then
  5629. :
  5630. else
  5631. echo "$as_me: failed program was:" >&5
  5632. sed 's/^/| /' conftest.$ac_ext >&5
  5633. # Broken: fails on valid input.
  5634. continue
  5635. fi
  5636. rm -f conftest.err conftest.$ac_ext
  5637. # OK, works on sane cases. Now check whether nonexistent headers
  5638. # can be detected and how.
  5639. cat >conftest.$ac_ext <<_ACEOF
  5640. /* confdefs.h. */
  5641. _ACEOF
  5642. cat confdefs.h >>conftest.$ac_ext
  5643. cat >>conftest.$ac_ext <<_ACEOF
  5644. /* end confdefs.h. */
  5645. #include <ac_nonexistent.h>
  5646. _ACEOF
  5647. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5648. case "(($ac_try" in
  5649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5650. *) ac_try_echo=$ac_try;;
  5651. esac
  5652. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5653. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5654. ac_status=$?
  5655. grep -v '^ *+' conftest.er1 >conftest.err
  5656. rm -f conftest.er1
  5657. cat conftest.err >&5
  5658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5659. (exit $ac_status); } >/dev/null && {
  5660. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5661. test ! -s conftest.err
  5662. }; then
  5663. # Broken: success on invalid input.
  5664. continue
  5665. else
  5666. echo "$as_me: failed program was:" >&5
  5667. sed 's/^/| /' conftest.$ac_ext >&5
  5668. # Passes both tests.
  5669. ac_preproc_ok=:
  5670. break
  5671. fi
  5672. rm -f conftest.err conftest.$ac_ext
  5673. done
  5674. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5675. rm -f conftest.err conftest.$ac_ext
  5676. if $ac_preproc_ok; then
  5677. :
  5678. else
  5679. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5680. See \`config.log' for more details." >&5
  5681. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5682. See \`config.log' for more details." >&2;}
  5683. { (exit 1); exit 1; }; }
  5684. fi
  5685. ac_ext=cpp
  5686. ac_cpp='$CXXCPP $CPPFLAGS'
  5687. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5688. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5689. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5690. fi
  5691. ac_ext=f
  5692. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  5693. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5694. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  5695. if test -n "$ac_tool_prefix"; then
  5696. 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
  5697. do
  5698. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5699. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5700. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5701. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5702. if test "${ac_cv_prog_F77+set}" = set; then
  5703. echo $ECHO_N "(cached) $ECHO_C" >&6
  5704. else
  5705. if test -n "$F77"; then
  5706. ac_cv_prog_F77="$F77" # Let the user override the test.
  5707. else
  5708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5709. for as_dir in $PATH
  5710. do
  5711. IFS=$as_save_IFS
  5712. test -z "$as_dir" && as_dir=.
  5713. for ac_exec_ext in '' $ac_executable_extensions; do
  5714. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5715. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  5716. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5717. break 2
  5718. fi
  5719. done
  5720. done
  5721. IFS=$as_save_IFS
  5722. fi
  5723. fi
  5724. F77=$ac_cv_prog_F77
  5725. if test -n "$F77"; then
  5726. { echo "$as_me:$LINENO: result: $F77" >&5
  5727. echo "${ECHO_T}$F77" >&6; }
  5728. else
  5729. { echo "$as_me:$LINENO: result: no" >&5
  5730. echo "${ECHO_T}no" >&6; }
  5731. fi
  5732. test -n "$F77" && break
  5733. done
  5734. fi
  5735. if test -z "$F77"; then
  5736. ac_ct_F77=$F77
  5737. 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
  5738. do
  5739. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5740. set dummy $ac_prog; ac_word=$2
  5741. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5742. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5743. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  5744. echo $ECHO_N "(cached) $ECHO_C" >&6
  5745. else
  5746. if test -n "$ac_ct_F77"; then
  5747. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  5748. else
  5749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5750. for as_dir in $PATH
  5751. do
  5752. IFS=$as_save_IFS
  5753. test -z "$as_dir" && as_dir=.
  5754. for ac_exec_ext in '' $ac_executable_extensions; do
  5755. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5756. ac_cv_prog_ac_ct_F77="$ac_prog"
  5757. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5758. break 2
  5759. fi
  5760. done
  5761. done
  5762. IFS=$as_save_IFS
  5763. fi
  5764. fi
  5765. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  5766. if test -n "$ac_ct_F77"; then
  5767. { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  5768. echo "${ECHO_T}$ac_ct_F77" >&6; }
  5769. else
  5770. { echo "$as_me:$LINENO: result: no" >&5
  5771. echo "${ECHO_T}no" >&6; }
  5772. fi
  5773. test -n "$ac_ct_F77" && break
  5774. done
  5775. if test "x$ac_ct_F77" = x; then
  5776. F77=""
  5777. else
  5778. case $cross_compiling:$ac_tool_warned in
  5779. yes:)
  5780. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5781. whose name does not start with the host triplet. If you think this
  5782. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5783. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5784. whose name does not start with the host triplet. If you think this
  5785. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5786. ac_tool_warned=yes ;;
  5787. esac
  5788. F77=$ac_ct_F77
  5789. fi
  5790. fi
  5791. # Provide some information about the compiler.
  5792. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  5793. ac_compiler=`set X $ac_compile; echo $2`
  5794. { (ac_try="$ac_compiler --version >&5"
  5795. case "(($ac_try" in
  5796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5797. *) ac_try_echo=$ac_try;;
  5798. esac
  5799. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5800. (eval "$ac_compiler --version >&5") 2>&5
  5801. ac_status=$?
  5802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5803. (exit $ac_status); }
  5804. { (ac_try="$ac_compiler -v >&5"
  5805. case "(($ac_try" in
  5806. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5807. *) ac_try_echo=$ac_try;;
  5808. esac
  5809. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5810. (eval "$ac_compiler -v >&5") 2>&5
  5811. ac_status=$?
  5812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5813. (exit $ac_status); }
  5814. { (ac_try="$ac_compiler -V >&5"
  5815. case "(($ac_try" in
  5816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5817. *) ac_try_echo=$ac_try;;
  5818. esac
  5819. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5820. (eval "$ac_compiler -V >&5") 2>&5
  5821. ac_status=$?
  5822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5823. (exit $ac_status); }
  5824. rm -f a.out
  5825. # If we don't use `.F' as extension, the preprocessor is not run on the
  5826. # input file. (Note that this only needs to work for GNU compilers.)
  5827. ac_save_ext=$ac_ext
  5828. ac_ext=F
  5829. { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5830. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  5831. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5832. echo $ECHO_N "(cached) $ECHO_C" >&6
  5833. else
  5834. cat >conftest.$ac_ext <<_ACEOF
  5835. program main
  5836. #ifndef __GNUC__
  5837. choke me
  5838. #endif
  5839. end
  5840. _ACEOF
  5841. rm -f conftest.$ac_objext
  5842. if { (ac_try="$ac_compile"
  5843. case "(($ac_try" in
  5844. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5845. *) ac_try_echo=$ac_try;;
  5846. esac
  5847. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5848. (eval "$ac_compile") 2>conftest.er1
  5849. ac_status=$?
  5850. grep -v '^ *+' conftest.er1 >conftest.err
  5851. rm -f conftest.er1
  5852. cat conftest.err >&5
  5853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5854. (exit $ac_status); } && {
  5855. test -z "$ac_f77_werror_flag" ||
  5856. test ! -s conftest.err
  5857. } && test -s conftest.$ac_objext; then
  5858. ac_compiler_gnu=yes
  5859. else
  5860. echo "$as_me: failed program was:" >&5
  5861. sed 's/^/| /' conftest.$ac_ext >&5
  5862. ac_compiler_gnu=no
  5863. fi
  5864. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5865. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5866. fi
  5867. { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5868. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  5869. ac_ext=$ac_save_ext
  5870. ac_test_FFLAGS=${FFLAGS+set}
  5871. ac_save_FFLAGS=$FFLAGS
  5872. FFLAGS=
  5873. { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5874. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  5875. if test "${ac_cv_prog_f77_g+set}" = set; then
  5876. echo $ECHO_N "(cached) $ECHO_C" >&6
  5877. else
  5878. FFLAGS=-g
  5879. cat >conftest.$ac_ext <<_ACEOF
  5880. program main
  5881. end
  5882. _ACEOF
  5883. rm -f conftest.$ac_objext
  5884. if { (ac_try="$ac_compile"
  5885. case "(($ac_try" in
  5886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5887. *) ac_try_echo=$ac_try;;
  5888. esac
  5889. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5890. (eval "$ac_compile") 2>conftest.er1
  5891. ac_status=$?
  5892. grep -v '^ *+' conftest.er1 >conftest.err
  5893. rm -f conftest.er1
  5894. cat conftest.err >&5
  5895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5896. (exit $ac_status); } && {
  5897. test -z "$ac_f77_werror_flag" ||
  5898. test ! -s conftest.err
  5899. } && test -s conftest.$ac_objext; then
  5900. ac_cv_prog_f77_g=yes
  5901. else
  5902. echo "$as_me: failed program was:" >&5
  5903. sed 's/^/| /' conftest.$ac_ext >&5
  5904. ac_cv_prog_f77_g=no
  5905. fi
  5906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5907. fi
  5908. { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5909. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  5910. if test "$ac_test_FFLAGS" = set; then
  5911. FFLAGS=$ac_save_FFLAGS
  5912. elif test $ac_cv_prog_f77_g = yes; then
  5913. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5914. FFLAGS="-g -O2"
  5915. else
  5916. FFLAGS="-g"
  5917. fi
  5918. else
  5919. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5920. FFLAGS="-O2"
  5921. else
  5922. FFLAGS=
  5923. fi
  5924. fi
  5925. G77=`test $ac_compiler_gnu = yes && echo yes`
  5926. ac_ext=c
  5927. ac_cpp='$CPP $CPPFLAGS'
  5928. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5929. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5930. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5931. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5932. # find the maximum length of command line arguments
  5933. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5934. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  5935. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5936. echo $ECHO_N "(cached) $ECHO_C" >&6
  5937. else
  5938. i=0
  5939. teststring="ABCD"
  5940. case $build_os in
  5941. msdosdjgpp*)
  5942. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5943. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5944. # during glob expansion). Even if it were fixed, the result of this
  5945. # check would be larger than it should be.
  5946. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5947. ;;
  5948. gnu*)
  5949. # Under GNU Hurd, this test is not required because there is
  5950. # no limit to the length of command line arguments.
  5951. # Libtool will interpret -1 as no limit whatsoever
  5952. lt_cv_sys_max_cmd_len=-1;
  5953. ;;
  5954. cygwin* | mingw*)
  5955. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5956. # about 5 minutes as the teststring grows exponentially.
  5957. # Worse, since 9x/ME are not pre-emptively multitasking,
  5958. # you end up with a "frozen" computer, even though with patience
  5959. # the test eventually succeeds (with a max line length of 256k).
  5960. # Instead, let's just punt: use the minimum linelength reported by
  5961. # all of the supported platforms: 8192 (on NT/2K/XP).
  5962. lt_cv_sys_max_cmd_len=8192;
  5963. ;;
  5964. amigaos*)
  5965. # On AmigaOS with pdksh, this test takes hours, literally.
  5966. # So we just punt and use a minimum line length of 8192.
  5967. lt_cv_sys_max_cmd_len=8192;
  5968. ;;
  5969. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5970. # This has been around since 386BSD, at least. Likely further.
  5971. if test -x /sbin/sysctl; then
  5972. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5973. elif test -x /usr/sbin/sysctl; then
  5974. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5975. else
  5976. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5977. fi
  5978. # And add a safety zone
  5979. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5980. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5981. ;;
  5982. interix*)
  5983. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5984. lt_cv_sys_max_cmd_len=196608
  5985. ;;
  5986. osf*)
  5987. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5988. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5989. # nice to cause kernel panics so lets avoid the loop below.
  5990. # First set a reasonable default.
  5991. lt_cv_sys_max_cmd_len=16384
  5992. #
  5993. if test -x /sbin/sysconfig; then
  5994. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5995. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5996. esac
  5997. fi
  5998. ;;
  5999. sco3.2v5*)
  6000. lt_cv_sys_max_cmd_len=102400
  6001. ;;
  6002. sysv5* | sco5v6* | sysv4.2uw2*)
  6003. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  6004. if test -n "$kargmax"; then
  6005. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  6006. else
  6007. lt_cv_sys_max_cmd_len=32768
  6008. fi
  6009. ;;
  6010. *)
  6011. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  6012. if test -n "$lt_cv_sys_max_cmd_len"; then
  6013. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6014. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6015. else
  6016. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  6017. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  6018. = "XX$teststring") >/dev/null 2>&1 &&
  6019. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  6020. lt_cv_sys_max_cmd_len=$new_result &&
  6021. test $i != 17 # 1/2 MB should be enough
  6022. do
  6023. i=`expr $i + 1`
  6024. teststring=$teststring$teststring
  6025. done
  6026. teststring=
  6027. # Add a significant safety factor because C++ compilers can tack on massive
  6028. # amounts of additional arguments before passing them to the linker.
  6029. # It appears as though 1/2 is a usable value.
  6030. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6031. fi
  6032. ;;
  6033. esac
  6034. fi
  6035. if test -n $lt_cv_sys_max_cmd_len ; then
  6036. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  6037. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  6038. else
  6039. { echo "$as_me:$LINENO: result: none" >&5
  6040. echo "${ECHO_T}none" >&6; }
  6041. fi
  6042. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6043. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  6044. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  6045. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  6046. echo $ECHO_N "(cached) $ECHO_C" >&6
  6047. else
  6048. # These are sane defaults that work on at least a few old systems.
  6049. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6050. # Character class describing NM global symbol codes.
  6051. symcode='[BCDEGRST]'
  6052. # Regexp to match symbols that can be accessed directly from C.
  6053. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6054. # Transform an extracted symbol line into a proper C declaration
  6055. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  6056. # Transform an extracted symbol line into symbol name and symbol address
  6057. 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'"
  6058. # Define system-specific variables.
  6059. case $host_os in
  6060. aix*)
  6061. symcode='[BCDT]'
  6062. ;;
  6063. cygwin* | mingw* | pw32*)
  6064. symcode='[ABCDGISTW]'
  6065. ;;
  6066. hpux*) # Its linker distinguishes data from code symbols
  6067. if test "$host_cpu" = ia64; then
  6068. symcode='[ABCDEGRST]'
  6069. fi
  6070. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6071. 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'"
  6072. ;;
  6073. linux* | k*bsd*-gnu)
  6074. if test "$host_cpu" = ia64; then
  6075. symcode='[ABCDGIRSTW]'
  6076. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6077. 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'"
  6078. fi
  6079. ;;
  6080. irix* | nonstopux*)
  6081. symcode='[BCDEGRST]'
  6082. ;;
  6083. osf*)
  6084. symcode='[BCDEGQRST]'
  6085. ;;
  6086. solaris*)
  6087. symcode='[BDRT]'
  6088. ;;
  6089. sco3.2v5*)
  6090. symcode='[DT]'
  6091. ;;
  6092. sysv4.2uw2*)
  6093. symcode='[DT]'
  6094. ;;
  6095. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6096. symcode='[ABDT]'
  6097. ;;
  6098. sysv4)
  6099. symcode='[DFNSTU]'
  6100. ;;
  6101. esac
  6102. # Handle CRLF in mingw tool chain
  6103. opt_cr=
  6104. case $build_os in
  6105. mingw*)
  6106. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6107. ;;
  6108. esac
  6109. # If we're using GNU nm, then use its standard symbol codes.
  6110. case `$NM -V 2>&1` in
  6111. *GNU* | *'with BFD'*)
  6112. symcode='[ABCDGIRSTW]' ;;
  6113. esac
  6114. # Try without a prefix undercore, then with it.
  6115. for ac_symprfx in "" "_"; do
  6116. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6117. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6118. # Write the raw and C identifiers.
  6119. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6120. # Check to see that the pipe works correctly.
  6121. pipe_works=no
  6122. rm -f conftest*
  6123. cat > conftest.$ac_ext <<EOF
  6124. #ifdef __cplusplus
  6125. extern "C" {
  6126. #endif
  6127. char nm_test_var;
  6128. void nm_test_func(){}
  6129. #ifdef __cplusplus
  6130. }
  6131. #endif
  6132. int main(){nm_test_var='a';nm_test_func();return(0);}
  6133. EOF
  6134. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6135. (eval $ac_compile) 2>&5
  6136. ac_status=$?
  6137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6138. (exit $ac_status); }; then
  6139. # Now try to grab the symbols.
  6140. nlist=conftest.nm
  6141. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  6142. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  6143. ac_status=$?
  6144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6145. (exit $ac_status); } && test -s "$nlist"; then
  6146. # Try sorting and uniquifying the output.
  6147. if sort "$nlist" | uniq > "$nlist"T; then
  6148. mv -f "$nlist"T "$nlist"
  6149. else
  6150. rm -f "$nlist"T
  6151. fi
  6152. # Make sure that we snagged all the symbols we need.
  6153. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  6154. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  6155. cat <<EOF > conftest.$ac_ext
  6156. #ifdef __cplusplus
  6157. extern "C" {
  6158. #endif
  6159. EOF
  6160. # Now generate the symbol file.
  6161. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  6162. cat <<EOF >> conftest.$ac_ext
  6163. #if defined (__STDC__) && __STDC__
  6164. # define lt_ptr_t void *
  6165. #else
  6166. # define lt_ptr_t char *
  6167. # define const
  6168. #endif
  6169. /* The mapping between symbol names and symbols. */
  6170. const struct {
  6171. const char *name;
  6172. lt_ptr_t address;
  6173. }
  6174. lt_preloaded_symbols[] =
  6175. {
  6176. EOF
  6177. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  6178. cat <<\EOF >> conftest.$ac_ext
  6179. {0, (lt_ptr_t) 0}
  6180. };
  6181. #ifdef __cplusplus
  6182. }
  6183. #endif
  6184. EOF
  6185. # Now try linking the two files.
  6186. mv conftest.$ac_objext conftstm.$ac_objext
  6187. lt_save_LIBS="$LIBS"
  6188. lt_save_CFLAGS="$CFLAGS"
  6189. LIBS="conftstm.$ac_objext"
  6190. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6191. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6192. (eval $ac_link) 2>&5
  6193. ac_status=$?
  6194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6195. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  6196. pipe_works=yes
  6197. fi
  6198. LIBS="$lt_save_LIBS"
  6199. CFLAGS="$lt_save_CFLAGS"
  6200. else
  6201. echo "cannot find nm_test_func in $nlist" >&5
  6202. fi
  6203. else
  6204. echo "cannot find nm_test_var in $nlist" >&5
  6205. fi
  6206. else
  6207. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6208. fi
  6209. else
  6210. echo "$progname: failed program was:" >&5
  6211. cat conftest.$ac_ext >&5
  6212. fi
  6213. rm -rf conftest* conftst*
  6214. # Do not use the global_symbol_pipe unless it works.
  6215. if test "$pipe_works" = yes; then
  6216. break
  6217. else
  6218. lt_cv_sys_global_symbol_pipe=
  6219. fi
  6220. done
  6221. fi
  6222. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6223. lt_cv_sys_global_symbol_to_cdecl=
  6224. fi
  6225. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6226. { echo "$as_me:$LINENO: result: failed" >&5
  6227. echo "${ECHO_T}failed" >&6; }
  6228. else
  6229. { echo "$as_me:$LINENO: result: ok" >&5
  6230. echo "${ECHO_T}ok" >&6; }
  6231. fi
  6232. { echo "$as_me:$LINENO: checking for objdir" >&5
  6233. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  6234. if test "${lt_cv_objdir+set}" = set; then
  6235. echo $ECHO_N "(cached) $ECHO_C" >&6
  6236. else
  6237. rm -f .libs 2>/dev/null
  6238. mkdir .libs 2>/dev/null
  6239. if test -d .libs; then
  6240. lt_cv_objdir=.libs
  6241. else
  6242. # MS-DOS does not allow filenames that begin with a dot.
  6243. lt_cv_objdir=_libs
  6244. fi
  6245. rmdir .libs 2>/dev/null
  6246. fi
  6247. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6248. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  6249. objdir=$lt_cv_objdir
  6250. case $host_os in
  6251. aix3*)
  6252. # AIX sometimes has problems with the GCC collect2 program. For some
  6253. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6254. # vanish in a puff of smoke.
  6255. if test "X${COLLECT_NAMES+set}" != Xset; then
  6256. COLLECT_NAMES=
  6257. export COLLECT_NAMES
  6258. fi
  6259. ;;
  6260. esac
  6261. # Sed substitution that helps us do robust quoting. It backslashifies
  6262. # metacharacters that are still active within double-quoted strings.
  6263. Xsed='sed -e 1s/^X//'
  6264. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  6265. # Same as above, but do not quote variable references.
  6266. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  6267. # Sed substitution to delay expansion of an escaped shell variable in a
  6268. # double_quote_subst'ed string.
  6269. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6270. # Sed substitution to avoid accidental globbing in evaled expressions
  6271. no_glob_subst='s/\*/\\\*/g'
  6272. # Constants:
  6273. rm="rm -f"
  6274. # Global variables:
  6275. default_ofile=libtool
  6276. can_build_shared=yes
  6277. # All known linkers require a `.a' archive for static linking (except MSVC,
  6278. # which needs '.lib').
  6279. libext=a
  6280. ltmain="$ac_aux_dir/ltmain.sh"
  6281. ofile="$default_ofile"
  6282. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6283. if test -n "$ac_tool_prefix"; then
  6284. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6285. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6286. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6287. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6288. if test "${ac_cv_prog_AR+set}" = set; then
  6289. echo $ECHO_N "(cached) $ECHO_C" >&6
  6290. else
  6291. if test -n "$AR"; then
  6292. ac_cv_prog_AR="$AR" # Let the user override the test.
  6293. else
  6294. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6295. for as_dir in $PATH
  6296. do
  6297. IFS=$as_save_IFS
  6298. test -z "$as_dir" && as_dir=.
  6299. for ac_exec_ext in '' $ac_executable_extensions; do
  6300. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6301. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6302. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6303. break 2
  6304. fi
  6305. done
  6306. done
  6307. IFS=$as_save_IFS
  6308. fi
  6309. fi
  6310. AR=$ac_cv_prog_AR
  6311. if test -n "$AR"; then
  6312. { echo "$as_me:$LINENO: result: $AR" >&5
  6313. echo "${ECHO_T}$AR" >&6; }
  6314. else
  6315. { echo "$as_me:$LINENO: result: no" >&5
  6316. echo "${ECHO_T}no" >&6; }
  6317. fi
  6318. fi
  6319. if test -z "$ac_cv_prog_AR"; then
  6320. ac_ct_AR=$AR
  6321. # Extract the first word of "ar", so it can be a program name with args.
  6322. set dummy ar; ac_word=$2
  6323. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6324. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6325. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  6326. echo $ECHO_N "(cached) $ECHO_C" >&6
  6327. else
  6328. if test -n "$ac_ct_AR"; then
  6329. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6330. else
  6331. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6332. for as_dir in $PATH
  6333. do
  6334. IFS=$as_save_IFS
  6335. test -z "$as_dir" && as_dir=.
  6336. for ac_exec_ext in '' $ac_executable_extensions; do
  6337. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6338. ac_cv_prog_ac_ct_AR="ar"
  6339. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6340. break 2
  6341. fi
  6342. done
  6343. done
  6344. IFS=$as_save_IFS
  6345. fi
  6346. fi
  6347. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6348. if test -n "$ac_ct_AR"; then
  6349. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  6350. echo "${ECHO_T}$ac_ct_AR" >&6; }
  6351. else
  6352. { echo "$as_me:$LINENO: result: no" >&5
  6353. echo "${ECHO_T}no" >&6; }
  6354. fi
  6355. if test "x$ac_ct_AR" = x; then
  6356. AR="false"
  6357. else
  6358. case $cross_compiling:$ac_tool_warned in
  6359. yes:)
  6360. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6361. whose name does not start with the host triplet. If you think this
  6362. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6363. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6364. whose name does not start with the host triplet. If you think this
  6365. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6366. ac_tool_warned=yes ;;
  6367. esac
  6368. AR=$ac_ct_AR
  6369. fi
  6370. else
  6371. AR="$ac_cv_prog_AR"
  6372. fi
  6373. if test -n "$ac_tool_prefix"; then
  6374. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6375. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6376. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6377. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6378. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6379. echo $ECHO_N "(cached) $ECHO_C" >&6
  6380. else
  6381. if test -n "$RANLIB"; then
  6382. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6383. else
  6384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6385. for as_dir in $PATH
  6386. do
  6387. IFS=$as_save_IFS
  6388. test -z "$as_dir" && as_dir=.
  6389. for ac_exec_ext in '' $ac_executable_extensions; do
  6390. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6391. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6392. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6393. break 2
  6394. fi
  6395. done
  6396. done
  6397. IFS=$as_save_IFS
  6398. fi
  6399. fi
  6400. RANLIB=$ac_cv_prog_RANLIB
  6401. if test -n "$RANLIB"; then
  6402. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  6403. echo "${ECHO_T}$RANLIB" >&6; }
  6404. else
  6405. { echo "$as_me:$LINENO: result: no" >&5
  6406. echo "${ECHO_T}no" >&6; }
  6407. fi
  6408. fi
  6409. if test -z "$ac_cv_prog_RANLIB"; then
  6410. ac_ct_RANLIB=$RANLIB
  6411. # Extract the first word of "ranlib", so it can be a program name with args.
  6412. set dummy ranlib; ac_word=$2
  6413. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6414. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6415. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6416. echo $ECHO_N "(cached) $ECHO_C" >&6
  6417. else
  6418. if test -n "$ac_ct_RANLIB"; then
  6419. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6420. else
  6421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6422. for as_dir in $PATH
  6423. do
  6424. IFS=$as_save_IFS
  6425. test -z "$as_dir" && as_dir=.
  6426. for ac_exec_ext in '' $ac_executable_extensions; do
  6427. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6428. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6429. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6430. break 2
  6431. fi
  6432. done
  6433. done
  6434. IFS=$as_save_IFS
  6435. fi
  6436. fi
  6437. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6438. if test -n "$ac_ct_RANLIB"; then
  6439. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6440. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  6441. else
  6442. { echo "$as_me:$LINENO: result: no" >&5
  6443. echo "${ECHO_T}no" >&6; }
  6444. fi
  6445. if test "x$ac_ct_RANLIB" = x; then
  6446. RANLIB=":"
  6447. else
  6448. case $cross_compiling:$ac_tool_warned in
  6449. yes:)
  6450. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6451. whose name does not start with the host triplet. If you think this
  6452. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6453. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6454. whose name does not start with the host triplet. If you think this
  6455. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6456. ac_tool_warned=yes ;;
  6457. esac
  6458. RANLIB=$ac_ct_RANLIB
  6459. fi
  6460. else
  6461. RANLIB="$ac_cv_prog_RANLIB"
  6462. fi
  6463. if test -n "$ac_tool_prefix"; then
  6464. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6465. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6466. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6467. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6468. if test "${ac_cv_prog_STRIP+set}" = set; then
  6469. echo $ECHO_N "(cached) $ECHO_C" >&6
  6470. else
  6471. if test -n "$STRIP"; then
  6472. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6473. else
  6474. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6475. for as_dir in $PATH
  6476. do
  6477. IFS=$as_save_IFS
  6478. test -z "$as_dir" && as_dir=.
  6479. for ac_exec_ext in '' $ac_executable_extensions; do
  6480. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6481. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6482. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6483. break 2
  6484. fi
  6485. done
  6486. done
  6487. IFS=$as_save_IFS
  6488. fi
  6489. fi
  6490. STRIP=$ac_cv_prog_STRIP
  6491. if test -n "$STRIP"; then
  6492. { echo "$as_me:$LINENO: result: $STRIP" >&5
  6493. echo "${ECHO_T}$STRIP" >&6; }
  6494. else
  6495. { echo "$as_me:$LINENO: result: no" >&5
  6496. echo "${ECHO_T}no" >&6; }
  6497. fi
  6498. fi
  6499. if test -z "$ac_cv_prog_STRIP"; then
  6500. ac_ct_STRIP=$STRIP
  6501. # Extract the first word of "strip", so it can be a program name with args.
  6502. set dummy strip; ac_word=$2
  6503. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6504. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6505. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6506. echo $ECHO_N "(cached) $ECHO_C" >&6
  6507. else
  6508. if test -n "$ac_ct_STRIP"; then
  6509. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6510. else
  6511. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6512. for as_dir in $PATH
  6513. do
  6514. IFS=$as_save_IFS
  6515. test -z "$as_dir" && as_dir=.
  6516. for ac_exec_ext in '' $ac_executable_extensions; do
  6517. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6518. ac_cv_prog_ac_ct_STRIP="strip"
  6519. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6520. break 2
  6521. fi
  6522. done
  6523. done
  6524. IFS=$as_save_IFS
  6525. fi
  6526. fi
  6527. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6528. if test -n "$ac_ct_STRIP"; then
  6529. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6530. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  6531. else
  6532. { echo "$as_me:$LINENO: result: no" >&5
  6533. echo "${ECHO_T}no" >&6; }
  6534. fi
  6535. if test "x$ac_ct_STRIP" = x; then
  6536. STRIP=":"
  6537. else
  6538. case $cross_compiling:$ac_tool_warned in
  6539. yes:)
  6540. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6541. whose name does not start with the host triplet. If you think this
  6542. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6543. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6544. whose name does not start with the host triplet. If you think this
  6545. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6546. ac_tool_warned=yes ;;
  6547. esac
  6548. STRIP=$ac_ct_STRIP
  6549. fi
  6550. else
  6551. STRIP="$ac_cv_prog_STRIP"
  6552. fi
  6553. old_CC="$CC"
  6554. old_CFLAGS="$CFLAGS"
  6555. # Set sane defaults for various variables
  6556. test -z "$AR" && AR=ar
  6557. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6558. test -z "$AS" && AS=as
  6559. test -z "$CC" && CC=cc
  6560. test -z "$LTCC" && LTCC=$CC
  6561. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6562. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6563. test -z "$LD" && LD=ld
  6564. test -z "$LN_S" && LN_S="ln -s"
  6565. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6566. test -z "$NM" && NM=nm
  6567. test -z "$SED" && SED=sed
  6568. test -z "$OBJDUMP" && OBJDUMP=objdump
  6569. test -z "$RANLIB" && RANLIB=:
  6570. test -z "$STRIP" && STRIP=:
  6571. test -z "$ac_objext" && ac_objext=o
  6572. # Determine commands to create old-style static archives.
  6573. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6574. old_postinstall_cmds='chmod 644 $oldlib'
  6575. old_postuninstall_cmds=
  6576. if test -n "$RANLIB"; then
  6577. case $host_os in
  6578. openbsd*)
  6579. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6580. ;;
  6581. *)
  6582. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6583. ;;
  6584. esac
  6585. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6586. fi
  6587. for cc_temp in $compiler""; do
  6588. case $cc_temp in
  6589. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6590. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6591. \-*) ;;
  6592. *) break;;
  6593. esac
  6594. done
  6595. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6596. # Only perform the check for file, if the check method requires it
  6597. case $deplibs_check_method in
  6598. file_magic*)
  6599. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6600. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6601. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  6602. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6603. echo $ECHO_N "(cached) $ECHO_C" >&6
  6604. else
  6605. case $MAGIC_CMD in
  6606. [\\/*] | ?:[\\/]*)
  6607. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6608. ;;
  6609. *)
  6610. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6611. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6612. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6613. for ac_dir in $ac_dummy; do
  6614. IFS="$lt_save_ifs"
  6615. test -z "$ac_dir" && ac_dir=.
  6616. if test -f $ac_dir/${ac_tool_prefix}file; then
  6617. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6618. if test -n "$file_magic_test_file"; then
  6619. case $deplibs_check_method in
  6620. "file_magic "*)
  6621. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6622. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6623. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6624. $EGREP "$file_magic_regex" > /dev/null; then
  6625. :
  6626. else
  6627. cat <<EOF 1>&2
  6628. *** Warning: the command libtool uses to detect shared libraries,
  6629. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6630. *** The result is that libtool may fail to recognize shared libraries
  6631. *** as such. This will affect the creation of libtool libraries that
  6632. *** depend on shared libraries, but programs linked with such libtool
  6633. *** libraries will work regardless of this problem. Nevertheless, you
  6634. *** may want to report the problem to your system manager and/or to
  6635. *** bug-libtool@gnu.org
  6636. EOF
  6637. fi ;;
  6638. esac
  6639. fi
  6640. break
  6641. fi
  6642. done
  6643. IFS="$lt_save_ifs"
  6644. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6645. ;;
  6646. esac
  6647. fi
  6648. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6649. if test -n "$MAGIC_CMD"; then
  6650. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6651. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6652. else
  6653. { echo "$as_me:$LINENO: result: no" >&5
  6654. echo "${ECHO_T}no" >&6; }
  6655. fi
  6656. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6657. if test -n "$ac_tool_prefix"; then
  6658. { echo "$as_me:$LINENO: checking for file" >&5
  6659. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  6660. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6661. echo $ECHO_N "(cached) $ECHO_C" >&6
  6662. else
  6663. case $MAGIC_CMD in
  6664. [\\/*] | ?:[\\/]*)
  6665. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6666. ;;
  6667. *)
  6668. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6669. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6670. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6671. for ac_dir in $ac_dummy; do
  6672. IFS="$lt_save_ifs"
  6673. test -z "$ac_dir" && ac_dir=.
  6674. if test -f $ac_dir/file; then
  6675. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6676. if test -n "$file_magic_test_file"; then
  6677. case $deplibs_check_method in
  6678. "file_magic "*)
  6679. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6680. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6681. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6682. $EGREP "$file_magic_regex" > /dev/null; then
  6683. :
  6684. else
  6685. cat <<EOF 1>&2
  6686. *** Warning: the command libtool uses to detect shared libraries,
  6687. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6688. *** The result is that libtool may fail to recognize shared libraries
  6689. *** as such. This will affect the creation of libtool libraries that
  6690. *** depend on shared libraries, but programs linked with such libtool
  6691. *** libraries will work regardless of this problem. Nevertheless, you
  6692. *** may want to report the problem to your system manager and/or to
  6693. *** bug-libtool@gnu.org
  6694. EOF
  6695. fi ;;
  6696. esac
  6697. fi
  6698. break
  6699. fi
  6700. done
  6701. IFS="$lt_save_ifs"
  6702. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6703. ;;
  6704. esac
  6705. fi
  6706. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6707. if test -n "$MAGIC_CMD"; then
  6708. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6709. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6710. else
  6711. { echo "$as_me:$LINENO: result: no" >&5
  6712. echo "${ECHO_T}no" >&6; }
  6713. fi
  6714. else
  6715. MAGIC_CMD=:
  6716. fi
  6717. fi
  6718. fi
  6719. ;;
  6720. esac
  6721. case $host_os in
  6722. rhapsody* | darwin*)
  6723. if test -n "$ac_tool_prefix"; then
  6724. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6725. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6726. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6727. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6728. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  6729. echo $ECHO_N "(cached) $ECHO_C" >&6
  6730. else
  6731. if test -n "$DSYMUTIL"; then
  6732. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6733. else
  6734. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6735. for as_dir in $PATH
  6736. do
  6737. IFS=$as_save_IFS
  6738. test -z "$as_dir" && as_dir=.
  6739. for ac_exec_ext in '' $ac_executable_extensions; do
  6740. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6741. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6742. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6743. break 2
  6744. fi
  6745. done
  6746. done
  6747. IFS=$as_save_IFS
  6748. fi
  6749. fi
  6750. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6751. if test -n "$DSYMUTIL"; then
  6752. { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  6753. echo "${ECHO_T}$DSYMUTIL" >&6; }
  6754. else
  6755. { echo "$as_me:$LINENO: result: no" >&5
  6756. echo "${ECHO_T}no" >&6; }
  6757. fi
  6758. fi
  6759. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6760. ac_ct_DSYMUTIL=$DSYMUTIL
  6761. # Extract the first word of "dsymutil", so it can be a program name with args.
  6762. set dummy dsymutil; ac_word=$2
  6763. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6764. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6765. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  6766. echo $ECHO_N "(cached) $ECHO_C" >&6
  6767. else
  6768. if test -n "$ac_ct_DSYMUTIL"; then
  6769. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6770. else
  6771. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6772. for as_dir in $PATH
  6773. do
  6774. IFS=$as_save_IFS
  6775. test -z "$as_dir" && as_dir=.
  6776. for ac_exec_ext in '' $ac_executable_extensions; do
  6777. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6778. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6779. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6780. break 2
  6781. fi
  6782. done
  6783. done
  6784. IFS=$as_save_IFS
  6785. fi
  6786. fi
  6787. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6788. if test -n "$ac_ct_DSYMUTIL"; then
  6789. { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  6790. echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
  6791. else
  6792. { echo "$as_me:$LINENO: result: no" >&5
  6793. echo "${ECHO_T}no" >&6; }
  6794. fi
  6795. if test "x$ac_ct_DSYMUTIL" = x; then
  6796. DSYMUTIL=":"
  6797. else
  6798. case $cross_compiling:$ac_tool_warned in
  6799. yes:)
  6800. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6801. whose name does not start with the host triplet. If you think this
  6802. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6803. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6804. whose name does not start with the host triplet. If you think this
  6805. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6806. ac_tool_warned=yes ;;
  6807. esac
  6808. DSYMUTIL=$ac_ct_DSYMUTIL
  6809. fi
  6810. else
  6811. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6812. fi
  6813. if test -n "$ac_tool_prefix"; then
  6814. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6815. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6816. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6817. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6818. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  6819. echo $ECHO_N "(cached) $ECHO_C" >&6
  6820. else
  6821. if test -n "$NMEDIT"; then
  6822. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6823. else
  6824. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6825. for as_dir in $PATH
  6826. do
  6827. IFS=$as_save_IFS
  6828. test -z "$as_dir" && as_dir=.
  6829. for ac_exec_ext in '' $ac_executable_extensions; do
  6830. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6831. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6832. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6833. break 2
  6834. fi
  6835. done
  6836. done
  6837. IFS=$as_save_IFS
  6838. fi
  6839. fi
  6840. NMEDIT=$ac_cv_prog_NMEDIT
  6841. if test -n "$NMEDIT"; then
  6842. { echo "$as_me:$LINENO: result: $NMEDIT" >&5
  6843. echo "${ECHO_T}$NMEDIT" >&6; }
  6844. else
  6845. { echo "$as_me:$LINENO: result: no" >&5
  6846. echo "${ECHO_T}no" >&6; }
  6847. fi
  6848. fi
  6849. if test -z "$ac_cv_prog_NMEDIT"; then
  6850. ac_ct_NMEDIT=$NMEDIT
  6851. # Extract the first word of "nmedit", so it can be a program name with args.
  6852. set dummy nmedit; ac_word=$2
  6853. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6854. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6855. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  6856. echo $ECHO_N "(cached) $ECHO_C" >&6
  6857. else
  6858. if test -n "$ac_ct_NMEDIT"; then
  6859. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6860. else
  6861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6862. for as_dir in $PATH
  6863. do
  6864. IFS=$as_save_IFS
  6865. test -z "$as_dir" && as_dir=.
  6866. for ac_exec_ext in '' $ac_executable_extensions; do
  6867. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6868. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6869. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6870. break 2
  6871. fi
  6872. done
  6873. done
  6874. IFS=$as_save_IFS
  6875. fi
  6876. fi
  6877. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6878. if test -n "$ac_ct_NMEDIT"; then
  6879. { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  6880. echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
  6881. else
  6882. { echo "$as_me:$LINENO: result: no" >&5
  6883. echo "${ECHO_T}no" >&6; }
  6884. fi
  6885. if test "x$ac_ct_NMEDIT" = x; then
  6886. NMEDIT=":"
  6887. else
  6888. case $cross_compiling:$ac_tool_warned in
  6889. yes:)
  6890. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6891. whose name does not start with the host triplet. If you think this
  6892. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6893. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6894. whose name does not start with the host triplet. If you think this
  6895. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6896. ac_tool_warned=yes ;;
  6897. esac
  6898. NMEDIT=$ac_ct_NMEDIT
  6899. fi
  6900. else
  6901. NMEDIT="$ac_cv_prog_NMEDIT"
  6902. fi
  6903. { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  6904. echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
  6905. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  6906. echo $ECHO_N "(cached) $ECHO_C" >&6
  6907. else
  6908. lt_cv_apple_cc_single_mod=no
  6909. if test -z "${LT_MULTI_MODULE}"; then
  6910. # By default we will add the -single_module flag. You can override
  6911. # by either setting the environment variable LT_MULTI_MODULE
  6912. # non-empty at configure time, or by adding -multi_module to the
  6913. # link flags.
  6914. echo "int foo(void){return 1;}" > conftest.c
  6915. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6916. -dynamiclib ${wl}-single_module conftest.c
  6917. if test -f libconftest.dylib; then
  6918. lt_cv_apple_cc_single_mod=yes
  6919. rm -rf libconftest.dylib*
  6920. fi
  6921. rm conftest.c
  6922. fi
  6923. fi
  6924. { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  6925. echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
  6926. { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  6927. echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
  6928. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  6929. echo $ECHO_N "(cached) $ECHO_C" >&6
  6930. else
  6931. lt_cv_ld_exported_symbols_list=no
  6932. save_LDFLAGS=$LDFLAGS
  6933. echo "_main" > conftest.sym
  6934. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6935. cat >conftest.$ac_ext <<_ACEOF
  6936. /* confdefs.h. */
  6937. _ACEOF
  6938. cat confdefs.h >>conftest.$ac_ext
  6939. cat >>conftest.$ac_ext <<_ACEOF
  6940. /* end confdefs.h. */
  6941. int
  6942. main ()
  6943. {
  6944. ;
  6945. return 0;
  6946. }
  6947. _ACEOF
  6948. rm -f conftest.$ac_objext conftest$ac_exeext
  6949. if { (ac_try="$ac_link"
  6950. case "(($ac_try" in
  6951. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6952. *) ac_try_echo=$ac_try;;
  6953. esac
  6954. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6955. (eval "$ac_link") 2>conftest.er1
  6956. ac_status=$?
  6957. grep -v '^ *+' conftest.er1 >conftest.err
  6958. rm -f conftest.er1
  6959. cat conftest.err >&5
  6960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6961. (exit $ac_status); } && {
  6962. test -z "$ac_c_werror_flag" ||
  6963. test ! -s conftest.err
  6964. } && test -s conftest$ac_exeext &&
  6965. $as_test_x conftest$ac_exeext; then
  6966. lt_cv_ld_exported_symbols_list=yes
  6967. else
  6968. echo "$as_me: failed program was:" >&5
  6969. sed 's/^/| /' conftest.$ac_ext >&5
  6970. lt_cv_ld_exported_symbols_list=no
  6971. fi
  6972. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6973. conftest$ac_exeext conftest.$ac_ext
  6974. LDFLAGS="$save_LDFLAGS"
  6975. fi
  6976. { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  6977. echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
  6978. case $host_os in
  6979. rhapsody* | darwin1.[0123])
  6980. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6981. darwin1.*)
  6982. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6983. darwin*)
  6984. # if running on 10.5 or later, the deployment target defaults
  6985. # to the OS version, if on x86, and 10.4, the deployment
  6986. # target defaults to 10.4. Don't you love it?
  6987. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6988. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6989. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6990. 10.[012]*)
  6991. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6992. 10.*)
  6993. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6994. esac
  6995. ;;
  6996. esac
  6997. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6998. _lt_dar_single_mod='$single_module'
  6999. fi
  7000. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7001. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7002. else
  7003. _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  7004. fi
  7005. if test "$DSYMUTIL" != ":"; then
  7006. _lt_dsymutil="~$DSYMUTIL \$lib || :"
  7007. else
  7008. _lt_dsymutil=
  7009. fi
  7010. ;;
  7011. esac
  7012. enable_dlopen=no
  7013. enable_win32_dll=yes
  7014. # Check whether --enable-libtool-lock was given.
  7015. if test "${enable_libtool_lock+set}" = set; then
  7016. enableval=$enable_libtool_lock;
  7017. fi
  7018. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  7019. # Check whether --with-pic was given.
  7020. if test "${with_pic+set}" = set; then
  7021. withval=$with_pic; pic_mode="$withval"
  7022. else
  7023. pic_mode=default
  7024. fi
  7025. test -z "$pic_mode" && pic_mode=default
  7026. # Check if we have a version mismatch between libtool.m4 and ltmain.sh.
  7027. #
  7028. # Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
  7029. # We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
  7030. # calls AC_LIBTOOL_CONFIG and creates libtool.
  7031. #
  7032. { echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
  7033. echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
  7034. if test "x$ltmain" = "x" ; then
  7035. { echo "$as_me:$LINENO: result: no" >&5
  7036. echo "${ECHO_T}no" >&6; }
  7037. { { echo "$as_me:$LINENO: error:
  7038. *** [Gentoo] sanity check failed! ***
  7039. *** \$ltmain is not defined, please check the patch for consistency! ***
  7040. " >&5
  7041. echo "$as_me: error:
  7042. *** [Gentoo] sanity check failed! ***
  7043. *** \$ltmain is not defined, please check the patch for consistency! ***
  7044. " >&2;}
  7045. { (exit 1); exit 1; }; }
  7046. fi
  7047. gentoo_lt_version="1.5.26"
  7048. gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
  7049. if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
  7050. { echo "$as_me:$LINENO: result: no" >&5
  7051. echo "${ECHO_T}no" >&6; }
  7052. { { echo "$as_me:$LINENO: error:
  7053. *** [Gentoo] sanity check failed! ***
  7054. *** libtool.m4 and ltmain.sh have a version mismatch! ***
  7055. *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
  7056. Please run:
  7057. libtoolize --copy --force
  7058. if appropriate, please contact the maintainer of this
  7059. package (or your distribution) for help.
  7060. " >&5
  7061. echo "$as_me: error:
  7062. *** [Gentoo] sanity check failed! ***
  7063. *** libtool.m4 and ltmain.sh have a version mismatch! ***
  7064. *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
  7065. Please run:
  7066. libtoolize --copy --force
  7067. if appropriate, please contact the maintainer of this
  7068. package (or your distribution) for help.
  7069. " >&2;}
  7070. { (exit 1); exit 1; }; }
  7071. else
  7072. { echo "$as_me:$LINENO: result: yes" >&5
  7073. echo "${ECHO_T}yes" >&6; }
  7074. fi
  7075. # Use C for the default configuration in the libtool script
  7076. tagname=
  7077. lt_save_CC="$CC"
  7078. ac_ext=c
  7079. ac_cpp='$CPP $CPPFLAGS'
  7080. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7081. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7082. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7083. # Source file extension for C test sources.
  7084. ac_ext=c
  7085. # Object file extension for compiled C test sources.
  7086. objext=o
  7087. objext=$objext
  7088. # Code to be used in simple compile tests
  7089. lt_simple_compile_test_code="int some_variable = 0;"
  7090. # Code to be used in simple link tests
  7091. lt_simple_link_test_code='int main(){return(0);}'
  7092. # If no C compiler was specified, use CC.
  7093. LTCC=${LTCC-"$CC"}
  7094. # If no C compiler flags were specified, use CFLAGS.
  7095. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7096. # Allow CC to be a program name with arguments.
  7097. compiler=$CC
  7098. # save warnings/boilerplate of simple test code
  7099. ac_outfile=conftest.$ac_objext
  7100. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7101. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7102. _lt_compiler_boilerplate=`cat conftest.err`
  7103. $rm conftest*
  7104. ac_outfile=conftest.$ac_objext
  7105. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7106. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7107. _lt_linker_boilerplate=`cat conftest.err`
  7108. $rm -r conftest*
  7109. lt_prog_compiler_no_builtin_flag=
  7110. if test "$GCC" = yes; then
  7111. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7112. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7113. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  7114. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  7115. echo $ECHO_N "(cached) $ECHO_C" >&6
  7116. else
  7117. lt_cv_prog_compiler_rtti_exceptions=no
  7118. ac_outfile=conftest.$ac_objext
  7119. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7120. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7121. # Insert the option either (1) after the last *FLAGS variable, or
  7122. # (2) before a word containing "conftest.", or (3) at the end.
  7123. # Note that $ac_compile itself does not contain backslashes and begins
  7124. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7125. # The option is referenced via a variable to avoid confusing sed.
  7126. lt_compile=`echo "$ac_compile" | $SED \
  7127. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7128. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7129. -e 's:$: $lt_compiler_flag:'`
  7130. (eval echo "\"\$as_me:7944: $lt_compile\"" >&5)
  7131. (eval "$lt_compile" 2>conftest.err)
  7132. ac_status=$?
  7133. cat conftest.err >&5
  7134. echo "$as_me:7948: \$? = $ac_status" >&5
  7135. if (exit $ac_status) && test -s "$ac_outfile"; then
  7136. # The compiler can only warn and ignore the option if not recognized
  7137. # So say no if there are warnings other than the usual output.
  7138. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7139. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7140. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7141. lt_cv_prog_compiler_rtti_exceptions=yes
  7142. fi
  7143. fi
  7144. $rm conftest*
  7145. fi
  7146. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7147. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7148. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7149. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7150. else
  7151. :
  7152. fi
  7153. fi
  7154. lt_prog_compiler_wl=
  7155. lt_prog_compiler_pic=
  7156. lt_prog_compiler_static=
  7157. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  7158. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  7159. if test "$GCC" = yes; then
  7160. lt_prog_compiler_wl='-Wl,'
  7161. lt_prog_compiler_static='-static'
  7162. case $host_os in
  7163. aix*)
  7164. # All AIX code is PIC.
  7165. if test "$host_cpu" = ia64; then
  7166. # AIX 5 now supports IA64 processor
  7167. lt_prog_compiler_static='-Bstatic'
  7168. fi
  7169. ;;
  7170. amigaos*)
  7171. # FIXME: we need at least 68020 code to build shared libraries, but
  7172. # adding the `-m68020' flag to GCC prevents building anything better,
  7173. # like `-m68040'.
  7174. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7175. ;;
  7176. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7177. # PIC is the default for these OSes.
  7178. ;;
  7179. mingw* | cygwin* | pw32* | os2*)
  7180. # This hack is so that the source file can tell whether it is being
  7181. # built for inclusion in a dll (and should export symbols for example).
  7182. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7183. # (--disable-auto-import) libraries
  7184. lt_prog_compiler_pic='-DDLL_EXPORT'
  7185. ;;
  7186. darwin* | rhapsody*)
  7187. # PIC is the default on this platform
  7188. # Common symbols not allowed in MH_DYLIB files
  7189. lt_prog_compiler_pic='-fno-common'
  7190. ;;
  7191. interix[3-9]*)
  7192. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7193. # Instead, we relocate shared libraries at runtime.
  7194. ;;
  7195. msdosdjgpp*)
  7196. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7197. # on systems that don't support them.
  7198. lt_prog_compiler_can_build_shared=no
  7199. enable_shared=no
  7200. ;;
  7201. sysv4*MP*)
  7202. if test -d /usr/nec; then
  7203. lt_prog_compiler_pic=-Kconform_pic
  7204. fi
  7205. ;;
  7206. hpux*)
  7207. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7208. # not for PA HP-UX.
  7209. case $host_cpu in
  7210. hppa*64*|ia64*)
  7211. # +Z the default
  7212. ;;
  7213. *)
  7214. lt_prog_compiler_pic='-fPIC'
  7215. ;;
  7216. esac
  7217. ;;
  7218. *)
  7219. lt_prog_compiler_pic='-fPIC'
  7220. ;;
  7221. esac
  7222. else
  7223. # PORTME Check for flag to pass linker flags through the system compiler.
  7224. case $host_os in
  7225. aix*)
  7226. lt_prog_compiler_wl='-Wl,'
  7227. if test "$host_cpu" = ia64; then
  7228. # AIX 5 now supports IA64 processor
  7229. lt_prog_compiler_static='-Bstatic'
  7230. else
  7231. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7232. fi
  7233. ;;
  7234. darwin*)
  7235. # PIC is the default on this platform
  7236. # Common symbols not allowed in MH_DYLIB files
  7237. case $cc_basename in
  7238. xlc*)
  7239. lt_prog_compiler_pic='-qnocommon'
  7240. lt_prog_compiler_wl='-Wl,'
  7241. ;;
  7242. esac
  7243. ;;
  7244. mingw* | cygwin* | pw32* | os2*)
  7245. # This hack is so that the source file can tell whether it is being
  7246. # built for inclusion in a dll (and should export symbols for example).
  7247. lt_prog_compiler_pic='-DDLL_EXPORT'
  7248. ;;
  7249. hpux9* | hpux10* | hpux11*)
  7250. lt_prog_compiler_wl='-Wl,'
  7251. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7252. # not for PA HP-UX.
  7253. case $host_cpu in
  7254. hppa*64*|ia64*)
  7255. # +Z the default
  7256. ;;
  7257. *)
  7258. lt_prog_compiler_pic='+Z'
  7259. ;;
  7260. esac
  7261. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7262. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7263. ;;
  7264. irix5* | irix6* | nonstopux*)
  7265. lt_prog_compiler_wl='-Wl,'
  7266. # PIC (with -KPIC) is the default.
  7267. lt_prog_compiler_static='-non_shared'
  7268. ;;
  7269. newsos6)
  7270. lt_prog_compiler_pic='-KPIC'
  7271. lt_prog_compiler_static='-Bstatic'
  7272. ;;
  7273. linux* | k*bsd*-gnu)
  7274. case $cc_basename in
  7275. icc* | ecc*)
  7276. lt_prog_compiler_wl='-Wl,'
  7277. lt_prog_compiler_pic='-KPIC'
  7278. lt_prog_compiler_static='-static'
  7279. ;;
  7280. pgcc* | pgf77* | pgf90* | pgf95*)
  7281. # Portland Group compilers (*not* the Pentium gcc compiler,
  7282. # which looks to be a dead project)
  7283. lt_prog_compiler_wl='-Wl,'
  7284. lt_prog_compiler_pic='-fpic'
  7285. lt_prog_compiler_static='-Bstatic'
  7286. ;;
  7287. ccc*)
  7288. lt_prog_compiler_wl='-Wl,'
  7289. # All Alpha code is PIC.
  7290. lt_prog_compiler_static='-non_shared'
  7291. ;;
  7292. *)
  7293. case `$CC -V 2>&1 | sed 5q` in
  7294. *Sun\ C*)
  7295. # Sun C 5.9
  7296. lt_prog_compiler_pic='-KPIC'
  7297. lt_prog_compiler_static='-Bstatic'
  7298. lt_prog_compiler_wl='-Wl,'
  7299. ;;
  7300. *Sun\ F*)
  7301. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7302. lt_prog_compiler_pic='-KPIC'
  7303. lt_prog_compiler_static='-Bstatic'
  7304. lt_prog_compiler_wl=''
  7305. ;;
  7306. esac
  7307. ;;
  7308. esac
  7309. ;;
  7310. osf3* | osf4* | osf5*)
  7311. lt_prog_compiler_wl='-Wl,'
  7312. # All OSF/1 code is PIC.
  7313. lt_prog_compiler_static='-non_shared'
  7314. ;;
  7315. rdos*)
  7316. lt_prog_compiler_static='-non_shared'
  7317. ;;
  7318. solaris*)
  7319. lt_prog_compiler_pic='-KPIC'
  7320. lt_prog_compiler_static='-Bstatic'
  7321. case $cc_basename in
  7322. f77* | f90* | f95*)
  7323. lt_prog_compiler_wl='-Qoption ld ';;
  7324. *)
  7325. lt_prog_compiler_wl='-Wl,';;
  7326. esac
  7327. ;;
  7328. sunos4*)
  7329. lt_prog_compiler_wl='-Qoption ld '
  7330. lt_prog_compiler_pic='-PIC'
  7331. lt_prog_compiler_static='-Bstatic'
  7332. ;;
  7333. sysv4 | sysv4.2uw2* | sysv4.3*)
  7334. lt_prog_compiler_wl='-Wl,'
  7335. lt_prog_compiler_pic='-KPIC'
  7336. lt_prog_compiler_static='-Bstatic'
  7337. ;;
  7338. sysv4*MP*)
  7339. if test -d /usr/nec ;then
  7340. lt_prog_compiler_pic='-Kconform_pic'
  7341. lt_prog_compiler_static='-Bstatic'
  7342. fi
  7343. ;;
  7344. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7345. lt_prog_compiler_wl='-Wl,'
  7346. lt_prog_compiler_pic='-KPIC'
  7347. lt_prog_compiler_static='-Bstatic'
  7348. ;;
  7349. unicos*)
  7350. lt_prog_compiler_wl='-Wl,'
  7351. lt_prog_compiler_can_build_shared=no
  7352. ;;
  7353. uts4*)
  7354. lt_prog_compiler_pic='-pic'
  7355. lt_prog_compiler_static='-Bstatic'
  7356. ;;
  7357. *)
  7358. lt_prog_compiler_can_build_shared=no
  7359. ;;
  7360. esac
  7361. fi
  7362. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  7363. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  7364. #
  7365. # Check to make sure the PIC flag actually works.
  7366. #
  7367. if test -n "$lt_prog_compiler_pic"; then
  7368. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7369. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  7370. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  7371. echo $ECHO_N "(cached) $ECHO_C" >&6
  7372. else
  7373. lt_cv_prog_compiler_pic_works=no
  7374. ac_outfile=conftest.$ac_objext
  7375. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7376. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7377. # Insert the option either (1) after the last *FLAGS variable, or
  7378. # (2) before a word containing "conftest.", or (3) at the end.
  7379. # Note that $ac_compile itself does not contain backslashes and begins
  7380. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7381. # The option is referenced via a variable to avoid confusing sed.
  7382. lt_compile=`echo "$ac_compile" | $SED \
  7383. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7384. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7385. -e 's:$: $lt_compiler_flag:'`
  7386. (eval echo "\"\$as_me:8234: $lt_compile\"" >&5)
  7387. (eval "$lt_compile" 2>conftest.err)
  7388. ac_status=$?
  7389. cat conftest.err >&5
  7390. echo "$as_me:8238: \$? = $ac_status" >&5
  7391. if (exit $ac_status) && test -s "$ac_outfile"; then
  7392. # The compiler can only warn and ignore the option if not recognized
  7393. # So say no if there are warnings other than the usual output.
  7394. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7395. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7396. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7397. lt_cv_prog_compiler_pic_works=yes
  7398. fi
  7399. fi
  7400. $rm conftest*
  7401. fi
  7402. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  7403. echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
  7404. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7405. case $lt_prog_compiler_pic in
  7406. "" | " "*) ;;
  7407. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7408. esac
  7409. else
  7410. lt_prog_compiler_pic=
  7411. lt_prog_compiler_can_build_shared=no
  7412. fi
  7413. fi
  7414. case $host_os in
  7415. # For platforms which do not support PIC, -DPIC is meaningless:
  7416. *djgpp*)
  7417. lt_prog_compiler_pic=
  7418. ;;
  7419. *)
  7420. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7421. ;;
  7422. esac
  7423. #
  7424. # Check to make sure the static flag actually works.
  7425. #
  7426. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7427. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7428. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  7429. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  7430. echo $ECHO_N "(cached) $ECHO_C" >&6
  7431. else
  7432. lt_cv_prog_compiler_static_works=no
  7433. save_LDFLAGS="$LDFLAGS"
  7434. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7435. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7436. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7437. # The linker can only warn and ignore the option if not recognized
  7438. # So say no if there are warnings
  7439. if test -s conftest.err; then
  7440. # Append any errors to the config.log.
  7441. cat conftest.err 1>&5
  7442. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7443. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7444. if diff conftest.exp conftest.er2 >/dev/null; then
  7445. lt_cv_prog_compiler_static_works=yes
  7446. fi
  7447. else
  7448. lt_cv_prog_compiler_static_works=yes
  7449. fi
  7450. fi
  7451. $rm -r conftest*
  7452. LDFLAGS="$save_LDFLAGS"
  7453. fi
  7454. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  7455. echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
  7456. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7457. :
  7458. else
  7459. lt_prog_compiler_static=
  7460. fi
  7461. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  7462. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  7463. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  7464. echo $ECHO_N "(cached) $ECHO_C" >&6
  7465. else
  7466. lt_cv_prog_compiler_c_o=no
  7467. $rm -r conftest 2>/dev/null
  7468. mkdir conftest
  7469. cd conftest
  7470. mkdir out
  7471. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7472. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7473. # Insert the option either (1) after the last *FLAGS variable, or
  7474. # (2) before a word containing "conftest.", or (3) at the end.
  7475. # Note that $ac_compile itself does not contain backslashes and begins
  7476. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7477. lt_compile=`echo "$ac_compile" | $SED \
  7478. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7479. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7480. -e 's:$: $lt_compiler_flag:'`
  7481. (eval echo "\"\$as_me:8338: $lt_compile\"" >&5)
  7482. (eval "$lt_compile" 2>out/conftest.err)
  7483. ac_status=$?
  7484. cat out/conftest.err >&5
  7485. echo "$as_me:8342: \$? = $ac_status" >&5
  7486. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7487. then
  7488. # The compiler can only warn and ignore the option if not recognized
  7489. # So say no if there are warnings
  7490. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7491. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7492. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7493. lt_cv_prog_compiler_c_o=yes
  7494. fi
  7495. fi
  7496. chmod u+w . 2>&5
  7497. $rm conftest*
  7498. # SGI C++ compiler will create directory out/ii_files/ for
  7499. # template instantiation
  7500. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  7501. $rm out/* && rmdir out
  7502. cd ..
  7503. rmdir conftest
  7504. $rm conftest*
  7505. fi
  7506. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7507. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  7508. hard_links="nottested"
  7509. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7510. # do not overwrite the value of need_locks provided by the user
  7511. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  7512. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  7513. hard_links=yes
  7514. $rm conftest*
  7515. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7516. touch conftest.a
  7517. ln conftest.a conftest.b 2>&5 || hard_links=no
  7518. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7519. { echo "$as_me:$LINENO: result: $hard_links" >&5
  7520. echo "${ECHO_T}$hard_links" >&6; }
  7521. if test "$hard_links" = no; then
  7522. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7523. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7524. need_locks=warn
  7525. fi
  7526. else
  7527. need_locks=no
  7528. fi
  7529. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7530. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  7531. runpath_var=
  7532. allow_undefined_flag=
  7533. enable_shared_with_static_runtimes=no
  7534. archive_cmds=
  7535. archive_expsym_cmds=
  7536. old_archive_From_new_cmds=
  7537. old_archive_from_expsyms_cmds=
  7538. export_dynamic_flag_spec=
  7539. whole_archive_flag_spec=
  7540. thread_safe_flag_spec=
  7541. hardcode_libdir_flag_spec=
  7542. hardcode_libdir_flag_spec_ld=
  7543. hardcode_libdir_separator=
  7544. hardcode_direct=no
  7545. hardcode_minus_L=no
  7546. hardcode_shlibpath_var=unsupported
  7547. link_all_deplibs=unknown
  7548. hardcode_automatic=no
  7549. module_cmds=
  7550. module_expsym_cmds=
  7551. always_export_symbols=no
  7552. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7553. # include_expsyms should be a list of space-separated symbols to be *always*
  7554. # included in the symbol list
  7555. include_expsyms=
  7556. # exclude_expsyms can be an extended regexp of symbols to exclude
  7557. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7558. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7559. # as well as any symbol that contains `d'.
  7560. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7561. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7562. # platforms (ab)use it in PIC code, but their linkers get confused if
  7563. # the symbol is explicitly referenced. Since portable code cannot
  7564. # rely on this symbol name, it's probably fine to never include it in
  7565. # preloaded symbol tables.
  7566. # Exclude shared library initialization/finalization symbols.
  7567. extract_expsyms_cmds=
  7568. # Just being paranoid about ensuring that cc_basename is set.
  7569. for cc_temp in $compiler""; do
  7570. case $cc_temp in
  7571. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7572. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7573. \-*) ;;
  7574. *) break;;
  7575. esac
  7576. done
  7577. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7578. case $host_os in
  7579. cygwin* | mingw* | pw32*)
  7580. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7581. # When not using gcc, we currently assume that we are using
  7582. # Microsoft Visual C++.
  7583. if test "$GCC" != yes; then
  7584. with_gnu_ld=no
  7585. fi
  7586. ;;
  7587. interix*)
  7588. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7589. with_gnu_ld=yes
  7590. ;;
  7591. openbsd*)
  7592. with_gnu_ld=no
  7593. ;;
  7594. esac
  7595. ld_shlibs=yes
  7596. if test "$with_gnu_ld" = yes; then
  7597. # If archive_cmds runs LD, not CC, wlarc should be empty
  7598. wlarc='${wl}'
  7599. # Set some defaults for GNU ld with shared library support. These
  7600. # are reset later if shared libraries are not supported. Putting them
  7601. # here allows them to be overridden if necessary.
  7602. runpath_var=LD_RUN_PATH
  7603. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  7604. export_dynamic_flag_spec='${wl}--export-dynamic'
  7605. # ancient GNU ld didn't support --whole-archive et. al.
  7606. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  7607. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7608. else
  7609. whole_archive_flag_spec=
  7610. fi
  7611. supports_anon_versioning=no
  7612. case `$LD -v 2>/dev/null` in
  7613. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7614. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7615. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7616. *\ 2.11.*) ;; # other 2.11 versions
  7617. *) supports_anon_versioning=yes ;;
  7618. esac
  7619. # See if GNU ld supports shared libraries.
  7620. case $host_os in
  7621. aix[3-9]*)
  7622. # On AIX/PPC, the GNU linker is very broken
  7623. if test "$host_cpu" != ia64; then
  7624. ld_shlibs=no
  7625. cat <<EOF 1>&2
  7626. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7627. *** to be unable to reliably create shared libraries on AIX.
  7628. *** Therefore, libtool is disabling shared libraries support. If you
  7629. *** really care for shared libraries, you may want to modify your PATH
  7630. *** so that a non-GNU linker is found, and then restart.
  7631. EOF
  7632. fi
  7633. ;;
  7634. amigaos*)
  7635. 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)'
  7636. hardcode_libdir_flag_spec='-L$libdir'
  7637. hardcode_minus_L=yes
  7638. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  7639. # that the semantics of dynamic libraries on AmigaOS, at least up
  7640. # to version 4, is to share data among multiple programs linked
  7641. # with the same dynamic library. Since this doesn't match the
  7642. # behavior of shared libraries on other platforms, we can't use
  7643. # them.
  7644. ld_shlibs=no
  7645. ;;
  7646. beos*)
  7647. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7648. allow_undefined_flag=unsupported
  7649. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7650. # support --undefined. This deserves some investigation. FIXME
  7651. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7652. else
  7653. ld_shlibs=no
  7654. fi
  7655. ;;
  7656. cygwin* | mingw* | pw32*)
  7657. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7658. # as there is no search path for DLLs.
  7659. hardcode_libdir_flag_spec='-L$libdir'
  7660. allow_undefined_flag=unsupported
  7661. always_export_symbols=no
  7662. enable_shared_with_static_runtimes=yes
  7663. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7664. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  7665. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7666. # If the export-symbols file already is a .def file (1st line
  7667. # is EXPORTS), use it as is; otherwise, prepend...
  7668. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7669. cp $export_symbols $output_objdir/$soname.def;
  7670. else
  7671. echo EXPORTS > $output_objdir/$soname.def;
  7672. cat $export_symbols >> $output_objdir/$soname.def;
  7673. fi~
  7674. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7675. else
  7676. ld_shlibs=no
  7677. fi
  7678. ;;
  7679. interix[3-9]*)
  7680. hardcode_direct=no
  7681. hardcode_shlibpath_var=no
  7682. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7683. export_dynamic_flag_spec='${wl}-E'
  7684. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7685. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7686. # default) and relocated if they conflict, which is a slow very memory
  7687. # consuming and fragmenting process. To avoid this, we pick a random,
  7688. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7689. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7690. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7691. 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'
  7692. ;;
  7693. gnu* | linux* | k*bsd*-gnu)
  7694. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7695. tmp_addflag=
  7696. case $cc_basename,$host_cpu in
  7697. pgcc*) # Portland Group C compiler
  7698. 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'
  7699. tmp_addflag=' $pic_flag'
  7700. ;;
  7701. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7702. 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'
  7703. tmp_addflag=' $pic_flag -Mnomain' ;;
  7704. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7705. tmp_addflag=' -i_dynamic' ;;
  7706. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7707. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7708. ifc* | ifort*) # Intel Fortran compiler
  7709. tmp_addflag=' -nofor_main' ;;
  7710. esac
  7711. case `$CC -V 2>&1 | sed 5q` in
  7712. *Sun\ C*) # Sun C 5.9
  7713. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  7714. tmp_sharedflag='-G' ;;
  7715. *Sun\ F*) # Sun Fortran 8.3
  7716. tmp_sharedflag='-G' ;;
  7717. *)
  7718. tmp_sharedflag='-shared' ;;
  7719. esac
  7720. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7721. if test $supports_anon_versioning = yes; then
  7722. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  7723. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7724. $echo "local: *; };" >> $output_objdir/$libname.ver~
  7725. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7726. fi
  7727. else
  7728. ld_shlibs=no
  7729. fi
  7730. ;;
  7731. netbsd*)
  7732. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7733. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7734. wlarc=
  7735. else
  7736. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7737. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7738. fi
  7739. ;;
  7740. solaris*)
  7741. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  7742. ld_shlibs=no
  7743. cat <<EOF 1>&2
  7744. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7745. *** create shared libraries on Solaris systems. Therefore, libtool
  7746. *** is disabling shared libraries support. We urge you to upgrade GNU
  7747. *** binutils to release 2.9.1 or newer. Another option is to modify
  7748. *** your PATH or compiler configuration so that the native linker is
  7749. *** used, and then restart.
  7750. EOF
  7751. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7752. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7753. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7754. else
  7755. ld_shlibs=no
  7756. fi
  7757. ;;
  7758. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7759. case `$LD -v 2>&1` in
  7760. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7761. ld_shlibs=no
  7762. cat <<_LT_EOF 1>&2
  7763. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7764. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7765. *** is disabling shared libraries support. We urge you to upgrade GNU
  7766. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7767. *** your PATH or compiler configuration so that the native linker is
  7768. *** used, and then restart.
  7769. _LT_EOF
  7770. ;;
  7771. *)
  7772. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7773. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  7774. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  7775. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  7776. else
  7777. ld_shlibs=no
  7778. fi
  7779. ;;
  7780. esac
  7781. ;;
  7782. sunos4*)
  7783. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7784. wlarc=
  7785. hardcode_direct=yes
  7786. hardcode_shlibpath_var=no
  7787. ;;
  7788. *)
  7789. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7790. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7791. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7792. else
  7793. ld_shlibs=no
  7794. fi
  7795. ;;
  7796. esac
  7797. if test "$ld_shlibs" = no; then
  7798. runpath_var=
  7799. hardcode_libdir_flag_spec=
  7800. export_dynamic_flag_spec=
  7801. whole_archive_flag_spec=
  7802. fi
  7803. else
  7804. # PORTME fill in a description of your system's linker (not GNU ld)
  7805. case $host_os in
  7806. aix3*)
  7807. allow_undefined_flag=unsupported
  7808. always_export_symbols=yes
  7809. 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'
  7810. # Note: this linker hardcodes the directories in LIBPATH if there
  7811. # are no directories specified by -L.
  7812. hardcode_minus_L=yes
  7813. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7814. # Neither direct hardcoding nor static linking is supported with a
  7815. # broken collect2.
  7816. hardcode_direct=unsupported
  7817. fi
  7818. ;;
  7819. aix[4-9]*)
  7820. if test "$host_cpu" = ia64; then
  7821. # On IA64, the linker does run time linking by default, so we don't
  7822. # have to do anything special.
  7823. aix_use_runtimelinking=no
  7824. exp_sym_flag='-Bexport'
  7825. no_entry_flag=""
  7826. else
  7827. # If we're using GNU nm, then we don't want the "-C" option.
  7828. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7829. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7830. 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'
  7831. else
  7832. 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'
  7833. fi
  7834. aix_use_runtimelinking=no
  7835. # Test if we are trying to use run time linking or normal
  7836. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7837. # need to do runtime linking.
  7838. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7839. for ld_flag in $LDFLAGS; do
  7840. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7841. aix_use_runtimelinking=yes
  7842. break
  7843. fi
  7844. done
  7845. ;;
  7846. esac
  7847. exp_sym_flag='-bexport'
  7848. no_entry_flag='-bnoentry'
  7849. fi
  7850. # When large executables or shared objects are built, AIX ld can
  7851. # have problems creating the table of contents. If linking a library
  7852. # or program results in "error TOC overflow" add -mminimal-toc to
  7853. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7854. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7855. archive_cmds=''
  7856. hardcode_direct=yes
  7857. hardcode_libdir_separator=':'
  7858. link_all_deplibs=yes
  7859. if test "$GCC" = yes; then
  7860. case $host_os in aix4.[012]|aix4.[012].*)
  7861. # We only want to do this on AIX 4.2 and lower, the check
  7862. # below for broken collect2 doesn't work under 4.3+
  7863. collect2name=`${CC} -print-prog-name=collect2`
  7864. if test -f "$collect2name" && \
  7865. strings "$collect2name" | grep resolve_lib_name >/dev/null
  7866. then
  7867. # We have reworked collect2
  7868. :
  7869. else
  7870. # We have old collect2
  7871. hardcode_direct=unsupported
  7872. # It fails to find uninstalled libraries when the uninstalled
  7873. # path is not listed in the libpath. Setting hardcode_minus_L
  7874. # to unsupported forces relinking
  7875. hardcode_minus_L=yes
  7876. hardcode_libdir_flag_spec='-L$libdir'
  7877. hardcode_libdir_separator=
  7878. fi
  7879. ;;
  7880. esac
  7881. shared_flag='-shared'
  7882. if test "$aix_use_runtimelinking" = yes; then
  7883. shared_flag="$shared_flag "'${wl}-G'
  7884. fi
  7885. else
  7886. # not using gcc
  7887. if test "$host_cpu" = ia64; then
  7888. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7889. # chokes on -Wl,-G. The following line is correct:
  7890. shared_flag='-G'
  7891. else
  7892. if test "$aix_use_runtimelinking" = yes; then
  7893. shared_flag='${wl}-G'
  7894. else
  7895. shared_flag='${wl}-bM:SRE'
  7896. fi
  7897. fi
  7898. fi
  7899. # It seems that -bexpall does not export symbols beginning with
  7900. # underscore (_), so it is better to generate a list of symbols to export.
  7901. always_export_symbols=yes
  7902. if test "$aix_use_runtimelinking" = yes; then
  7903. # Warning - without using the other runtime loading flags (-brtl),
  7904. # -berok will link without error, but may produce a broken library.
  7905. allow_undefined_flag='-berok'
  7906. # Determine the default libpath from the value encoded in an empty executable.
  7907. cat >conftest.$ac_ext <<_ACEOF
  7908. /* confdefs.h. */
  7909. _ACEOF
  7910. cat confdefs.h >>conftest.$ac_ext
  7911. cat >>conftest.$ac_ext <<_ACEOF
  7912. /* end confdefs.h. */
  7913. int
  7914. main ()
  7915. {
  7916. ;
  7917. return 0;
  7918. }
  7919. _ACEOF
  7920. rm -f conftest.$ac_objext conftest$ac_exeext
  7921. if { (ac_try="$ac_link"
  7922. case "(($ac_try" in
  7923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7924. *) ac_try_echo=$ac_try;;
  7925. esac
  7926. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7927. (eval "$ac_link") 2>conftest.er1
  7928. ac_status=$?
  7929. grep -v '^ *+' conftest.er1 >conftest.err
  7930. rm -f conftest.er1
  7931. cat conftest.err >&5
  7932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7933. (exit $ac_status); } && {
  7934. test -z "$ac_c_werror_flag" ||
  7935. test ! -s conftest.err
  7936. } && test -s conftest$ac_exeext &&
  7937. $as_test_x conftest$ac_exeext; then
  7938. lt_aix_libpath_sed='
  7939. /Import File Strings/,/^$/ {
  7940. /^0/ {
  7941. s/^0 *\(.*\)$/\1/
  7942. p
  7943. }
  7944. }'
  7945. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7946. # Check for a 64-bit object if we didn't find anything.
  7947. if test -z "$aix_libpath"; then
  7948. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7949. fi
  7950. else
  7951. echo "$as_me: failed program was:" >&5
  7952. sed 's/^/| /' conftest.$ac_ext >&5
  7953. fi
  7954. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7955. conftest$ac_exeext conftest.$ac_ext
  7956. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7957. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7958. 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"
  7959. else
  7960. if test "$host_cpu" = ia64; then
  7961. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7962. allow_undefined_flag="-z nodefs"
  7963. 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"
  7964. else
  7965. # Determine the default libpath from the value encoded in an empty executable.
  7966. cat >conftest.$ac_ext <<_ACEOF
  7967. /* confdefs.h. */
  7968. _ACEOF
  7969. cat confdefs.h >>conftest.$ac_ext
  7970. cat >>conftest.$ac_ext <<_ACEOF
  7971. /* end confdefs.h. */
  7972. int
  7973. main ()
  7974. {
  7975. ;
  7976. return 0;
  7977. }
  7978. _ACEOF
  7979. rm -f conftest.$ac_objext conftest$ac_exeext
  7980. if { (ac_try="$ac_link"
  7981. case "(($ac_try" in
  7982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7983. *) ac_try_echo=$ac_try;;
  7984. esac
  7985. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7986. (eval "$ac_link") 2>conftest.er1
  7987. ac_status=$?
  7988. grep -v '^ *+' conftest.er1 >conftest.err
  7989. rm -f conftest.er1
  7990. cat conftest.err >&5
  7991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7992. (exit $ac_status); } && {
  7993. test -z "$ac_c_werror_flag" ||
  7994. test ! -s conftest.err
  7995. } && test -s conftest$ac_exeext &&
  7996. $as_test_x conftest$ac_exeext; then
  7997. lt_aix_libpath_sed='
  7998. /Import File Strings/,/^$/ {
  7999. /^0/ {
  8000. s/^0 *\(.*\)$/\1/
  8001. p
  8002. }
  8003. }'
  8004. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8005. # Check for a 64-bit object if we didn't find anything.
  8006. if test -z "$aix_libpath"; then
  8007. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8008. fi
  8009. else
  8010. echo "$as_me: failed program was:" >&5
  8011. sed 's/^/| /' conftest.$ac_ext >&5
  8012. fi
  8013. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8014. conftest$ac_exeext conftest.$ac_ext
  8015. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8016. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8017. # Warning - without using the other run time loading flags,
  8018. # -berok will link without error, but may produce a broken library.
  8019. no_undefined_flag=' ${wl}-bernotok'
  8020. allow_undefined_flag=' ${wl}-berok'
  8021. # Exported symbols can be pulled into shared objects from archives
  8022. whole_archive_flag_spec='$convenience'
  8023. archive_cmds_need_lc=yes
  8024. # This is similar to how AIX traditionally builds its shared libraries.
  8025. 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'
  8026. fi
  8027. fi
  8028. ;;
  8029. amigaos*)
  8030. 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)'
  8031. hardcode_libdir_flag_spec='-L$libdir'
  8032. hardcode_minus_L=yes
  8033. # see comment about different semantics on the GNU ld section
  8034. ld_shlibs=no
  8035. ;;
  8036. bsdi[45]*)
  8037. export_dynamic_flag_spec=-rdynamic
  8038. ;;
  8039. cygwin* | mingw* | pw32*)
  8040. # When not using gcc, we currently assume that we are using
  8041. # Microsoft Visual C++.
  8042. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8043. # no search path for DLLs.
  8044. hardcode_libdir_flag_spec=' '
  8045. allow_undefined_flag=unsupported
  8046. # Tell ltmain to make .lib files, not .a files.
  8047. libext=lib
  8048. # Tell ltmain to make .dll files, not .so files.
  8049. shrext_cmds=".dll"
  8050. # FIXME: Setting linknames here is a bad hack.
  8051. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8052. # The linker will automatically build a .lib file if we build a DLL.
  8053. old_archive_From_new_cmds='true'
  8054. # FIXME: Should let the user specify the lib program.
  8055. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8056. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8057. enable_shared_with_static_runtimes=yes
  8058. ;;
  8059. darwin* | rhapsody*)
  8060. case $host_os in
  8061. rhapsody* | darwin1.[012])
  8062. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  8063. ;;
  8064. *) # Darwin 1.3 on
  8065. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  8066. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  8067. else
  8068. case ${MACOSX_DEPLOYMENT_TARGET} in
  8069. 10.[012])
  8070. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  8071. ;;
  8072. 10.*)
  8073. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  8074. ;;
  8075. esac
  8076. fi
  8077. ;;
  8078. esac
  8079. archive_cmds_need_lc=no
  8080. hardcode_direct=no
  8081. hardcode_automatic=yes
  8082. hardcode_shlibpath_var=unsupported
  8083. whole_archive_flag_spec=''
  8084. link_all_deplibs=yes
  8085. if test "$GCC" = yes ; then
  8086. output_verbose_link_cmd='echo'
  8087. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8088. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8089. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  8090. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  8091. else
  8092. case $cc_basename in
  8093. xlc*)
  8094. output_verbose_link_cmd='echo'
  8095. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  8096. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  8097. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  8098. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8099. 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}'
  8100. ;;
  8101. *)
  8102. ld_shlibs=no
  8103. ;;
  8104. esac
  8105. fi
  8106. ;;
  8107. dgux*)
  8108. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8109. hardcode_libdir_flag_spec='-L$libdir'
  8110. hardcode_shlibpath_var=no
  8111. ;;
  8112. freebsd1*)
  8113. ld_shlibs=no
  8114. ;;
  8115. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8116. # support. Future versions do this automatically, but an explicit c++rt0.o
  8117. # does not break anything, and helps significantly (at the cost of a little
  8118. # extra space).
  8119. freebsd2.2*)
  8120. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8121. hardcode_libdir_flag_spec='-R$libdir'
  8122. hardcode_direct=yes
  8123. hardcode_shlibpath_var=no
  8124. ;;
  8125. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8126. freebsd2*)
  8127. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8128. hardcode_direct=yes
  8129. hardcode_minus_L=yes
  8130. hardcode_shlibpath_var=no
  8131. ;;
  8132. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8133. freebsd* | dragonfly*)
  8134. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8135. hardcode_libdir_flag_spec='-R$libdir'
  8136. hardcode_direct=yes
  8137. hardcode_shlibpath_var=no
  8138. ;;
  8139. hpux9*)
  8140. if test "$GCC" = yes; then
  8141. 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'
  8142. else
  8143. 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'
  8144. fi
  8145. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8146. hardcode_libdir_separator=:
  8147. hardcode_direct=yes
  8148. # hardcode_minus_L: Not really in the search PATH,
  8149. # but as the default location of the library.
  8150. hardcode_minus_L=yes
  8151. export_dynamic_flag_spec='${wl}-E'
  8152. ;;
  8153. hpux10*)
  8154. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8155. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8156. else
  8157. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8158. fi
  8159. if test "$with_gnu_ld" = no; then
  8160. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8161. hardcode_libdir_separator=:
  8162. hardcode_direct=yes
  8163. export_dynamic_flag_spec='${wl}-E'
  8164. # hardcode_minus_L: Not really in the search PATH,
  8165. # but as the default location of the library.
  8166. hardcode_minus_L=yes
  8167. fi
  8168. ;;
  8169. hpux11*)
  8170. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8171. case $host_cpu in
  8172. hppa*64*)
  8173. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8174. ;;
  8175. ia64*)
  8176. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8177. ;;
  8178. *)
  8179. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8180. ;;
  8181. esac
  8182. else
  8183. case $host_cpu in
  8184. hppa*64*)
  8185. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8186. ;;
  8187. ia64*)
  8188. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8189. ;;
  8190. *)
  8191. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8192. ;;
  8193. esac
  8194. fi
  8195. if test "$with_gnu_ld" = no; then
  8196. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8197. hardcode_libdir_separator=:
  8198. case $host_cpu in
  8199. hppa*64*|ia64*)
  8200. hardcode_libdir_flag_spec_ld='+b $libdir'
  8201. hardcode_direct=no
  8202. hardcode_shlibpath_var=no
  8203. ;;
  8204. *)
  8205. hardcode_direct=yes
  8206. export_dynamic_flag_spec='${wl}-E'
  8207. # hardcode_minus_L: Not really in the search PATH,
  8208. # but as the default location of the library.
  8209. hardcode_minus_L=yes
  8210. ;;
  8211. esac
  8212. fi
  8213. ;;
  8214. irix5* | irix6* | nonstopux*)
  8215. if test "$GCC" = yes; then
  8216. 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'
  8217. else
  8218. 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'
  8219. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8220. fi
  8221. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8222. hardcode_libdir_separator=:
  8223. link_all_deplibs=yes
  8224. ;;
  8225. netbsd*)
  8226. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8227. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8228. else
  8229. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8230. fi
  8231. hardcode_libdir_flag_spec='-R$libdir'
  8232. hardcode_direct=yes
  8233. hardcode_shlibpath_var=no
  8234. ;;
  8235. newsos6)
  8236. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8237. hardcode_direct=yes
  8238. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8239. hardcode_libdir_separator=:
  8240. hardcode_shlibpath_var=no
  8241. ;;
  8242. openbsd*)
  8243. if test -f /usr/libexec/ld.so; then
  8244. hardcode_direct=yes
  8245. hardcode_shlibpath_var=no
  8246. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8247. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8248. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8249. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8250. export_dynamic_flag_spec='${wl}-E'
  8251. else
  8252. case $host_os in
  8253. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8254. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8255. hardcode_libdir_flag_spec='-R$libdir'
  8256. ;;
  8257. *)
  8258. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8259. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8260. ;;
  8261. esac
  8262. fi
  8263. else
  8264. ld_shlibs=no
  8265. fi
  8266. ;;
  8267. os2*)
  8268. hardcode_libdir_flag_spec='-L$libdir'
  8269. hardcode_minus_L=yes
  8270. allow_undefined_flag=unsupported
  8271. 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'
  8272. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8273. ;;
  8274. osf3*)
  8275. if test "$GCC" = yes; then
  8276. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8277. 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'
  8278. else
  8279. allow_undefined_flag=' -expect_unresolved \*'
  8280. 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'
  8281. fi
  8282. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8283. hardcode_libdir_separator=:
  8284. ;;
  8285. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8286. if test "$GCC" = yes; then
  8287. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8288. 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'
  8289. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8290. else
  8291. allow_undefined_flag=' -expect_unresolved \*'
  8292. 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'
  8293. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  8294. $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'
  8295. # Both c and cxx compiler support -rpath directly
  8296. hardcode_libdir_flag_spec='-rpath $libdir'
  8297. fi
  8298. hardcode_libdir_separator=:
  8299. ;;
  8300. solaris*)
  8301. no_undefined_flag=' -z text'
  8302. if test "$GCC" = yes; then
  8303. wlarc='${wl}'
  8304. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8305. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8306. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  8307. else
  8308. wlarc=''
  8309. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8310. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8311. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  8312. fi
  8313. hardcode_libdir_flag_spec='-R$libdir'
  8314. hardcode_shlibpath_var=no
  8315. case $host_os in
  8316. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8317. *)
  8318. # The compiler driver will combine and reorder linker options,
  8319. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8320. # but is careful enough not to reorder.
  8321. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8322. if test "$GCC" = yes; then
  8323. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8324. else
  8325. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8326. fi
  8327. ;;
  8328. esac
  8329. link_all_deplibs=yes
  8330. ;;
  8331. sunos4*)
  8332. if test "x$host_vendor" = xsequent; then
  8333. # Use $CC to link under sequent, because it throws in some extra .o
  8334. # files that make .init and .fini sections work.
  8335. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8336. else
  8337. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8338. fi
  8339. hardcode_libdir_flag_spec='-L$libdir'
  8340. hardcode_direct=yes
  8341. hardcode_minus_L=yes
  8342. hardcode_shlibpath_var=no
  8343. ;;
  8344. sysv4)
  8345. case $host_vendor in
  8346. sni)
  8347. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8348. hardcode_direct=yes # is this really true???
  8349. ;;
  8350. siemens)
  8351. ## LD is ld it makes a PLAMLIB
  8352. ## CC just makes a GrossModule.
  8353. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8354. reload_cmds='$CC -r -o $output$reload_objs'
  8355. hardcode_direct=no
  8356. ;;
  8357. motorola)
  8358. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8359. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8360. ;;
  8361. esac
  8362. runpath_var='LD_RUN_PATH'
  8363. hardcode_shlibpath_var=no
  8364. ;;
  8365. sysv4.3*)
  8366. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8367. hardcode_shlibpath_var=no
  8368. export_dynamic_flag_spec='-Bexport'
  8369. ;;
  8370. sysv4*MP*)
  8371. if test -d /usr/nec; then
  8372. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8373. hardcode_shlibpath_var=no
  8374. runpath_var=LD_RUN_PATH
  8375. hardcode_runpath_var=yes
  8376. ld_shlibs=yes
  8377. fi
  8378. ;;
  8379. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8380. no_undefined_flag='${wl}-z,text'
  8381. archive_cmds_need_lc=no
  8382. hardcode_shlibpath_var=no
  8383. runpath_var='LD_RUN_PATH'
  8384. if test "$GCC" = yes; then
  8385. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8386. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8387. else
  8388. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8389. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8390. fi
  8391. ;;
  8392. sysv5* | sco3.2v5* | sco5v6*)
  8393. # Note: We can NOT use -z defs as we might desire, because we do not
  8394. # link with -lc, and that would cause any symbols used from libc to
  8395. # always be unresolved, which means just about no library would
  8396. # ever link correctly. If we're not using GNU ld we use -z text
  8397. # though, which does catch some bad symbols but isn't as heavy-handed
  8398. # as -z defs.
  8399. no_undefined_flag='${wl}-z,text'
  8400. allow_undefined_flag='${wl}-z,nodefs'
  8401. archive_cmds_need_lc=no
  8402. hardcode_shlibpath_var=no
  8403. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  8404. hardcode_libdir_separator=':'
  8405. link_all_deplibs=yes
  8406. export_dynamic_flag_spec='${wl}-Bexport'
  8407. runpath_var='LD_RUN_PATH'
  8408. if test "$GCC" = yes; then
  8409. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8410. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8411. else
  8412. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8413. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8414. fi
  8415. ;;
  8416. uts4*)
  8417. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8418. hardcode_libdir_flag_spec='-L$libdir'
  8419. hardcode_shlibpath_var=no
  8420. ;;
  8421. *)
  8422. ld_shlibs=no
  8423. ;;
  8424. esac
  8425. fi
  8426. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  8427. echo "${ECHO_T}$ld_shlibs" >&6; }
  8428. test "$ld_shlibs" = no && can_build_shared=no
  8429. #
  8430. # Do we need to explicitly link libc?
  8431. #
  8432. case "x$archive_cmds_need_lc" in
  8433. x|xyes)
  8434. # Assume -lc should be added
  8435. archive_cmds_need_lc=yes
  8436. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8437. case $archive_cmds in
  8438. *'~'*)
  8439. # FIXME: we may have to deal with multi-command sequences.
  8440. ;;
  8441. '$CC '*)
  8442. # Test whether the compiler implicitly links with -lc since on some
  8443. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8444. # to ld, don't add -lc before -lgcc.
  8445. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  8446. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  8447. $rm conftest*
  8448. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8449. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8450. (eval $ac_compile) 2>&5
  8451. ac_status=$?
  8452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8453. (exit $ac_status); } 2>conftest.err; then
  8454. soname=conftest
  8455. lib=conftest
  8456. libobjs=conftest.$ac_objext
  8457. deplibs=
  8458. wl=$lt_prog_compiler_wl
  8459. pic_flag=$lt_prog_compiler_pic
  8460. compiler_flags=-v
  8461. linker_flags=-v
  8462. verstring=
  8463. output_objdir=.
  8464. libname=conftest
  8465. lt_save_allow_undefined_flag=$allow_undefined_flag
  8466. allow_undefined_flag=
  8467. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  8468. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8469. ac_status=$?
  8470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8471. (exit $ac_status); }
  8472. then
  8473. archive_cmds_need_lc=no
  8474. else
  8475. archive_cmds_need_lc=yes
  8476. fi
  8477. allow_undefined_flag=$lt_save_allow_undefined_flag
  8478. else
  8479. cat conftest.err 1>&5
  8480. fi
  8481. $rm conftest*
  8482. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  8483. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  8484. ;;
  8485. esac
  8486. fi
  8487. ;;
  8488. esac
  8489. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  8490. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  8491. library_names_spec=
  8492. libname_spec='lib$name'
  8493. soname_spec=
  8494. shrext_cmds=".so"
  8495. postinstall_cmds=
  8496. postuninstall_cmds=
  8497. finish_cmds=
  8498. finish_eval=
  8499. shlibpath_var=
  8500. shlibpath_overrides_runpath=unknown
  8501. version_type=none
  8502. dynamic_linker="$host_os ld.so"
  8503. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8504. if test "$GCC" = yes; then
  8505. case $host_os in
  8506. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8507. *) lt_awk_arg="/^libraries:/" ;;
  8508. esac
  8509. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8510. if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  8511. # if the path contains ";" then we assume it to be the separator
  8512. # otherwise default to the standard path separator (i.e. ":") - it is
  8513. # assumed that no part of a normal pathname contains ";" but that should
  8514. # okay in the real world where ";" in dirpaths is itself problematic.
  8515. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8516. else
  8517. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8518. fi
  8519. # Ok, now we have the path, separated by spaces, we can step through it
  8520. # and add multilib dir if necessary.
  8521. lt_tmp_lt_search_path_spec=
  8522. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8523. for lt_sys_path in $lt_search_path_spec; do
  8524. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8525. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8526. else
  8527. test -d "$lt_sys_path" && \
  8528. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8529. fi
  8530. done
  8531. lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  8532. BEGIN {RS=" "; FS="/|\n";} {
  8533. lt_foo="";
  8534. lt_count=0;
  8535. for (lt_i = NF; lt_i > 0; lt_i--) {
  8536. if ($lt_i != "" && $lt_i != ".") {
  8537. if ($lt_i == "..") {
  8538. lt_count++;
  8539. } else {
  8540. if (lt_count == 0) {
  8541. lt_foo="/" $lt_i lt_foo;
  8542. } else {
  8543. lt_count--;
  8544. }
  8545. }
  8546. }
  8547. }
  8548. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8549. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8550. }'`
  8551. sys_lib_search_path_spec=`echo $lt_search_path_spec`
  8552. else
  8553. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8554. fi
  8555. need_lib_prefix=unknown
  8556. hardcode_into_libs=no
  8557. # when you set need_version to no, make sure it does not cause -set_version
  8558. # flags to be left without arguments
  8559. need_version=unknown
  8560. case $host_os in
  8561. aix3*)
  8562. version_type=linux
  8563. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8564. shlibpath_var=LIBPATH
  8565. # AIX 3 has no versioning support, so we append a major version to the name.
  8566. soname_spec='${libname}${release}${shared_ext}$major'
  8567. ;;
  8568. aix[4-9]*)
  8569. version_type=linux
  8570. need_lib_prefix=no
  8571. need_version=no
  8572. hardcode_into_libs=yes
  8573. if test "$host_cpu" = ia64; then
  8574. # AIX 5 supports IA64
  8575. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8576. shlibpath_var=LD_LIBRARY_PATH
  8577. else
  8578. # With GCC up to 2.95.x, collect2 would create an import file
  8579. # for dependence libraries. The import file would start with
  8580. # the line `#! .'. This would cause the generated library to
  8581. # depend on `.', always an invalid library. This was fixed in
  8582. # development snapshots of GCC prior to 3.0.
  8583. case $host_os in
  8584. aix4 | aix4.[01] | aix4.[01].*)
  8585. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8586. echo ' yes '
  8587. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  8588. :
  8589. else
  8590. can_build_shared=no
  8591. fi
  8592. ;;
  8593. esac
  8594. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8595. # soname into executable. Probably we can add versioning support to
  8596. # collect2, so additional links can be useful in future.
  8597. if test "$aix_use_runtimelinking" = yes; then
  8598. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8599. # instead of lib<name>.a to let people know that these are not
  8600. # typical AIX shared libraries.
  8601. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8602. else
  8603. # We preserve .a as extension for shared libraries through AIX4.2
  8604. # and later when we are not doing run time linking.
  8605. library_names_spec='${libname}${release}.a $libname.a'
  8606. soname_spec='${libname}${release}${shared_ext}$major'
  8607. fi
  8608. shlibpath_var=LIBPATH
  8609. fi
  8610. ;;
  8611. amigaos*)
  8612. library_names_spec='$libname.ixlibrary $libname.a'
  8613. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8614. 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'
  8615. ;;
  8616. beos*)
  8617. library_names_spec='${libname}${shared_ext}'
  8618. dynamic_linker="$host_os ld.so"
  8619. shlibpath_var=LIBRARY_PATH
  8620. ;;
  8621. bsdi[45]*)
  8622. version_type=linux
  8623. need_version=no
  8624. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8625. soname_spec='${libname}${release}${shared_ext}$major'
  8626. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8627. shlibpath_var=LD_LIBRARY_PATH
  8628. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8629. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8630. # the default ld.so.conf also contains /usr/contrib/lib and
  8631. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8632. # libtool to hard-code these into programs
  8633. ;;
  8634. cygwin* | mingw* | pw32*)
  8635. version_type=windows
  8636. shrext_cmds=".dll"
  8637. need_version=no
  8638. need_lib_prefix=no
  8639. case $GCC,$host_os in
  8640. yes,cygwin* | yes,mingw* | yes,pw32*)
  8641. library_names_spec='$libname.dll.a'
  8642. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8643. postinstall_cmds='base_file=`basename \${file}`~
  8644. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  8645. dldir=$destdir/`dirname \$dlpath`~
  8646. test -d \$dldir || mkdir -p \$dldir~
  8647. $install_prog $dir/$dlname \$dldir/$dlname~
  8648. chmod a+x \$dldir/$dlname'
  8649. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8650. dlpath=$dir/\$dldll~
  8651. $rm \$dlpath'
  8652. shlibpath_overrides_runpath=yes
  8653. case $host_os in
  8654. cygwin*)
  8655. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8656. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8657. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8658. ;;
  8659. mingw*)
  8660. # MinGW DLLs use traditional 'lib' prefix
  8661. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8662. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8663. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  8664. # It is most probably a Windows format PATH printed by
  8665. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8666. # path with ; separators, and with drive letters. We can handle the
  8667. # drive letters (cygwin fileutils understands them), so leave them,
  8668. # especially as we might pass files found there to a mingw objdump,
  8669. # which wouldn't understand a cygwinified path. Ahh.
  8670. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8671. else
  8672. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8673. fi
  8674. ;;
  8675. pw32*)
  8676. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8677. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8678. ;;
  8679. esac
  8680. ;;
  8681. *)
  8682. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8683. ;;
  8684. esac
  8685. dynamic_linker='Win32 ld.exe'
  8686. # FIXME: first we should search . and the directory the executable is in
  8687. shlibpath_var=PATH
  8688. ;;
  8689. darwin* | rhapsody*)
  8690. dynamic_linker="$host_os dyld"
  8691. version_type=darwin
  8692. need_lib_prefix=no
  8693. need_version=no
  8694. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8695. soname_spec='${libname}${release}${major}$shared_ext'
  8696. shlibpath_overrides_runpath=yes
  8697. shlibpath_var=DYLD_LIBRARY_PATH
  8698. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8699. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8700. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8701. ;;
  8702. dgux*)
  8703. version_type=linux
  8704. need_lib_prefix=no
  8705. need_version=no
  8706. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8707. soname_spec='${libname}${release}${shared_ext}$major'
  8708. shlibpath_var=LD_LIBRARY_PATH
  8709. ;;
  8710. freebsd1*)
  8711. dynamic_linker=no
  8712. ;;
  8713. freebsd* | dragonfly*)
  8714. # DragonFly does not have aout. When/if they implement a new
  8715. # versioning mechanism, adjust this.
  8716. if test -x /usr/bin/objformat; then
  8717. objformat=`/usr/bin/objformat`
  8718. else
  8719. case $host_os in
  8720. freebsd[123]*) objformat=aout ;;
  8721. *) objformat=elf ;;
  8722. esac
  8723. fi
  8724. # Handle Gentoo/FreeBSD as it was Linux
  8725. case $host_vendor in
  8726. gentoo)
  8727. version_type=linux ;;
  8728. *)
  8729. version_type=freebsd-$objformat ;;
  8730. esac
  8731. case $version_type in
  8732. freebsd-elf*)
  8733. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8734. need_version=no
  8735. need_lib_prefix=no
  8736. ;;
  8737. freebsd-*)
  8738. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8739. need_version=yes
  8740. ;;
  8741. linux)
  8742. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8743. soname_spec='${libname}${release}${shared_ext}$major'
  8744. need_lib_prefix=no
  8745. need_version=no
  8746. ;;
  8747. esac
  8748. shlibpath_var=LD_LIBRARY_PATH
  8749. case $host_os in
  8750. freebsd2*)
  8751. shlibpath_overrides_runpath=yes
  8752. ;;
  8753. freebsd3.[01]* | freebsdelf3.[01]*)
  8754. shlibpath_overrides_runpath=yes
  8755. hardcode_into_libs=yes
  8756. ;;
  8757. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8758. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8759. shlibpath_overrides_runpath=no
  8760. hardcode_into_libs=yes
  8761. ;;
  8762. *) # from 4.6 on, and DragonFly
  8763. shlibpath_overrides_runpath=yes
  8764. hardcode_into_libs=yes
  8765. ;;
  8766. esac
  8767. ;;
  8768. gnu*)
  8769. version_type=linux
  8770. need_lib_prefix=no
  8771. need_version=no
  8772. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8773. soname_spec='${libname}${release}${shared_ext}$major'
  8774. shlibpath_var=LD_LIBRARY_PATH
  8775. hardcode_into_libs=yes
  8776. ;;
  8777. hpux9* | hpux10* | hpux11*)
  8778. # Give a soname corresponding to the major version so that dld.sl refuses to
  8779. # link against other versions.
  8780. version_type=sunos
  8781. need_lib_prefix=no
  8782. need_version=no
  8783. case $host_cpu in
  8784. ia64*)
  8785. shrext_cmds='.so'
  8786. hardcode_into_libs=yes
  8787. dynamic_linker="$host_os dld.so"
  8788. shlibpath_var=LD_LIBRARY_PATH
  8789. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8790. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8791. soname_spec='${libname}${release}${shared_ext}$major'
  8792. if test "X$HPUX_IA64_MODE" = X32; then
  8793. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8794. else
  8795. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8796. fi
  8797. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8798. ;;
  8799. hppa*64*)
  8800. shrext_cmds='.sl'
  8801. hardcode_into_libs=yes
  8802. dynamic_linker="$host_os dld.sl"
  8803. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8804. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8805. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8806. soname_spec='${libname}${release}${shared_ext}$major'
  8807. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8808. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8809. ;;
  8810. *)
  8811. shrext_cmds='.sl'
  8812. dynamic_linker="$host_os dld.sl"
  8813. shlibpath_var=SHLIB_PATH
  8814. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8815. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8816. soname_spec='${libname}${release}${shared_ext}$major'
  8817. ;;
  8818. esac
  8819. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8820. postinstall_cmds='chmod 555 $lib'
  8821. ;;
  8822. interix[3-9]*)
  8823. version_type=linux
  8824. need_lib_prefix=no
  8825. need_version=no
  8826. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8827. soname_spec='${libname}${release}${shared_ext}$major'
  8828. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8829. shlibpath_var=LD_LIBRARY_PATH
  8830. shlibpath_overrides_runpath=no
  8831. hardcode_into_libs=yes
  8832. ;;
  8833. irix5* | irix6* | nonstopux*)
  8834. case $host_os in
  8835. nonstopux*) version_type=nonstopux ;;
  8836. *)
  8837. if test "$lt_cv_prog_gnu_ld" = yes; then
  8838. version_type=linux
  8839. else
  8840. version_type=irix
  8841. fi ;;
  8842. esac
  8843. need_lib_prefix=no
  8844. need_version=no
  8845. soname_spec='${libname}${release}${shared_ext}$major'
  8846. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8847. case $host_os in
  8848. irix5* | nonstopux*)
  8849. libsuff= shlibsuff=
  8850. ;;
  8851. *)
  8852. case $LD in # libtool.m4 will add one of these switches to LD
  8853. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8854. libsuff= shlibsuff= libmagic=32-bit;;
  8855. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8856. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8857. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8858. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8859. *) libsuff= shlibsuff= libmagic=never-match;;
  8860. esac
  8861. ;;
  8862. esac
  8863. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8864. shlibpath_overrides_runpath=no
  8865. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8866. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8867. hardcode_into_libs=yes
  8868. ;;
  8869. # No shared lib support for Linux oldld, aout, or coff.
  8870. linux*oldld* | linux*aout* | linux*coff*)
  8871. dynamic_linker=no
  8872. ;;
  8873. # This must be Linux ELF.
  8874. linux* | k*bsd*-gnu)
  8875. version_type=linux
  8876. need_lib_prefix=no
  8877. need_version=no
  8878. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8879. soname_spec='${libname}${release}${shared_ext}$major'
  8880. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8881. shlibpath_var=LD_LIBRARY_PATH
  8882. shlibpath_overrides_runpath=no
  8883. # This implies no fast_install, which is unacceptable.
  8884. # Some rework will be needed to allow for fast_install
  8885. # before this can be enabled.
  8886. hardcode_into_libs=yes
  8887. # Append ld.so.conf contents to the search path
  8888. if test -f /etc/ld.so.conf; then
  8889. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  8890. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8891. fi
  8892. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8893. # powerpc, because MkLinux only supported shared libraries with the
  8894. # GNU dynamic linker. Since this was broken with cross compilers,
  8895. # most powerpc-linux boxes support dynamic linking these days and
  8896. # people can always --disable-shared, the test was removed, and we
  8897. # assume the GNU/Linux dynamic linker is in use.
  8898. dynamic_linker='GNU/Linux ld.so'
  8899. ;;
  8900. netbsd*)
  8901. version_type=sunos
  8902. need_lib_prefix=no
  8903. need_version=no
  8904. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8905. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8906. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8907. dynamic_linker='NetBSD (a.out) ld.so'
  8908. else
  8909. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8910. soname_spec='${libname}${release}${shared_ext}$major'
  8911. dynamic_linker='NetBSD ld.elf_so'
  8912. fi
  8913. shlibpath_var=LD_LIBRARY_PATH
  8914. shlibpath_overrides_runpath=yes
  8915. hardcode_into_libs=yes
  8916. ;;
  8917. newsos6)
  8918. version_type=linux
  8919. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8920. shlibpath_var=LD_LIBRARY_PATH
  8921. shlibpath_overrides_runpath=yes
  8922. ;;
  8923. nto-qnx*)
  8924. version_type=linux
  8925. need_lib_prefix=no
  8926. need_version=no
  8927. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8928. soname_spec='${libname}${release}${shared_ext}$major'
  8929. shlibpath_var=LD_LIBRARY_PATH
  8930. shlibpath_overrides_runpath=yes
  8931. ;;
  8932. openbsd*)
  8933. version_type=sunos
  8934. sys_lib_dlsearch_path_spec="/usr/lib"
  8935. need_lib_prefix=no
  8936. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8937. case $host_os in
  8938. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8939. *) need_version=no ;;
  8940. esac
  8941. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8942. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8943. shlibpath_var=LD_LIBRARY_PATH
  8944. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8945. case $host_os in
  8946. openbsd2.[89] | openbsd2.[89].*)
  8947. shlibpath_overrides_runpath=no
  8948. ;;
  8949. *)
  8950. shlibpath_overrides_runpath=yes
  8951. ;;
  8952. esac
  8953. else
  8954. shlibpath_overrides_runpath=yes
  8955. fi
  8956. ;;
  8957. os2*)
  8958. libname_spec='$name'
  8959. shrext_cmds=".dll"
  8960. need_lib_prefix=no
  8961. library_names_spec='$libname${shared_ext} $libname.a'
  8962. dynamic_linker='OS/2 ld.exe'
  8963. shlibpath_var=LIBPATH
  8964. ;;
  8965. osf3* | osf4* | osf5*)
  8966. version_type=osf
  8967. need_lib_prefix=no
  8968. need_version=no
  8969. soname_spec='${libname}${release}${shared_ext}$major'
  8970. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8971. shlibpath_var=LD_LIBRARY_PATH
  8972. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8973. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8974. ;;
  8975. rdos*)
  8976. dynamic_linker=no
  8977. ;;
  8978. solaris*)
  8979. version_type=linux
  8980. need_lib_prefix=no
  8981. need_version=no
  8982. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8983. soname_spec='${libname}${release}${shared_ext}$major'
  8984. shlibpath_var=LD_LIBRARY_PATH
  8985. shlibpath_overrides_runpath=yes
  8986. hardcode_into_libs=yes
  8987. # ldd complains unless libraries are executable
  8988. postinstall_cmds='chmod +x $lib'
  8989. ;;
  8990. sunos4*)
  8991. version_type=sunos
  8992. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8993. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8994. shlibpath_var=LD_LIBRARY_PATH
  8995. shlibpath_overrides_runpath=yes
  8996. if test "$with_gnu_ld" = yes; then
  8997. need_lib_prefix=no
  8998. fi
  8999. need_version=yes
  9000. ;;
  9001. sysv4 | sysv4.3*)
  9002. version_type=linux
  9003. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9004. soname_spec='${libname}${release}${shared_ext}$major'
  9005. shlibpath_var=LD_LIBRARY_PATH
  9006. case $host_vendor in
  9007. sni)
  9008. shlibpath_overrides_runpath=no
  9009. need_lib_prefix=no
  9010. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9011. runpath_var=LD_RUN_PATH
  9012. ;;
  9013. siemens)
  9014. need_lib_prefix=no
  9015. ;;
  9016. motorola)
  9017. need_lib_prefix=no
  9018. need_version=no
  9019. shlibpath_overrides_runpath=no
  9020. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9021. ;;
  9022. esac
  9023. ;;
  9024. sysv4*MP*)
  9025. if test -d /usr/nec ;then
  9026. version_type=linux
  9027. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9028. soname_spec='$libname${shared_ext}.$major'
  9029. shlibpath_var=LD_LIBRARY_PATH
  9030. fi
  9031. ;;
  9032. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9033. version_type=freebsd-elf
  9034. need_lib_prefix=no
  9035. need_version=no
  9036. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9037. soname_spec='${libname}${release}${shared_ext}$major'
  9038. shlibpath_var=LD_LIBRARY_PATH
  9039. hardcode_into_libs=yes
  9040. if test "$with_gnu_ld" = yes; then
  9041. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9042. shlibpath_overrides_runpath=no
  9043. else
  9044. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9045. shlibpath_overrides_runpath=yes
  9046. case $host_os in
  9047. sco3.2v5*)
  9048. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9049. ;;
  9050. esac
  9051. fi
  9052. sys_lib_dlsearch_path_spec='/usr/lib'
  9053. ;;
  9054. uts4*)
  9055. version_type=linux
  9056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9057. soname_spec='${libname}${release}${shared_ext}$major'
  9058. shlibpath_var=LD_LIBRARY_PATH
  9059. ;;
  9060. *)
  9061. dynamic_linker=no
  9062. ;;
  9063. esac
  9064. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  9065. echo "${ECHO_T}$dynamic_linker" >&6; }
  9066. test "$dynamic_linker" = no && can_build_shared=no
  9067. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9068. echo $ECHO_N "(cached) $ECHO_C" >&6
  9069. else
  9070. lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  9071. fi
  9072. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9073. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9074. echo $ECHO_N "(cached) $ECHO_C" >&6
  9075. else
  9076. lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  9077. fi
  9078. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9079. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9080. if test "$GCC" = yes; then
  9081. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9082. fi
  9083. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  9084. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  9085. hardcode_action=
  9086. if test -n "$hardcode_libdir_flag_spec" || \
  9087. test -n "$runpath_var" || \
  9088. test "X$hardcode_automatic" = "Xyes" ; then
  9089. # We can hardcode non-existant directories.
  9090. if test "$hardcode_direct" != no &&
  9091. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9092. # have to relink, otherwise we might link with an installed library
  9093. # when we should be linking with a yet-to-be-installed one
  9094. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9095. test "$hardcode_minus_L" != no; then
  9096. # Linking always hardcodes the temporary library directory.
  9097. hardcode_action=relink
  9098. else
  9099. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9100. hardcode_action=immediate
  9101. fi
  9102. else
  9103. # We cannot hardcode anything, or else we can only hardcode existing
  9104. # directories.
  9105. hardcode_action=unsupported
  9106. fi
  9107. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  9108. echo "${ECHO_T}$hardcode_action" >&6; }
  9109. if test "$hardcode_action" = relink; then
  9110. # Fast installation is not supported
  9111. enable_fast_install=no
  9112. elif test "$shlibpath_overrides_runpath" = yes ||
  9113. test "$enable_shared" = no; then
  9114. # Fast installation is not necessary
  9115. enable_fast_install=needless
  9116. fi
  9117. striplib=
  9118. old_striplib=
  9119. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  9120. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  9121. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  9122. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9123. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9124. { echo "$as_me:$LINENO: result: yes" >&5
  9125. echo "${ECHO_T}yes" >&6; }
  9126. else
  9127. # FIXME - insert some real tests, host_os isn't really good enough
  9128. case $host_os in
  9129. darwin*)
  9130. if test -n "$STRIP" ; then
  9131. striplib="$STRIP -x"
  9132. old_striplib="$STRIP -S"
  9133. { echo "$as_me:$LINENO: result: yes" >&5
  9134. echo "${ECHO_T}yes" >&6; }
  9135. else
  9136. { echo "$as_me:$LINENO: result: no" >&5
  9137. echo "${ECHO_T}no" >&6; }
  9138. fi
  9139. ;;
  9140. *)
  9141. { echo "$as_me:$LINENO: result: no" >&5
  9142. echo "${ECHO_T}no" >&6; }
  9143. ;;
  9144. esac
  9145. fi
  9146. if test "x$enable_dlopen" != xyes; then
  9147. enable_dlopen=unknown
  9148. enable_dlopen_self=unknown
  9149. enable_dlopen_self_static=unknown
  9150. else
  9151. lt_cv_dlopen=no
  9152. lt_cv_dlopen_libs=
  9153. case $host_os in
  9154. beos*)
  9155. lt_cv_dlopen="load_add_on"
  9156. lt_cv_dlopen_libs=
  9157. lt_cv_dlopen_self=yes
  9158. ;;
  9159. mingw* | pw32*)
  9160. lt_cv_dlopen="LoadLibrary"
  9161. lt_cv_dlopen_libs=
  9162. ;;
  9163. cygwin*)
  9164. lt_cv_dlopen="dlopen"
  9165. lt_cv_dlopen_libs=
  9166. ;;
  9167. darwin*)
  9168. # if libdl is installed we need to link against it
  9169. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9170. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  9171. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9172. echo $ECHO_N "(cached) $ECHO_C" >&6
  9173. else
  9174. ac_check_lib_save_LIBS=$LIBS
  9175. LIBS="-ldl $LIBS"
  9176. cat >conftest.$ac_ext <<_ACEOF
  9177. /* confdefs.h. */
  9178. _ACEOF
  9179. cat confdefs.h >>conftest.$ac_ext
  9180. cat >>conftest.$ac_ext <<_ACEOF
  9181. /* end confdefs.h. */
  9182. /* Override any GCC internal prototype to avoid an error.
  9183. Use char because int might match the return type of a GCC
  9184. builtin and then its argument prototype would still apply. */
  9185. #ifdef __cplusplus
  9186. extern "C"
  9187. #endif
  9188. char dlopen ();
  9189. int
  9190. main ()
  9191. {
  9192. return dlopen ();
  9193. ;
  9194. return 0;
  9195. }
  9196. _ACEOF
  9197. rm -f conftest.$ac_objext conftest$ac_exeext
  9198. if { (ac_try="$ac_link"
  9199. case "(($ac_try" in
  9200. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9201. *) ac_try_echo=$ac_try;;
  9202. esac
  9203. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9204. (eval "$ac_link") 2>conftest.er1
  9205. ac_status=$?
  9206. grep -v '^ *+' conftest.er1 >conftest.err
  9207. rm -f conftest.er1
  9208. cat conftest.err >&5
  9209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9210. (exit $ac_status); } && {
  9211. test -z "$ac_c_werror_flag" ||
  9212. test ! -s conftest.err
  9213. } && test -s conftest$ac_exeext &&
  9214. $as_test_x conftest$ac_exeext; then
  9215. ac_cv_lib_dl_dlopen=yes
  9216. else
  9217. echo "$as_me: failed program was:" >&5
  9218. sed 's/^/| /' conftest.$ac_ext >&5
  9219. ac_cv_lib_dl_dlopen=no
  9220. fi
  9221. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9222. conftest$ac_exeext conftest.$ac_ext
  9223. LIBS=$ac_check_lib_save_LIBS
  9224. fi
  9225. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9226. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  9227. if test $ac_cv_lib_dl_dlopen = yes; then
  9228. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9229. else
  9230. lt_cv_dlopen="dyld"
  9231. lt_cv_dlopen_libs=
  9232. lt_cv_dlopen_self=yes
  9233. fi
  9234. ;;
  9235. *)
  9236. { echo "$as_me:$LINENO: checking for shl_load" >&5
  9237. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  9238. if test "${ac_cv_func_shl_load+set}" = set; then
  9239. echo $ECHO_N "(cached) $ECHO_C" >&6
  9240. else
  9241. cat >conftest.$ac_ext <<_ACEOF
  9242. /* confdefs.h. */
  9243. _ACEOF
  9244. cat confdefs.h >>conftest.$ac_ext
  9245. cat >>conftest.$ac_ext <<_ACEOF
  9246. /* end confdefs.h. */
  9247. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  9248. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9249. #define shl_load innocuous_shl_load
  9250. /* System header to define __stub macros and hopefully few prototypes,
  9251. which can conflict with char shl_load (); below.
  9252. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9253. <limits.h> exists even on freestanding compilers. */
  9254. #ifdef __STDC__
  9255. # include <limits.h>
  9256. #else
  9257. # include <assert.h>
  9258. #endif
  9259. #undef shl_load
  9260. /* Override any GCC internal prototype to avoid an error.
  9261. Use char because int might match the return type of a GCC
  9262. builtin and then its argument prototype would still apply. */
  9263. #ifdef __cplusplus
  9264. extern "C"
  9265. #endif
  9266. char shl_load ();
  9267. /* The GNU C library defines this for functions which it implements
  9268. to always fail with ENOSYS. Some functions are actually named
  9269. something starting with __ and the normal name is an alias. */
  9270. #if defined __stub_shl_load || defined __stub___shl_load
  9271. choke me
  9272. #endif
  9273. int
  9274. main ()
  9275. {
  9276. return shl_load ();
  9277. ;
  9278. return 0;
  9279. }
  9280. _ACEOF
  9281. rm -f conftest.$ac_objext conftest$ac_exeext
  9282. if { (ac_try="$ac_link"
  9283. case "(($ac_try" in
  9284. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9285. *) ac_try_echo=$ac_try;;
  9286. esac
  9287. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9288. (eval "$ac_link") 2>conftest.er1
  9289. ac_status=$?
  9290. grep -v '^ *+' conftest.er1 >conftest.err
  9291. rm -f conftest.er1
  9292. cat conftest.err >&5
  9293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9294. (exit $ac_status); } && {
  9295. test -z "$ac_c_werror_flag" ||
  9296. test ! -s conftest.err
  9297. } && test -s conftest$ac_exeext &&
  9298. $as_test_x conftest$ac_exeext; then
  9299. ac_cv_func_shl_load=yes
  9300. else
  9301. echo "$as_me: failed program was:" >&5
  9302. sed 's/^/| /' conftest.$ac_ext >&5
  9303. ac_cv_func_shl_load=no
  9304. fi
  9305. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9306. conftest$ac_exeext conftest.$ac_ext
  9307. fi
  9308. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  9309. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  9310. if test $ac_cv_func_shl_load = yes; then
  9311. lt_cv_dlopen="shl_load"
  9312. else
  9313. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  9314. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  9315. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  9316. echo $ECHO_N "(cached) $ECHO_C" >&6
  9317. else
  9318. ac_check_lib_save_LIBS=$LIBS
  9319. LIBS="-ldld $LIBS"
  9320. cat >conftest.$ac_ext <<_ACEOF
  9321. /* confdefs.h. */
  9322. _ACEOF
  9323. cat confdefs.h >>conftest.$ac_ext
  9324. cat >>conftest.$ac_ext <<_ACEOF
  9325. /* end confdefs.h. */
  9326. /* Override any GCC internal prototype to avoid an error.
  9327. Use char because int might match the return type of a GCC
  9328. builtin and then its argument prototype would still apply. */
  9329. #ifdef __cplusplus
  9330. extern "C"
  9331. #endif
  9332. char shl_load ();
  9333. int
  9334. main ()
  9335. {
  9336. return shl_load ();
  9337. ;
  9338. return 0;
  9339. }
  9340. _ACEOF
  9341. rm -f conftest.$ac_objext conftest$ac_exeext
  9342. if { (ac_try="$ac_link"
  9343. case "(($ac_try" in
  9344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9345. *) ac_try_echo=$ac_try;;
  9346. esac
  9347. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9348. (eval "$ac_link") 2>conftest.er1
  9349. ac_status=$?
  9350. grep -v '^ *+' conftest.er1 >conftest.err
  9351. rm -f conftest.er1
  9352. cat conftest.err >&5
  9353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9354. (exit $ac_status); } && {
  9355. test -z "$ac_c_werror_flag" ||
  9356. test ! -s conftest.err
  9357. } && test -s conftest$ac_exeext &&
  9358. $as_test_x conftest$ac_exeext; then
  9359. ac_cv_lib_dld_shl_load=yes
  9360. else
  9361. echo "$as_me: failed program was:" >&5
  9362. sed 's/^/| /' conftest.$ac_ext >&5
  9363. ac_cv_lib_dld_shl_load=no
  9364. fi
  9365. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9366. conftest$ac_exeext conftest.$ac_ext
  9367. LIBS=$ac_check_lib_save_LIBS
  9368. fi
  9369. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  9370. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  9371. if test $ac_cv_lib_dld_shl_load = yes; then
  9372. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9373. else
  9374. { echo "$as_me:$LINENO: checking for dlopen" >&5
  9375. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  9376. if test "${ac_cv_func_dlopen+set}" = set; then
  9377. echo $ECHO_N "(cached) $ECHO_C" >&6
  9378. else
  9379. cat >conftest.$ac_ext <<_ACEOF
  9380. /* confdefs.h. */
  9381. _ACEOF
  9382. cat confdefs.h >>conftest.$ac_ext
  9383. cat >>conftest.$ac_ext <<_ACEOF
  9384. /* end confdefs.h. */
  9385. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  9386. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9387. #define dlopen innocuous_dlopen
  9388. /* System header to define __stub macros and hopefully few prototypes,
  9389. which can conflict with char dlopen (); below.
  9390. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9391. <limits.h> exists even on freestanding compilers. */
  9392. #ifdef __STDC__
  9393. # include <limits.h>
  9394. #else
  9395. # include <assert.h>
  9396. #endif
  9397. #undef dlopen
  9398. /* Override any GCC internal prototype to avoid an error.
  9399. Use char because int might match the return type of a GCC
  9400. builtin and then its argument prototype would still apply. */
  9401. #ifdef __cplusplus
  9402. extern "C"
  9403. #endif
  9404. char dlopen ();
  9405. /* The GNU C library defines this for functions which it implements
  9406. to always fail with ENOSYS. Some functions are actually named
  9407. something starting with __ and the normal name is an alias. */
  9408. #if defined __stub_dlopen || defined __stub___dlopen
  9409. choke me
  9410. #endif
  9411. int
  9412. main ()
  9413. {
  9414. return dlopen ();
  9415. ;
  9416. return 0;
  9417. }
  9418. _ACEOF
  9419. rm -f conftest.$ac_objext conftest$ac_exeext
  9420. if { (ac_try="$ac_link"
  9421. case "(($ac_try" in
  9422. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9423. *) ac_try_echo=$ac_try;;
  9424. esac
  9425. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9426. (eval "$ac_link") 2>conftest.er1
  9427. ac_status=$?
  9428. grep -v '^ *+' conftest.er1 >conftest.err
  9429. rm -f conftest.er1
  9430. cat conftest.err >&5
  9431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9432. (exit $ac_status); } && {
  9433. test -z "$ac_c_werror_flag" ||
  9434. test ! -s conftest.err
  9435. } && test -s conftest$ac_exeext &&
  9436. $as_test_x conftest$ac_exeext; then
  9437. ac_cv_func_dlopen=yes
  9438. else
  9439. echo "$as_me: failed program was:" >&5
  9440. sed 's/^/| /' conftest.$ac_ext >&5
  9441. ac_cv_func_dlopen=no
  9442. fi
  9443. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9444. conftest$ac_exeext conftest.$ac_ext
  9445. fi
  9446. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  9447. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  9448. if test $ac_cv_func_dlopen = yes; then
  9449. lt_cv_dlopen="dlopen"
  9450. else
  9451. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9452. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  9453. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9454. echo $ECHO_N "(cached) $ECHO_C" >&6
  9455. else
  9456. ac_check_lib_save_LIBS=$LIBS
  9457. LIBS="-ldl $LIBS"
  9458. cat >conftest.$ac_ext <<_ACEOF
  9459. /* confdefs.h. */
  9460. _ACEOF
  9461. cat confdefs.h >>conftest.$ac_ext
  9462. cat >>conftest.$ac_ext <<_ACEOF
  9463. /* end confdefs.h. */
  9464. /* Override any GCC internal prototype to avoid an error.
  9465. Use char because int might match the return type of a GCC
  9466. builtin and then its argument prototype would still apply. */
  9467. #ifdef __cplusplus
  9468. extern "C"
  9469. #endif
  9470. char dlopen ();
  9471. int
  9472. main ()
  9473. {
  9474. return dlopen ();
  9475. ;
  9476. return 0;
  9477. }
  9478. _ACEOF
  9479. rm -f conftest.$ac_objext conftest$ac_exeext
  9480. if { (ac_try="$ac_link"
  9481. case "(($ac_try" in
  9482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9483. *) ac_try_echo=$ac_try;;
  9484. esac
  9485. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9486. (eval "$ac_link") 2>conftest.er1
  9487. ac_status=$?
  9488. grep -v '^ *+' conftest.er1 >conftest.err
  9489. rm -f conftest.er1
  9490. cat conftest.err >&5
  9491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9492. (exit $ac_status); } && {
  9493. test -z "$ac_c_werror_flag" ||
  9494. test ! -s conftest.err
  9495. } && test -s conftest$ac_exeext &&
  9496. $as_test_x conftest$ac_exeext; then
  9497. ac_cv_lib_dl_dlopen=yes
  9498. else
  9499. echo "$as_me: failed program was:" >&5
  9500. sed 's/^/| /' conftest.$ac_ext >&5
  9501. ac_cv_lib_dl_dlopen=no
  9502. fi
  9503. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9504. conftest$ac_exeext conftest.$ac_ext
  9505. LIBS=$ac_check_lib_save_LIBS
  9506. fi
  9507. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9508. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  9509. if test $ac_cv_lib_dl_dlopen = yes; then
  9510. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9511. else
  9512. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  9513. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  9514. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  9515. echo $ECHO_N "(cached) $ECHO_C" >&6
  9516. else
  9517. ac_check_lib_save_LIBS=$LIBS
  9518. LIBS="-lsvld $LIBS"
  9519. cat >conftest.$ac_ext <<_ACEOF
  9520. /* confdefs.h. */
  9521. _ACEOF
  9522. cat confdefs.h >>conftest.$ac_ext
  9523. cat >>conftest.$ac_ext <<_ACEOF
  9524. /* end confdefs.h. */
  9525. /* Override any GCC internal prototype to avoid an error.
  9526. Use char because int might match the return type of a GCC
  9527. builtin and then its argument prototype would still apply. */
  9528. #ifdef __cplusplus
  9529. extern "C"
  9530. #endif
  9531. char dlopen ();
  9532. int
  9533. main ()
  9534. {
  9535. return dlopen ();
  9536. ;
  9537. return 0;
  9538. }
  9539. _ACEOF
  9540. rm -f conftest.$ac_objext conftest$ac_exeext
  9541. if { (ac_try="$ac_link"
  9542. case "(($ac_try" in
  9543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9544. *) ac_try_echo=$ac_try;;
  9545. esac
  9546. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9547. (eval "$ac_link") 2>conftest.er1
  9548. ac_status=$?
  9549. grep -v '^ *+' conftest.er1 >conftest.err
  9550. rm -f conftest.er1
  9551. cat conftest.err >&5
  9552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9553. (exit $ac_status); } && {
  9554. test -z "$ac_c_werror_flag" ||
  9555. test ! -s conftest.err
  9556. } && test -s conftest$ac_exeext &&
  9557. $as_test_x conftest$ac_exeext; then
  9558. ac_cv_lib_svld_dlopen=yes
  9559. else
  9560. echo "$as_me: failed program was:" >&5
  9561. sed 's/^/| /' conftest.$ac_ext >&5
  9562. ac_cv_lib_svld_dlopen=no
  9563. fi
  9564. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9565. conftest$ac_exeext conftest.$ac_ext
  9566. LIBS=$ac_check_lib_save_LIBS
  9567. fi
  9568. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  9569. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  9570. if test $ac_cv_lib_svld_dlopen = yes; then
  9571. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9572. else
  9573. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  9574. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  9575. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  9576. echo $ECHO_N "(cached) $ECHO_C" >&6
  9577. else
  9578. ac_check_lib_save_LIBS=$LIBS
  9579. LIBS="-ldld $LIBS"
  9580. cat >conftest.$ac_ext <<_ACEOF
  9581. /* confdefs.h. */
  9582. _ACEOF
  9583. cat confdefs.h >>conftest.$ac_ext
  9584. cat >>conftest.$ac_ext <<_ACEOF
  9585. /* end confdefs.h. */
  9586. /* Override any GCC internal prototype to avoid an error.
  9587. Use char because int might match the return type of a GCC
  9588. builtin and then its argument prototype would still apply. */
  9589. #ifdef __cplusplus
  9590. extern "C"
  9591. #endif
  9592. char dld_link ();
  9593. int
  9594. main ()
  9595. {
  9596. return dld_link ();
  9597. ;
  9598. return 0;
  9599. }
  9600. _ACEOF
  9601. rm -f conftest.$ac_objext conftest$ac_exeext
  9602. if { (ac_try="$ac_link"
  9603. case "(($ac_try" in
  9604. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9605. *) ac_try_echo=$ac_try;;
  9606. esac
  9607. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9608. (eval "$ac_link") 2>conftest.er1
  9609. ac_status=$?
  9610. grep -v '^ *+' conftest.er1 >conftest.err
  9611. rm -f conftest.er1
  9612. cat conftest.err >&5
  9613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9614. (exit $ac_status); } && {
  9615. test -z "$ac_c_werror_flag" ||
  9616. test ! -s conftest.err
  9617. } && test -s conftest$ac_exeext &&
  9618. $as_test_x conftest$ac_exeext; then
  9619. ac_cv_lib_dld_dld_link=yes
  9620. else
  9621. echo "$as_me: failed program was:" >&5
  9622. sed 's/^/| /' conftest.$ac_ext >&5
  9623. ac_cv_lib_dld_dld_link=no
  9624. fi
  9625. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9626. conftest$ac_exeext conftest.$ac_ext
  9627. LIBS=$ac_check_lib_save_LIBS
  9628. fi
  9629. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9630. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  9631. if test $ac_cv_lib_dld_dld_link = yes; then
  9632. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9633. fi
  9634. fi
  9635. fi
  9636. fi
  9637. fi
  9638. fi
  9639. ;;
  9640. esac
  9641. if test "x$lt_cv_dlopen" != xno; then
  9642. enable_dlopen=yes
  9643. else
  9644. enable_dlopen=no
  9645. fi
  9646. case $lt_cv_dlopen in
  9647. dlopen)
  9648. save_CPPFLAGS="$CPPFLAGS"
  9649. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9650. save_LDFLAGS="$LDFLAGS"
  9651. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9652. save_LIBS="$LIBS"
  9653. LIBS="$lt_cv_dlopen_libs $LIBS"
  9654. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9655. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  9656. if test "${lt_cv_dlopen_self+set}" = set; then
  9657. echo $ECHO_N "(cached) $ECHO_C" >&6
  9658. else
  9659. if test "$cross_compiling" = yes; then :
  9660. lt_cv_dlopen_self=cross
  9661. else
  9662. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9663. lt_status=$lt_dlunknown
  9664. cat > conftest.$ac_ext <<EOF
  9665. #line 10715 "configure"
  9666. #include "confdefs.h"
  9667. #if HAVE_DLFCN_H
  9668. #include <dlfcn.h>
  9669. #endif
  9670. #include <stdio.h>
  9671. #ifdef RTLD_GLOBAL
  9672. # define LT_DLGLOBAL RTLD_GLOBAL
  9673. #else
  9674. # ifdef DL_GLOBAL
  9675. # define LT_DLGLOBAL DL_GLOBAL
  9676. # else
  9677. # define LT_DLGLOBAL 0
  9678. # endif
  9679. #endif
  9680. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9681. find out it does not work in some platform. */
  9682. #ifndef LT_DLLAZY_OR_NOW
  9683. # ifdef RTLD_LAZY
  9684. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9685. # else
  9686. # ifdef DL_LAZY
  9687. # define LT_DLLAZY_OR_NOW DL_LAZY
  9688. # else
  9689. # ifdef RTLD_NOW
  9690. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9691. # else
  9692. # ifdef DL_NOW
  9693. # define LT_DLLAZY_OR_NOW DL_NOW
  9694. # else
  9695. # define LT_DLLAZY_OR_NOW 0
  9696. # endif
  9697. # endif
  9698. # endif
  9699. # endif
  9700. #endif
  9701. #ifdef __cplusplus
  9702. extern "C" void exit (int);
  9703. #endif
  9704. void fnord() { int i=42;}
  9705. int main ()
  9706. {
  9707. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9708. int status = $lt_dlunknown;
  9709. if (self)
  9710. {
  9711. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9712. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9713. /* dlclose (self); */
  9714. }
  9715. else
  9716. puts (dlerror ());
  9717. exit (status);
  9718. }
  9719. EOF
  9720. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9721. (eval $ac_link) 2>&5
  9722. ac_status=$?
  9723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9724. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9725. (./conftest; exit; ) >&5 2>/dev/null
  9726. lt_status=$?
  9727. case x$lt_status in
  9728. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9729. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9730. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9731. esac
  9732. else :
  9733. # compilation failed
  9734. lt_cv_dlopen_self=no
  9735. fi
  9736. fi
  9737. rm -fr conftest*
  9738. fi
  9739. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9740. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  9741. if test "x$lt_cv_dlopen_self" = xyes; then
  9742. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9743. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9744. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  9745. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9746. echo $ECHO_N "(cached) $ECHO_C" >&6
  9747. else
  9748. if test "$cross_compiling" = yes; then :
  9749. lt_cv_dlopen_self_static=cross
  9750. else
  9751. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9752. lt_status=$lt_dlunknown
  9753. cat > conftest.$ac_ext <<EOF
  9754. #line 10815 "configure"
  9755. #include "confdefs.h"
  9756. #if HAVE_DLFCN_H
  9757. #include <dlfcn.h>
  9758. #endif
  9759. #include <stdio.h>
  9760. #ifdef RTLD_GLOBAL
  9761. # define LT_DLGLOBAL RTLD_GLOBAL
  9762. #else
  9763. # ifdef DL_GLOBAL
  9764. # define LT_DLGLOBAL DL_GLOBAL
  9765. # else
  9766. # define LT_DLGLOBAL 0
  9767. # endif
  9768. #endif
  9769. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9770. find out it does not work in some platform. */
  9771. #ifndef LT_DLLAZY_OR_NOW
  9772. # ifdef RTLD_LAZY
  9773. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9774. # else
  9775. # ifdef DL_LAZY
  9776. # define LT_DLLAZY_OR_NOW DL_LAZY
  9777. # else
  9778. # ifdef RTLD_NOW
  9779. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9780. # else
  9781. # ifdef DL_NOW
  9782. # define LT_DLLAZY_OR_NOW DL_NOW
  9783. # else
  9784. # define LT_DLLAZY_OR_NOW 0
  9785. # endif
  9786. # endif
  9787. # endif
  9788. # endif
  9789. #endif
  9790. #ifdef __cplusplus
  9791. extern "C" void exit (int);
  9792. #endif
  9793. void fnord() { int i=42;}
  9794. int main ()
  9795. {
  9796. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9797. int status = $lt_dlunknown;
  9798. if (self)
  9799. {
  9800. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9801. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9802. /* dlclose (self); */
  9803. }
  9804. else
  9805. puts (dlerror ());
  9806. exit (status);
  9807. }
  9808. EOF
  9809. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9810. (eval $ac_link) 2>&5
  9811. ac_status=$?
  9812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9813. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9814. (./conftest; exit; ) >&5 2>/dev/null
  9815. lt_status=$?
  9816. case x$lt_status in
  9817. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9818. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9819. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9820. esac
  9821. else :
  9822. # compilation failed
  9823. lt_cv_dlopen_self_static=no
  9824. fi
  9825. fi
  9826. rm -fr conftest*
  9827. fi
  9828. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9829. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  9830. fi
  9831. CPPFLAGS="$save_CPPFLAGS"
  9832. LDFLAGS="$save_LDFLAGS"
  9833. LIBS="$save_LIBS"
  9834. ;;
  9835. esac
  9836. case $lt_cv_dlopen_self in
  9837. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9838. *) enable_dlopen_self=unknown ;;
  9839. esac
  9840. case $lt_cv_dlopen_self_static in
  9841. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9842. *) enable_dlopen_self_static=unknown ;;
  9843. esac
  9844. fi
  9845. # Report which library types will actually be built
  9846. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9847. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  9848. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9849. echo "${ECHO_T}$can_build_shared" >&6; }
  9850. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9851. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  9852. test "$can_build_shared" = "no" && enable_shared=no
  9853. # On AIX, shared libraries and static libraries use the same namespace, and
  9854. # are all built from PIC.
  9855. case $host_os in
  9856. aix3*)
  9857. test "$enable_shared" = yes && enable_static=no
  9858. if test -n "$RANLIB"; then
  9859. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9860. postinstall_cmds='$RANLIB $lib'
  9861. fi
  9862. ;;
  9863. aix[4-9]*)
  9864. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9865. test "$enable_shared" = yes && enable_static=no
  9866. fi
  9867. ;;
  9868. esac
  9869. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  9870. echo "${ECHO_T}$enable_shared" >&6; }
  9871. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9872. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  9873. # Make sure either enable_shared or enable_static is yes.
  9874. test "$enable_shared" = yes || enable_static=yes
  9875. { echo "$as_me:$LINENO: result: $enable_static" >&5
  9876. echo "${ECHO_T}$enable_static" >&6; }
  9877. # The else clause should only fire when bootstrapping the
  9878. # libtool distribution, otherwise you forgot to ship ltmain.sh
  9879. # with your package, and you will get complaints that there are
  9880. # no rules to generate ltmain.sh.
  9881. if test -f "$ltmain"; then
  9882. # See if we are running on zsh, and set the options which allow our commands through
  9883. # without removal of \ escapes.
  9884. if test -n "${ZSH_VERSION+set}" ; then
  9885. setopt NO_GLOB_SUBST
  9886. fi
  9887. # Now quote all the things that may contain metacharacters while being
  9888. # careful not to overquote the AC_SUBSTed values. We take copies of the
  9889. # variables and quote the copies for generation of the libtool script.
  9890. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  9891. SED SHELL STRIP \
  9892. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  9893. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  9894. deplibs_check_method reload_flag reload_cmds need_locks \
  9895. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  9896. lt_cv_sys_global_symbol_to_c_name_address \
  9897. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  9898. old_postinstall_cmds old_postuninstall_cmds \
  9899. compiler \
  9900. CC \
  9901. LD \
  9902. lt_prog_compiler_wl \
  9903. lt_prog_compiler_pic \
  9904. lt_prog_compiler_static \
  9905. lt_prog_compiler_no_builtin_flag \
  9906. export_dynamic_flag_spec \
  9907. thread_safe_flag_spec \
  9908. whole_archive_flag_spec \
  9909. enable_shared_with_static_runtimes \
  9910. old_archive_cmds \
  9911. old_archive_from_new_cmds \
  9912. predep_objects \
  9913. postdep_objects \
  9914. predeps \
  9915. postdeps \
  9916. compiler_lib_search_path \
  9917. compiler_lib_search_dirs \
  9918. archive_cmds \
  9919. archive_expsym_cmds \
  9920. postinstall_cmds \
  9921. postuninstall_cmds \
  9922. old_archive_from_expsyms_cmds \
  9923. allow_undefined_flag \
  9924. no_undefined_flag \
  9925. export_symbols_cmds \
  9926. hardcode_libdir_flag_spec \
  9927. hardcode_libdir_flag_spec_ld \
  9928. hardcode_libdir_separator \
  9929. hardcode_automatic \
  9930. module_cmds \
  9931. module_expsym_cmds \
  9932. lt_cv_prog_compiler_c_o \
  9933. fix_srcfile_path \
  9934. exclude_expsyms \
  9935. include_expsyms; do
  9936. case $var in
  9937. old_archive_cmds | \
  9938. old_archive_from_new_cmds | \
  9939. archive_cmds | \
  9940. archive_expsym_cmds | \
  9941. module_cmds | \
  9942. module_expsym_cmds | \
  9943. old_archive_from_expsyms_cmds | \
  9944. export_symbols_cmds | \
  9945. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  9946. postinstall_cmds | postuninstall_cmds | \
  9947. old_postinstall_cmds | old_postuninstall_cmds | \
  9948. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  9949. # Double-quote double-evaled strings.
  9950. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  9951. ;;
  9952. *)
  9953. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  9954. ;;
  9955. esac
  9956. done
  9957. case $lt_echo in
  9958. *'\$0 --fallback-echo"')
  9959. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  9960. ;;
  9961. esac
  9962. cfgfile="${ofile}T"
  9963. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  9964. $rm -f "$cfgfile"
  9965. { echo "$as_me:$LINENO: creating $ofile" >&5
  9966. echo "$as_me: creating $ofile" >&6;}
  9967. cat <<__EOF__ >> "$cfgfile"
  9968. #! $SHELL
  9969. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  9970. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  9971. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  9972. #
  9973. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  9974. # Free Software Foundation, Inc.
  9975. #
  9976. # This file is part of GNU Libtool:
  9977. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  9978. #
  9979. # This program is free software; you can redistribute it and/or modify
  9980. # it under the terms of the GNU General Public License as published by
  9981. # the Free Software Foundation; either version 2 of the License, or
  9982. # (at your option) any later version.
  9983. #
  9984. # This program is distributed in the hope that it will be useful, but
  9985. # WITHOUT ANY WARRANTY; without even the implied warranty of
  9986. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9987. # General Public License for more details.
  9988. #
  9989. # You should have received a copy of the GNU General Public License
  9990. # along with this program; if not, write to the Free Software
  9991. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  9992. #
  9993. # As a special exception to the GNU General Public License, if you
  9994. # distribute this file as part of a program that contains a
  9995. # configuration script generated by Autoconf, you may include it under
  9996. # the same distribution terms that you use for the rest of that program.
  9997. # A sed program that does not truncate output.
  9998. SED=$lt_SED
  9999. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  10000. Xsed="$SED -e 1s/^X//"
  10001. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10002. # if CDPATH is set.
  10003. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10004. # The names of the tagged configurations supported by this script.
  10005. available_tags=
  10006. # ### BEGIN LIBTOOL CONFIG
  10007. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  10008. # Shell to use when invoking shell scripts.
  10009. SHELL=$lt_SHELL
  10010. # Whether or not to build shared libraries.
  10011. build_libtool_libs=$enable_shared
  10012. # Whether or not to build static libraries.
  10013. build_old_libs=$enable_static
  10014. # Whether or not to add -lc for building shared libraries.
  10015. build_libtool_need_lc=$archive_cmds_need_lc
  10016. # Whether or not to disallow shared libs when runtime libs are static
  10017. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  10018. # Whether or not to optimize for fast installation.
  10019. fast_install=$enable_fast_install
  10020. # The host system.
  10021. host_alias=$host_alias
  10022. host=$host
  10023. host_os=$host_os
  10024. # The build system.
  10025. build_alias=$build_alias
  10026. build=$build
  10027. build_os=$build_os
  10028. # An echo program that does not interpret backslashes.
  10029. echo=$lt_echo
  10030. # The archiver.
  10031. AR=$lt_AR
  10032. AR_FLAGS=$lt_AR_FLAGS
  10033. # A C compiler.
  10034. LTCC=$lt_LTCC
  10035. # LTCC compiler flags.
  10036. LTCFLAGS=$lt_LTCFLAGS
  10037. # A language-specific compiler.
  10038. CC=$lt_compiler
  10039. # Is the compiler the GNU C compiler?
  10040. with_gcc=$GCC
  10041. # An ERE matcher.
  10042. EGREP=$lt_EGREP
  10043. # The linker used to build libraries.
  10044. LD=$lt_LD
  10045. # Whether we need hard or soft links.
  10046. LN_S=$lt_LN_S
  10047. # A BSD-compatible nm program.
  10048. NM=$lt_NM
  10049. # A symbol stripping program
  10050. STRIP=$lt_STRIP
  10051. # Used to examine libraries when file_magic_cmd begins "file"
  10052. MAGIC_CMD=$MAGIC_CMD
  10053. # Used on cygwin: DLL creation program.
  10054. DLLTOOL="$DLLTOOL"
  10055. # Used on cygwin: object dumper.
  10056. OBJDUMP="$OBJDUMP"
  10057. # Used on cygwin: assembler.
  10058. AS="$AS"
  10059. # The name of the directory that contains temporary libtool files.
  10060. objdir=$objdir
  10061. # How to create reloadable object files.
  10062. reload_flag=$lt_reload_flag
  10063. reload_cmds=$lt_reload_cmds
  10064. # How to pass a linker flag through the compiler.
  10065. wl=$lt_lt_prog_compiler_wl
  10066. # Object file suffix (normally "o").
  10067. objext="$ac_objext"
  10068. # Old archive suffix (normally "a").
  10069. libext="$libext"
  10070. # Shared library suffix (normally ".so").
  10071. shrext_cmds='$shrext_cmds'
  10072. # Executable file suffix (normally "").
  10073. exeext="$exeext"
  10074. # Additional compiler flags for building library objects.
  10075. pic_flag=$lt_lt_prog_compiler_pic
  10076. pic_mode=$pic_mode
  10077. # What is the maximum length of a command?
  10078. max_cmd_len=$lt_cv_sys_max_cmd_len
  10079. # Does compiler simultaneously support -c and -o options?
  10080. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  10081. # Must we lock files when doing compilation?
  10082. need_locks=$lt_need_locks
  10083. # Do we need the lib prefix for modules?
  10084. need_lib_prefix=$need_lib_prefix
  10085. # Do we need a version for libraries?
  10086. need_version=$need_version
  10087. # Whether dlopen is supported.
  10088. dlopen_support=$enable_dlopen
  10089. # Whether dlopen of programs is supported.
  10090. dlopen_self=$enable_dlopen_self
  10091. # Whether dlopen of statically linked programs is supported.
  10092. dlopen_self_static=$enable_dlopen_self_static
  10093. # Compiler flag to prevent dynamic linking.
  10094. link_static_flag=$lt_lt_prog_compiler_static
  10095. # Compiler flag to turn off builtin functions.
  10096. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  10097. # Compiler flag to allow reflexive dlopens.
  10098. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  10099. # Compiler flag to generate shared objects directly from archives.
  10100. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  10101. # Compiler flag to generate thread-safe objects.
  10102. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  10103. # Library versioning type.
  10104. version_type=$version_type
  10105. # Format of library name prefix.
  10106. libname_spec=$lt_libname_spec
  10107. # List of archive names. First name is the real one, the rest are links.
  10108. # The last name is the one that the linker finds with -lNAME.
  10109. library_names_spec=$lt_library_names_spec
  10110. # The coded name of the library, if different from the real name.
  10111. soname_spec=$lt_soname_spec
  10112. # Commands used to build and install an old-style archive.
  10113. RANLIB=$lt_RANLIB
  10114. old_archive_cmds=$lt_old_archive_cmds
  10115. old_postinstall_cmds=$lt_old_postinstall_cmds
  10116. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  10117. # Create an old-style archive from a shared archive.
  10118. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  10119. # Create a temporary old-style archive to link instead of a shared archive.
  10120. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  10121. # Commands used to build and install a shared archive.
  10122. archive_cmds=$lt_archive_cmds
  10123. archive_expsym_cmds=$lt_archive_expsym_cmds
  10124. postinstall_cmds=$lt_postinstall_cmds
  10125. postuninstall_cmds=$lt_postuninstall_cmds
  10126. # Commands used to build a loadable module (assumed same as above if empty)
  10127. module_cmds=$lt_module_cmds
  10128. module_expsym_cmds=$lt_module_expsym_cmds
  10129. # Commands to strip libraries.
  10130. old_striplib=$lt_old_striplib
  10131. striplib=$lt_striplib
  10132. # Dependencies to place before the objects being linked to create a
  10133. # shared library.
  10134. predep_objects=$lt_predep_objects
  10135. # Dependencies to place after the objects being linked to create a
  10136. # shared library.
  10137. postdep_objects=$lt_postdep_objects
  10138. # Dependencies to place before the objects being linked to create a
  10139. # shared library.
  10140. predeps=$lt_predeps
  10141. # Dependencies to place after the objects being linked to create a
  10142. # shared library.
  10143. postdeps=$lt_postdeps
  10144. # The directories searched by this compiler when creating a shared
  10145. # library
  10146. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  10147. # The library search path used internally by the compiler when linking
  10148. # a shared library.
  10149. compiler_lib_search_path=$lt_compiler_lib_search_path
  10150. # Method to check whether dependent libraries are shared objects.
  10151. deplibs_check_method=$lt_deplibs_check_method
  10152. # Command to use when deplibs_check_method == file_magic.
  10153. file_magic_cmd=$lt_file_magic_cmd
  10154. # Flag that allows shared libraries with undefined symbols to be built.
  10155. allow_undefined_flag=$lt_allow_undefined_flag
  10156. # Flag that forces no undefined symbols.
  10157. no_undefined_flag=$lt_no_undefined_flag
  10158. # Commands used to finish a libtool library installation in a directory.
  10159. finish_cmds=$lt_finish_cmds
  10160. # Same as above, but a single script fragment to be evaled but not shown.
  10161. finish_eval=$lt_finish_eval
  10162. # Take the output of nm and produce a listing of raw symbols and C names.
  10163. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  10164. # Transform the output of nm in a proper C declaration
  10165. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  10166. # Transform the output of nm in a C name address pair
  10167. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  10168. # This is the shared library runtime path variable.
  10169. runpath_var=$runpath_var
  10170. # This is the shared library path variable.
  10171. shlibpath_var=$shlibpath_var
  10172. # Is shlibpath searched before the hard-coded library search path?
  10173. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  10174. # How to hardcode a shared library path into an executable.
  10175. hardcode_action=$hardcode_action
  10176. # Whether we should hardcode library paths into libraries.
  10177. hardcode_into_libs=$hardcode_into_libs
  10178. # Flag to hardcode \$libdir into a binary during linking.
  10179. # This must work even if \$libdir does not exist.
  10180. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  10181. # If ld is used when linking, flag to hardcode \$libdir into
  10182. # a binary during linking. This must work even if \$libdir does
  10183. # not exist.
  10184. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  10185. # Whether we need a single -rpath flag with a separated argument.
  10186. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  10187. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  10188. # resulting binary.
  10189. hardcode_direct=$hardcode_direct
  10190. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  10191. # resulting binary.
  10192. hardcode_minus_L=$hardcode_minus_L
  10193. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  10194. # the resulting binary.
  10195. hardcode_shlibpath_var=$hardcode_shlibpath_var
  10196. # Set to yes if building a shared library automatically hardcodes DIR into the library
  10197. # and all subsequent libraries and executables linked against it.
  10198. hardcode_automatic=$hardcode_automatic
  10199. # Variables whose values should be saved in libtool wrapper scripts and
  10200. # restored at relink time.
  10201. variables_saved_for_relink="$variables_saved_for_relink"
  10202. # Whether libtool must link a program against all its dependency libraries.
  10203. link_all_deplibs=$link_all_deplibs
  10204. # Compile-time system search path for libraries
  10205. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  10206. # Run-time system search path for libraries
  10207. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  10208. # Fix the shell variable \$srcfile for the compiler.
  10209. fix_srcfile_path=$lt_fix_srcfile_path
  10210. # Set to yes if exported symbols are required.
  10211. always_export_symbols=$always_export_symbols
  10212. # The commands to list exported symbols.
  10213. export_symbols_cmds=$lt_export_symbols_cmds
  10214. # The commands to extract the exported symbol list from a shared archive.
  10215. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  10216. # Symbols that should not be listed in the preloaded symbols.
  10217. exclude_expsyms=$lt_exclude_expsyms
  10218. # Symbols that must always be exported.
  10219. include_expsyms=$lt_include_expsyms
  10220. # ### END LIBTOOL CONFIG
  10221. __EOF__
  10222. case $host_os in
  10223. aix3*)
  10224. cat <<\EOF >> "$cfgfile"
  10225. # AIX sometimes has problems with the GCC collect2 program. For some
  10226. # reason, if we set the COLLECT_NAMES environment variable, the problems
  10227. # vanish in a puff of smoke.
  10228. if test "X${COLLECT_NAMES+set}" != Xset; then
  10229. COLLECT_NAMES=
  10230. export COLLECT_NAMES
  10231. fi
  10232. EOF
  10233. ;;
  10234. esac
  10235. # We use sed instead of cat because bash on DJGPP gets confused if
  10236. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  10237. # text mode, it properly converts lines to CR/LF. This bash problem
  10238. # is reportedly fixed, but why not run on old versions too?
  10239. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  10240. mv -f "$cfgfile" "$ofile" || \
  10241. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  10242. chmod +x "$ofile"
  10243. else
  10244. # If there is no Makefile yet, we rely on a make rule to execute
  10245. # `config.status --recheck' to rerun these tests and create the
  10246. # libtool script then.
  10247. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  10248. if test -f "$ltmain_in"; then
  10249. test -f Makefile && make "$ltmain"
  10250. fi
  10251. fi
  10252. ac_ext=c
  10253. ac_cpp='$CPP $CPPFLAGS'
  10254. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10255. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10256. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10257. CC="$lt_save_CC"
  10258. # Check whether --with-tags was given.
  10259. if test "${with_tags+set}" = set; then
  10260. withval=$with_tags; tagnames="$withval"
  10261. fi
  10262. if test -f "$ltmain" && test -n "$tagnames"; then
  10263. if test ! -f "${ofile}"; then
  10264. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  10265. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  10266. fi
  10267. if test -z "$LTCC"; then
  10268. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  10269. if test -z "$LTCC"; then
  10270. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  10271. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  10272. else
  10273. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  10274. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  10275. fi
  10276. fi
  10277. if test -z "$LTCFLAGS"; then
  10278. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  10279. fi
  10280. # Extract list of available tagged configurations in $ofile.
  10281. # Note that this assumes the entire list is on one line.
  10282. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  10283. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10284. for tagname in $tagnames; do
  10285. IFS="$lt_save_ifs"
  10286. # Check whether tagname contains only valid characters
  10287. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  10288. "") ;;
  10289. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  10290. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  10291. { (exit 1); exit 1; }; }
  10292. ;;
  10293. esac
  10294. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  10295. then
  10296. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  10297. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  10298. { (exit 1); exit 1; }; }
  10299. fi
  10300. # Update the list of available tags.
  10301. if test -n "$tagname"; then
  10302. echo appending configuration tag \"$tagname\" to $ofile
  10303. case $tagname in
  10304. CXX)
  10305. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10306. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10307. (test "X$CXX" != "Xg++"))) ; then
  10308. ac_ext=cpp
  10309. ac_cpp='$CXXCPP $CPPFLAGS'
  10310. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10311. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10312. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10313. archive_cmds_need_lc_CXX=no
  10314. allow_undefined_flag_CXX=
  10315. always_export_symbols_CXX=no
  10316. archive_expsym_cmds_CXX=
  10317. export_dynamic_flag_spec_CXX=
  10318. hardcode_direct_CXX=no
  10319. hardcode_libdir_flag_spec_CXX=
  10320. hardcode_libdir_flag_spec_ld_CXX=
  10321. hardcode_libdir_separator_CXX=
  10322. hardcode_minus_L_CXX=no
  10323. hardcode_shlibpath_var_CXX=unsupported
  10324. hardcode_automatic_CXX=no
  10325. module_cmds_CXX=
  10326. module_expsym_cmds_CXX=
  10327. link_all_deplibs_CXX=unknown
  10328. old_archive_cmds_CXX=$old_archive_cmds
  10329. no_undefined_flag_CXX=
  10330. whole_archive_flag_spec_CXX=
  10331. enable_shared_with_static_runtimes_CXX=no
  10332. # Dependencies to place before and after the object being linked:
  10333. predep_objects_CXX=
  10334. postdep_objects_CXX=
  10335. predeps_CXX=
  10336. postdeps_CXX=
  10337. compiler_lib_search_path_CXX=
  10338. compiler_lib_search_dirs_CXX=
  10339. # Source file extension for C++ test sources.
  10340. ac_ext=cpp
  10341. # Object file extension for compiled C++ test sources.
  10342. objext=o
  10343. objext_CXX=$objext
  10344. # Code to be used in simple compile tests
  10345. lt_simple_compile_test_code="int some_variable = 0;"
  10346. # Code to be used in simple link tests
  10347. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10348. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10349. # If no C compiler was specified, use CC.
  10350. LTCC=${LTCC-"$CC"}
  10351. # If no C compiler flags were specified, use CFLAGS.
  10352. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10353. # Allow CC to be a program name with arguments.
  10354. compiler=$CC
  10355. # save warnings/boilerplate of simple test code
  10356. ac_outfile=conftest.$ac_objext
  10357. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10358. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10359. _lt_compiler_boilerplate=`cat conftest.err`
  10360. $rm conftest*
  10361. ac_outfile=conftest.$ac_objext
  10362. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10363. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10364. _lt_linker_boilerplate=`cat conftest.err`
  10365. $rm -r conftest*
  10366. # Allow CC to be a program name with arguments.
  10367. lt_save_CC=$CC
  10368. lt_save_LD=$LD
  10369. lt_save_GCC=$GCC
  10370. GCC=$GXX
  10371. lt_save_with_gnu_ld=$with_gnu_ld
  10372. lt_save_path_LD=$lt_cv_path_LD
  10373. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10374. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10375. else
  10376. $as_unset lt_cv_prog_gnu_ld
  10377. fi
  10378. if test -n "${lt_cv_path_LDCXX+set}"; then
  10379. lt_cv_path_LD=$lt_cv_path_LDCXX
  10380. else
  10381. $as_unset lt_cv_path_LD
  10382. fi
  10383. test -z "${LDCXX+set}" || LD=$LDCXX
  10384. CC=${CXX-"c++"}
  10385. compiler=$CC
  10386. compiler_CXX=$CC
  10387. for cc_temp in $compiler""; do
  10388. case $cc_temp in
  10389. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10390. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10391. \-*) ;;
  10392. *) break;;
  10393. esac
  10394. done
  10395. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10396. # We don't want -fno-exception wen compiling C++ code, so set the
  10397. # no_builtin_flag separately
  10398. if test "$GXX" = yes; then
  10399. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10400. else
  10401. lt_prog_compiler_no_builtin_flag_CXX=
  10402. fi
  10403. if test "$GXX" = yes; then
  10404. # Set up default GNU C++ configuration
  10405. # Check whether --with-gnu-ld was given.
  10406. if test "${with_gnu_ld+set}" = set; then
  10407. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10408. else
  10409. with_gnu_ld=no
  10410. fi
  10411. ac_prog=ld
  10412. if test "$GCC" = yes; then
  10413. # Check if gcc -print-prog-name=ld gives a path.
  10414. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  10415. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  10416. case $host in
  10417. *-*-mingw*)
  10418. # gcc leaves a trailing carriage return which upsets mingw
  10419. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10420. *)
  10421. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10422. esac
  10423. case $ac_prog in
  10424. # Accept absolute paths.
  10425. [\\/]* | ?:[\\/]*)
  10426. re_direlt='/[^/][^/]*/\.\./'
  10427. # Canonicalize the pathname of ld
  10428. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  10429. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  10430. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  10431. done
  10432. test -z "$LD" && LD="$ac_prog"
  10433. ;;
  10434. "")
  10435. # If it fails, then pretend we aren't using GCC.
  10436. ac_prog=ld
  10437. ;;
  10438. *)
  10439. # If it is relative, then search for the first ld in PATH.
  10440. with_gnu_ld=unknown
  10441. ;;
  10442. esac
  10443. elif test "$with_gnu_ld" = yes; then
  10444. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  10445. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  10446. else
  10447. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10448. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  10449. fi
  10450. if test "${lt_cv_path_LD+set}" = set; then
  10451. echo $ECHO_N "(cached) $ECHO_C" >&6
  10452. else
  10453. if test -z "$LD"; then
  10454. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10455. for ac_dir in $PATH; do
  10456. IFS="$lt_save_ifs"
  10457. test -z "$ac_dir" && ac_dir=.
  10458. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10459. lt_cv_path_LD="$ac_dir/$ac_prog"
  10460. # Check to see if the program is GNU ld. I'd rather use --version,
  10461. # but apparently some variants of GNU ld only accept -v.
  10462. # Break only if it was the GNU/non-GNU ld that we prefer.
  10463. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10464. *GNU* | *'with BFD'*)
  10465. test "$with_gnu_ld" != no && break
  10466. ;;
  10467. *)
  10468. test "$with_gnu_ld" != yes && break
  10469. ;;
  10470. esac
  10471. fi
  10472. done
  10473. IFS="$lt_save_ifs"
  10474. else
  10475. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10476. fi
  10477. fi
  10478. LD="$lt_cv_path_LD"
  10479. if test -n "$LD"; then
  10480. { echo "$as_me:$LINENO: result: $LD" >&5
  10481. echo "${ECHO_T}$LD" >&6; }
  10482. else
  10483. { echo "$as_me:$LINENO: result: no" >&5
  10484. echo "${ECHO_T}no" >&6; }
  10485. fi
  10486. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10487. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10488. { (exit 1); exit 1; }; }
  10489. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10490. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  10491. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  10492. echo $ECHO_N "(cached) $ECHO_C" >&6
  10493. else
  10494. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10495. case `$LD -v 2>&1 </dev/null` in
  10496. *GNU* | *'with BFD'*)
  10497. lt_cv_prog_gnu_ld=yes
  10498. ;;
  10499. *)
  10500. lt_cv_prog_gnu_ld=no
  10501. ;;
  10502. esac
  10503. fi
  10504. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  10505. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  10506. with_gnu_ld=$lt_cv_prog_gnu_ld
  10507. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10508. # archiving commands below assume that GNU ld is being used.
  10509. if test "$with_gnu_ld" = yes; then
  10510. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10511. 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'
  10512. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10513. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10514. # If archive_cmds runs LD, not CC, wlarc should be empty
  10515. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10516. # investigate it a little bit more. (MM)
  10517. wlarc='${wl}'
  10518. # ancient GNU ld didn't support --whole-archive et. al.
  10519. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  10520. grep 'no-whole-archive' > /dev/null; then
  10521. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10522. else
  10523. whole_archive_flag_spec_CXX=
  10524. fi
  10525. else
  10526. with_gnu_ld=no
  10527. wlarc=
  10528. # A generic and very simple default shared library creation
  10529. # command for GNU C++ for the case where it uses the native
  10530. # linker, instead of GNU ld. If possible, this setting should
  10531. # overridden to take advantage of the native linker features on
  10532. # the platform it is being used on.
  10533. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10534. fi
  10535. # Commands to make compiler produce verbose output that lists
  10536. # what "hidden" libraries, object files and flags are used when
  10537. # linking a shared library.
  10538. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10539. else
  10540. GXX=no
  10541. with_gnu_ld=no
  10542. wlarc=
  10543. fi
  10544. # PORTME: fill in a description of your system's C++ link characteristics
  10545. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10546. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  10547. ld_shlibs_CXX=yes
  10548. case $host_os in
  10549. aix3*)
  10550. # FIXME: insert proper C++ library support
  10551. ld_shlibs_CXX=no
  10552. ;;
  10553. aix[4-9]*)
  10554. if test "$host_cpu" = ia64; then
  10555. # On IA64, the linker does run time linking by default, so we don't
  10556. # have to do anything special.
  10557. aix_use_runtimelinking=no
  10558. exp_sym_flag='-Bexport'
  10559. no_entry_flag=""
  10560. else
  10561. aix_use_runtimelinking=no
  10562. # Test if we are trying to use run time linking or normal
  10563. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10564. # need to do runtime linking.
  10565. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10566. for ld_flag in $LDFLAGS; do
  10567. case $ld_flag in
  10568. *-brtl*)
  10569. aix_use_runtimelinking=yes
  10570. break
  10571. ;;
  10572. esac
  10573. done
  10574. ;;
  10575. esac
  10576. exp_sym_flag='-bexport'
  10577. no_entry_flag='-bnoentry'
  10578. fi
  10579. # When large executables or shared objects are built, AIX ld can
  10580. # have problems creating the table of contents. If linking a library
  10581. # or program results in "error TOC overflow" add -mminimal-toc to
  10582. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10583. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10584. archive_cmds_CXX=''
  10585. hardcode_direct_CXX=yes
  10586. hardcode_libdir_separator_CXX=':'
  10587. link_all_deplibs_CXX=yes
  10588. if test "$GXX" = yes; then
  10589. case $host_os in aix4.[012]|aix4.[012].*)
  10590. # We only want to do this on AIX 4.2 and lower, the check
  10591. # below for broken collect2 doesn't work under 4.3+
  10592. collect2name=`${CC} -print-prog-name=collect2`
  10593. if test -f "$collect2name" && \
  10594. strings "$collect2name" | grep resolve_lib_name >/dev/null
  10595. then
  10596. # We have reworked collect2
  10597. :
  10598. else
  10599. # We have old collect2
  10600. hardcode_direct_CXX=unsupported
  10601. # It fails to find uninstalled libraries when the uninstalled
  10602. # path is not listed in the libpath. Setting hardcode_minus_L
  10603. # to unsupported forces relinking
  10604. hardcode_minus_L_CXX=yes
  10605. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10606. hardcode_libdir_separator_CXX=
  10607. fi
  10608. ;;
  10609. esac
  10610. shared_flag='-shared'
  10611. if test "$aix_use_runtimelinking" = yes; then
  10612. shared_flag="$shared_flag "'${wl}-G'
  10613. fi
  10614. else
  10615. # not using gcc
  10616. if test "$host_cpu" = ia64; then
  10617. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10618. # chokes on -Wl,-G. The following line is correct:
  10619. shared_flag='-G'
  10620. else
  10621. if test "$aix_use_runtimelinking" = yes; then
  10622. shared_flag='${wl}-G'
  10623. else
  10624. shared_flag='${wl}-bM:SRE'
  10625. fi
  10626. fi
  10627. fi
  10628. # It seems that -bexpall does not export symbols beginning with
  10629. # underscore (_), so it is better to generate a list of symbols to export.
  10630. always_export_symbols_CXX=yes
  10631. if test "$aix_use_runtimelinking" = yes; then
  10632. # Warning - without using the other runtime loading flags (-brtl),
  10633. # -berok will link without error, but may produce a broken library.
  10634. allow_undefined_flag_CXX='-berok'
  10635. # Determine the default libpath from the value encoded in an empty executable.
  10636. cat >conftest.$ac_ext <<_ACEOF
  10637. /* confdefs.h. */
  10638. _ACEOF
  10639. cat confdefs.h >>conftest.$ac_ext
  10640. cat >>conftest.$ac_ext <<_ACEOF
  10641. /* end confdefs.h. */
  10642. int
  10643. main ()
  10644. {
  10645. ;
  10646. return 0;
  10647. }
  10648. _ACEOF
  10649. rm -f conftest.$ac_objext conftest$ac_exeext
  10650. if { (ac_try="$ac_link"
  10651. case "(($ac_try" in
  10652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10653. *) ac_try_echo=$ac_try;;
  10654. esac
  10655. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10656. (eval "$ac_link") 2>conftest.er1
  10657. ac_status=$?
  10658. grep -v '^ *+' conftest.er1 >conftest.err
  10659. rm -f conftest.er1
  10660. cat conftest.err >&5
  10661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10662. (exit $ac_status); } && {
  10663. test -z "$ac_cxx_werror_flag" ||
  10664. test ! -s conftest.err
  10665. } && test -s conftest$ac_exeext &&
  10666. $as_test_x conftest$ac_exeext; then
  10667. lt_aix_libpath_sed='
  10668. /Import File Strings/,/^$/ {
  10669. /^0/ {
  10670. s/^0 *\(.*\)$/\1/
  10671. p
  10672. }
  10673. }'
  10674. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10675. # Check for a 64-bit object if we didn't find anything.
  10676. if test -z "$aix_libpath"; then
  10677. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10678. fi
  10679. else
  10680. echo "$as_me: failed program was:" >&5
  10681. sed 's/^/| /' conftest.$ac_ext >&5
  10682. fi
  10683. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10684. conftest$ac_exeext conftest.$ac_ext
  10685. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10686. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10687. 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"
  10688. else
  10689. if test "$host_cpu" = ia64; then
  10690. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10691. allow_undefined_flag_CXX="-z nodefs"
  10692. 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"
  10693. else
  10694. # Determine the default libpath from the value encoded in an empty executable.
  10695. cat >conftest.$ac_ext <<_ACEOF
  10696. /* confdefs.h. */
  10697. _ACEOF
  10698. cat confdefs.h >>conftest.$ac_ext
  10699. cat >>conftest.$ac_ext <<_ACEOF
  10700. /* end confdefs.h. */
  10701. int
  10702. main ()
  10703. {
  10704. ;
  10705. return 0;
  10706. }
  10707. _ACEOF
  10708. rm -f conftest.$ac_objext conftest$ac_exeext
  10709. if { (ac_try="$ac_link"
  10710. case "(($ac_try" in
  10711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10712. *) ac_try_echo=$ac_try;;
  10713. esac
  10714. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10715. (eval "$ac_link") 2>conftest.er1
  10716. ac_status=$?
  10717. grep -v '^ *+' conftest.er1 >conftest.err
  10718. rm -f conftest.er1
  10719. cat conftest.err >&5
  10720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10721. (exit $ac_status); } && {
  10722. test -z "$ac_cxx_werror_flag" ||
  10723. test ! -s conftest.err
  10724. } && test -s conftest$ac_exeext &&
  10725. $as_test_x conftest$ac_exeext; then
  10726. lt_aix_libpath_sed='
  10727. /Import File Strings/,/^$/ {
  10728. /^0/ {
  10729. s/^0 *\(.*\)$/\1/
  10730. p
  10731. }
  10732. }'
  10733. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10734. # Check for a 64-bit object if we didn't find anything.
  10735. if test -z "$aix_libpath"; then
  10736. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10737. fi
  10738. else
  10739. echo "$as_me: failed program was:" >&5
  10740. sed 's/^/| /' conftest.$ac_ext >&5
  10741. fi
  10742. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10743. conftest$ac_exeext conftest.$ac_ext
  10744. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10745. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10746. # Warning - without using the other run time loading flags,
  10747. # -berok will link without error, but may produce a broken library.
  10748. no_undefined_flag_CXX=' ${wl}-bernotok'
  10749. allow_undefined_flag_CXX=' ${wl}-berok'
  10750. # Exported symbols can be pulled into shared objects from archives
  10751. whole_archive_flag_spec_CXX='$convenience'
  10752. archive_cmds_need_lc_CXX=yes
  10753. # This is similar to how AIX traditionally builds its shared libraries.
  10754. 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'
  10755. fi
  10756. fi
  10757. ;;
  10758. beos*)
  10759. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  10760. allow_undefined_flag_CXX=unsupported
  10761. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10762. # support --undefined. This deserves some investigation. FIXME
  10763. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10764. else
  10765. ld_shlibs_CXX=no
  10766. fi
  10767. ;;
  10768. chorus*)
  10769. case $cc_basename in
  10770. *)
  10771. # FIXME: insert proper C++ library support
  10772. ld_shlibs_CXX=no
  10773. ;;
  10774. esac
  10775. ;;
  10776. cygwin* | mingw* | pw32*)
  10777. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10778. # as there is no search path for DLLs.
  10779. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10780. allow_undefined_flag_CXX=unsupported
  10781. always_export_symbols_CXX=no
  10782. enable_shared_with_static_runtimes_CXX=yes
  10783. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  10784. 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'
  10785. # If the export-symbols file already is a .def file (1st line
  10786. # is EXPORTS), use it as is; otherwise, prepend...
  10787. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10788. cp $export_symbols $output_objdir/$soname.def;
  10789. else
  10790. echo EXPORTS > $output_objdir/$soname.def;
  10791. cat $export_symbols >> $output_objdir/$soname.def;
  10792. fi~
  10793. $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'
  10794. else
  10795. ld_shlibs_CXX=no
  10796. fi
  10797. ;;
  10798. darwin* | rhapsody*)
  10799. archive_cmds_need_lc_CXX=no
  10800. hardcode_direct_CXX=no
  10801. hardcode_automatic_CXX=yes
  10802. hardcode_shlibpath_var_CXX=unsupported
  10803. whole_archive_flag_spec_CXX=''
  10804. link_all_deplibs_CXX=yes
  10805. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10806. if test "$GXX" = yes ; then
  10807. output_verbose_link_cmd='echo'
  10808. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  10809. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10810. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  10811. module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  10812. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10813. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  10814. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  10815. fi
  10816. else
  10817. case $cc_basename in
  10818. xlc*)
  10819. output_verbose_link_cmd='echo'
  10820. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  10821. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10822. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10823. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10824. 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}'
  10825. ;;
  10826. *)
  10827. ld_shlibs_CXX=no
  10828. ;;
  10829. esac
  10830. fi
  10831. ;;
  10832. dgux*)
  10833. case $cc_basename in
  10834. ec++*)
  10835. # FIXME: insert proper C++ library support
  10836. ld_shlibs_CXX=no
  10837. ;;
  10838. ghcx*)
  10839. # Green Hills C++ Compiler
  10840. # FIXME: insert proper C++ library support
  10841. ld_shlibs_CXX=no
  10842. ;;
  10843. *)
  10844. # FIXME: insert proper C++ library support
  10845. ld_shlibs_CXX=no
  10846. ;;
  10847. esac
  10848. ;;
  10849. freebsd[12]*)
  10850. # C++ shared libraries reported to be fairly broken before switch to ELF
  10851. ld_shlibs_CXX=no
  10852. ;;
  10853. freebsd-elf*)
  10854. archive_cmds_need_lc_CXX=no
  10855. ;;
  10856. freebsd* | dragonfly*)
  10857. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10858. # conventions
  10859. ld_shlibs_CXX=yes
  10860. ;;
  10861. gnu*)
  10862. ;;
  10863. hpux9*)
  10864. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10865. hardcode_libdir_separator_CXX=:
  10866. export_dynamic_flag_spec_CXX='${wl}-E'
  10867. hardcode_direct_CXX=yes
  10868. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10869. # but as the default
  10870. # location of the library.
  10871. case $cc_basename in
  10872. CC*)
  10873. # FIXME: insert proper C++ library support
  10874. ld_shlibs_CXX=no
  10875. ;;
  10876. aCC*)
  10877. 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'
  10878. # Commands to make compiler produce verbose output that lists
  10879. # what "hidden" libraries, object files and flags are used when
  10880. # linking a shared library.
  10881. #
  10882. # There doesn't appear to be a way to prevent this compiler from
  10883. # explicitly linking system object files so we need to strip them
  10884. # from the output so that they don't get included in the library
  10885. # dependencies.
  10886. 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'
  10887. ;;
  10888. *)
  10889. if test "$GXX" = yes; then
  10890. 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'
  10891. else
  10892. # FIXME: insert proper C++ library support
  10893. ld_shlibs_CXX=no
  10894. fi
  10895. ;;
  10896. esac
  10897. ;;
  10898. hpux10*|hpux11*)
  10899. if test $with_gnu_ld = no; then
  10900. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10901. hardcode_libdir_separator_CXX=:
  10902. case $host_cpu in
  10903. hppa*64*|ia64*) ;;
  10904. *)
  10905. export_dynamic_flag_spec_CXX='${wl}-E'
  10906. ;;
  10907. esac
  10908. fi
  10909. case $host_cpu in
  10910. hppa*64*|ia64*)
  10911. hardcode_direct_CXX=no
  10912. hardcode_shlibpath_var_CXX=no
  10913. ;;
  10914. *)
  10915. hardcode_direct_CXX=yes
  10916. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10917. # but as the default
  10918. # location of the library.
  10919. ;;
  10920. esac
  10921. case $cc_basename in
  10922. CC*)
  10923. # FIXME: insert proper C++ library support
  10924. ld_shlibs_CXX=no
  10925. ;;
  10926. aCC*)
  10927. case $host_cpu in
  10928. hppa*64*)
  10929. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10930. ;;
  10931. ia64*)
  10932. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10933. ;;
  10934. *)
  10935. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10936. ;;
  10937. esac
  10938. # Commands to make compiler produce verbose output that lists
  10939. # what "hidden" libraries, object files and flags are used when
  10940. # linking a shared library.
  10941. #
  10942. # There doesn't appear to be a way to prevent this compiler from
  10943. # explicitly linking system object files so we need to strip them
  10944. # from the output so that they don't get included in the library
  10945. # dependencies.
  10946. 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'
  10947. ;;
  10948. *)
  10949. if test "$GXX" = yes; then
  10950. if test $with_gnu_ld = no; then
  10951. case $host_cpu in
  10952. hppa*64*)
  10953. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10954. ;;
  10955. ia64*)
  10956. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10957. ;;
  10958. *)
  10959. 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'
  10960. ;;
  10961. esac
  10962. fi
  10963. else
  10964. # FIXME: insert proper C++ library support
  10965. ld_shlibs_CXX=no
  10966. fi
  10967. ;;
  10968. esac
  10969. ;;
  10970. interix[3-9]*)
  10971. hardcode_direct_CXX=no
  10972. hardcode_shlibpath_var_CXX=no
  10973. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10974. export_dynamic_flag_spec_CXX='${wl}-E'
  10975. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10976. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10977. # default) and relocated if they conflict, which is a slow very memory
  10978. # consuming and fragmenting process. To avoid this, we pick a random,
  10979. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10980. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10981. 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'
  10982. 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'
  10983. ;;
  10984. irix5* | irix6*)
  10985. case $cc_basename in
  10986. CC*)
  10987. # SGI C++
  10988. 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'
  10989. # Archives containing C++ object files must be created using
  10990. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10991. # necessary to make sure instantiated templates are included
  10992. # in the archive.
  10993. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10994. ;;
  10995. *)
  10996. if test "$GXX" = yes; then
  10997. if test "$with_gnu_ld" = no; then
  10998. 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'
  10999. else
  11000. 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'
  11001. fi
  11002. fi
  11003. link_all_deplibs_CXX=yes
  11004. ;;
  11005. esac
  11006. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11007. hardcode_libdir_separator_CXX=:
  11008. ;;
  11009. linux* | k*bsd*-gnu)
  11010. case $cc_basename in
  11011. KCC*)
  11012. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11013. # KCC will only create a shared library if the output file
  11014. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11015. # to its proper name (with version) after linking.
  11016. 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'
  11017. 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'
  11018. # Commands to make compiler produce verbose output that lists
  11019. # what "hidden" libraries, object files and flags are used when
  11020. # linking a shared library.
  11021. #
  11022. # There doesn't appear to be a way to prevent this compiler from
  11023. # explicitly linking system object files so we need to strip them
  11024. # from the output so that they don't get included in the library
  11025. # dependencies.
  11026. 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'
  11027. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  11028. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11029. # Archives containing C++ object files must be created using
  11030. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11031. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11032. ;;
  11033. icpc*)
  11034. # Intel C++
  11035. with_gnu_ld=yes
  11036. # version 8.0 and above of icpc choke on multiply defined symbols
  11037. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11038. # earlier do not add the objects themselves.
  11039. case `$CC -V 2>&1` in
  11040. *"Version 7."*)
  11041. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11042. 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'
  11043. ;;
  11044. *) # Version 8.0 or newer
  11045. tmp_idyn=
  11046. case $host_cpu in
  11047. ia64*) tmp_idyn=' -i_dynamic';;
  11048. esac
  11049. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11050. 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'
  11051. ;;
  11052. esac
  11053. archive_cmds_need_lc_CXX=no
  11054. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11055. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11056. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11057. ;;
  11058. pgCC* | pgcpp*)
  11059. # Portland Group C++ compiler
  11060. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11061. 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'
  11062. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11063. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11064. 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'
  11065. ;;
  11066. cxx*)
  11067. # Compaq C++
  11068. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11069. 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'
  11070. runpath_var=LD_RUN_PATH
  11071. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11072. hardcode_libdir_separator_CXX=:
  11073. # Commands to make compiler produce verbose output that lists
  11074. # what "hidden" libraries, object files and flags are used when
  11075. # linking a shared library.
  11076. #
  11077. # There doesn't appear to be a way to prevent this compiler from
  11078. # explicitly linking system object files so we need to strip them
  11079. # from the output so that they don't get included in the library
  11080. # dependencies.
  11081. 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'
  11082. ;;
  11083. *)
  11084. case `$CC -V 2>&1 | sed 5q` in
  11085. *Sun\ C*)
  11086. # Sun C++ 5.9
  11087. no_undefined_flag_CXX=' -zdefs'
  11088. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11089. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  11090. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11091. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  11092. # Not sure whether something based on
  11093. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11094. # would be better.
  11095. output_verbose_link_cmd='echo'
  11096. # Archives containing C++ object files must be created using
  11097. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11098. # necessary to make sure instantiated templates are included
  11099. # in the archive.
  11100. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11101. ;;
  11102. esac
  11103. ;;
  11104. esac
  11105. ;;
  11106. lynxos*)
  11107. # FIXME: insert proper C++ library support
  11108. ld_shlibs_CXX=no
  11109. ;;
  11110. m88k*)
  11111. # FIXME: insert proper C++ library support
  11112. ld_shlibs_CXX=no
  11113. ;;
  11114. mvs*)
  11115. case $cc_basename in
  11116. cxx*)
  11117. # FIXME: insert proper C++ library support
  11118. ld_shlibs_CXX=no
  11119. ;;
  11120. *)
  11121. # FIXME: insert proper C++ library support
  11122. ld_shlibs_CXX=no
  11123. ;;
  11124. esac
  11125. ;;
  11126. netbsd*)
  11127. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11128. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11129. wlarc=
  11130. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11131. hardcode_direct_CXX=yes
  11132. hardcode_shlibpath_var_CXX=no
  11133. fi
  11134. # Workaround some broken pre-1.5 toolchains
  11135. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11136. ;;
  11137. openbsd2*)
  11138. # C++ shared libraries are fairly broken
  11139. ld_shlibs_CXX=no
  11140. ;;
  11141. openbsd*)
  11142. if test -f /usr/libexec/ld.so; then
  11143. hardcode_direct_CXX=yes
  11144. hardcode_shlibpath_var_CXX=no
  11145. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11146. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11147. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11148. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11149. export_dynamic_flag_spec_CXX='${wl}-E'
  11150. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11151. fi
  11152. output_verbose_link_cmd='echo'
  11153. else
  11154. ld_shlibs_CXX=no
  11155. fi
  11156. ;;
  11157. osf3*)
  11158. case $cc_basename in
  11159. KCC*)
  11160. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11161. # KCC will only create a shared library if the output file
  11162. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11163. # to its proper name (with version) after linking.
  11164. 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'
  11165. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11166. hardcode_libdir_separator_CXX=:
  11167. # Archives containing C++ object files must be created using
  11168. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11169. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11170. ;;
  11171. RCC*)
  11172. # Rational C++ 2.4.1
  11173. # FIXME: insert proper C++ library support
  11174. ld_shlibs_CXX=no
  11175. ;;
  11176. cxx*)
  11177. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11178. 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'
  11179. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11180. hardcode_libdir_separator_CXX=:
  11181. # Commands to make compiler produce verbose output that lists
  11182. # what "hidden" libraries, object files and flags are used when
  11183. # linking a shared library.
  11184. #
  11185. # There doesn't appear to be a way to prevent this compiler from
  11186. # explicitly linking system object files so we need to strip them
  11187. # from the output so that they don't get included in the library
  11188. # dependencies.
  11189. 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'
  11190. ;;
  11191. *)
  11192. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11193. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11194. 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'
  11195. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11196. hardcode_libdir_separator_CXX=:
  11197. # Commands to make compiler produce verbose output that lists
  11198. # what "hidden" libraries, object files and flags are used when
  11199. # linking a shared library.
  11200. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  11201. else
  11202. # FIXME: insert proper C++ library support
  11203. ld_shlibs_CXX=no
  11204. fi
  11205. ;;
  11206. esac
  11207. ;;
  11208. osf4* | osf5*)
  11209. case $cc_basename in
  11210. KCC*)
  11211. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11212. # KCC will only create a shared library if the output file
  11213. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11214. # to its proper name (with version) after linking.
  11215. 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'
  11216. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11217. hardcode_libdir_separator_CXX=:
  11218. # Archives containing C++ object files must be created using
  11219. # the KAI C++ compiler.
  11220. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  11221. ;;
  11222. RCC*)
  11223. # Rational C++ 2.4.1
  11224. # FIXME: insert proper C++ library support
  11225. ld_shlibs_CXX=no
  11226. ;;
  11227. cxx*)
  11228. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11229. 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'
  11230. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11231. echo "-hidden">> $lib.exp~
  11232. $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~
  11233. $rm $lib.exp'
  11234. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11235. hardcode_libdir_separator_CXX=:
  11236. # Commands to make compiler produce verbose output that lists
  11237. # what "hidden" libraries, object files and flags are used when
  11238. # linking a shared library.
  11239. #
  11240. # There doesn't appear to be a way to prevent this compiler from
  11241. # explicitly linking system object files so we need to strip them
  11242. # from the output so that they don't get included in the library
  11243. # dependencies.
  11244. 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'
  11245. ;;
  11246. *)
  11247. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11248. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11249. 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'
  11250. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11251. hardcode_libdir_separator_CXX=:
  11252. # Commands to make compiler produce verbose output that lists
  11253. # what "hidden" libraries, object files and flags are used when
  11254. # linking a shared library.
  11255. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  11256. else
  11257. # FIXME: insert proper C++ library support
  11258. ld_shlibs_CXX=no
  11259. fi
  11260. ;;
  11261. esac
  11262. ;;
  11263. psos*)
  11264. # FIXME: insert proper C++ library support
  11265. ld_shlibs_CXX=no
  11266. ;;
  11267. sunos4*)
  11268. case $cc_basename in
  11269. CC*)
  11270. # Sun C++ 4.x
  11271. # FIXME: insert proper C++ library support
  11272. ld_shlibs_CXX=no
  11273. ;;
  11274. lcc*)
  11275. # Lucid
  11276. # FIXME: insert proper C++ library support
  11277. ld_shlibs_CXX=no
  11278. ;;
  11279. *)
  11280. # FIXME: insert proper C++ library support
  11281. ld_shlibs_CXX=no
  11282. ;;
  11283. esac
  11284. ;;
  11285. solaris*)
  11286. case $cc_basename in
  11287. CC*)
  11288. # Sun C++ 4.2, 5.x and Centerline C++
  11289. archive_cmds_need_lc_CXX=yes
  11290. no_undefined_flag_CXX=' -zdefs'
  11291. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11292. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  11293. $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'
  11294. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11295. hardcode_shlibpath_var_CXX=no
  11296. case $host_os in
  11297. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11298. *)
  11299. # The compiler driver will combine and reorder linker options,
  11300. # but understands `-z linker_flag'.
  11301. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11302. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11303. ;;
  11304. esac
  11305. link_all_deplibs_CXX=yes
  11306. output_verbose_link_cmd='echo'
  11307. # Archives containing C++ object files must be created using
  11308. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11309. # necessary to make sure instantiated templates are included
  11310. # in the archive.
  11311. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11312. ;;
  11313. gcx*)
  11314. # Green Hills C++ Compiler
  11315. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11316. # The C++ compiler must be used to create the archive.
  11317. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11318. ;;
  11319. *)
  11320. # GNU C++ compiler with Solaris linker
  11321. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11322. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11323. if $CC --version | grep -v '^2\.7' > /dev/null; then
  11324. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11325. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  11326. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  11327. # Commands to make compiler produce verbose output that lists
  11328. # what "hidden" libraries, object files and flags are used when
  11329. # linking a shared library.
  11330. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  11331. else
  11332. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11333. # platform.
  11334. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11335. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  11336. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  11337. # Commands to make compiler produce verbose output that lists
  11338. # what "hidden" libraries, object files and flags are used when
  11339. # linking a shared library.
  11340. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  11341. fi
  11342. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11343. case $host_os in
  11344. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11345. *)
  11346. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11347. ;;
  11348. esac
  11349. fi
  11350. ;;
  11351. esac
  11352. ;;
  11353. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11354. no_undefined_flag_CXX='${wl}-z,text'
  11355. archive_cmds_need_lc_CXX=no
  11356. hardcode_shlibpath_var_CXX=no
  11357. runpath_var='LD_RUN_PATH'
  11358. case $cc_basename in
  11359. CC*)
  11360. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11361. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11362. ;;
  11363. *)
  11364. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11365. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11366. ;;
  11367. esac
  11368. ;;
  11369. sysv5* | sco3.2v5* | sco5v6*)
  11370. # Note: We can NOT use -z defs as we might desire, because we do not
  11371. # link with -lc, and that would cause any symbols used from libc to
  11372. # always be unresolved, which means just about no library would
  11373. # ever link correctly. If we're not using GNU ld we use -z text
  11374. # though, which does catch some bad symbols but isn't as heavy-handed
  11375. # as -z defs.
  11376. # For security reasons, it is highly recommended that you always
  11377. # use absolute paths for naming shared libraries, and exclude the
  11378. # DT_RUNPATH tag from executables and libraries. But doing so
  11379. # requires that you compile everything twice, which is a pain.
  11380. # So that behaviour is only enabled if SCOABSPATH is set to a
  11381. # non-empty value in the environment. Most likely only useful for
  11382. # creating official distributions of packages.
  11383. # This is a hack until libtool officially supports absolute path
  11384. # names for shared libraries.
  11385. no_undefined_flag_CXX='${wl}-z,text'
  11386. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11387. archive_cmds_need_lc_CXX=no
  11388. hardcode_shlibpath_var_CXX=no
  11389. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  11390. hardcode_libdir_separator_CXX=':'
  11391. link_all_deplibs_CXX=yes
  11392. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11393. runpath_var='LD_RUN_PATH'
  11394. case $cc_basename in
  11395. CC*)
  11396. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11397. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11398. ;;
  11399. *)
  11400. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11401. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11402. ;;
  11403. esac
  11404. ;;
  11405. tandem*)
  11406. case $cc_basename in
  11407. NCC*)
  11408. # NonStop-UX NCC 3.20
  11409. # FIXME: insert proper C++ library support
  11410. ld_shlibs_CXX=no
  11411. ;;
  11412. *)
  11413. # FIXME: insert proper C++ library support
  11414. ld_shlibs_CXX=no
  11415. ;;
  11416. esac
  11417. ;;
  11418. vxworks*)
  11419. # FIXME: insert proper C++ library support
  11420. ld_shlibs_CXX=no
  11421. ;;
  11422. *)
  11423. # FIXME: insert proper C++ library support
  11424. ld_shlibs_CXX=no
  11425. ;;
  11426. esac
  11427. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11428. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  11429. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11430. GCC_CXX="$GXX"
  11431. LD_CXX="$LD"
  11432. cat > conftest.$ac_ext <<EOF
  11433. class Foo
  11434. {
  11435. public:
  11436. Foo (void) { a = 0; }
  11437. private:
  11438. int a;
  11439. };
  11440. EOF
  11441. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11442. (eval $ac_compile) 2>&5
  11443. ac_status=$?
  11444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11445. (exit $ac_status); }; then
  11446. # Parse the compiler output and extract the necessary
  11447. # objects, libraries and library flags.
  11448. # Sentinel used to keep track of whether or not we are before
  11449. # the conftest object file.
  11450. pre_test_object_deps_done=no
  11451. # The `*' in the case matches for architectures that use `case' in
  11452. # $output_verbose_cmd can trigger glob expansion during the loop
  11453. # eval without this substitution.
  11454. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  11455. for p in `eval $output_verbose_link_cmd`; do
  11456. case $p in
  11457. -L* | -R* | -l*)
  11458. # Some compilers place space between "-{L,R}" and the path.
  11459. # Remove the space.
  11460. if test $p = "-L" \
  11461. || test $p = "-R"; then
  11462. prev=$p
  11463. continue
  11464. else
  11465. prev=
  11466. fi
  11467. if test "$pre_test_object_deps_done" = no; then
  11468. case $p in
  11469. -L* | -R*)
  11470. # Internal compiler library paths should come after those
  11471. # provided the user. The postdeps already come after the
  11472. # user supplied libs so there is no need to process them.
  11473. if test -z "$compiler_lib_search_path_CXX"; then
  11474. compiler_lib_search_path_CXX="${prev}${p}"
  11475. else
  11476. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11477. fi
  11478. ;;
  11479. # The "-l" case would never come before the object being
  11480. # linked, so don't bother handling this case.
  11481. esac
  11482. else
  11483. if test -z "$postdeps_CXX"; then
  11484. postdeps_CXX="${prev}${p}"
  11485. else
  11486. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11487. fi
  11488. fi
  11489. ;;
  11490. *.$objext)
  11491. # This assumes that the test object file only shows up
  11492. # once in the compiler output.
  11493. if test "$p" = "conftest.$objext"; then
  11494. pre_test_object_deps_done=yes
  11495. continue
  11496. fi
  11497. if test "$pre_test_object_deps_done" = no; then
  11498. if test -z "$predep_objects_CXX"; then
  11499. predep_objects_CXX="$p"
  11500. else
  11501. predep_objects_CXX="$predep_objects_CXX $p"
  11502. fi
  11503. else
  11504. if test -z "$postdep_objects_CXX"; then
  11505. postdep_objects_CXX="$p"
  11506. else
  11507. postdep_objects_CXX="$postdep_objects_CXX $p"
  11508. fi
  11509. fi
  11510. ;;
  11511. *) ;; # Ignore the rest.
  11512. esac
  11513. done
  11514. # Clean up.
  11515. rm -f a.out a.exe
  11516. else
  11517. echo "libtool.m4: error: problem compiling CXX test program"
  11518. fi
  11519. $rm -f confest.$objext
  11520. compiler_lib_search_dirs_CXX=
  11521. if test -n "$compiler_lib_search_path_CXX"; then
  11522. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11523. fi
  11524. # PORTME: override above test on systems where it is broken
  11525. case $host_os in
  11526. interix[3-9]*)
  11527. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11528. # hack all around it, let's just trust "g++" to DTRT.
  11529. predep_objects_CXX=
  11530. postdep_objects_CXX=
  11531. postdeps_CXX=
  11532. ;;
  11533. linux*)
  11534. case `$CC -V 2>&1 | sed 5q` in
  11535. *Sun\ C*)
  11536. # Sun C++ 5.9
  11537. #
  11538. # The more standards-conforming stlport4 library is
  11539. # incompatible with the Cstd library. Avoid specifying
  11540. # it if it's in CXXFLAGS. Ignore libCrun as
  11541. # -library=stlport4 depends on it.
  11542. case " $CXX $CXXFLAGS " in
  11543. *" -library=stlport4 "*)
  11544. solaris_use_stlport4=yes
  11545. ;;
  11546. esac
  11547. if test "$solaris_use_stlport4" != yes; then
  11548. postdeps_CXX='-library=Cstd -library=Crun'
  11549. fi
  11550. ;;
  11551. esac
  11552. ;;
  11553. solaris*)
  11554. case $cc_basename in
  11555. CC*)
  11556. # The more standards-conforming stlport4 library is
  11557. # incompatible with the Cstd library. Avoid specifying
  11558. # it if it's in CXXFLAGS. Ignore libCrun as
  11559. # -library=stlport4 depends on it.
  11560. case " $CXX $CXXFLAGS " in
  11561. *" -library=stlport4 "*)
  11562. solaris_use_stlport4=yes
  11563. ;;
  11564. esac
  11565. # Adding this requires a known-good setup of shared libraries for
  11566. # Sun compiler versions before 5.6, else PIC objects from an old
  11567. # archive will be linked into the output, leading to subtle bugs.
  11568. if test "$solaris_use_stlport4" != yes; then
  11569. postdeps_CXX='-library=Cstd -library=Crun'
  11570. fi
  11571. ;;
  11572. esac
  11573. ;;
  11574. esac
  11575. case " $postdeps_CXX " in
  11576. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11577. esac
  11578. lt_prog_compiler_wl_CXX=
  11579. lt_prog_compiler_pic_CXX=
  11580. lt_prog_compiler_static_CXX=
  11581. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11582. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  11583. # C++ specific cases for pic, static, wl, etc.
  11584. if test "$GXX" = yes; then
  11585. lt_prog_compiler_wl_CXX='-Wl,'
  11586. lt_prog_compiler_static_CXX='-static'
  11587. case $host_os in
  11588. aix*)
  11589. # All AIX code is PIC.
  11590. if test "$host_cpu" = ia64; then
  11591. # AIX 5 now supports IA64 processor
  11592. lt_prog_compiler_static_CXX='-Bstatic'
  11593. fi
  11594. ;;
  11595. amigaos*)
  11596. # FIXME: we need at least 68020 code to build shared libraries, but
  11597. # adding the `-m68020' flag to GCC prevents building anything better,
  11598. # like `-m68040'.
  11599. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11600. ;;
  11601. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11602. # PIC is the default for these OSes.
  11603. ;;
  11604. mingw* | cygwin* | os2* | pw32*)
  11605. # This hack is so that the source file can tell whether it is being
  11606. # built for inclusion in a dll (and should export symbols for example).
  11607. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11608. # (--disable-auto-import) libraries
  11609. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11610. ;;
  11611. darwin* | rhapsody*)
  11612. # PIC is the default on this platform
  11613. # Common symbols not allowed in MH_DYLIB files
  11614. lt_prog_compiler_pic_CXX='-fno-common'
  11615. ;;
  11616. *djgpp*)
  11617. # DJGPP does not support shared libraries at all
  11618. lt_prog_compiler_pic_CXX=
  11619. ;;
  11620. interix[3-9]*)
  11621. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11622. # Instead, we relocate shared libraries at runtime.
  11623. ;;
  11624. sysv4*MP*)
  11625. if test -d /usr/nec; then
  11626. lt_prog_compiler_pic_CXX=-Kconform_pic
  11627. fi
  11628. ;;
  11629. hpux*)
  11630. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11631. # not for PA HP-UX.
  11632. case $host_cpu in
  11633. hppa*64*|ia64*)
  11634. ;;
  11635. *)
  11636. lt_prog_compiler_pic_CXX='-fPIC'
  11637. ;;
  11638. esac
  11639. ;;
  11640. *)
  11641. lt_prog_compiler_pic_CXX='-fPIC'
  11642. ;;
  11643. esac
  11644. else
  11645. case $host_os in
  11646. aix[4-9]*)
  11647. # All AIX code is PIC.
  11648. if test "$host_cpu" = ia64; then
  11649. # AIX 5 now supports IA64 processor
  11650. lt_prog_compiler_static_CXX='-Bstatic'
  11651. else
  11652. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11653. fi
  11654. ;;
  11655. chorus*)
  11656. case $cc_basename in
  11657. cxch68*)
  11658. # Green Hills C++ Compiler
  11659. # _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"
  11660. ;;
  11661. esac
  11662. ;;
  11663. darwin*)
  11664. # PIC is the default on this platform
  11665. # Common symbols not allowed in MH_DYLIB files
  11666. case $cc_basename in
  11667. xlc*)
  11668. lt_prog_compiler_pic_CXX='-qnocommon'
  11669. lt_prog_compiler_wl_CXX='-Wl,'
  11670. ;;
  11671. esac
  11672. ;;
  11673. dgux*)
  11674. case $cc_basename in
  11675. ec++*)
  11676. lt_prog_compiler_pic_CXX='-KPIC'
  11677. ;;
  11678. ghcx*)
  11679. # Green Hills C++ Compiler
  11680. lt_prog_compiler_pic_CXX='-pic'
  11681. ;;
  11682. *)
  11683. ;;
  11684. esac
  11685. ;;
  11686. freebsd* | dragonfly*)
  11687. # FreeBSD uses GNU C++
  11688. ;;
  11689. hpux9* | hpux10* | hpux11*)
  11690. case $cc_basename in
  11691. CC*)
  11692. lt_prog_compiler_wl_CXX='-Wl,'
  11693. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11694. if test "$host_cpu" != ia64; then
  11695. lt_prog_compiler_pic_CXX='+Z'
  11696. fi
  11697. ;;
  11698. aCC*)
  11699. lt_prog_compiler_wl_CXX='-Wl,'
  11700. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11701. case $host_cpu in
  11702. hppa*64*|ia64*)
  11703. # +Z the default
  11704. ;;
  11705. *)
  11706. lt_prog_compiler_pic_CXX='+Z'
  11707. ;;
  11708. esac
  11709. ;;
  11710. *)
  11711. ;;
  11712. esac
  11713. ;;
  11714. interix*)
  11715. # This is c89, which is MS Visual C++ (no shared libs)
  11716. # Anyone wants to do a port?
  11717. ;;
  11718. irix5* | irix6* | nonstopux*)
  11719. case $cc_basename in
  11720. CC*)
  11721. lt_prog_compiler_wl_CXX='-Wl,'
  11722. lt_prog_compiler_static_CXX='-non_shared'
  11723. # CC pic flag -KPIC is the default.
  11724. ;;
  11725. *)
  11726. ;;
  11727. esac
  11728. ;;
  11729. linux* | k*bsd*-gnu)
  11730. case $cc_basename in
  11731. KCC*)
  11732. # KAI C++ Compiler
  11733. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11734. lt_prog_compiler_pic_CXX='-fPIC'
  11735. ;;
  11736. icpc* | ecpc*)
  11737. # Intel C++
  11738. lt_prog_compiler_wl_CXX='-Wl,'
  11739. lt_prog_compiler_pic_CXX='-KPIC'
  11740. lt_prog_compiler_static_CXX='-static'
  11741. ;;
  11742. pgCC* | pgcpp*)
  11743. # Portland Group C++ compiler.
  11744. lt_prog_compiler_wl_CXX='-Wl,'
  11745. lt_prog_compiler_pic_CXX='-fpic'
  11746. lt_prog_compiler_static_CXX='-Bstatic'
  11747. ;;
  11748. cxx*)
  11749. # Compaq C++
  11750. # Make sure the PIC flag is empty. It appears that all Alpha
  11751. # Linux and Compaq Tru64 Unix objects are PIC.
  11752. lt_prog_compiler_pic_CXX=
  11753. lt_prog_compiler_static_CXX='-non_shared'
  11754. ;;
  11755. *)
  11756. case `$CC -V 2>&1 | sed 5q` in
  11757. *Sun\ C*)
  11758. # Sun C++ 5.9
  11759. lt_prog_compiler_pic_CXX='-KPIC'
  11760. lt_prog_compiler_static_CXX='-Bstatic'
  11761. lt_prog_compiler_wl_CXX='-Qoption ld '
  11762. ;;
  11763. esac
  11764. ;;
  11765. esac
  11766. ;;
  11767. lynxos*)
  11768. ;;
  11769. m88k*)
  11770. ;;
  11771. mvs*)
  11772. case $cc_basename in
  11773. cxx*)
  11774. lt_prog_compiler_pic_CXX='-W c,exportall'
  11775. ;;
  11776. *)
  11777. ;;
  11778. esac
  11779. ;;
  11780. netbsd*)
  11781. ;;
  11782. osf3* | osf4* | osf5*)
  11783. case $cc_basename in
  11784. KCC*)
  11785. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11786. ;;
  11787. RCC*)
  11788. # Rational C++ 2.4.1
  11789. lt_prog_compiler_pic_CXX='-pic'
  11790. ;;
  11791. cxx*)
  11792. # Digital/Compaq C++
  11793. lt_prog_compiler_wl_CXX='-Wl,'
  11794. # Make sure the PIC flag is empty. It appears that all Alpha
  11795. # Linux and Compaq Tru64 Unix objects are PIC.
  11796. lt_prog_compiler_pic_CXX=
  11797. lt_prog_compiler_static_CXX='-non_shared'
  11798. ;;
  11799. *)
  11800. ;;
  11801. esac
  11802. ;;
  11803. psos*)
  11804. ;;
  11805. solaris*)
  11806. case $cc_basename in
  11807. CC*)
  11808. # Sun C++ 4.2, 5.x and Centerline C++
  11809. lt_prog_compiler_pic_CXX='-KPIC'
  11810. lt_prog_compiler_static_CXX='-Bstatic'
  11811. lt_prog_compiler_wl_CXX='-Qoption ld '
  11812. ;;
  11813. gcx*)
  11814. # Green Hills C++ Compiler
  11815. lt_prog_compiler_pic_CXX='-PIC'
  11816. ;;
  11817. *)
  11818. ;;
  11819. esac
  11820. ;;
  11821. sunos4*)
  11822. case $cc_basename in
  11823. CC*)
  11824. # Sun C++ 4.x
  11825. lt_prog_compiler_pic_CXX='-pic'
  11826. lt_prog_compiler_static_CXX='-Bstatic'
  11827. ;;
  11828. lcc*)
  11829. # Lucid
  11830. lt_prog_compiler_pic_CXX='-pic'
  11831. ;;
  11832. *)
  11833. ;;
  11834. esac
  11835. ;;
  11836. tandem*)
  11837. case $cc_basename in
  11838. NCC*)
  11839. # NonStop-UX NCC 3.20
  11840. lt_prog_compiler_pic_CXX='-KPIC'
  11841. ;;
  11842. *)
  11843. ;;
  11844. esac
  11845. ;;
  11846. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11847. case $cc_basename in
  11848. CC*)
  11849. lt_prog_compiler_wl_CXX='-Wl,'
  11850. lt_prog_compiler_pic_CXX='-KPIC'
  11851. lt_prog_compiler_static_CXX='-Bstatic'
  11852. ;;
  11853. esac
  11854. ;;
  11855. vxworks*)
  11856. ;;
  11857. *)
  11858. lt_prog_compiler_can_build_shared_CXX=no
  11859. ;;
  11860. esac
  11861. fi
  11862. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  11863. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  11864. #
  11865. # Check to make sure the PIC flag actually works.
  11866. #
  11867. if test -n "$lt_prog_compiler_pic_CXX"; then
  11868. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11869. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  11870. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
  11871. echo $ECHO_N "(cached) $ECHO_C" >&6
  11872. else
  11873. lt_cv_prog_compiler_pic_works_CXX=no
  11874. ac_outfile=conftest.$ac_objext
  11875. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11876. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11877. # Insert the option either (1) after the last *FLAGS variable, or
  11878. # (2) before a word containing "conftest.", or (3) at the end.
  11879. # Note that $ac_compile itself does not contain backslashes and begins
  11880. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11881. # The option is referenced via a variable to avoid confusing sed.
  11882. lt_compile=`echo "$ac_compile" | $SED \
  11883. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11884. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11885. -e 's:$: $lt_compiler_flag:'`
  11886. (eval echo "\"\$as_me:13216: $lt_compile\"" >&5)
  11887. (eval "$lt_compile" 2>conftest.err)
  11888. ac_status=$?
  11889. cat conftest.err >&5
  11890. echo "$as_me:13220: \$? = $ac_status" >&5
  11891. if (exit $ac_status) && test -s "$ac_outfile"; then
  11892. # The compiler can only warn and ignore the option if not recognized
  11893. # So say no if there are warnings other than the usual output.
  11894. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11895. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11896. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11897. lt_cv_prog_compiler_pic_works_CXX=yes
  11898. fi
  11899. fi
  11900. $rm conftest*
  11901. fi
  11902. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11903. echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11904. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11905. case $lt_prog_compiler_pic_CXX in
  11906. "" | " "*) ;;
  11907. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11908. esac
  11909. else
  11910. lt_prog_compiler_pic_CXX=
  11911. lt_prog_compiler_can_build_shared_CXX=no
  11912. fi
  11913. fi
  11914. case $host_os in
  11915. # For platforms which do not support PIC, -DPIC is meaningless:
  11916. *djgpp*)
  11917. lt_prog_compiler_pic_CXX=
  11918. ;;
  11919. *)
  11920. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11921. ;;
  11922. esac
  11923. #
  11924. # Check to make sure the static flag actually works.
  11925. #
  11926. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11927. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11928. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  11929. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
  11930. echo $ECHO_N "(cached) $ECHO_C" >&6
  11931. else
  11932. lt_cv_prog_compiler_static_works_CXX=no
  11933. save_LDFLAGS="$LDFLAGS"
  11934. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11935. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11936. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11937. # The linker can only warn and ignore the option if not recognized
  11938. # So say no if there are warnings
  11939. if test -s conftest.err; then
  11940. # Append any errors to the config.log.
  11941. cat conftest.err 1>&5
  11942. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11943. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11944. if diff conftest.exp conftest.er2 >/dev/null; then
  11945. lt_cv_prog_compiler_static_works_CXX=yes
  11946. fi
  11947. else
  11948. lt_cv_prog_compiler_static_works_CXX=yes
  11949. fi
  11950. fi
  11951. $rm -r conftest*
  11952. LDFLAGS="$save_LDFLAGS"
  11953. fi
  11954. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11955. echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11956. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11957. :
  11958. else
  11959. lt_prog_compiler_static_CXX=
  11960. fi
  11961. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11962. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  11963. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  11964. echo $ECHO_N "(cached) $ECHO_C" >&6
  11965. else
  11966. lt_cv_prog_compiler_c_o_CXX=no
  11967. $rm -r conftest 2>/dev/null
  11968. mkdir conftest
  11969. cd conftest
  11970. mkdir out
  11971. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11972. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11973. # Insert the option either (1) after the last *FLAGS variable, or
  11974. # (2) before a word containing "conftest.", or (3) at the end.
  11975. # Note that $ac_compile itself does not contain backslashes and begins
  11976. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11977. lt_compile=`echo "$ac_compile" | $SED \
  11978. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11979. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11980. -e 's:$: $lt_compiler_flag:'`
  11981. (eval echo "\"\$as_me:13320: $lt_compile\"" >&5)
  11982. (eval "$lt_compile" 2>out/conftest.err)
  11983. ac_status=$?
  11984. cat out/conftest.err >&5
  11985. echo "$as_me:13324: \$? = $ac_status" >&5
  11986. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11987. then
  11988. # The compiler can only warn and ignore the option if not recognized
  11989. # So say no if there are warnings
  11990. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11991. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11992. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11993. lt_cv_prog_compiler_c_o_CXX=yes
  11994. fi
  11995. fi
  11996. chmod u+w . 2>&5
  11997. $rm conftest*
  11998. # SGI C++ compiler will create directory out/ii_files/ for
  11999. # template instantiation
  12000. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12001. $rm out/* && rmdir out
  12002. cd ..
  12003. rmdir conftest
  12004. $rm conftest*
  12005. fi
  12006. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12007. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12008. hard_links="nottested"
  12009. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12010. # do not overwrite the value of need_locks provided by the user
  12011. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12012. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  12013. hard_links=yes
  12014. $rm conftest*
  12015. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12016. touch conftest.a
  12017. ln conftest.a conftest.b 2>&5 || hard_links=no
  12018. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12019. { echo "$as_me:$LINENO: result: $hard_links" >&5
  12020. echo "${ECHO_T}$hard_links" >&6; }
  12021. if test "$hard_links" = no; then
  12022. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12023. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12024. need_locks=warn
  12025. fi
  12026. else
  12027. need_locks=no
  12028. fi
  12029. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12030. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  12031. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12032. case $host_os in
  12033. aix[4-9]*)
  12034. # If we're using GNU nm, then we don't want the "-C" option.
  12035. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12036. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  12037. 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'
  12038. else
  12039. 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'
  12040. fi
  12041. ;;
  12042. pw32*)
  12043. export_symbols_cmds_CXX="$ltdll_cmds"
  12044. ;;
  12045. cygwin* | mingw*)
  12046. 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'
  12047. ;;
  12048. *)
  12049. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12050. ;;
  12051. esac
  12052. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12053. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  12054. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  12055. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12056. #
  12057. # Do we need to explicitly link libc?
  12058. #
  12059. case "x$archive_cmds_need_lc_CXX" in
  12060. x|xyes)
  12061. # Assume -lc should be added
  12062. archive_cmds_need_lc_CXX=yes
  12063. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12064. case $archive_cmds_CXX in
  12065. *'~'*)
  12066. # FIXME: we may have to deal with multi-command sequences.
  12067. ;;
  12068. '$CC '*)
  12069. # Test whether the compiler implicitly links with -lc since on some
  12070. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12071. # to ld, don't add -lc before -lgcc.
  12072. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  12073. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  12074. $rm conftest*
  12075. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12076. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12077. (eval $ac_compile) 2>&5
  12078. ac_status=$?
  12079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12080. (exit $ac_status); } 2>conftest.err; then
  12081. soname=conftest
  12082. lib=conftest
  12083. libobjs=conftest.$ac_objext
  12084. deplibs=
  12085. wl=$lt_prog_compiler_wl_CXX
  12086. pic_flag=$lt_prog_compiler_pic_CXX
  12087. compiler_flags=-v
  12088. linker_flags=-v
  12089. verstring=
  12090. output_objdir=.
  12091. libname=conftest
  12092. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12093. allow_undefined_flag_CXX=
  12094. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  12095. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12096. ac_status=$?
  12097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12098. (exit $ac_status); }
  12099. then
  12100. archive_cmds_need_lc_CXX=no
  12101. else
  12102. archive_cmds_need_lc_CXX=yes
  12103. fi
  12104. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12105. else
  12106. cat conftest.err 1>&5
  12107. fi
  12108. $rm conftest*
  12109. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  12110. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  12111. ;;
  12112. esac
  12113. fi
  12114. ;;
  12115. esac
  12116. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  12117. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  12118. library_names_spec=
  12119. libname_spec='lib$name'
  12120. soname_spec=
  12121. shrext_cmds=".so"
  12122. postinstall_cmds=
  12123. postuninstall_cmds=
  12124. finish_cmds=
  12125. finish_eval=
  12126. shlibpath_var=
  12127. shlibpath_overrides_runpath=unknown
  12128. version_type=none
  12129. dynamic_linker="$host_os ld.so"
  12130. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12131. need_lib_prefix=unknown
  12132. hardcode_into_libs=no
  12133. # when you set need_version to no, make sure it does not cause -set_version
  12134. # flags to be left without arguments
  12135. need_version=unknown
  12136. case $host_os in
  12137. aix3*)
  12138. version_type=linux
  12139. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12140. shlibpath_var=LIBPATH
  12141. # AIX 3 has no versioning support, so we append a major version to the name.
  12142. soname_spec='${libname}${release}${shared_ext}$major'
  12143. ;;
  12144. aix[4-9]*)
  12145. version_type=linux
  12146. need_lib_prefix=no
  12147. need_version=no
  12148. hardcode_into_libs=yes
  12149. if test "$host_cpu" = ia64; then
  12150. # AIX 5 supports IA64
  12151. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12152. shlibpath_var=LD_LIBRARY_PATH
  12153. else
  12154. # With GCC up to 2.95.x, collect2 would create an import file
  12155. # for dependence libraries. The import file would start with
  12156. # the line `#! .'. This would cause the generated library to
  12157. # depend on `.', always an invalid library. This was fixed in
  12158. # development snapshots of GCC prior to 3.0.
  12159. case $host_os in
  12160. aix4 | aix4.[01] | aix4.[01].*)
  12161. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12162. echo ' yes '
  12163. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  12164. :
  12165. else
  12166. can_build_shared=no
  12167. fi
  12168. ;;
  12169. esac
  12170. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12171. # soname into executable. Probably we can add versioning support to
  12172. # collect2, so additional links can be useful in future.
  12173. if test "$aix_use_runtimelinking" = yes; then
  12174. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12175. # instead of lib<name>.a to let people know that these are not
  12176. # typical AIX shared libraries.
  12177. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12178. else
  12179. # We preserve .a as extension for shared libraries through AIX4.2
  12180. # and later when we are not doing run time linking.
  12181. library_names_spec='${libname}${release}.a $libname.a'
  12182. soname_spec='${libname}${release}${shared_ext}$major'
  12183. fi
  12184. shlibpath_var=LIBPATH
  12185. fi
  12186. ;;
  12187. amigaos*)
  12188. library_names_spec='$libname.ixlibrary $libname.a'
  12189. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12190. 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'
  12191. ;;
  12192. beos*)
  12193. library_names_spec='${libname}${shared_ext}'
  12194. dynamic_linker="$host_os ld.so"
  12195. shlibpath_var=LIBRARY_PATH
  12196. ;;
  12197. bsdi[45]*)
  12198. version_type=linux
  12199. need_version=no
  12200. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12201. soname_spec='${libname}${release}${shared_ext}$major'
  12202. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12203. shlibpath_var=LD_LIBRARY_PATH
  12204. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12205. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12206. # the default ld.so.conf also contains /usr/contrib/lib and
  12207. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12208. # libtool to hard-code these into programs
  12209. ;;
  12210. cygwin* | mingw* | pw32*)
  12211. version_type=windows
  12212. shrext_cmds=".dll"
  12213. need_version=no
  12214. need_lib_prefix=no
  12215. case $GCC,$host_os in
  12216. yes,cygwin* | yes,mingw* | yes,pw32*)
  12217. library_names_spec='$libname.dll.a'
  12218. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12219. postinstall_cmds='base_file=`basename \${file}`~
  12220. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  12221. dldir=$destdir/`dirname \$dlpath`~
  12222. test -d \$dldir || mkdir -p \$dldir~
  12223. $install_prog $dir/$dlname \$dldir/$dlname~
  12224. chmod a+x \$dldir/$dlname'
  12225. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12226. dlpath=$dir/\$dldll~
  12227. $rm \$dlpath'
  12228. shlibpath_overrides_runpath=yes
  12229. case $host_os in
  12230. cygwin*)
  12231. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12232. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12233. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  12234. ;;
  12235. mingw*)
  12236. # MinGW DLLs use traditional 'lib' prefix
  12237. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12238. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  12239. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  12240. # It is most probably a Windows format PATH printed by
  12241. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  12242. # path with ; separators, and with drive letters. We can handle the
  12243. # drive letters (cygwin fileutils understands them), so leave them,
  12244. # especially as we might pass files found there to a mingw objdump,
  12245. # which wouldn't understand a cygwinified path. Ahh.
  12246. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12247. else
  12248. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12249. fi
  12250. ;;
  12251. pw32*)
  12252. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12253. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12254. ;;
  12255. esac
  12256. ;;
  12257. *)
  12258. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12259. ;;
  12260. esac
  12261. dynamic_linker='Win32 ld.exe'
  12262. # FIXME: first we should search . and the directory the executable is in
  12263. shlibpath_var=PATH
  12264. ;;
  12265. darwin* | rhapsody*)
  12266. dynamic_linker="$host_os dyld"
  12267. version_type=darwin
  12268. need_lib_prefix=no
  12269. need_version=no
  12270. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12271. soname_spec='${libname}${release}${major}$shared_ext'
  12272. shlibpath_overrides_runpath=yes
  12273. shlibpath_var=DYLD_LIBRARY_PATH
  12274. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12275. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12276. ;;
  12277. dgux*)
  12278. version_type=linux
  12279. need_lib_prefix=no
  12280. need_version=no
  12281. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12282. soname_spec='${libname}${release}${shared_ext}$major'
  12283. shlibpath_var=LD_LIBRARY_PATH
  12284. ;;
  12285. freebsd1*)
  12286. dynamic_linker=no
  12287. ;;
  12288. freebsd* | dragonfly*)
  12289. # DragonFly does not have aout. When/if they implement a new
  12290. # versioning mechanism, adjust this.
  12291. if test -x /usr/bin/objformat; then
  12292. objformat=`/usr/bin/objformat`
  12293. else
  12294. case $host_os in
  12295. freebsd[123]*) objformat=aout ;;
  12296. *) objformat=elf ;;
  12297. esac
  12298. fi
  12299. # Handle Gentoo/FreeBSD as it was Linux
  12300. case $host_vendor in
  12301. gentoo)
  12302. version_type=linux ;;
  12303. *)
  12304. version_type=freebsd-$objformat ;;
  12305. esac
  12306. case $version_type in
  12307. freebsd-elf*)
  12308. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12309. need_version=no
  12310. need_lib_prefix=no
  12311. ;;
  12312. freebsd-*)
  12313. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12314. need_version=yes
  12315. ;;
  12316. linux)
  12317. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12318. soname_spec='${libname}${release}${shared_ext}$major'
  12319. need_lib_prefix=no
  12320. need_version=no
  12321. ;;
  12322. esac
  12323. shlibpath_var=LD_LIBRARY_PATH
  12324. case $host_os in
  12325. freebsd2*)
  12326. shlibpath_overrides_runpath=yes
  12327. ;;
  12328. freebsd3.[01]* | freebsdelf3.[01]*)
  12329. shlibpath_overrides_runpath=yes
  12330. hardcode_into_libs=yes
  12331. ;;
  12332. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12333. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12334. shlibpath_overrides_runpath=no
  12335. hardcode_into_libs=yes
  12336. ;;
  12337. *) # from 4.6 on, and DragonFly
  12338. shlibpath_overrides_runpath=yes
  12339. hardcode_into_libs=yes
  12340. ;;
  12341. esac
  12342. ;;
  12343. gnu*)
  12344. version_type=linux
  12345. need_lib_prefix=no
  12346. need_version=no
  12347. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12348. soname_spec='${libname}${release}${shared_ext}$major'
  12349. shlibpath_var=LD_LIBRARY_PATH
  12350. hardcode_into_libs=yes
  12351. ;;
  12352. hpux9* | hpux10* | hpux11*)
  12353. # Give a soname corresponding to the major version so that dld.sl refuses to
  12354. # link against other versions.
  12355. version_type=sunos
  12356. need_lib_prefix=no
  12357. need_version=no
  12358. case $host_cpu in
  12359. ia64*)
  12360. shrext_cmds='.so'
  12361. hardcode_into_libs=yes
  12362. dynamic_linker="$host_os dld.so"
  12363. shlibpath_var=LD_LIBRARY_PATH
  12364. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12365. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12366. soname_spec='${libname}${release}${shared_ext}$major'
  12367. if test "X$HPUX_IA64_MODE" = X32; then
  12368. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12369. else
  12370. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12371. fi
  12372. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12373. ;;
  12374. hppa*64*)
  12375. shrext_cmds='.sl'
  12376. hardcode_into_libs=yes
  12377. dynamic_linker="$host_os dld.sl"
  12378. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12379. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12380. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12381. soname_spec='${libname}${release}${shared_ext}$major'
  12382. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12383. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12384. ;;
  12385. *)
  12386. shrext_cmds='.sl'
  12387. dynamic_linker="$host_os dld.sl"
  12388. shlibpath_var=SHLIB_PATH
  12389. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12390. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12391. soname_spec='${libname}${release}${shared_ext}$major'
  12392. ;;
  12393. esac
  12394. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12395. postinstall_cmds='chmod 555 $lib'
  12396. ;;
  12397. interix[3-9]*)
  12398. version_type=linux
  12399. need_lib_prefix=no
  12400. need_version=no
  12401. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12402. soname_spec='${libname}${release}${shared_ext}$major'
  12403. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12404. shlibpath_var=LD_LIBRARY_PATH
  12405. shlibpath_overrides_runpath=no
  12406. hardcode_into_libs=yes
  12407. ;;
  12408. irix5* | irix6* | nonstopux*)
  12409. case $host_os in
  12410. nonstopux*) version_type=nonstopux ;;
  12411. *)
  12412. if test "$lt_cv_prog_gnu_ld" = yes; then
  12413. version_type=linux
  12414. else
  12415. version_type=irix
  12416. fi ;;
  12417. esac
  12418. need_lib_prefix=no
  12419. need_version=no
  12420. soname_spec='${libname}${release}${shared_ext}$major'
  12421. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12422. case $host_os in
  12423. irix5* | nonstopux*)
  12424. libsuff= shlibsuff=
  12425. ;;
  12426. *)
  12427. case $LD in # libtool.m4 will add one of these switches to LD
  12428. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12429. libsuff= shlibsuff= libmagic=32-bit;;
  12430. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12431. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12432. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12433. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12434. *) libsuff= shlibsuff= libmagic=never-match;;
  12435. esac
  12436. ;;
  12437. esac
  12438. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12439. shlibpath_overrides_runpath=no
  12440. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12441. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12442. hardcode_into_libs=yes
  12443. ;;
  12444. # No shared lib support for Linux oldld, aout, or coff.
  12445. linux*oldld* | linux*aout* | linux*coff*)
  12446. dynamic_linker=no
  12447. ;;
  12448. # This must be Linux ELF.
  12449. linux* | k*bsd*-gnu)
  12450. version_type=linux
  12451. need_lib_prefix=no
  12452. need_version=no
  12453. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12454. soname_spec='${libname}${release}${shared_ext}$major'
  12455. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12456. shlibpath_var=LD_LIBRARY_PATH
  12457. shlibpath_overrides_runpath=no
  12458. # This implies no fast_install, which is unacceptable.
  12459. # Some rework will be needed to allow for fast_install
  12460. # before this can be enabled.
  12461. hardcode_into_libs=yes
  12462. # Append ld.so.conf contents to the search path
  12463. if test -f /etc/ld.so.conf; then
  12464. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  12465. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12466. fi
  12467. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12468. # powerpc, because MkLinux only supported shared libraries with the
  12469. # GNU dynamic linker. Since this was broken with cross compilers,
  12470. # most powerpc-linux boxes support dynamic linking these days and
  12471. # people can always --disable-shared, the test was removed, and we
  12472. # assume the GNU/Linux dynamic linker is in use.
  12473. dynamic_linker='GNU/Linux ld.so'
  12474. ;;
  12475. netbsd*)
  12476. version_type=sunos
  12477. need_lib_prefix=no
  12478. need_version=no
  12479. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12480. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12481. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12482. dynamic_linker='NetBSD (a.out) ld.so'
  12483. else
  12484. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12485. soname_spec='${libname}${release}${shared_ext}$major'
  12486. dynamic_linker='NetBSD ld.elf_so'
  12487. fi
  12488. shlibpath_var=LD_LIBRARY_PATH
  12489. shlibpath_overrides_runpath=yes
  12490. hardcode_into_libs=yes
  12491. ;;
  12492. newsos6)
  12493. version_type=linux
  12494. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12495. shlibpath_var=LD_LIBRARY_PATH
  12496. shlibpath_overrides_runpath=yes
  12497. ;;
  12498. nto-qnx*)
  12499. version_type=linux
  12500. need_lib_prefix=no
  12501. need_version=no
  12502. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12503. soname_spec='${libname}${release}${shared_ext}$major'
  12504. shlibpath_var=LD_LIBRARY_PATH
  12505. shlibpath_overrides_runpath=yes
  12506. ;;
  12507. openbsd*)
  12508. version_type=sunos
  12509. sys_lib_dlsearch_path_spec="/usr/lib"
  12510. need_lib_prefix=no
  12511. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12512. case $host_os in
  12513. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12514. *) need_version=no ;;
  12515. esac
  12516. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12517. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12518. shlibpath_var=LD_LIBRARY_PATH
  12519. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12520. case $host_os in
  12521. openbsd2.[89] | openbsd2.[89].*)
  12522. shlibpath_overrides_runpath=no
  12523. ;;
  12524. *)
  12525. shlibpath_overrides_runpath=yes
  12526. ;;
  12527. esac
  12528. else
  12529. shlibpath_overrides_runpath=yes
  12530. fi
  12531. ;;
  12532. os2*)
  12533. libname_spec='$name'
  12534. shrext_cmds=".dll"
  12535. need_lib_prefix=no
  12536. library_names_spec='$libname${shared_ext} $libname.a'
  12537. dynamic_linker='OS/2 ld.exe'
  12538. shlibpath_var=LIBPATH
  12539. ;;
  12540. osf3* | osf4* | osf5*)
  12541. version_type=osf
  12542. need_lib_prefix=no
  12543. need_version=no
  12544. soname_spec='${libname}${release}${shared_ext}$major'
  12545. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12546. shlibpath_var=LD_LIBRARY_PATH
  12547. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12548. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12549. ;;
  12550. rdos*)
  12551. dynamic_linker=no
  12552. ;;
  12553. solaris*)
  12554. version_type=linux
  12555. need_lib_prefix=no
  12556. need_version=no
  12557. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12558. soname_spec='${libname}${release}${shared_ext}$major'
  12559. shlibpath_var=LD_LIBRARY_PATH
  12560. shlibpath_overrides_runpath=yes
  12561. hardcode_into_libs=yes
  12562. # ldd complains unless libraries are executable
  12563. postinstall_cmds='chmod +x $lib'
  12564. ;;
  12565. sunos4*)
  12566. version_type=sunos
  12567. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12568. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12569. shlibpath_var=LD_LIBRARY_PATH
  12570. shlibpath_overrides_runpath=yes
  12571. if test "$with_gnu_ld" = yes; then
  12572. need_lib_prefix=no
  12573. fi
  12574. need_version=yes
  12575. ;;
  12576. sysv4 | sysv4.3*)
  12577. version_type=linux
  12578. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12579. soname_spec='${libname}${release}${shared_ext}$major'
  12580. shlibpath_var=LD_LIBRARY_PATH
  12581. case $host_vendor in
  12582. sni)
  12583. shlibpath_overrides_runpath=no
  12584. need_lib_prefix=no
  12585. export_dynamic_flag_spec='${wl}-Blargedynsym'
  12586. runpath_var=LD_RUN_PATH
  12587. ;;
  12588. siemens)
  12589. need_lib_prefix=no
  12590. ;;
  12591. motorola)
  12592. need_lib_prefix=no
  12593. need_version=no
  12594. shlibpath_overrides_runpath=no
  12595. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12596. ;;
  12597. esac
  12598. ;;
  12599. sysv4*MP*)
  12600. if test -d /usr/nec ;then
  12601. version_type=linux
  12602. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12603. soname_spec='$libname${shared_ext}.$major'
  12604. shlibpath_var=LD_LIBRARY_PATH
  12605. fi
  12606. ;;
  12607. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12608. version_type=freebsd-elf
  12609. need_lib_prefix=no
  12610. need_version=no
  12611. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12612. soname_spec='${libname}${release}${shared_ext}$major'
  12613. shlibpath_var=LD_LIBRARY_PATH
  12614. hardcode_into_libs=yes
  12615. if test "$with_gnu_ld" = yes; then
  12616. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12617. shlibpath_overrides_runpath=no
  12618. else
  12619. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12620. shlibpath_overrides_runpath=yes
  12621. case $host_os in
  12622. sco3.2v5*)
  12623. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12624. ;;
  12625. esac
  12626. fi
  12627. sys_lib_dlsearch_path_spec='/usr/lib'
  12628. ;;
  12629. uts4*)
  12630. version_type=linux
  12631. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12632. soname_spec='${libname}${release}${shared_ext}$major'
  12633. shlibpath_var=LD_LIBRARY_PATH
  12634. ;;
  12635. *)
  12636. dynamic_linker=no
  12637. ;;
  12638. esac
  12639. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  12640. echo "${ECHO_T}$dynamic_linker" >&6; }
  12641. test "$dynamic_linker" = no && can_build_shared=no
  12642. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12643. echo $ECHO_N "(cached) $ECHO_C" >&6
  12644. else
  12645. lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
  12646. fi
  12647. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12648. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12649. echo $ECHO_N "(cached) $ECHO_C" >&6
  12650. else
  12651. lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
  12652. fi
  12653. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12654. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12655. if test "$GCC" = yes; then
  12656. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12657. fi
  12658. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  12659. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  12660. hardcode_action_CXX=
  12661. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  12662. test -n "$runpath_var_CXX" || \
  12663. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12664. # We can hardcode non-existant directories.
  12665. if test "$hardcode_direct_CXX" != no &&
  12666. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12667. # have to relink, otherwise we might link with an installed library
  12668. # when we should be linking with a yet-to-be-installed one
  12669. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12670. test "$hardcode_minus_L_CXX" != no; then
  12671. # Linking always hardcodes the temporary library directory.
  12672. hardcode_action_CXX=relink
  12673. else
  12674. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12675. hardcode_action_CXX=immediate
  12676. fi
  12677. else
  12678. # We cannot hardcode anything, or else we can only hardcode existing
  12679. # directories.
  12680. hardcode_action_CXX=unsupported
  12681. fi
  12682. { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  12683. echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  12684. if test "$hardcode_action_CXX" = relink; then
  12685. # Fast installation is not supported
  12686. enable_fast_install=no
  12687. elif test "$shlibpath_overrides_runpath" = yes ||
  12688. test "$enable_shared" = no; then
  12689. # Fast installation is not necessary
  12690. enable_fast_install=needless
  12691. fi
  12692. # The else clause should only fire when bootstrapping the
  12693. # libtool distribution, otherwise you forgot to ship ltmain.sh
  12694. # with your package, and you will get complaints that there are
  12695. # no rules to generate ltmain.sh.
  12696. if test -f "$ltmain"; then
  12697. # See if we are running on zsh, and set the options which allow our commands through
  12698. # without removal of \ escapes.
  12699. if test -n "${ZSH_VERSION+set}" ; then
  12700. setopt NO_GLOB_SUBST
  12701. fi
  12702. # Now quote all the things that may contain metacharacters while being
  12703. # careful not to overquote the AC_SUBSTed values. We take copies of the
  12704. # variables and quote the copies for generation of the libtool script.
  12705. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  12706. SED SHELL STRIP \
  12707. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  12708. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  12709. deplibs_check_method reload_flag reload_cmds need_locks \
  12710. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  12711. lt_cv_sys_global_symbol_to_c_name_address \
  12712. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  12713. old_postinstall_cmds old_postuninstall_cmds \
  12714. compiler_CXX \
  12715. CC_CXX \
  12716. LD_CXX \
  12717. lt_prog_compiler_wl_CXX \
  12718. lt_prog_compiler_pic_CXX \
  12719. lt_prog_compiler_static_CXX \
  12720. lt_prog_compiler_no_builtin_flag_CXX \
  12721. export_dynamic_flag_spec_CXX \
  12722. thread_safe_flag_spec_CXX \
  12723. whole_archive_flag_spec_CXX \
  12724. enable_shared_with_static_runtimes_CXX \
  12725. old_archive_cmds_CXX \
  12726. old_archive_from_new_cmds_CXX \
  12727. predep_objects_CXX \
  12728. postdep_objects_CXX \
  12729. predeps_CXX \
  12730. postdeps_CXX \
  12731. compiler_lib_search_path_CXX \
  12732. compiler_lib_search_dirs_CXX \
  12733. archive_cmds_CXX \
  12734. archive_expsym_cmds_CXX \
  12735. postinstall_cmds_CXX \
  12736. postuninstall_cmds_CXX \
  12737. old_archive_from_expsyms_cmds_CXX \
  12738. allow_undefined_flag_CXX \
  12739. no_undefined_flag_CXX \
  12740. export_symbols_cmds_CXX \
  12741. hardcode_libdir_flag_spec_CXX \
  12742. hardcode_libdir_flag_spec_ld_CXX \
  12743. hardcode_libdir_separator_CXX \
  12744. hardcode_automatic_CXX \
  12745. module_cmds_CXX \
  12746. module_expsym_cmds_CXX \
  12747. lt_cv_prog_compiler_c_o_CXX \
  12748. fix_srcfile_path_CXX \
  12749. exclude_expsyms_CXX \
  12750. include_expsyms_CXX; do
  12751. case $var in
  12752. old_archive_cmds_CXX | \
  12753. old_archive_from_new_cmds_CXX | \
  12754. archive_cmds_CXX | \
  12755. archive_expsym_cmds_CXX | \
  12756. module_cmds_CXX | \
  12757. module_expsym_cmds_CXX | \
  12758. old_archive_from_expsyms_cmds_CXX | \
  12759. export_symbols_cmds_CXX | \
  12760. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  12761. postinstall_cmds | postuninstall_cmds | \
  12762. old_postinstall_cmds | old_postuninstall_cmds | \
  12763. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  12764. # Double-quote double-evaled strings.
  12765. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  12766. ;;
  12767. *)
  12768. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  12769. ;;
  12770. esac
  12771. done
  12772. case $lt_echo in
  12773. *'\$0 --fallback-echo"')
  12774. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  12775. ;;
  12776. esac
  12777. cfgfile="$ofile"
  12778. cat <<__EOF__ >> "$cfgfile"
  12779. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  12780. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12781. # Shell to use when invoking shell scripts.
  12782. SHELL=$lt_SHELL
  12783. # Whether or not to build shared libraries.
  12784. build_libtool_libs=$enable_shared
  12785. # Whether or not to build static libraries.
  12786. build_old_libs=$enable_static
  12787. # Whether or not to add -lc for building shared libraries.
  12788. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  12789. # Whether or not to disallow shared libs when runtime libs are static
  12790. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  12791. # Whether or not to optimize for fast installation.
  12792. fast_install=$enable_fast_install
  12793. # The host system.
  12794. host_alias=$host_alias
  12795. host=$host
  12796. host_os=$host_os
  12797. # The build system.
  12798. build_alias=$build_alias
  12799. build=$build
  12800. build_os=$build_os
  12801. # An echo program that does not interpret backslashes.
  12802. echo=$lt_echo
  12803. # The archiver.
  12804. AR=$lt_AR
  12805. AR_FLAGS=$lt_AR_FLAGS
  12806. # A C compiler.
  12807. LTCC=$lt_LTCC
  12808. # LTCC compiler flags.
  12809. LTCFLAGS=$lt_LTCFLAGS
  12810. # A language-specific compiler.
  12811. CC=$lt_compiler_CXX
  12812. # Is the compiler the GNU C compiler?
  12813. with_gcc=$GCC_CXX
  12814. # An ERE matcher.
  12815. EGREP=$lt_EGREP
  12816. # The linker used to build libraries.
  12817. LD=$lt_LD_CXX
  12818. # Whether we need hard or soft links.
  12819. LN_S=$lt_LN_S
  12820. # A BSD-compatible nm program.
  12821. NM=$lt_NM
  12822. # A symbol stripping program
  12823. STRIP=$lt_STRIP
  12824. # Used to examine libraries when file_magic_cmd begins "file"
  12825. MAGIC_CMD=$MAGIC_CMD
  12826. # Used on cygwin: DLL creation program.
  12827. DLLTOOL="$DLLTOOL"
  12828. # Used on cygwin: object dumper.
  12829. OBJDUMP="$OBJDUMP"
  12830. # Used on cygwin: assembler.
  12831. AS="$AS"
  12832. # The name of the directory that contains temporary libtool files.
  12833. objdir=$objdir
  12834. # How to create reloadable object files.
  12835. reload_flag=$lt_reload_flag
  12836. reload_cmds=$lt_reload_cmds
  12837. # How to pass a linker flag through the compiler.
  12838. wl=$lt_lt_prog_compiler_wl_CXX
  12839. # Object file suffix (normally "o").
  12840. objext="$ac_objext"
  12841. # Old archive suffix (normally "a").
  12842. libext="$libext"
  12843. # Shared library suffix (normally ".so").
  12844. shrext_cmds='$shrext_cmds'
  12845. # Executable file suffix (normally "").
  12846. exeext="$exeext"
  12847. # Additional compiler flags for building library objects.
  12848. pic_flag=$lt_lt_prog_compiler_pic_CXX
  12849. pic_mode=$pic_mode
  12850. # What is the maximum length of a command?
  12851. max_cmd_len=$lt_cv_sys_max_cmd_len
  12852. # Does compiler simultaneously support -c and -o options?
  12853. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  12854. # Must we lock files when doing compilation?
  12855. need_locks=$lt_need_locks
  12856. # Do we need the lib prefix for modules?
  12857. need_lib_prefix=$need_lib_prefix
  12858. # Do we need a version for libraries?
  12859. need_version=$need_version
  12860. # Whether dlopen is supported.
  12861. dlopen_support=$enable_dlopen
  12862. # Whether dlopen of programs is supported.
  12863. dlopen_self=$enable_dlopen_self
  12864. # Whether dlopen of statically linked programs is supported.
  12865. dlopen_self_static=$enable_dlopen_self_static
  12866. # Compiler flag to prevent dynamic linking.
  12867. link_static_flag=$lt_lt_prog_compiler_static_CXX
  12868. # Compiler flag to turn off builtin functions.
  12869. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  12870. # Compiler flag to allow reflexive dlopens.
  12871. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  12872. # Compiler flag to generate shared objects directly from archives.
  12873. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  12874. # Compiler flag to generate thread-safe objects.
  12875. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  12876. # Library versioning type.
  12877. version_type=$version_type
  12878. # Format of library name prefix.
  12879. libname_spec=$lt_libname_spec
  12880. # List of archive names. First name is the real one, the rest are links.
  12881. # The last name is the one that the linker finds with -lNAME.
  12882. library_names_spec=$lt_library_names_spec
  12883. # The coded name of the library, if different from the real name.
  12884. soname_spec=$lt_soname_spec
  12885. # Commands used to build and install an old-style archive.
  12886. RANLIB=$lt_RANLIB
  12887. old_archive_cmds=$lt_old_archive_cmds_CXX
  12888. old_postinstall_cmds=$lt_old_postinstall_cmds
  12889. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12890. # Create an old-style archive from a shared archive.
  12891. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  12892. # Create a temporary old-style archive to link instead of a shared archive.
  12893. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  12894. # Commands used to build and install a shared archive.
  12895. archive_cmds=$lt_archive_cmds_CXX
  12896. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  12897. postinstall_cmds=$lt_postinstall_cmds
  12898. postuninstall_cmds=$lt_postuninstall_cmds
  12899. # Commands used to build a loadable module (assumed same as above if empty)
  12900. module_cmds=$lt_module_cmds_CXX
  12901. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  12902. # Commands to strip libraries.
  12903. old_striplib=$lt_old_striplib
  12904. striplib=$lt_striplib
  12905. # Dependencies to place before the objects being linked to create a
  12906. # shared library.
  12907. predep_objects=$lt_predep_objects_CXX
  12908. # Dependencies to place after the objects being linked to create a
  12909. # shared library.
  12910. postdep_objects=$lt_postdep_objects_CXX
  12911. # Dependencies to place before the objects being linked to create a
  12912. # shared library.
  12913. predeps=$lt_predeps_CXX
  12914. # Dependencies to place after the objects being linked to create a
  12915. # shared library.
  12916. postdeps=$lt_postdeps_CXX
  12917. # The directories searched by this compiler when creating a shared
  12918. # library
  12919. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  12920. # The library search path used internally by the compiler when linking
  12921. # a shared library.
  12922. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  12923. # Method to check whether dependent libraries are shared objects.
  12924. deplibs_check_method=$lt_deplibs_check_method
  12925. # Command to use when deplibs_check_method == file_magic.
  12926. file_magic_cmd=$lt_file_magic_cmd
  12927. # Flag that allows shared libraries with undefined symbols to be built.
  12928. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  12929. # Flag that forces no undefined symbols.
  12930. no_undefined_flag=$lt_no_undefined_flag_CXX
  12931. # Commands used to finish a libtool library installation in a directory.
  12932. finish_cmds=$lt_finish_cmds
  12933. # Same as above, but a single script fragment to be evaled but not shown.
  12934. finish_eval=$lt_finish_eval
  12935. # Take the output of nm and produce a listing of raw symbols and C names.
  12936. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12937. # Transform the output of nm in a proper C declaration
  12938. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12939. # Transform the output of nm in a C name address pair
  12940. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12941. # This is the shared library runtime path variable.
  12942. runpath_var=$runpath_var
  12943. # This is the shared library path variable.
  12944. shlibpath_var=$shlibpath_var
  12945. # Is shlibpath searched before the hard-coded library search path?
  12946. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12947. # How to hardcode a shared library path into an executable.
  12948. hardcode_action=$hardcode_action_CXX
  12949. # Whether we should hardcode library paths into libraries.
  12950. hardcode_into_libs=$hardcode_into_libs
  12951. # Flag to hardcode \$libdir into a binary during linking.
  12952. # This must work even if \$libdir does not exist.
  12953. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  12954. # If ld is used when linking, flag to hardcode \$libdir into
  12955. # a binary during linking. This must work even if \$libdir does
  12956. # not exist.
  12957. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  12958. # Whether we need a single -rpath flag with a separated argument.
  12959. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  12960. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12961. # resulting binary.
  12962. hardcode_direct=$hardcode_direct_CXX
  12963. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12964. # resulting binary.
  12965. hardcode_minus_L=$hardcode_minus_L_CXX
  12966. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12967. # the resulting binary.
  12968. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  12969. # Set to yes if building a shared library automatically hardcodes DIR into the library
  12970. # and all subsequent libraries and executables linked against it.
  12971. hardcode_automatic=$hardcode_automatic_CXX
  12972. # Variables whose values should be saved in libtool wrapper scripts and
  12973. # restored at relink time.
  12974. variables_saved_for_relink="$variables_saved_for_relink"
  12975. # Whether libtool must link a program against all its dependency libraries.
  12976. link_all_deplibs=$link_all_deplibs_CXX
  12977. # Compile-time system search path for libraries
  12978. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12979. # Run-time system search path for libraries
  12980. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12981. # Fix the shell variable \$srcfile for the compiler.
  12982. fix_srcfile_path=$lt_fix_srcfile_path
  12983. # Set to yes if exported symbols are required.
  12984. always_export_symbols=$always_export_symbols_CXX
  12985. # The commands to list exported symbols.
  12986. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  12987. # The commands to extract the exported symbol list from a shared archive.
  12988. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12989. # Symbols that should not be listed in the preloaded symbols.
  12990. exclude_expsyms=$lt_exclude_expsyms_CXX
  12991. # Symbols that must always be exported.
  12992. include_expsyms=$lt_include_expsyms_CXX
  12993. # ### END LIBTOOL TAG CONFIG: $tagname
  12994. __EOF__
  12995. else
  12996. # If there is no Makefile yet, we rely on a make rule to execute
  12997. # `config.status --recheck' to rerun these tests and create the
  12998. # libtool script then.
  12999. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  13000. if test -f "$ltmain_in"; then
  13001. test -f Makefile && make "$ltmain"
  13002. fi
  13003. fi
  13004. ac_ext=c
  13005. ac_cpp='$CPP $CPPFLAGS'
  13006. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13007. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13008. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13009. CC=$lt_save_CC
  13010. LDCXX=$LD
  13011. LD=$lt_save_LD
  13012. GCC=$lt_save_GCC
  13013. with_gnu_ldcxx=$with_gnu_ld
  13014. with_gnu_ld=$lt_save_with_gnu_ld
  13015. lt_cv_path_LDCXX=$lt_cv_path_LD
  13016. lt_cv_path_LD=$lt_save_path_LD
  13017. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13018. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13019. else
  13020. tagname=""
  13021. fi
  13022. ;;
  13023. F77)
  13024. if test -n "$F77" && test "X$F77" != "Xno"; then
  13025. ac_ext=f
  13026. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  13027. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13028. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  13029. archive_cmds_need_lc_F77=no
  13030. allow_undefined_flag_F77=
  13031. always_export_symbols_F77=no
  13032. archive_expsym_cmds_F77=
  13033. export_dynamic_flag_spec_F77=
  13034. hardcode_direct_F77=no
  13035. hardcode_libdir_flag_spec_F77=
  13036. hardcode_libdir_flag_spec_ld_F77=
  13037. hardcode_libdir_separator_F77=
  13038. hardcode_minus_L_F77=no
  13039. hardcode_automatic_F77=no
  13040. module_cmds_F77=
  13041. module_expsym_cmds_F77=
  13042. link_all_deplibs_F77=unknown
  13043. old_archive_cmds_F77=$old_archive_cmds
  13044. no_undefined_flag_F77=
  13045. whole_archive_flag_spec_F77=
  13046. enable_shared_with_static_runtimes_F77=no
  13047. # Source file extension for f77 test sources.
  13048. ac_ext=f
  13049. # Object file extension for compiled f77 test sources.
  13050. objext=o
  13051. objext_F77=$objext
  13052. # Code to be used in simple compile tests
  13053. lt_simple_compile_test_code="\
  13054. subroutine t
  13055. return
  13056. end
  13057. "
  13058. # Code to be used in simple link tests
  13059. lt_simple_link_test_code="\
  13060. program t
  13061. end
  13062. "
  13063. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  13064. # If no C compiler was specified, use CC.
  13065. LTCC=${LTCC-"$CC"}
  13066. # If no C compiler flags were specified, use CFLAGS.
  13067. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  13068. # Allow CC to be a program name with arguments.
  13069. compiler=$CC
  13070. # save warnings/boilerplate of simple test code
  13071. ac_outfile=conftest.$ac_objext
  13072. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  13073. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13074. _lt_compiler_boilerplate=`cat conftest.err`
  13075. $rm conftest*
  13076. ac_outfile=conftest.$ac_objext
  13077. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  13078. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13079. _lt_linker_boilerplate=`cat conftest.err`
  13080. $rm -r conftest*
  13081. # Allow CC to be a program name with arguments.
  13082. lt_save_CC="$CC"
  13083. CC=${F77-"f77"}
  13084. compiler=$CC
  13085. compiler_F77=$CC
  13086. for cc_temp in $compiler""; do
  13087. case $cc_temp in
  13088. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13089. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13090. \-*) ;;
  13091. *) break;;
  13092. esac
  13093. done
  13094. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13095. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  13096. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  13097. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  13098. echo "${ECHO_T}$can_build_shared" >&6; }
  13099. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  13100. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  13101. test "$can_build_shared" = "no" && enable_shared=no
  13102. # On AIX, shared libraries and static libraries use the same namespace, and
  13103. # are all built from PIC.
  13104. case $host_os in
  13105. aix3*)
  13106. test "$enable_shared" = yes && enable_static=no
  13107. if test -n "$RANLIB"; then
  13108. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  13109. postinstall_cmds='$RANLIB $lib'
  13110. fi
  13111. ;;
  13112. aix[4-9]*)
  13113. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  13114. test "$enable_shared" = yes && enable_static=no
  13115. fi
  13116. ;;
  13117. esac
  13118. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  13119. echo "${ECHO_T}$enable_shared" >&6; }
  13120. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  13121. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  13122. # Make sure either enable_shared or enable_static is yes.
  13123. test "$enable_shared" = yes || enable_static=yes
  13124. { echo "$as_me:$LINENO: result: $enable_static" >&5
  13125. echo "${ECHO_T}$enable_static" >&6; }
  13126. GCC_F77="$G77"
  13127. LD_F77="$LD"
  13128. lt_prog_compiler_wl_F77=
  13129. lt_prog_compiler_pic_F77=
  13130. lt_prog_compiler_static_F77=
  13131. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  13132. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  13133. if test "$GCC" = yes; then
  13134. lt_prog_compiler_wl_F77='-Wl,'
  13135. lt_prog_compiler_static_F77='-static'
  13136. case $host_os in
  13137. aix*)
  13138. # All AIX code is PIC.
  13139. if test "$host_cpu" = ia64; then
  13140. # AIX 5 now supports IA64 processor
  13141. lt_prog_compiler_static_F77='-Bstatic'
  13142. fi
  13143. ;;
  13144. amigaos*)
  13145. # FIXME: we need at least 68020 code to build shared libraries, but
  13146. # adding the `-m68020' flag to GCC prevents building anything better,
  13147. # like `-m68040'.
  13148. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  13149. ;;
  13150. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  13151. # PIC is the default for these OSes.
  13152. ;;
  13153. mingw* | cygwin* | pw32* | os2*)
  13154. # This hack is so that the source file can tell whether it is being
  13155. # built for inclusion in a dll (and should export symbols for example).
  13156. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  13157. # (--disable-auto-import) libraries
  13158. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  13159. ;;
  13160. darwin* | rhapsody*)
  13161. # PIC is the default on this platform
  13162. # Common symbols not allowed in MH_DYLIB files
  13163. lt_prog_compiler_pic_F77='-fno-common'
  13164. ;;
  13165. interix[3-9]*)
  13166. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  13167. # Instead, we relocate shared libraries at runtime.
  13168. ;;
  13169. msdosdjgpp*)
  13170. # Just because we use GCC doesn't mean we suddenly get shared libraries
  13171. # on systems that don't support them.
  13172. lt_prog_compiler_can_build_shared_F77=no
  13173. enable_shared=no
  13174. ;;
  13175. sysv4*MP*)
  13176. if test -d /usr/nec; then
  13177. lt_prog_compiler_pic_F77=-Kconform_pic
  13178. fi
  13179. ;;
  13180. hpux*)
  13181. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13182. # not for PA HP-UX.
  13183. case $host_cpu in
  13184. hppa*64*|ia64*)
  13185. # +Z the default
  13186. ;;
  13187. *)
  13188. lt_prog_compiler_pic_F77='-fPIC'
  13189. ;;
  13190. esac
  13191. ;;
  13192. *)
  13193. lt_prog_compiler_pic_F77='-fPIC'
  13194. ;;
  13195. esac
  13196. else
  13197. # PORTME Check for flag to pass linker flags through the system compiler.
  13198. case $host_os in
  13199. aix*)
  13200. lt_prog_compiler_wl_F77='-Wl,'
  13201. if test "$host_cpu" = ia64; then
  13202. # AIX 5 now supports IA64 processor
  13203. lt_prog_compiler_static_F77='-Bstatic'
  13204. else
  13205. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  13206. fi
  13207. ;;
  13208. darwin*)
  13209. # PIC is the default on this platform
  13210. # Common symbols not allowed in MH_DYLIB files
  13211. case $cc_basename in
  13212. xlc*)
  13213. lt_prog_compiler_pic_F77='-qnocommon'
  13214. lt_prog_compiler_wl_F77='-Wl,'
  13215. ;;
  13216. esac
  13217. ;;
  13218. mingw* | cygwin* | pw32* | os2*)
  13219. # This hack is so that the source file can tell whether it is being
  13220. # built for inclusion in a dll (and should export symbols for example).
  13221. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  13222. ;;
  13223. hpux9* | hpux10* | hpux11*)
  13224. lt_prog_compiler_wl_F77='-Wl,'
  13225. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  13226. # not for PA HP-UX.
  13227. case $host_cpu in
  13228. hppa*64*|ia64*)
  13229. # +Z the default
  13230. ;;
  13231. *)
  13232. lt_prog_compiler_pic_F77='+Z'
  13233. ;;
  13234. esac
  13235. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  13236. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  13237. ;;
  13238. irix5* | irix6* | nonstopux*)
  13239. lt_prog_compiler_wl_F77='-Wl,'
  13240. # PIC (with -KPIC) is the default.
  13241. lt_prog_compiler_static_F77='-non_shared'
  13242. ;;
  13243. newsos6)
  13244. lt_prog_compiler_pic_F77='-KPIC'
  13245. lt_prog_compiler_static_F77='-Bstatic'
  13246. ;;
  13247. linux* | k*bsd*-gnu)
  13248. case $cc_basename in
  13249. icc* | ecc*)
  13250. lt_prog_compiler_wl_F77='-Wl,'
  13251. lt_prog_compiler_pic_F77='-KPIC'
  13252. lt_prog_compiler_static_F77='-static'
  13253. ;;
  13254. pgcc* | pgf77* | pgf90* | pgf95*)
  13255. # Portland Group compilers (*not* the Pentium gcc compiler,
  13256. # which looks to be a dead project)
  13257. lt_prog_compiler_wl_F77='-Wl,'
  13258. lt_prog_compiler_pic_F77='-fpic'
  13259. lt_prog_compiler_static_F77='-Bstatic'
  13260. ;;
  13261. ccc*)
  13262. lt_prog_compiler_wl_F77='-Wl,'
  13263. # All Alpha code is PIC.
  13264. lt_prog_compiler_static_F77='-non_shared'
  13265. ;;
  13266. *)
  13267. case `$CC -V 2>&1 | sed 5q` in
  13268. *Sun\ C*)
  13269. # Sun C 5.9
  13270. lt_prog_compiler_pic_F77='-KPIC'
  13271. lt_prog_compiler_static_F77='-Bstatic'
  13272. lt_prog_compiler_wl_F77='-Wl,'
  13273. ;;
  13274. *Sun\ F*)
  13275. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  13276. lt_prog_compiler_pic_F77='-KPIC'
  13277. lt_prog_compiler_static_F77='-Bstatic'
  13278. lt_prog_compiler_wl_F77=''
  13279. ;;
  13280. esac
  13281. ;;
  13282. esac
  13283. ;;
  13284. osf3* | osf4* | osf5*)
  13285. lt_prog_compiler_wl_F77='-Wl,'
  13286. # All OSF/1 code is PIC.
  13287. lt_prog_compiler_static_F77='-non_shared'
  13288. ;;
  13289. rdos*)
  13290. lt_prog_compiler_static_F77='-non_shared'
  13291. ;;
  13292. solaris*)
  13293. lt_prog_compiler_pic_F77='-KPIC'
  13294. lt_prog_compiler_static_F77='-Bstatic'
  13295. case $cc_basename in
  13296. f77* | f90* | f95*)
  13297. lt_prog_compiler_wl_F77='-Qoption ld ';;
  13298. *)
  13299. lt_prog_compiler_wl_F77='-Wl,';;
  13300. esac
  13301. ;;
  13302. sunos4*)
  13303. lt_prog_compiler_wl_F77='-Qoption ld '
  13304. lt_prog_compiler_pic_F77='-PIC'
  13305. lt_prog_compiler_static_F77='-Bstatic'
  13306. ;;
  13307. sysv4 | sysv4.2uw2* | sysv4.3*)
  13308. lt_prog_compiler_wl_F77='-Wl,'
  13309. lt_prog_compiler_pic_F77='-KPIC'
  13310. lt_prog_compiler_static_F77='-Bstatic'
  13311. ;;
  13312. sysv4*MP*)
  13313. if test -d /usr/nec ;then
  13314. lt_prog_compiler_pic_F77='-Kconform_pic'
  13315. lt_prog_compiler_static_F77='-Bstatic'
  13316. fi
  13317. ;;
  13318. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  13319. lt_prog_compiler_wl_F77='-Wl,'
  13320. lt_prog_compiler_pic_F77='-KPIC'
  13321. lt_prog_compiler_static_F77='-Bstatic'
  13322. ;;
  13323. unicos*)
  13324. lt_prog_compiler_wl_F77='-Wl,'
  13325. lt_prog_compiler_can_build_shared_F77=no
  13326. ;;
  13327. uts4*)
  13328. lt_prog_compiler_pic_F77='-pic'
  13329. lt_prog_compiler_static_F77='-Bstatic'
  13330. ;;
  13331. *)
  13332. lt_prog_compiler_can_build_shared_F77=no
  13333. ;;
  13334. esac
  13335. fi
  13336. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  13337. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  13338. #
  13339. # Check to make sure the PIC flag actually works.
  13340. #
  13341. if test -n "$lt_prog_compiler_pic_F77"; then
  13342. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  13343. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  13344. if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
  13345. echo $ECHO_N "(cached) $ECHO_C" >&6
  13346. else
  13347. lt_cv_prog_compiler_pic_works_F77=no
  13348. ac_outfile=conftest.$ac_objext
  13349. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13350. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  13351. # Insert the option either (1) after the last *FLAGS variable, or
  13352. # (2) before a word containing "conftest.", or (3) at the end.
  13353. # Note that $ac_compile itself does not contain backslashes and begins
  13354. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13355. # The option is referenced via a variable to avoid confusing sed.
  13356. lt_compile=`echo "$ac_compile" | $SED \
  13357. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13358. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13359. -e 's:$: $lt_compiler_flag:'`
  13360. (eval echo "\"\$as_me:14916: $lt_compile\"" >&5)
  13361. (eval "$lt_compile" 2>conftest.err)
  13362. ac_status=$?
  13363. cat conftest.err >&5
  13364. echo "$as_me:14920: \$? = $ac_status" >&5
  13365. if (exit $ac_status) && test -s "$ac_outfile"; then
  13366. # The compiler can only warn and ignore the option if not recognized
  13367. # So say no if there are warnings other than the usual output.
  13368. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  13369. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13370. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13371. lt_cv_prog_compiler_pic_works_F77=yes
  13372. fi
  13373. fi
  13374. $rm conftest*
  13375. fi
  13376. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
  13377. echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
  13378. if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
  13379. case $lt_prog_compiler_pic_F77 in
  13380. "" | " "*) ;;
  13381. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  13382. esac
  13383. else
  13384. lt_prog_compiler_pic_F77=
  13385. lt_prog_compiler_can_build_shared_F77=no
  13386. fi
  13387. fi
  13388. case $host_os in
  13389. # For platforms which do not support PIC, -DPIC is meaningless:
  13390. *djgpp*)
  13391. lt_prog_compiler_pic_F77=
  13392. ;;
  13393. *)
  13394. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  13395. ;;
  13396. esac
  13397. #
  13398. # Check to make sure the static flag actually works.
  13399. #
  13400. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  13401. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  13402. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  13403. if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
  13404. echo $ECHO_N "(cached) $ECHO_C" >&6
  13405. else
  13406. lt_cv_prog_compiler_static_works_F77=no
  13407. save_LDFLAGS="$LDFLAGS"
  13408. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  13409. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13410. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13411. # The linker can only warn and ignore the option if not recognized
  13412. # So say no if there are warnings
  13413. if test -s conftest.err; then
  13414. # Append any errors to the config.log.
  13415. cat conftest.err 1>&5
  13416. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  13417. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13418. if diff conftest.exp conftest.er2 >/dev/null; then
  13419. lt_cv_prog_compiler_static_works_F77=yes
  13420. fi
  13421. else
  13422. lt_cv_prog_compiler_static_works_F77=yes
  13423. fi
  13424. fi
  13425. $rm -r conftest*
  13426. LDFLAGS="$save_LDFLAGS"
  13427. fi
  13428. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
  13429. echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
  13430. if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
  13431. :
  13432. else
  13433. lt_prog_compiler_static_F77=
  13434. fi
  13435. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  13436. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  13437. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  13438. echo $ECHO_N "(cached) $ECHO_C" >&6
  13439. else
  13440. lt_cv_prog_compiler_c_o_F77=no
  13441. $rm -r conftest 2>/dev/null
  13442. mkdir conftest
  13443. cd conftest
  13444. mkdir out
  13445. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13446. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13447. # Insert the option either (1) after the last *FLAGS variable, or
  13448. # (2) before a word containing "conftest.", or (3) at the end.
  13449. # Note that $ac_compile itself does not contain backslashes and begins
  13450. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13451. lt_compile=`echo "$ac_compile" | $SED \
  13452. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13453. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13454. -e 's:$: $lt_compiler_flag:'`
  13455. (eval echo "\"\$as_me:15020: $lt_compile\"" >&5)
  13456. (eval "$lt_compile" 2>out/conftest.err)
  13457. ac_status=$?
  13458. cat out/conftest.err >&5
  13459. echo "$as_me:15024: \$? = $ac_status" >&5
  13460. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13461. then
  13462. # The compiler can only warn and ignore the option if not recognized
  13463. # So say no if there are warnings
  13464. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  13465. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13466. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13467. lt_cv_prog_compiler_c_o_F77=yes
  13468. fi
  13469. fi
  13470. chmod u+w . 2>&5
  13471. $rm conftest*
  13472. # SGI C++ compiler will create directory out/ii_files/ for
  13473. # template instantiation
  13474. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  13475. $rm out/* && rmdir out
  13476. cd ..
  13477. rmdir conftest
  13478. $rm conftest*
  13479. fi
  13480. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  13481. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  13482. hard_links="nottested"
  13483. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  13484. # do not overwrite the value of need_locks provided by the user
  13485. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  13486. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  13487. hard_links=yes
  13488. $rm conftest*
  13489. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13490. touch conftest.a
  13491. ln conftest.a conftest.b 2>&5 || hard_links=no
  13492. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13493. { echo "$as_me:$LINENO: result: $hard_links" >&5
  13494. echo "${ECHO_T}$hard_links" >&6; }
  13495. if test "$hard_links" = no; then
  13496. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13497. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13498. need_locks=warn
  13499. fi
  13500. else
  13501. need_locks=no
  13502. fi
  13503. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13504. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  13505. runpath_var=
  13506. allow_undefined_flag_F77=
  13507. enable_shared_with_static_runtimes_F77=no
  13508. archive_cmds_F77=
  13509. archive_expsym_cmds_F77=
  13510. old_archive_From_new_cmds_F77=
  13511. old_archive_from_expsyms_cmds_F77=
  13512. export_dynamic_flag_spec_F77=
  13513. whole_archive_flag_spec_F77=
  13514. thread_safe_flag_spec_F77=
  13515. hardcode_libdir_flag_spec_F77=
  13516. hardcode_libdir_flag_spec_ld_F77=
  13517. hardcode_libdir_separator_F77=
  13518. hardcode_direct_F77=no
  13519. hardcode_minus_L_F77=no
  13520. hardcode_shlibpath_var_F77=unsupported
  13521. link_all_deplibs_F77=unknown
  13522. hardcode_automatic_F77=no
  13523. module_cmds_F77=
  13524. module_expsym_cmds_F77=
  13525. always_export_symbols_F77=no
  13526. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13527. # include_expsyms should be a list of space-separated symbols to be *always*
  13528. # included in the symbol list
  13529. include_expsyms_F77=
  13530. # exclude_expsyms can be an extended regexp of symbols to exclude
  13531. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  13532. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  13533. # as well as any symbol that contains `d'.
  13534. exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13535. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  13536. # platforms (ab)use it in PIC code, but their linkers get confused if
  13537. # the symbol is explicitly referenced. Since portable code cannot
  13538. # rely on this symbol name, it's probably fine to never include it in
  13539. # preloaded symbol tables.
  13540. # Exclude shared library initialization/finalization symbols.
  13541. extract_expsyms_cmds=
  13542. # Just being paranoid about ensuring that cc_basename is set.
  13543. for cc_temp in $compiler""; do
  13544. case $cc_temp in
  13545. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13546. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13547. \-*) ;;
  13548. *) break;;
  13549. esac
  13550. done
  13551. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13552. case $host_os in
  13553. cygwin* | mingw* | pw32*)
  13554. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  13555. # When not using gcc, we currently assume that we are using
  13556. # Microsoft Visual C++.
  13557. if test "$GCC" != yes; then
  13558. with_gnu_ld=no
  13559. fi
  13560. ;;
  13561. interix*)
  13562. # we just hope/assume this is gcc and not c89 (= MSVC++)
  13563. with_gnu_ld=yes
  13564. ;;
  13565. openbsd*)
  13566. with_gnu_ld=no
  13567. ;;
  13568. esac
  13569. ld_shlibs_F77=yes
  13570. if test "$with_gnu_ld" = yes; then
  13571. # If archive_cmds runs LD, not CC, wlarc should be empty
  13572. wlarc='${wl}'
  13573. # Set some defaults for GNU ld with shared library support. These
  13574. # are reset later if shared libraries are not supported. Putting them
  13575. # here allows them to be overridden if necessary.
  13576. runpath_var=LD_RUN_PATH
  13577. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  13578. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  13579. # ancient GNU ld didn't support --whole-archive et. al.
  13580. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  13581. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13582. else
  13583. whole_archive_flag_spec_F77=
  13584. fi
  13585. supports_anon_versioning=no
  13586. case `$LD -v 2>/dev/null` in
  13587. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  13588. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  13589. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  13590. *\ 2.11.*) ;; # other 2.11 versions
  13591. *) supports_anon_versioning=yes ;;
  13592. esac
  13593. # See if GNU ld supports shared libraries.
  13594. case $host_os in
  13595. aix[3-9]*)
  13596. # On AIX/PPC, the GNU linker is very broken
  13597. if test "$host_cpu" != ia64; then
  13598. ld_shlibs_F77=no
  13599. cat <<EOF 1>&2
  13600. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  13601. *** to be unable to reliably create shared libraries on AIX.
  13602. *** Therefore, libtool is disabling shared libraries support. If you
  13603. *** really care for shared libraries, you may want to modify your PATH
  13604. *** so that a non-GNU linker is found, and then restart.
  13605. EOF
  13606. fi
  13607. ;;
  13608. amigaos*)
  13609. archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  13610. hardcode_libdir_flag_spec_F77='-L$libdir'
  13611. hardcode_minus_L_F77=yes
  13612. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  13613. # that the semantics of dynamic libraries on AmigaOS, at least up
  13614. # to version 4, is to share data among multiple programs linked
  13615. # with the same dynamic library. Since this doesn't match the
  13616. # behavior of shared libraries on other platforms, we can't use
  13617. # them.
  13618. ld_shlibs_F77=no
  13619. ;;
  13620. beos*)
  13621. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13622. allow_undefined_flag_F77=unsupported
  13623. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13624. # support --undefined. This deserves some investigation. FIXME
  13625. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13626. else
  13627. ld_shlibs_F77=no
  13628. fi
  13629. ;;
  13630. cygwin* | mingw* | pw32*)
  13631. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  13632. # as there is no search path for DLLs.
  13633. hardcode_libdir_flag_spec_F77='-L$libdir'
  13634. allow_undefined_flag_F77=unsupported
  13635. always_export_symbols_F77=no
  13636. enable_shared_with_static_runtimes_F77=yes
  13637. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  13638. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13639. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13640. # If the export-symbols file already is a .def file (1st line
  13641. # is EXPORTS), use it as is; otherwise, prepend...
  13642. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13643. cp $export_symbols $output_objdir/$soname.def;
  13644. else
  13645. echo EXPORTS > $output_objdir/$soname.def;
  13646. cat $export_symbols >> $output_objdir/$soname.def;
  13647. fi~
  13648. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13649. else
  13650. ld_shlibs_F77=no
  13651. fi
  13652. ;;
  13653. interix[3-9]*)
  13654. hardcode_direct_F77=no
  13655. hardcode_shlibpath_var_F77=no
  13656. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13657. export_dynamic_flag_spec_F77='${wl}-E'
  13658. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13659. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13660. # default) and relocated if they conflict, which is a slow very memory
  13661. # consuming and fragmenting process. To avoid this, we pick a random,
  13662. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13663. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13664. archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13665. archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13666. ;;
  13667. gnu* | linux* | k*bsd*-gnu)
  13668. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13669. tmp_addflag=
  13670. case $cc_basename,$host_cpu in
  13671. pgcc*) # Portland Group C compiler
  13672. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13673. tmp_addflag=' $pic_flag'
  13674. ;;
  13675. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  13676. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13677. tmp_addflag=' $pic_flag -Mnomain' ;;
  13678. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13679. tmp_addflag=' -i_dynamic' ;;
  13680. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13681. tmp_addflag=' -i_dynamic -nofor_main' ;;
  13682. ifc* | ifort*) # Intel Fortran compiler
  13683. tmp_addflag=' -nofor_main' ;;
  13684. esac
  13685. case `$CC -V 2>&1 | sed 5q` in
  13686. *Sun\ C*) # Sun C 5.9
  13687. whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13688. tmp_sharedflag='-G' ;;
  13689. *Sun\ F*) # Sun Fortran 8.3
  13690. tmp_sharedflag='-G' ;;
  13691. *)
  13692. tmp_sharedflag='-shared' ;;
  13693. esac
  13694. archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13695. if test $supports_anon_versioning = yes; then
  13696. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  13697. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13698. $echo "local: *; };" >> $output_objdir/$libname.ver~
  13699. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13700. fi
  13701. else
  13702. ld_shlibs_F77=no
  13703. fi
  13704. ;;
  13705. netbsd*)
  13706. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13707. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13708. wlarc=
  13709. else
  13710. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13711. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13712. fi
  13713. ;;
  13714. solaris*)
  13715. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  13716. ld_shlibs_F77=no
  13717. cat <<EOF 1>&2
  13718. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13719. *** create shared libraries on Solaris systems. Therefore, libtool
  13720. *** is disabling shared libraries support. We urge you to upgrade GNU
  13721. *** binutils to release 2.9.1 or newer. Another option is to modify
  13722. *** your PATH or compiler configuration so that the native linker is
  13723. *** used, and then restart.
  13724. EOF
  13725. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13726. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13727. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13728. else
  13729. ld_shlibs_F77=no
  13730. fi
  13731. ;;
  13732. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  13733. case `$LD -v 2>&1` in
  13734. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  13735. ld_shlibs_F77=no
  13736. cat <<_LT_EOF 1>&2
  13737. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  13738. *** reliably create shared libraries on SCO systems. Therefore, libtool
  13739. *** is disabling shared libraries support. We urge you to upgrade GNU
  13740. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  13741. *** your PATH or compiler configuration so that the native linker is
  13742. *** used, and then restart.
  13743. _LT_EOF
  13744. ;;
  13745. *)
  13746. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13747. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  13748. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  13749. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  13750. else
  13751. ld_shlibs_F77=no
  13752. fi
  13753. ;;
  13754. esac
  13755. ;;
  13756. sunos4*)
  13757. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13758. wlarc=
  13759. hardcode_direct_F77=yes
  13760. hardcode_shlibpath_var_F77=no
  13761. ;;
  13762. *)
  13763. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13764. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13765. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13766. else
  13767. ld_shlibs_F77=no
  13768. fi
  13769. ;;
  13770. esac
  13771. if test "$ld_shlibs_F77" = no; then
  13772. runpath_var=
  13773. hardcode_libdir_flag_spec_F77=
  13774. export_dynamic_flag_spec_F77=
  13775. whole_archive_flag_spec_F77=
  13776. fi
  13777. else
  13778. # PORTME fill in a description of your system's linker (not GNU ld)
  13779. case $host_os in
  13780. aix3*)
  13781. allow_undefined_flag_F77=unsupported
  13782. always_export_symbols_F77=yes
  13783. archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  13784. # Note: this linker hardcodes the directories in LIBPATH if there
  13785. # are no directories specified by -L.
  13786. hardcode_minus_L_F77=yes
  13787. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  13788. # Neither direct hardcoding nor static linking is supported with a
  13789. # broken collect2.
  13790. hardcode_direct_F77=unsupported
  13791. fi
  13792. ;;
  13793. aix[4-9]*)
  13794. if test "$host_cpu" = ia64; then
  13795. # On IA64, the linker does run time linking by default, so we don't
  13796. # have to do anything special.
  13797. aix_use_runtimelinking=no
  13798. exp_sym_flag='-Bexport'
  13799. no_entry_flag=""
  13800. else
  13801. # If we're using GNU nm, then we don't want the "-C" option.
  13802. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13803. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  13804. export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  13805. else
  13806. export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  13807. fi
  13808. aix_use_runtimelinking=no
  13809. # Test if we are trying to use run time linking or normal
  13810. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13811. # need to do runtime linking.
  13812. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  13813. for ld_flag in $LDFLAGS; do
  13814. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  13815. aix_use_runtimelinking=yes
  13816. break
  13817. fi
  13818. done
  13819. ;;
  13820. esac
  13821. exp_sym_flag='-bexport'
  13822. no_entry_flag='-bnoentry'
  13823. fi
  13824. # When large executables or shared objects are built, AIX ld can
  13825. # have problems creating the table of contents. If linking a library
  13826. # or program results in "error TOC overflow" add -mminimal-toc to
  13827. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13828. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13829. archive_cmds_F77=''
  13830. hardcode_direct_F77=yes
  13831. hardcode_libdir_separator_F77=':'
  13832. link_all_deplibs_F77=yes
  13833. if test "$GCC" = yes; then
  13834. case $host_os in aix4.[012]|aix4.[012].*)
  13835. # We only want to do this on AIX 4.2 and lower, the check
  13836. # below for broken collect2 doesn't work under 4.3+
  13837. collect2name=`${CC} -print-prog-name=collect2`
  13838. if test -f "$collect2name" && \
  13839. strings "$collect2name" | grep resolve_lib_name >/dev/null
  13840. then
  13841. # We have reworked collect2
  13842. :
  13843. else
  13844. # We have old collect2
  13845. hardcode_direct_F77=unsupported
  13846. # It fails to find uninstalled libraries when the uninstalled
  13847. # path is not listed in the libpath. Setting hardcode_minus_L
  13848. # to unsupported forces relinking
  13849. hardcode_minus_L_F77=yes
  13850. hardcode_libdir_flag_spec_F77='-L$libdir'
  13851. hardcode_libdir_separator_F77=
  13852. fi
  13853. ;;
  13854. esac
  13855. shared_flag='-shared'
  13856. if test "$aix_use_runtimelinking" = yes; then
  13857. shared_flag="$shared_flag "'${wl}-G'
  13858. fi
  13859. else
  13860. # not using gcc
  13861. if test "$host_cpu" = ia64; then
  13862. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13863. # chokes on -Wl,-G. The following line is correct:
  13864. shared_flag='-G'
  13865. else
  13866. if test "$aix_use_runtimelinking" = yes; then
  13867. shared_flag='${wl}-G'
  13868. else
  13869. shared_flag='${wl}-bM:SRE'
  13870. fi
  13871. fi
  13872. fi
  13873. # It seems that -bexpall does not export symbols beginning with
  13874. # underscore (_), so it is better to generate a list of symbols to export.
  13875. always_export_symbols_F77=yes
  13876. if test "$aix_use_runtimelinking" = yes; then
  13877. # Warning - without using the other runtime loading flags (-brtl),
  13878. # -berok will link without error, but may produce a broken library.
  13879. allow_undefined_flag_F77='-berok'
  13880. # Determine the default libpath from the value encoded in an empty executable.
  13881. cat >conftest.$ac_ext <<_ACEOF
  13882. program main
  13883. end
  13884. _ACEOF
  13885. rm -f conftest.$ac_objext conftest$ac_exeext
  13886. if { (ac_try="$ac_link"
  13887. case "(($ac_try" in
  13888. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13889. *) ac_try_echo=$ac_try;;
  13890. esac
  13891. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13892. (eval "$ac_link") 2>conftest.er1
  13893. ac_status=$?
  13894. grep -v '^ *+' conftest.er1 >conftest.err
  13895. rm -f conftest.er1
  13896. cat conftest.err >&5
  13897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13898. (exit $ac_status); } && {
  13899. test -z "$ac_f77_werror_flag" ||
  13900. test ! -s conftest.err
  13901. } && test -s conftest$ac_exeext &&
  13902. $as_test_x conftest$ac_exeext; then
  13903. lt_aix_libpath_sed='
  13904. /Import File Strings/,/^$/ {
  13905. /^0/ {
  13906. s/^0 *\(.*\)$/\1/
  13907. p
  13908. }
  13909. }'
  13910. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13911. # Check for a 64-bit object if we didn't find anything.
  13912. if test -z "$aix_libpath"; then
  13913. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13914. fi
  13915. else
  13916. echo "$as_me: failed program was:" >&5
  13917. sed 's/^/| /' conftest.$ac_ext >&5
  13918. fi
  13919. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13920. conftest$ac_exeext conftest.$ac_ext
  13921. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13922. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13923. archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  13924. else
  13925. if test "$host_cpu" = ia64; then
  13926. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  13927. allow_undefined_flag_F77="-z nodefs"
  13928. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  13929. else
  13930. # Determine the default libpath from the value encoded in an empty executable.
  13931. cat >conftest.$ac_ext <<_ACEOF
  13932. program main
  13933. end
  13934. _ACEOF
  13935. rm -f conftest.$ac_objext conftest$ac_exeext
  13936. if { (ac_try="$ac_link"
  13937. case "(($ac_try" in
  13938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13939. *) ac_try_echo=$ac_try;;
  13940. esac
  13941. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13942. (eval "$ac_link") 2>conftest.er1
  13943. ac_status=$?
  13944. grep -v '^ *+' conftest.er1 >conftest.err
  13945. rm -f conftest.er1
  13946. cat conftest.err >&5
  13947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13948. (exit $ac_status); } && {
  13949. test -z "$ac_f77_werror_flag" ||
  13950. test ! -s conftest.err
  13951. } && test -s conftest$ac_exeext &&
  13952. $as_test_x conftest$ac_exeext; then
  13953. lt_aix_libpath_sed='
  13954. /Import File Strings/,/^$/ {
  13955. /^0/ {
  13956. s/^0 *\(.*\)$/\1/
  13957. p
  13958. }
  13959. }'
  13960. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13961. # Check for a 64-bit object if we didn't find anything.
  13962. if test -z "$aix_libpath"; then
  13963. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13964. fi
  13965. else
  13966. echo "$as_me: failed program was:" >&5
  13967. sed 's/^/| /' conftest.$ac_ext >&5
  13968. fi
  13969. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13970. conftest$ac_exeext conftest.$ac_ext
  13971. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13972. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13973. # Warning - without using the other run time loading flags,
  13974. # -berok will link without error, but may produce a broken library.
  13975. no_undefined_flag_F77=' ${wl}-bernotok'
  13976. allow_undefined_flag_F77=' ${wl}-berok'
  13977. # Exported symbols can be pulled into shared objects from archives
  13978. whole_archive_flag_spec_F77='$convenience'
  13979. archive_cmds_need_lc_F77=yes
  13980. # This is similar to how AIX traditionally builds its shared libraries.
  13981. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  13982. fi
  13983. fi
  13984. ;;
  13985. amigaos*)
  13986. archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  13987. hardcode_libdir_flag_spec_F77='-L$libdir'
  13988. hardcode_minus_L_F77=yes
  13989. # see comment about different semantics on the GNU ld section
  13990. ld_shlibs_F77=no
  13991. ;;
  13992. bsdi[45]*)
  13993. export_dynamic_flag_spec_F77=-rdynamic
  13994. ;;
  13995. cygwin* | mingw* | pw32*)
  13996. # When not using gcc, we currently assume that we are using
  13997. # Microsoft Visual C++.
  13998. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13999. # no search path for DLLs.
  14000. hardcode_libdir_flag_spec_F77=' '
  14001. allow_undefined_flag_F77=unsupported
  14002. # Tell ltmain to make .lib files, not .a files.
  14003. libext=lib
  14004. # Tell ltmain to make .dll files, not .so files.
  14005. shrext_cmds=".dll"
  14006. # FIXME: Setting linknames here is a bad hack.
  14007. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  14008. # The linker will automatically build a .lib file if we build a DLL.
  14009. old_archive_From_new_cmds_F77='true'
  14010. # FIXME: Should let the user specify the lib program.
  14011. old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  14012. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  14013. enable_shared_with_static_runtimes_F77=yes
  14014. ;;
  14015. darwin* | rhapsody*)
  14016. case $host_os in
  14017. rhapsody* | darwin1.[012])
  14018. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  14019. ;;
  14020. *) # Darwin 1.3 on
  14021. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  14022. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14023. else
  14024. case ${MACOSX_DEPLOYMENT_TARGET} in
  14025. 10.[012])
  14026. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  14027. ;;
  14028. 10.*)
  14029. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  14030. ;;
  14031. esac
  14032. fi
  14033. ;;
  14034. esac
  14035. archive_cmds_need_lc_F77=no
  14036. hardcode_direct_F77=no
  14037. hardcode_automatic_F77=yes
  14038. hardcode_shlibpath_var_F77=unsupported
  14039. whole_archive_flag_spec_F77=''
  14040. link_all_deplibs_F77=yes
  14041. if test "$GCC" = yes ; then
  14042. output_verbose_link_cmd='echo'
  14043. archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  14044. module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  14045. archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  14046. module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  14047. else
  14048. case $cc_basename in
  14049. xlc*)
  14050. output_verbose_link_cmd='echo'
  14051. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-ins