/Modules/_ctypes/libffi/configure

http://unladen-swallow.googlecode.com/ · Shell · 24420 lines · 19548 code · 2185 blank · 2687 comment · 1704 complexity · a0cecb7eb9cff7722ada11afa5804163 MD5 · raw file

  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for libffi 3.0.5.
  4. #
  5. # Report bugs to <http://gcc.gnu.org/bugs.html>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. # Check that we are running under the correct shell.
  476. SHELL=${CONFIG_SHELL-/bin/sh}
  477. case X$ECHO in
  478. X*--fallback-echo)
  479. # Remove one level of quotation (which was required for Make).
  480. ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  481. ;;
  482. esac
  483. echo=${ECHO-echo}
  484. if test "X$1" = X--no-reexec; then
  485. # Discard the --no-reexec flag, and continue.
  486. shift
  487. elif test "X$1" = X--fallback-echo; then
  488. # Avoid inline document here, it may be left over
  489. :
  490. elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  491. # Yippee, $echo works!
  492. :
  493. else
  494. # Restart under the correct shell.
  495. exec $SHELL "$0" --no-reexec ${1+"$@"}
  496. fi
  497. if test "X$1" = X--fallback-echo; then
  498. # used as fallback echo
  499. shift
  500. cat <<EOF
  501. $*
  502. EOF
  503. exit 0
  504. fi
  505. # The HP-UX ksh and POSIX shell print the target directory to stdout
  506. # if CDPATH is set.
  507. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  508. if test -z "$ECHO"; then
  509. if test "X${echo_test_string+set}" != Xset; then
  510. # find a string as large as possible, as long as the shell can cope with it
  511. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  512. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  513. if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  514. echo_test_string=`eval $cmd` &&
  515. (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  516. then
  517. break
  518. fi
  519. done
  520. fi
  521. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  522. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  523. test "X$echo_testing_string" = "X$echo_test_string"; then
  524. :
  525. else
  526. # The Solaris, AIX, and Digital Unix default echo programs unquote
  527. # backslashes. This makes it impossible to quote backslashes using
  528. # echo "$something" | sed 's/\\/\\\\/g'
  529. #
  530. # So, first we look for a working echo in the user's PATH.
  531. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  532. for dir in $PATH /usr/ucb; do
  533. IFS="$lt_save_ifs"
  534. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  535. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  536. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  537. test "X$echo_testing_string" = "X$echo_test_string"; then
  538. echo="$dir/echo"
  539. break
  540. fi
  541. done
  542. IFS="$lt_save_ifs"
  543. if test "X$echo" = Xecho; then
  544. # We didn't find a better echo, so look for alternatives.
  545. if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  546. echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  547. test "X$echo_testing_string" = "X$echo_test_string"; then
  548. # This shell has a builtin print -r that does the trick.
  549. echo='print -r'
  550. elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  551. test "X$CONFIG_SHELL" != X/bin/ksh; then
  552. # If we have ksh, try running configure again with it.
  553. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  554. export ORIGINAL_CONFIG_SHELL
  555. CONFIG_SHELL=/bin/ksh
  556. export CONFIG_SHELL
  557. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  558. else
  559. # Try using printf.
  560. echo='printf %s\n'
  561. if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  562. echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  563. test "X$echo_testing_string" = "X$echo_test_string"; then
  564. # Cool, printf works
  565. :
  566. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  567. test "X$echo_testing_string" = 'X\t' &&
  568. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  569. test "X$echo_testing_string" = "X$echo_test_string"; then
  570. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  571. export CONFIG_SHELL
  572. SHELL="$CONFIG_SHELL"
  573. export SHELL
  574. echo="$CONFIG_SHELL $0 --fallback-echo"
  575. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  576. test "X$echo_testing_string" = 'X\t' &&
  577. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  578. test "X$echo_testing_string" = "X$echo_test_string"; then
  579. echo="$CONFIG_SHELL $0 --fallback-echo"
  580. else
  581. # maybe with a smaller string...
  582. prev=:
  583. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  584. if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  585. then
  586. break
  587. fi
  588. prev="$cmd"
  589. done
  590. if test "$prev" != 'sed 50q "$0"'; then
  591. echo_test_string=`eval $prev`
  592. export echo_test_string
  593. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  594. else
  595. # Oops. We lost completely, so just stick with echo.
  596. echo=echo
  597. fi
  598. fi
  599. fi
  600. fi
  601. fi
  602. fi
  603. # Copy echo and quote the copy suitably for passing to libtool from
  604. # the Makefile, instead of quoting the original, which is used later.
  605. ECHO=$echo
  606. if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  607. ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  608. fi
  609. tagnames=${tagnames+${tagnames},}CXX
  610. tagnames=${tagnames+${tagnames},}F77
  611. exec 7<&0 </dev/null 6>&1
  612. # Name of the host.
  613. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  614. # so uname gets run too.
  615. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  616. #
  617. # Initializations.
  618. #
  619. ac_default_prefix=/usr/local
  620. ac_clean_files=
  621. ac_config_libobj_dir=.
  622. LIBOBJS=
  623. cross_compiling=no
  624. subdirs=
  625. MFLAGS=
  626. MAKEFLAGS=
  627. SHELL=${CONFIG_SHELL-/bin/sh}
  628. # Identity of this package.
  629. PACKAGE_NAME='libffi'
  630. PACKAGE_TARNAME='libffi'
  631. PACKAGE_VERSION='3.0.5'
  632. PACKAGE_STRING='libffi 3.0.5'
  633. PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
  634. # Factoring default headers for most tests.
  635. ac_includes_default="\
  636. #include <stdio.h>
  637. #ifdef HAVE_SYS_TYPES_H
  638. # include <sys/types.h>
  639. #endif
  640. #ifdef HAVE_SYS_STAT_H
  641. # include <sys/stat.h>
  642. #endif
  643. #ifdef STDC_HEADERS
  644. # include <stdlib.h>
  645. # include <stddef.h>
  646. #else
  647. # ifdef HAVE_STDLIB_H
  648. # include <stdlib.h>
  649. # endif
  650. #endif
  651. #ifdef HAVE_STRING_H
  652. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  653. # include <memory.h>
  654. # endif
  655. # include <string.h>
  656. #endif
  657. #ifdef HAVE_STRINGS_H
  658. # include <strings.h>
  659. #endif
  660. #ifdef HAVE_INTTYPES_H
  661. # include <inttypes.h>
  662. #endif
  663. #ifdef HAVE_STDINT_H
  664. # include <stdint.h>
  665. #endif
  666. #ifdef HAVE_UNISTD_H
  667. # include <unistd.h>
  668. #endif"
  669. ac_subst_vars='SHELL
  670. PATH_SEPARATOR
  671. PACKAGE_NAME
  672. PACKAGE_TARNAME
  673. PACKAGE_VERSION
  674. PACKAGE_STRING
  675. PACKAGE_BUGREPORT
  676. exec_prefix
  677. prefix
  678. program_transform_name
  679. bindir
  680. sbindir
  681. libexecdir
  682. datarootdir
  683. datadir
  684. sysconfdir
  685. sharedstatedir
  686. localstatedir
  687. includedir
  688. oldincludedir
  689. docdir
  690. infodir
  691. htmldir
  692. dvidir
  693. pdfdir
  694. psdir
  695. libdir
  696. localedir
  697. mandir
  698. DEFS
  699. ECHO_C
  700. ECHO_N
  701. ECHO_T
  702. LIBS
  703. build_alias
  704. host_alias
  705. target_alias
  706. build
  707. build_cpu
  708. build_vendor
  709. build_os
  710. host
  711. host_cpu
  712. host_vendor
  713. host_os
  714. target
  715. target_cpu
  716. target_vendor
  717. target_os
  718. INSTALL_PROGRAM
  719. INSTALL_SCRIPT
  720. INSTALL_DATA
  721. am__isrc
  722. CYGPATH_W
  723. PACKAGE
  724. VERSION
  725. ACLOCAL
  726. AUTOCONF
  727. AUTOMAKE
  728. AUTOHEADER
  729. MAKEINFO
  730. install_sh
  731. STRIP
  732. INSTALL_STRIP_PROGRAM
  733. mkdir_p
  734. AWK
  735. SET_MAKE
  736. am__leading_dot
  737. AMTAR
  738. am__tar
  739. am__untar
  740. CC
  741. CFLAGS
  742. LDFLAGS
  743. CPPFLAGS
  744. ac_ct_CC
  745. EXEEXT
  746. OBJEXT
  747. DEPDIR
  748. am__include
  749. am__quote
  750. AMDEP_TRUE
  751. AMDEP_FALSE
  752. AMDEPBACKSLASH
  753. CCDEPMODE
  754. am__fastdepCC_TRUE
  755. am__fastdepCC_FALSE
  756. CCAS
  757. CCASFLAGS
  758. CCASDEPMODE
  759. am__fastdepCCAS_TRUE
  760. am__fastdepCCAS_FALSE
  761. SED
  762. GREP
  763. EGREP
  764. LN_S
  765. ECHO
  766. AR
  767. RANLIB
  768. CPP
  769. CXX
  770. CXXFLAGS
  771. ac_ct_CXX
  772. CXXDEPMODE
  773. am__fastdepCXX_TRUE
  774. am__fastdepCXX_FALSE
  775. CXXCPP
  776. F77
  777. FFLAGS
  778. ac_ct_F77
  779. LIBTOOL
  780. MAINTAINER_MODE_TRUE
  781. MAINTAINER_MODE_FALSE
  782. MAINT
  783. TESTSUBDIR_TRUE
  784. TESTSUBDIR_FALSE
  785. AM_RUNTESTFLAGS
  786. MIPS_TRUE
  787. MIPS_FALSE
  788. SPARC_TRUE
  789. SPARC_FALSE
  790. X86_TRUE
  791. X86_FALSE
  792. X86_FREEBSD_TRUE
  793. X86_FREEBSD_FALSE
  794. X86_WIN32_TRUE
  795. X86_WIN32_FALSE
  796. X86_DARWIN_TRUE
  797. X86_DARWIN_FALSE
  798. ALPHA_TRUE
  799. ALPHA_FALSE
  800. IA64_TRUE
  801. IA64_FALSE
  802. M32R_TRUE
  803. M32R_FALSE
  804. M68K_TRUE
  805. M68K_FALSE
  806. POWERPC_TRUE
  807. POWERPC_FALSE
  808. POWERPC_AIX_TRUE
  809. POWERPC_AIX_FALSE
  810. POWERPC_DARWIN_TRUE
  811. POWERPC_DARWIN_FALSE
  812. POWERPC_FREEBSD_TRUE
  813. POWERPC_FREEBSD_FALSE
  814. ARM_TRUE
  815. ARM_FALSE
  816. LIBFFI_CRIS_TRUE
  817. LIBFFI_CRIS_FALSE
  818. FRV_TRUE
  819. FRV_FALSE
  820. S390_TRUE
  821. S390_FALSE
  822. X86_64_TRUE
  823. X86_64_FALSE
  824. SH_TRUE
  825. SH_FALSE
  826. SH64_TRUE
  827. SH64_FALSE
  828. PA_LINUX_TRUE
  829. PA_LINUX_FALSE
  830. PA_HPUX_TRUE
  831. PA_HPUX_FALSE
  832. PA64_HPUX_TRUE
  833. PA64_HPUX_FALSE
  834. ALLOCA
  835. HAVE_LONG_DOUBLE
  836. TARGET
  837. TARGETDIR
  838. toolexecdir
  839. toolexeclibdir
  840. LIBOBJS
  841. LTLIBOBJS'
  842. ac_subst_files=''
  843. ac_precious_vars='build_alias
  844. host_alias
  845. target_alias
  846. CCAS
  847. CCASFLAGS
  848. CPP
  849. CPPFLAGS
  850. CXX
  851. CXXFLAGS
  852. LDFLAGS
  853. LIBS
  854. CCC
  855. CXXCPP
  856. F77
  857. FFLAGS'
  858. # Initialize some variables set by options.
  859. ac_init_help=
  860. ac_init_version=false
  861. # The variables have the same names as the options, with
  862. # dashes changed to underlines.
  863. cache_file=/dev/null
  864. exec_prefix=NONE
  865. no_create=
  866. no_recursion=
  867. prefix=NONE
  868. program_prefix=NONE
  869. program_suffix=NONE
  870. program_transform_name=s,x,x,
  871. silent=
  872. site=
  873. srcdir=
  874. verbose=
  875. x_includes=NONE
  876. x_libraries=NONE
  877. # Installation directory options.
  878. # These are left unexpanded so users can "make install exec_prefix=/foo"
  879. # and all the variables that are supposed to be based on exec_prefix
  880. # by default will actually change.
  881. # Use braces instead of parens because sh, perl, etc. also accept them.
  882. # (The list follows the same order as the GNU Coding Standards.)
  883. bindir='${exec_prefix}/bin'
  884. sbindir='${exec_prefix}/sbin'
  885. libexecdir='${exec_prefix}/libexec'
  886. datarootdir='${prefix}/share'
  887. datadir='${datarootdir}'
  888. sysconfdir='${prefix}/etc'
  889. sharedstatedir='${prefix}/com'
  890. localstatedir='${prefix}/var'
  891. includedir='${prefix}/include'
  892. oldincludedir='/usr/include'
  893. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  894. infodir='${datarootdir}/info'
  895. htmldir='${docdir}'
  896. dvidir='${docdir}'
  897. pdfdir='${docdir}'
  898. psdir='${docdir}'
  899. libdir='${exec_prefix}/lib'
  900. localedir='${datarootdir}/locale'
  901. mandir='${datarootdir}/man'
  902. ac_prev=
  903. ac_dashdash=
  904. for ac_option
  905. do
  906. # If the previous option needs an argument, assign it.
  907. if test -n "$ac_prev"; then
  908. eval $ac_prev=\$ac_option
  909. ac_prev=
  910. continue
  911. fi
  912. case $ac_option in
  913. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  914. *) ac_optarg=yes ;;
  915. esac
  916. # Accept the important Cygnus configure options, so we can diagnose typos.
  917. case $ac_dashdash$ac_option in
  918. --)
  919. ac_dashdash=yes ;;
  920. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  921. ac_prev=bindir ;;
  922. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  923. bindir=$ac_optarg ;;
  924. -build | --build | --buil | --bui | --bu)
  925. ac_prev=build_alias ;;
  926. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  927. build_alias=$ac_optarg ;;
  928. -cache-file | --cache-file | --cache-fil | --cache-fi \
  929. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  930. ac_prev=cache_file ;;
  931. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  932. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  933. cache_file=$ac_optarg ;;
  934. --config-cache | -C)
  935. cache_file=config.cache ;;
  936. -datadir | --datadir | --datadi | --datad)
  937. ac_prev=datadir ;;
  938. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  939. datadir=$ac_optarg ;;
  940. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  941. | --dataroo | --dataro | --datar)
  942. ac_prev=datarootdir ;;
  943. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  944. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  945. datarootdir=$ac_optarg ;;
  946. -disable-* | --disable-*)
  947. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  948. # Reject names that are not valid shell variable names.
  949. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  950. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  951. { (exit 1); exit 1; }; }
  952. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  953. eval enable_$ac_feature=no ;;
  954. -docdir | --docdir | --docdi | --doc | --do)
  955. ac_prev=docdir ;;
  956. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  957. docdir=$ac_optarg ;;
  958. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  959. ac_prev=dvidir ;;
  960. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  961. dvidir=$ac_optarg ;;
  962. -enable-* | --enable-*)
  963. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  964. # Reject names that are not valid shell variable names.
  965. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  966. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  967. { (exit 1); exit 1; }; }
  968. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  969. eval enable_$ac_feature=\$ac_optarg ;;
  970. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  971. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  972. | --exec | --exe | --ex)
  973. ac_prev=exec_prefix ;;
  974. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  975. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  976. | --exec=* | --exe=* | --ex=*)
  977. exec_prefix=$ac_optarg ;;
  978. -gas | --gas | --ga | --g)
  979. # Obsolete; use --with-gas.
  980. with_gas=yes ;;
  981. -help | --help | --hel | --he | -h)
  982. ac_init_help=long ;;
  983. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  984. ac_init_help=recursive ;;
  985. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  986. ac_init_help=short ;;
  987. -host | --host | --hos | --ho)
  988. ac_prev=host_alias ;;
  989. -host=* | --host=* | --hos=* | --ho=*)
  990. host_alias=$ac_optarg ;;
  991. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  992. ac_prev=htmldir ;;
  993. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  994. | --ht=*)
  995. htmldir=$ac_optarg ;;
  996. -includedir | --includedir | --includedi | --included | --include \
  997. | --includ | --inclu | --incl | --inc)
  998. ac_prev=includedir ;;
  999. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1000. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1001. includedir=$ac_optarg ;;
  1002. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1003. ac_prev=infodir ;;
  1004. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1005. infodir=$ac_optarg ;;
  1006. -libdir | --libdir | --libdi | --libd)
  1007. ac_prev=libdir ;;
  1008. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1009. libdir=$ac_optarg ;;
  1010. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1011. | --libexe | --libex | --libe)
  1012. ac_prev=libexecdir ;;
  1013. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1014. | --libexe=* | --libex=* | --libe=*)
  1015. libexecdir=$ac_optarg ;;
  1016. -localedir | --localedir | --localedi | --localed | --locale)
  1017. ac_prev=localedir ;;
  1018. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1019. localedir=$ac_optarg ;;
  1020. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1021. | --localstate | --localstat | --localsta | --localst | --locals)
  1022. ac_prev=localstatedir ;;
  1023. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1024. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1025. localstatedir=$ac_optarg ;;
  1026. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1027. ac_prev=mandir ;;
  1028. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1029. mandir=$ac_optarg ;;
  1030. -nfp | --nfp | --nf)
  1031. # Obsolete; use --without-fp.
  1032. with_fp=no ;;
  1033. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1034. | --no-cr | --no-c | -n)
  1035. no_create=yes ;;
  1036. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1037. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1038. no_recursion=yes ;;
  1039. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1040. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1041. | --oldin | --oldi | --old | --ol | --o)
  1042. ac_prev=oldincludedir ;;
  1043. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1044. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1045. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1046. oldincludedir=$ac_optarg ;;
  1047. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1048. ac_prev=prefix ;;
  1049. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1050. prefix=$ac_optarg ;;
  1051. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1052. | --program-pre | --program-pr | --program-p)
  1053. ac_prev=program_prefix ;;
  1054. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1055. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1056. program_prefix=$ac_optarg ;;
  1057. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1058. | --program-suf | --program-su | --program-s)
  1059. ac_prev=program_suffix ;;
  1060. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1061. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1062. program_suffix=$ac_optarg ;;
  1063. -program-transform-name | --program-transform-name \
  1064. | --program-transform-nam | --program-transform-na \
  1065. | --program-transform-n | --program-transform- \
  1066. | --program-transform | --program-transfor \
  1067. | --program-transfo | --program-transf \
  1068. | --program-trans | --program-tran \
  1069. | --progr-tra | --program-tr | --program-t)
  1070. ac_prev=program_transform_name ;;
  1071. -program-transform-name=* | --program-transform-name=* \
  1072. | --program-transform-nam=* | --program-transform-na=* \
  1073. | --program-transform-n=* | --program-transform-=* \
  1074. | --program-transform=* | --program-transfor=* \
  1075. | --program-transfo=* | --program-transf=* \
  1076. | --program-trans=* | --program-tran=* \
  1077. | --progr-tra=* | --program-tr=* | --program-t=*)
  1078. program_transform_name=$ac_optarg ;;
  1079. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1080. ac_prev=pdfdir ;;
  1081. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1082. pdfdir=$ac_optarg ;;
  1083. -psdir | --psdir | --psdi | --psd | --ps)
  1084. ac_prev=psdir ;;
  1085. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1086. psdir=$ac_optarg ;;
  1087. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1088. | -silent | --silent | --silen | --sile | --sil)
  1089. silent=yes ;;
  1090. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1091. ac_prev=sbindir ;;
  1092. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1093. | --sbi=* | --sb=*)
  1094. sbindir=$ac_optarg ;;
  1095. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1096. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1097. | --sharedst | --shareds | --shared | --share | --shar \
  1098. | --sha | --sh)
  1099. ac_prev=sharedstatedir ;;
  1100. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1101. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1102. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1103. | --sha=* | --sh=*)
  1104. sharedstatedir=$ac_optarg ;;
  1105. -site | --site | --sit)
  1106. ac_prev=site ;;
  1107. -site=* | --site=* | --sit=*)
  1108. site=$ac_optarg ;;
  1109. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1110. ac_prev=srcdir ;;
  1111. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1112. srcdir=$ac_optarg ;;
  1113. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1114. | --syscon | --sysco | --sysc | --sys | --sy)
  1115. ac_prev=sysconfdir ;;
  1116. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1117. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1118. sysconfdir=$ac_optarg ;;
  1119. -target | --target | --targe | --targ | --tar | --ta | --t)
  1120. ac_prev=target_alias ;;
  1121. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1122. target_alias=$ac_optarg ;;
  1123. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1124. verbose=yes ;;
  1125. -version | --version | --versio | --versi | --vers | -V)
  1126. ac_init_version=: ;;
  1127. -with-* | --with-*)
  1128. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1129. # Reject names that are not valid shell variable names.
  1130. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1131. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1132. { (exit 1); exit 1; }; }
  1133. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1134. eval with_$ac_package=\$ac_optarg ;;
  1135. -without-* | --without-*)
  1136. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1137. # Reject names that are not valid shell variable names.
  1138. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1139. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1140. { (exit 1); exit 1; }; }
  1141. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1142. eval with_$ac_package=no ;;
  1143. --x)
  1144. # Obsolete; use --with-x.
  1145. with_x=yes ;;
  1146. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1147. | --x-incl | --x-inc | --x-in | --x-i)
  1148. ac_prev=x_includes ;;
  1149. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1150. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1151. x_includes=$ac_optarg ;;
  1152. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1153. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1154. ac_prev=x_libraries ;;
  1155. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1156. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1157. x_libraries=$ac_optarg ;;
  1158. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1159. Try \`$0 --help' for more information." >&2
  1160. { (exit 1); exit 1; }; }
  1161. ;;
  1162. *=*)
  1163. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1164. # Reject names that are not valid shell variable names.
  1165. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1166. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1167. { (exit 1); exit 1; }; }
  1168. eval $ac_envvar=\$ac_optarg
  1169. export $ac_envvar ;;
  1170. *)
  1171. # FIXME: should be removed in autoconf 3.0.
  1172. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1173. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1174. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1175. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1176. ;;
  1177. esac
  1178. done
  1179. if test -n "$ac_prev"; then
  1180. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1181. { echo "$as_me: error: missing argument to $ac_option" >&2
  1182. { (exit 1); exit 1; }; }
  1183. fi
  1184. # Be sure to have absolute directory names.
  1185. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1186. datadir sysconfdir sharedstatedir localstatedir includedir \
  1187. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1188. libdir localedir mandir
  1189. do
  1190. eval ac_val=\$$ac_var
  1191. case $ac_val in
  1192. [\\/$]* | ?:[\\/]* ) continue;;
  1193. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1194. esac
  1195. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1196. { (exit 1); exit 1; }; }
  1197. done
  1198. # There might be people who depend on the old broken behavior: `$host'
  1199. # used to hold the argument of --host etc.
  1200. # FIXME: To remove some day.
  1201. build=$build_alias
  1202. host=$host_alias
  1203. target=$target_alias
  1204. # FIXME: To remove some day.
  1205. if test "x$host_alias" != x; then
  1206. if test "x$build_alias" = x; then
  1207. cross_compiling=maybe
  1208. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1209. If a cross compiler is detected then cross compile mode will be used." >&2
  1210. elif test "x$build_alias" != "x$host_alias"; then
  1211. cross_compiling=yes
  1212. fi
  1213. fi
  1214. ac_tool_prefix=
  1215. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1216. test "$silent" = yes && exec 6>/dev/null
  1217. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1218. ac_ls_di=`ls -di .` &&
  1219. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1220. { echo "$as_me: error: Working directory cannot be determined" >&2
  1221. { (exit 1); exit 1; }; }
  1222. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1223. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1224. { (exit 1); exit 1; }; }
  1225. # Find the source files, if location was not specified.
  1226. if test -z "$srcdir"; then
  1227. ac_srcdir_defaulted=yes
  1228. # Try the directory containing this script, then the parent directory.
  1229. ac_confdir=`$as_dirname -- "$0" ||
  1230. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1231. X"$0" : 'X\(//\)[^/]' \| \
  1232. X"$0" : 'X\(//\)$' \| \
  1233. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1234. echo X"$0" |
  1235. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1236. s//\1/
  1237. q
  1238. }
  1239. /^X\(\/\/\)[^/].*/{
  1240. s//\1/
  1241. q
  1242. }
  1243. /^X\(\/\/\)$/{
  1244. s//\1/
  1245. q
  1246. }
  1247. /^X\(\/\).*/{
  1248. s//\1/
  1249. q
  1250. }
  1251. s/.*/./; q'`
  1252. srcdir=$ac_confdir
  1253. if test ! -r "$srcdir/$ac_unique_file"; then
  1254. srcdir=..
  1255. fi
  1256. else
  1257. ac_srcdir_defaulted=no
  1258. fi
  1259. if test ! -r "$srcdir/$ac_unique_file"; then
  1260. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1261. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1262. { (exit 1); exit 1; }; }
  1263. fi
  1264. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1265. ac_abs_confdir=`(
  1266. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1267. { (exit 1); exit 1; }; }
  1268. pwd)`
  1269. # When building in place, set srcdir=.
  1270. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1271. srcdir=.
  1272. fi
  1273. # Remove unnecessary trailing slashes from srcdir.
  1274. # Double slashes in file names in object file debugging info
  1275. # mess up M-x gdb in Emacs.
  1276. case $srcdir in
  1277. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1278. esac
  1279. for ac_var in $ac_precious_vars; do
  1280. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1281. eval ac_env_${ac_var}_value=\$${ac_var}
  1282. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1283. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1284. done
  1285. #
  1286. # Report the --help message.
  1287. #
  1288. if test "$ac_init_help" = "long"; then
  1289. # Omit some internal or obsolete options to make the list less imposing.
  1290. # This message is too long to be a string in the A/UX 3.1 sh.
  1291. cat <<_ACEOF
  1292. \`configure' configures libffi 3.0.5 to adapt to many kinds of systems.
  1293. Usage: $0 [OPTION]... [VAR=VALUE]...
  1294. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1295. VAR=VALUE. See below for descriptions of some of the useful variables.
  1296. Defaults for the options are specified in brackets.
  1297. Configuration:
  1298. -h, --help display this help and exit
  1299. --help=short display options specific to this package
  1300. --help=recursive display the short help of all the included packages
  1301. -V, --version display version information and exit
  1302. -q, --quiet, --silent do not print \`checking...' messages
  1303. --cache-file=FILE cache test results in FILE [disabled]
  1304. -C, --config-cache alias for \`--cache-file=config.cache'
  1305. -n, --no-create do not create output files
  1306. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1307. Installation directories:
  1308. --prefix=PREFIX install architecture-independent files in PREFIX
  1309. [$ac_default_prefix]
  1310. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1311. [PREFIX]
  1312. By default, \`make install' will install all the files in
  1313. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1314. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1315. for instance \`--prefix=\$HOME'.
  1316. For better control, use the options below.
  1317. Fine tuning of the installation directories:
  1318. --bindir=DIR user executables [EPREFIX/bin]
  1319. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1320. --libexecdir=DIR program executables [EPREFIX/libexec]
  1321. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1322. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1323. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1324. --libdir=DIR object code libraries [EPREFIX/lib]
  1325. --includedir=DIR C header files [PREFIX/include]
  1326. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1327. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1328. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1329. --infodir=DIR info documentation [DATAROOTDIR/info]
  1330. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1331. --mandir=DIR man documentation [DATAROOTDIR/man]
  1332. --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
  1333. --htmldir=DIR html documentation [DOCDIR]
  1334. --dvidir=DIR dvi documentation [DOCDIR]
  1335. --pdfdir=DIR pdf documentation [DOCDIR]
  1336. --psdir=DIR ps documentation [DOCDIR]
  1337. _ACEOF
  1338. cat <<\_ACEOF
  1339. Program names:
  1340. --program-prefix=PREFIX prepend PREFIX to installed program names
  1341. --program-suffix=SUFFIX append SUFFIX to installed program names
  1342. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1343. System types:
  1344. --build=BUILD configure for building on BUILD [guessed]
  1345. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1346. --target=TARGET configure for building compilers for TARGET [HOST]
  1347. _ACEOF
  1348. fi
  1349. if test -n "$ac_init_help"; then
  1350. case $ac_init_help in
  1351. short | recursive ) echo "Configuration of libffi 3.0.5:";;
  1352. esac
  1353. cat <<\_ACEOF
  1354. Optional Features:
  1355. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1356. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1357. --disable-dependency-tracking speeds up one-time build
  1358. --enable-dependency-tracking do not reject slow dependency extractors
  1359. --enable-shared[=PKGS] build shared libraries [default=yes]
  1360. --enable-static[=PKGS] build static libraries [default=yes]
  1361. --enable-fast-install[=PKGS]
  1362. optimize for fast installation [default=yes]
  1363. --disable-libtool-lock avoid locking (might break parallel builds)
  1364. --enable-maintainer-mode enable make rules and dependencies not useful
  1365. (and sometimes confusing) to the casual installer
  1366. --enable-debug debugging mode
  1367. --disable-structs omit code for struct support
  1368. --disable-raw-api make the raw api unavailable
  1369. --enable-purify-safety purify-safe mode
  1370. Optional Packages:
  1371. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1372. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1373. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1374. --with-pic try to use only PIC/non-PIC objects [default=use
  1375. both]
  1376. --with-tags[=TAGS] include additional configurations [automatic]
  1377. Some influential environment variables:
  1378. CC C compiler command
  1379. CFLAGS C compiler flags
  1380. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1381. nonstandard directory <lib dir>
  1382. LIBS libraries to pass to the linker, e.g. -l<library>
  1383. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1384. you have headers in a nonstandard directory <include dir>
  1385. CCAS assembler compiler command (defaults to CC)
  1386. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  1387. CPP C preprocessor
  1388. CXX C++ compiler command
  1389. CXXFLAGS C++ compiler flags
  1390. CXXCPP C++ preprocessor
  1391. F77 Fortran 77 compiler command
  1392. FFLAGS Fortran 77 compiler flags
  1393. Use these variables to override the choices made by `configure' or to help
  1394. it to find libraries and programs with nonstandard names/locations.
  1395. Report bugs to <http://gcc.gnu.org/bugs.html>.
  1396. _ACEOF
  1397. ac_status=$?
  1398. fi
  1399. if test "$ac_init_help" = "recursive"; then
  1400. # If there are subdirs, report their specific --help.
  1401. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1402. test -d "$ac_dir" || continue
  1403. ac_builddir=.
  1404. case "$ac_dir" in
  1405. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1406. *)
  1407. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1408. # A ".." for each directory in $ac_dir_suffix.
  1409. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1410. case $ac_top_builddir_sub in
  1411. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1412. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1413. esac ;;
  1414. esac
  1415. ac_abs_top_builddir=$ac_pwd
  1416. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1417. # for backward compatibility:
  1418. ac_top_builddir=$ac_top_build_prefix
  1419. case $srcdir in
  1420. .) # We are building in place.
  1421. ac_srcdir=.
  1422. ac_top_srcdir=$ac_top_builddir_sub
  1423. ac_abs_top_srcdir=$ac_pwd ;;
  1424. [\\/]* | ?:[\\/]* ) # Absolute name.
  1425. ac_srcdir=$srcdir$ac_dir_suffix;
  1426. ac_top_srcdir=$srcdir
  1427. ac_abs_top_srcdir=$srcdir ;;
  1428. *) # Relative name.
  1429. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1430. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1431. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1432. esac
  1433. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1434. cd "$ac_dir" || { ac_status=$?; continue; }
  1435. # Check for guested configure.
  1436. if test -f "$ac_srcdir/configure.gnu"; then
  1437. echo &&
  1438. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1439. elif test -f "$ac_srcdir/configure"; then
  1440. echo &&
  1441. $SHELL "$ac_srcdir/configure" --help=recursive
  1442. else
  1443. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1444. fi || ac_status=$?
  1445. cd "$ac_pwd" || { ac_status=$?; break; }
  1446. done
  1447. fi
  1448. test -n "$ac_init_help" && exit $ac_status
  1449. if $ac_init_version; then
  1450. cat <<\_ACEOF
  1451. libffi configure 3.0.5
  1452. generated by GNU Autoconf 2.61
  1453. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1454. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1455. This configure script is free software; the Free Software Foundation
  1456. gives unlimited permission to copy, distribute and modify it.
  1457. _ACEOF
  1458. exit
  1459. fi
  1460. cat >config.log <<_ACEOF
  1461. This file contains any messages produced by compilers while
  1462. running configure, to aid debugging if configure makes a mistake.
  1463. It was created by libffi $as_me 3.0.5, which was
  1464. generated by GNU Autoconf 2.61. Invocation command line was
  1465. $ $0 $@
  1466. _ACEOF
  1467. exec 5>>config.log
  1468. {
  1469. cat <<_ASUNAME
  1470. ## --------- ##
  1471. ## Platform. ##
  1472. ## --------- ##
  1473. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1474. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1475. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1476. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1477. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1478. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1479. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1480. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1481. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1482. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1483. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1484. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1485. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1486. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1487. _ASUNAME
  1488. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1489. for as_dir in $PATH
  1490. do
  1491. IFS=$as_save_IFS
  1492. test -z "$as_dir" && as_dir=.
  1493. echo "PATH: $as_dir"
  1494. done
  1495. IFS=$as_save_IFS
  1496. } >&5
  1497. cat >&5 <<_ACEOF
  1498. ## ----------- ##
  1499. ## Core tests. ##
  1500. ## ----------- ##
  1501. _ACEOF
  1502. # Keep a trace of the command line.
  1503. # Strip out --no-create and --no-recursion so they do not pile up.
  1504. # Strip out --silent because we don't want to record it for future runs.
  1505. # Also quote any args containing shell meta-characters.
  1506. # Make two passes to allow for proper duplicate-argument suppression.
  1507. ac_configure_args=
  1508. ac_configure_args0=
  1509. ac_configure_args1=
  1510. ac_must_keep_next=false
  1511. for ac_pass in 1 2
  1512. do
  1513. for ac_arg
  1514. do
  1515. case $ac_arg in
  1516. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1517. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1518. | -silent | --silent | --silen | --sile | --sil)
  1519. continue ;;
  1520. *\'*)
  1521. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1522. esac
  1523. case $ac_pass in
  1524. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1525. 2)
  1526. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1527. if test $ac_must_keep_next = true; then
  1528. ac_must_keep_next=false # Got value, back to normal.
  1529. else
  1530. case $ac_arg in
  1531. *=* | --config-cache | -C | -disable-* | --disable-* \
  1532. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1533. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1534. | -with-* | --with-* | -without-* | --without-* | --x)
  1535. case "$ac_configure_args0 " in
  1536. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1537. esac
  1538. ;;
  1539. -* ) ac_must_keep_next=true ;;
  1540. esac
  1541. fi
  1542. ac_configure_args="$ac_configure_args '$ac_arg'"
  1543. ;;
  1544. esac
  1545. done
  1546. done
  1547. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1548. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1549. # When interrupted or exit'd, cleanup temporary files, and complete
  1550. # config.log. We remove comments because anyway the quotes in there
  1551. # would cause problems or look ugly.
  1552. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1553. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1554. trap 'exit_status=$?
  1555. # Save into config.log some information that might help in debugging.
  1556. {
  1557. echo
  1558. cat <<\_ASBOX
  1559. ## ---------------- ##
  1560. ## Cache variables. ##
  1561. ## ---------------- ##
  1562. _ASBOX
  1563. echo
  1564. # The following way of writing the cache mishandles newlines in values,
  1565. (
  1566. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1567. eval ac_val=\$$ac_var
  1568. case $ac_val in #(
  1569. *${as_nl}*)
  1570. case $ac_var in #(
  1571. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1572. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1573. esac
  1574. case $ac_var in #(
  1575. _ | IFS | as_nl) ;; #(
  1576. *) $as_unset $ac_var ;;
  1577. esac ;;
  1578. esac
  1579. done
  1580. (set) 2>&1 |
  1581. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1582. *${as_nl}ac_space=\ *)
  1583. sed -n \
  1584. "s/'\''/'\''\\\\'\'''\''/g;
  1585. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1586. ;; #(
  1587. *)
  1588. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1589. ;;
  1590. esac |
  1591. sort
  1592. )
  1593. echo
  1594. cat <<\_ASBOX
  1595. ## ----------------- ##
  1596. ## Output variables. ##
  1597. ## ----------------- ##
  1598. _ASBOX
  1599. echo
  1600. for ac_var in $ac_subst_vars
  1601. do
  1602. eval ac_val=\$$ac_var
  1603. case $ac_val in
  1604. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1605. esac
  1606. echo "$ac_var='\''$ac_val'\''"
  1607. done | sort
  1608. echo
  1609. if test -n "$ac_subst_files"; then
  1610. cat <<\_ASBOX
  1611. ## ------------------- ##
  1612. ## File substitutions. ##
  1613. ## ------------------- ##
  1614. _ASBOX
  1615. echo
  1616. for ac_var in $ac_subst_files
  1617. do
  1618. eval ac_val=\$$ac_var
  1619. case $ac_val in
  1620. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1621. esac
  1622. echo "$ac_var='\''$ac_val'\''"
  1623. done | sort
  1624. echo
  1625. fi
  1626. if test -s confdefs.h; then
  1627. cat <<\_ASBOX
  1628. ## ----------- ##
  1629. ## confdefs.h. ##
  1630. ## ----------- ##
  1631. _ASBOX
  1632. echo
  1633. cat confdefs.h
  1634. echo
  1635. fi
  1636. test "$ac_signal" != 0 &&
  1637. echo "$as_me: caught signal $ac_signal"
  1638. echo "$as_me: exit $exit_status"
  1639. } >&5
  1640. rm -f core *.core core.conftest.* &&
  1641. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1642. exit $exit_status
  1643. ' 0
  1644. for ac_signal in 1 2 13 15; do
  1645. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1646. done
  1647. ac_signal=0
  1648. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1649. rm -f -r conftest* confdefs.h
  1650. # Predefined preprocessor variables.
  1651. cat >>confdefs.h <<_ACEOF
  1652. #define PACKAGE_NAME "$PACKAGE_NAME"
  1653. _ACEOF
  1654. cat >>confdefs.h <<_ACEOF
  1655. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1656. _ACEOF
  1657. cat >>confdefs.h <<_ACEOF
  1658. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1659. _ACEOF
  1660. cat >>confdefs.h <<_ACEOF
  1661. #define PACKAGE_STRING "$PACKAGE_STRING"
  1662. _ACEOF
  1663. cat >>confdefs.h <<_ACEOF
  1664. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1665. _ACEOF
  1666. # Let the site file select an alternate cache file if it wants to.
  1667. # Prefer explicitly selected file to automatically selected ones.
  1668. if test -n "$CONFIG_SITE"; then
  1669. set x "$CONFIG_SITE"
  1670. elif test "x$prefix" != xNONE; then
  1671. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1672. else
  1673. set x "$ac_default_prefix/share/config.site" \
  1674. "$ac_default_prefix/etc/config.site"
  1675. fi
  1676. shift
  1677. for ac_site_file
  1678. do
  1679. if test -r "$ac_site_file"; then
  1680. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1681. echo "$as_me: loading site script $ac_site_file" >&6;}
  1682. sed 's/^/| /' "$ac_site_file" >&5
  1683. . "$ac_site_file"
  1684. fi
  1685. done
  1686. if test -r "$cache_file"; then
  1687. # Some versions of bash will fail to source /dev/null (special
  1688. # files actually), so we avoid doing that.
  1689. if test -f "$cache_file"; then
  1690. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1691. echo "$as_me: loading cache $cache_file" >&6;}
  1692. case $cache_file in
  1693. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1694. *) . "./$cache_file";;
  1695. esac
  1696. fi
  1697. else
  1698. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1699. echo "$as_me: creating cache $cache_file" >&6;}
  1700. >$cache_file
  1701. fi
  1702. # Check that the precious variables saved in the cache have kept the same
  1703. # value.
  1704. ac_cache_corrupted=false
  1705. for ac_var in $ac_precious_vars; do
  1706. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1707. eval ac_new_set=\$ac_env_${ac_var}_set
  1708. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1709. eval ac_new_val=\$ac_env_${ac_var}_value
  1710. case $ac_old_set,$ac_new_set in
  1711. set,)
  1712. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1713. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1714. ac_cache_corrupted=: ;;
  1715. ,set)
  1716. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1717. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1718. ac_cache_corrupted=: ;;
  1719. ,);;
  1720. *)
  1721. if test "x$ac_old_val" != "x$ac_new_val"; then
  1722. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1723. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1724. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1725. echo "$as_me: former value: $ac_old_val" >&2;}
  1726. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1727. echo "$as_me: current value: $ac_new_val" >&2;}
  1728. ac_cache_corrupted=:
  1729. fi;;
  1730. esac
  1731. # Pass precious variables to config.status.
  1732. if test "$ac_new_set" = set; then
  1733. case $ac_new_val in
  1734. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1735. *) ac_arg=$ac_var=$ac_new_val ;;
  1736. esac
  1737. case " $ac_configure_args " in
  1738. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1739. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1740. esac
  1741. fi
  1742. done
  1743. if $ac_cache_corrupted; then
  1744. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1745. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1746. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1747. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1748. { (exit 1); exit 1; }; }
  1749. fi
  1750. ac_ext=c
  1751. ac_cpp='$CPP $CPPFLAGS'
  1752. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1753. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1754. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1755. ac_config_headers="$ac_config_headers fficonfig.h"
  1756. ac_aux_dir=
  1757. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1758. if test -f "$ac_dir/install-sh"; then
  1759. ac_aux_dir=$ac_dir
  1760. ac_install_sh="$ac_aux_dir/install-sh -c"
  1761. break
  1762. elif test -f "$ac_dir/install.sh"; then
  1763. ac_aux_dir=$ac_dir
  1764. ac_install_sh="$ac_aux_dir/install.sh -c"
  1765. break
  1766. elif test -f "$ac_dir/shtool"; then
  1767. ac_aux_dir=$ac_dir
  1768. ac_install_sh="$ac_aux_dir/shtool install -c"
  1769. break
  1770. fi
  1771. done
  1772. if test -z "$ac_aux_dir"; then
  1773. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1774. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1775. { (exit 1); exit 1; }; }
  1776. fi
  1777. # These three variables are undocumented and unsupported,
  1778. # and are intended to be withdrawn in a future Autoconf release.
  1779. # They can cause serious problems if a builder's source tree is in a directory
  1780. # whose full name contains unusual characters.
  1781. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1782. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1783. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1784. # Make sure we can run config.sub.
  1785. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1786. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1787. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1788. { (exit 1); exit 1; }; }
  1789. { echo "$as_me:$LINENO: checking build system type" >&5
  1790. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1791. if test "${ac_cv_build+set}" = set; then
  1792. echo $ECHO_N "(cached) $ECHO_C" >&6
  1793. else
  1794. ac_build_alias=$build_alias
  1795. test "x$ac_build_alias" = x &&
  1796. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1797. test "x$ac_build_alias" = x &&
  1798. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1799. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1800. { (exit 1); exit 1; }; }
  1801. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1802. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1803. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1804. { (exit 1); exit 1; }; }
  1805. fi
  1806. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1807. echo "${ECHO_T}$ac_cv_build" >&6; }
  1808. case $ac_cv_build in
  1809. *-*-*) ;;
  1810. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1811. echo "$as_me: error: invalid value of canonical build" >&2;}
  1812. { (exit 1); exit 1; }; };;
  1813. esac
  1814. build=$ac_cv_build
  1815. ac_save_IFS=$IFS; IFS='-'
  1816. set x $ac_cv_build
  1817. shift
  1818. build_cpu=$1
  1819. build_vendor=$2
  1820. shift; shift
  1821. # Remember, the first character of IFS is used to create $*,
  1822. # except with old shells:
  1823. build_os=$*
  1824. IFS=$ac_save_IFS
  1825. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1826. { echo "$as_me:$LINENO: checking host system type" >&5
  1827. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1828. if test "${ac_cv_host+set}" = set; then
  1829. echo $ECHO_N "(cached) $ECHO_C" >&6
  1830. else
  1831. if test "x$host_alias" = x; then
  1832. ac_cv_host=$ac_cv_build
  1833. else
  1834. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1835. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1836. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1837. { (exit 1); exit 1; }; }
  1838. fi
  1839. fi
  1840. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1841. echo "${ECHO_T}$ac_cv_host" >&6; }
  1842. case $ac_cv_host in
  1843. *-*-*) ;;
  1844. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1845. echo "$as_me: error: invalid value of canonical host" >&2;}
  1846. { (exit 1); exit 1; }; };;
  1847. esac
  1848. host=$ac_cv_host
  1849. ac_save_IFS=$IFS; IFS='-'
  1850. set x $ac_cv_host
  1851. shift
  1852. host_cpu=$1
  1853. host_vendor=$2
  1854. shift; shift
  1855. # Remember, the first character of IFS is used to create $*,
  1856. # except with old shells:
  1857. host_os=$*
  1858. IFS=$ac_save_IFS
  1859. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1860. { echo "$as_me:$LINENO: checking target system type" >&5
  1861. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1862. if test "${ac_cv_target+set}" = set; then
  1863. echo $ECHO_N "(cached) $ECHO_C" >&6
  1864. else
  1865. if test "x$target_alias" = x; then
  1866. ac_cv_target=$ac_cv_host
  1867. else
  1868. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1869. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1870. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1871. { (exit 1); exit 1; }; }
  1872. fi
  1873. fi
  1874. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1875. echo "${ECHO_T}$ac_cv_target" >&6; }
  1876. case $ac_cv_target in
  1877. *-*-*) ;;
  1878. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1879. echo "$as_me: error: invalid value of canonical target" >&2;}
  1880. { (exit 1); exit 1; }; };;
  1881. esac
  1882. target=$ac_cv_target
  1883. ac_save_IFS=$IFS; IFS='-'
  1884. set x $ac_cv_target
  1885. shift
  1886. target_cpu=$1
  1887. target_vendor=$2
  1888. shift; shift
  1889. # Remember, the first character of IFS is used to create $*,
  1890. # except with old shells:
  1891. target_os=$*
  1892. IFS=$ac_save_IFS
  1893. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1894. # The aliases save the names the user supplied, while $host etc.
  1895. # will get canonicalized.
  1896. test -n "$target_alias" &&
  1897. test "$program_prefix$program_suffix$program_transform_name" = \
  1898. NONENONEs,x,x, &&
  1899. program_prefix=${target_alias}-
  1900. target_alias=${target_alias-$host_alias}
  1901. . ${srcdir}/configure.host
  1902. am__api_version='1.10'
  1903. # Find a good install program. We prefer a C program (faster),
  1904. # so one script is as good as another. But avoid the broken or
  1905. # incompatible versions:
  1906. # SysV /etc/install, /usr/sbin/install
  1907. # SunOS /usr/etc/install
  1908. # IRIX /sbin/install
  1909. # AIX /bin/install
  1910. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1911. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1912. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1913. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1914. # OS/2's system install, which has a completely different semantic
  1915. # ./install, which can be erroneously created by make from ./install.sh.
  1916. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1917. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1918. if test -z "$INSTALL"; then
  1919. if test "${ac_cv_path_install+set}" = set; then
  1920. echo $ECHO_N "(cached) $ECHO_C" >&6
  1921. else
  1922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1923. for as_dir in $PATH
  1924. do
  1925. IFS=$as_save_IFS
  1926. test -z "$as_dir" && as_dir=.
  1927. # Account for people who put trailing slashes in PATH elements.
  1928. case $as_dir/ in
  1929. ./ | .// | /cC/* | \
  1930. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1931. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1932. /usr/ucb/* ) ;;
  1933. *)
  1934. # OSF1 and SCO ODT 3.0 have their own names for install.
  1935. # Don't use installbsd from OSF since it installs stuff as root
  1936. # by default.
  1937. for ac_prog in ginstall scoinst install; do
  1938. for ac_exec_ext in '' $ac_executable_extensions; do
  1939. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1940. if test $ac_prog = install &&
  1941. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1942. # AIX install. It has an incompatible calling convention.
  1943. :
  1944. elif test $ac_prog = install &&
  1945. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1946. # program-specific install script used by HP pwplus--don't use.
  1947. :
  1948. else
  1949. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1950. break 3
  1951. fi
  1952. fi
  1953. done
  1954. done
  1955. ;;
  1956. esac
  1957. done
  1958. IFS=$as_save_IFS
  1959. fi
  1960. if test "${ac_cv_path_install+set}" = set; then
  1961. INSTALL=$ac_cv_path_install
  1962. else
  1963. # As a last resort, use the slow shell script. Don't cache a
  1964. # value for INSTALL within a source directory, because that will
  1965. # break other packages using the cache if that directory is
  1966. # removed, or if the value is a relative name.
  1967. INSTALL=$ac_install_sh
  1968. fi
  1969. fi
  1970. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1971. echo "${ECHO_T}$INSTALL" >&6; }
  1972. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1973. # It thinks the first close brace ends the variable substitution.
  1974. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1975. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1976. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1977. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1978. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1979. # Just in case
  1980. sleep 1
  1981. echo timestamp > conftest.file
  1982. # Do `set' in a subshell so we don't clobber the current shell's
  1983. # arguments. Must try -L first in case configure is actually a
  1984. # symlink; some systems play weird games with the mod time of symlinks
  1985. # (eg FreeBSD returns the mod time of the symlink's containing
  1986. # directory).
  1987. if (
  1988. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1989. if test "$*" = "X"; then
  1990. # -L didn't work.
  1991. set X `ls -t $srcdir/configure conftest.file`
  1992. fi
  1993. rm -f conftest.file
  1994. if test "$*" != "X $srcdir/configure conftest.file" \
  1995. && test "$*" != "X conftest.file $srcdir/configure"; then
  1996. # If neither matched, then we have a broken ls. This can happen
  1997. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1998. # broken ls alias from the environment. This has actually
  1999. # happened. Such a system could not be considered "sane".
  2000. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2001. alias in your environment" >&5
  2002. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2003. alias in your environment" >&2;}
  2004. { (exit 1); exit 1; }; }
  2005. fi
  2006. test "$2" = conftest.file
  2007. )
  2008. then
  2009. # Ok.
  2010. :
  2011. else
  2012. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2013. Check your system clock" >&5
  2014. echo "$as_me: error: newly created file is older than distributed files!
  2015. Check your system clock" >&2;}
  2016. { (exit 1); exit 1; }; }
  2017. fi
  2018. { echo "$as_me:$LINENO: result: yes" >&5
  2019. echo "${ECHO_T}yes" >&6; }
  2020. test "$program_prefix" != NONE &&
  2021. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2022. # Use a double $ so make ignores it.
  2023. test "$program_suffix" != NONE &&
  2024. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2025. # Double any \ or $. echo might interpret backslashes.
  2026. # By default was `s,x,x', remove it if useless.
  2027. cat <<\_ACEOF >conftest.sed
  2028. s/[\\$]/&&/g;s/;s,x,x,$//
  2029. _ACEOF
  2030. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  2031. rm -f conftest.sed
  2032. # expand $ac_aux_dir to an absolute path
  2033. am_aux_dir=`cd $ac_aux_dir && pwd`
  2034. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2035. # Use eval to expand $SHELL
  2036. if eval "$MISSING --run true"; then
  2037. am_missing_run="$MISSING --run "
  2038. else
  2039. am_missing_run=
  2040. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2041. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2042. fi
  2043. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2044. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  2045. if test -z "$MKDIR_P"; then
  2046. if test "${ac_cv_path_mkdir+set}" = set; then
  2047. echo $ECHO_N "(cached) $ECHO_C" >&6
  2048. else
  2049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2050. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2051. do
  2052. IFS=$as_save_IFS
  2053. test -z "$as_dir" && as_dir=.
  2054. for ac_prog in mkdir gmkdir; do
  2055. for ac_exec_ext in '' $ac_executable_extensions; do
  2056. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2057. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2058. 'mkdir (GNU coreutils) '* | \
  2059. 'mkdir (coreutils) '* | \
  2060. 'mkdir (fileutils) '4.1*)
  2061. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2062. break 3;;
  2063. esac
  2064. done
  2065. done
  2066. done
  2067. IFS=$as_save_IFS
  2068. fi
  2069. if test "${ac_cv_path_mkdir+set}" = set; then
  2070. MKDIR_P="$ac_cv_path_mkdir -p"
  2071. else
  2072. # As a last resort, use the slow shell script. Don't cache a
  2073. # value for MKDIR_P within a source directory, because that will
  2074. # break other packages using the cache if that directory is
  2075. # removed, or if the value is a relative name.
  2076. test -d ./--version && rmdir ./--version
  2077. MKDIR_P="$ac_install_sh -d"
  2078. fi
  2079. fi
  2080. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2081. echo "${ECHO_T}$MKDIR_P" >&6; }
  2082. mkdir_p="$MKDIR_P"
  2083. case $mkdir_p in
  2084. [\\/$]* | ?:[\\/]*) ;;
  2085. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2086. esac
  2087. for ac_prog in gawk mawk nawk awk
  2088. do
  2089. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2090. set dummy $ac_prog; ac_word=$2
  2091. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2092. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2093. if test "${ac_cv_prog_AWK+set}" = set; then
  2094. echo $ECHO_N "(cached) $ECHO_C" >&6
  2095. else
  2096. if test -n "$AWK"; then
  2097. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2098. else
  2099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2100. for as_dir in $PATH
  2101. do
  2102. IFS=$as_save_IFS
  2103. test -z "$as_dir" && as_dir=.
  2104. for ac_exec_ext in '' $ac_executable_extensions; do
  2105. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2106. ac_cv_prog_AWK="$ac_prog"
  2107. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2108. break 2
  2109. fi
  2110. done
  2111. done
  2112. IFS=$as_save_IFS
  2113. fi
  2114. fi
  2115. AWK=$ac_cv_prog_AWK
  2116. if test -n "$AWK"; then
  2117. { echo "$as_me:$LINENO: result: $AWK" >&5
  2118. echo "${ECHO_T}$AWK" >&6; }
  2119. else
  2120. { echo "$as_me:$LINENO: result: no" >&5
  2121. echo "${ECHO_T}no" >&6; }
  2122. fi
  2123. test -n "$AWK" && break
  2124. done
  2125. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2126. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2127. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2128. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2129. echo $ECHO_N "(cached) $ECHO_C" >&6
  2130. else
  2131. cat >conftest.make <<\_ACEOF
  2132. SHELL = /bin/sh
  2133. all:
  2134. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2135. _ACEOF
  2136. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2137. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2138. *@@@%%%=?*=@@@%%%*)
  2139. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2140. *)
  2141. eval ac_cv_prog_make_${ac_make}_set=no;;
  2142. esac
  2143. rm -f conftest.make
  2144. fi
  2145. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2146. { echo "$as_me:$LINENO: result: yes" >&5
  2147. echo "${ECHO_T}yes" >&6; }
  2148. SET_MAKE=
  2149. else
  2150. { echo "$as_me:$LINENO: result: no" >&5
  2151. echo "${ECHO_T}no" >&6; }
  2152. SET_MAKE="MAKE=${MAKE-make}"
  2153. fi
  2154. rm -rf .tst 2>/dev/null
  2155. mkdir .tst 2>/dev/null
  2156. if test -d .tst; then
  2157. am__leading_dot=.
  2158. else
  2159. am__leading_dot=_
  2160. fi
  2161. rmdir .tst 2>/dev/null
  2162. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2163. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2164. # is not polluted with repeated "-I."
  2165. am__isrc=' -I$(srcdir)'
  2166. # test to see if srcdir already configured
  2167. if test -f $srcdir/config.status; then
  2168. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2169. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2170. { (exit 1); exit 1; }; }
  2171. fi
  2172. fi
  2173. # test whether we have cygpath
  2174. if test -z "$CYGPATH_W"; then
  2175. if (cygpath --version) >/dev/null 2>/dev/null; then
  2176. CYGPATH_W='cygpath -w'
  2177. else
  2178. CYGPATH_W=echo
  2179. fi
  2180. fi
  2181. # Define the identity of the package.
  2182. PACKAGE='libffi'
  2183. VERSION='3.0.5'
  2184. cat >>confdefs.h <<_ACEOF
  2185. #define PACKAGE "$PACKAGE"
  2186. _ACEOF
  2187. cat >>confdefs.h <<_ACEOF
  2188. #define VERSION "$VERSION"
  2189. _ACEOF
  2190. # Some tools Automake needs.
  2191. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2192. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2193. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2194. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2195. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2196. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2197. # Installed binaries are usually stripped using `strip' when the user
  2198. # run `make install-strip'. However `strip' might not be the right
  2199. # tool to use in cross-compilation environments, therefore Automake
  2200. # will honor the `STRIP' environment variable to overrule this program.
  2201. if test "$cross_compiling" != no; then
  2202. if test -n "$ac_tool_prefix"; then
  2203. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2204. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2205. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2206. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2207. if test "${ac_cv_prog_STRIP+set}" = set; then
  2208. echo $ECHO_N "(cached) $ECHO_C" >&6
  2209. else
  2210. if test -n "$STRIP"; then
  2211. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2212. else
  2213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2214. for as_dir in $PATH
  2215. do
  2216. IFS=$as_save_IFS
  2217. test -z "$as_dir" && as_dir=.
  2218. for ac_exec_ext in '' $ac_executable_extensions; do
  2219. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2220. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2221. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2222. break 2
  2223. fi
  2224. done
  2225. done
  2226. IFS=$as_save_IFS
  2227. fi
  2228. fi
  2229. STRIP=$ac_cv_prog_STRIP
  2230. if test -n "$STRIP"; then
  2231. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2232. echo "${ECHO_T}$STRIP" >&6; }
  2233. else
  2234. { echo "$as_me:$LINENO: result: no" >&5
  2235. echo "${ECHO_T}no" >&6; }
  2236. fi
  2237. fi
  2238. if test -z "$ac_cv_prog_STRIP"; then
  2239. ac_ct_STRIP=$STRIP
  2240. # Extract the first word of "strip", so it can be a program name with args.
  2241. set dummy strip; ac_word=$2
  2242. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2243. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2244. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2245. echo $ECHO_N "(cached) $ECHO_C" >&6
  2246. else
  2247. if test -n "$ac_ct_STRIP"; then
  2248. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2249. else
  2250. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2251. for as_dir in $PATH
  2252. do
  2253. IFS=$as_save_IFS
  2254. test -z "$as_dir" && as_dir=.
  2255. for ac_exec_ext in '' $ac_executable_extensions; do
  2256. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2257. ac_cv_prog_ac_ct_STRIP="strip"
  2258. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2259. break 2
  2260. fi
  2261. done
  2262. done
  2263. IFS=$as_save_IFS
  2264. fi
  2265. fi
  2266. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2267. if test -n "$ac_ct_STRIP"; then
  2268. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2269. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2270. else
  2271. { echo "$as_me:$LINENO: result: no" >&5
  2272. echo "${ECHO_T}no" >&6; }
  2273. fi
  2274. if test "x$ac_ct_STRIP" = x; then
  2275. STRIP=":"
  2276. else
  2277. case $cross_compiling:$ac_tool_warned in
  2278. yes:)
  2279. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2280. whose name does not start with the host triplet. If you think this
  2281. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2282. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2283. whose name does not start with the host triplet. If you think this
  2284. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2285. ac_tool_warned=yes ;;
  2286. esac
  2287. STRIP=$ac_ct_STRIP
  2288. fi
  2289. else
  2290. STRIP="$ac_cv_prog_STRIP"
  2291. fi
  2292. fi
  2293. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2294. # We need awk for the "check" target. The system "awk" is bad on
  2295. # some platforms.
  2296. # Always define AMTAR for backward compatibility.
  2297. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2298. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2299. # The same as in boehm-gc and libstdc++. Have to borrow it from there.
  2300. # We must force CC to /not/ be precious variables; otherwise
  2301. # the wrong, non-multilib-adjusted value will be used in multilibs.
  2302. # As a side effect, we have to subst CFLAGS ourselves.
  2303. ac_ext=c
  2304. ac_cpp='$CPP $CPPFLAGS'
  2305. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2306. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2307. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2308. if test -n "$ac_tool_prefix"; then
  2309. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2310. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2311. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2312. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2313. if test "${ac_cv_prog_CC+set}" = set; then
  2314. echo $ECHO_N "(cached) $ECHO_C" >&6
  2315. else
  2316. if test -n "$CC"; then
  2317. ac_cv_prog_CC="$CC" # Let the user override the test.
  2318. else
  2319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2320. for as_dir in $PATH
  2321. do
  2322. IFS=$as_save_IFS
  2323. test -z "$as_dir" && as_dir=.
  2324. for ac_exec_ext in '' $ac_executable_extensions; do
  2325. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2326. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2327. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2328. break 2
  2329. fi
  2330. done
  2331. done
  2332. IFS=$as_save_IFS
  2333. fi
  2334. fi
  2335. CC=$ac_cv_prog_CC
  2336. if test -n "$CC"; then
  2337. { echo "$as_me:$LINENO: result: $CC" >&5
  2338. echo "${ECHO_T}$CC" >&6; }
  2339. else
  2340. { echo "$as_me:$LINENO: result: no" >&5
  2341. echo "${ECHO_T}no" >&6; }
  2342. fi
  2343. fi
  2344. if test -z "$ac_cv_prog_CC"; then
  2345. ac_ct_CC=$CC
  2346. # Extract the first word of "gcc", so it can be a program name with args.
  2347. set dummy gcc; ac_word=$2
  2348. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2349. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2350. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2351. echo $ECHO_N "(cached) $ECHO_C" >&6
  2352. else
  2353. if test -n "$ac_ct_CC"; then
  2354. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2355. else
  2356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2357. for as_dir in $PATH
  2358. do
  2359. IFS=$as_save_IFS
  2360. test -z "$as_dir" && as_dir=.
  2361. for ac_exec_ext in '' $ac_executable_extensions; do
  2362. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2363. ac_cv_prog_ac_ct_CC="gcc"
  2364. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2365. break 2
  2366. fi
  2367. done
  2368. done
  2369. IFS=$as_save_IFS
  2370. fi
  2371. fi
  2372. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2373. if test -n "$ac_ct_CC"; then
  2374. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2375. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2376. else
  2377. { echo "$as_me:$LINENO: result: no" >&5
  2378. echo "${ECHO_T}no" >&6; }
  2379. fi
  2380. if test "x$ac_ct_CC" = x; then
  2381. CC=""
  2382. else
  2383. case $cross_compiling:$ac_tool_warned in
  2384. yes:)
  2385. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2386. whose name does not start with the host triplet. If you think this
  2387. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2388. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2389. whose name does not start with the host triplet. If you think this
  2390. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2391. ac_tool_warned=yes ;;
  2392. esac
  2393. CC=$ac_ct_CC
  2394. fi
  2395. else
  2396. CC="$ac_cv_prog_CC"
  2397. fi
  2398. if test -z "$CC"; then
  2399. if test -n "$ac_tool_prefix"; then
  2400. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2401. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2402. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2403. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2404. if test "${ac_cv_prog_CC+set}" = set; then
  2405. echo $ECHO_N "(cached) $ECHO_C" >&6
  2406. else
  2407. if test -n "$CC"; then
  2408. ac_cv_prog_CC="$CC" # Let the user override the test.
  2409. else
  2410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2411. for as_dir in $PATH
  2412. do
  2413. IFS=$as_save_IFS
  2414. test -z "$as_dir" && as_dir=.
  2415. for ac_exec_ext in '' $ac_executable_extensions; do
  2416. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2417. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2418. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2419. break 2
  2420. fi
  2421. done
  2422. done
  2423. IFS=$as_save_IFS
  2424. fi
  2425. fi
  2426. CC=$ac_cv_prog_CC
  2427. if test -n "$CC"; then
  2428. { echo "$as_me:$LINENO: result: $CC" >&5
  2429. echo "${ECHO_T}$CC" >&6; }
  2430. else
  2431. { echo "$as_me:$LINENO: result: no" >&5
  2432. echo "${ECHO_T}no" >&6; }
  2433. fi
  2434. fi
  2435. fi
  2436. if test -z "$CC"; then
  2437. # Extract the first word of "cc", so it can be a program name with args.
  2438. set dummy cc; ac_word=$2
  2439. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2440. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2441. if test "${ac_cv_prog_CC+set}" = set; then
  2442. echo $ECHO_N "(cached) $ECHO_C" >&6
  2443. else
  2444. if test -n "$CC"; then
  2445. ac_cv_prog_CC="$CC" # Let the user override the test.
  2446. else
  2447. ac_prog_rejected=no
  2448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2449. for as_dir in $PATH
  2450. do
  2451. IFS=$as_save_IFS
  2452. test -z "$as_dir" && as_dir=.
  2453. for ac_exec_ext in '' $ac_executable_extensions; do
  2454. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2455. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2456. ac_prog_rejected=yes
  2457. continue
  2458. fi
  2459. ac_cv_prog_CC="cc"
  2460. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2461. break 2
  2462. fi
  2463. done
  2464. done
  2465. IFS=$as_save_IFS
  2466. if test $ac_prog_rejected = yes; then
  2467. # We found a bogon in the path, so make sure we never use it.
  2468. set dummy $ac_cv_prog_CC
  2469. shift
  2470. if test $# != 0; then
  2471. # We chose a different compiler from the bogus one.
  2472. # However, it has the same basename, so the bogon will be chosen
  2473. # first if we set CC to just the basename; use the full file name.
  2474. shift
  2475. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2476. fi
  2477. fi
  2478. fi
  2479. fi
  2480. CC=$ac_cv_prog_CC
  2481. if test -n "$CC"; then
  2482. { echo "$as_me:$LINENO: result: $CC" >&5
  2483. echo "${ECHO_T}$CC" >&6; }
  2484. else
  2485. { echo "$as_me:$LINENO: result: no" >&5
  2486. echo "${ECHO_T}no" >&6; }
  2487. fi
  2488. fi
  2489. if test -z "$CC"; then
  2490. if test -n "$ac_tool_prefix"; then
  2491. for ac_prog in cl.exe
  2492. do
  2493. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2494. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2495. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2496. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2497. if test "${ac_cv_prog_CC+set}" = set; then
  2498. echo $ECHO_N "(cached) $ECHO_C" >&6
  2499. else
  2500. if test -n "$CC"; then
  2501. ac_cv_prog_CC="$CC" # Let the user override the test.
  2502. else
  2503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2504. for as_dir in $PATH
  2505. do
  2506. IFS=$as_save_IFS
  2507. test -z "$as_dir" && as_dir=.
  2508. for ac_exec_ext in '' $ac_executable_extensions; do
  2509. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2510. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2511. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2512. break 2
  2513. fi
  2514. done
  2515. done
  2516. IFS=$as_save_IFS
  2517. fi
  2518. fi
  2519. CC=$ac_cv_prog_CC
  2520. if test -n "$CC"; then
  2521. { echo "$as_me:$LINENO: result: $CC" >&5
  2522. echo "${ECHO_T}$CC" >&6; }
  2523. else
  2524. { echo "$as_me:$LINENO: result: no" >&5
  2525. echo "${ECHO_T}no" >&6; }
  2526. fi
  2527. test -n "$CC" && break
  2528. done
  2529. fi
  2530. if test -z "$CC"; then
  2531. ac_ct_CC=$CC
  2532. for ac_prog in cl.exe
  2533. do
  2534. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2535. set dummy $ac_prog; ac_word=$2
  2536. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2537. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2538. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2539. echo $ECHO_N "(cached) $ECHO_C" >&6
  2540. else
  2541. if test -n "$ac_ct_CC"; then
  2542. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2543. else
  2544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2545. for as_dir in $PATH
  2546. do
  2547. IFS=$as_save_IFS
  2548. test -z "$as_dir" && as_dir=.
  2549. for ac_exec_ext in '' $ac_executable_extensions; do
  2550. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2551. ac_cv_prog_ac_ct_CC="$ac_prog"
  2552. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2553. break 2
  2554. fi
  2555. done
  2556. done
  2557. IFS=$as_save_IFS
  2558. fi
  2559. fi
  2560. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2561. if test -n "$ac_ct_CC"; then
  2562. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2563. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2564. else
  2565. { echo "$as_me:$LINENO: result: no" >&5
  2566. echo "${ECHO_T}no" >&6; }
  2567. fi
  2568. test -n "$ac_ct_CC" && break
  2569. done
  2570. if test "x$ac_ct_CC" = x; then
  2571. CC=""
  2572. else
  2573. case $cross_compiling:$ac_tool_warned in
  2574. yes:)
  2575. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2576. whose name does not start with the host triplet. If you think this
  2577. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2578. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2579. whose name does not start with the host triplet. If you think this
  2580. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2581. ac_tool_warned=yes ;;
  2582. esac
  2583. CC=$ac_ct_CC
  2584. fi
  2585. fi
  2586. fi
  2587. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2588. See \`config.log' for more details." >&5
  2589. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2590. See \`config.log' for more details." >&2;}
  2591. { (exit 1); exit 1; }; }
  2592. # Provide some information about the compiler.
  2593. echo "$as_me:$LINENO: checking for C compiler version" >&5
  2594. ac_compiler=`set X $ac_compile; echo $2`
  2595. { (ac_try="$ac_compiler --version >&5"
  2596. case "(($ac_try" in
  2597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2598. *) ac_try_echo=$ac_try;;
  2599. esac
  2600. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2601. (eval "$ac_compiler --version >&5") 2>&5
  2602. ac_status=$?
  2603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2604. (exit $ac_status); }
  2605. { (ac_try="$ac_compiler -v >&5"
  2606. case "(($ac_try" in
  2607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2608. *) ac_try_echo=$ac_try;;
  2609. esac
  2610. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2611. (eval "$ac_compiler -v >&5") 2>&5
  2612. ac_status=$?
  2613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2614. (exit $ac_status); }
  2615. { (ac_try="$ac_compiler -V >&5"
  2616. case "(($ac_try" in
  2617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2618. *) ac_try_echo=$ac_try;;
  2619. esac
  2620. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2621. (eval "$ac_compiler -V >&5") 2>&5
  2622. ac_status=$?
  2623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2624. (exit $ac_status); }
  2625. cat >conftest.$ac_ext <<_ACEOF
  2626. /* confdefs.h. */
  2627. _ACEOF
  2628. cat confdefs.h >>conftest.$ac_ext
  2629. cat >>conftest.$ac_ext <<_ACEOF
  2630. /* end confdefs.h. */
  2631. int
  2632. main ()
  2633. {
  2634. ;
  2635. return 0;
  2636. }
  2637. _ACEOF
  2638. ac_clean_files_save=$ac_clean_files
  2639. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2640. # Try to create an executable without -o first, disregard a.out.
  2641. # It will help us diagnose broken compilers, and finding out an intuition
  2642. # of exeext.
  2643. { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2644. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  2645. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2646. #
  2647. # List of possible output files, starting from the most likely.
  2648. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2649. # only as a last resort. b.out is created by i960 compilers.
  2650. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2651. #
  2652. # The IRIX 6 linker writes into existing files which may not be
  2653. # executable, retaining their permissions. Remove them first so a
  2654. # subsequent execution test works.
  2655. ac_rmfiles=
  2656. for ac_file in $ac_files
  2657. do
  2658. case $ac_file in
  2659. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2660. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2661. esac
  2662. done
  2663. rm -f $ac_rmfiles
  2664. if { (ac_try="$ac_link_default"
  2665. case "(($ac_try" in
  2666. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2667. *) ac_try_echo=$ac_try;;
  2668. esac
  2669. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2670. (eval "$ac_link_default") 2>&5
  2671. ac_status=$?
  2672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2673. (exit $ac_status); }; then
  2674. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2675. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2676. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2677. # so that the user can short-circuit this test for compilers unknown to
  2678. # Autoconf.
  2679. for ac_file in $ac_files ''
  2680. do
  2681. test -f "$ac_file" || continue
  2682. case $ac_file in
  2683. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2684. ;;
  2685. [ab].out )
  2686. # We found the default executable, but exeext='' is most
  2687. # certainly right.
  2688. break;;
  2689. *.* )
  2690. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2691. then :; else
  2692. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2693. fi
  2694. # We set ac_cv_exeext here because the later test for it is not
  2695. # safe: cross compilers may not add the suffix if given an `-o'
  2696. # argument, so we may need to know it at that point already.
  2697. # Even if this section looks crufty: it has the advantage of
  2698. # actually working.
  2699. break;;
  2700. * )
  2701. break;;
  2702. esac
  2703. done
  2704. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2705. else
  2706. ac_file=''
  2707. fi
  2708. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2709. echo "${ECHO_T}$ac_file" >&6; }
  2710. if test -z "$ac_file"; then
  2711. echo "$as_me: failed program was:" >&5
  2712. sed 's/^/| /' conftest.$ac_ext >&5
  2713. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2714. See \`config.log' for more details." >&5
  2715. echo "$as_me: error: C compiler cannot create executables
  2716. See \`config.log' for more details." >&2;}
  2717. { (exit 77); exit 77; }; }
  2718. fi
  2719. ac_exeext=$ac_cv_exeext
  2720. # Check that the compiler produces executables we can run. If not, either
  2721. # the compiler is broken, or we cross compile.
  2722. { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2723. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  2724. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2725. # If not cross compiling, check that we can run a simple program.
  2726. if test "$cross_compiling" != yes; then
  2727. if { ac_try='./$ac_file'
  2728. { (case "(($ac_try" in
  2729. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2730. *) ac_try_echo=$ac_try;;
  2731. esac
  2732. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2733. (eval "$ac_try") 2>&5
  2734. ac_status=$?
  2735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2736. (exit $ac_status); }; }; then
  2737. cross_compiling=no
  2738. else
  2739. if test "$cross_compiling" = maybe; then
  2740. cross_compiling=yes
  2741. else
  2742. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2743. If you meant to cross compile, use \`--host'.
  2744. See \`config.log' for more details." >&5
  2745. echo "$as_me: error: cannot run C compiled programs.
  2746. If you meant to cross compile, use \`--host'.
  2747. See \`config.log' for more details." >&2;}
  2748. { (exit 1); exit 1; }; }
  2749. fi
  2750. fi
  2751. fi
  2752. { echo "$as_me:$LINENO: result: yes" >&5
  2753. echo "${ECHO_T}yes" >&6; }
  2754. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2755. ac_clean_files=$ac_clean_files_save
  2756. # Check that the compiler produces executables we can run. If not, either
  2757. # the compiler is broken, or we cross compile.
  2758. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2759. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2760. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2761. echo "${ECHO_T}$cross_compiling" >&6; }
  2762. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2763. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2764. if { (ac_try="$ac_link"
  2765. case "(($ac_try" in
  2766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2767. *) ac_try_echo=$ac_try;;
  2768. esac
  2769. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2770. (eval "$ac_link") 2>&5
  2771. ac_status=$?
  2772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2773. (exit $ac_status); }; then
  2774. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2775. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2776. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2777. # `rm'.
  2778. for ac_file in conftest.exe conftest conftest.*; do
  2779. test -f "$ac_file" || continue
  2780. case $ac_file in
  2781. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2782. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2783. break;;
  2784. * ) break;;
  2785. esac
  2786. done
  2787. else
  2788. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2789. See \`config.log' for more details." >&5
  2790. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2791. See \`config.log' for more details." >&2;}
  2792. { (exit 1); exit 1; }; }
  2793. fi
  2794. rm -f conftest$ac_cv_exeext
  2795. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2796. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2797. rm -f conftest.$ac_ext
  2798. EXEEXT=$ac_cv_exeext
  2799. ac_exeext=$EXEEXT
  2800. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2801. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2802. if test "${ac_cv_objext+set}" = set; then
  2803. echo $ECHO_N "(cached) $ECHO_C" >&6
  2804. else
  2805. cat >conftest.$ac_ext <<_ACEOF
  2806. /* confdefs.h. */
  2807. _ACEOF
  2808. cat confdefs.h >>conftest.$ac_ext
  2809. cat >>conftest.$ac_ext <<_ACEOF
  2810. /* end confdefs.h. */
  2811. int
  2812. main ()
  2813. {
  2814. ;
  2815. return 0;
  2816. }
  2817. _ACEOF
  2818. rm -f conftest.o conftest.obj
  2819. if { (ac_try="$ac_compile"
  2820. case "(($ac_try" in
  2821. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2822. *) ac_try_echo=$ac_try;;
  2823. esac
  2824. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2825. (eval "$ac_compile") 2>&5
  2826. ac_status=$?
  2827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2828. (exit $ac_status); }; then
  2829. for ac_file in conftest.o conftest.obj conftest.*; do
  2830. test -f "$ac_file" || continue;
  2831. case $ac_file in
  2832. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2833. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2834. break;;
  2835. esac
  2836. done
  2837. else
  2838. echo "$as_me: failed program was:" >&5
  2839. sed 's/^/| /' conftest.$ac_ext >&5
  2840. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2841. See \`config.log' for more details." >&5
  2842. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2843. See \`config.log' for more details." >&2;}
  2844. { (exit 1); exit 1; }; }
  2845. fi
  2846. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2847. fi
  2848. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2849. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2850. OBJEXT=$ac_cv_objext
  2851. ac_objext=$OBJEXT
  2852. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2853. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  2854. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2855. echo $ECHO_N "(cached) $ECHO_C" >&6
  2856. else
  2857. cat >conftest.$ac_ext <<_ACEOF
  2858. /* confdefs.h. */
  2859. _ACEOF
  2860. cat confdefs.h >>conftest.$ac_ext
  2861. cat >>conftest.$ac_ext <<_ACEOF
  2862. /* end confdefs.h. */
  2863. int
  2864. main ()
  2865. {
  2866. #ifndef __GNUC__
  2867. choke me
  2868. #endif
  2869. ;
  2870. return 0;
  2871. }
  2872. _ACEOF
  2873. rm -f conftest.$ac_objext
  2874. if { (ac_try="$ac_compile"
  2875. case "(($ac_try" in
  2876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2877. *) ac_try_echo=$ac_try;;
  2878. esac
  2879. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2880. (eval "$ac_compile") 2>conftest.er1
  2881. ac_status=$?
  2882. grep -v '^ *+' conftest.er1 >conftest.err
  2883. rm -f conftest.er1
  2884. cat conftest.err >&5
  2885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2886. (exit $ac_status); } && {
  2887. test -z "$ac_c_werror_flag" ||
  2888. test ! -s conftest.err
  2889. } && test -s conftest.$ac_objext; then
  2890. ac_compiler_gnu=yes
  2891. else
  2892. echo "$as_me: failed program was:" >&5
  2893. sed 's/^/| /' conftest.$ac_ext >&5
  2894. ac_compiler_gnu=no
  2895. fi
  2896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2897. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2898. fi
  2899. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2900. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  2901. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2902. ac_test_CFLAGS=${CFLAGS+set}
  2903. ac_save_CFLAGS=$CFLAGS
  2904. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2905. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  2906. if test "${ac_cv_prog_cc_g+set}" = set; then
  2907. echo $ECHO_N "(cached) $ECHO_C" >&6
  2908. else
  2909. ac_save_c_werror_flag=$ac_c_werror_flag
  2910. ac_c_werror_flag=yes
  2911. ac_cv_prog_cc_g=no
  2912. CFLAGS="-g"
  2913. cat >conftest.$ac_ext <<_ACEOF
  2914. /* confdefs.h. */
  2915. _ACEOF
  2916. cat confdefs.h >>conftest.$ac_ext
  2917. cat >>conftest.$ac_ext <<_ACEOF
  2918. /* end confdefs.h. */
  2919. int
  2920. main ()
  2921. {
  2922. ;
  2923. return 0;
  2924. }
  2925. _ACEOF
  2926. rm -f conftest.$ac_objext
  2927. if { (ac_try="$ac_compile"
  2928. case "(($ac_try" in
  2929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2930. *) ac_try_echo=$ac_try;;
  2931. esac
  2932. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2933. (eval "$ac_compile") 2>conftest.er1
  2934. ac_status=$?
  2935. grep -v '^ *+' conftest.er1 >conftest.err
  2936. rm -f conftest.er1
  2937. cat conftest.err >&5
  2938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2939. (exit $ac_status); } && {
  2940. test -z "$ac_c_werror_flag" ||
  2941. test ! -s conftest.err
  2942. } && test -s conftest.$ac_objext; then
  2943. ac_cv_prog_cc_g=yes
  2944. else
  2945. echo "$as_me: failed program was:" >&5
  2946. sed 's/^/| /' conftest.$ac_ext >&5
  2947. CFLAGS=""
  2948. cat >conftest.$ac_ext <<_ACEOF
  2949. /* confdefs.h. */
  2950. _ACEOF
  2951. cat confdefs.h >>conftest.$ac_ext
  2952. cat >>conftest.$ac_ext <<_ACEOF
  2953. /* end confdefs.h. */
  2954. int
  2955. main ()
  2956. {
  2957. ;
  2958. return 0;
  2959. }
  2960. _ACEOF
  2961. rm -f conftest.$ac_objext
  2962. if { (ac_try="$ac_compile"
  2963. case "(($ac_try" in
  2964. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2965. *) ac_try_echo=$ac_try;;
  2966. esac
  2967. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2968. (eval "$ac_compile") 2>conftest.er1
  2969. ac_status=$?
  2970. grep -v '^ *+' conftest.er1 >conftest.err
  2971. rm -f conftest.er1
  2972. cat conftest.err >&5
  2973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2974. (exit $ac_status); } && {
  2975. test -z "$ac_c_werror_flag" ||
  2976. test ! -s conftest.err
  2977. } && test -s conftest.$ac_objext; then
  2978. :
  2979. else
  2980. echo "$as_me: failed program was:" >&5
  2981. sed 's/^/| /' conftest.$ac_ext >&5
  2982. ac_c_werror_flag=$ac_save_c_werror_flag
  2983. CFLAGS="-g"
  2984. cat >conftest.$ac_ext <<_ACEOF
  2985. /* confdefs.h. */
  2986. _ACEOF
  2987. cat confdefs.h >>conftest.$ac_ext
  2988. cat >>conftest.$ac_ext <<_ACEOF
  2989. /* end confdefs.h. */
  2990. int
  2991. main ()
  2992. {
  2993. ;
  2994. return 0;
  2995. }
  2996. _ACEOF
  2997. rm -f conftest.$ac_objext
  2998. if { (ac_try="$ac_compile"
  2999. case "(($ac_try" in
  3000. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3001. *) ac_try_echo=$ac_try;;
  3002. esac
  3003. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3004. (eval "$ac_compile") 2>conftest.er1
  3005. ac_status=$?
  3006. grep -v '^ *+' conftest.er1 >conftest.err
  3007. rm -f conftest.er1
  3008. cat conftest.err >&5
  3009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3010. (exit $ac_status); } && {
  3011. test -z "$ac_c_werror_flag" ||
  3012. test ! -s conftest.err
  3013. } && test -s conftest.$ac_objext; then
  3014. ac_cv_prog_cc_g=yes
  3015. else
  3016. echo "$as_me: failed program was:" >&5
  3017. sed 's/^/| /' conftest.$ac_ext >&5
  3018. fi
  3019. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3020. fi
  3021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3022. fi
  3023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3024. ac_c_werror_flag=$ac_save_c_werror_flag
  3025. fi
  3026. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3027. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3028. if test "$ac_test_CFLAGS" = set; then
  3029. CFLAGS=$ac_save_CFLAGS
  3030. elif test $ac_cv_prog_cc_g = yes; then
  3031. if test "$GCC" = yes; then
  3032. CFLAGS="-g -O2"
  3033. else
  3034. CFLAGS="-g"
  3035. fi
  3036. else
  3037. if test "$GCC" = yes; then
  3038. CFLAGS="-O2"
  3039. else
  3040. CFLAGS=
  3041. fi
  3042. fi
  3043. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3044. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3045. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3046. echo $ECHO_N "(cached) $ECHO_C" >&6
  3047. else
  3048. ac_cv_prog_cc_c89=no
  3049. ac_save_CC=$CC
  3050. cat >conftest.$ac_ext <<_ACEOF
  3051. /* confdefs.h. */
  3052. _ACEOF
  3053. cat confdefs.h >>conftest.$ac_ext
  3054. cat >>conftest.$ac_ext <<_ACEOF
  3055. /* end confdefs.h. */
  3056. #include <stdarg.h>
  3057. #include <stdio.h>
  3058. #include <sys/types.h>
  3059. #include <sys/stat.h>
  3060. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3061. struct buf { int x; };
  3062. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3063. static char *e (p, i)
  3064. char **p;
  3065. int i;
  3066. {
  3067. return p[i];
  3068. }
  3069. static char *f (char * (*g) (char **, int), char **p, ...)
  3070. {
  3071. char *s;
  3072. va_list v;
  3073. va_start (v,p);
  3074. s = g (p, va_arg (v,int));
  3075. va_end (v);
  3076. return s;
  3077. }
  3078. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3079. function prototypes and stuff, but not '\xHH' hex character constants.
  3080. These don't provoke an error unfortunately, instead are silently treated
  3081. as 'x'. The following induces an error, until -std is added to get
  3082. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3083. array size at least. It's necessary to write '\x00'==0 to get something
  3084. that's true only with -std. */
  3085. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3086. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3087. inside strings and character constants. */
  3088. #define FOO(x) 'x'
  3089. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3090. int test (int i, double x);
  3091. struct s1 {int (*f) (int a);};
  3092. struct s2 {int (*f) (double a);};
  3093. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3094. int argc;
  3095. char **argv;
  3096. int
  3097. main ()
  3098. {
  3099. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3100. ;
  3101. return 0;
  3102. }
  3103. _ACEOF
  3104. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3105. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3106. do
  3107. CC="$ac_save_CC $ac_arg"
  3108. rm -f conftest.$ac_objext
  3109. if { (ac_try="$ac_compile"
  3110. case "(($ac_try" in
  3111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3112. *) ac_try_echo=$ac_try;;
  3113. esac
  3114. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3115. (eval "$ac_compile") 2>conftest.er1
  3116. ac_status=$?
  3117. grep -v '^ *+' conftest.er1 >conftest.err
  3118. rm -f conftest.er1
  3119. cat conftest.err >&5
  3120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3121. (exit $ac_status); } && {
  3122. test -z "$ac_c_werror_flag" ||
  3123. test ! -s conftest.err
  3124. } && test -s conftest.$ac_objext; then
  3125. ac_cv_prog_cc_c89=$ac_arg
  3126. else
  3127. echo "$as_me: failed program was:" >&5
  3128. sed 's/^/| /' conftest.$ac_ext >&5
  3129. fi
  3130. rm -f core conftest.err conftest.$ac_objext
  3131. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3132. done
  3133. rm -f conftest.$ac_ext
  3134. CC=$ac_save_CC
  3135. fi
  3136. # AC_CACHE_VAL
  3137. case "x$ac_cv_prog_cc_c89" in
  3138. x)
  3139. { echo "$as_me:$LINENO: result: none needed" >&5
  3140. echo "${ECHO_T}none needed" >&6; } ;;
  3141. xno)
  3142. { echo "$as_me:$LINENO: result: unsupported" >&5
  3143. echo "${ECHO_T}unsupported" >&6; } ;;
  3144. *)
  3145. CC="$CC $ac_cv_prog_cc_c89"
  3146. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3147. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3148. esac
  3149. ac_ext=c
  3150. ac_cpp='$CPP $CPPFLAGS'
  3151. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3152. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3153. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3154. DEPDIR="${am__leading_dot}deps"
  3155. ac_config_commands="$ac_config_commands depfiles"
  3156. am_make=${MAKE-make}
  3157. cat > confinc << 'END'
  3158. am__doit:
  3159. @echo done
  3160. .PHONY: am__doit
  3161. END
  3162. # If we don't find an include directive, just comment out the code.
  3163. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3164. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  3165. am__include="#"
  3166. am__quote=
  3167. _am_result=none
  3168. # First try GNU make style include.
  3169. echo "include confinc" > confmf
  3170. # We grep out `Entering directory' and `Leaving directory'
  3171. # messages which can occur if `w' ends up in MAKEFLAGS.
  3172. # In particular we don't look at `^make:' because GNU make might
  3173. # be invoked under some other name (usually "gmake"), in which
  3174. # case it prints its new name instead of `make'.
  3175. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3176. am__include=include
  3177. am__quote=
  3178. _am_result=GNU
  3179. fi
  3180. # Now try BSD make style include.
  3181. if test "$am__include" = "#"; then
  3182. echo '.include "confinc"' > confmf
  3183. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3184. am__include=.include
  3185. am__quote="\""
  3186. _am_result=BSD
  3187. fi
  3188. fi
  3189. { echo "$as_me:$LINENO: result: $_am_result" >&5
  3190. echo "${ECHO_T}$_am_result" >&6; }
  3191. rm -f confinc confmf
  3192. # Check whether --enable-dependency-tracking was given.
  3193. if test "${enable_dependency_tracking+set}" = set; then
  3194. enableval=$enable_dependency_tracking;
  3195. fi
  3196. if test "x$enable_dependency_tracking" != xno; then
  3197. am_depcomp="$ac_aux_dir/depcomp"
  3198. AMDEPBACKSLASH='\'
  3199. fi
  3200. if test "x$enable_dependency_tracking" != xno; then
  3201. AMDEP_TRUE=
  3202. AMDEP_FALSE='#'
  3203. else
  3204. AMDEP_TRUE='#'
  3205. AMDEP_FALSE=
  3206. fi
  3207. depcc="$CC" am_compiler_list=
  3208. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3209. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3210. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3211. echo $ECHO_N "(cached) $ECHO_C" >&6
  3212. else
  3213. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3214. # We make a subdir and do the tests there. Otherwise we can end up
  3215. # making bogus files that we don't know about and never remove. For
  3216. # instance it was reported that on HP-UX the gcc test will end up
  3217. # making a dummy file named `D' -- because `-MD' means `put the output
  3218. # in D'.
  3219. mkdir conftest.dir
  3220. # Copy depcomp to subdir because otherwise we won't find it if we're
  3221. # using a relative directory.
  3222. cp "$am_depcomp" conftest.dir
  3223. cd conftest.dir
  3224. # We will build objects and dependencies in a subdirectory because
  3225. # it helps to detect inapplicable dependency modes. For instance
  3226. # both Tru64's cc and ICC support -MD to output dependencies as a
  3227. # side effect of compilation, but ICC will put the dependencies in
  3228. # the current directory while Tru64 will put them in the object
  3229. # directory.
  3230. mkdir sub
  3231. am_cv_CC_dependencies_compiler_type=none
  3232. if test "$am_compiler_list" = ""; then
  3233. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3234. fi
  3235. for depmode in $am_compiler_list; do
  3236. # Setup a source with many dependencies, because some compilers
  3237. # like to wrap large dependency lists on column 80 (with \), and
  3238. # we should not choose a depcomp mode which is confused by this.
  3239. #
  3240. # We need to recreate these files for each test, as the compiler may
  3241. # overwrite some of them when testing with obscure command lines.
  3242. # This happens at least with the AIX C compiler.
  3243. : > sub/conftest.c
  3244. for i in 1 2 3 4 5 6; do
  3245. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3246. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3247. # Solaris 8's {/usr,}/bin/sh.
  3248. touch sub/conftst$i.h
  3249. done
  3250. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3251. case $depmode in
  3252. nosideeffect)
  3253. # after this tag, mechanisms are not by side-effect, so they'll
  3254. # only be used when explicitly requested
  3255. if test "x$enable_dependency_tracking" = xyes; then
  3256. continue
  3257. else
  3258. break
  3259. fi
  3260. ;;
  3261. none) break ;;
  3262. esac
  3263. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3264. # mode. It turns out that the SunPro C++ compiler does not properly
  3265. # handle `-M -o', and we need to detect this.
  3266. if depmode=$depmode \
  3267. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3268. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3269. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3270. >/dev/null 2>conftest.err &&
  3271. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3272. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3273. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3274. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3275. # icc doesn't choke on unknown options, it will just issue warnings
  3276. # or remarks (even with -Werror). So we grep stderr for any message
  3277. # that says an option was ignored or not supported.
  3278. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3279. # icc: Command line warning: ignoring option '-M'; no argument required
  3280. # The diagnosis changed in icc 8.0:
  3281. # icc: Command line remark: option '-MP' not supported
  3282. if (grep 'ignoring option' conftest.err ||
  3283. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3284. am_cv_CC_dependencies_compiler_type=$depmode
  3285. break
  3286. fi
  3287. fi
  3288. done
  3289. cd ..
  3290. rm -rf conftest.dir
  3291. else
  3292. am_cv_CC_dependencies_compiler_type=none
  3293. fi
  3294. fi
  3295. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3296. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3297. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3298. if
  3299. test "x$enable_dependency_tracking" != xno \
  3300. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3301. am__fastdepCC_TRUE=
  3302. am__fastdepCC_FALSE='#'
  3303. else
  3304. am__fastdepCC_TRUE='#'
  3305. am__fastdepCC_FALSE=
  3306. fi
  3307. # By default we simply use the C compiler to build assembly code.
  3308. test "${CCAS+set}" = set || CCAS=$CC
  3309. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  3310. depcc="$CCAS" am_compiler_list=
  3311. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3312. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3313. if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
  3314. echo $ECHO_N "(cached) $ECHO_C" >&6
  3315. else
  3316. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3317. # We make a subdir and do the tests there. Otherwise we can end up
  3318. # making bogus files that we don't know about and never remove. For
  3319. # instance it was reported that on HP-UX the gcc test will end up
  3320. # making a dummy file named `D' -- because `-MD' means `put the output
  3321. # in D'.
  3322. mkdir conftest.dir
  3323. # Copy depcomp to subdir because otherwise we won't find it if we're
  3324. # using a relative directory.
  3325. cp "$am_depcomp" conftest.dir
  3326. cd conftest.dir
  3327. # We will build objects and dependencies in a subdirectory because
  3328. # it helps to detect inapplicable dependency modes. For instance
  3329. # both Tru64's cc and ICC support -MD to output dependencies as a
  3330. # side effect of compilation, but ICC will put the dependencies in
  3331. # the current directory while Tru64 will put them in the object
  3332. # directory.
  3333. mkdir sub
  3334. am_cv_CCAS_dependencies_compiler_type=none
  3335. if test "$am_compiler_list" = ""; then
  3336. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3337. fi
  3338. for depmode in $am_compiler_list; do
  3339. # Setup a source with many dependencies, because some compilers
  3340. # like to wrap large dependency lists on column 80 (with \), and
  3341. # we should not choose a depcomp mode which is confused by this.
  3342. #
  3343. # We need to recreate these files for each test, as the compiler may
  3344. # overwrite some of them when testing with obscure command lines.
  3345. # This happens at least with the AIX C compiler.
  3346. : > sub/conftest.c
  3347. for i in 1 2 3 4 5 6; do
  3348. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3349. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3350. # Solaris 8's {/usr,}/bin/sh.
  3351. touch sub/conftst$i.h
  3352. done
  3353. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3354. case $depmode in
  3355. nosideeffect)
  3356. # after this tag, mechanisms are not by side-effect, so they'll
  3357. # only be used when explicitly requested
  3358. if test "x$enable_dependency_tracking" = xyes; then
  3359. continue
  3360. else
  3361. break
  3362. fi
  3363. ;;
  3364. none) break ;;
  3365. esac
  3366. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3367. # mode. It turns out that the SunPro C++ compiler does not properly
  3368. # handle `-M -o', and we need to detect this.
  3369. if depmode=$depmode \
  3370. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3371. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3372. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3373. >/dev/null 2>conftest.err &&
  3374. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3375. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3376. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3377. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3378. # icc doesn't choke on unknown options, it will just issue warnings
  3379. # or remarks (even with -Werror). So we grep stderr for any message
  3380. # that says an option was ignored or not supported.
  3381. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3382. # icc: Command line warning: ignoring option '-M'; no argument required
  3383. # The diagnosis changed in icc 8.0:
  3384. # icc: Command line remark: option '-MP' not supported
  3385. if (grep 'ignoring option' conftest.err ||
  3386. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3387. am_cv_CCAS_dependencies_compiler_type=$depmode
  3388. break
  3389. fi
  3390. fi
  3391. done
  3392. cd ..
  3393. rm -rf conftest.dir
  3394. else
  3395. am_cv_CCAS_dependencies_compiler_type=none
  3396. fi
  3397. fi
  3398. { echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  3399. echo "${ECHO_T}$am_cv_CCAS_dependencies_compiler_type" >&6; }
  3400. CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  3401. if
  3402. test "x$enable_dependency_tracking" != xno \
  3403. && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  3404. am__fastdepCCAS_TRUE=
  3405. am__fastdepCCAS_FALSE='#'
  3406. else
  3407. am__fastdepCCAS_TRUE='#'
  3408. am__fastdepCCAS_FALSE=
  3409. fi
  3410. if test "x$CC" != xcc; then
  3411. { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  3412. echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
  3413. else
  3414. { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  3415. echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
  3416. fi
  3417. set dummy $CC; ac_cc=`echo $2 |
  3418. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3419. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  3420. echo $ECHO_N "(cached) $ECHO_C" >&6
  3421. else
  3422. cat >conftest.$ac_ext <<_ACEOF
  3423. /* confdefs.h. */
  3424. _ACEOF
  3425. cat confdefs.h >>conftest.$ac_ext
  3426. cat >>conftest.$ac_ext <<_ACEOF
  3427. /* end confdefs.h. */
  3428. int
  3429. main ()
  3430. {
  3431. ;
  3432. return 0;
  3433. }
  3434. _ACEOF
  3435. # Make sure it works both with $CC and with simple cc.
  3436. # We do the test twice because some compilers refuse to overwrite an
  3437. # existing .o file with -o, though they will create one.
  3438. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3439. rm -f conftest2.*
  3440. if { (case "(($ac_try" in
  3441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3442. *) ac_try_echo=$ac_try;;
  3443. esac
  3444. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3445. (eval "$ac_try") 2>&5
  3446. ac_status=$?
  3447. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3448. (exit $ac_status); } &&
  3449. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  3450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3451. *) ac_try_echo=$ac_try;;
  3452. esac
  3453. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3454. (eval "$ac_try") 2>&5
  3455. ac_status=$?
  3456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3457. (exit $ac_status); };
  3458. then
  3459. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3460. if test "x$CC" != xcc; then
  3461. # Test first that cc exists at all.
  3462. if { ac_try='cc -c conftest.$ac_ext >&5'
  3463. { (case "(($ac_try" in
  3464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3465. *) ac_try_echo=$ac_try;;
  3466. esac
  3467. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3468. (eval "$ac_try") 2>&5
  3469. ac_status=$?
  3470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3471. (exit $ac_status); }; }; then
  3472. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3473. rm -f conftest2.*
  3474. if { (case "(($ac_try" in
  3475. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3476. *) ac_try_echo=$ac_try;;
  3477. esac
  3478. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3479. (eval "$ac_try") 2>&5
  3480. ac_status=$?
  3481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3482. (exit $ac_status); } &&
  3483. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  3484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3485. *) ac_try_echo=$ac_try;;
  3486. esac
  3487. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3488. (eval "$ac_try") 2>&5
  3489. ac_status=$?
  3490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3491. (exit $ac_status); };
  3492. then
  3493. # cc works too.
  3494. :
  3495. else
  3496. # cc exists but doesn't like -o.
  3497. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3498. fi
  3499. fi
  3500. fi
  3501. else
  3502. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3503. fi
  3504. rm -f core conftest*
  3505. fi
  3506. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  3507. { echo "$as_me:$LINENO: result: yes" >&5
  3508. echo "${ECHO_T}yes" >&6; }
  3509. else
  3510. { echo "$as_me:$LINENO: result: no" >&5
  3511. echo "${ECHO_T}no" >&6; }
  3512. cat >>confdefs.h <<\_ACEOF
  3513. #define NO_MINUS_C_MINUS_O 1
  3514. _ACEOF
  3515. fi
  3516. # FIXME: we rely on the cache variable name because
  3517. # there is no other way.
  3518. set dummy $CC
  3519. ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3520. if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
  3521. # Losing compiler, so override with the script.
  3522. # FIXME: It is wrong to rewrite CC.
  3523. # But if we don't then we get into trouble of one sort or another.
  3524. # A longer-term fix would be to have automake use am__CC in this case,
  3525. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3526. CC="$am_aux_dir/compile $CC"
  3527. fi
  3528. # Check whether --enable-shared was given.
  3529. if test "${enable_shared+set}" = set; then
  3530. enableval=$enable_shared; p=${PACKAGE-default}
  3531. case $enableval in
  3532. yes) enable_shared=yes ;;
  3533. no) enable_shared=no ;;
  3534. *)
  3535. enable_shared=no
  3536. # Look at the argument we got. We use all the common list separators.
  3537. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3538. for pkg in $enableval; do
  3539. IFS="$lt_save_ifs"
  3540. if test "X$pkg" = "X$p"; then
  3541. enable_shared=yes
  3542. fi
  3543. done
  3544. IFS="$lt_save_ifs"
  3545. ;;
  3546. esac
  3547. else
  3548. enable_shared=yes
  3549. fi
  3550. # Check whether --enable-static was given.
  3551. if test "${enable_static+set}" = set; then
  3552. enableval=$enable_static; p=${PACKAGE-default}
  3553. case $enableval in
  3554. yes) enable_static=yes ;;
  3555. no) enable_static=no ;;
  3556. *)
  3557. enable_static=no
  3558. # Look at the argument we got. We use all the common list separators.
  3559. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3560. for pkg in $enableval; do
  3561. IFS="$lt_save_ifs"
  3562. if test "X$pkg" = "X$p"; then
  3563. enable_static=yes
  3564. fi
  3565. done
  3566. IFS="$lt_save_ifs"
  3567. ;;
  3568. esac
  3569. else
  3570. enable_static=yes
  3571. fi
  3572. # Check whether --enable-fast-install was given.
  3573. if test "${enable_fast_install+set}" = set; then
  3574. enableval=$enable_fast_install; p=${PACKAGE-default}
  3575. case $enableval in
  3576. yes) enable_fast_install=yes ;;
  3577. no) enable_fast_install=no ;;
  3578. *)
  3579. enable_fast_install=no
  3580. # Look at the argument we got. We use all the common list separators.
  3581. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3582. for pkg in $enableval; do
  3583. IFS="$lt_save_ifs"
  3584. if test "X$pkg" = "X$p"; then
  3585. enable_fast_install=yes
  3586. fi
  3587. done
  3588. IFS="$lt_save_ifs"
  3589. ;;
  3590. esac
  3591. else
  3592. enable_fast_install=yes
  3593. fi
  3594. { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  3595. echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
  3596. if test "${lt_cv_path_SED+set}" = set; then
  3597. echo $ECHO_N "(cached) $ECHO_C" >&6
  3598. else
  3599. # Loop through the user's path and test for sed and gsed.
  3600. # Then use that list of sed's as ones to test for truncation.
  3601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3602. for as_dir in $PATH
  3603. do
  3604. IFS=$as_save_IFS
  3605. test -z "$as_dir" && as_dir=.
  3606. for lt_ac_prog in sed gsed; do
  3607. for ac_exec_ext in '' $ac_executable_extensions; do
  3608. if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
  3609. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  3610. fi
  3611. done
  3612. done
  3613. done
  3614. IFS=$as_save_IFS
  3615. lt_ac_max=0
  3616. lt_ac_count=0
  3617. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  3618. # along with /bin/sed that truncates output.
  3619. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  3620. test ! -f $lt_ac_sed && continue
  3621. cat /dev/null > conftest.in
  3622. lt_ac_count=0
  3623. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  3624. # Check for GNU sed and select it if it is found.
  3625. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  3626. lt_cv_path_SED=$lt_ac_sed
  3627. break
  3628. fi
  3629. while true; do
  3630. cat conftest.in conftest.in >conftest.tmp
  3631. mv conftest.tmp conftest.in
  3632. cp conftest.in conftest.nl
  3633. echo >>conftest.nl
  3634. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  3635. cmp -s conftest.out conftest.nl || break
  3636. # 10000 chars as input seems more than enough
  3637. test $lt_ac_count -gt 10 && break
  3638. lt_ac_count=`expr $lt_ac_count + 1`
  3639. if test $lt_ac_count -gt $lt_ac_max; then
  3640. lt_ac_max=$lt_ac_count
  3641. lt_cv_path_SED=$lt_ac_sed
  3642. fi
  3643. done
  3644. done
  3645. fi
  3646. SED=$lt_cv_path_SED
  3647. { echo "$as_me:$LINENO: result: $SED" >&5
  3648. echo "${ECHO_T}$SED" >&6; }
  3649. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  3650. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  3651. if test "${ac_cv_path_GREP+set}" = set; then
  3652. echo $ECHO_N "(cached) $ECHO_C" >&6
  3653. else
  3654. # Extract the first word of "grep ggrep" to use in msg output
  3655. if test -z "$GREP"; then
  3656. set dummy grep ggrep; ac_prog_name=$2
  3657. if test "${ac_cv_path_GREP+set}" = set; then
  3658. echo $ECHO_N "(cached) $ECHO_C" >&6
  3659. else
  3660. ac_path_GREP_found=false
  3661. # Loop through the user's path and test for each of PROGNAME-LIST
  3662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3663. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3664. do
  3665. IFS=$as_save_IFS
  3666. test -z "$as_dir" && as_dir=.
  3667. for ac_prog in grep ggrep; do
  3668. for ac_exec_ext in '' $ac_executable_extensions; do
  3669. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3670. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3671. # Check for GNU ac_path_GREP and select it if it is found.
  3672. # Check for GNU $ac_path_GREP
  3673. case `"$ac_path_GREP" --version 2>&1` in
  3674. *GNU*)
  3675. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3676. *)
  3677. ac_count=0
  3678. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3679. while :
  3680. do
  3681. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3682. mv "conftest.tmp" "conftest.in"
  3683. cp "conftest.in" "conftest.nl"
  3684. echo 'GREP' >> "conftest.nl"
  3685. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3686. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3687. ac_count=`expr $ac_count + 1`
  3688. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3689. # Best one so far, save it but keep looking for a better one
  3690. ac_cv_path_GREP="$ac_path_GREP"
  3691. ac_path_GREP_max=$ac_count
  3692. fi
  3693. # 10*(2^10) chars as input seems more than enough
  3694. test $ac_count -gt 10 && break
  3695. done
  3696. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3697. esac
  3698. $ac_path_GREP_found && break 3
  3699. done
  3700. done
  3701. done
  3702. IFS=$as_save_IFS
  3703. fi
  3704. GREP="$ac_cv_path_GREP"
  3705. if test -z "$GREP"; then
  3706. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3707. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3708. { (exit 1); exit 1; }; }
  3709. fi
  3710. else
  3711. ac_cv_path_GREP=$GREP
  3712. fi
  3713. fi
  3714. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  3715. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  3716. GREP="$ac_cv_path_GREP"
  3717. { echo "$as_me:$LINENO: checking for egrep" >&5
  3718. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  3719. if test "${ac_cv_path_EGREP+set}" = set; then
  3720. echo $ECHO_N "(cached) $ECHO_C" >&6
  3721. else
  3722. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3723. then ac_cv_path_EGREP="$GREP -E"
  3724. else
  3725. # Extract the first word of "egrep" to use in msg output
  3726. if test -z "$EGREP"; then
  3727. set dummy egrep; ac_prog_name=$2
  3728. if test "${ac_cv_path_EGREP+set}" = set; then
  3729. echo $ECHO_N "(cached) $ECHO_C" >&6
  3730. else
  3731. ac_path_EGREP_found=false
  3732. # Loop through the user's path and test for each of PROGNAME-LIST
  3733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3734. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3735. do
  3736. IFS=$as_save_IFS
  3737. test -z "$as_dir" && as_dir=.
  3738. for ac_prog in egrep; do
  3739. for ac_exec_ext in '' $ac_executable_extensions; do
  3740. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3741. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3742. # Check for GNU ac_path_EGREP and select it if it is found.
  3743. # Check for GNU $ac_path_EGREP
  3744. case `"$ac_path_EGREP" --version 2>&1` in
  3745. *GNU*)
  3746. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3747. *)
  3748. ac_count=0
  3749. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  3750. while :
  3751. do
  3752. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3753. mv "conftest.tmp" "conftest.in"
  3754. cp "conftest.in" "conftest.nl"
  3755. echo 'EGREP' >> "conftest.nl"
  3756. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3757. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3758. ac_count=`expr $ac_count + 1`
  3759. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3760. # Best one so far, save it but keep looking for a better one
  3761. ac_cv_path_EGREP="$ac_path_EGREP"
  3762. ac_path_EGREP_max=$ac_count
  3763. fi
  3764. # 10*(2^10) chars as input seems more than enough
  3765. test $ac_count -gt 10 && break
  3766. done
  3767. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3768. esac
  3769. $ac_path_EGREP_found && break 3
  3770. done
  3771. done
  3772. done
  3773. IFS=$as_save_IFS
  3774. fi
  3775. EGREP="$ac_cv_path_EGREP"
  3776. if test -z "$EGREP"; then
  3777. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  3778. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  3779. { (exit 1); exit 1; }; }
  3780. fi
  3781. else
  3782. ac_cv_path_EGREP=$EGREP
  3783. fi
  3784. fi
  3785. fi
  3786. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  3787. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  3788. EGREP="$ac_cv_path_EGREP"
  3789. # Check whether --with-gnu-ld was given.
  3790. if test "${with_gnu_ld+set}" = set; then
  3791. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3792. else
  3793. with_gnu_ld=no
  3794. fi
  3795. ac_prog=ld
  3796. if test "$GCC" = yes; then
  3797. # Check if gcc -print-prog-name=ld gives a path.
  3798. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  3799. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  3800. case $host in
  3801. *-*-mingw*)
  3802. # gcc leaves a trailing carriage return which upsets mingw
  3803. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3804. *)
  3805. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3806. esac
  3807. case $ac_prog in
  3808. # Accept absolute paths.
  3809. [\\/]* | ?:[\\/]*)
  3810. re_direlt='/[^/][^/]*/\.\./'
  3811. # Canonicalize the pathname of ld
  3812. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3813. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3814. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3815. done
  3816. test -z "$LD" && LD="$ac_prog"
  3817. ;;
  3818. "")
  3819. # If it fails, then pretend we aren't using GCC.
  3820. ac_prog=ld
  3821. ;;
  3822. *)
  3823. # If it is relative, then search for the first ld in PATH.
  3824. with_gnu_ld=unknown
  3825. ;;
  3826. esac
  3827. elif test "$with_gnu_ld" = yes; then
  3828. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  3829. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  3830. else
  3831. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  3832. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  3833. fi
  3834. if test "${lt_cv_path_LD+set}" = set; then
  3835. echo $ECHO_N "(cached) $ECHO_C" >&6
  3836. else
  3837. if test -z "$LD"; then
  3838. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3839. for ac_dir in $PATH; do
  3840. IFS="$lt_save_ifs"
  3841. test -z "$ac_dir" && ac_dir=.
  3842. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3843. lt_cv_path_LD="$ac_dir/$ac_prog"
  3844. # Check to see if the program is GNU ld. I'd rather use --version,
  3845. # but apparently some variants of GNU ld only accept -v.
  3846. # Break only if it was the GNU/non-GNU ld that we prefer.
  3847. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3848. *GNU* | *'with BFD'*)
  3849. test "$with_gnu_ld" != no && break
  3850. ;;
  3851. *)
  3852. test "$with_gnu_ld" != yes && break
  3853. ;;
  3854. esac
  3855. fi
  3856. done
  3857. IFS="$lt_save_ifs"
  3858. else
  3859. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3860. fi
  3861. fi
  3862. LD="$lt_cv_path_LD"
  3863. if test -n "$LD"; then
  3864. { echo "$as_me:$LINENO: result: $LD" >&5
  3865. echo "${ECHO_T}$LD" >&6; }
  3866. else
  3867. { echo "$as_me:$LINENO: result: no" >&5
  3868. echo "${ECHO_T}no" >&6; }
  3869. fi
  3870. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  3871. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  3872. { (exit 1); exit 1; }; }
  3873. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  3874. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  3875. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  3876. echo $ECHO_N "(cached) $ECHO_C" >&6
  3877. else
  3878. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3879. case `$LD -v 2>&1 </dev/null` in
  3880. *GNU* | *'with BFD'*)
  3881. lt_cv_prog_gnu_ld=yes
  3882. ;;
  3883. *)
  3884. lt_cv_prog_gnu_ld=no
  3885. ;;
  3886. esac
  3887. fi
  3888. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  3889. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  3890. with_gnu_ld=$lt_cv_prog_gnu_ld
  3891. { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  3892. echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
  3893. if test "${lt_cv_ld_reload_flag+set}" = set; then
  3894. echo $ECHO_N "(cached) $ECHO_C" >&6
  3895. else
  3896. lt_cv_ld_reload_flag='-r'
  3897. fi
  3898. { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  3899. echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
  3900. reload_flag=$lt_cv_ld_reload_flag
  3901. case $reload_flag in
  3902. "" | " "*) ;;
  3903. *) reload_flag=" $reload_flag" ;;
  3904. esac
  3905. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3906. case $host_os in
  3907. darwin*)
  3908. if test "$GCC" = yes; then
  3909. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3910. else
  3911. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3912. fi
  3913. ;;
  3914. esac
  3915. { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  3916. echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
  3917. if test "${lt_cv_path_NM+set}" = set; then
  3918. echo $ECHO_N "(cached) $ECHO_C" >&6
  3919. else
  3920. if test -n "$NM"; then
  3921. # Let the user override the test.
  3922. lt_cv_path_NM="$NM"
  3923. else
  3924. lt_nm_to_check="${ac_tool_prefix}nm"
  3925. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3926. lt_nm_to_check="$lt_nm_to_check nm"
  3927. fi
  3928. for lt_tmp_nm in $lt_nm_to_check; do
  3929. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3930. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3931. IFS="$lt_save_ifs"
  3932. test -z "$ac_dir" && ac_dir=.
  3933. tmp_nm="$ac_dir/$lt_tmp_nm"
  3934. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3935. # Check to see if the nm accepts a BSD-compat flag.
  3936. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3937. # nm: unknown option "B" ignored
  3938. # Tru64's nm complains that /dev/null is an invalid object file
  3939. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3940. */dev/null* | *'Invalid file or object type'*)
  3941. lt_cv_path_NM="$tmp_nm -B"
  3942. break
  3943. ;;
  3944. *)
  3945. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3946. */dev/null*)
  3947. lt_cv_path_NM="$tmp_nm -p"
  3948. break
  3949. ;;
  3950. *)
  3951. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3952. continue # so that we can try to find one that supports BSD flags
  3953. ;;
  3954. esac
  3955. ;;
  3956. esac
  3957. fi
  3958. done
  3959. IFS="$lt_save_ifs"
  3960. done
  3961. test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3962. fi
  3963. fi
  3964. { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  3965. echo "${ECHO_T}$lt_cv_path_NM" >&6; }
  3966. NM="$lt_cv_path_NM"
  3967. { echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3968. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
  3969. LN_S=$as_ln_s
  3970. if test "$LN_S" = "ln -s"; then
  3971. { echo "$as_me:$LINENO: result: yes" >&5
  3972. echo "${ECHO_T}yes" >&6; }
  3973. else
  3974. { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3975. echo "${ECHO_T}no, using $LN_S" >&6; }
  3976. fi
  3977. { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  3978. echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
  3979. if test "${lt_cv_deplibs_check_method+set}" = set; then
  3980. echo $ECHO_N "(cached) $ECHO_C" >&6
  3981. else
  3982. lt_cv_file_magic_cmd='$MAGIC_CMD'
  3983. lt_cv_file_magic_test_file=
  3984. lt_cv_deplibs_check_method='unknown'
  3985. # Need to set the preceding variable on all platforms that support
  3986. # interlibrary dependencies.
  3987. # 'none' -- dependencies not supported.
  3988. # `unknown' -- same as none, but documents that we really don't know.
  3989. # 'pass_all' -- all dependencies passed with no checks.
  3990. # 'test_compile' -- check by making test program.
  3991. # 'file_magic [[regex]]' -- check by looking for files in library path
  3992. # which responds to the $file_magic_cmd with a given extended regex.
  3993. # If you have `file' or equivalent on your system and you're not sure
  3994. # whether `pass_all' will *always* work, you probably want this one.
  3995. case $host_os in
  3996. aix4* | aix5*)
  3997. lt_cv_deplibs_check_method=pass_all
  3998. ;;
  3999. beos*)
  4000. lt_cv_deplibs_check_method=pass_all
  4001. ;;
  4002. bsdi[45]*)
  4003. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4004. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4005. lt_cv_file_magic_test_file=/shlib/libc.so
  4006. ;;
  4007. cygwin*)
  4008. # func_win32_libid is a shell function defined in ltmain.sh
  4009. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4010. lt_cv_file_magic_cmd='func_win32_libid'
  4011. ;;
  4012. mingw* | pw32*)
  4013. # Base MSYS/MinGW do not provide the 'file' command needed by
  4014. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4015. # unless we find 'file', for example because we are cross-compiling.
  4016. if ( file / ) >/dev/null 2>&1; then
  4017. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4018. lt_cv_file_magic_cmd='func_win32_libid'
  4019. else
  4020. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4021. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4022. fi
  4023. ;;
  4024. darwin* | rhapsody*)
  4025. lt_cv_deplibs_check_method=pass_all
  4026. ;;
  4027. freebsd* | dragonfly*)
  4028. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4029. case $host_cpu in
  4030. i*86 )
  4031. # Not sure whether the presence of OpenBSD here was a mistake.
  4032. # Let's accept both of them until this is cleared up.
  4033. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4034. lt_cv_file_magic_cmd=/usr/bin/file
  4035. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4036. ;;
  4037. esac
  4038. else
  4039. lt_cv_deplibs_check_method=pass_all
  4040. fi
  4041. ;;
  4042. gnu*)
  4043. lt_cv_deplibs_check_method=pass_all
  4044. ;;
  4045. hpux10.20* | hpux11*)
  4046. lt_cv_file_magic_cmd=/usr/bin/file
  4047. case $host_cpu in
  4048. ia64*)
  4049. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4050. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4051. ;;
  4052. hppa*64*)
  4053. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  4054. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4055. ;;
  4056. *)
  4057. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4058. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4059. ;;
  4060. esac
  4061. ;;
  4062. interix[3-9]*)
  4063. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4064. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4065. ;;
  4066. irix5* | irix6* | nonstopux*)
  4067. case $LD in
  4068. *-32|*"-32 ") libmagic=32-bit;;
  4069. *-n32|*"-n32 ") libmagic=N32;;
  4070. *-64|*"-64 ") libmagic=64-bit;;
  4071. *) libmagic=never-match;;
  4072. esac
  4073. lt_cv_deplibs_check_method=pass_all
  4074. ;;
  4075. # This must be Linux ELF.
  4076. linux* | k*bsd*-gnu)
  4077. lt_cv_deplibs_check_method=pass_all
  4078. ;;
  4079. netbsd*)
  4080. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4081. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4082. else
  4083. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4084. fi
  4085. ;;
  4086. newos6*)
  4087. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4088. lt_cv_file_magic_cmd=/usr/bin/file
  4089. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4090. ;;
  4091. nto-qnx*)
  4092. lt_cv_deplibs_check_method=unknown
  4093. ;;
  4094. openbsd*)
  4095. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4096. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4097. else
  4098. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4099. fi
  4100. ;;
  4101. osf3* | osf4* | osf5*)
  4102. lt_cv_deplibs_check_method=pass_all
  4103. ;;
  4104. rdos*)
  4105. lt_cv_deplibs_check_method=pass_all
  4106. ;;
  4107. solaris*)
  4108. lt_cv_deplibs_check_method=pass_all
  4109. ;;
  4110. sysv4 | sysv4.3*)
  4111. case $host_vendor in
  4112. motorola)
  4113. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  4114. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4115. ;;
  4116. ncr)
  4117. lt_cv_deplibs_check_method=pass_all
  4118. ;;
  4119. sequent)
  4120. lt_cv_file_magic_cmd='/bin/file'
  4121. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4122. ;;
  4123. sni)
  4124. lt_cv_file_magic_cmd='/bin/file'
  4125. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4126. lt_cv_file_magic_test_file=/lib/libc.so
  4127. ;;
  4128. siemens)
  4129. lt_cv_deplibs_check_method=pass_all
  4130. ;;
  4131. pc)
  4132. lt_cv_deplibs_check_method=pass_all
  4133. ;;
  4134. esac
  4135. ;;
  4136. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4137. lt_cv_deplibs_check_method=pass_all
  4138. ;;
  4139. esac
  4140. fi
  4141. { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4142. echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
  4143. file_magic_cmd=$lt_cv_file_magic_cmd
  4144. deplibs_check_method=$lt_cv_deplibs_check_method
  4145. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4146. # If no C compiler was specified, use CC.
  4147. LTCC=${LTCC-"$CC"}
  4148. # If no C compiler flags were specified, use CFLAGS.
  4149. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  4150. # Allow CC to be a program name with arguments.
  4151. compiler=$CC
  4152. # Check whether --enable-libtool-lock was given.
  4153. if test "${enable_libtool_lock+set}" = set; then
  4154. enableval=$enable_libtool_lock;
  4155. fi
  4156. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  4157. # Some flags need to be propagated to the compiler or linker for good
  4158. # libtool support.
  4159. case $host in
  4160. ia64-*-hpux*)
  4161. # Find out which ABI we are using.
  4162. echo 'int i;' > conftest.$ac_ext
  4163. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4164. (eval $ac_compile) 2>&5
  4165. ac_status=$?
  4166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4167. (exit $ac_status); }; then
  4168. case `/usr/bin/file conftest.$ac_objext` in
  4169. *ELF-32*)
  4170. HPUX_IA64_MODE="32"
  4171. ;;
  4172. *ELF-64*)
  4173. HPUX_IA64_MODE="64"
  4174. ;;
  4175. esac
  4176. fi
  4177. rm -rf conftest*
  4178. ;;
  4179. *-*-irix6*)
  4180. # Find out which ABI we are using.
  4181. echo '#line 4693 "configure"' > conftest.$ac_ext
  4182. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4183. (eval $ac_compile) 2>&5
  4184. ac_status=$?
  4185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4186. (exit $ac_status); }; then
  4187. if test "$lt_cv_prog_gnu_ld" = yes; then
  4188. case `/usr/bin/file conftest.$ac_objext` in
  4189. *32-bit*)
  4190. LD="${LD-ld} -melf32bsmip"
  4191. ;;
  4192. *N32*)
  4193. LD="${LD-ld} -melf32bmipn32"
  4194. ;;
  4195. *64-bit*)
  4196. LD="${LD-ld} -melf64bmip"
  4197. ;;
  4198. esac
  4199. else
  4200. case `/usr/bin/file conftest.$ac_objext` in
  4201. *32-bit*)
  4202. LD="${LD-ld} -32"
  4203. ;;
  4204. *N32*)
  4205. LD="${LD-ld} -n32"
  4206. ;;
  4207. *64-bit*)
  4208. LD="${LD-ld} -64"
  4209. ;;
  4210. esac
  4211. fi
  4212. fi
  4213. rm -rf conftest*
  4214. ;;
  4215. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  4216. s390*-*linux*|sparc*-*linux*)
  4217. # Find out which ABI we are using.
  4218. echo 'int i;' > conftest.$ac_ext
  4219. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4220. (eval $ac_compile) 2>&5
  4221. ac_status=$?
  4222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4223. (exit $ac_status); }; then
  4224. case `/usr/bin/file conftest.o` in
  4225. *32-bit*)
  4226. case $host in
  4227. x86_64-*kfreebsd*-gnu)
  4228. LD="${LD-ld} -m elf_i386_fbsd"
  4229. ;;
  4230. x86_64-*linux*)
  4231. LD="${LD-ld} -m elf_i386"
  4232. ;;
  4233. ppc64-*linux*|powerpc64-*linux*)
  4234. LD="${LD-ld} -m elf32ppclinux"
  4235. ;;
  4236. s390x-*linux*)
  4237. LD="${LD-ld} -m elf_s390"
  4238. ;;
  4239. sparc64-*linux*)
  4240. LD="${LD-ld} -m elf32_sparc"
  4241. ;;
  4242. esac
  4243. ;;
  4244. *64-bit*)
  4245. libsuff=64
  4246. case $host in
  4247. x86_64-*kfreebsd*-gnu)
  4248. LD="${LD-ld} -m elf_x86_64_fbsd"
  4249. ;;
  4250. x86_64-*linux*)
  4251. LD="${LD-ld} -m elf_x86_64"
  4252. ;;
  4253. ppc*-*linux*|powerpc*-*linux*)
  4254. LD="${LD-ld} -m elf64ppc"
  4255. ;;
  4256. s390*-*linux*)
  4257. LD="${LD-ld} -m elf64_s390"
  4258. ;;
  4259. sparc*-*linux*)
  4260. LD="${LD-ld} -m elf64_sparc"
  4261. ;;
  4262. esac
  4263. ;;
  4264. esac
  4265. fi
  4266. rm -rf conftest*
  4267. ;;
  4268. *-*-sco3.2v5*)
  4269. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  4270. SAVE_CFLAGS="$CFLAGS"
  4271. CFLAGS="$CFLAGS -belf"
  4272. { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  4273. echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
  4274. if test "${lt_cv_cc_needs_belf+set}" = set; then
  4275. echo $ECHO_N "(cached) $ECHO_C" >&6
  4276. else
  4277. ac_ext=c
  4278. ac_cpp='$CPP $CPPFLAGS'
  4279. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4280. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4281. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4282. cat >conftest.$ac_ext <<_ACEOF
  4283. /* confdefs.h. */
  4284. _ACEOF
  4285. cat confdefs.h >>conftest.$ac_ext
  4286. cat >>conftest.$ac_ext <<_ACEOF
  4287. /* end confdefs.h. */
  4288. int
  4289. main ()
  4290. {
  4291. ;
  4292. return 0;
  4293. }
  4294. _ACEOF
  4295. rm -f conftest.$ac_objext conftest$ac_exeext
  4296. if { (ac_try="$ac_link"
  4297. case "(($ac_try" in
  4298. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4299. *) ac_try_echo=$ac_try;;
  4300. esac
  4301. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4302. (eval "$ac_link") 2>conftest.er1
  4303. ac_status=$?
  4304. grep -v '^ *+' conftest.er1 >conftest.err
  4305. rm -f conftest.er1
  4306. cat conftest.err >&5
  4307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4308. (exit $ac_status); } && {
  4309. test -z "$ac_c_werror_flag" ||
  4310. test ! -s conftest.err
  4311. } && test -s conftest$ac_exeext &&
  4312. $as_test_x conftest$ac_exeext; then
  4313. lt_cv_cc_needs_belf=yes
  4314. else
  4315. echo "$as_me: failed program was:" >&5
  4316. sed 's/^/| /' conftest.$ac_ext >&5
  4317. lt_cv_cc_needs_belf=no
  4318. fi
  4319. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4320. conftest$ac_exeext conftest.$ac_ext
  4321. ac_ext=c
  4322. ac_cpp='$CPP $CPPFLAGS'
  4323. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4324. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4325. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4326. fi
  4327. { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  4328. echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
  4329. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  4330. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  4331. CFLAGS="$SAVE_CFLAGS"
  4332. fi
  4333. ;;
  4334. sparc*-*solaris*)
  4335. # Find out which ABI we are using.
  4336. echo 'int i;' > conftest.$ac_ext
  4337. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4338. (eval $ac_compile) 2>&5
  4339. ac_status=$?
  4340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4341. (exit $ac_status); }; then
  4342. case `/usr/bin/file conftest.o` in
  4343. *64-bit*)
  4344. case $lt_cv_prog_gnu_ld in
  4345. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  4346. *) LD="${LD-ld} -64" ;;
  4347. esac
  4348. ;;
  4349. esac
  4350. fi
  4351. rm -rf conftest*
  4352. ;;
  4353. esac
  4354. need_locks="$enable_libtool_lock"
  4355. ac_ext=c
  4356. ac_cpp='$CPP $CPPFLAGS'
  4357. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4358. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4359. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4360. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4361. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4362. # On Suns, sometimes $CPP names a directory.
  4363. if test -n "$CPP" && test -d "$CPP"; then
  4364. CPP=
  4365. fi
  4366. if test -z "$CPP"; then
  4367. if test "${ac_cv_prog_CPP+set}" = set; then
  4368. echo $ECHO_N "(cached) $ECHO_C" >&6
  4369. else
  4370. # Double quotes because CPP needs to be expanded
  4371. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4372. do
  4373. ac_preproc_ok=false
  4374. for ac_c_preproc_warn_flag in '' yes
  4375. do
  4376. # Use a header file that comes with gcc, so configuring glibc
  4377. # with a fresh cross-compiler works.
  4378. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4379. # <limits.h> exists even on freestanding compilers.
  4380. # On the NeXT, cc -E runs the code through the compiler's parser,
  4381. # not just through cpp. "Syntax error" is here to catch this case.
  4382. cat >conftest.$ac_ext <<_ACEOF
  4383. /* confdefs.h. */
  4384. _ACEOF
  4385. cat confdefs.h >>conftest.$ac_ext
  4386. cat >>conftest.$ac_ext <<_ACEOF
  4387. /* end confdefs.h. */
  4388. #ifdef __STDC__
  4389. # include <limits.h>
  4390. #else
  4391. # include <assert.h>
  4392. #endif
  4393. Syntax error
  4394. _ACEOF
  4395. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4396. case "(($ac_try" in
  4397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4398. *) ac_try_echo=$ac_try;;
  4399. esac
  4400. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4401. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4402. ac_status=$?
  4403. grep -v '^ *+' conftest.er1 >conftest.err
  4404. rm -f conftest.er1
  4405. cat conftest.err >&5
  4406. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4407. (exit $ac_status); } >/dev/null && {
  4408. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4409. test ! -s conftest.err
  4410. }; then
  4411. :
  4412. else
  4413. echo "$as_me: failed program was:" >&5
  4414. sed 's/^/| /' conftest.$ac_ext >&5
  4415. # Broken: fails on valid input.
  4416. continue
  4417. fi
  4418. rm -f conftest.err conftest.$ac_ext
  4419. # OK, works on sane cases. Now check whether nonexistent headers
  4420. # can be detected and how.
  4421. cat >conftest.$ac_ext <<_ACEOF
  4422. /* confdefs.h. */
  4423. _ACEOF
  4424. cat confdefs.h >>conftest.$ac_ext
  4425. cat >>conftest.$ac_ext <<_ACEOF
  4426. /* end confdefs.h. */
  4427. #include <ac_nonexistent.h>
  4428. _ACEOF
  4429. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4430. case "(($ac_try" in
  4431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4432. *) ac_try_echo=$ac_try;;
  4433. esac
  4434. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4435. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4436. ac_status=$?
  4437. grep -v '^ *+' conftest.er1 >conftest.err
  4438. rm -f conftest.er1
  4439. cat conftest.err >&5
  4440. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4441. (exit $ac_status); } >/dev/null && {
  4442. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4443. test ! -s conftest.err
  4444. }; then
  4445. # Broken: success on invalid input.
  4446. continue
  4447. else
  4448. echo "$as_me: failed program was:" >&5
  4449. sed 's/^/| /' conftest.$ac_ext >&5
  4450. # Passes both tests.
  4451. ac_preproc_ok=:
  4452. break
  4453. fi
  4454. rm -f conftest.err conftest.$ac_ext
  4455. done
  4456. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4457. rm -f conftest.err conftest.$ac_ext
  4458. if $ac_preproc_ok; then
  4459. break
  4460. fi
  4461. done
  4462. ac_cv_prog_CPP=$CPP
  4463. fi
  4464. CPP=$ac_cv_prog_CPP
  4465. else
  4466. ac_cv_prog_CPP=$CPP
  4467. fi
  4468. { echo "$as_me:$LINENO: result: $CPP" >&5
  4469. echo "${ECHO_T}$CPP" >&6; }
  4470. ac_preproc_ok=false
  4471. for ac_c_preproc_warn_flag in '' yes
  4472. do
  4473. # Use a header file that comes with gcc, so configuring glibc
  4474. # with a fresh cross-compiler works.
  4475. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4476. # <limits.h> exists even on freestanding compilers.
  4477. # On the NeXT, cc -E runs the code through the compiler's parser,
  4478. # not just through cpp. "Syntax error" is here to catch this case.
  4479. cat >conftest.$ac_ext <<_ACEOF
  4480. /* confdefs.h. */
  4481. _ACEOF
  4482. cat confdefs.h >>conftest.$ac_ext
  4483. cat >>conftest.$ac_ext <<_ACEOF
  4484. /* end confdefs.h. */
  4485. #ifdef __STDC__
  4486. # include <limits.h>
  4487. #else
  4488. # include <assert.h>
  4489. #endif
  4490. Syntax error
  4491. _ACEOF
  4492. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4493. case "(($ac_try" in
  4494. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4495. *) ac_try_echo=$ac_try;;
  4496. esac
  4497. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4498. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4499. ac_status=$?
  4500. grep -v '^ *+' conftest.er1 >conftest.err
  4501. rm -f conftest.er1
  4502. cat conftest.err >&5
  4503. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4504. (exit $ac_status); } >/dev/null && {
  4505. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4506. test ! -s conftest.err
  4507. }; then
  4508. :
  4509. else
  4510. echo "$as_me: failed program was:" >&5
  4511. sed 's/^/| /' conftest.$ac_ext >&5
  4512. # Broken: fails on valid input.
  4513. continue
  4514. fi
  4515. rm -f conftest.err conftest.$ac_ext
  4516. # OK, works on sane cases. Now check whether nonexistent headers
  4517. # can be detected and how.
  4518. cat >conftest.$ac_ext <<_ACEOF
  4519. /* confdefs.h. */
  4520. _ACEOF
  4521. cat confdefs.h >>conftest.$ac_ext
  4522. cat >>conftest.$ac_ext <<_ACEOF
  4523. /* end confdefs.h. */
  4524. #include <ac_nonexistent.h>
  4525. _ACEOF
  4526. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4527. case "(($ac_try" in
  4528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4529. *) ac_try_echo=$ac_try;;
  4530. esac
  4531. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4532. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4533. ac_status=$?
  4534. grep -v '^ *+' conftest.er1 >conftest.err
  4535. rm -f conftest.er1
  4536. cat conftest.err >&5
  4537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4538. (exit $ac_status); } >/dev/null && {
  4539. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4540. test ! -s conftest.err
  4541. }; then
  4542. # Broken: success on invalid input.
  4543. continue
  4544. else
  4545. echo "$as_me: failed program was:" >&5
  4546. sed 's/^/| /' conftest.$ac_ext >&5
  4547. # Passes both tests.
  4548. ac_preproc_ok=:
  4549. break
  4550. fi
  4551. rm -f conftest.err conftest.$ac_ext
  4552. done
  4553. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4554. rm -f conftest.err conftest.$ac_ext
  4555. if $ac_preproc_ok; then
  4556. :
  4557. else
  4558. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4559. See \`config.log' for more details." >&5
  4560. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4561. See \`config.log' for more details." >&2;}
  4562. { (exit 1); exit 1; }; }
  4563. fi
  4564. ac_ext=c
  4565. ac_cpp='$CPP $CPPFLAGS'
  4566. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4567. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4568. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4569. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4570. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4571. if test "${ac_cv_header_stdc+set}" = set; then
  4572. echo $ECHO_N "(cached) $ECHO_C" >&6
  4573. else
  4574. cat >conftest.$ac_ext <<_ACEOF
  4575. /* confdefs.h. */
  4576. _ACEOF
  4577. cat confdefs.h >>conftest.$ac_ext
  4578. cat >>conftest.$ac_ext <<_ACEOF
  4579. /* end confdefs.h. */
  4580. #include <stdlib.h>
  4581. #include <stdarg.h>
  4582. #include <string.h>
  4583. #include <float.h>
  4584. int
  4585. main ()
  4586. {
  4587. ;
  4588. return 0;
  4589. }
  4590. _ACEOF
  4591. rm -f conftest.$ac_objext
  4592. if { (ac_try="$ac_compile"
  4593. case "(($ac_try" in
  4594. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4595. *) ac_try_echo=$ac_try;;
  4596. esac
  4597. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4598. (eval "$ac_compile") 2>conftest.er1
  4599. ac_status=$?
  4600. grep -v '^ *+' conftest.er1 >conftest.err
  4601. rm -f conftest.er1
  4602. cat conftest.err >&5
  4603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4604. (exit $ac_status); } && {
  4605. test -z "$ac_c_werror_flag" ||
  4606. test ! -s conftest.err
  4607. } && test -s conftest.$ac_objext; then
  4608. ac_cv_header_stdc=yes
  4609. else
  4610. echo "$as_me: failed program was:" >&5
  4611. sed 's/^/| /' conftest.$ac_ext >&5
  4612. ac_cv_header_stdc=no
  4613. fi
  4614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4615. if test $ac_cv_header_stdc = yes; then
  4616. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4617. cat >conftest.$ac_ext <<_ACEOF
  4618. /* confdefs.h. */
  4619. _ACEOF
  4620. cat confdefs.h >>conftest.$ac_ext
  4621. cat >>conftest.$ac_ext <<_ACEOF
  4622. /* end confdefs.h. */
  4623. #include <string.h>
  4624. _ACEOF
  4625. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4626. $EGREP "memchr" >/dev/null 2>&1; then
  4627. :
  4628. else
  4629. ac_cv_header_stdc=no
  4630. fi
  4631. rm -f conftest*
  4632. fi
  4633. if test $ac_cv_header_stdc = yes; then
  4634. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4635. cat >conftest.$ac_ext <<_ACEOF
  4636. /* confdefs.h. */
  4637. _ACEOF
  4638. cat confdefs.h >>conftest.$ac_ext
  4639. cat >>conftest.$ac_ext <<_ACEOF
  4640. /* end confdefs.h. */
  4641. #include <stdlib.h>
  4642. _ACEOF
  4643. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4644. $EGREP "free" >/dev/null 2>&1; then
  4645. :
  4646. else
  4647. ac_cv_header_stdc=no
  4648. fi
  4649. rm -f conftest*
  4650. fi
  4651. if test $ac_cv_header_stdc = yes; then
  4652. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4653. if test "$cross_compiling" = yes; then
  4654. :
  4655. else
  4656. cat >conftest.$ac_ext <<_ACEOF
  4657. /* confdefs.h. */
  4658. _ACEOF
  4659. cat confdefs.h >>conftest.$ac_ext
  4660. cat >>conftest.$ac_ext <<_ACEOF
  4661. /* end confdefs.h. */
  4662. #include <ctype.h>
  4663. #include <stdlib.h>
  4664. #if ((' ' & 0x0FF) == 0x020)
  4665. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4666. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4667. #else
  4668. # define ISLOWER(c) \
  4669. (('a' <= (c) && (c) <= 'i') \
  4670. || ('j' <= (c) && (c) <= 'r') \
  4671. || ('s' <= (c) && (c) <= 'z'))
  4672. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4673. #endif
  4674. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4675. int
  4676. main ()
  4677. {
  4678. int i;
  4679. for (i = 0; i < 256; i++)
  4680. if (XOR (islower (i), ISLOWER (i))
  4681. || toupper (i) != TOUPPER (i))
  4682. return 2;
  4683. return 0;
  4684. }
  4685. _ACEOF
  4686. rm -f conftest$ac_exeext
  4687. if { (ac_try="$ac_link"
  4688. case "(($ac_try" in
  4689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4690. *) ac_try_echo=$ac_try;;
  4691. esac
  4692. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4693. (eval "$ac_link") 2>&5
  4694. ac_status=$?
  4695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4696. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4697. { (case "(($ac_try" in
  4698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4699. *) ac_try_echo=$ac_try;;
  4700. esac
  4701. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4702. (eval "$ac_try") 2>&5
  4703. ac_status=$?
  4704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4705. (exit $ac_status); }; }; then
  4706. :
  4707. else
  4708. echo "$as_me: program exited with status $ac_status" >&5
  4709. echo "$as_me: failed program was:" >&5
  4710. sed 's/^/| /' conftest.$ac_ext >&5
  4711. ( exit $ac_status )
  4712. ac_cv_header_stdc=no
  4713. fi
  4714. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4715. fi
  4716. fi
  4717. fi
  4718. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4719. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4720. if test $ac_cv_header_stdc = yes; then
  4721. cat >>confdefs.h <<\_ACEOF
  4722. #define STDC_HEADERS 1
  4723. _ACEOF
  4724. fi
  4725. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4726. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4727. inttypes.h stdint.h unistd.h
  4728. do
  4729. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4730. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4731. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4732. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4733. echo $ECHO_N "(cached) $ECHO_C" >&6
  4734. else
  4735. cat >conftest.$ac_ext <<_ACEOF
  4736. /* confdefs.h. */
  4737. _ACEOF
  4738. cat confdefs.h >>conftest.$ac_ext
  4739. cat >>conftest.$ac_ext <<_ACEOF
  4740. /* end confdefs.h. */
  4741. $ac_includes_default
  4742. #include <$ac_header>
  4743. _ACEOF
  4744. rm -f conftest.$ac_objext
  4745. if { (ac_try="$ac_compile"
  4746. case "(($ac_try" in
  4747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4748. *) ac_try_echo=$ac_try;;
  4749. esac
  4750. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4751. (eval "$ac_compile") 2>conftest.er1
  4752. ac_status=$?
  4753. grep -v '^ *+' conftest.er1 >conftest.err
  4754. rm -f conftest.er1
  4755. cat conftest.err >&5
  4756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4757. (exit $ac_status); } && {
  4758. test -z "$ac_c_werror_flag" ||
  4759. test ! -s conftest.err
  4760. } && test -s conftest.$ac_objext; then
  4761. eval "$as_ac_Header=yes"
  4762. else
  4763. echo "$as_me: failed program was:" >&5
  4764. sed 's/^/| /' conftest.$ac_ext >&5
  4765. eval "$as_ac_Header=no"
  4766. fi
  4767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4768. fi
  4769. ac_res=`eval echo '${'$as_ac_Header'}'`
  4770. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4771. echo "${ECHO_T}$ac_res" >&6; }
  4772. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4773. cat >>confdefs.h <<_ACEOF
  4774. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4775. _ACEOF
  4776. fi
  4777. done
  4778. for ac_header in dlfcn.h
  4779. do
  4780. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4781. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4782. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4783. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4784. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4785. echo $ECHO_N "(cached) $ECHO_C" >&6
  4786. fi
  4787. ac_res=`eval echo '${'$as_ac_Header'}'`
  4788. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4789. echo "${ECHO_T}$ac_res" >&6; }
  4790. else
  4791. # Is the header compilable?
  4792. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4793. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4794. cat >conftest.$ac_ext <<_ACEOF
  4795. /* confdefs.h. */
  4796. _ACEOF
  4797. cat confdefs.h >>conftest.$ac_ext
  4798. cat >>conftest.$ac_ext <<_ACEOF
  4799. /* end confdefs.h. */
  4800. $ac_includes_default
  4801. #include <$ac_header>
  4802. _ACEOF
  4803. rm -f conftest.$ac_objext
  4804. if { (ac_try="$ac_compile"
  4805. case "(($ac_try" in
  4806. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4807. *) ac_try_echo=$ac_try;;
  4808. esac
  4809. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4810. (eval "$ac_compile") 2>conftest.er1
  4811. ac_status=$?
  4812. grep -v '^ *+' conftest.er1 >conftest.err
  4813. rm -f conftest.er1
  4814. cat conftest.err >&5
  4815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4816. (exit $ac_status); } && {
  4817. test -z "$ac_c_werror_flag" ||
  4818. test ! -s conftest.err
  4819. } && test -s conftest.$ac_objext; then
  4820. ac_header_compiler=yes
  4821. else
  4822. echo "$as_me: failed program was:" >&5
  4823. sed 's/^/| /' conftest.$ac_ext >&5
  4824. ac_header_compiler=no
  4825. fi
  4826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4827. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4828. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4829. # Is the header present?
  4830. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4831. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4832. cat >conftest.$ac_ext <<_ACEOF
  4833. /* confdefs.h. */
  4834. _ACEOF
  4835. cat confdefs.h >>conftest.$ac_ext
  4836. cat >>conftest.$ac_ext <<_ACEOF
  4837. /* end confdefs.h. */
  4838. #include <$ac_header>
  4839. _ACEOF
  4840. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4841. case "(($ac_try" in
  4842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4843. *) ac_try_echo=$ac_try;;
  4844. esac
  4845. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4846. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4847. ac_status=$?
  4848. grep -v '^ *+' conftest.er1 >conftest.err
  4849. rm -f conftest.er1
  4850. cat conftest.err >&5
  4851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4852. (exit $ac_status); } >/dev/null && {
  4853. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4854. test ! -s conftest.err
  4855. }; then
  4856. ac_header_preproc=yes
  4857. else
  4858. echo "$as_me: failed program was:" >&5
  4859. sed 's/^/| /' conftest.$ac_ext >&5
  4860. ac_header_preproc=no
  4861. fi
  4862. rm -f conftest.err conftest.$ac_ext
  4863. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4864. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4865. # So? What about this header?
  4866. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4867. yes:no: )
  4868. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4869. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4870. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4871. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4872. ac_header_preproc=yes
  4873. ;;
  4874. no:yes:* )
  4875. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4876. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4877. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4878. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4879. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4880. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4881. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4882. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4883. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4884. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4885. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4886. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4887. ( cat <<\_ASBOX
  4888. ## ------------------------------------------- ##
  4889. ## Report this to http://gcc.gnu.org/bugs.html ##
  4890. ## ------------------------------------------- ##
  4891. _ASBOX
  4892. ) | sed "s/^/$as_me: WARNING: /" >&2
  4893. ;;
  4894. esac
  4895. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4896. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4897. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4898. echo $ECHO_N "(cached) $ECHO_C" >&6
  4899. else
  4900. eval "$as_ac_Header=\$ac_header_preproc"
  4901. fi
  4902. ac_res=`eval echo '${'$as_ac_Header'}'`
  4903. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4904. echo "${ECHO_T}$ac_res" >&6; }
  4905. fi
  4906. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4907. cat >>confdefs.h <<_ACEOF
  4908. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4909. _ACEOF
  4910. fi
  4911. done
  4912. ac_ext=cpp
  4913. ac_cpp='$CXXCPP $CPPFLAGS'
  4914. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4915. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4916. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4917. if test -z "$CXX"; then
  4918. if test -n "$CCC"; then
  4919. CXX=$CCC
  4920. else
  4921. if test -n "$ac_tool_prefix"; then
  4922. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4923. do
  4924. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4925. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4926. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4927. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4928. if test "${ac_cv_prog_CXX+set}" = set; then
  4929. echo $ECHO_N "(cached) $ECHO_C" >&6
  4930. else
  4931. if test -n "$CXX"; then
  4932. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4933. else
  4934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4935. for as_dir in $PATH
  4936. do
  4937. IFS=$as_save_IFS
  4938. test -z "$as_dir" && as_dir=.
  4939. for ac_exec_ext in '' $ac_executable_extensions; do
  4940. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4941. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4942. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4943. break 2
  4944. fi
  4945. done
  4946. done
  4947. IFS=$as_save_IFS
  4948. fi
  4949. fi
  4950. CXX=$ac_cv_prog_CXX
  4951. if test -n "$CXX"; then
  4952. { echo "$as_me:$LINENO: result: $CXX" >&5
  4953. echo "${ECHO_T}$CXX" >&6; }
  4954. else
  4955. { echo "$as_me:$LINENO: result: no" >&5
  4956. echo "${ECHO_T}no" >&6; }
  4957. fi
  4958. test -n "$CXX" && break
  4959. done
  4960. fi
  4961. if test -z "$CXX"; then
  4962. ac_ct_CXX=$CXX
  4963. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4964. do
  4965. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4966. set dummy $ac_prog; ac_word=$2
  4967. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4968. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4969. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  4970. echo $ECHO_N "(cached) $ECHO_C" >&6
  4971. else
  4972. if test -n "$ac_ct_CXX"; then
  4973. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4974. else
  4975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4976. for as_dir in $PATH
  4977. do
  4978. IFS=$as_save_IFS
  4979. test -z "$as_dir" && as_dir=.
  4980. for ac_exec_ext in '' $ac_executable_extensions; do
  4981. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4982. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4983. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4984. break 2
  4985. fi
  4986. done
  4987. done
  4988. IFS=$as_save_IFS
  4989. fi
  4990. fi
  4991. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4992. if test -n "$ac_ct_CXX"; then
  4993. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  4994. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  4995. else
  4996. { echo "$as_me:$LINENO: result: no" >&5
  4997. echo "${ECHO_T}no" >&6; }
  4998. fi
  4999. test -n "$ac_ct_CXX" && break
  5000. done
  5001. if test "x$ac_ct_CXX" = x; then
  5002. CXX="g++"
  5003. else
  5004. case $cross_compiling:$ac_tool_warned in
  5005. yes:)
  5006. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5007. whose name does not start with the host triplet. If you think this
  5008. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5009. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5010. whose name does not start with the host triplet. If you think this
  5011. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5012. ac_tool_warned=yes ;;
  5013. esac
  5014. CXX=$ac_ct_CXX
  5015. fi
  5016. fi
  5017. fi
  5018. fi
  5019. # Provide some information about the compiler.
  5020. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  5021. ac_compiler=`set X $ac_compile; echo $2`
  5022. { (ac_try="$ac_compiler --version >&5"
  5023. case "(($ac_try" in
  5024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5025. *) ac_try_echo=$ac_try;;
  5026. esac
  5027. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5028. (eval "$ac_compiler --version >&5") 2>&5
  5029. ac_status=$?
  5030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5031. (exit $ac_status); }
  5032. { (ac_try="$ac_compiler -v >&5"
  5033. case "(($ac_try" in
  5034. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5035. *) ac_try_echo=$ac_try;;
  5036. esac
  5037. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5038. (eval "$ac_compiler -v >&5") 2>&5
  5039. ac_status=$?
  5040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5041. (exit $ac_status); }
  5042. { (ac_try="$ac_compiler -V >&5"
  5043. case "(($ac_try" in
  5044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5045. *) ac_try_echo=$ac_try;;
  5046. esac
  5047. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5048. (eval "$ac_compiler -V >&5") 2>&5
  5049. ac_status=$?
  5050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5051. (exit $ac_status); }
  5052. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  5053. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  5054. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  5055. echo $ECHO_N "(cached) $ECHO_C" >&6
  5056. else
  5057. cat >conftest.$ac_ext <<_ACEOF
  5058. /* confdefs.h. */
  5059. _ACEOF
  5060. cat confdefs.h >>conftest.$ac_ext
  5061. cat >>conftest.$ac_ext <<_ACEOF
  5062. /* end confdefs.h. */
  5063. int
  5064. main ()
  5065. {
  5066. #ifndef __GNUC__
  5067. choke me
  5068. #endif
  5069. ;
  5070. return 0;
  5071. }
  5072. _ACEOF
  5073. rm -f conftest.$ac_objext
  5074. if { (ac_try="$ac_compile"
  5075. case "(($ac_try" in
  5076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5077. *) ac_try_echo=$ac_try;;
  5078. esac
  5079. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5080. (eval "$ac_compile") 2>conftest.er1
  5081. ac_status=$?
  5082. grep -v '^ *+' conftest.er1 >conftest.err
  5083. rm -f conftest.er1
  5084. cat conftest.err >&5
  5085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5086. (exit $ac_status); } && {
  5087. test -z "$ac_cxx_werror_flag" ||
  5088. test ! -s conftest.err
  5089. } && test -s conftest.$ac_objext; then
  5090. ac_compiler_gnu=yes
  5091. else
  5092. echo "$as_me: failed program was:" >&5
  5093. sed 's/^/| /' conftest.$ac_ext >&5
  5094. ac_compiler_gnu=no
  5095. fi
  5096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5097. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  5098. fi
  5099. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  5100. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  5101. GXX=`test $ac_compiler_gnu = yes && echo yes`
  5102. ac_test_CXXFLAGS=${CXXFLAGS+set}
  5103. ac_save_CXXFLAGS=$CXXFLAGS
  5104. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  5105. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  5106. if test "${ac_cv_prog_cxx_g+set}" = set; then
  5107. echo $ECHO_N "(cached) $ECHO_C" >&6
  5108. else
  5109. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  5110. ac_cxx_werror_flag=yes
  5111. ac_cv_prog_cxx_g=no
  5112. CXXFLAGS="-g"
  5113. cat >conftest.$ac_ext <<_ACEOF
  5114. /* confdefs.h. */
  5115. _ACEOF
  5116. cat confdefs.h >>conftest.$ac_ext
  5117. cat >>conftest.$ac_ext <<_ACEOF
  5118. /* end confdefs.h. */
  5119. int
  5120. main ()
  5121. {
  5122. ;
  5123. return 0;
  5124. }
  5125. _ACEOF
  5126. rm -f conftest.$ac_objext
  5127. if { (ac_try="$ac_compile"
  5128. case "(($ac_try" in
  5129. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5130. *) ac_try_echo=$ac_try;;
  5131. esac
  5132. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5133. (eval "$ac_compile") 2>conftest.er1
  5134. ac_status=$?
  5135. grep -v '^ *+' conftest.er1 >conftest.err
  5136. rm -f conftest.er1
  5137. cat conftest.err >&5
  5138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5139. (exit $ac_status); } && {
  5140. test -z "$ac_cxx_werror_flag" ||
  5141. test ! -s conftest.err
  5142. } && test -s conftest.$ac_objext; then
  5143. ac_cv_prog_cxx_g=yes
  5144. else
  5145. echo "$as_me: failed program was:" >&5
  5146. sed 's/^/| /' conftest.$ac_ext >&5
  5147. CXXFLAGS=""
  5148. cat >conftest.$ac_ext <<_ACEOF
  5149. /* confdefs.h. */
  5150. _ACEOF
  5151. cat confdefs.h >>conftest.$ac_ext
  5152. cat >>conftest.$ac_ext <<_ACEOF
  5153. /* end confdefs.h. */
  5154. int
  5155. main ()
  5156. {
  5157. ;
  5158. return 0;
  5159. }
  5160. _ACEOF
  5161. rm -f conftest.$ac_objext
  5162. if { (ac_try="$ac_compile"
  5163. case "(($ac_try" in
  5164. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5165. *) ac_try_echo=$ac_try;;
  5166. esac
  5167. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5168. (eval "$ac_compile") 2>conftest.er1
  5169. ac_status=$?
  5170. grep -v '^ *+' conftest.er1 >conftest.err
  5171. rm -f conftest.er1
  5172. cat conftest.err >&5
  5173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5174. (exit $ac_status); } && {
  5175. test -z "$ac_cxx_werror_flag" ||
  5176. test ! -s conftest.err
  5177. } && test -s conftest.$ac_objext; then
  5178. :
  5179. else
  5180. echo "$as_me: failed program was:" >&5
  5181. sed 's/^/| /' conftest.$ac_ext >&5
  5182. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5183. CXXFLAGS="-g"
  5184. cat >conftest.$ac_ext <<_ACEOF
  5185. /* confdefs.h. */
  5186. _ACEOF
  5187. cat confdefs.h >>conftest.$ac_ext
  5188. cat >>conftest.$ac_ext <<_ACEOF
  5189. /* end confdefs.h. */
  5190. int
  5191. main ()
  5192. {
  5193. ;
  5194. return 0;
  5195. }
  5196. _ACEOF
  5197. rm -f conftest.$ac_objext
  5198. if { (ac_try="$ac_compile"
  5199. case "(($ac_try" in
  5200. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5201. *) ac_try_echo=$ac_try;;
  5202. esac
  5203. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5204. (eval "$ac_compile") 2>conftest.er1
  5205. ac_status=$?
  5206. grep -v '^ *+' conftest.er1 >conftest.err
  5207. rm -f conftest.er1
  5208. cat conftest.err >&5
  5209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5210. (exit $ac_status); } && {
  5211. test -z "$ac_cxx_werror_flag" ||
  5212. test ! -s conftest.err
  5213. } && test -s conftest.$ac_objext; then
  5214. ac_cv_prog_cxx_g=yes
  5215. else
  5216. echo "$as_me: failed program was:" >&5
  5217. sed 's/^/| /' conftest.$ac_ext >&5
  5218. fi
  5219. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5220. fi
  5221. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5222. fi
  5223. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5224. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  5225. fi
  5226. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  5227. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  5228. if test "$ac_test_CXXFLAGS" = set; then
  5229. CXXFLAGS=$ac_save_CXXFLAGS
  5230. elif test $ac_cv_prog_cxx_g = yes; then
  5231. if test "$GXX" = yes; then
  5232. CXXFLAGS="-g -O2"
  5233. else
  5234. CXXFLAGS="-g"
  5235. fi
  5236. else
  5237. if test "$GXX" = yes; then
  5238. CXXFLAGS="-O2"
  5239. else
  5240. CXXFLAGS=
  5241. fi
  5242. fi
  5243. ac_ext=cpp
  5244. ac_cpp='$CXXCPP $CPPFLAGS'
  5245. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5246. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5247. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5248. depcc="$CXX" am_compiler_list=
  5249. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  5250. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  5251. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  5252. echo $ECHO_N "(cached) $ECHO_C" >&6
  5253. else
  5254. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5255. # We make a subdir and do the tests there. Otherwise we can end up
  5256. # making bogus files that we don't know about and never remove. For
  5257. # instance it was reported that on HP-UX the gcc test will end up
  5258. # making a dummy file named `D' -- because `-MD' means `put the output
  5259. # in D'.
  5260. mkdir conftest.dir
  5261. # Copy depcomp to subdir because otherwise we won't find it if we're
  5262. # using a relative directory.
  5263. cp "$am_depcomp" conftest.dir
  5264. cd conftest.dir
  5265. # We will build objects and dependencies in a subdirectory because
  5266. # it helps to detect inapplicable dependency modes. For instance
  5267. # both Tru64's cc and ICC support -MD to output dependencies as a
  5268. # side effect of compilation, but ICC will put the dependencies in
  5269. # the current directory while Tru64 will put them in the object
  5270. # directory.
  5271. mkdir sub
  5272. am_cv_CXX_dependencies_compiler_type=none
  5273. if test "$am_compiler_list" = ""; then
  5274. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  5275. fi
  5276. for depmode in $am_compiler_list; do
  5277. # Setup a source with many dependencies, because some compilers
  5278. # like to wrap large dependency lists on column 80 (with \), and
  5279. # we should not choose a depcomp mode which is confused by this.
  5280. #
  5281. # We need to recreate these files for each test, as the compiler may
  5282. # overwrite some of them when testing with obscure command lines.
  5283. # This happens at least with the AIX C compiler.
  5284. : > sub/conftest.c
  5285. for i in 1 2 3 4 5 6; do
  5286. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5287. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5288. # Solaris 8's {/usr,}/bin/sh.
  5289. touch sub/conftst$i.h
  5290. done
  5291. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5292. case $depmode in
  5293. nosideeffect)
  5294. # after this tag, mechanisms are not by side-effect, so they'll
  5295. # only be used when explicitly requested
  5296. if test "x$enable_dependency_tracking" = xyes; then
  5297. continue
  5298. else
  5299. break
  5300. fi
  5301. ;;
  5302. none) break ;;
  5303. esac
  5304. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5305. # mode. It turns out that the SunPro C++ compiler does not properly
  5306. # handle `-M -o', and we need to detect this.
  5307. if depmode=$depmode \
  5308. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5309. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5310. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5311. >/dev/null 2>conftest.err &&
  5312. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  5313. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5314. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5315. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5316. # icc doesn't choke on unknown options, it will just issue warnings
  5317. # or remarks (even with -Werror). So we grep stderr for any message
  5318. # that says an option was ignored or not supported.
  5319. # When given -MP, icc 7.0 and 7.1 complain thusly:
  5320. # icc: Command line warning: ignoring option '-M'; no argument required
  5321. # The diagnosis changed in icc 8.0:
  5322. # icc: Command line remark: option '-MP' not supported
  5323. if (grep 'ignoring option' conftest.err ||
  5324. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5325. am_cv_CXX_dependencies_compiler_type=$depmode
  5326. break
  5327. fi
  5328. fi
  5329. done
  5330. cd ..
  5331. rm -rf conftest.dir
  5332. else
  5333. am_cv_CXX_dependencies_compiler_type=none
  5334. fi
  5335. fi
  5336. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  5337. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  5338. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  5339. if
  5340. test "x$enable_dependency_tracking" != xno \
  5341. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  5342. am__fastdepCXX_TRUE=
  5343. am__fastdepCXX_FALSE='#'
  5344. else
  5345. am__fastdepCXX_TRUE='#'
  5346. am__fastdepCXX_FALSE=
  5347. fi
  5348. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5349. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5350. (test "X$CXX" != "Xg++"))) ; then
  5351. ac_ext=cpp
  5352. ac_cpp='$CXXCPP $CPPFLAGS'
  5353. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5354. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5355. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5356. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5357. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  5358. if test -z "$CXXCPP"; then
  5359. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5360. echo $ECHO_N "(cached) $ECHO_C" >&6
  5361. else
  5362. # Double quotes because CXXCPP needs to be expanded
  5363. for CXXCPP in "$CXX -E" "/lib/cpp"
  5364. do
  5365. ac_preproc_ok=false
  5366. for ac_cxx_preproc_warn_flag in '' yes
  5367. do
  5368. # Use a header file that comes with gcc, so configuring glibc
  5369. # with a fresh cross-compiler works.
  5370. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5371. # <limits.h> exists even on freestanding compilers.
  5372. # On the NeXT, cc -E runs the code through the compiler's parser,
  5373. # not just through cpp. "Syntax error" is here to catch this case.
  5374. cat >conftest.$ac_ext <<_ACEOF
  5375. /* confdefs.h. */
  5376. _ACEOF
  5377. cat confdefs.h >>conftest.$ac_ext
  5378. cat >>conftest.$ac_ext <<_ACEOF
  5379. /* end confdefs.h. */
  5380. #ifdef __STDC__
  5381. # include <limits.h>
  5382. #else
  5383. # include <assert.h>
  5384. #endif
  5385. Syntax error
  5386. _ACEOF
  5387. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5388. case "(($ac_try" in
  5389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5390. *) ac_try_echo=$ac_try;;
  5391. esac
  5392. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5393. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5394. ac_status=$?
  5395. grep -v '^ *+' conftest.er1 >conftest.err
  5396. rm -f conftest.er1
  5397. cat conftest.err >&5
  5398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5399. (exit $ac_status); } >/dev/null && {
  5400. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5401. test ! -s conftest.err
  5402. }; then
  5403. :
  5404. else
  5405. echo "$as_me: failed program was:" >&5
  5406. sed 's/^/| /' conftest.$ac_ext >&5
  5407. # Broken: fails on valid input.
  5408. continue
  5409. fi
  5410. rm -f conftest.err conftest.$ac_ext
  5411. # OK, works on sane cases. Now check whether nonexistent headers
  5412. # can be detected and how.
  5413. cat >conftest.$ac_ext <<_ACEOF
  5414. /* confdefs.h. */
  5415. _ACEOF
  5416. cat confdefs.h >>conftest.$ac_ext
  5417. cat >>conftest.$ac_ext <<_ACEOF
  5418. /* end confdefs.h. */
  5419. #include <ac_nonexistent.h>
  5420. _ACEOF
  5421. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5422. case "(($ac_try" in
  5423. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5424. *) ac_try_echo=$ac_try;;
  5425. esac
  5426. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5427. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5428. ac_status=$?
  5429. grep -v '^ *+' conftest.er1 >conftest.err
  5430. rm -f conftest.er1
  5431. cat conftest.err >&5
  5432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5433. (exit $ac_status); } >/dev/null && {
  5434. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5435. test ! -s conftest.err
  5436. }; then
  5437. # Broken: success on invalid input.
  5438. continue
  5439. else
  5440. echo "$as_me: failed program was:" >&5
  5441. sed 's/^/| /' conftest.$ac_ext >&5
  5442. # Passes both tests.
  5443. ac_preproc_ok=:
  5444. break
  5445. fi
  5446. rm -f conftest.err conftest.$ac_ext
  5447. done
  5448. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5449. rm -f conftest.err conftest.$ac_ext
  5450. if $ac_preproc_ok; then
  5451. break
  5452. fi
  5453. done
  5454. ac_cv_prog_CXXCPP=$CXXCPP
  5455. fi
  5456. CXXCPP=$ac_cv_prog_CXXCPP
  5457. else
  5458. ac_cv_prog_CXXCPP=$CXXCPP
  5459. fi
  5460. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5461. echo "${ECHO_T}$CXXCPP" >&6; }
  5462. ac_preproc_ok=false
  5463. for ac_cxx_preproc_warn_flag in '' yes
  5464. do
  5465. # Use a header file that comes with gcc, so configuring glibc
  5466. # with a fresh cross-compiler works.
  5467. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5468. # <limits.h> exists even on freestanding compilers.
  5469. # On the NeXT, cc -E runs the code through the compiler's parser,
  5470. # not just through cpp. "Syntax error" is here to catch this case.
  5471. cat >conftest.$ac_ext <<_ACEOF
  5472. /* confdefs.h. */
  5473. _ACEOF
  5474. cat confdefs.h >>conftest.$ac_ext
  5475. cat >>conftest.$ac_ext <<_ACEOF
  5476. /* end confdefs.h. */
  5477. #ifdef __STDC__
  5478. # include <limits.h>
  5479. #else
  5480. # include <assert.h>
  5481. #endif
  5482. Syntax error
  5483. _ACEOF
  5484. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5485. case "(($ac_try" in
  5486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5487. *) ac_try_echo=$ac_try;;
  5488. esac
  5489. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5490. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5491. ac_status=$?
  5492. grep -v '^ *+' conftest.er1 >conftest.err
  5493. rm -f conftest.er1
  5494. cat conftest.err >&5
  5495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5496. (exit $ac_status); } >/dev/null && {
  5497. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5498. test ! -s conftest.err
  5499. }; then
  5500. :
  5501. else
  5502. echo "$as_me: failed program was:" >&5
  5503. sed 's/^/| /' conftest.$ac_ext >&5
  5504. # Broken: fails on valid input.
  5505. continue
  5506. fi
  5507. rm -f conftest.err conftest.$ac_ext
  5508. # OK, works on sane cases. Now check whether nonexistent headers
  5509. # can be detected and how.
  5510. cat >conftest.$ac_ext <<_ACEOF
  5511. /* confdefs.h. */
  5512. _ACEOF
  5513. cat confdefs.h >>conftest.$ac_ext
  5514. cat >>conftest.$ac_ext <<_ACEOF
  5515. /* end confdefs.h. */
  5516. #include <ac_nonexistent.h>
  5517. _ACEOF
  5518. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5519. case "(($ac_try" in
  5520. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5521. *) ac_try_echo=$ac_try;;
  5522. esac
  5523. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5524. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5525. ac_status=$?
  5526. grep -v '^ *+' conftest.er1 >conftest.err
  5527. rm -f conftest.er1
  5528. cat conftest.err >&5
  5529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5530. (exit $ac_status); } >/dev/null && {
  5531. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5532. test ! -s conftest.err
  5533. }; then
  5534. # Broken: success on invalid input.
  5535. continue
  5536. else
  5537. echo "$as_me: failed program was:" >&5
  5538. sed 's/^/| /' conftest.$ac_ext >&5
  5539. # Passes both tests.
  5540. ac_preproc_ok=:
  5541. break
  5542. fi
  5543. rm -f conftest.err conftest.$ac_ext
  5544. done
  5545. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5546. rm -f conftest.err conftest.$ac_ext
  5547. if $ac_preproc_ok; then
  5548. :
  5549. else
  5550. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5551. See \`config.log' for more details." >&5
  5552. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5553. See \`config.log' for more details." >&2;}
  5554. { (exit 1); exit 1; }; }
  5555. fi
  5556. ac_ext=cpp
  5557. ac_cpp='$CXXCPP $CPPFLAGS'
  5558. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5559. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5560. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5561. fi
  5562. ac_ext=f
  5563. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  5564. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5565. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  5566. if test -n "$ac_tool_prefix"; then
  5567. for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  5568. do
  5569. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5570. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5571. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5572. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5573. if test "${ac_cv_prog_F77+set}" = set; then
  5574. echo $ECHO_N "(cached) $ECHO_C" >&6
  5575. else
  5576. if test -n "$F77"; then
  5577. ac_cv_prog_F77="$F77" # Let the user override the test.
  5578. else
  5579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5580. for as_dir in $PATH
  5581. do
  5582. IFS=$as_save_IFS
  5583. test -z "$as_dir" && as_dir=.
  5584. for ac_exec_ext in '' $ac_executable_extensions; do
  5585. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5586. ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  5587. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5588. break 2
  5589. fi
  5590. done
  5591. done
  5592. IFS=$as_save_IFS
  5593. fi
  5594. fi
  5595. F77=$ac_cv_prog_F77
  5596. if test -n "$F77"; then
  5597. { echo "$as_me:$LINENO: result: $F77" >&5
  5598. echo "${ECHO_T}$F77" >&6; }
  5599. else
  5600. { echo "$as_me:$LINENO: result: no" >&5
  5601. echo "${ECHO_T}no" >&6; }
  5602. fi
  5603. test -n "$F77" && break
  5604. done
  5605. fi
  5606. if test -z "$F77"; then
  5607. ac_ct_F77=$F77
  5608. for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
  5609. do
  5610. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5611. set dummy $ac_prog; ac_word=$2
  5612. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5613. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5614. if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  5615. echo $ECHO_N "(cached) $ECHO_C" >&6
  5616. else
  5617. if test -n "$ac_ct_F77"; then
  5618. ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  5619. else
  5620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5621. for as_dir in $PATH
  5622. do
  5623. IFS=$as_save_IFS
  5624. test -z "$as_dir" && as_dir=.
  5625. for ac_exec_ext in '' $ac_executable_extensions; do
  5626. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5627. ac_cv_prog_ac_ct_F77="$ac_prog"
  5628. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5629. break 2
  5630. fi
  5631. done
  5632. done
  5633. IFS=$as_save_IFS
  5634. fi
  5635. fi
  5636. ac_ct_F77=$ac_cv_prog_ac_ct_F77
  5637. if test -n "$ac_ct_F77"; then
  5638. { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  5639. echo "${ECHO_T}$ac_ct_F77" >&6; }
  5640. else
  5641. { echo "$as_me:$LINENO: result: no" >&5
  5642. echo "${ECHO_T}no" >&6; }
  5643. fi
  5644. test -n "$ac_ct_F77" && break
  5645. done
  5646. if test "x$ac_ct_F77" = x; then
  5647. F77=""
  5648. else
  5649. case $cross_compiling:$ac_tool_warned in
  5650. yes:)
  5651. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  5652. whose name does not start with the host triplet. If you think this
  5653. configuration is useful to you, please write to autoconf@gnu.org." >&5
  5654. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  5655. whose name does not start with the host triplet. If you think this
  5656. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  5657. ac_tool_warned=yes ;;
  5658. esac
  5659. F77=$ac_ct_F77
  5660. fi
  5661. fi
  5662. # Provide some information about the compiler.
  5663. echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
  5664. ac_compiler=`set X $ac_compile; echo $2`
  5665. { (ac_try="$ac_compiler --version >&5"
  5666. case "(($ac_try" in
  5667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5668. *) ac_try_echo=$ac_try;;
  5669. esac
  5670. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5671. (eval "$ac_compiler --version >&5") 2>&5
  5672. ac_status=$?
  5673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5674. (exit $ac_status); }
  5675. { (ac_try="$ac_compiler -v >&5"
  5676. case "(($ac_try" in
  5677. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5678. *) ac_try_echo=$ac_try;;
  5679. esac
  5680. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5681. (eval "$ac_compiler -v >&5") 2>&5
  5682. ac_status=$?
  5683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5684. (exit $ac_status); }
  5685. { (ac_try="$ac_compiler -V >&5"
  5686. case "(($ac_try" in
  5687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5688. *) ac_try_echo=$ac_try;;
  5689. esac
  5690. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5691. (eval "$ac_compiler -V >&5") 2>&5
  5692. ac_status=$?
  5693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5694. (exit $ac_status); }
  5695. rm -f a.out
  5696. # If we don't use `.F' as extension, the preprocessor is not run on the
  5697. # input file. (Note that this only needs to work for GNU compilers.)
  5698. ac_save_ext=$ac_ext
  5699. ac_ext=F
  5700. { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  5701. echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
  5702. if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  5703. echo $ECHO_N "(cached) $ECHO_C" >&6
  5704. else
  5705. cat >conftest.$ac_ext <<_ACEOF
  5706. program main
  5707. #ifndef __GNUC__
  5708. choke me
  5709. #endif
  5710. end
  5711. _ACEOF
  5712. rm -f conftest.$ac_objext
  5713. if { (ac_try="$ac_compile"
  5714. case "(($ac_try" in
  5715. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5716. *) ac_try_echo=$ac_try;;
  5717. esac
  5718. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5719. (eval "$ac_compile") 2>conftest.er1
  5720. ac_status=$?
  5721. grep -v '^ *+' conftest.er1 >conftest.err
  5722. rm -f conftest.er1
  5723. cat conftest.err >&5
  5724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5725. (exit $ac_status); } && {
  5726. test -z "$ac_f77_werror_flag" ||
  5727. test ! -s conftest.err
  5728. } && test -s conftest.$ac_objext; then
  5729. ac_compiler_gnu=yes
  5730. else
  5731. echo "$as_me: failed program was:" >&5
  5732. sed 's/^/| /' conftest.$ac_ext >&5
  5733. ac_compiler_gnu=no
  5734. fi
  5735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5736. ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  5737. fi
  5738. { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  5739. echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
  5740. ac_ext=$ac_save_ext
  5741. ac_test_FFLAGS=${FFLAGS+set}
  5742. ac_save_FFLAGS=$FFLAGS
  5743. FFLAGS=
  5744. { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  5745. echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
  5746. if test "${ac_cv_prog_f77_g+set}" = set; then
  5747. echo $ECHO_N "(cached) $ECHO_C" >&6
  5748. else
  5749. FFLAGS=-g
  5750. cat >conftest.$ac_ext <<_ACEOF
  5751. program main
  5752. end
  5753. _ACEOF
  5754. rm -f conftest.$ac_objext
  5755. if { (ac_try="$ac_compile"
  5756. case "(($ac_try" in
  5757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5758. *) ac_try_echo=$ac_try;;
  5759. esac
  5760. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5761. (eval "$ac_compile") 2>conftest.er1
  5762. ac_status=$?
  5763. grep -v '^ *+' conftest.er1 >conftest.err
  5764. rm -f conftest.er1
  5765. cat conftest.err >&5
  5766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5767. (exit $ac_status); } && {
  5768. test -z "$ac_f77_werror_flag" ||
  5769. test ! -s conftest.err
  5770. } && test -s conftest.$ac_objext; then
  5771. ac_cv_prog_f77_g=yes
  5772. else
  5773. echo "$as_me: failed program was:" >&5
  5774. sed 's/^/| /' conftest.$ac_ext >&5
  5775. ac_cv_prog_f77_g=no
  5776. fi
  5777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5778. fi
  5779. { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  5780. echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
  5781. if test "$ac_test_FFLAGS" = set; then
  5782. FFLAGS=$ac_save_FFLAGS
  5783. elif test $ac_cv_prog_f77_g = yes; then
  5784. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5785. FFLAGS="-g -O2"
  5786. else
  5787. FFLAGS="-g"
  5788. fi
  5789. else
  5790. if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  5791. FFLAGS="-O2"
  5792. else
  5793. FFLAGS=
  5794. fi
  5795. fi
  5796. G77=`test $ac_compiler_gnu = yes && echo yes`
  5797. ac_ext=c
  5798. ac_cpp='$CPP $CPPFLAGS'
  5799. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5800. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5801. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5802. # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  5803. # find the maximum length of command line arguments
  5804. { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  5805. echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
  5806. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  5807. echo $ECHO_N "(cached) $ECHO_C" >&6
  5808. else
  5809. i=0
  5810. teststring="ABCD"
  5811. case $build_os in
  5812. msdosdjgpp*)
  5813. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5814. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5815. # during glob expansion). Even if it were fixed, the result of this
  5816. # check would be larger than it should be.
  5817. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5818. ;;
  5819. gnu*)
  5820. # Under GNU Hurd, this test is not required because there is
  5821. # no limit to the length of command line arguments.
  5822. # Libtool will interpret -1 as no limit whatsoever
  5823. lt_cv_sys_max_cmd_len=-1;
  5824. ;;
  5825. cygwin* | mingw*)
  5826. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5827. # about 5 minutes as the teststring grows exponentially.
  5828. # Worse, since 9x/ME are not pre-emptively multitasking,
  5829. # you end up with a "frozen" computer, even though with patience
  5830. # the test eventually succeeds (with a max line length of 256k).
  5831. # Instead, let's just punt: use the minimum linelength reported by
  5832. # all of the supported platforms: 8192 (on NT/2K/XP).
  5833. lt_cv_sys_max_cmd_len=8192;
  5834. ;;
  5835. amigaos*)
  5836. # On AmigaOS with pdksh, this test takes hours, literally.
  5837. # So we just punt and use a minimum line length of 8192.
  5838. lt_cv_sys_max_cmd_len=8192;
  5839. ;;
  5840. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5841. # This has been around since 386BSD, at least. Likely further.
  5842. if test -x /sbin/sysctl; then
  5843. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5844. elif test -x /usr/sbin/sysctl; then
  5845. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5846. else
  5847. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5848. fi
  5849. # And add a safety zone
  5850. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5851. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5852. ;;
  5853. interix*)
  5854. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5855. lt_cv_sys_max_cmd_len=196608
  5856. ;;
  5857. osf*)
  5858. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5859. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5860. # nice to cause kernel panics so lets avoid the loop below.
  5861. # First set a reasonable default.
  5862. lt_cv_sys_max_cmd_len=16384
  5863. #
  5864. if test -x /sbin/sysconfig; then
  5865. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5866. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5867. esac
  5868. fi
  5869. ;;
  5870. sco3.2v5*)
  5871. lt_cv_sys_max_cmd_len=102400
  5872. ;;
  5873. sysv5* | sco5v6* | sysv4.2uw2*)
  5874. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5875. if test -n "$kargmax"; then
  5876. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5877. else
  5878. lt_cv_sys_max_cmd_len=32768
  5879. fi
  5880. ;;
  5881. *)
  5882. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5883. if test -n "$lt_cv_sys_max_cmd_len"; then
  5884. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5885. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5886. else
  5887. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5888. while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  5889. = "XX$teststring") >/dev/null 2>&1 &&
  5890. new_result=`expr "X$teststring" : ".*" 2>&1` &&
  5891. lt_cv_sys_max_cmd_len=$new_result &&
  5892. test $i != 17 # 1/2 MB should be enough
  5893. do
  5894. i=`expr $i + 1`
  5895. teststring=$teststring$teststring
  5896. done
  5897. teststring=
  5898. # Add a significant safety factor because C++ compilers can tack on massive
  5899. # amounts of additional arguments before passing them to the linker.
  5900. # It appears as though 1/2 is a usable value.
  5901. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5902. fi
  5903. ;;
  5904. esac
  5905. fi
  5906. if test -n $lt_cv_sys_max_cmd_len ; then
  5907. { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  5908. echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
  5909. else
  5910. { echo "$as_me:$LINENO: result: none" >&5
  5911. echo "${ECHO_T}none" >&6; }
  5912. fi
  5913. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5914. { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5915. echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
  5916. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5917. echo $ECHO_N "(cached) $ECHO_C" >&6
  5918. else
  5919. # These are sane defaults that work on at least a few old systems.
  5920. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5921. # Character class describing NM global symbol codes.
  5922. symcode='[BCDEGRST]'
  5923. # Regexp to match symbols that can be accessed directly from C.
  5924. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5925. # Transform an extracted symbol line into a proper C declaration
  5926. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5927. # Transform an extracted symbol line into symbol name and symbol address
  5928. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5929. # Define system-specific variables.
  5930. case $host_os in
  5931. aix*)
  5932. symcode='[BCDT]'
  5933. ;;
  5934. cygwin* | mingw* | pw32*)
  5935. symcode='[ABCDGISTW]'
  5936. ;;
  5937. hpux*) # Its linker distinguishes data from code symbols
  5938. if test "$host_cpu" = ia64; then
  5939. symcode='[ABCDEGRST]'
  5940. fi
  5941. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5942. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5943. ;;
  5944. linux* | k*bsd*-gnu)
  5945. if test "$host_cpu" = ia64; then
  5946. symcode='[ABCDGIRSTW]'
  5947. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5948. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  5949. fi
  5950. ;;
  5951. irix* | nonstopux*)
  5952. symcode='[BCDEGRST]'
  5953. ;;
  5954. osf*)
  5955. symcode='[BCDEGQRST]'
  5956. ;;
  5957. solaris*)
  5958. symcode='[BDRT]'
  5959. ;;
  5960. sco3.2v5*)
  5961. symcode='[DT]'
  5962. ;;
  5963. sysv4.2uw2*)
  5964. symcode='[DT]'
  5965. ;;
  5966. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5967. symcode='[ABDT]'
  5968. ;;
  5969. sysv4)
  5970. symcode='[DFNSTU]'
  5971. ;;
  5972. esac
  5973. # Handle CRLF in mingw tool chain
  5974. opt_cr=
  5975. case $build_os in
  5976. mingw*)
  5977. opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5978. ;;
  5979. esac
  5980. # If we're using GNU nm, then use its standard symbol codes.
  5981. case `$NM -V 2>&1` in
  5982. *GNU* | *'with BFD'*)
  5983. symcode='[ABCDGIRSTW]' ;;
  5984. esac
  5985. # Try without a prefix undercore, then with it.
  5986. for ac_symprfx in "" "_"; do
  5987. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5988. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5989. # Write the raw and C identifiers.
  5990. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5991. # Check to see that the pipe works correctly.
  5992. pipe_works=no
  5993. rm -f conftest*
  5994. cat > conftest.$ac_ext <<EOF
  5995. #ifdef __cplusplus
  5996. extern "C" {
  5997. #endif
  5998. char nm_test_var;
  5999. void nm_test_func(){}
  6000. #ifdef __cplusplus
  6001. }
  6002. #endif
  6003. int main(){nm_test_var='a';nm_test_func();return(0);}
  6004. EOF
  6005. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6006. (eval $ac_compile) 2>&5
  6007. ac_status=$?
  6008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6009. (exit $ac_status); }; then
  6010. # Now try to grab the symbols.
  6011. nlist=conftest.nm
  6012. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  6013. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  6014. ac_status=$?
  6015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6016. (exit $ac_status); } && test -s "$nlist"; then
  6017. # Try sorting and uniquifying the output.
  6018. if sort "$nlist" | uniq > "$nlist"T; then
  6019. mv -f "$nlist"T "$nlist"
  6020. else
  6021. rm -f "$nlist"T
  6022. fi
  6023. # Make sure that we snagged all the symbols we need.
  6024. if grep ' nm_test_var$' "$nlist" >/dev/null; then
  6025. if grep ' nm_test_func$' "$nlist" >/dev/null; then
  6026. cat <<EOF > conftest.$ac_ext
  6027. #ifdef __cplusplus
  6028. extern "C" {
  6029. #endif
  6030. EOF
  6031. # Now generate the symbol file.
  6032. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  6033. cat <<EOF >> conftest.$ac_ext
  6034. #if defined (__STDC__) && __STDC__
  6035. # define lt_ptr_t void *
  6036. #else
  6037. # define lt_ptr_t char *
  6038. # define const
  6039. #endif
  6040. /* The mapping between symbol names and symbols. */
  6041. const struct {
  6042. const char *name;
  6043. lt_ptr_t address;
  6044. }
  6045. lt_preloaded_symbols[] =
  6046. {
  6047. EOF
  6048. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  6049. cat <<\EOF >> conftest.$ac_ext
  6050. {0, (lt_ptr_t) 0}
  6051. };
  6052. #ifdef __cplusplus
  6053. }
  6054. #endif
  6055. EOF
  6056. # Now try linking the two files.
  6057. mv conftest.$ac_objext conftstm.$ac_objext
  6058. lt_save_LIBS="$LIBS"
  6059. lt_save_CFLAGS="$CFLAGS"
  6060. LIBS="conftstm.$ac_objext"
  6061. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6062. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6063. (eval $ac_link) 2>&5
  6064. ac_status=$?
  6065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6066. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  6067. pipe_works=yes
  6068. fi
  6069. LIBS="$lt_save_LIBS"
  6070. CFLAGS="$lt_save_CFLAGS"
  6071. else
  6072. echo "cannot find nm_test_func in $nlist" >&5
  6073. fi
  6074. else
  6075. echo "cannot find nm_test_var in $nlist" >&5
  6076. fi
  6077. else
  6078. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6079. fi
  6080. else
  6081. echo "$progname: failed program was:" >&5
  6082. cat conftest.$ac_ext >&5
  6083. fi
  6084. rm -f conftest* conftst*
  6085. # Do not use the global_symbol_pipe unless it works.
  6086. if test "$pipe_works" = yes; then
  6087. break
  6088. else
  6089. lt_cv_sys_global_symbol_pipe=
  6090. fi
  6091. done
  6092. fi
  6093. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6094. lt_cv_sys_global_symbol_to_cdecl=
  6095. fi
  6096. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6097. { echo "$as_me:$LINENO: result: failed" >&5
  6098. echo "${ECHO_T}failed" >&6; }
  6099. else
  6100. { echo "$as_me:$LINENO: result: ok" >&5
  6101. echo "${ECHO_T}ok" >&6; }
  6102. fi
  6103. { echo "$as_me:$LINENO: checking for objdir" >&5
  6104. echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
  6105. if test "${lt_cv_objdir+set}" = set; then
  6106. echo $ECHO_N "(cached) $ECHO_C" >&6
  6107. else
  6108. rm -f .libs 2>/dev/null
  6109. mkdir .libs 2>/dev/null
  6110. if test -d .libs; then
  6111. lt_cv_objdir=.libs
  6112. else
  6113. # MS-DOS does not allow filenames that begin with a dot.
  6114. lt_cv_objdir=_libs
  6115. fi
  6116. rmdir .libs 2>/dev/null
  6117. fi
  6118. { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  6119. echo "${ECHO_T}$lt_cv_objdir" >&6; }
  6120. objdir=$lt_cv_objdir
  6121. case $host_os in
  6122. aix3*)
  6123. # AIX sometimes has problems with the GCC collect2 program. For some
  6124. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6125. # vanish in a puff of smoke.
  6126. if test "X${COLLECT_NAMES+set}" != Xset; then
  6127. COLLECT_NAMES=
  6128. export COLLECT_NAMES
  6129. fi
  6130. ;;
  6131. esac
  6132. # Sed substitution that helps us do robust quoting. It backslashifies
  6133. # metacharacters that are still active within double-quoted strings.
  6134. Xsed='sed -e 1s/^X//'
  6135. sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  6136. # Same as above, but do not quote variable references.
  6137. double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  6138. # Sed substitution to delay expansion of an escaped shell variable in a
  6139. # double_quote_subst'ed string.
  6140. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6141. # Sed substitution to avoid accidental globbing in evaled expressions
  6142. no_glob_subst='s/\*/\\\*/g'
  6143. # Constants:
  6144. rm="rm -f"
  6145. # Global variables:
  6146. default_ofile=libtool
  6147. can_build_shared=yes
  6148. # All known linkers require a `.a' archive for static linking (except MSVC,
  6149. # which needs '.lib').
  6150. libext=a
  6151. ltmain="$ac_aux_dir/ltmain.sh"
  6152. ofile="$default_ofile"
  6153. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6154. if test -n "$ac_tool_prefix"; then
  6155. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6156. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6157. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6158. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6159. if test "${ac_cv_prog_AR+set}" = set; then
  6160. echo $ECHO_N "(cached) $ECHO_C" >&6
  6161. else
  6162. if test -n "$AR"; then
  6163. ac_cv_prog_AR="$AR" # Let the user override the test.
  6164. else
  6165. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6166. for as_dir in $PATH
  6167. do
  6168. IFS=$as_save_IFS
  6169. test -z "$as_dir" && as_dir=.
  6170. for ac_exec_ext in '' $ac_executable_extensions; do
  6171. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6172. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6173. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6174. break 2
  6175. fi
  6176. done
  6177. done
  6178. IFS=$as_save_IFS
  6179. fi
  6180. fi
  6181. AR=$ac_cv_prog_AR
  6182. if test -n "$AR"; then
  6183. { echo "$as_me:$LINENO: result: $AR" >&5
  6184. echo "${ECHO_T}$AR" >&6; }
  6185. else
  6186. { echo "$as_me:$LINENO: result: no" >&5
  6187. echo "${ECHO_T}no" >&6; }
  6188. fi
  6189. fi
  6190. if test -z "$ac_cv_prog_AR"; then
  6191. ac_ct_AR=$AR
  6192. # Extract the first word of "ar", so it can be a program name with args.
  6193. set dummy ar; ac_word=$2
  6194. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6195. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6196. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  6197. echo $ECHO_N "(cached) $ECHO_C" >&6
  6198. else
  6199. if test -n "$ac_ct_AR"; then
  6200. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6201. else
  6202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6203. for as_dir in $PATH
  6204. do
  6205. IFS=$as_save_IFS
  6206. test -z "$as_dir" && as_dir=.
  6207. for ac_exec_ext in '' $ac_executable_extensions; do
  6208. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6209. ac_cv_prog_ac_ct_AR="ar"
  6210. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6211. break 2
  6212. fi
  6213. done
  6214. done
  6215. IFS=$as_save_IFS
  6216. fi
  6217. fi
  6218. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6219. if test -n "$ac_ct_AR"; then
  6220. { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  6221. echo "${ECHO_T}$ac_ct_AR" >&6; }
  6222. else
  6223. { echo "$as_me:$LINENO: result: no" >&5
  6224. echo "${ECHO_T}no" >&6; }
  6225. fi
  6226. if test "x$ac_ct_AR" = x; then
  6227. AR="false"
  6228. else
  6229. case $cross_compiling:$ac_tool_warned in
  6230. yes:)
  6231. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6232. whose name does not start with the host triplet. If you think this
  6233. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6234. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6235. whose name does not start with the host triplet. If you think this
  6236. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6237. ac_tool_warned=yes ;;
  6238. esac
  6239. AR=$ac_ct_AR
  6240. fi
  6241. else
  6242. AR="$ac_cv_prog_AR"
  6243. fi
  6244. if test -n "$ac_tool_prefix"; then
  6245. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6246. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6247. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6248. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6249. if test "${ac_cv_prog_RANLIB+set}" = set; then
  6250. echo $ECHO_N "(cached) $ECHO_C" >&6
  6251. else
  6252. if test -n "$RANLIB"; then
  6253. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6254. else
  6255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6256. for as_dir in $PATH
  6257. do
  6258. IFS=$as_save_IFS
  6259. test -z "$as_dir" && as_dir=.
  6260. for ac_exec_ext in '' $ac_executable_extensions; do
  6261. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6262. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6263. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6264. break 2
  6265. fi
  6266. done
  6267. done
  6268. IFS=$as_save_IFS
  6269. fi
  6270. fi
  6271. RANLIB=$ac_cv_prog_RANLIB
  6272. if test -n "$RANLIB"; then
  6273. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  6274. echo "${ECHO_T}$RANLIB" >&6; }
  6275. else
  6276. { echo "$as_me:$LINENO: result: no" >&5
  6277. echo "${ECHO_T}no" >&6; }
  6278. fi
  6279. fi
  6280. if test -z "$ac_cv_prog_RANLIB"; then
  6281. ac_ct_RANLIB=$RANLIB
  6282. # Extract the first word of "ranlib", so it can be a program name with args.
  6283. set dummy ranlib; ac_word=$2
  6284. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6285. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6286. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  6287. echo $ECHO_N "(cached) $ECHO_C" >&6
  6288. else
  6289. if test -n "$ac_ct_RANLIB"; then
  6290. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6291. else
  6292. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6293. for as_dir in $PATH
  6294. do
  6295. IFS=$as_save_IFS
  6296. test -z "$as_dir" && as_dir=.
  6297. for ac_exec_ext in '' $ac_executable_extensions; do
  6298. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6299. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6300. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6301. break 2
  6302. fi
  6303. done
  6304. done
  6305. IFS=$as_save_IFS
  6306. fi
  6307. fi
  6308. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6309. if test -n "$ac_ct_RANLIB"; then
  6310. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  6311. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  6312. else
  6313. { echo "$as_me:$LINENO: result: no" >&5
  6314. echo "${ECHO_T}no" >&6; }
  6315. fi
  6316. if test "x$ac_ct_RANLIB" = x; then
  6317. RANLIB=":"
  6318. else
  6319. case $cross_compiling:$ac_tool_warned in
  6320. yes:)
  6321. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6322. whose name does not start with the host triplet. If you think this
  6323. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6324. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6325. whose name does not start with the host triplet. If you think this
  6326. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6327. ac_tool_warned=yes ;;
  6328. esac
  6329. RANLIB=$ac_ct_RANLIB
  6330. fi
  6331. else
  6332. RANLIB="$ac_cv_prog_RANLIB"
  6333. fi
  6334. if test -n "$ac_tool_prefix"; then
  6335. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6336. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6337. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6338. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6339. if test "${ac_cv_prog_STRIP+set}" = set; then
  6340. echo $ECHO_N "(cached) $ECHO_C" >&6
  6341. else
  6342. if test -n "$STRIP"; then
  6343. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6344. else
  6345. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6346. for as_dir in $PATH
  6347. do
  6348. IFS=$as_save_IFS
  6349. test -z "$as_dir" && as_dir=.
  6350. for ac_exec_ext in '' $ac_executable_extensions; do
  6351. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6352. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6353. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6354. break 2
  6355. fi
  6356. done
  6357. done
  6358. IFS=$as_save_IFS
  6359. fi
  6360. fi
  6361. STRIP=$ac_cv_prog_STRIP
  6362. if test -n "$STRIP"; then
  6363. { echo "$as_me:$LINENO: result: $STRIP" >&5
  6364. echo "${ECHO_T}$STRIP" >&6; }
  6365. else
  6366. { echo "$as_me:$LINENO: result: no" >&5
  6367. echo "${ECHO_T}no" >&6; }
  6368. fi
  6369. fi
  6370. if test -z "$ac_cv_prog_STRIP"; then
  6371. ac_ct_STRIP=$STRIP
  6372. # Extract the first word of "strip", so it can be a program name with args.
  6373. set dummy strip; ac_word=$2
  6374. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6375. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6376. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  6377. echo $ECHO_N "(cached) $ECHO_C" >&6
  6378. else
  6379. if test -n "$ac_ct_STRIP"; then
  6380. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6381. else
  6382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6383. for as_dir in $PATH
  6384. do
  6385. IFS=$as_save_IFS
  6386. test -z "$as_dir" && as_dir=.
  6387. for ac_exec_ext in '' $ac_executable_extensions; do
  6388. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6389. ac_cv_prog_ac_ct_STRIP="strip"
  6390. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6391. break 2
  6392. fi
  6393. done
  6394. done
  6395. IFS=$as_save_IFS
  6396. fi
  6397. fi
  6398. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6399. if test -n "$ac_ct_STRIP"; then
  6400. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  6401. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  6402. else
  6403. { echo "$as_me:$LINENO: result: no" >&5
  6404. echo "${ECHO_T}no" >&6; }
  6405. fi
  6406. if test "x$ac_ct_STRIP" = x; then
  6407. STRIP=":"
  6408. else
  6409. case $cross_compiling:$ac_tool_warned in
  6410. yes:)
  6411. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  6412. whose name does not start with the host triplet. If you think this
  6413. configuration is useful to you, please write to autoconf@gnu.org." >&5
  6414. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  6415. whose name does not start with the host triplet. If you think this
  6416. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  6417. ac_tool_warned=yes ;;
  6418. esac
  6419. STRIP=$ac_ct_STRIP
  6420. fi
  6421. else
  6422. STRIP="$ac_cv_prog_STRIP"
  6423. fi
  6424. old_CC="$CC"
  6425. old_CFLAGS="$CFLAGS"
  6426. # Set sane defaults for various variables
  6427. test -z "$AR" && AR=ar
  6428. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6429. test -z "$AS" && AS=as
  6430. test -z "$CC" && CC=cc
  6431. test -z "$LTCC" && LTCC=$CC
  6432. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6433. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6434. test -z "$LD" && LD=ld
  6435. test -z "$LN_S" && LN_S="ln -s"
  6436. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6437. test -z "$NM" && NM=nm
  6438. test -z "$SED" && SED=sed
  6439. test -z "$OBJDUMP" && OBJDUMP=objdump
  6440. test -z "$RANLIB" && RANLIB=:
  6441. test -z "$STRIP" && STRIP=:
  6442. test -z "$ac_objext" && ac_objext=o
  6443. # Determine commands to create old-style static archives.
  6444. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6445. old_postinstall_cmds='chmod 644 $oldlib'
  6446. old_postuninstall_cmds=
  6447. if test -n "$RANLIB"; then
  6448. case $host_os in
  6449. openbsd*)
  6450. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6451. ;;
  6452. *)
  6453. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6454. ;;
  6455. esac
  6456. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6457. fi
  6458. for cc_temp in $compiler""; do
  6459. case $cc_temp in
  6460. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6461. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6462. \-*) ;;
  6463. *) break;;
  6464. esac
  6465. done
  6466. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6467. # Only perform the check for file, if the check method requires it
  6468. case $deplibs_check_method in
  6469. file_magic*)
  6470. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6471. { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  6472. echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
  6473. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6474. echo $ECHO_N "(cached) $ECHO_C" >&6
  6475. else
  6476. case $MAGIC_CMD in
  6477. [\\/*] | ?:[\\/]*)
  6478. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6479. ;;
  6480. *)
  6481. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6482. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6483. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6484. for ac_dir in $ac_dummy; do
  6485. IFS="$lt_save_ifs"
  6486. test -z "$ac_dir" && ac_dir=.
  6487. if test -f $ac_dir/${ac_tool_prefix}file; then
  6488. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6489. if test -n "$file_magic_test_file"; then
  6490. case $deplibs_check_method in
  6491. "file_magic "*)
  6492. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6493. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6494. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6495. $EGREP "$file_magic_regex" > /dev/null; then
  6496. :
  6497. else
  6498. cat <<EOF 1>&2
  6499. *** Warning: the command libtool uses to detect shared libraries,
  6500. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6501. *** The result is that libtool may fail to recognize shared libraries
  6502. *** as such. This will affect the creation of libtool libraries that
  6503. *** depend on shared libraries, but programs linked with such libtool
  6504. *** libraries will work regardless of this problem. Nevertheless, you
  6505. *** may want to report the problem to your system manager and/or to
  6506. *** bug-libtool@gnu.org
  6507. EOF
  6508. fi ;;
  6509. esac
  6510. fi
  6511. break
  6512. fi
  6513. done
  6514. IFS="$lt_save_ifs"
  6515. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6516. ;;
  6517. esac
  6518. fi
  6519. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6520. if test -n "$MAGIC_CMD"; then
  6521. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6522. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6523. else
  6524. { echo "$as_me:$LINENO: result: no" >&5
  6525. echo "${ECHO_T}no" >&6; }
  6526. fi
  6527. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6528. if test -n "$ac_tool_prefix"; then
  6529. { echo "$as_me:$LINENO: checking for file" >&5
  6530. echo $ECHO_N "checking for file... $ECHO_C" >&6; }
  6531. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  6532. echo $ECHO_N "(cached) $ECHO_C" >&6
  6533. else
  6534. case $MAGIC_CMD in
  6535. [\\/*] | ?:[\\/]*)
  6536. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6537. ;;
  6538. *)
  6539. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6540. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6541. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6542. for ac_dir in $ac_dummy; do
  6543. IFS="$lt_save_ifs"
  6544. test -z "$ac_dir" && ac_dir=.
  6545. if test -f $ac_dir/file; then
  6546. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6547. if test -n "$file_magic_test_file"; then
  6548. case $deplibs_check_method in
  6549. "file_magic "*)
  6550. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6551. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6552. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6553. $EGREP "$file_magic_regex" > /dev/null; then
  6554. :
  6555. else
  6556. cat <<EOF 1>&2
  6557. *** Warning: the command libtool uses to detect shared libraries,
  6558. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6559. *** The result is that libtool may fail to recognize shared libraries
  6560. *** as such. This will affect the creation of libtool libraries that
  6561. *** depend on shared libraries, but programs linked with such libtool
  6562. *** libraries will work regardless of this problem. Nevertheless, you
  6563. *** may want to report the problem to your system manager and/or to
  6564. *** bug-libtool@gnu.org
  6565. EOF
  6566. fi ;;
  6567. esac
  6568. fi
  6569. break
  6570. fi
  6571. done
  6572. IFS="$lt_save_ifs"
  6573. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6574. ;;
  6575. esac
  6576. fi
  6577. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6578. if test -n "$MAGIC_CMD"; then
  6579. { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  6580. echo "${ECHO_T}$MAGIC_CMD" >&6; }
  6581. else
  6582. { echo "$as_me:$LINENO: result: no" >&5
  6583. echo "${ECHO_T}no" >&6; }
  6584. fi
  6585. else
  6586. MAGIC_CMD=:
  6587. fi
  6588. fi
  6589. fi
  6590. ;;
  6591. esac
  6592. enable_dlopen=no
  6593. enable_win32_dll=no
  6594. # Check whether --enable-libtool-lock was given.
  6595. if test "${enable_libtool_lock+set}" = set; then
  6596. enableval=$enable_libtool_lock;
  6597. fi
  6598. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6599. # Check whether --with-pic was given.
  6600. if test "${with_pic+set}" = set; then
  6601. withval=$with_pic; pic_mode="$withval"
  6602. else
  6603. pic_mode=default
  6604. fi
  6605. test -z "$pic_mode" && pic_mode=default
  6606. # Use C for the default configuration in the libtool script
  6607. tagname=
  6608. lt_save_CC="$CC"
  6609. ac_ext=c
  6610. ac_cpp='$CPP $CPPFLAGS'
  6611. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6612. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6613. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6614. # Source file extension for C test sources.
  6615. ac_ext=c
  6616. # Object file extension for compiled C test sources.
  6617. objext=o
  6618. objext=$objext
  6619. # Code to be used in simple compile tests
  6620. lt_simple_compile_test_code="int some_variable = 0;"
  6621. # Code to be used in simple link tests
  6622. lt_simple_link_test_code='int main(){return(0);}'
  6623. # If no C compiler was specified, use CC.
  6624. LTCC=${LTCC-"$CC"}
  6625. # If no C compiler flags were specified, use CFLAGS.
  6626. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6627. # Allow CC to be a program name with arguments.
  6628. compiler=$CC
  6629. # save warnings/boilerplate of simple test code
  6630. ac_outfile=conftest.$ac_objext
  6631. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6632. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6633. _lt_compiler_boilerplate=`cat conftest.err`
  6634. $rm conftest*
  6635. ac_outfile=conftest.$ac_objext
  6636. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6637. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6638. _lt_linker_boilerplate=`cat conftest.err`
  6639. $rm conftest*
  6640. lt_prog_compiler_no_builtin_flag=
  6641. if test "$GCC" = yes; then
  6642. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  6643. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6644. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  6645. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  6646. echo $ECHO_N "(cached) $ECHO_C" >&6
  6647. else
  6648. lt_cv_prog_compiler_rtti_exceptions=no
  6649. ac_outfile=conftest.$ac_objext
  6650. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6651. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6652. # Insert the option either (1) after the last *FLAGS variable, or
  6653. # (2) before a word containing "conftest.", or (3) at the end.
  6654. # Note that $ac_compile itself does not contain backslashes and begins
  6655. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6656. # The option is referenced via a variable to avoid confusing sed.
  6657. lt_compile=`echo "$ac_compile" | $SED \
  6658. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6659. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6660. -e 's:$: $lt_compiler_flag:'`
  6661. (eval echo "\"\$as_me:7436: $lt_compile\"" >&5)
  6662. (eval "$lt_compile" 2>conftest.err)
  6663. ac_status=$?
  6664. cat conftest.err >&5
  6665. echo "$as_me:7440: \$? = $ac_status" >&5
  6666. if (exit $ac_status) && test -s "$ac_outfile"; then
  6667. # The compiler can only warn and ignore the option if not recognized
  6668. # So say no if there are warnings other than the usual output.
  6669. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6670. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6671. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6672. lt_cv_prog_compiler_rtti_exceptions=yes
  6673. fi
  6674. fi
  6675. $rm conftest*
  6676. fi
  6677. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6678. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6679. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6680. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6681. else
  6682. :
  6683. fi
  6684. fi
  6685. lt_prog_compiler_wl=
  6686. lt_prog_compiler_pic=
  6687. lt_prog_compiler_static=
  6688. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  6689. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  6690. if test "$GCC" = yes; then
  6691. lt_prog_compiler_wl='-Wl,'
  6692. lt_prog_compiler_static='-static'
  6693. case $host_os in
  6694. aix*)
  6695. # All AIX code is PIC.
  6696. if test "$host_cpu" = ia64; then
  6697. # AIX 5 now supports IA64 processor
  6698. lt_prog_compiler_static='-Bstatic'
  6699. fi
  6700. ;;
  6701. amigaos*)
  6702. # FIXME: we need at least 68020 code to build shared libraries, but
  6703. # adding the `-m68020' flag to GCC prevents building anything better,
  6704. # like `-m68040'.
  6705. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6706. ;;
  6707. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6708. # PIC is the default for these OSes.
  6709. ;;
  6710. mingw* | cygwin* | pw32* | os2*)
  6711. # This hack is so that the source file can tell whether it is being
  6712. # built for inclusion in a dll (and should export symbols for example).
  6713. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6714. # (--disable-auto-import) libraries
  6715. lt_prog_compiler_pic='-DDLL_EXPORT'
  6716. ;;
  6717. darwin* | rhapsody*)
  6718. # PIC is the default on this platform
  6719. # Common symbols not allowed in MH_DYLIB files
  6720. lt_prog_compiler_pic='-fno-common'
  6721. ;;
  6722. interix[3-9]*)
  6723. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6724. # Instead, we relocate shared libraries at runtime.
  6725. ;;
  6726. msdosdjgpp*)
  6727. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6728. # on systems that don't support them.
  6729. lt_prog_compiler_can_build_shared=no
  6730. enable_shared=no
  6731. ;;
  6732. sysv4*MP*)
  6733. if test -d /usr/nec; then
  6734. lt_prog_compiler_pic=-Kconform_pic
  6735. fi
  6736. ;;
  6737. hpux*)
  6738. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6739. # not for PA HP-UX.
  6740. case $host_cpu in
  6741. hppa*64*|ia64*)
  6742. # +Z the default
  6743. ;;
  6744. *)
  6745. lt_prog_compiler_pic='-fPIC'
  6746. ;;
  6747. esac
  6748. ;;
  6749. *)
  6750. lt_prog_compiler_pic='-fPIC'
  6751. ;;
  6752. esac
  6753. else
  6754. # PORTME Check for flag to pass linker flags through the system compiler.
  6755. case $host_os in
  6756. aix*)
  6757. lt_prog_compiler_wl='-Wl,'
  6758. if test "$host_cpu" = ia64; then
  6759. # AIX 5 now supports IA64 processor
  6760. lt_prog_compiler_static='-Bstatic'
  6761. else
  6762. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6763. fi
  6764. ;;
  6765. darwin*)
  6766. # PIC is the default on this platform
  6767. # Common symbols not allowed in MH_DYLIB files
  6768. case $cc_basename in
  6769. xlc*)
  6770. lt_prog_compiler_pic='-qnocommon'
  6771. lt_prog_compiler_wl='-Wl,'
  6772. ;;
  6773. esac
  6774. ;;
  6775. mingw* | cygwin* | pw32* | os2*)
  6776. # This hack is so that the source file can tell whether it is being
  6777. # built for inclusion in a dll (and should export symbols for example).
  6778. lt_prog_compiler_pic='-DDLL_EXPORT'
  6779. ;;
  6780. hpux9* | hpux10* | hpux11*)
  6781. lt_prog_compiler_wl='-Wl,'
  6782. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6783. # not for PA HP-UX.
  6784. case $host_cpu in
  6785. hppa*64*|ia64*)
  6786. # +Z the default
  6787. ;;
  6788. *)
  6789. lt_prog_compiler_pic='+Z'
  6790. ;;
  6791. esac
  6792. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6793. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6794. ;;
  6795. irix5* | irix6* | nonstopux*)
  6796. lt_prog_compiler_wl='-Wl,'
  6797. # PIC (with -KPIC) is the default.
  6798. lt_prog_compiler_static='-non_shared'
  6799. ;;
  6800. newsos6)
  6801. lt_prog_compiler_pic='-KPIC'
  6802. lt_prog_compiler_static='-Bstatic'
  6803. ;;
  6804. linux* | k*bsd*-gnu)
  6805. case $cc_basename in
  6806. icc* | ecc*)
  6807. lt_prog_compiler_wl='-Wl,'
  6808. lt_prog_compiler_pic='-KPIC'
  6809. lt_prog_compiler_static='-static'
  6810. ;;
  6811. pgcc* | pgf77* | pgf90* | pgf95*)
  6812. # Portland Group compilers (*not* the Pentium gcc compiler,
  6813. # which looks to be a dead project)
  6814. lt_prog_compiler_wl='-Wl,'
  6815. lt_prog_compiler_pic='-fpic'
  6816. lt_prog_compiler_static='-Bstatic'
  6817. ;;
  6818. ccc*)
  6819. lt_prog_compiler_wl='-Wl,'
  6820. # All Alpha code is PIC.
  6821. lt_prog_compiler_static='-non_shared'
  6822. ;;
  6823. *)
  6824. case `$CC -V 2>&1 | sed 5q` in
  6825. *Sun\ C*)
  6826. # Sun C 5.9
  6827. lt_prog_compiler_pic='-KPIC'
  6828. lt_prog_compiler_static='-Bstatic'
  6829. lt_prog_compiler_wl='-Wl,'
  6830. ;;
  6831. *Sun\ F*)
  6832. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6833. lt_prog_compiler_pic='-KPIC'
  6834. lt_prog_compiler_static='-Bstatic'
  6835. lt_prog_compiler_wl=''
  6836. ;;
  6837. esac
  6838. ;;
  6839. esac
  6840. ;;
  6841. osf3* | osf4* | osf5*)
  6842. lt_prog_compiler_wl='-Wl,'
  6843. # All OSF/1 code is PIC.
  6844. lt_prog_compiler_static='-non_shared'
  6845. ;;
  6846. rdos*)
  6847. lt_prog_compiler_static='-non_shared'
  6848. ;;
  6849. solaris*)
  6850. lt_prog_compiler_pic='-KPIC'
  6851. lt_prog_compiler_static='-Bstatic'
  6852. case $cc_basename in
  6853. f77* | f90* | f95*)
  6854. lt_prog_compiler_wl='-Qoption ld ';;
  6855. *)
  6856. lt_prog_compiler_wl='-Wl,';;
  6857. esac
  6858. ;;
  6859. sunos4*)
  6860. lt_prog_compiler_wl='-Qoption ld '
  6861. lt_prog_compiler_pic='-PIC'
  6862. lt_prog_compiler_static='-Bstatic'
  6863. ;;
  6864. sysv4 | sysv4.2uw2* | sysv4.3*)
  6865. lt_prog_compiler_wl='-Wl,'
  6866. lt_prog_compiler_pic='-KPIC'
  6867. lt_prog_compiler_static='-Bstatic'
  6868. ;;
  6869. sysv4*MP*)
  6870. if test -d /usr/nec ;then
  6871. lt_prog_compiler_pic='-Kconform_pic'
  6872. lt_prog_compiler_static='-Bstatic'
  6873. fi
  6874. ;;
  6875. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6876. lt_prog_compiler_wl='-Wl,'
  6877. lt_prog_compiler_pic='-KPIC'
  6878. lt_prog_compiler_static='-Bstatic'
  6879. ;;
  6880. unicos*)
  6881. lt_prog_compiler_wl='-Wl,'
  6882. lt_prog_compiler_can_build_shared=no
  6883. ;;
  6884. uts4*)
  6885. lt_prog_compiler_pic='-pic'
  6886. lt_prog_compiler_static='-Bstatic'
  6887. ;;
  6888. *)
  6889. lt_prog_compiler_can_build_shared=no
  6890. ;;
  6891. esac
  6892. fi
  6893. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  6894. echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
  6895. #
  6896. # Check to make sure the PIC flag actually works.
  6897. #
  6898. if test -n "$lt_prog_compiler_pic"; then
  6899. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6900. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
  6901. if test "${lt_prog_compiler_pic_works+set}" = set; then
  6902. echo $ECHO_N "(cached) $ECHO_C" >&6
  6903. else
  6904. lt_prog_compiler_pic_works=no
  6905. ac_outfile=conftest.$ac_objext
  6906. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6907. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6908. # Insert the option either (1) after the last *FLAGS variable, or
  6909. # (2) before a word containing "conftest.", or (3) at the end.
  6910. # Note that $ac_compile itself does not contain backslashes and begins
  6911. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6912. # The option is referenced via a variable to avoid confusing sed.
  6913. lt_compile=`echo "$ac_compile" | $SED \
  6914. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6915. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6916. -e 's:$: $lt_compiler_flag:'`
  6917. (eval echo "\"\$as_me:7726: $lt_compile\"" >&5)
  6918. (eval "$lt_compile" 2>conftest.err)
  6919. ac_status=$?
  6920. cat conftest.err >&5
  6921. echo "$as_me:7730: \$? = $ac_status" >&5
  6922. if (exit $ac_status) && test -s "$ac_outfile"; then
  6923. # The compiler can only warn and ignore the option if not recognized
  6924. # So say no if there are warnings other than the usual output.
  6925. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  6926. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6927. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6928. lt_prog_compiler_pic_works=yes
  6929. fi
  6930. fi
  6931. $rm conftest*
  6932. fi
  6933. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  6934. echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
  6935. if test x"$lt_prog_compiler_pic_works" = xyes; then
  6936. case $lt_prog_compiler_pic in
  6937. "" | " "*) ;;
  6938. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  6939. esac
  6940. else
  6941. lt_prog_compiler_pic=
  6942. lt_prog_compiler_can_build_shared=no
  6943. fi
  6944. fi
  6945. case $host_os in
  6946. # For platforms which do not support PIC, -DPIC is meaningless:
  6947. *djgpp*)
  6948. lt_prog_compiler_pic=
  6949. ;;
  6950. *)
  6951. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6952. ;;
  6953. esac
  6954. #
  6955. # Check to make sure the static flag actually works.
  6956. #
  6957. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  6958. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  6959. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  6960. if test "${lt_prog_compiler_static_works+set}" = set; then
  6961. echo $ECHO_N "(cached) $ECHO_C" >&6
  6962. else
  6963. lt_prog_compiler_static_works=no
  6964. save_LDFLAGS="$LDFLAGS"
  6965. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  6966. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  6967. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  6968. # The linker can only warn and ignore the option if not recognized
  6969. # So say no if there are warnings
  6970. if test -s conftest.err; then
  6971. # Append any errors to the config.log.
  6972. cat conftest.err 1>&5
  6973. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  6974. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6975. if diff conftest.exp conftest.er2 >/dev/null; then
  6976. lt_prog_compiler_static_works=yes
  6977. fi
  6978. else
  6979. lt_prog_compiler_static_works=yes
  6980. fi
  6981. fi
  6982. $rm conftest*
  6983. LDFLAGS="$save_LDFLAGS"
  6984. fi
  6985. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  6986. echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
  6987. if test x"$lt_prog_compiler_static_works" = xyes; then
  6988. :
  6989. else
  6990. lt_prog_compiler_static=
  6991. fi
  6992. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6993. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  6994. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  6995. echo $ECHO_N "(cached) $ECHO_C" >&6
  6996. else
  6997. lt_cv_prog_compiler_c_o=no
  6998. $rm -r conftest 2>/dev/null
  6999. mkdir conftest
  7000. cd conftest
  7001. mkdir out
  7002. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7003. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7004. # Insert the option either (1) after the last *FLAGS variable, or
  7005. # (2) before a word containing "conftest.", or (3) at the end.
  7006. # Note that $ac_compile itself does not contain backslashes and begins
  7007. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7008. lt_compile=`echo "$ac_compile" | $SED \
  7009. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7010. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7011. -e 's:$: $lt_compiler_flag:'`
  7012. (eval echo "\"\$as_me:7830: $lt_compile\"" >&5)
  7013. (eval "$lt_compile" 2>out/conftest.err)
  7014. ac_status=$?
  7015. cat out/conftest.err >&5
  7016. echo "$as_me:7834: \$? = $ac_status" >&5
  7017. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7018. then
  7019. # The compiler can only warn and ignore the option if not recognized
  7020. # So say no if there are warnings
  7021. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7022. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7023. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7024. lt_cv_prog_compiler_c_o=yes
  7025. fi
  7026. fi
  7027. chmod u+w . 2>&5
  7028. $rm conftest*
  7029. # SGI C++ compiler will create directory out/ii_files/ for
  7030. # template instantiation
  7031. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  7032. $rm out/* && rmdir out
  7033. cd ..
  7034. rmdir conftest
  7035. $rm conftest*
  7036. fi
  7037. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  7038. echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
  7039. hard_links="nottested"
  7040. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7041. # do not overwrite the value of need_locks provided by the user
  7042. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  7043. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  7044. hard_links=yes
  7045. $rm conftest*
  7046. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7047. touch conftest.a
  7048. ln conftest.a conftest.b 2>&5 || hard_links=no
  7049. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7050. { echo "$as_me:$LINENO: result: $hard_links" >&5
  7051. echo "${ECHO_T}$hard_links" >&6; }
  7052. if test "$hard_links" = no; then
  7053. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7054. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7055. need_locks=warn
  7056. fi
  7057. else
  7058. need_locks=no
  7059. fi
  7060. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7061. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  7062. runpath_var=
  7063. allow_undefined_flag=
  7064. enable_shared_with_static_runtimes=no
  7065. archive_cmds=
  7066. archive_expsym_cmds=
  7067. old_archive_From_new_cmds=
  7068. old_archive_from_expsyms_cmds=
  7069. export_dynamic_flag_spec=
  7070. whole_archive_flag_spec=
  7071. thread_safe_flag_spec=
  7072. hardcode_libdir_flag_spec=
  7073. hardcode_libdir_flag_spec_ld=
  7074. hardcode_libdir_separator=
  7075. hardcode_direct=no
  7076. hardcode_minus_L=no
  7077. hardcode_shlibpath_var=unsupported
  7078. link_all_deplibs=unknown
  7079. hardcode_automatic=no
  7080. module_cmds=
  7081. module_expsym_cmds=
  7082. always_export_symbols=no
  7083. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7084. # include_expsyms should be a list of space-separated symbols to be *always*
  7085. # included in the symbol list
  7086. include_expsyms=
  7087. # exclude_expsyms can be an extended regexp of symbols to exclude
  7088. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7089. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7090. # as well as any symbol that contains `d'.
  7091. exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  7092. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7093. # platforms (ab)use it in PIC code, but their linkers get confused if
  7094. # the symbol is explicitly referenced. Since portable code cannot
  7095. # rely on this symbol name, it's probably fine to never include it in
  7096. # preloaded symbol tables.
  7097. extract_expsyms_cmds=
  7098. # Just being paranoid about ensuring that cc_basename is set.
  7099. for cc_temp in $compiler""; do
  7100. case $cc_temp in
  7101. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7102. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7103. \-*) ;;
  7104. *) break;;
  7105. esac
  7106. done
  7107. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7108. case $host_os in
  7109. cygwin* | mingw* | pw32*)
  7110. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7111. # When not using gcc, we currently assume that we are using
  7112. # Microsoft Visual C++.
  7113. if test "$GCC" != yes; then
  7114. with_gnu_ld=no
  7115. fi
  7116. ;;
  7117. interix*)
  7118. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7119. with_gnu_ld=yes
  7120. ;;
  7121. openbsd*)
  7122. with_gnu_ld=no
  7123. ;;
  7124. esac
  7125. ld_shlibs=yes
  7126. if test "$with_gnu_ld" = yes; then
  7127. # If archive_cmds runs LD, not CC, wlarc should be empty
  7128. wlarc='${wl}'
  7129. # Set some defaults for GNU ld with shared library support. These
  7130. # are reset later if shared libraries are not supported. Putting them
  7131. # here allows them to be overridden if necessary.
  7132. runpath_var=LD_RUN_PATH
  7133. hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  7134. export_dynamic_flag_spec='${wl}--export-dynamic'
  7135. # ancient GNU ld didn't support --whole-archive et. al.
  7136. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  7137. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7138. else
  7139. whole_archive_flag_spec=
  7140. fi
  7141. supports_anon_versioning=no
  7142. case `$LD -v 2>/dev/null` in
  7143. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7144. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7145. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7146. *\ 2.11.*) ;; # other 2.11 versions
  7147. *) supports_anon_versioning=yes ;;
  7148. esac
  7149. # See if GNU ld supports shared libraries.
  7150. case $host_os in
  7151. aix3* | aix4* | aix5*)
  7152. # On AIX/PPC, the GNU linker is very broken
  7153. if test "$host_cpu" != ia64; then
  7154. ld_shlibs=no
  7155. cat <<EOF 1>&2
  7156. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7157. *** to be unable to reliably create shared libraries on AIX.
  7158. *** Therefore, libtool is disabling shared libraries support. If you
  7159. *** really care for shared libraries, you may want to modify your PATH
  7160. *** so that a non-GNU linker is found, and then restart.
  7161. EOF
  7162. fi
  7163. ;;
  7164. amigaos*)
  7165. archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  7166. hardcode_libdir_flag_spec='-L$libdir'
  7167. hardcode_minus_L=yes
  7168. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  7169. # that the semantics of dynamic libraries on AmigaOS, at least up
  7170. # to version 4, is to share data among multiple programs linked
  7171. # with the same dynamic library. Since this doesn't match the
  7172. # behavior of shared libraries on other platforms, we can't use
  7173. # them.
  7174. ld_shlibs=no
  7175. ;;
  7176. beos*)
  7177. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7178. allow_undefined_flag=unsupported
  7179. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7180. # support --undefined. This deserves some investigation. FIXME
  7181. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7182. else
  7183. ld_shlibs=no
  7184. fi
  7185. ;;
  7186. cygwin* | mingw* | pw32*)
  7187. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7188. # as there is no search path for DLLs.
  7189. hardcode_libdir_flag_spec='-L$libdir'
  7190. allow_undefined_flag=unsupported
  7191. always_export_symbols=no
  7192. enable_shared_with_static_runtimes=yes
  7193. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7194. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  7195. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7196. # If the export-symbols file already is a .def file (1st line
  7197. # is EXPORTS), use it as is; otherwise, prepend...
  7198. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7199. cp $export_symbols $output_objdir/$soname.def;
  7200. else
  7201. echo EXPORTS > $output_objdir/$soname.def;
  7202. cat $export_symbols >> $output_objdir/$soname.def;
  7203. fi~
  7204. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7205. else
  7206. ld_shlibs=no
  7207. fi
  7208. ;;
  7209. interix[3-9]*)
  7210. hardcode_direct=no
  7211. hardcode_shlibpath_var=no
  7212. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7213. export_dynamic_flag_spec='${wl}-E'
  7214. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7215. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7216. # default) and relocated if they conflict, which is a slow very memory
  7217. # consuming and fragmenting process. To avoid this, we pick a random,
  7218. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7219. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7220. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7221. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7222. ;;
  7223. gnu* | linux* | k*bsd*-gnu)
  7224. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7225. tmp_addflag=
  7226. case $cc_basename,$host_cpu in
  7227. pgcc*) # Portland Group C compiler
  7228. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  7229. tmp_addflag=' $pic_flag'
  7230. ;;
  7231. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7232. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  7233. tmp_addflag=' $pic_flag -Mnomain' ;;
  7234. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7235. tmp_addflag=' -i_dynamic' ;;
  7236. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7237. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7238. ifc* | ifort*) # Intel Fortran compiler
  7239. tmp_addflag=' -nofor_main' ;;
  7240. esac
  7241. case `$CC -V 2>&1 | sed 5q` in
  7242. *Sun\ C*) # Sun C 5.9
  7243. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  7244. tmp_sharedflag='-G' ;;
  7245. *Sun\ F*) # Sun Fortran 8.3
  7246. tmp_sharedflag='-G' ;;
  7247. *)
  7248. tmp_sharedflag='-shared' ;;
  7249. esac
  7250. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7251. if test $supports_anon_versioning = yes; then
  7252. archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  7253. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7254. $echo "local: *; };" >> $output_objdir/$libname.ver~
  7255. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7256. fi
  7257. else
  7258. ld_shlibs=no
  7259. fi
  7260. ;;
  7261. netbsd*)
  7262. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7263. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7264. wlarc=
  7265. else
  7266. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7267. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7268. fi
  7269. ;;
  7270. solaris*)
  7271. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  7272. ld_shlibs=no
  7273. cat <<EOF 1>&2
  7274. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7275. *** create shared libraries on Solaris systems. Therefore, libtool
  7276. *** is disabling shared libraries support. We urge you to upgrade GNU
  7277. *** binutils to release 2.9.1 or newer. Another option is to modify
  7278. *** your PATH or compiler configuration so that the native linker is
  7279. *** used, and then restart.
  7280. EOF
  7281. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7282. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7283. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7284. else
  7285. ld_shlibs=no
  7286. fi
  7287. ;;
  7288. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7289. case `$LD -v 2>&1` in
  7290. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7291. ld_shlibs=no
  7292. cat <<_LT_EOF 1>&2
  7293. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7294. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7295. *** is disabling shared libraries support. We urge you to upgrade GNU
  7296. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7297. *** your PATH or compiler configuration so that the native linker is
  7298. *** used, and then restart.
  7299. _LT_EOF
  7300. ;;
  7301. *)
  7302. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7303. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  7304. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  7305. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  7306. else
  7307. ld_shlibs=no
  7308. fi
  7309. ;;
  7310. esac
  7311. ;;
  7312. sunos4*)
  7313. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7314. wlarc=
  7315. hardcode_direct=yes
  7316. hardcode_shlibpath_var=no
  7317. ;;
  7318. *)
  7319. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7320. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7321. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7322. else
  7323. ld_shlibs=no
  7324. fi
  7325. ;;
  7326. esac
  7327. if test "$ld_shlibs" = no; then
  7328. runpath_var=
  7329. hardcode_libdir_flag_spec=
  7330. export_dynamic_flag_spec=
  7331. whole_archive_flag_spec=
  7332. fi
  7333. else
  7334. # PORTME fill in a description of your system's linker (not GNU ld)
  7335. case $host_os in
  7336. aix3*)
  7337. allow_undefined_flag=unsupported
  7338. always_export_symbols=yes
  7339. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  7340. # Note: this linker hardcodes the directories in LIBPATH if there
  7341. # are no directories specified by -L.
  7342. hardcode_minus_L=yes
  7343. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7344. # Neither direct hardcoding nor static linking is supported with a
  7345. # broken collect2.
  7346. hardcode_direct=unsupported
  7347. fi
  7348. ;;
  7349. aix4* | aix5*)
  7350. if test "$host_cpu" = ia64; then
  7351. # On IA64, the linker does run time linking by default, so we don't
  7352. # have to do anything special.
  7353. aix_use_runtimelinking=no
  7354. exp_sym_flag='-Bexport'
  7355. no_entry_flag=""
  7356. else
  7357. # If we're using GNU nm, then we don't want the "-C" option.
  7358. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7359. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7360. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  7361. else
  7362. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  7363. fi
  7364. aix_use_runtimelinking=no
  7365. # Test if we are trying to use run time linking or normal
  7366. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7367. # need to do runtime linking.
  7368. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  7369. for ld_flag in $LDFLAGS; do
  7370. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7371. aix_use_runtimelinking=yes
  7372. break
  7373. fi
  7374. done
  7375. ;;
  7376. esac
  7377. exp_sym_flag='-bexport'
  7378. no_entry_flag='-bnoentry'
  7379. fi
  7380. # When large executables or shared objects are built, AIX ld can
  7381. # have problems creating the table of contents. If linking a library
  7382. # or program results in "error TOC overflow" add -mminimal-toc to
  7383. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7384. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7385. archive_cmds=''
  7386. hardcode_direct=yes
  7387. hardcode_libdir_separator=':'
  7388. link_all_deplibs=yes
  7389. if test "$GCC" = yes; then
  7390. case $host_os in aix4.[012]|aix4.[012].*)
  7391. # We only want to do this on AIX 4.2 and lower, the check
  7392. # below for broken collect2 doesn't work under 4.3+
  7393. collect2name=`${CC} -print-prog-name=collect2`
  7394. if test -f "$collect2name" && \
  7395. strings "$collect2name" | grep resolve_lib_name >/dev/null
  7396. then
  7397. # We have reworked collect2
  7398. :
  7399. else
  7400. # We have old collect2
  7401. hardcode_direct=unsupported
  7402. # It fails to find uninstalled libraries when the uninstalled
  7403. # path is not listed in the libpath. Setting hardcode_minus_L
  7404. # to unsupported forces relinking
  7405. hardcode_minus_L=yes
  7406. hardcode_libdir_flag_spec='-L$libdir'
  7407. hardcode_libdir_separator=
  7408. fi
  7409. ;;
  7410. esac
  7411. shared_flag='-shared'
  7412. if test "$aix_use_runtimelinking" = yes; then
  7413. shared_flag="$shared_flag "'${wl}-G'
  7414. fi
  7415. else
  7416. # not using gcc
  7417. if test "$host_cpu" = ia64; then
  7418. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7419. # chokes on -Wl,-G. The following line is correct:
  7420. shared_flag='-G'
  7421. else
  7422. if test "$aix_use_runtimelinking" = yes; then
  7423. shared_flag='${wl}-G'
  7424. else
  7425. shared_flag='${wl}-bM:SRE'
  7426. fi
  7427. fi
  7428. fi
  7429. # It seems that -bexpall does not export symbols beginning with
  7430. # underscore (_), so it is better to generate a list of symbols to export.
  7431. always_export_symbols=yes
  7432. if test "$aix_use_runtimelinking" = yes; then
  7433. # Warning - without using the other runtime loading flags (-brtl),
  7434. # -berok will link without error, but may produce a broken library.
  7435. allow_undefined_flag='-berok'
  7436. # Determine the default libpath from the value encoded in an empty executable.
  7437. cat >conftest.$ac_ext <<_ACEOF
  7438. /* confdefs.h. */
  7439. _ACEOF
  7440. cat confdefs.h >>conftest.$ac_ext
  7441. cat >>conftest.$ac_ext <<_ACEOF
  7442. /* end confdefs.h. */
  7443. int
  7444. main ()
  7445. {
  7446. ;
  7447. return 0;
  7448. }
  7449. _ACEOF
  7450. rm -f conftest.$ac_objext conftest$ac_exeext
  7451. if { (ac_try="$ac_link"
  7452. case "(($ac_try" in
  7453. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7454. *) ac_try_echo=$ac_try;;
  7455. esac
  7456. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7457. (eval "$ac_link") 2>conftest.er1
  7458. ac_status=$?
  7459. grep -v '^ *+' conftest.er1 >conftest.err
  7460. rm -f conftest.er1
  7461. cat conftest.err >&5
  7462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7463. (exit $ac_status); } && {
  7464. test -z "$ac_c_werror_flag" ||
  7465. test ! -s conftest.err
  7466. } && test -s conftest$ac_exeext &&
  7467. $as_test_x conftest$ac_exeext; then
  7468. lt_aix_libpath_sed='
  7469. /Import File Strings/,/^$/ {
  7470. /^0/ {
  7471. s/^0 *\(.*\)$/\1/
  7472. p
  7473. }
  7474. }'
  7475. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7476. # Check for a 64-bit object if we didn't find anything.
  7477. if test -z "$aix_libpath"; then
  7478. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7479. fi
  7480. else
  7481. echo "$as_me: failed program was:" >&5
  7482. sed 's/^/| /' conftest.$ac_ext >&5
  7483. fi
  7484. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7485. conftest$ac_exeext conftest.$ac_ext
  7486. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7487. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7488. archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7489. else
  7490. if test "$host_cpu" = ia64; then
  7491. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7492. allow_undefined_flag="-z nodefs"
  7493. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  7494. else
  7495. # Determine the default libpath from the value encoded in an empty executable.
  7496. cat >conftest.$ac_ext <<_ACEOF
  7497. /* confdefs.h. */
  7498. _ACEOF
  7499. cat confdefs.h >>conftest.$ac_ext
  7500. cat >>conftest.$ac_ext <<_ACEOF
  7501. /* end confdefs.h. */
  7502. int
  7503. main ()
  7504. {
  7505. ;
  7506. return 0;
  7507. }
  7508. _ACEOF
  7509. rm -f conftest.$ac_objext conftest$ac_exeext
  7510. if { (ac_try="$ac_link"
  7511. case "(($ac_try" in
  7512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7513. *) ac_try_echo=$ac_try;;
  7514. esac
  7515. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7516. (eval "$ac_link") 2>conftest.er1
  7517. ac_status=$?
  7518. grep -v '^ *+' conftest.er1 >conftest.err
  7519. rm -f conftest.er1
  7520. cat conftest.err >&5
  7521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7522. (exit $ac_status); } && {
  7523. test -z "$ac_c_werror_flag" ||
  7524. test ! -s conftest.err
  7525. } && test -s conftest$ac_exeext &&
  7526. $as_test_x conftest$ac_exeext; then
  7527. lt_aix_libpath_sed='
  7528. /Import File Strings/,/^$/ {
  7529. /^0/ {
  7530. s/^0 *\(.*\)$/\1/
  7531. p
  7532. }
  7533. }'
  7534. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7535. # Check for a 64-bit object if we didn't find anything.
  7536. if test -z "$aix_libpath"; then
  7537. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7538. fi
  7539. else
  7540. echo "$as_me: failed program was:" >&5
  7541. sed 's/^/| /' conftest.$ac_ext >&5
  7542. fi
  7543. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7544. conftest$ac_exeext conftest.$ac_ext
  7545. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7546. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7547. # Warning - without using the other run time loading flags,
  7548. # -berok will link without error, but may produce a broken library.
  7549. no_undefined_flag=' ${wl}-bernotok'
  7550. allow_undefined_flag=' ${wl}-berok'
  7551. # Exported symbols can be pulled into shared objects from archives
  7552. whole_archive_flag_spec='$convenience'
  7553. archive_cmds_need_lc=yes
  7554. # This is similar to how AIX traditionally builds its shared libraries.
  7555. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7556. fi
  7557. fi
  7558. ;;
  7559. amigaos*)
  7560. archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  7561. hardcode_libdir_flag_spec='-L$libdir'
  7562. hardcode_minus_L=yes
  7563. # see comment about different semantics on the GNU ld section
  7564. ld_shlibs=no
  7565. ;;
  7566. bsdi[45]*)
  7567. export_dynamic_flag_spec=-rdynamic
  7568. ;;
  7569. cygwin* | mingw* | pw32*)
  7570. # When not using gcc, we currently assume that we are using
  7571. # Microsoft Visual C++.
  7572. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7573. # no search path for DLLs.
  7574. hardcode_libdir_flag_spec=' '
  7575. allow_undefined_flag=unsupported
  7576. # Tell ltmain to make .lib files, not .a files.
  7577. libext=lib
  7578. # Tell ltmain to make .dll files, not .so files.
  7579. shrext_cmds=".dll"
  7580. # FIXME: Setting linknames here is a bad hack.
  7581. archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  7582. # The linker will automatically build a .lib file if we build a DLL.
  7583. old_archive_From_new_cmds='true'
  7584. # FIXME: Should let the user specify the lib program.
  7585. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7586. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7587. enable_shared_with_static_runtimes=yes
  7588. ;;
  7589. darwin* | rhapsody*)
  7590. case $host_os in
  7591. rhapsody* | darwin1.[012])
  7592. allow_undefined_flag='${wl}-undefined ${wl}suppress'
  7593. ;;
  7594. *) # Darwin 1.3 on
  7595. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  7596. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7597. else
  7598. case ${MACOSX_DEPLOYMENT_TARGET} in
  7599. 10.[012])
  7600. allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7601. ;;
  7602. 10.*)
  7603. allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  7604. ;;
  7605. esac
  7606. fi
  7607. ;;
  7608. esac
  7609. archive_cmds_need_lc=no
  7610. hardcode_direct=no
  7611. hardcode_automatic=yes
  7612. hardcode_shlibpath_var=unsupported
  7613. whole_archive_flag_spec=''
  7614. link_all_deplibs=yes
  7615. if test "$GCC" = yes ; then
  7616. output_verbose_link_cmd='echo'
  7617. archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  7618. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7619. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7620. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7621. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7622. else
  7623. case $cc_basename in
  7624. xlc*)
  7625. output_verbose_link_cmd='echo'
  7626. archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  7627. module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7628. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7629. archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7630. module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7631. ;;
  7632. *)
  7633. ld_shlibs=no
  7634. ;;
  7635. esac
  7636. fi
  7637. ;;
  7638. dgux*)
  7639. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7640. hardcode_libdir_flag_spec='-L$libdir'
  7641. hardcode_shlibpath_var=no
  7642. ;;
  7643. freebsd1*)
  7644. ld_shlibs=no
  7645. ;;
  7646. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7647. # support. Future versions do this automatically, but an explicit c++rt0.o
  7648. # does not break anything, and helps significantly (at the cost of a little
  7649. # extra space).
  7650. freebsd2.2*)
  7651. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7652. hardcode_libdir_flag_spec='-R$libdir'
  7653. hardcode_direct=yes
  7654. hardcode_shlibpath_var=no
  7655. ;;
  7656. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7657. freebsd2*)
  7658. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7659. hardcode_direct=yes
  7660. hardcode_minus_L=yes
  7661. hardcode_shlibpath_var=no
  7662. ;;
  7663. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7664. freebsd* | dragonfly*)
  7665. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7666. hardcode_libdir_flag_spec='-R$libdir'
  7667. hardcode_direct=yes
  7668. hardcode_shlibpath_var=no
  7669. ;;
  7670. hpux9*)
  7671. if test "$GCC" = yes; then
  7672. archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7673. else
  7674. archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7675. fi
  7676. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7677. hardcode_libdir_separator=:
  7678. hardcode_direct=yes
  7679. # hardcode_minus_L: Not really in the search PATH,
  7680. # but as the default location of the library.
  7681. hardcode_minus_L=yes
  7682. export_dynamic_flag_spec='${wl}-E'
  7683. ;;
  7684. hpux10*)
  7685. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7686. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7687. else
  7688. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7689. fi
  7690. if test "$with_gnu_ld" = no; then
  7691. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7692. hardcode_libdir_separator=:
  7693. hardcode_direct=yes
  7694. export_dynamic_flag_spec='${wl}-E'
  7695. # hardcode_minus_L: Not really in the search PATH,
  7696. # but as the default location of the library.
  7697. hardcode_minus_L=yes
  7698. fi
  7699. ;;
  7700. hpux11*)
  7701. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7702. case $host_cpu in
  7703. hppa*64*)
  7704. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7705. ;;
  7706. ia64*)
  7707. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7708. ;;
  7709. *)
  7710. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7711. ;;
  7712. esac
  7713. else
  7714. case $host_cpu in
  7715. hppa*64*)
  7716. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7717. ;;
  7718. ia64*)
  7719. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7720. ;;
  7721. *)
  7722. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7723. ;;
  7724. esac
  7725. fi
  7726. if test "$with_gnu_ld" = no; then
  7727. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7728. hardcode_libdir_separator=:
  7729. case $host_cpu in
  7730. hppa*64*|ia64*)
  7731. hardcode_libdir_flag_spec_ld='+b $libdir'
  7732. hardcode_direct=no
  7733. hardcode_shlibpath_var=no
  7734. ;;
  7735. *)
  7736. hardcode_direct=yes
  7737. export_dynamic_flag_spec='${wl}-E'
  7738. # hardcode_minus_L: Not really in the search PATH,
  7739. # but as the default location of the library.
  7740. hardcode_minus_L=yes
  7741. ;;
  7742. esac
  7743. fi
  7744. ;;
  7745. irix5* | irix6* | nonstopux*)
  7746. if test "$GCC" = yes; then
  7747. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7748. else
  7749. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  7750. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7751. fi
  7752. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7753. hardcode_libdir_separator=:
  7754. link_all_deplibs=yes
  7755. ;;
  7756. netbsd*)
  7757. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7758. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7759. else
  7760. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7761. fi
  7762. hardcode_libdir_flag_spec='-R$libdir'
  7763. hardcode_direct=yes
  7764. hardcode_shlibpath_var=no
  7765. ;;
  7766. newsos6)
  7767. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7768. hardcode_direct=yes
  7769. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7770. hardcode_libdir_separator=:
  7771. hardcode_shlibpath_var=no
  7772. ;;
  7773. openbsd*)
  7774. if test -f /usr/libexec/ld.so; then
  7775. hardcode_direct=yes
  7776. hardcode_shlibpath_var=no
  7777. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7778. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7779. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7780. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7781. export_dynamic_flag_spec='${wl}-E'
  7782. else
  7783. case $host_os in
  7784. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7785. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7786. hardcode_libdir_flag_spec='-R$libdir'
  7787. ;;
  7788. *)
  7789. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7790. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7791. ;;
  7792. esac
  7793. fi
  7794. else
  7795. ld_shlibs=no
  7796. fi
  7797. ;;
  7798. os2*)
  7799. hardcode_libdir_flag_spec='-L$libdir'
  7800. hardcode_minus_L=yes
  7801. allow_undefined_flag=unsupported
  7802. archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  7803. old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7804. ;;
  7805. osf3*)
  7806. if test "$GCC" = yes; then
  7807. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7808. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7809. else
  7810. allow_undefined_flag=' -expect_unresolved \*'
  7811. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  7812. fi
  7813. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7814. hardcode_libdir_separator=:
  7815. ;;
  7816. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7817. if test "$GCC" = yes; then
  7818. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  7819. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7820. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7821. else
  7822. allow_undefined_flag=' -expect_unresolved \*'
  7823. archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  7824. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  7825. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  7826. # Both c and cxx compiler support -rpath directly
  7827. hardcode_libdir_flag_spec='-rpath $libdir'
  7828. fi
  7829. hardcode_libdir_separator=:
  7830. ;;
  7831. solaris*)
  7832. no_undefined_flag=' -z text'
  7833. if test "$GCC" = yes; then
  7834. wlarc='${wl}'
  7835. archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7836. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7837. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7838. else
  7839. wlarc=''
  7840. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7841. archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7842. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7843. fi
  7844. hardcode_libdir_flag_spec='-R$libdir'
  7845. hardcode_shlibpath_var=no
  7846. case $host_os in
  7847. solaris2.[0-5] | solaris2.[0-5].*) ;;
  7848. *)
  7849. # The compiler driver will combine and reorder linker options,
  7850. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7851. # but is careful enough not to reorder.
  7852. # Supported since Solaris 2.6 (maybe 2.5.1?)
  7853. if test "$GCC" = yes; then
  7854. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7855. else
  7856. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  7857. fi
  7858. ;;
  7859. esac
  7860. link_all_deplibs=yes
  7861. ;;
  7862. sunos4*)
  7863. if test "x$host_vendor" = xsequent; then
  7864. # Use $CC to link under sequent, because it throws in some extra .o
  7865. # files that make .init and .fini sections work.
  7866. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7867. else
  7868. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7869. fi
  7870. hardcode_libdir_flag_spec='-L$libdir'
  7871. hardcode_direct=yes
  7872. hardcode_minus_L=yes
  7873. hardcode_shlibpath_var=no
  7874. ;;
  7875. sysv4)
  7876. case $host_vendor in
  7877. sni)
  7878. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7879. hardcode_direct=yes # is this really true???
  7880. ;;
  7881. siemens)
  7882. ## LD is ld it makes a PLAMLIB
  7883. ## CC just makes a GrossModule.
  7884. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7885. reload_cmds='$CC -r -o $output$reload_objs'
  7886. hardcode_direct=no
  7887. ;;
  7888. motorola)
  7889. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7890. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7891. ;;
  7892. esac
  7893. runpath_var='LD_RUN_PATH'
  7894. hardcode_shlibpath_var=no
  7895. ;;
  7896. sysv4.3*)
  7897. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7898. hardcode_shlibpath_var=no
  7899. export_dynamic_flag_spec='-Bexport'
  7900. ;;
  7901. sysv4*MP*)
  7902. if test -d /usr/nec; then
  7903. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7904. hardcode_shlibpath_var=no
  7905. runpath_var=LD_RUN_PATH
  7906. hardcode_runpath_var=yes
  7907. ld_shlibs=yes
  7908. fi
  7909. ;;
  7910. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  7911. no_undefined_flag='${wl}-z,text'
  7912. archive_cmds_need_lc=no
  7913. hardcode_shlibpath_var=no
  7914. runpath_var='LD_RUN_PATH'
  7915. if test "$GCC" = yes; then
  7916. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7917. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7918. else
  7919. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7920. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7921. fi
  7922. ;;
  7923. sysv5* | sco3.2v5* | sco5v6*)
  7924. # Note: We can NOT use -z defs as we might desire, because we do not
  7925. # link with -lc, and that would cause any symbols used from libc to
  7926. # always be unresolved, which means just about no library would
  7927. # ever link correctly. If we're not using GNU ld we use -z text
  7928. # though, which does catch some bad symbols but isn't as heavy-handed
  7929. # as -z defs.
  7930. no_undefined_flag='${wl}-z,text'
  7931. allow_undefined_flag='${wl}-z,nodefs'
  7932. archive_cmds_need_lc=no
  7933. hardcode_shlibpath_var=no
  7934. hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  7935. hardcode_libdir_separator=':'
  7936. link_all_deplibs=yes
  7937. export_dynamic_flag_spec='${wl}-Bexport'
  7938. runpath_var='LD_RUN_PATH'
  7939. if test "$GCC" = yes; then
  7940. archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7941. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7942. else
  7943. archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7944. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7945. fi
  7946. ;;
  7947. uts4*)
  7948. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7949. hardcode_libdir_flag_spec='-L$libdir'
  7950. hardcode_shlibpath_var=no
  7951. ;;
  7952. *)
  7953. ld_shlibs=no
  7954. ;;
  7955. esac
  7956. fi
  7957. { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7958. echo "${ECHO_T}$ld_shlibs" >&6; }
  7959. test "$ld_shlibs" = no && can_build_shared=no
  7960. #
  7961. # Do we need to explicitly link libc?
  7962. #
  7963. case "x$archive_cmds_need_lc" in
  7964. x|xyes)
  7965. # Assume -lc should be added
  7966. archive_cmds_need_lc=yes
  7967. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7968. case $archive_cmds in
  7969. *'~'*)
  7970. # FIXME: we may have to deal with multi-command sequences.
  7971. ;;
  7972. '$CC '*)
  7973. # Test whether the compiler implicitly links with -lc since on some
  7974. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7975. # to ld, don't add -lc before -lgcc.
  7976. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  7977. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  7978. $rm conftest*
  7979. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7980. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7981. (eval $ac_compile) 2>&5
  7982. ac_status=$?
  7983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7984. (exit $ac_status); } 2>conftest.err; then
  7985. soname=conftest
  7986. lib=conftest
  7987. libobjs=conftest.$ac_objext
  7988. deplibs=
  7989. wl=$lt_prog_compiler_wl
  7990. pic_flag=$lt_prog_compiler_pic
  7991. compiler_flags=-v
  7992. linker_flags=-v
  7993. verstring=
  7994. output_objdir=.
  7995. libname=conftest
  7996. lt_save_allow_undefined_flag=$allow_undefined_flag
  7997. allow_undefined_flag=
  7998. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  7999. (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8000. ac_status=$?
  8001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8002. (exit $ac_status); }
  8003. then
  8004. archive_cmds_need_lc=no
  8005. else
  8006. archive_cmds_need_lc=yes
  8007. fi
  8008. allow_undefined_flag=$lt_save_allow_undefined_flag
  8009. else
  8010. cat conftest.err 1>&5
  8011. fi
  8012. $rm conftest*
  8013. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  8014. echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
  8015. ;;
  8016. esac
  8017. fi
  8018. ;;
  8019. esac
  8020. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  8021. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  8022. library_names_spec=
  8023. libname_spec='lib$name'
  8024. soname_spec=
  8025. shrext_cmds=".so"
  8026. postinstall_cmds=
  8027. postuninstall_cmds=
  8028. finish_cmds=
  8029. finish_eval=
  8030. shlibpath_var=
  8031. shlibpath_overrides_runpath=unknown
  8032. version_type=none
  8033. dynamic_linker="$host_os ld.so"
  8034. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8035. if test "$GCC" = yes; then
  8036. case $host_os in
  8037. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8038. *) lt_awk_arg="/^libraries:/" ;;
  8039. esac
  8040. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8041. if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  8042. # if the path contains ";" then we assume it to be the separator
  8043. # otherwise default to the standard path separator (i.e. ":") - it is
  8044. # assumed that no part of a normal pathname contains ";" but that should
  8045. # okay in the real world where ";" in dirpaths is itself problematic.
  8046. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8047. else
  8048. lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8049. fi
  8050. # Ok, now we have the path, separated by spaces, we can step through it
  8051. # and add multilib dir if necessary.
  8052. lt_tmp_lt_search_path_spec=
  8053. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8054. for lt_sys_path in $lt_search_path_spec; do
  8055. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8056. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8057. else
  8058. test -d "$lt_sys_path" && \
  8059. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8060. fi
  8061. done
  8062. lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  8063. BEGIN {RS=" "; FS="/|\n";} {
  8064. lt_foo="";
  8065. lt_count=0;
  8066. for (lt_i = NF; lt_i > 0; lt_i--) {
  8067. if ($lt_i != "" && $lt_i != ".") {
  8068. if ($lt_i == "..") {
  8069. lt_count++;
  8070. } else {
  8071. if (lt_count == 0) {
  8072. lt_foo="/" $lt_i lt_foo;
  8073. } else {
  8074. lt_count--;
  8075. }
  8076. }
  8077. }
  8078. }
  8079. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8080. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8081. }'`
  8082. sys_lib_search_path_spec=`echo $lt_search_path_spec`
  8083. else
  8084. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8085. fi
  8086. need_lib_prefix=unknown
  8087. hardcode_into_libs=no
  8088. # when you set need_version to no, make sure it does not cause -set_version
  8089. # flags to be left without arguments
  8090. need_version=unknown
  8091. case $host_os in
  8092. aix3*)
  8093. version_type=linux
  8094. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8095. shlibpath_var=LIBPATH
  8096. # AIX 3 has no versioning support, so we append a major version to the name.
  8097. soname_spec='${libname}${release}${shared_ext}$major'
  8098. ;;
  8099. aix4* | aix5*)
  8100. version_type=linux
  8101. need_lib_prefix=no
  8102. need_version=no
  8103. hardcode_into_libs=yes
  8104. if test "$host_cpu" = ia64; then
  8105. # AIX 5 supports IA64
  8106. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8107. shlibpath_var=LD_LIBRARY_PATH
  8108. else
  8109. # With GCC up to 2.95.x, collect2 would create an import file
  8110. # for dependence libraries. The import file would start with
  8111. # the line `#! .'. This would cause the generated library to
  8112. # depend on `.', always an invalid library. This was fixed in
  8113. # development snapshots of GCC prior to 3.0.
  8114. case $host_os in
  8115. aix4 | aix4.[01] | aix4.[01].*)
  8116. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8117. echo ' yes '
  8118. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  8119. :
  8120. else
  8121. can_build_shared=no
  8122. fi
  8123. ;;
  8124. esac
  8125. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8126. # soname into executable. Probably we can add versioning support to
  8127. # collect2, so additional links can be useful in future.
  8128. if test "$aix_use_runtimelinking" = yes; then
  8129. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8130. # instead of lib<name>.a to let people know that these are not
  8131. # typical AIX shared libraries.
  8132. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8133. else
  8134. # We preserve .a as extension for shared libraries through AIX4.2
  8135. # and later when we are not doing run time linking.
  8136. library_names_spec='${libname}${release}.a $libname.a'
  8137. soname_spec='${libname}${release}${shared_ext}$major'
  8138. fi
  8139. shlibpath_var=LIBPATH
  8140. fi
  8141. ;;
  8142. amigaos*)
  8143. library_names_spec='$libname.ixlibrary $libname.a'
  8144. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8145. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8146. ;;
  8147. beos*)
  8148. library_names_spec='${libname}${shared_ext}'
  8149. dynamic_linker="$host_os ld.so"
  8150. shlibpath_var=LIBRARY_PATH
  8151. ;;
  8152. bsdi[45]*)
  8153. version_type=linux
  8154. need_version=no
  8155. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8156. soname_spec='${libname}${release}${shared_ext}$major'
  8157. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8158. shlibpath_var=LD_LIBRARY_PATH
  8159. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8160. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8161. # the default ld.so.conf also contains /usr/contrib/lib and
  8162. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8163. # libtool to hard-code these into programs
  8164. ;;
  8165. cygwin* | mingw* | pw32*)
  8166. version_type=windows
  8167. shrext_cmds=".dll"
  8168. need_version=no
  8169. need_lib_prefix=no
  8170. case $GCC,$host_os in
  8171. yes,cygwin* | yes,mingw* | yes,pw32*)
  8172. library_names_spec='$libname.dll.a'
  8173. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8174. postinstall_cmds='base_file=`basename \${file}`~
  8175. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  8176. dldir=$destdir/`dirname \$dlpath`~
  8177. test -d \$dldir || mkdir -p \$dldir~
  8178. $install_prog $dir/$dlname \$dldir/$dlname~
  8179. chmod a+x \$dldir/$dlname'
  8180. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8181. dlpath=$dir/\$dldll~
  8182. $rm \$dlpath'
  8183. shlibpath_overrides_runpath=yes
  8184. case $host_os in
  8185. cygwin*)
  8186. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8187. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8188. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8189. ;;
  8190. mingw*)
  8191. # MinGW DLLs use traditional 'lib' prefix
  8192. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8193. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8194. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  8195. # It is most probably a Windows format PATH printed by
  8196. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8197. # path with ; separators, and with drive letters. We can handle the
  8198. # drive letters (cygwin fileutils understands them), so leave them,
  8199. # especially as we might pass files found there to a mingw objdump,
  8200. # which wouldn't understand a cygwinified path. Ahh.
  8201. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8202. else
  8203. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8204. fi
  8205. ;;
  8206. pw32*)
  8207. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8208. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8209. ;;
  8210. esac
  8211. ;;
  8212. *)
  8213. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8214. ;;
  8215. esac
  8216. dynamic_linker='Win32 ld.exe'
  8217. # FIXME: first we should search . and the directory the executable is in
  8218. shlibpath_var=PATH
  8219. ;;
  8220. darwin* | rhapsody*)
  8221. dynamic_linker="$host_os dyld"
  8222. version_type=darwin
  8223. need_lib_prefix=no
  8224. need_version=no
  8225. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8226. soname_spec='${libname}${release}${major}$shared_ext'
  8227. shlibpath_overrides_runpath=yes
  8228. shlibpath_var=DYLD_LIBRARY_PATH
  8229. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8230. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8231. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8232. ;;
  8233. dgux*)
  8234. version_type=linux
  8235. need_lib_prefix=no
  8236. need_version=no
  8237. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8238. soname_spec='${libname}${release}${shared_ext}$major'
  8239. shlibpath_var=LD_LIBRARY_PATH
  8240. ;;
  8241. freebsd1*)
  8242. dynamic_linker=no
  8243. ;;
  8244. freebsd* | dragonfly*)
  8245. # DragonFly does not have aout. When/if they implement a new
  8246. # versioning mechanism, adjust this.
  8247. if test -x /usr/bin/objformat; then
  8248. objformat=`/usr/bin/objformat`
  8249. else
  8250. case $host_os in
  8251. freebsd[123]*) objformat=aout ;;
  8252. *) objformat=elf ;;
  8253. esac
  8254. fi
  8255. version_type=freebsd-$objformat
  8256. case $version_type in
  8257. freebsd-elf*)
  8258. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8259. need_version=no
  8260. need_lib_prefix=no
  8261. ;;
  8262. freebsd-*)
  8263. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8264. need_version=yes
  8265. ;;
  8266. esac
  8267. shlibpath_var=LD_LIBRARY_PATH
  8268. case $host_os in
  8269. freebsd2*)
  8270. shlibpath_overrides_runpath=yes
  8271. ;;
  8272. freebsd3.[01]* | freebsdelf3.[01]*)
  8273. shlibpath_overrides_runpath=yes
  8274. hardcode_into_libs=yes
  8275. ;;
  8276. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8277. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8278. shlibpath_overrides_runpath=no
  8279. hardcode_into_libs=yes
  8280. ;;
  8281. *) # from 4.6 on, and DragonFly
  8282. shlibpath_overrides_runpath=yes
  8283. hardcode_into_libs=yes
  8284. ;;
  8285. esac
  8286. ;;
  8287. gnu*)
  8288. version_type=linux
  8289. need_lib_prefix=no
  8290. need_version=no
  8291. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8292. soname_spec='${libname}${release}${shared_ext}$major'
  8293. shlibpath_var=LD_LIBRARY_PATH
  8294. hardcode_into_libs=yes
  8295. ;;
  8296. hpux9* | hpux10* | hpux11*)
  8297. # Give a soname corresponding to the major version so that dld.sl refuses to
  8298. # link against other versions.
  8299. version_type=sunos
  8300. need_lib_prefix=no
  8301. need_version=no
  8302. case $host_cpu in
  8303. ia64*)
  8304. shrext_cmds='.so'
  8305. hardcode_into_libs=yes
  8306. dynamic_linker="$host_os dld.so"
  8307. shlibpath_var=LD_LIBRARY_PATH
  8308. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8309. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8310. soname_spec='${libname}${release}${shared_ext}$major'
  8311. if test "X$HPUX_IA64_MODE" = X32; then
  8312. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8313. else
  8314. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8315. fi
  8316. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8317. ;;
  8318. hppa*64*)
  8319. shrext_cmds='.sl'
  8320. hardcode_into_libs=yes
  8321. dynamic_linker="$host_os dld.sl"
  8322. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8323. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8324. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8325. soname_spec='${libname}${release}${shared_ext}$major'
  8326. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8327. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8328. ;;
  8329. *)
  8330. shrext_cmds='.sl'
  8331. dynamic_linker="$host_os dld.sl"
  8332. shlibpath_var=SHLIB_PATH
  8333. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8334. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8335. soname_spec='${libname}${release}${shared_ext}$major'
  8336. ;;
  8337. esac
  8338. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8339. postinstall_cmds='chmod 555 $lib'
  8340. ;;
  8341. interix[3-9]*)
  8342. version_type=linux
  8343. need_lib_prefix=no
  8344. need_version=no
  8345. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8346. soname_spec='${libname}${release}${shared_ext}$major'
  8347. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8348. shlibpath_var=LD_LIBRARY_PATH
  8349. shlibpath_overrides_runpath=no
  8350. hardcode_into_libs=yes
  8351. ;;
  8352. irix5* | irix6* | nonstopux*)
  8353. case $host_os in
  8354. nonstopux*) version_type=nonstopux ;;
  8355. *)
  8356. if test "$lt_cv_prog_gnu_ld" = yes; then
  8357. version_type=linux
  8358. else
  8359. version_type=irix
  8360. fi ;;
  8361. esac
  8362. need_lib_prefix=no
  8363. need_version=no
  8364. soname_spec='${libname}${release}${shared_ext}$major'
  8365. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8366. case $host_os in
  8367. irix5* | nonstopux*)
  8368. libsuff= shlibsuff=
  8369. ;;
  8370. *)
  8371. case $LD in # libtool.m4 will add one of these switches to LD
  8372. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8373. libsuff= shlibsuff= libmagic=32-bit;;
  8374. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8375. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8376. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8377. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8378. *) libsuff= shlibsuff= libmagic=never-match;;
  8379. esac
  8380. ;;
  8381. esac
  8382. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8383. shlibpath_overrides_runpath=no
  8384. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8385. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8386. hardcode_into_libs=yes
  8387. ;;
  8388. # No shared lib support for Linux oldld, aout, or coff.
  8389. linux*oldld* | linux*aout* | linux*coff*)
  8390. dynamic_linker=no
  8391. ;;
  8392. # This must be Linux ELF.
  8393. linux* | k*bsd*-gnu)
  8394. version_type=linux
  8395. need_lib_prefix=no
  8396. need_version=no
  8397. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8398. soname_spec='${libname}${release}${shared_ext}$major'
  8399. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8400. shlibpath_var=LD_LIBRARY_PATH
  8401. shlibpath_overrides_runpath=no
  8402. # This implies no fast_install, which is unacceptable.
  8403. # Some rework will be needed to allow for fast_install
  8404. # before this can be enabled.
  8405. hardcode_into_libs=yes
  8406. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8407. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8408. # Append ld.so.conf contents to the search path
  8409. if test -f /etc/ld.so.conf; then
  8410. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  8411. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  8412. fi
  8413. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8414. # powerpc, because MkLinux only supported shared libraries with the
  8415. # GNU dynamic linker. Since this was broken with cross compilers,
  8416. # most powerpc-linux boxes support dynamic linking these days and
  8417. # people can always --disable-shared, the test was removed, and we
  8418. # assume the GNU/Linux dynamic linker is in use.
  8419. dynamic_linker='GNU/Linux ld.so'
  8420. ;;
  8421. netbsd*)
  8422. version_type=sunos
  8423. need_lib_prefix=no
  8424. need_version=no
  8425. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8426. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8427. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8428. dynamic_linker='NetBSD (a.out) ld.so'
  8429. else
  8430. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8431. soname_spec='${libname}${release}${shared_ext}$major'
  8432. dynamic_linker='NetBSD ld.elf_so'
  8433. fi
  8434. shlibpath_var=LD_LIBRARY_PATH
  8435. shlibpath_overrides_runpath=yes
  8436. hardcode_into_libs=yes
  8437. ;;
  8438. newsos6)
  8439. version_type=linux
  8440. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8441. shlibpath_var=LD_LIBRARY_PATH
  8442. shlibpath_overrides_runpath=yes
  8443. ;;
  8444. nto-qnx*)
  8445. version_type=linux
  8446. need_lib_prefix=no
  8447. need_version=no
  8448. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8449. soname_spec='${libname}${release}${shared_ext}$major'
  8450. shlibpath_var=LD_LIBRARY_PATH
  8451. shlibpath_overrides_runpath=yes
  8452. ;;
  8453. openbsd*)
  8454. version_type=sunos
  8455. sys_lib_dlsearch_path_spec="/usr/lib"
  8456. need_lib_prefix=no
  8457. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8458. case $host_os in
  8459. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8460. *) need_version=no ;;
  8461. esac
  8462. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8463. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8464. shlibpath_var=LD_LIBRARY_PATH
  8465. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8466. case $host_os in
  8467. openbsd2.[89] | openbsd2.[89].*)
  8468. shlibpath_overrides_runpath=no
  8469. ;;
  8470. *)
  8471. shlibpath_overrides_runpath=yes
  8472. ;;
  8473. esac
  8474. else
  8475. shlibpath_overrides_runpath=yes
  8476. fi
  8477. ;;
  8478. os2*)
  8479. libname_spec='$name'
  8480. shrext_cmds=".dll"
  8481. need_lib_prefix=no
  8482. library_names_spec='$libname${shared_ext} $libname.a'
  8483. dynamic_linker='OS/2 ld.exe'
  8484. shlibpath_var=LIBPATH
  8485. ;;
  8486. osf3* | osf4* | osf5*)
  8487. version_type=osf
  8488. need_lib_prefix=no
  8489. need_version=no
  8490. soname_spec='${libname}${release}${shared_ext}$major'
  8491. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8492. shlibpath_var=LD_LIBRARY_PATH
  8493. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8494. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8495. ;;
  8496. rdos*)
  8497. dynamic_linker=no
  8498. ;;
  8499. solaris*)
  8500. version_type=linux
  8501. need_lib_prefix=no
  8502. need_version=no
  8503. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8504. soname_spec='${libname}${release}${shared_ext}$major'
  8505. shlibpath_var=LD_LIBRARY_PATH
  8506. shlibpath_overrides_runpath=yes
  8507. hardcode_into_libs=yes
  8508. # ldd complains unless libraries are executable
  8509. postinstall_cmds='chmod +x $lib'
  8510. ;;
  8511. sunos4*)
  8512. version_type=sunos
  8513. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8514. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8515. shlibpath_var=LD_LIBRARY_PATH
  8516. shlibpath_overrides_runpath=yes
  8517. if test "$with_gnu_ld" = yes; then
  8518. need_lib_prefix=no
  8519. fi
  8520. need_version=yes
  8521. ;;
  8522. sysv4 | sysv4.3*)
  8523. version_type=linux
  8524. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8525. soname_spec='${libname}${release}${shared_ext}$major'
  8526. shlibpath_var=LD_LIBRARY_PATH
  8527. case $host_vendor in
  8528. sni)
  8529. shlibpath_overrides_runpath=no
  8530. need_lib_prefix=no
  8531. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8532. runpath_var=LD_RUN_PATH
  8533. ;;
  8534. siemens)
  8535. need_lib_prefix=no
  8536. ;;
  8537. motorola)
  8538. need_lib_prefix=no
  8539. need_version=no
  8540. shlibpath_overrides_runpath=no
  8541. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8542. ;;
  8543. esac
  8544. ;;
  8545. sysv4*MP*)
  8546. if test -d /usr/nec ;then
  8547. version_type=linux
  8548. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8549. soname_spec='$libname${shared_ext}.$major'
  8550. shlibpath_var=LD_LIBRARY_PATH
  8551. fi
  8552. ;;
  8553. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8554. version_type=freebsd-elf
  8555. need_lib_prefix=no
  8556. need_version=no
  8557. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8558. soname_spec='${libname}${release}${shared_ext}$major'
  8559. shlibpath_var=LD_LIBRARY_PATH
  8560. hardcode_into_libs=yes
  8561. if test "$with_gnu_ld" = yes; then
  8562. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8563. shlibpath_overrides_runpath=no
  8564. else
  8565. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8566. shlibpath_overrides_runpath=yes
  8567. case $host_os in
  8568. sco3.2v5*)
  8569. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8570. ;;
  8571. esac
  8572. fi
  8573. sys_lib_dlsearch_path_spec='/usr/lib'
  8574. ;;
  8575. uts4*)
  8576. version_type=linux
  8577. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8578. soname_spec='${libname}${release}${shared_ext}$major'
  8579. shlibpath_var=LD_LIBRARY_PATH
  8580. ;;
  8581. *)
  8582. dynamic_linker=no
  8583. ;;
  8584. esac
  8585. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  8586. echo "${ECHO_T}$dynamic_linker" >&6; }
  8587. test "$dynamic_linker" = no && can_build_shared=no
  8588. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8589. if test "$GCC" = yes; then
  8590. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8591. fi
  8592. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  8593. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  8594. hardcode_action=
  8595. if test -n "$hardcode_libdir_flag_spec" || \
  8596. test -n "$runpath_var" || \
  8597. test "X$hardcode_automatic" = "Xyes" ; then
  8598. # We can hardcode non-existent directories.
  8599. if test "$hardcode_direct" != no &&
  8600. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8601. # have to relink, otherwise we might link with an installed library
  8602. # when we should be linking with a yet-to-be-installed one
  8603. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8604. test "$hardcode_minus_L" != no; then
  8605. # Linking always hardcodes the temporary library directory.
  8606. hardcode_action=relink
  8607. else
  8608. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8609. hardcode_action=immediate
  8610. fi
  8611. else
  8612. # We cannot hardcode anything, or else we can only hardcode existing
  8613. # directories.
  8614. hardcode_action=unsupported
  8615. fi
  8616. { echo "$as_me:$LINENO: result: $hardcode_action" >&5
  8617. echo "${ECHO_T}$hardcode_action" >&6; }
  8618. if test "$hardcode_action" = relink; then
  8619. # Fast installation is not supported
  8620. enable_fast_install=no
  8621. elif test "$shlibpath_overrides_runpath" = yes ||
  8622. test "$enable_shared" = no; then
  8623. # Fast installation is not necessary
  8624. enable_fast_install=needless
  8625. fi
  8626. striplib=
  8627. old_striplib=
  8628. { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  8629. echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
  8630. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  8631. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  8632. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  8633. { echo "$as_me:$LINENO: result: yes" >&5
  8634. echo "${ECHO_T}yes" >&6; }
  8635. else
  8636. # FIXME - insert some real tests, host_os isn't really good enough
  8637. case $host_os in
  8638. darwin*)
  8639. if test -n "$STRIP" ; then
  8640. striplib="$STRIP -x"
  8641. old_striplib="$STRIP -S"
  8642. { echo "$as_me:$LINENO: result: yes" >&5
  8643. echo "${ECHO_T}yes" >&6; }
  8644. else
  8645. { echo "$as_me:$LINENO: result: no" >&5
  8646. echo "${ECHO_T}no" >&6; }
  8647. fi
  8648. ;;
  8649. *)
  8650. { echo "$as_me:$LINENO: result: no" >&5
  8651. echo "${ECHO_T}no" >&6; }
  8652. ;;
  8653. esac
  8654. fi
  8655. if test "x$enable_dlopen" != xyes; then
  8656. enable_dlopen=unknown
  8657. enable_dlopen_self=unknown
  8658. enable_dlopen_self_static=unknown
  8659. else
  8660. lt_cv_dlopen=no
  8661. lt_cv_dlopen_libs=
  8662. case $host_os in
  8663. beos*)
  8664. lt_cv_dlopen="load_add_on"
  8665. lt_cv_dlopen_libs=
  8666. lt_cv_dlopen_self=yes
  8667. ;;
  8668. mingw* | pw32*)
  8669. lt_cv_dlopen="LoadLibrary"
  8670. lt_cv_dlopen_libs=
  8671. ;;
  8672. cygwin*)
  8673. lt_cv_dlopen="dlopen"
  8674. lt_cv_dlopen_libs=
  8675. ;;
  8676. darwin*)
  8677. # if libdl is installed we need to link against it
  8678. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8679. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8680. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8681. echo $ECHO_N "(cached) $ECHO_C" >&6
  8682. else
  8683. ac_check_lib_save_LIBS=$LIBS
  8684. LIBS="-ldl $LIBS"
  8685. cat >conftest.$ac_ext <<_ACEOF
  8686. /* confdefs.h. */
  8687. _ACEOF
  8688. cat confdefs.h >>conftest.$ac_ext
  8689. cat >>conftest.$ac_ext <<_ACEOF
  8690. /* end confdefs.h. */
  8691. /* Override any GCC internal prototype to avoid an error.
  8692. Use char because int might match the return type of a GCC
  8693. builtin and then its argument prototype would still apply. */
  8694. #ifdef __cplusplus
  8695. extern "C"
  8696. #endif
  8697. char dlopen ();
  8698. int
  8699. main ()
  8700. {
  8701. return dlopen ();
  8702. ;
  8703. return 0;
  8704. }
  8705. _ACEOF
  8706. rm -f conftest.$ac_objext conftest$ac_exeext
  8707. if { (ac_try="$ac_link"
  8708. case "(($ac_try" in
  8709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8710. *) ac_try_echo=$ac_try;;
  8711. esac
  8712. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8713. (eval "$ac_link") 2>conftest.er1
  8714. ac_status=$?
  8715. grep -v '^ *+' conftest.er1 >conftest.err
  8716. rm -f conftest.er1
  8717. cat conftest.err >&5
  8718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8719. (exit $ac_status); } && {
  8720. test -z "$ac_c_werror_flag" ||
  8721. test ! -s conftest.err
  8722. } && test -s conftest$ac_exeext &&
  8723. $as_test_x conftest$ac_exeext; then
  8724. ac_cv_lib_dl_dlopen=yes
  8725. else
  8726. echo "$as_me: failed program was:" >&5
  8727. sed 's/^/| /' conftest.$ac_ext >&5
  8728. ac_cv_lib_dl_dlopen=no
  8729. fi
  8730. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8731. conftest$ac_exeext conftest.$ac_ext
  8732. LIBS=$ac_check_lib_save_LIBS
  8733. fi
  8734. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8735. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  8736. if test $ac_cv_lib_dl_dlopen = yes; then
  8737. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8738. else
  8739. lt_cv_dlopen="dyld"
  8740. lt_cv_dlopen_libs=
  8741. lt_cv_dlopen_self=yes
  8742. fi
  8743. ;;
  8744. *)
  8745. { echo "$as_me:$LINENO: checking for shl_load" >&5
  8746. echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
  8747. if test "${ac_cv_func_shl_load+set}" = set; then
  8748. echo $ECHO_N "(cached) $ECHO_C" >&6
  8749. else
  8750. cat >conftest.$ac_ext <<_ACEOF
  8751. /* confdefs.h. */
  8752. _ACEOF
  8753. cat confdefs.h >>conftest.$ac_ext
  8754. cat >>conftest.$ac_ext <<_ACEOF
  8755. /* end confdefs.h. */
  8756. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  8757. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8758. #define shl_load innocuous_shl_load
  8759. /* System header to define __stub macros and hopefully few prototypes,
  8760. which can conflict with char shl_load (); below.
  8761. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8762. <limits.h> exists even on freestanding compilers. */
  8763. #ifdef __STDC__
  8764. # include <limits.h>
  8765. #else
  8766. # include <assert.h>
  8767. #endif
  8768. #undef shl_load
  8769. /* Override any GCC internal prototype to avoid an error.
  8770. Use char because int might match the return type of a GCC
  8771. builtin and then its argument prototype would still apply. */
  8772. #ifdef __cplusplus
  8773. extern "C"
  8774. #endif
  8775. char shl_load ();
  8776. /* The GNU C library defines this for functions which it implements
  8777. to always fail with ENOSYS. Some functions are actually named
  8778. something starting with __ and the normal name is an alias. */
  8779. #if defined __stub_shl_load || defined __stub___shl_load
  8780. choke me
  8781. #endif
  8782. int
  8783. main ()
  8784. {
  8785. return shl_load ();
  8786. ;
  8787. return 0;
  8788. }
  8789. _ACEOF
  8790. rm -f conftest.$ac_objext conftest$ac_exeext
  8791. if { (ac_try="$ac_link"
  8792. case "(($ac_try" in
  8793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8794. *) ac_try_echo=$ac_try;;
  8795. esac
  8796. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8797. (eval "$ac_link") 2>conftest.er1
  8798. ac_status=$?
  8799. grep -v '^ *+' conftest.er1 >conftest.err
  8800. rm -f conftest.er1
  8801. cat conftest.err >&5
  8802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8803. (exit $ac_status); } && {
  8804. test -z "$ac_c_werror_flag" ||
  8805. test ! -s conftest.err
  8806. } && test -s conftest$ac_exeext &&
  8807. $as_test_x conftest$ac_exeext; then
  8808. ac_cv_func_shl_load=yes
  8809. else
  8810. echo "$as_me: failed program was:" >&5
  8811. sed 's/^/| /' conftest.$ac_ext >&5
  8812. ac_cv_func_shl_load=no
  8813. fi
  8814. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8815. conftest$ac_exeext conftest.$ac_ext
  8816. fi
  8817. { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  8818. echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
  8819. if test $ac_cv_func_shl_load = yes; then
  8820. lt_cv_dlopen="shl_load"
  8821. else
  8822. { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  8823. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
  8824. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  8825. echo $ECHO_N "(cached) $ECHO_C" >&6
  8826. else
  8827. ac_check_lib_save_LIBS=$LIBS
  8828. LIBS="-ldld $LIBS"
  8829. cat >conftest.$ac_ext <<_ACEOF
  8830. /* confdefs.h. */
  8831. _ACEOF
  8832. cat confdefs.h >>conftest.$ac_ext
  8833. cat >>conftest.$ac_ext <<_ACEOF
  8834. /* end confdefs.h. */
  8835. /* Override any GCC internal prototype to avoid an error.
  8836. Use char because int might match the return type of a GCC
  8837. builtin and then its argument prototype would still apply. */
  8838. #ifdef __cplusplus
  8839. extern "C"
  8840. #endif
  8841. char shl_load ();
  8842. int
  8843. main ()
  8844. {
  8845. return shl_load ();
  8846. ;
  8847. return 0;
  8848. }
  8849. _ACEOF
  8850. rm -f conftest.$ac_objext conftest$ac_exeext
  8851. if { (ac_try="$ac_link"
  8852. case "(($ac_try" in
  8853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8854. *) ac_try_echo=$ac_try;;
  8855. esac
  8856. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8857. (eval "$ac_link") 2>conftest.er1
  8858. ac_status=$?
  8859. grep -v '^ *+' conftest.er1 >conftest.err
  8860. rm -f conftest.er1
  8861. cat conftest.err >&5
  8862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8863. (exit $ac_status); } && {
  8864. test -z "$ac_c_werror_flag" ||
  8865. test ! -s conftest.err
  8866. } && test -s conftest$ac_exeext &&
  8867. $as_test_x conftest$ac_exeext; then
  8868. ac_cv_lib_dld_shl_load=yes
  8869. else
  8870. echo "$as_me: failed program was:" >&5
  8871. sed 's/^/| /' conftest.$ac_ext >&5
  8872. ac_cv_lib_dld_shl_load=no
  8873. fi
  8874. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8875. conftest$ac_exeext conftest.$ac_ext
  8876. LIBS=$ac_check_lib_save_LIBS
  8877. fi
  8878. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  8879. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
  8880. if test $ac_cv_lib_dld_shl_load = yes; then
  8881. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  8882. else
  8883. { echo "$as_me:$LINENO: checking for dlopen" >&5
  8884. echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
  8885. if test "${ac_cv_func_dlopen+set}" = set; then
  8886. echo $ECHO_N "(cached) $ECHO_C" >&6
  8887. else
  8888. cat >conftest.$ac_ext <<_ACEOF
  8889. /* confdefs.h. */
  8890. _ACEOF
  8891. cat confdefs.h >>conftest.$ac_ext
  8892. cat >>conftest.$ac_ext <<_ACEOF
  8893. /* end confdefs.h. */
  8894. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  8895. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8896. #define dlopen innocuous_dlopen
  8897. /* System header to define __stub macros and hopefully few prototypes,
  8898. which can conflict with char dlopen (); below.
  8899. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8900. <limits.h> exists even on freestanding compilers. */
  8901. #ifdef __STDC__
  8902. # include <limits.h>
  8903. #else
  8904. # include <assert.h>
  8905. #endif
  8906. #undef dlopen
  8907. /* Override any GCC internal prototype to avoid an error.
  8908. Use char because int might match the return type of a GCC
  8909. builtin and then its argument prototype would still apply. */
  8910. #ifdef __cplusplus
  8911. extern "C"
  8912. #endif
  8913. char dlopen ();
  8914. /* The GNU C library defines this for functions which it implements
  8915. to always fail with ENOSYS. Some functions are actually named
  8916. something starting with __ and the normal name is an alias. */
  8917. #if defined __stub_dlopen || defined __stub___dlopen
  8918. choke me
  8919. #endif
  8920. int
  8921. main ()
  8922. {
  8923. return dlopen ();
  8924. ;
  8925. return 0;
  8926. }
  8927. _ACEOF
  8928. rm -f conftest.$ac_objext conftest$ac_exeext
  8929. if { (ac_try="$ac_link"
  8930. case "(($ac_try" in
  8931. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8932. *) ac_try_echo=$ac_try;;
  8933. esac
  8934. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8935. (eval "$ac_link") 2>conftest.er1
  8936. ac_status=$?
  8937. grep -v '^ *+' conftest.er1 >conftest.err
  8938. rm -f conftest.er1
  8939. cat conftest.err >&5
  8940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8941. (exit $ac_status); } && {
  8942. test -z "$ac_c_werror_flag" ||
  8943. test ! -s conftest.err
  8944. } && test -s conftest$ac_exeext &&
  8945. $as_test_x conftest$ac_exeext; then
  8946. ac_cv_func_dlopen=yes
  8947. else
  8948. echo "$as_me: failed program was:" >&5
  8949. sed 's/^/| /' conftest.$ac_ext >&5
  8950. ac_cv_func_dlopen=no
  8951. fi
  8952. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8953. conftest$ac_exeext conftest.$ac_ext
  8954. fi
  8955. { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  8956. echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
  8957. if test $ac_cv_func_dlopen = yes; then
  8958. lt_cv_dlopen="dlopen"
  8959. else
  8960. { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  8961. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
  8962. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  8963. echo $ECHO_N "(cached) $ECHO_C" >&6
  8964. else
  8965. ac_check_lib_save_LIBS=$LIBS
  8966. LIBS="-ldl $LIBS"
  8967. cat >conftest.$ac_ext <<_ACEOF
  8968. /* confdefs.h. */
  8969. _ACEOF
  8970. cat confdefs.h >>conftest.$ac_ext
  8971. cat >>conftest.$ac_ext <<_ACEOF
  8972. /* end confdefs.h. */
  8973. /* Override any GCC internal prototype to avoid an error.
  8974. Use char because int might match the return type of a GCC
  8975. builtin and then its argument prototype would still apply. */
  8976. #ifdef __cplusplus
  8977. extern "C"
  8978. #endif
  8979. char dlopen ();
  8980. int
  8981. main ()
  8982. {
  8983. return dlopen ();
  8984. ;
  8985. return 0;
  8986. }
  8987. _ACEOF
  8988. rm -f conftest.$ac_objext conftest$ac_exeext
  8989. if { (ac_try="$ac_link"
  8990. case "(($ac_try" in
  8991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8992. *) ac_try_echo=$ac_try;;
  8993. esac
  8994. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8995. (eval "$ac_link") 2>conftest.er1
  8996. ac_status=$?
  8997. grep -v '^ *+' conftest.er1 >conftest.err
  8998. rm -f conftest.er1
  8999. cat conftest.err >&5
  9000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9001. (exit $ac_status); } && {
  9002. test -z "$ac_c_werror_flag" ||
  9003. test ! -s conftest.err
  9004. } && test -s conftest$ac_exeext &&
  9005. $as_test_x conftest$ac_exeext; then
  9006. ac_cv_lib_dl_dlopen=yes
  9007. else
  9008. echo "$as_me: failed program was:" >&5
  9009. sed 's/^/| /' conftest.$ac_ext >&5
  9010. ac_cv_lib_dl_dlopen=no
  9011. fi
  9012. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9013. conftest$ac_exeext conftest.$ac_ext
  9014. LIBS=$ac_check_lib_save_LIBS
  9015. fi
  9016. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9017. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
  9018. if test $ac_cv_lib_dl_dlopen = yes; then
  9019. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9020. else
  9021. { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  9022. echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
  9023. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  9024. echo $ECHO_N "(cached) $ECHO_C" >&6
  9025. else
  9026. ac_check_lib_save_LIBS=$LIBS
  9027. LIBS="-lsvld $LIBS"
  9028. cat >conftest.$ac_ext <<_ACEOF
  9029. /* confdefs.h. */
  9030. _ACEOF
  9031. cat confdefs.h >>conftest.$ac_ext
  9032. cat >>conftest.$ac_ext <<_ACEOF
  9033. /* end confdefs.h. */
  9034. /* Override any GCC internal prototype to avoid an error.
  9035. Use char because int might match the return type of a GCC
  9036. builtin and then its argument prototype would still apply. */
  9037. #ifdef __cplusplus
  9038. extern "C"
  9039. #endif
  9040. char dlopen ();
  9041. int
  9042. main ()
  9043. {
  9044. return dlopen ();
  9045. ;
  9046. return 0;
  9047. }
  9048. _ACEOF
  9049. rm -f conftest.$ac_objext conftest$ac_exeext
  9050. if { (ac_try="$ac_link"
  9051. case "(($ac_try" in
  9052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9053. *) ac_try_echo=$ac_try;;
  9054. esac
  9055. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9056. (eval "$ac_link") 2>conftest.er1
  9057. ac_status=$?
  9058. grep -v '^ *+' conftest.er1 >conftest.err
  9059. rm -f conftest.er1
  9060. cat conftest.err >&5
  9061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9062. (exit $ac_status); } && {
  9063. test -z "$ac_c_werror_flag" ||
  9064. test ! -s conftest.err
  9065. } && test -s conftest$ac_exeext &&
  9066. $as_test_x conftest$ac_exeext; then
  9067. ac_cv_lib_svld_dlopen=yes
  9068. else
  9069. echo "$as_me: failed program was:" >&5
  9070. sed 's/^/| /' conftest.$ac_ext >&5
  9071. ac_cv_lib_svld_dlopen=no
  9072. fi
  9073. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9074. conftest$ac_exeext conftest.$ac_ext
  9075. LIBS=$ac_check_lib_save_LIBS
  9076. fi
  9077. { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  9078. echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
  9079. if test $ac_cv_lib_svld_dlopen = yes; then
  9080. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9081. else
  9082. { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  9083. echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
  9084. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  9085. echo $ECHO_N "(cached) $ECHO_C" >&6
  9086. else
  9087. ac_check_lib_save_LIBS=$LIBS
  9088. LIBS="-ldld $LIBS"
  9089. cat >conftest.$ac_ext <<_ACEOF
  9090. /* confdefs.h. */
  9091. _ACEOF
  9092. cat confdefs.h >>conftest.$ac_ext
  9093. cat >>conftest.$ac_ext <<_ACEOF
  9094. /* end confdefs.h. */
  9095. /* Override any GCC internal prototype to avoid an error.
  9096. Use char because int might match the return type of a GCC
  9097. builtin and then its argument prototype would still apply. */
  9098. #ifdef __cplusplus
  9099. extern "C"
  9100. #endif
  9101. char dld_link ();
  9102. int
  9103. main ()
  9104. {
  9105. return dld_link ();
  9106. ;
  9107. return 0;
  9108. }
  9109. _ACEOF
  9110. rm -f conftest.$ac_objext conftest$ac_exeext
  9111. if { (ac_try="$ac_link"
  9112. case "(($ac_try" in
  9113. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9114. *) ac_try_echo=$ac_try;;
  9115. esac
  9116. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9117. (eval "$ac_link") 2>conftest.er1
  9118. ac_status=$?
  9119. grep -v '^ *+' conftest.er1 >conftest.err
  9120. rm -f conftest.er1
  9121. cat conftest.err >&5
  9122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9123. (exit $ac_status); } && {
  9124. test -z "$ac_c_werror_flag" ||
  9125. test ! -s conftest.err
  9126. } && test -s conftest$ac_exeext &&
  9127. $as_test_x conftest$ac_exeext; then
  9128. ac_cv_lib_dld_dld_link=yes
  9129. else
  9130. echo "$as_me: failed program was:" >&5
  9131. sed 's/^/| /' conftest.$ac_ext >&5
  9132. ac_cv_lib_dld_dld_link=no
  9133. fi
  9134. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9135. conftest$ac_exeext conftest.$ac_ext
  9136. LIBS=$ac_check_lib_save_LIBS
  9137. fi
  9138. { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  9139. echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
  9140. if test $ac_cv_lib_dld_dld_link = yes; then
  9141. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  9142. fi
  9143. fi
  9144. fi
  9145. fi
  9146. fi
  9147. fi
  9148. ;;
  9149. esac
  9150. if test "x$lt_cv_dlopen" != xno; then
  9151. enable_dlopen=yes
  9152. else
  9153. enable_dlopen=no
  9154. fi
  9155. case $lt_cv_dlopen in
  9156. dlopen)
  9157. save_CPPFLAGS="$CPPFLAGS"
  9158. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9159. save_LDFLAGS="$LDFLAGS"
  9160. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9161. save_LIBS="$LIBS"
  9162. LIBS="$lt_cv_dlopen_libs $LIBS"
  9163. { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  9164. echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
  9165. if test "${lt_cv_dlopen_self+set}" = set; then
  9166. echo $ECHO_N "(cached) $ECHO_C" >&6
  9167. else
  9168. if test "$cross_compiling" = yes; then :
  9169. lt_cv_dlopen_self=cross
  9170. else
  9171. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9172. lt_status=$lt_dlunknown
  9173. cat > conftest.$ac_ext <<EOF
  9174. #line 10181 "configure"
  9175. #include "confdefs.h"
  9176. #if HAVE_DLFCN_H
  9177. #include <dlfcn.h>
  9178. #endif
  9179. #include <stdio.h>
  9180. #ifdef RTLD_GLOBAL
  9181. # define LT_DLGLOBAL RTLD_GLOBAL
  9182. #else
  9183. # ifdef DL_GLOBAL
  9184. # define LT_DLGLOBAL DL_GLOBAL
  9185. # else
  9186. # define LT_DLGLOBAL 0
  9187. # endif
  9188. #endif
  9189. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9190. find out it does not work in some platform. */
  9191. #ifndef LT_DLLAZY_OR_NOW
  9192. # ifdef RTLD_LAZY
  9193. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9194. # else
  9195. # ifdef DL_LAZY
  9196. # define LT_DLLAZY_OR_NOW DL_LAZY
  9197. # else
  9198. # ifdef RTLD_NOW
  9199. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9200. # else
  9201. # ifdef DL_NOW
  9202. # define LT_DLLAZY_OR_NOW DL_NOW
  9203. # else
  9204. # define LT_DLLAZY_OR_NOW 0
  9205. # endif
  9206. # endif
  9207. # endif
  9208. # endif
  9209. #endif
  9210. #ifdef __cplusplus
  9211. extern "C" void exit (int);
  9212. #endif
  9213. void fnord() { int i=42;}
  9214. int main ()
  9215. {
  9216. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9217. int status = $lt_dlunknown;
  9218. if (self)
  9219. {
  9220. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9221. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9222. /* dlclose (self); */
  9223. }
  9224. else
  9225. puts (dlerror ());
  9226. exit (status);
  9227. }
  9228. EOF
  9229. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9230. (eval $ac_link) 2>&5
  9231. ac_status=$?
  9232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9233. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9234. (./conftest; exit; ) >&5 2>/dev/null
  9235. lt_status=$?
  9236. case x$lt_status in
  9237. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9238. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9239. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9240. esac
  9241. else :
  9242. # compilation failed
  9243. lt_cv_dlopen_self=no
  9244. fi
  9245. fi
  9246. rm -fr conftest*
  9247. fi
  9248. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  9249. echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
  9250. if test "x$lt_cv_dlopen_self" = xyes; then
  9251. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9252. { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  9253. echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
  9254. if test "${lt_cv_dlopen_self_static+set}" = set; then
  9255. echo $ECHO_N "(cached) $ECHO_C" >&6
  9256. else
  9257. if test "$cross_compiling" = yes; then :
  9258. lt_cv_dlopen_self_static=cross
  9259. else
  9260. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9261. lt_status=$lt_dlunknown
  9262. cat > conftest.$ac_ext <<EOF
  9263. #line 10281 "configure"
  9264. #include "confdefs.h"
  9265. #if HAVE_DLFCN_H
  9266. #include <dlfcn.h>
  9267. #endif
  9268. #include <stdio.h>
  9269. #ifdef RTLD_GLOBAL
  9270. # define LT_DLGLOBAL RTLD_GLOBAL
  9271. #else
  9272. # ifdef DL_GLOBAL
  9273. # define LT_DLGLOBAL DL_GLOBAL
  9274. # else
  9275. # define LT_DLGLOBAL 0
  9276. # endif
  9277. #endif
  9278. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9279. find out it does not work in some platform. */
  9280. #ifndef LT_DLLAZY_OR_NOW
  9281. # ifdef RTLD_LAZY
  9282. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9283. # else
  9284. # ifdef DL_LAZY
  9285. # define LT_DLLAZY_OR_NOW DL_LAZY
  9286. # else
  9287. # ifdef RTLD_NOW
  9288. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9289. # else
  9290. # ifdef DL_NOW
  9291. # define LT_DLLAZY_OR_NOW DL_NOW
  9292. # else
  9293. # define LT_DLLAZY_OR_NOW 0
  9294. # endif
  9295. # endif
  9296. # endif
  9297. # endif
  9298. #endif
  9299. #ifdef __cplusplus
  9300. extern "C" void exit (int);
  9301. #endif
  9302. void fnord() { int i=42;}
  9303. int main ()
  9304. {
  9305. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9306. int status = $lt_dlunknown;
  9307. if (self)
  9308. {
  9309. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9310. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9311. /* dlclose (self); */
  9312. }
  9313. else
  9314. puts (dlerror ());
  9315. exit (status);
  9316. }
  9317. EOF
  9318. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9319. (eval $ac_link) 2>&5
  9320. ac_status=$?
  9321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9322. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  9323. (./conftest; exit; ) >&5 2>/dev/null
  9324. lt_status=$?
  9325. case x$lt_status in
  9326. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9327. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9328. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9329. esac
  9330. else :
  9331. # compilation failed
  9332. lt_cv_dlopen_self_static=no
  9333. fi
  9334. fi
  9335. rm -fr conftest*
  9336. fi
  9337. { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  9338. echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
  9339. fi
  9340. CPPFLAGS="$save_CPPFLAGS"
  9341. LDFLAGS="$save_LDFLAGS"
  9342. LIBS="$save_LIBS"
  9343. ;;
  9344. esac
  9345. case $lt_cv_dlopen_self in
  9346. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9347. *) enable_dlopen_self=unknown ;;
  9348. esac
  9349. case $lt_cv_dlopen_self_static in
  9350. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9351. *) enable_dlopen_self_static=unknown ;;
  9352. esac
  9353. fi
  9354. # Report which library types will actually be built
  9355. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9356. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  9357. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9358. echo "${ECHO_T}$can_build_shared" >&6; }
  9359. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9360. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  9361. test "$can_build_shared" = "no" && enable_shared=no
  9362. # On AIX, shared libraries and static libraries use the same namespace, and
  9363. # are all built from PIC.
  9364. case $host_os in
  9365. aix3*)
  9366. test "$enable_shared" = yes && enable_static=no
  9367. if test -n "$RANLIB"; then
  9368. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9369. postinstall_cmds='$RANLIB $lib'
  9370. fi
  9371. ;;
  9372. aix4* | aix5*)
  9373. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9374. test "$enable_shared" = yes && enable_static=no
  9375. fi
  9376. ;;
  9377. esac
  9378. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  9379. echo "${ECHO_T}$enable_shared" >&6; }
  9380. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9381. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  9382. # Make sure either enable_shared or enable_static is yes.
  9383. test "$enable_shared" = yes || enable_static=yes
  9384. { echo "$as_me:$LINENO: result: $enable_static" >&5
  9385. echo "${ECHO_T}$enable_static" >&6; }
  9386. # The else clause should only fire when bootstrapping the
  9387. # libtool distribution, otherwise you forgot to ship ltmain.sh
  9388. # with your package, and you will get complaints that there are
  9389. # no rules to generate ltmain.sh.
  9390. if test -f "$ltmain"; then
  9391. # See if we are running on zsh, and set the options which allow our commands through
  9392. # without removal of \ escapes.
  9393. if test -n "${ZSH_VERSION+set}" ; then
  9394. setopt NO_GLOB_SUBST
  9395. fi
  9396. # Now quote all the things that may contain metacharacters while being
  9397. # careful not to overquote the AC_SUBSTed values. We take copies of the
  9398. # variables and quote the copies for generation of the libtool script.
  9399. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  9400. SED SHELL STRIP \
  9401. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  9402. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  9403. deplibs_check_method reload_flag reload_cmds need_locks \
  9404. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  9405. lt_cv_sys_global_symbol_to_c_name_address \
  9406. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  9407. old_postinstall_cmds old_postuninstall_cmds \
  9408. compiler \
  9409. CC \
  9410. LD \
  9411. lt_prog_compiler_wl \
  9412. lt_prog_compiler_pic \
  9413. lt_prog_compiler_static \
  9414. lt_prog_compiler_no_builtin_flag \
  9415. export_dynamic_flag_spec \
  9416. thread_safe_flag_spec \
  9417. whole_archive_flag_spec \
  9418. enable_shared_with_static_runtimes \
  9419. old_archive_cmds \
  9420. old_archive_from_new_cmds \
  9421. predep_objects \
  9422. postdep_objects \
  9423. predeps \
  9424. postdeps \
  9425. compiler_lib_search_path \
  9426. archive_cmds \
  9427. archive_expsym_cmds \
  9428. postinstall_cmds \
  9429. postuninstall_cmds \
  9430. old_archive_from_expsyms_cmds \
  9431. allow_undefined_flag \
  9432. no_undefined_flag \
  9433. export_symbols_cmds \
  9434. hardcode_libdir_flag_spec \
  9435. hardcode_libdir_flag_spec_ld \
  9436. hardcode_libdir_separator \
  9437. hardcode_automatic \
  9438. module_cmds \
  9439. module_expsym_cmds \
  9440. lt_cv_prog_compiler_c_o \
  9441. fix_srcfile_path \
  9442. exclude_expsyms \
  9443. include_expsyms; do
  9444. case $var in
  9445. old_archive_cmds | \
  9446. old_archive_from_new_cmds | \
  9447. archive_cmds | \
  9448. archive_expsym_cmds | \
  9449. module_cmds | \
  9450. module_expsym_cmds | \
  9451. old_archive_from_expsyms_cmds | \
  9452. export_symbols_cmds | \
  9453. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  9454. postinstall_cmds | postuninstall_cmds | \
  9455. old_postinstall_cmds | old_postuninstall_cmds | \
  9456. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  9457. # Double-quote double-evaled strings.
  9458. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  9459. ;;
  9460. *)
  9461. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  9462. ;;
  9463. esac
  9464. done
  9465. case $lt_echo in
  9466. *'\$0 --fallback-echo"')
  9467. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  9468. ;;
  9469. esac
  9470. cfgfile="${ofile}T"
  9471. trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  9472. $rm -f "$cfgfile"
  9473. { echo "$as_me:$LINENO: creating $ofile" >&5
  9474. echo "$as_me: creating $ofile" >&6;}
  9475. cat <<__EOF__ >> "$cfgfile"
  9476. #! $SHELL
  9477. # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  9478. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  9479. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  9480. #
  9481. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
  9482. # Free Software Foundation, Inc.
  9483. #
  9484. # This file is part of GNU Libtool:
  9485. # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  9486. #
  9487. # This program is free software; you can redistribute it and/or modify
  9488. # it under the terms of the GNU General Public License as published by
  9489. # the Free Software Foundation; either version 2 of the License, or
  9490. # (at your option) any later version.
  9491. #
  9492. # This program is distributed in the hope that it will be useful, but
  9493. # WITHOUT ANY WARRANTY; without even the implied warranty of
  9494. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  9495. # General Public License for more details.
  9496. #
  9497. # You should have received a copy of the GNU General Public License
  9498. # along with this program; if not, write to the Free Software
  9499. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  9500. #
  9501. # As a special exception to the GNU General Public License, if you
  9502. # distribute this file as part of a program that contains a
  9503. # configuration script generated by Autoconf, you may include it under
  9504. # the same distribution terms that you use for the rest of that program.
  9505. # A sed program that does not truncate output.
  9506. SED=$lt_SED
  9507. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  9508. Xsed="$SED -e 1s/^X//"
  9509. # The HP-UX ksh and POSIX shell print the target directory to stdout
  9510. # if CDPATH is set.
  9511. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9512. # The names of the tagged configurations supported by this script.
  9513. available_tags=
  9514. # ### BEGIN LIBTOOL CONFIG
  9515. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  9516. # Shell to use when invoking shell scripts.
  9517. SHELL=$lt_SHELL
  9518. # Whether or not to build shared libraries.
  9519. build_libtool_libs=$enable_shared
  9520. # Whether or not to build static libraries.
  9521. build_old_libs=$enable_static
  9522. # Whether or not to add -lc for building shared libraries.
  9523. build_libtool_need_lc=$archive_cmds_need_lc
  9524. # Whether or not to disallow shared libs when runtime libs are static
  9525. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  9526. # Whether or not to optimize for fast installation.
  9527. fast_install=$enable_fast_install
  9528. # The host system.
  9529. host_alias=$host_alias
  9530. host=$host
  9531. host_os=$host_os
  9532. # The build system.
  9533. build_alias=$build_alias
  9534. build=$build
  9535. build_os=$build_os
  9536. # An echo program that does not interpret backslashes.
  9537. echo=$lt_echo
  9538. # The archiver.
  9539. AR=$lt_AR
  9540. AR_FLAGS=$lt_AR_FLAGS
  9541. # A C compiler.
  9542. LTCC=$lt_LTCC
  9543. # LTCC compiler flags.
  9544. LTCFLAGS=$lt_LTCFLAGS
  9545. # A language-specific compiler.
  9546. CC=$lt_compiler
  9547. # Is the compiler the GNU C compiler?
  9548. with_gcc=$GCC
  9549. # An ERE matcher.
  9550. EGREP=$lt_EGREP
  9551. # The linker used to build libraries.
  9552. LD=$lt_LD
  9553. # Whether we need hard or soft links.
  9554. LN_S=$lt_LN_S
  9555. # A BSD-compatible nm program.
  9556. NM=$lt_NM
  9557. # A symbol stripping program
  9558. STRIP=$lt_STRIP
  9559. # Used to examine libraries when file_magic_cmd begins "file"
  9560. MAGIC_CMD=$MAGIC_CMD
  9561. # Used on cygwin: DLL creation program.
  9562. DLLTOOL="$DLLTOOL"
  9563. # Used on cygwin: object dumper.
  9564. OBJDUMP="$OBJDUMP"
  9565. # Used on cygwin: assembler.
  9566. AS="$AS"
  9567. # The name of the directory that contains temporary libtool files.
  9568. objdir=$objdir
  9569. # How to create reloadable object files.
  9570. reload_flag=$lt_reload_flag
  9571. reload_cmds=$lt_reload_cmds
  9572. # How to pass a linker flag through the compiler.
  9573. wl=$lt_lt_prog_compiler_wl
  9574. # Object file suffix (normally "o").
  9575. objext="$ac_objext"
  9576. # Old archive suffix (normally "a").
  9577. libext="$libext"
  9578. # Shared library suffix (normally ".so").
  9579. shrext_cmds='$shrext_cmds'
  9580. # Executable file suffix (normally "").
  9581. exeext="$exeext"
  9582. # Additional compiler flags for building library objects.
  9583. pic_flag=$lt_lt_prog_compiler_pic
  9584. pic_mode=$pic_mode
  9585. # What is the maximum length of a command?
  9586. max_cmd_len=$lt_cv_sys_max_cmd_len
  9587. # Does compiler simultaneously support -c and -o options?
  9588. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  9589. # Must we lock files when doing compilation?
  9590. need_locks=$lt_need_locks
  9591. # Do we need the lib prefix for modules?
  9592. need_lib_prefix=$need_lib_prefix
  9593. # Do we need a version for libraries?
  9594. need_version=$need_version
  9595. # Whether dlopen is supported.
  9596. dlopen_support=$enable_dlopen
  9597. # Whether dlopen of programs is supported.
  9598. dlopen_self=$enable_dlopen_self
  9599. # Whether dlopen of statically linked programs is supported.
  9600. dlopen_self_static=$enable_dlopen_self_static
  9601. # Compiler flag to prevent dynamic linking.
  9602. link_static_flag=$lt_lt_prog_compiler_static
  9603. # Compiler flag to turn off builtin functions.
  9604. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  9605. # Compiler flag to allow reflexive dlopens.
  9606. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  9607. # Compiler flag to generate shared objects directly from archives.
  9608. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  9609. # Compiler flag to generate thread-safe objects.
  9610. thread_safe_flag_spec=$lt_thread_safe_flag_spec
  9611. # Library versioning type.
  9612. version_type=$version_type
  9613. # Format of library name prefix.
  9614. libname_spec=$lt_libname_spec
  9615. # List of archive names. First name is the real one, the rest are links.
  9616. # The last name is the one that the linker finds with -lNAME.
  9617. library_names_spec=$lt_library_names_spec
  9618. # The coded name of the library, if different from the real name.
  9619. soname_spec=$lt_soname_spec
  9620. # Commands used to build and install an old-style archive.
  9621. RANLIB=$lt_RANLIB
  9622. old_archive_cmds=$lt_old_archive_cmds
  9623. old_postinstall_cmds=$lt_old_postinstall_cmds
  9624. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  9625. # Create an old-style archive from a shared archive.
  9626. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  9627. # Create a temporary old-style archive to link instead of a shared archive.
  9628. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  9629. # Commands used to build and install a shared archive.
  9630. archive_cmds=$lt_archive_cmds
  9631. archive_expsym_cmds=$lt_archive_expsym_cmds
  9632. postinstall_cmds=$lt_postinstall_cmds
  9633. postuninstall_cmds=$lt_postuninstall_cmds
  9634. # Commands used to build a loadable module (assumed same as above if empty)
  9635. module_cmds=$lt_module_cmds
  9636. module_expsym_cmds=$lt_module_expsym_cmds
  9637. # Commands to strip libraries.
  9638. old_striplib=$lt_old_striplib
  9639. striplib=$lt_striplib
  9640. # Dependencies to place before the objects being linked to create a
  9641. # shared library.
  9642. predep_objects=$lt_predep_objects
  9643. # Dependencies to place after the objects being linked to create a
  9644. # shared library.
  9645. postdep_objects=$lt_postdep_objects
  9646. # Dependencies to place before the objects being linked to create a
  9647. # shared library.
  9648. predeps=$lt_predeps
  9649. # Dependencies to place after the objects being linked to create a
  9650. # shared library.
  9651. postdeps=$lt_postdeps
  9652. # The library search path used internally by the compiler when linking
  9653. # a shared library.
  9654. compiler_lib_search_path=$lt_compiler_lib_search_path
  9655. # Method to check whether dependent libraries are shared objects.
  9656. deplibs_check_method=$lt_deplibs_check_method
  9657. # Command to use when deplibs_check_method == file_magic.
  9658. file_magic_cmd=$lt_file_magic_cmd
  9659. # Flag that allows shared libraries with undefined symbols to be built.
  9660. allow_undefined_flag=$lt_allow_undefined_flag
  9661. # Flag that forces no undefined symbols.
  9662. no_undefined_flag=$lt_no_undefined_flag
  9663. # Commands used to finish a libtool library installation in a directory.
  9664. finish_cmds=$lt_finish_cmds
  9665. # Same as above, but a single script fragment to be evaled but not shown.
  9666. finish_eval=$lt_finish_eval
  9667. # Take the output of nm and produce a listing of raw symbols and C names.
  9668. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  9669. # Transform the output of nm in a proper C declaration
  9670. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  9671. # Transform the output of nm in a C name address pair
  9672. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  9673. # This is the shared library runtime path variable.
  9674. runpath_var=$runpath_var
  9675. # This is the shared library path variable.
  9676. shlibpath_var=$shlibpath_var
  9677. # Is shlibpath searched before the hard-coded library search path?
  9678. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  9679. # How to hardcode a shared library path into an executable.
  9680. hardcode_action=$hardcode_action
  9681. # Whether we should hardcode library paths into libraries.
  9682. hardcode_into_libs=$hardcode_into_libs
  9683. # Flag to hardcode \$libdir into a binary during linking.
  9684. # This must work even if \$libdir does not exist.
  9685. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  9686. # If ld is used when linking, flag to hardcode \$libdir into
  9687. # a binary during linking. This must work even if \$libdir does
  9688. # not exist.
  9689. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  9690. # Whether we need a single -rpath flag with a separated argument.
  9691. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  9692. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  9693. # resulting binary.
  9694. hardcode_direct=$hardcode_direct
  9695. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  9696. # resulting binary.
  9697. hardcode_minus_L=$hardcode_minus_L
  9698. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  9699. # the resulting binary.
  9700. hardcode_shlibpath_var=$hardcode_shlibpath_var
  9701. # Set to yes if building a shared library automatically hardcodes DIR into the library
  9702. # and all subsequent libraries and executables linked against it.
  9703. hardcode_automatic=$hardcode_automatic
  9704. # Variables whose values should be saved in libtool wrapper scripts and
  9705. # restored at relink time.
  9706. variables_saved_for_relink="$variables_saved_for_relink"
  9707. # Whether libtool must link a program against all its dependency libraries.
  9708. link_all_deplibs=$link_all_deplibs
  9709. # Compile-time system search path for libraries
  9710. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  9711. # Run-time system search path for libraries
  9712. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  9713. # Fix the shell variable \$srcfile for the compiler.
  9714. fix_srcfile_path=$lt_fix_srcfile_path
  9715. # Set to yes if exported symbols are required.
  9716. always_export_symbols=$always_export_symbols
  9717. # The commands to list exported symbols.
  9718. export_symbols_cmds=$lt_export_symbols_cmds
  9719. # The commands to extract the exported symbol list from a shared archive.
  9720. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  9721. # Symbols that should not be listed in the preloaded symbols.
  9722. exclude_expsyms=$lt_exclude_expsyms
  9723. # Symbols that must always be exported.
  9724. include_expsyms=$lt_include_expsyms
  9725. # ### END LIBTOOL CONFIG
  9726. __EOF__
  9727. case $host_os in
  9728. aix3*)
  9729. cat <<\EOF >> "$cfgfile"
  9730. # AIX sometimes has problems with the GCC collect2 program. For some
  9731. # reason, if we set the COLLECT_NAMES environment variable, the problems
  9732. # vanish in a puff of smoke.
  9733. if test "X${COLLECT_NAMES+set}" != Xset; then
  9734. COLLECT_NAMES=
  9735. export COLLECT_NAMES
  9736. fi
  9737. EOF
  9738. ;;
  9739. esac
  9740. # We use sed instead of cat because bash on DJGPP gets confused if
  9741. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9742. # text mode, it properly converts lines to CR/LF. This bash problem
  9743. # is reportedly fixed, but why not run on old versions too?
  9744. sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9745. mv -f "$cfgfile" "$ofile" || \
  9746. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9747. chmod +x "$ofile"
  9748. else
  9749. # If there is no Makefile yet, we rely on a make rule to execute
  9750. # `config.status --recheck' to rerun these tests and create the
  9751. # libtool script then.
  9752. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9753. if test -f "$ltmain_in"; then
  9754. test -f Makefile && make "$ltmain"
  9755. fi
  9756. fi
  9757. ac_ext=c
  9758. ac_cpp='$CPP $CPPFLAGS'
  9759. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9760. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9761. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9762. CC="$lt_save_CC"
  9763. # Check whether --with-tags was given.
  9764. if test "${with_tags+set}" = set; then
  9765. withval=$with_tags; tagnames="$withval"
  9766. fi
  9767. if test -f "$ltmain" && test -n "$tagnames"; then
  9768. if test ! -f "${ofile}"; then
  9769. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  9770. echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  9771. fi
  9772. if test -z "$LTCC"; then
  9773. eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  9774. if test -z "$LTCC"; then
  9775. { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  9776. echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  9777. else
  9778. { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  9779. echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  9780. fi
  9781. fi
  9782. if test -z "$LTCFLAGS"; then
  9783. eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  9784. fi
  9785. # Extract list of available tagged configurations in $ofile.
  9786. # Note that this assumes the entire list is on one line.
  9787. available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  9788. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  9789. for tagname in $tagnames; do
  9790. IFS="$lt_save_ifs"
  9791. # Check whether tagname contains only valid characters
  9792. case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  9793. "") ;;
  9794. *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  9795. echo "$as_me: error: invalid tag name: $tagname" >&2;}
  9796. { (exit 1); exit 1; }; }
  9797. ;;
  9798. esac
  9799. if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  9800. then
  9801. { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  9802. echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  9803. { (exit 1); exit 1; }; }
  9804. fi
  9805. # Update the list of available tags.
  9806. if test -n "$tagname"; then
  9807. echo appending configuration tag \"$tagname\" to $ofile
  9808. case $tagname in
  9809. CXX)
  9810. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9811. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9812. (test "X$CXX" != "Xg++"))) ; then
  9813. ac_ext=cpp
  9814. ac_cpp='$CXXCPP $CPPFLAGS'
  9815. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9816. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9817. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9818. archive_cmds_need_lc_CXX=no
  9819. allow_undefined_flag_CXX=
  9820. always_export_symbols_CXX=no
  9821. archive_expsym_cmds_CXX=
  9822. export_dynamic_flag_spec_CXX=
  9823. hardcode_direct_CXX=no
  9824. hardcode_libdir_flag_spec_CXX=
  9825. hardcode_libdir_flag_spec_ld_CXX=
  9826. hardcode_libdir_separator_CXX=
  9827. hardcode_minus_L_CXX=no
  9828. hardcode_shlibpath_var_CXX=unsupported
  9829. hardcode_automatic_CXX=no
  9830. module_cmds_CXX=
  9831. module_expsym_cmds_CXX=
  9832. link_all_deplibs_CXX=unknown
  9833. old_archive_cmds_CXX=$old_archive_cmds
  9834. no_undefined_flag_CXX=
  9835. whole_archive_flag_spec_CXX=
  9836. enable_shared_with_static_runtimes_CXX=no
  9837. # Dependencies to place before and after the object being linked:
  9838. predep_objects_CXX=
  9839. postdep_objects_CXX=
  9840. predeps_CXX=
  9841. postdeps_CXX=
  9842. compiler_lib_search_path_CXX=
  9843. # Source file extension for C++ test sources.
  9844. ac_ext=cpp
  9845. # Object file extension for compiled C++ test sources.
  9846. objext=o
  9847. objext_CXX=$objext
  9848. # Code to be used in simple compile tests
  9849. lt_simple_compile_test_code="int some_variable = 0;"
  9850. # Code to be used in simple link tests
  9851. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9852. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9853. # If no C compiler was specified, use CC.
  9854. LTCC=${LTCC-"$CC"}
  9855. # If no C compiler flags were specified, use CFLAGS.
  9856. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9857. # Allow CC to be a program name with arguments.
  9858. compiler=$CC
  9859. # save warnings/boilerplate of simple test code
  9860. ac_outfile=conftest.$ac_objext
  9861. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9862. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9863. _lt_compiler_boilerplate=`cat conftest.err`
  9864. $rm conftest*
  9865. ac_outfile=conftest.$ac_objext
  9866. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9867. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9868. _lt_linker_boilerplate=`cat conftest.err`
  9869. $rm conftest*
  9870. # Allow CC to be a program name with arguments.
  9871. lt_save_CC=$CC
  9872. lt_save_LD=$LD
  9873. lt_save_GCC=$GCC
  9874. GCC=$GXX
  9875. lt_save_with_gnu_ld=$with_gnu_ld
  9876. lt_save_path_LD=$lt_cv_path_LD
  9877. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9878. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9879. else
  9880. $as_unset lt_cv_prog_gnu_ld
  9881. fi
  9882. if test -n "${lt_cv_path_LDCXX+set}"; then
  9883. lt_cv_path_LD=$lt_cv_path_LDCXX
  9884. else
  9885. $as_unset lt_cv_path_LD
  9886. fi
  9887. test -z "${LDCXX+set}" || LD=$LDCXX
  9888. CC=${CXX-"c++"}
  9889. compiler=$CC
  9890. compiler_CXX=$CC
  9891. for cc_temp in $compiler""; do
  9892. case $cc_temp in
  9893. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9894. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9895. \-*) ;;
  9896. *) break;;
  9897. esac
  9898. done
  9899. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9900. # We don't want -fno-exception wen compiling C++ code, so set the
  9901. # no_builtin_flag separately
  9902. if test "$GXX" = yes; then
  9903. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9904. else
  9905. lt_prog_compiler_no_builtin_flag_CXX=
  9906. fi
  9907. if test "$GXX" = yes; then
  9908. # Set up default GNU C++ configuration
  9909. # Check whether --with-gnu-ld was given.
  9910. if test "${with_gnu_ld+set}" = set; then
  9911. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9912. else
  9913. with_gnu_ld=no
  9914. fi
  9915. ac_prog=ld
  9916. if test "$GCC" = yes; then
  9917. # Check if gcc -print-prog-name=ld gives a path.
  9918. { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  9919. echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
  9920. case $host in
  9921. *-*-mingw*)
  9922. # gcc leaves a trailing carriage return which upsets mingw
  9923. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9924. *)
  9925. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9926. esac
  9927. case $ac_prog in
  9928. # Accept absolute paths.
  9929. [\\/]* | ?:[\\/]*)
  9930. re_direlt='/[^/][^/]*/\.\./'
  9931. # Canonicalize the pathname of ld
  9932. ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  9933. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9934. ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  9935. done
  9936. test -z "$LD" && LD="$ac_prog"
  9937. ;;
  9938. "")
  9939. # If it fails, then pretend we aren't using GCC.
  9940. ac_prog=ld
  9941. ;;
  9942. *)
  9943. # If it is relative, then search for the first ld in PATH.
  9944. with_gnu_ld=unknown
  9945. ;;
  9946. esac
  9947. elif test "$with_gnu_ld" = yes; then
  9948. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  9949. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  9950. else
  9951. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9952. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  9953. fi
  9954. if test "${lt_cv_path_LD+set}" = set; then
  9955. echo $ECHO_N "(cached) $ECHO_C" >&6
  9956. else
  9957. if test -z "$LD"; then
  9958. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9959. for ac_dir in $PATH; do
  9960. IFS="$lt_save_ifs"
  9961. test -z "$ac_dir" && ac_dir=.
  9962. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9963. lt_cv_path_LD="$ac_dir/$ac_prog"
  9964. # Check to see if the program is GNU ld. I'd rather use --version,
  9965. # but apparently some variants of GNU ld only accept -v.
  9966. # Break only if it was the GNU/non-GNU ld that we prefer.
  9967. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9968. *GNU* | *'with BFD'*)
  9969. test "$with_gnu_ld" != no && break
  9970. ;;
  9971. *)
  9972. test "$with_gnu_ld" != yes && break
  9973. ;;
  9974. esac
  9975. fi
  9976. done
  9977. IFS="$lt_save_ifs"
  9978. else
  9979. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9980. fi
  9981. fi
  9982. LD="$lt_cv_path_LD"
  9983. if test -n "$LD"; then
  9984. { echo "$as_me:$LINENO: result: $LD" >&5
  9985. echo "${ECHO_T}$LD" >&6; }
  9986. else
  9987. { echo "$as_me:$LINENO: result: no" >&5
  9988. echo "${ECHO_T}no" >&6; }
  9989. fi
  9990. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  9991. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  9992. { (exit 1); exit 1; }; }
  9993. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  9994. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  9995. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  9996. echo $ECHO_N "(cached) $ECHO_C" >&6
  9997. else
  9998. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9999. case `$LD -v 2>&1 </dev/null` in
  10000. *GNU* | *'with BFD'*)
  10001. lt_cv_prog_gnu_ld=yes
  10002. ;;
  10003. *)
  10004. lt_cv_prog_gnu_ld=no
  10005. ;;
  10006. esac
  10007. fi
  10008. { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  10009. echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
  10010. with_gnu_ld=$lt_cv_prog_gnu_ld
  10011. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10012. # archiving commands below assume that GNU ld is being used.
  10013. if test "$with_gnu_ld" = yes; then
  10014. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10015. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10016. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10017. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10018. # If archive_cmds runs LD, not CC, wlarc should be empty
  10019. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10020. # investigate it a little bit more. (MM)
  10021. wlarc='${wl}'
  10022. # ancient GNU ld didn't support --whole-archive et. al.
  10023. if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  10024. grep 'no-whole-archive' > /dev/null; then
  10025. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10026. else
  10027. whole_archive_flag_spec_CXX=
  10028. fi
  10029. else
  10030. with_gnu_ld=no
  10031. wlarc=
  10032. # A generic and very simple default shared library creation
  10033. # command for GNU C++ for the case where it uses the native
  10034. # linker, instead of GNU ld. If possible, this setting should
  10035. # overridden to take advantage of the native linker features on
  10036. # the platform it is being used on.
  10037. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10038. fi
  10039. # Commands to make compiler produce verbose output that lists
  10040. # what "hidden" libraries, object files and flags are used when
  10041. # linking a shared library.
  10042. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10043. else
  10044. GXX=no
  10045. with_gnu_ld=no
  10046. wlarc=
  10047. fi
  10048. # PORTME: fill in a description of your system's C++ link characteristics
  10049. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10050. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  10051. ld_shlibs_CXX=yes
  10052. case $host_os in
  10053. aix3*)
  10054. # FIXME: insert proper C++ library support
  10055. ld_shlibs_CXX=no
  10056. ;;
  10057. aix4* | aix5*)
  10058. if test "$host_cpu" = ia64; then
  10059. # On IA64, the linker does run time linking by default, so we don't
  10060. # have to do anything special.
  10061. aix_use_runtimelinking=no
  10062. exp_sym_flag='-Bexport'
  10063. no_entry_flag=""
  10064. else
  10065. aix_use_runtimelinking=no
  10066. # Test if we are trying to use run time linking or normal
  10067. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10068. # need to do runtime linking.
  10069. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  10070. for ld_flag in $LDFLAGS; do
  10071. case $ld_flag in
  10072. *-brtl*)
  10073. aix_use_runtimelinking=yes
  10074. break
  10075. ;;
  10076. esac
  10077. done
  10078. ;;
  10079. esac
  10080. exp_sym_flag='-bexport'
  10081. no_entry_flag='-bnoentry'
  10082. fi
  10083. # When large executables or shared objects are built, AIX ld can
  10084. # have problems creating the table of contents. If linking a library
  10085. # or program results in "error TOC overflow" add -mminimal-toc to
  10086. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10087. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10088. archive_cmds_CXX=''
  10089. hardcode_direct_CXX=yes
  10090. hardcode_libdir_separator_CXX=':'
  10091. link_all_deplibs_CXX=yes
  10092. if test "$GXX" = yes; then
  10093. case $host_os in aix4.[012]|aix4.[012].*)
  10094. # We only want to do this on AIX 4.2 and lower, the check
  10095. # below for broken collect2 doesn't work under 4.3+
  10096. collect2name=`${CC} -print-prog-name=collect2`
  10097. if test -f "$collect2name" && \
  10098. strings "$collect2name" | grep resolve_lib_name >/dev/null
  10099. then
  10100. # We have reworked collect2
  10101. :
  10102. else
  10103. # We have old collect2
  10104. hardcode_direct_CXX=unsupported
  10105. # It fails to find uninstalled libraries when the uninstalled
  10106. # path is not listed in the libpath. Setting hardcode_minus_L
  10107. # to unsupported forces relinking
  10108. hardcode_minus_L_CXX=yes
  10109. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10110. hardcode_libdir_separator_CXX=
  10111. fi
  10112. ;;
  10113. esac
  10114. shared_flag='-shared'
  10115. if test "$aix_use_runtimelinking" = yes; then
  10116. shared_flag="$shared_flag "'${wl}-G'
  10117. fi
  10118. else
  10119. # not using gcc
  10120. if test "$host_cpu" = ia64; then
  10121. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10122. # chokes on -Wl,-G. The following line is correct:
  10123. shared_flag='-G'
  10124. else
  10125. if test "$aix_use_runtimelinking" = yes; then
  10126. shared_flag='${wl}-G'
  10127. else
  10128. shared_flag='${wl}-bM:SRE'
  10129. fi
  10130. fi
  10131. fi
  10132. # It seems that -bexpall does not export symbols beginning with
  10133. # underscore (_), so it is better to generate a list of symbols to export.
  10134. always_export_symbols_CXX=yes
  10135. if test "$aix_use_runtimelinking" = yes; then
  10136. # Warning - without using the other runtime loading flags (-brtl),
  10137. # -berok will link without error, but may produce a broken library.
  10138. allow_undefined_flag_CXX='-berok'
  10139. # Determine the default libpath from the value encoded in an empty executable.
  10140. cat >conftest.$ac_ext <<_ACEOF
  10141. /* confdefs.h. */
  10142. _ACEOF
  10143. cat confdefs.h >>conftest.$ac_ext
  10144. cat >>conftest.$ac_ext <<_ACEOF
  10145. /* end confdefs.h. */
  10146. int
  10147. main ()
  10148. {
  10149. ;
  10150. return 0;
  10151. }
  10152. _ACEOF
  10153. rm -f conftest.$ac_objext conftest$ac_exeext
  10154. if { (ac_try="$ac_link"
  10155. case "(($ac_try" in
  10156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10157. *) ac_try_echo=$ac_try;;
  10158. esac
  10159. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10160. (eval "$ac_link") 2>conftest.er1
  10161. ac_status=$?
  10162. grep -v '^ *+' conftest.er1 >conftest.err
  10163. rm -f conftest.er1
  10164. cat conftest.err >&5
  10165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10166. (exit $ac_status); } && {
  10167. test -z "$ac_cxx_werror_flag" ||
  10168. test ! -s conftest.err
  10169. } && test -s conftest$ac_exeext &&
  10170. $as_test_x conftest$ac_exeext; then
  10171. lt_aix_libpath_sed='
  10172. /Import File Strings/,/^$/ {
  10173. /^0/ {
  10174. s/^0 *\(.*\)$/\1/
  10175. p
  10176. }
  10177. }'
  10178. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10179. # Check for a 64-bit object if we didn't find anything.
  10180. if test -z "$aix_libpath"; then
  10181. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10182. fi
  10183. else
  10184. echo "$as_me: failed program was:" >&5
  10185. sed 's/^/| /' conftest.$ac_ext >&5
  10186. fi
  10187. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10188. conftest$ac_exeext conftest.$ac_ext
  10189. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10190. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10191. archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10192. else
  10193. if test "$host_cpu" = ia64; then
  10194. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10195. allow_undefined_flag_CXX="-z nodefs"
  10196. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  10197. else
  10198. # Determine the default libpath from the value encoded in an empty executable.
  10199. cat >conftest.$ac_ext <<_ACEOF
  10200. /* confdefs.h. */
  10201. _ACEOF
  10202. cat confdefs.h >>conftest.$ac_ext
  10203. cat >>conftest.$ac_ext <<_ACEOF
  10204. /* end confdefs.h. */
  10205. int
  10206. main ()
  10207. {
  10208. ;
  10209. return 0;
  10210. }
  10211. _ACEOF
  10212. rm -f conftest.$ac_objext conftest$ac_exeext
  10213. if { (ac_try="$ac_link"
  10214. case "(($ac_try" in
  10215. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10216. *) ac_try_echo=$ac_try;;
  10217. esac
  10218. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10219. (eval "$ac_link") 2>conftest.er1
  10220. ac_status=$?
  10221. grep -v '^ *+' conftest.er1 >conftest.err
  10222. rm -f conftest.er1
  10223. cat conftest.err >&5
  10224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10225. (exit $ac_status); } && {
  10226. test -z "$ac_cxx_werror_flag" ||
  10227. test ! -s conftest.err
  10228. } && test -s conftest$ac_exeext &&
  10229. $as_test_x conftest$ac_exeext; then
  10230. lt_aix_libpath_sed='
  10231. /Import File Strings/,/^$/ {
  10232. /^0/ {
  10233. s/^0 *\(.*\)$/\1/
  10234. p
  10235. }
  10236. }'
  10237. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10238. # Check for a 64-bit object if we didn't find anything.
  10239. if test -z "$aix_libpath"; then
  10240. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10241. fi
  10242. else
  10243. echo "$as_me: failed program was:" >&5
  10244. sed 's/^/| /' conftest.$ac_ext >&5
  10245. fi
  10246. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10247. conftest$ac_exeext conftest.$ac_ext
  10248. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10249. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10250. # Warning - without using the other run time loading flags,
  10251. # -berok will link without error, but may produce a broken library.
  10252. no_undefined_flag_CXX=' ${wl}-bernotok'
  10253. allow_undefined_flag_CXX=' ${wl}-berok'
  10254. # Exported symbols can be pulled into shared objects from archives
  10255. whole_archive_flag_spec_CXX='$convenience'
  10256. archive_cmds_need_lc_CXX=yes
  10257. # This is similar to how AIX traditionally builds its shared libraries.
  10258. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  10259. fi
  10260. fi
  10261. ;;
  10262. beos*)
  10263. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  10264. allow_undefined_flag_CXX=unsupported
  10265. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10266. # support --undefined. This deserves some investigation. FIXME
  10267. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10268. else
  10269. ld_shlibs_CXX=no
  10270. fi
  10271. ;;
  10272. chorus*)
  10273. case $cc_basename in
  10274. *)
  10275. # FIXME: insert proper C++ library support
  10276. ld_shlibs_CXX=no
  10277. ;;
  10278. esac
  10279. ;;
  10280. cygwin* | mingw* | pw32*)
  10281. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10282. # as there is no search path for DLLs.
  10283. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10284. allow_undefined_flag_CXX=unsupported
  10285. always_export_symbols_CXX=no
  10286. enable_shared_with_static_runtimes_CXX=yes
  10287. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  10288. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10289. # If the export-symbols file already is a .def file (1st line
  10290. # is EXPORTS), use it as is; otherwise, prepend...
  10291. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10292. cp $export_symbols $output_objdir/$soname.def;
  10293. else
  10294. echo EXPORTS > $output_objdir/$soname.def;
  10295. cat $export_symbols >> $output_objdir/$soname.def;
  10296. fi~
  10297. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  10298. else
  10299. ld_shlibs_CXX=no
  10300. fi
  10301. ;;
  10302. darwin* | rhapsody*)
  10303. case $host_os in
  10304. rhapsody* | darwin1.[012])
  10305. allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  10306. ;;
  10307. *) # Darwin 1.3 on
  10308. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  10309. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10310. else
  10311. case ${MACOSX_DEPLOYMENT_TARGET} in
  10312. 10.[012])
  10313. allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  10314. ;;
  10315. 10.*)
  10316. allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  10317. ;;
  10318. esac
  10319. fi
  10320. ;;
  10321. esac
  10322. archive_cmds_need_lc_CXX=no
  10323. hardcode_direct_CXX=no
  10324. hardcode_automatic_CXX=yes
  10325. hardcode_shlibpath_var_CXX=unsupported
  10326. whole_archive_flag_spec_CXX=''
  10327. link_all_deplibs_CXX=yes
  10328. if test "$GXX" = yes ; then
  10329. lt_int_apple_cc_single_mod=no
  10330. output_verbose_link_cmd='echo'
  10331. if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  10332. lt_int_apple_cc_single_mod=yes
  10333. fi
  10334. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10335. archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10336. else
  10337. archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10338. fi
  10339. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10340. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10341. if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10342. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10343. else
  10344. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10345. fi
  10346. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10347. else
  10348. case $cc_basename in
  10349. xlc*)
  10350. output_verbose_link_cmd='echo'
  10351. archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  10352. module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10353. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  10354. archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10355. module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10356. ;;
  10357. *)
  10358. ld_shlibs_CXX=no
  10359. ;;
  10360. esac
  10361. fi
  10362. ;;
  10363. dgux*)
  10364. case $cc_basename in
  10365. ec++*)
  10366. # FIXME: insert proper C++ library support
  10367. ld_shlibs_CXX=no
  10368. ;;
  10369. ghcx*)
  10370. # Green Hills C++ Compiler
  10371. # FIXME: insert proper C++ library support
  10372. ld_shlibs_CXX=no
  10373. ;;
  10374. *)
  10375. # FIXME: insert proper C++ library support
  10376. ld_shlibs_CXX=no
  10377. ;;
  10378. esac
  10379. ;;
  10380. freebsd[12]*)
  10381. # C++ shared libraries reported to be fairly broken before switch to ELF
  10382. ld_shlibs_CXX=no
  10383. ;;
  10384. freebsd-elf*)
  10385. archive_cmds_need_lc_CXX=no
  10386. ;;
  10387. freebsd* | dragonfly*)
  10388. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10389. # conventions
  10390. ld_shlibs_CXX=yes
  10391. ;;
  10392. gnu*)
  10393. ;;
  10394. hpux9*)
  10395. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10396. hardcode_libdir_separator_CXX=:
  10397. export_dynamic_flag_spec_CXX='${wl}-E'
  10398. hardcode_direct_CXX=yes
  10399. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10400. # but as the default
  10401. # location of the library.
  10402. case $cc_basename in
  10403. CC*)
  10404. # FIXME: insert proper C++ library support
  10405. ld_shlibs_CXX=no
  10406. ;;
  10407. aCC*)
  10408. archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10409. # Commands to make compiler produce verbose output that lists
  10410. # what "hidden" libraries, object files and flags are used when
  10411. # linking a shared library.
  10412. #
  10413. # There doesn't appear to be a way to prevent this compiler from
  10414. # explicitly linking system object files so we need to strip them
  10415. # from the output so that they don't get included in the library
  10416. # dependencies.
  10417. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10418. ;;
  10419. *)
  10420. if test "$GXX" = yes; then
  10421. archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10422. else
  10423. # FIXME: insert proper C++ library support
  10424. ld_shlibs_CXX=no
  10425. fi
  10426. ;;
  10427. esac
  10428. ;;
  10429. hpux10*|hpux11*)
  10430. if test $with_gnu_ld = no; then
  10431. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10432. hardcode_libdir_separator_CXX=:
  10433. case $host_cpu in
  10434. hppa*64*|ia64*) ;;
  10435. *)
  10436. export_dynamic_flag_spec_CXX='${wl}-E'
  10437. ;;
  10438. esac
  10439. fi
  10440. case $host_cpu in
  10441. hppa*64*|ia64*)
  10442. hardcode_direct_CXX=no
  10443. hardcode_shlibpath_var_CXX=no
  10444. ;;
  10445. *)
  10446. hardcode_direct_CXX=yes
  10447. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10448. # but as the default
  10449. # location of the library.
  10450. ;;
  10451. esac
  10452. case $cc_basename in
  10453. CC*)
  10454. # FIXME: insert proper C++ library support
  10455. ld_shlibs_CXX=no
  10456. ;;
  10457. aCC*)
  10458. case $host_cpu in
  10459. hppa*64*)
  10460. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10461. ;;
  10462. ia64*)
  10463. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10464. ;;
  10465. *)
  10466. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10467. ;;
  10468. esac
  10469. # Commands to make compiler produce verbose output that lists
  10470. # what "hidden" libraries, object files and flags are used when
  10471. # linking a shared library.
  10472. #
  10473. # There doesn't appear to be a way to prevent this compiler from
  10474. # explicitly linking system object files so we need to strip them
  10475. # from the output so that they don't get included in the library
  10476. # dependencies.
  10477. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10478. ;;
  10479. *)
  10480. if test "$GXX" = yes; then
  10481. if test $with_gnu_ld = no; then
  10482. case $host_cpu in
  10483. hppa*64*)
  10484. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10485. ;;
  10486. ia64*)
  10487. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10488. ;;
  10489. *)
  10490. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10491. ;;
  10492. esac
  10493. fi
  10494. else
  10495. # FIXME: insert proper C++ library support
  10496. ld_shlibs_CXX=no
  10497. fi
  10498. ;;
  10499. esac
  10500. ;;
  10501. interix[3-9]*)
  10502. hardcode_direct_CXX=no
  10503. hardcode_shlibpath_var_CXX=no
  10504. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10505. export_dynamic_flag_spec_CXX='${wl}-E'
  10506. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10507. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10508. # default) and relocated if they conflict, which is a slow very memory
  10509. # consuming and fragmenting process. To avoid this, we pick a random,
  10510. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10511. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10512. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10513. archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  10514. ;;
  10515. irix5* | irix6*)
  10516. case $cc_basename in
  10517. CC*)
  10518. # SGI C++
  10519. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10520. # Archives containing C++ object files must be created using
  10521. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10522. # necessary to make sure instantiated templates are included
  10523. # in the archive.
  10524. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10525. ;;
  10526. *)
  10527. if test "$GXX" = yes; then
  10528. if test "$with_gnu_ld" = no; then
  10529. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10530. else
  10531. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  10532. fi
  10533. fi
  10534. link_all_deplibs_CXX=yes
  10535. ;;
  10536. esac
  10537. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10538. hardcode_libdir_separator_CXX=:
  10539. ;;
  10540. linux* | k*bsd*-gnu)
  10541. case $cc_basename in
  10542. KCC*)
  10543. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10544. # KCC will only create a shared library if the output file
  10545. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10546. # to its proper name (with version) after linking.
  10547. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10548. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  10549. # Commands to make compiler produce verbose output that lists
  10550. # what "hidden" libraries, object files and flags are used when
  10551. # linking a shared library.
  10552. #
  10553. # There doesn't appear to be a way to prevent this compiler from
  10554. # explicitly linking system object files so we need to strip them
  10555. # from the output so that they don't get included in the library
  10556. # dependencies.
  10557. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10558. hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  10559. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10560. # Archives containing C++ object files must be created using
  10561. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10562. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10563. ;;
  10564. icpc*)
  10565. # Intel C++
  10566. with_gnu_ld=yes
  10567. # version 8.0 and above of icpc choke on multiply defined symbols
  10568. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10569. # earlier do not add the objects themselves.
  10570. case `$CC -V 2>&1` in
  10571. *"Version 7."*)
  10572. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10573. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10574. ;;
  10575. *) # Version 8.0 or newer
  10576. tmp_idyn=
  10577. case $host_cpu in
  10578. ia64*) tmp_idyn=' -i_dynamic';;
  10579. esac
  10580. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10581. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10582. ;;
  10583. esac
  10584. archive_cmds_need_lc_CXX=no
  10585. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10586. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10587. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10588. ;;
  10589. pgCC*)
  10590. # Portland Group C++ compiler
  10591. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10592. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10593. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10594. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10595. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  10596. ;;
  10597. cxx*)
  10598. # Compaq C++
  10599. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10600. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  10601. runpath_var=LD_RUN_PATH
  10602. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10603. hardcode_libdir_separator_CXX=:
  10604. # Commands to make compiler produce verbose output that lists
  10605. # what "hidden" libraries, object files and flags are used when
  10606. # linking a shared library.
  10607. #
  10608. # There doesn't appear to be a way to prevent this compiler from
  10609. # explicitly linking system object files so we need to strip them
  10610. # from the output so that they don't get included in the library
  10611. # dependencies.
  10612. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10613. ;;
  10614. *)
  10615. case `$CC -V 2>&1 | sed 5q` in
  10616. *Sun\ C*)
  10617. # Sun C++ 5.9
  10618. no_undefined_flag_CXX=' -zdefs'
  10619. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10620. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  10621. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10622. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  10623. # Not sure whether something based on
  10624. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10625. # would be better.
  10626. output_verbose_link_cmd='echo'
  10627. # Archives containing C++ object files must be created using
  10628. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10629. # necessary to make sure instantiated templates are included
  10630. # in the archive.
  10631. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10632. ;;
  10633. esac
  10634. ;;
  10635. esac
  10636. ;;
  10637. lynxos*)
  10638. # FIXME: insert proper C++ library support
  10639. ld_shlibs_CXX=no
  10640. ;;
  10641. m88k*)
  10642. # FIXME: insert proper C++ library support
  10643. ld_shlibs_CXX=no
  10644. ;;
  10645. mvs*)
  10646. case $cc_basename in
  10647. cxx*)
  10648. # FIXME: insert proper C++ library support
  10649. ld_shlibs_CXX=no
  10650. ;;
  10651. *)
  10652. # FIXME: insert proper C++ library support
  10653. ld_shlibs_CXX=no
  10654. ;;
  10655. esac
  10656. ;;
  10657. netbsd*)
  10658. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10659. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10660. wlarc=
  10661. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10662. hardcode_direct_CXX=yes
  10663. hardcode_shlibpath_var_CXX=no
  10664. fi
  10665. # Workaround some broken pre-1.5 toolchains
  10666. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10667. ;;
  10668. openbsd2*)
  10669. # C++ shared libraries are fairly broken
  10670. ld_shlibs_CXX=no
  10671. ;;
  10672. openbsd*)
  10673. if test -f /usr/libexec/ld.so; then
  10674. hardcode_direct_CXX=yes
  10675. hardcode_shlibpath_var_CXX=no
  10676. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10677. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10678. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10679. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10680. export_dynamic_flag_spec_CXX='${wl}-E'
  10681. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10682. fi
  10683. output_verbose_link_cmd='echo'
  10684. else
  10685. ld_shlibs_CXX=no
  10686. fi
  10687. ;;
  10688. osf3*)
  10689. case $cc_basename in
  10690. KCC*)
  10691. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10692. # KCC will only create a shared library if the output file
  10693. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10694. # to its proper name (with version) after linking.
  10695. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10696. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10697. hardcode_libdir_separator_CXX=:
  10698. # Archives containing C++ object files must be created using
  10699. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10700. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10701. ;;
  10702. RCC*)
  10703. # Rational C++ 2.4.1
  10704. # FIXME: insert proper C++ library support
  10705. ld_shlibs_CXX=no
  10706. ;;
  10707. cxx*)
  10708. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10709. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10710. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10711. hardcode_libdir_separator_CXX=:
  10712. # Commands to make compiler produce verbose output that lists
  10713. # what "hidden" libraries, object files and flags are used when
  10714. # linking a shared library.
  10715. #
  10716. # There doesn't appear to be a way to prevent this compiler from
  10717. # explicitly linking system object files so we need to strip them
  10718. # from the output so that they don't get included in the library
  10719. # dependencies.
  10720. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10721. ;;
  10722. *)
  10723. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10724. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10725. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10726. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10727. hardcode_libdir_separator_CXX=:
  10728. # Commands to make compiler produce verbose output that lists
  10729. # what "hidden" libraries, object files and flags are used when
  10730. # linking a shared library.
  10731. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10732. else
  10733. # FIXME: insert proper C++ library support
  10734. ld_shlibs_CXX=no
  10735. fi
  10736. ;;
  10737. esac
  10738. ;;
  10739. osf4* | osf5*)
  10740. case $cc_basename in
  10741. KCC*)
  10742. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10743. # KCC will only create a shared library if the output file
  10744. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10745. # to its proper name (with version) after linking.
  10746. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  10747. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10748. hardcode_libdir_separator_CXX=:
  10749. # Archives containing C++ object files must be created using
  10750. # the KAI C++ compiler.
  10751. old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  10752. ;;
  10753. RCC*)
  10754. # Rational C++ 2.4.1
  10755. # FIXME: insert proper C++ library support
  10756. ld_shlibs_CXX=no
  10757. ;;
  10758. cxx*)
  10759. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10760. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10761. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10762. echo "-hidden">> $lib.exp~
  10763. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
  10764. $rm $lib.exp'
  10765. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10766. hardcode_libdir_separator_CXX=:
  10767. # Commands to make compiler produce verbose output that lists
  10768. # what "hidden" libraries, object files and flags are used when
  10769. # linking a shared library.
  10770. #
  10771. # There doesn't appear to be a way to prevent this compiler from
  10772. # explicitly linking system object files so we need to strip them
  10773. # from the output so that they don't get included in the library
  10774. # dependencies.
  10775. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  10776. ;;
  10777. *)
  10778. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10779. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10780. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10781. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10782. hardcode_libdir_separator_CXX=:
  10783. # Commands to make compiler produce verbose output that lists
  10784. # what "hidden" libraries, object files and flags are used when
  10785. # linking a shared library.
  10786. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  10787. else
  10788. # FIXME: insert proper C++ library support
  10789. ld_shlibs_CXX=no
  10790. fi
  10791. ;;
  10792. esac
  10793. ;;
  10794. psos*)
  10795. # FIXME: insert proper C++ library support
  10796. ld_shlibs_CXX=no
  10797. ;;
  10798. sunos4*)
  10799. case $cc_basename in
  10800. CC*)
  10801. # Sun C++ 4.x
  10802. # FIXME: insert proper C++ library support
  10803. ld_shlibs_CXX=no
  10804. ;;
  10805. lcc*)
  10806. # Lucid
  10807. # FIXME: insert proper C++ library support
  10808. ld_shlibs_CXX=no
  10809. ;;
  10810. *)
  10811. # FIXME: insert proper C++ library support
  10812. ld_shlibs_CXX=no
  10813. ;;
  10814. esac
  10815. ;;
  10816. solaris*)
  10817. case $cc_basename in
  10818. CC*)
  10819. # Sun C++ 4.2, 5.x and Centerline C++
  10820. archive_cmds_need_lc_CXX=yes
  10821. no_undefined_flag_CXX=' -zdefs'
  10822. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10823. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10824. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10825. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10826. hardcode_shlibpath_var_CXX=no
  10827. case $host_os in
  10828. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10829. *)
  10830. # The compiler driver will combine and reorder linker options,
  10831. # but understands `-z linker_flag'.
  10832. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10833. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10834. ;;
  10835. esac
  10836. link_all_deplibs_CXX=yes
  10837. output_verbose_link_cmd='echo'
  10838. # Archives containing C++ object files must be created using
  10839. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10840. # necessary to make sure instantiated templates are included
  10841. # in the archive.
  10842. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10843. ;;
  10844. gcx*)
  10845. # Green Hills C++ Compiler
  10846. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10847. # The C++ compiler must be used to create the archive.
  10848. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10849. ;;
  10850. *)
  10851. # GNU C++ compiler with Solaris linker
  10852. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10853. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10854. if $CC --version | grep -v '^2\.7' > /dev/null; then
  10855. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10856. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10857. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10858. # Commands to make compiler produce verbose output that lists
  10859. # what "hidden" libraries, object files and flags are used when
  10860. # linking a shared library.
  10861. output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10862. else
  10863. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10864. # platform.
  10865. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10866. archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10867. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  10868. # Commands to make compiler produce verbose output that lists
  10869. # what "hidden" libraries, object files and flags are used when
  10870. # linking a shared library.
  10871. output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  10872. fi
  10873. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10874. case $host_os in
  10875. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10876. *)
  10877. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10878. ;;
  10879. esac
  10880. fi
  10881. ;;
  10882. esac
  10883. ;;
  10884. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10885. no_undefined_flag_CXX='${wl}-z,text'
  10886. archive_cmds_need_lc_CXX=no
  10887. hardcode_shlibpath_var_CXX=no
  10888. runpath_var='LD_RUN_PATH'
  10889. case $cc_basename in
  10890. CC*)
  10891. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10892. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10893. ;;
  10894. *)
  10895. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10896. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10897. ;;
  10898. esac
  10899. ;;
  10900. sysv5* | sco3.2v5* | sco5v6*)
  10901. # Note: We can NOT use -z defs as we might desire, because we do not
  10902. # link with -lc, and that would cause any symbols used from libc to
  10903. # always be unresolved, which means just about no library would
  10904. # ever link correctly. If we're not using GNU ld we use -z text
  10905. # though, which does catch some bad symbols but isn't as heavy-handed
  10906. # as -z defs.
  10907. # For security reasons, it is highly recommended that you always
  10908. # use absolute paths for naming shared libraries, and exclude the
  10909. # DT_RUNPATH tag from executables and libraries. But doing so
  10910. # requires that you compile everything twice, which is a pain.
  10911. # So that behaviour is only enabled if SCOABSPATH is set to a
  10912. # non-empty value in the environment. Most likely only useful for
  10913. # creating official distributions of packages.
  10914. # This is a hack until libtool officially supports absolute path
  10915. # names for shared libraries.
  10916. no_undefined_flag_CXX='${wl}-z,text'
  10917. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10918. archive_cmds_need_lc_CXX=no
  10919. hardcode_shlibpath_var_CXX=no
  10920. hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  10921. hardcode_libdir_separator_CXX=':'
  10922. link_all_deplibs_CXX=yes
  10923. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10924. runpath_var='LD_RUN_PATH'
  10925. case $cc_basename in
  10926. CC*)
  10927. archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10928. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10929. ;;
  10930. *)
  10931. archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10932. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10933. ;;
  10934. esac
  10935. ;;
  10936. tandem*)
  10937. case $cc_basename in
  10938. NCC*)
  10939. # NonStop-UX NCC 3.20
  10940. # FIXME: insert proper C++ library support
  10941. ld_shlibs_CXX=no
  10942. ;;
  10943. *)
  10944. # FIXME: insert proper C++ library support
  10945. ld_shlibs_CXX=no
  10946. ;;
  10947. esac
  10948. ;;
  10949. vxworks*)
  10950. # FIXME: insert proper C++ library support
  10951. ld_shlibs_CXX=no
  10952. ;;
  10953. *)
  10954. # FIXME: insert proper C++ library support
  10955. ld_shlibs_CXX=no
  10956. ;;
  10957. esac
  10958. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  10959. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  10960. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10961. GCC_CXX="$GXX"
  10962. LD_CXX="$LD"
  10963. cat > conftest.$ac_ext <<EOF
  10964. class Foo
  10965. {
  10966. public:
  10967. Foo (void) { a = 0; }
  10968. private:
  10969. int a;
  10970. };
  10971. EOF
  10972. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10973. (eval $ac_compile) 2>&5
  10974. ac_status=$?
  10975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10976. (exit $ac_status); }; then
  10977. # Parse the compiler output and extract the necessary
  10978. # objects, libraries and library flags.
  10979. # Sentinel used to keep track of whether or not we are before
  10980. # the conftest object file.
  10981. pre_test_object_deps_done=no
  10982. # The `*' in the case matches for architectures that use `case' in
  10983. # $output_verbose_cmd can trigger glob expansion during the loop
  10984. # eval without this substitution.
  10985. output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  10986. for p in `eval $output_verbose_link_cmd`; do
  10987. case $p in
  10988. -L* | -R* | -l*)
  10989. # Some compilers place space between "-{L,R}" and the path.
  10990. # Remove the space.
  10991. if test $p = "-L" \
  10992. || test $p = "-R"; then
  10993. prev=$p
  10994. continue
  10995. else
  10996. prev=
  10997. fi
  10998. if test "$pre_test_object_deps_done" = no; then
  10999. case $p in
  11000. -L* | -R*)
  11001. # Internal compiler library paths should come after those
  11002. # provided the user. The postdeps already come after the
  11003. # user supplied libs so there is no need to process them.
  11004. if test -z "$compiler_lib_search_path_CXX"; then
  11005. compiler_lib_search_path_CXX="${prev}${p}"
  11006. else
  11007. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11008. fi
  11009. ;;
  11010. # The "-l" case would never come before the object being
  11011. # linked, so don't bother handling this case.
  11012. esac
  11013. else
  11014. if test -z "$postdeps_CXX"; then
  11015. postdeps_CXX="${prev}${p}"
  11016. else
  11017. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11018. fi
  11019. fi
  11020. ;;
  11021. *.$objext)
  11022. # This assumes that the test object file only shows up
  11023. # once in the compiler output.
  11024. if test "$p" = "conftest.$objext"; then
  11025. pre_test_object_deps_done=yes
  11026. continue
  11027. fi
  11028. if test "$pre_test_object_deps_done" = no; then
  11029. if test -z "$predep_objects_CXX"; then
  11030. predep_objects_CXX="$p"
  11031. else
  11032. predep_objects_CXX="$predep_objects_CXX $p"
  11033. fi
  11034. else
  11035. if test -z "$postdep_objects_CXX"; then
  11036. postdep_objects_CXX="$p"
  11037. else
  11038. postdep_objects_CXX="$postdep_objects_CXX $p"
  11039. fi
  11040. fi
  11041. ;;
  11042. *) ;; # Ignore the rest.
  11043. esac
  11044. done
  11045. # Clean up.
  11046. rm -f a.out a.exe
  11047. else
  11048. echo "libtool.m4: error: problem compiling CXX test program"
  11049. fi
  11050. $rm -f confest.$objext
  11051. # PORTME: override above test on systems where it is broken
  11052. case $host_os in
  11053. interix[3-9]*)
  11054. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11055. # hack all around it, let's just trust "g++" to DTRT.
  11056. predep_objects_CXX=
  11057. postdep_objects_CXX=
  11058. postdeps_CXX=
  11059. ;;
  11060. linux*)
  11061. case `$CC -V 2>&1 | sed 5q` in
  11062. *Sun\ C*)
  11063. # Sun C++ 5.9
  11064. #
  11065. # The more standards-conforming stlport4 library is
  11066. # incompatible with the Cstd library. Avoid specifying
  11067. # it if it's in CXXFLAGS. Ignore libCrun as
  11068. # -library=stlport4 depends on it.
  11069. case " $CXX $CXXFLAGS " in
  11070. *" -library=stlport4 "*)
  11071. solaris_use_stlport4=yes
  11072. ;;
  11073. esac
  11074. if test "$solaris_use_stlport4" != yes; then
  11075. postdeps_CXX='-library=Cstd -library=Crun'
  11076. fi
  11077. ;;
  11078. esac
  11079. ;;
  11080. solaris*)
  11081. case $cc_basename in
  11082. CC*)
  11083. # The more standards-conforming stlport4 library is
  11084. # incompatible with the Cstd library. Avoid specifying
  11085. # it if it's in CXXFLAGS. Ignore libCrun as
  11086. # -library=stlport4 depends on it.
  11087. case " $CXX $CXXFLAGS " in
  11088. *" -library=stlport4 "*)
  11089. solaris_use_stlport4=yes
  11090. ;;
  11091. esac
  11092. # Adding this requires a known-good setup of shared libraries for
  11093. # Sun compiler versions before 5.6, else PIC objects from an old
  11094. # archive will be linked into the output, leading to subtle bugs.
  11095. if test "$solaris_use_stlport4" != yes; then
  11096. postdeps_CXX='-library=Cstd -library=Crun'
  11097. fi
  11098. ;;
  11099. esac
  11100. ;;
  11101. esac
  11102. case " $postdeps_CXX " in
  11103. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11104. esac
  11105. lt_prog_compiler_wl_CXX=
  11106. lt_prog_compiler_pic_CXX=
  11107. lt_prog_compiler_static_CXX=
  11108. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  11109. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  11110. # C++ specific cases for pic, static, wl, etc.
  11111. if test "$GXX" = yes; then
  11112. lt_prog_compiler_wl_CXX='-Wl,'
  11113. lt_prog_compiler_static_CXX='-static'
  11114. case $host_os in
  11115. aix*)
  11116. # All AIX code is PIC.
  11117. if test "$host_cpu" = ia64; then
  11118. # AIX 5 now supports IA64 processor
  11119. lt_prog_compiler_static_CXX='-Bstatic'
  11120. fi
  11121. ;;
  11122. amigaos*)
  11123. # FIXME: we need at least 68020 code to build shared libraries, but
  11124. # adding the `-m68020' flag to GCC prevents building anything better,
  11125. # like `-m68040'.
  11126. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11127. ;;
  11128. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11129. # PIC is the default for these OSes.
  11130. ;;
  11131. mingw* | cygwin* | os2* | pw32*)
  11132. # This hack is so that the source file can tell whether it is being
  11133. # built for inclusion in a dll (and should export symbols for example).
  11134. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11135. # (--disable-auto-import) libraries
  11136. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11137. ;;
  11138. darwin* | rhapsody*)
  11139. # PIC is the default on this platform
  11140. # Common symbols not allowed in MH_DYLIB files
  11141. lt_prog_compiler_pic_CXX='-fno-common'
  11142. ;;
  11143. *djgpp*)
  11144. # DJGPP does not support shared libraries at all
  11145. lt_prog_compiler_pic_CXX=
  11146. ;;
  11147. interix[3-9]*)
  11148. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11149. # Instead, we relocate shared libraries at runtime.
  11150. ;;
  11151. sysv4*MP*)
  11152. if test -d /usr/nec; then
  11153. lt_prog_compiler_pic_CXX=-Kconform_pic
  11154. fi
  11155. ;;
  11156. hpux*)
  11157. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11158. # not for PA HP-UX.
  11159. case $host_cpu in
  11160. hppa*64*|ia64*)
  11161. ;;
  11162. *)
  11163. lt_prog_compiler_pic_CXX='-fPIC'
  11164. ;;
  11165. esac
  11166. ;;
  11167. *)
  11168. lt_prog_compiler_pic_CXX='-fPIC'
  11169. ;;
  11170. esac
  11171. else
  11172. case $host_os in
  11173. aix4* | aix5*)
  11174. # All AIX code is PIC.
  11175. if test "$host_cpu" = ia64; then
  11176. # AIX 5 now supports IA64 processor
  11177. lt_prog_compiler_static_CXX='-Bstatic'
  11178. else
  11179. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11180. fi
  11181. ;;
  11182. chorus*)
  11183. case $cc_basename in
  11184. cxch68*)
  11185. # Green Hills C++ Compiler
  11186. # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  11187. ;;
  11188. esac
  11189. ;;
  11190. darwin*)
  11191. # PIC is the default on this platform
  11192. # Common symbols not allowed in MH_DYLIB files
  11193. case $cc_basename in
  11194. xlc*)
  11195. lt_prog_compiler_pic_CXX='-qnocommon'
  11196. lt_prog_compiler_wl_CXX='-Wl,'
  11197. ;;
  11198. esac
  11199. ;;
  11200. dgux*)
  11201. case $cc_basename in
  11202. ec++*)
  11203. lt_prog_compiler_pic_CXX='-KPIC'
  11204. ;;
  11205. ghcx*)
  11206. # Green Hills C++ Compiler
  11207. lt_prog_compiler_pic_CXX='-pic'
  11208. ;;
  11209. *)
  11210. ;;
  11211. esac
  11212. ;;
  11213. freebsd* | dragonfly*)
  11214. # FreeBSD uses GNU C++
  11215. ;;
  11216. hpux9* | hpux10* | hpux11*)
  11217. case $cc_basename in
  11218. CC*)
  11219. lt_prog_compiler_wl_CXX='-Wl,'
  11220. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11221. if test "$host_cpu" != ia64; then
  11222. lt_prog_compiler_pic_CXX='+Z'
  11223. fi
  11224. ;;
  11225. aCC*)
  11226. lt_prog_compiler_wl_CXX='-Wl,'
  11227. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11228. case $host_cpu in
  11229. hppa*64*|ia64*)
  11230. # +Z the default
  11231. ;;
  11232. *)
  11233. lt_prog_compiler_pic_CXX='+Z'
  11234. ;;
  11235. esac
  11236. ;;
  11237. *)
  11238. ;;
  11239. esac
  11240. ;;
  11241. interix*)
  11242. # This is c89, which is MS Visual C++ (no shared libs)
  11243. # Anyone wants to do a port?
  11244. ;;
  11245. irix5* | irix6* | nonstopux*)
  11246. case $cc_basename in
  11247. CC*)
  11248. lt_prog_compiler_wl_CXX='-Wl,'
  11249. lt_prog_compiler_static_CXX='-non_shared'
  11250. # CC pic flag -KPIC is the default.
  11251. ;;
  11252. *)
  11253. ;;
  11254. esac
  11255. ;;
  11256. linux* | k*bsd*-gnu)
  11257. case $cc_basename in
  11258. KCC*)
  11259. # KAI C++ Compiler
  11260. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11261. lt_prog_compiler_pic_CXX='-fPIC'
  11262. ;;
  11263. icpc* | ecpc*)
  11264. # Intel C++
  11265. lt_prog_compiler_wl_CXX='-Wl,'
  11266. lt_prog_compiler_pic_CXX='-KPIC'
  11267. lt_prog_compiler_static_CXX='-static'
  11268. ;;
  11269. pgCC*)
  11270. # Portland Group C++ compiler.
  11271. lt_prog_compiler_wl_CXX='-Wl,'
  11272. lt_prog_compiler_pic_CXX='-fpic'
  11273. lt_prog_compiler_static_CXX='-Bstatic'
  11274. ;;
  11275. cxx*)
  11276. # Compaq C++
  11277. # Make sure the PIC flag is empty. It appears that all Alpha
  11278. # Linux and Compaq Tru64 Unix objects are PIC.
  11279. lt_prog_compiler_pic_CXX=
  11280. lt_prog_compiler_static_CXX='-non_shared'
  11281. ;;
  11282. *)
  11283. case `$CC -V 2>&1 | sed 5q` in
  11284. *Sun\ C*)
  11285. # Sun C++ 5.9
  11286. lt_prog_compiler_pic_CXX='-KPIC'
  11287. lt_prog_compiler_static_CXX='-Bstatic'
  11288. lt_prog_compiler_wl_CXX='-Qoption ld '
  11289. ;;
  11290. esac
  11291. ;;
  11292. esac
  11293. ;;
  11294. lynxos*)
  11295. ;;
  11296. m88k*)
  11297. ;;
  11298. mvs*)
  11299. case $cc_basename in
  11300. cxx*)
  11301. lt_prog_compiler_pic_CXX='-W c,exportall'
  11302. ;;
  11303. *)
  11304. ;;
  11305. esac
  11306. ;;
  11307. netbsd*)
  11308. ;;
  11309. osf3* | osf4* | osf5*)
  11310. case $cc_basename in
  11311. KCC*)
  11312. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11313. ;;
  11314. RCC*)
  11315. # Rational C++ 2.4.1
  11316. lt_prog_compiler_pic_CXX='-pic'
  11317. ;;
  11318. cxx*)
  11319. # Digital/Compaq C++
  11320. lt_prog_compiler_wl_CXX='-Wl,'
  11321. # Make sure the PIC flag is empty. It appears that all Alpha
  11322. # Linux and Compaq Tru64 Unix objects are PIC.
  11323. lt_prog_compiler_pic_CXX=
  11324. lt_prog_compiler_static_CXX='-non_shared'
  11325. ;;
  11326. *)
  11327. ;;
  11328. esac
  11329. ;;
  11330. psos*)
  11331. ;;
  11332. solaris*)
  11333. case $cc_basename in
  11334. CC*)
  11335. # Sun C++ 4.2, 5.x and Centerline C++
  11336. lt_prog_compiler_pic_CXX='-KPIC'
  11337. lt_prog_compiler_static_CXX='-Bstatic'
  11338. lt_prog_compiler_wl_CXX='-Qoption ld '
  11339. ;;
  11340. gcx*)
  11341. # Green Hills C++ Compiler
  11342. lt_prog_compiler_pic_CXX='-PIC'
  11343. ;;
  11344. *)
  11345. ;;
  11346. esac
  11347. ;;
  11348. sunos4*)
  11349. case $cc_basename in
  11350. CC*)
  11351. # Sun C++ 4.x
  11352. lt_prog_compiler_pic_CXX='-pic'
  11353. lt_prog_compiler_static_CXX='-Bstatic'
  11354. ;;
  11355. lcc*)
  11356. # Lucid
  11357. lt_prog_compiler_pic_CXX='-pic'
  11358. ;;
  11359. *)
  11360. ;;
  11361. esac
  11362. ;;
  11363. tandem*)
  11364. case $cc_basename in
  11365. NCC*)
  11366. # NonStop-UX NCC 3.20
  11367. lt_prog_compiler_pic_CXX='-KPIC'
  11368. ;;
  11369. *)
  11370. ;;
  11371. esac
  11372. ;;
  11373. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11374. case $cc_basename in
  11375. CC*)
  11376. lt_prog_compiler_wl_CXX='-Wl,'
  11377. lt_prog_compiler_pic_CXX='-KPIC'
  11378. lt_prog_compiler_static_CXX='-Bstatic'
  11379. ;;
  11380. esac
  11381. ;;
  11382. vxworks*)
  11383. ;;
  11384. *)
  11385. lt_prog_compiler_can_build_shared_CXX=no
  11386. ;;
  11387. esac
  11388. fi
  11389. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  11390. echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
  11391. #
  11392. # Check to make sure the PIC flag actually works.
  11393. #
  11394. if test -n "$lt_prog_compiler_pic_CXX"; then
  11395. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11396. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
  11397. if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  11398. echo $ECHO_N "(cached) $ECHO_C" >&6
  11399. else
  11400. lt_prog_compiler_pic_works_CXX=no
  11401. ac_outfile=conftest.$ac_objext
  11402. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11403. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11404. # Insert the option either (1) after the last *FLAGS variable, or
  11405. # (2) before a word containing "conftest.", or (3) at the end.
  11406. # Note that $ac_compile itself does not contain backslashes and begins
  11407. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11408. # The option is referenced via a variable to avoid confusing sed.
  11409. lt_compile=`echo "$ac_compile" | $SED \
  11410. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11411. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11412. -e 's:$: $lt_compiler_flag:'`
  11413. (eval echo "\"\$as_me:12701: $lt_compile\"" >&5)
  11414. (eval "$lt_compile" 2>conftest.err)
  11415. ac_status=$?
  11416. cat conftest.err >&5
  11417. echo "$as_me:12705: \$? = $ac_status" >&5
  11418. if (exit $ac_status) && test -s "$ac_outfile"; then
  11419. # The compiler can only warn and ignore the option if not recognized
  11420. # So say no if there are warnings other than the usual output.
  11421. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11422. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11423. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11424. lt_prog_compiler_pic_works_CXX=yes
  11425. fi
  11426. fi
  11427. $rm conftest*
  11428. fi
  11429. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  11430. echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
  11431. if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  11432. case $lt_prog_compiler_pic_CXX in
  11433. "" | " "*) ;;
  11434. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11435. esac
  11436. else
  11437. lt_prog_compiler_pic_CXX=
  11438. lt_prog_compiler_can_build_shared_CXX=no
  11439. fi
  11440. fi
  11441. case $host_os in
  11442. # For platforms which do not support PIC, -DPIC is meaningless:
  11443. *djgpp*)
  11444. lt_prog_compiler_pic_CXX=
  11445. ;;
  11446. *)
  11447. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11448. ;;
  11449. esac
  11450. #
  11451. # Check to make sure the static flag actually works.
  11452. #
  11453. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11454. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11455. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  11456. if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
  11457. echo $ECHO_N "(cached) $ECHO_C" >&6
  11458. else
  11459. lt_prog_compiler_static_works_CXX=no
  11460. save_LDFLAGS="$LDFLAGS"
  11461. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11462. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11463. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11464. # The linker can only warn and ignore the option if not recognized
  11465. # So say no if there are warnings
  11466. if test -s conftest.err; then
  11467. # Append any errors to the config.log.
  11468. cat conftest.err 1>&5
  11469. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11470. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11471. if diff conftest.exp conftest.er2 >/dev/null; then
  11472. lt_prog_compiler_static_works_CXX=yes
  11473. fi
  11474. else
  11475. lt_prog_compiler_static_works_CXX=yes
  11476. fi
  11477. fi
  11478. $rm conftest*
  11479. LDFLAGS="$save_LDFLAGS"
  11480. fi
  11481. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
  11482. echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
  11483. if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
  11484. :
  11485. else
  11486. lt_prog_compiler_static_CXX=
  11487. fi
  11488. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  11489. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  11490. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  11491. echo $ECHO_N "(cached) $ECHO_C" >&6
  11492. else
  11493. lt_cv_prog_compiler_c_o_CXX=no
  11494. $rm -r conftest 2>/dev/null
  11495. mkdir conftest
  11496. cd conftest
  11497. mkdir out
  11498. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11499. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11500. # Insert the option either (1) after the last *FLAGS variable, or
  11501. # (2) before a word containing "conftest.", or (3) at the end.
  11502. # Note that $ac_compile itself does not contain backslashes and begins
  11503. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11504. lt_compile=`echo "$ac_compile" | $SED \
  11505. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11506. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11507. -e 's:$: $lt_compiler_flag:'`
  11508. (eval echo "\"\$as_me:12805: $lt_compile\"" >&5)
  11509. (eval "$lt_compile" 2>out/conftest.err)
  11510. ac_status=$?
  11511. cat out/conftest.err >&5
  11512. echo "$as_me:12809: \$? = $ac_status" >&5
  11513. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11514. then
  11515. # The compiler can only warn and ignore the option if not recognized
  11516. # So say no if there are warnings
  11517. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11518. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11519. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11520. lt_cv_prog_compiler_c_o_CXX=yes
  11521. fi
  11522. fi
  11523. chmod u+w . 2>&5
  11524. $rm conftest*
  11525. # SGI C++ compiler will create directory out/ii_files/ for
  11526. # template instantiation
  11527. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  11528. $rm out/* && rmdir out
  11529. cd ..
  11530. rmdir conftest
  11531. $rm conftest*
  11532. fi
  11533. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11534. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11535. hard_links="nottested"
  11536. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11537. # do not overwrite the value of need_locks provided by the user
  11538. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  11539. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  11540. hard_links=yes
  11541. $rm conftest*
  11542. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11543. touch conftest.a
  11544. ln conftest.a conftest.b 2>&5 || hard_links=no
  11545. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11546. { echo "$as_me:$LINENO: result: $hard_links" >&5
  11547. echo "${ECHO_T}$hard_links" >&6; }
  11548. if test "$hard_links" = no; then
  11549. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11550. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11551. need_locks=warn
  11552. fi
  11553. else
  11554. need_locks=no
  11555. fi
  11556. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11557. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  11558. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11559. case $host_os in
  11560. aix4* | aix5*)
  11561. # If we're using GNU nm, then we don't want the "-C" option.
  11562. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11563. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11564. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  11565. else
  11566. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  11567. fi
  11568. ;;
  11569. pw32*)
  11570. export_symbols_cmds_CXX="$ltdll_cmds"
  11571. ;;
  11572. cygwin* | mingw*)
  11573. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  11574. ;;
  11575. *)
  11576. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11577. ;;
  11578. esac
  11579. { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  11580. echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
  11581. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11582. #
  11583. # Do we need to explicitly link libc?
  11584. #
  11585. case "x$archive_cmds_need_lc_CXX" in
  11586. x|xyes)
  11587. # Assume -lc should be added
  11588. archive_cmds_need_lc_CXX=yes
  11589. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11590. case $archive_cmds_CXX in
  11591. *'~'*)
  11592. # FIXME: we may have to deal with multi-command sequences.
  11593. ;;
  11594. '$CC '*)
  11595. # Test whether the compiler implicitly links with -lc since on some
  11596. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11597. # to ld, don't add -lc before -lgcc.
  11598. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  11599. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  11600. $rm conftest*
  11601. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11602. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11603. (eval $ac_compile) 2>&5
  11604. ac_status=$?
  11605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11606. (exit $ac_status); } 2>conftest.err; then
  11607. soname=conftest
  11608. lib=conftest
  11609. libobjs=conftest.$ac_objext
  11610. deplibs=
  11611. wl=$lt_prog_compiler_wl_CXX
  11612. pic_flag=$lt_prog_compiler_pic_CXX
  11613. compiler_flags=-v
  11614. linker_flags=-v
  11615. verstring=
  11616. output_objdir=.
  11617. libname=conftest
  11618. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11619. allow_undefined_flag_CXX=
  11620. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  11621. (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11622. ac_status=$?
  11623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11624. (exit $ac_status); }
  11625. then
  11626. archive_cmds_need_lc_CXX=no
  11627. else
  11628. archive_cmds_need_lc_CXX=yes
  11629. fi
  11630. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11631. else
  11632. cat conftest.err 1>&5
  11633. fi
  11634. $rm conftest*
  11635. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  11636. echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
  11637. ;;
  11638. esac
  11639. fi
  11640. ;;
  11641. esac
  11642. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  11643. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  11644. library_names_spec=
  11645. libname_spec='lib$name'
  11646. soname_spec=
  11647. shrext_cmds=".so"
  11648. postinstall_cmds=
  11649. postuninstall_cmds=
  11650. finish_cmds=
  11651. finish_eval=
  11652. shlibpath_var=
  11653. shlibpath_overrides_runpath=unknown
  11654. version_type=none
  11655. dynamic_linker="$host_os ld.so"
  11656. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11657. need_lib_prefix=unknown
  11658. hardcode_into_libs=no
  11659. # when you set need_version to no, make sure it does not cause -set_version
  11660. # flags to be left without arguments
  11661. need_version=unknown
  11662. case $host_os in
  11663. aix3*)
  11664. version_type=linux
  11665. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11666. shlibpath_var=LIBPATH
  11667. # AIX 3 has no versioning support, so we append a major version to the name.
  11668. soname_spec='${libname}${release}${shared_ext}$major'
  11669. ;;
  11670. aix4* | aix5*)
  11671. version_type=linux
  11672. need_lib_prefix=no
  11673. need_version=no
  11674. hardcode_into_libs=yes
  11675. if test "$host_cpu" = ia64; then
  11676. # AIX 5 supports IA64
  11677. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11678. shlibpath_var=LD_LIBRARY_PATH
  11679. else
  11680. # With GCC up to 2.95.x, collect2 would create an import file
  11681. # for dependence libraries. The import file would start with
  11682. # the line `#! .'. This would cause the generated library to
  11683. # depend on `.', always an invalid library. This was fixed in
  11684. # development snapshots of GCC prior to 3.0.
  11685. case $host_os in
  11686. aix4 | aix4.[01] | aix4.[01].*)
  11687. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11688. echo ' yes '
  11689. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  11690. :
  11691. else
  11692. can_build_shared=no
  11693. fi
  11694. ;;
  11695. esac
  11696. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11697. # soname into executable. Probably we can add versioning support to
  11698. # collect2, so additional links can be useful in future.
  11699. if test "$aix_use_runtimelinking" = yes; then
  11700. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11701. # instead of lib<name>.a to let people know that these are not
  11702. # typical AIX shared libraries.
  11703. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11704. else
  11705. # We preserve .a as extension for shared libraries through AIX4.2
  11706. # and later when we are not doing run time linking.
  11707. library_names_spec='${libname}${release}.a $libname.a'
  11708. soname_spec='${libname}${release}${shared_ext}$major'
  11709. fi
  11710. shlibpath_var=LIBPATH
  11711. fi
  11712. ;;
  11713. amigaos*)
  11714. library_names_spec='$libname.ixlibrary $libname.a'
  11715. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11716. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  11717. ;;
  11718. beos*)
  11719. library_names_spec='${libname}${shared_ext}'
  11720. dynamic_linker="$host_os ld.so"
  11721. shlibpath_var=LIBRARY_PATH
  11722. ;;
  11723. bsdi[45]*)
  11724. version_type=linux
  11725. need_version=no
  11726. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11727. soname_spec='${libname}${release}${shared_ext}$major'
  11728. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11729. shlibpath_var=LD_LIBRARY_PATH
  11730. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11731. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11732. # the default ld.so.conf also contains /usr/contrib/lib and
  11733. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11734. # libtool to hard-code these into programs
  11735. ;;
  11736. cygwin* | mingw* | pw32*)
  11737. version_type=windows
  11738. shrext_cmds=".dll"
  11739. need_version=no
  11740. need_lib_prefix=no
  11741. case $GCC,$host_os in
  11742. yes,cygwin* | yes,mingw* | yes,pw32*)
  11743. library_names_spec='$libname.dll.a'
  11744. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11745. postinstall_cmds='base_file=`basename \${file}`~
  11746. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  11747. dldir=$destdir/`dirname \$dlpath`~
  11748. test -d \$dldir || mkdir -p \$dldir~
  11749. $install_prog $dir/$dlname \$dldir/$dlname~
  11750. chmod a+x \$dldir/$dlname'
  11751. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11752. dlpath=$dir/\$dldll~
  11753. $rm \$dlpath'
  11754. shlibpath_overrides_runpath=yes
  11755. case $host_os in
  11756. cygwin*)
  11757. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11758. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11759. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11760. ;;
  11761. mingw*)
  11762. # MinGW DLLs use traditional 'lib' prefix
  11763. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11764. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11765. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  11766. # It is most probably a Windows format PATH printed by
  11767. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11768. # path with ; separators, and with drive letters. We can handle the
  11769. # drive letters (cygwin fileutils understands them), so leave them,
  11770. # especially as we might pass files found there to a mingw objdump,
  11771. # which wouldn't understand a cygwinified path. Ahh.
  11772. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11773. else
  11774. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11775. fi
  11776. ;;
  11777. pw32*)
  11778. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11779. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11780. ;;
  11781. esac
  11782. ;;
  11783. *)
  11784. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11785. ;;
  11786. esac
  11787. dynamic_linker='Win32 ld.exe'
  11788. # FIXME: first we should search . and the directory the executable is in
  11789. shlibpath_var=PATH
  11790. ;;
  11791. darwin* | rhapsody*)
  11792. dynamic_linker="$host_os dyld"
  11793. version_type=darwin
  11794. need_lib_prefix=no
  11795. need_version=no
  11796. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11797. soname_spec='${libname}${release}${major}$shared_ext'
  11798. shlibpath_overrides_runpath=yes
  11799. shlibpath_var=DYLD_LIBRARY_PATH
  11800. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11801. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11802. ;;
  11803. dgux*)
  11804. version_type=linux
  11805. need_lib_prefix=no
  11806. need_version=no
  11807. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11808. soname_spec='${libname}${release}${shared_ext}$major'
  11809. shlibpath_var=LD_LIBRARY_PATH
  11810. ;;
  11811. freebsd1*)
  11812. dynamic_linker=no
  11813. ;;
  11814. freebsd* | dragonfly*)
  11815. # DragonFly does not have aout. When/if they implement a new
  11816. # versioning mechanism, adjust this.
  11817. if test -x /usr/bin/objformat; then
  11818. objformat=`/usr/bin/objformat`
  11819. else
  11820. case $host_os in
  11821. freebsd[123]*) objformat=aout ;;
  11822. *) objformat=elf ;;
  11823. esac
  11824. fi
  11825. version_type=freebsd-$objformat
  11826. case $version_type in
  11827. freebsd-elf*)
  11828. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11829. need_version=no
  11830. need_lib_prefix=no
  11831. ;;
  11832. freebsd-*)
  11833. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11834. need_version=yes
  11835. ;;
  11836. esac
  11837. shlibpath_var=LD_LIBRARY_PATH
  11838. case $host_os in
  11839. freebsd2*)
  11840. shlibpath_overrides_runpath=yes
  11841. ;;
  11842. freebsd3.[01]* | freebsdelf3.[01]*)
  11843. shlibpath_overrides_runpath=yes
  11844. hardcode_into_libs=yes
  11845. ;;
  11846. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11847. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11848. shlibpath_overrides_runpath=no
  11849. hardcode_into_libs=yes
  11850. ;;
  11851. *) # from 4.6 on, and DragonFly
  11852. shlibpath_overrides_runpath=yes
  11853. hardcode_into_libs=yes
  11854. ;;
  11855. esac
  11856. ;;
  11857. gnu*)
  11858. version_type=linux
  11859. need_lib_prefix=no
  11860. need_version=no
  11861. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11862. soname_spec='${libname}${release}${shared_ext}$major'
  11863. shlibpath_var=LD_LIBRARY_PATH
  11864. hardcode_into_libs=yes
  11865. ;;
  11866. hpux9* | hpux10* | hpux11*)
  11867. # Give a soname corresponding to the major version so that dld.sl refuses to
  11868. # link against other versions.
  11869. version_type=sunos
  11870. need_lib_prefix=no
  11871. need_version=no
  11872. case $host_cpu in
  11873. ia64*)
  11874. shrext_cmds='.so'
  11875. hardcode_into_libs=yes
  11876. dynamic_linker="$host_os dld.so"
  11877. shlibpath_var=LD_LIBRARY_PATH
  11878. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11879. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11880. soname_spec='${libname}${release}${shared_ext}$major'
  11881. if test "X$HPUX_IA64_MODE" = X32; then
  11882. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11883. else
  11884. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11885. fi
  11886. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11887. ;;
  11888. hppa*64*)
  11889. shrext_cmds='.sl'
  11890. hardcode_into_libs=yes
  11891. dynamic_linker="$host_os dld.sl"
  11892. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11893. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11894. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11895. soname_spec='${libname}${release}${shared_ext}$major'
  11896. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11897. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11898. ;;
  11899. *)
  11900. shrext_cmds='.sl'
  11901. dynamic_linker="$host_os dld.sl"
  11902. shlibpath_var=SHLIB_PATH
  11903. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11904. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11905. soname_spec='${libname}${release}${shared_ext}$major'
  11906. ;;
  11907. esac
  11908. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11909. postinstall_cmds='chmod 555 $lib'
  11910. ;;
  11911. interix[3-9]*)
  11912. version_type=linux
  11913. need_lib_prefix=no
  11914. need_version=no
  11915. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11916. soname_spec='${libname}${release}${shared_ext}$major'
  11917. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11918. shlibpath_var=LD_LIBRARY_PATH
  11919. shlibpath_overrides_runpath=no
  11920. hardcode_into_libs=yes
  11921. ;;
  11922. irix5* | irix6* | nonstopux*)
  11923. case $host_os in
  11924. nonstopux*) version_type=nonstopux ;;
  11925. *)
  11926. if test "$lt_cv_prog_gnu_ld" = yes; then
  11927. version_type=linux
  11928. else
  11929. version_type=irix
  11930. fi ;;
  11931. esac
  11932. need_lib_prefix=no
  11933. need_version=no
  11934. soname_spec='${libname}${release}${shared_ext}$major'
  11935. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11936. case $host_os in
  11937. irix5* | nonstopux*)
  11938. libsuff= shlibsuff=
  11939. ;;
  11940. *)
  11941. case $LD in # libtool.m4 will add one of these switches to LD
  11942. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11943. libsuff= shlibsuff= libmagic=32-bit;;
  11944. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11945. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11946. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11947. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11948. *) libsuff= shlibsuff= libmagic=never-match;;
  11949. esac
  11950. ;;
  11951. esac
  11952. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11953. shlibpath_overrides_runpath=no
  11954. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11955. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11956. hardcode_into_libs=yes
  11957. ;;
  11958. # No shared lib support for Linux oldld, aout, or coff.
  11959. linux*oldld* | linux*aout* | linux*coff*)
  11960. dynamic_linker=no
  11961. ;;
  11962. # This must be Linux ELF.
  11963. linux* | k*bsd*-gnu)
  11964. version_type=linux
  11965. need_lib_prefix=no
  11966. need_version=no
  11967. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11968. soname_spec='${libname}${release}${shared_ext}$major'
  11969. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11970. shlibpath_var=LD_LIBRARY_PATH
  11971. shlibpath_overrides_runpath=no
  11972. # This implies no fast_install, which is unacceptable.
  11973. # Some rework will be needed to allow for fast_install
  11974. # before this can be enabled.
  11975. hardcode_into_libs=yes
  11976. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11977. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11978. # Append ld.so.conf contents to the search path
  11979. if test -f /etc/ld.so.conf; then
  11980. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  11981. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  11982. fi
  11983. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11984. # powerpc, because MkLinux only supported shared libraries with the
  11985. # GNU dynamic linker. Since this was broken with cross compilers,
  11986. # most powerpc-linux boxes support dynamic linking these days and
  11987. # people can always --disable-shared, the test was removed, and we
  11988. # assume the GNU/Linux dynamic linker is in use.
  11989. dynamic_linker='GNU/Linux ld.so'
  11990. ;;
  11991. netbsd*)
  11992. version_type=sunos
  11993. need_lib_prefix=no
  11994. need_version=no
  11995. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11996. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  11997. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  11998. dynamic_linker='NetBSD (a.out) ld.so'
  11999. else
  12000. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12001. soname_spec='${libname}${release}${shared_ext}$major'
  12002. dynamic_linker='NetBSD ld.elf_so'
  12003. fi
  12004. shlibpath_var=LD_LIBRARY_PATH
  12005. shlibpath_overrides_runpath=yes
  12006. hardcode_into_libs=yes
  12007. ;;
  12008. newsos6)
  12009. version_type=linux
  12010. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12011. shlibpath_var=LD_LIBRARY_PATH
  12012. shlibpath_overrides_runpath=yes
  12013. ;;
  12014. nto-qnx*)
  12015. version_type=linux
  12016. need_lib_prefix=no
  12017. need_version=no
  12018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12019. soname_spec='${libname}${release}${shared_ext}$major'
  12020. shlibpath_var=LD_LIBRARY_PATH
  12021. shlibpath_overrides_runpath=yes
  12022. ;;
  12023. openbsd*)
  12024. version_type=sunos
  12025. sys_lib_dlsearch_path_spec="/usr/lib"
  12026. need_lib_prefix=no
  12027. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12028. case $host_os in
  12029. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12030. *) need_version=no ;;
  12031. esac
  12032. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12033. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12034. shlibpath_var=LD_LIBRARY_PATH
  12035. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12036. case $host_os in
  12037. openbsd2.[89] | openbsd2.[89].*)
  12038. shlibpath_overrides_runpath=no
  12039. ;;
  12040. *)
  12041. shlibpath_overrides_runpath=yes
  12042. ;;
  12043. esac
  12044. else
  12045. shlibpath_overrides_runpath=yes
  12046. fi
  12047. ;;
  12048. os2*)
  12049. libname_spec='$name'
  12050. shrext_cmds=".dll"
  12051. need_lib_prefix=no
  12052. library_names_spec='$libname${shared_ext} $libname.a'
  12053. dynamic_linker='OS/2 ld.exe'
  12054. shlibpath_var=LIBPATH
  12055. ;;
  12056. osf3* | osf4* | osf5*)
  12057. version_type=osf
  12058. need_lib_prefix=no
  12059. need_version=no
  12060. soname_spec='${libname}${release}${shared_ext}$major'
  12061. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12062. shlibpath_var=LD_LIBRARY_PATH
  12063. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12064. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12065. ;;
  12066. rdos*)
  12067. dynamic_linker=no
  12068. ;;
  12069. solaris*)
  12070. version_type=linux
  12071. need_lib_prefix=no
  12072. need_version=no
  12073. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12074. soname_spec='${libname}${release}${shared_ext}$major'
  12075. shlibpath_var=LD_LIBRARY_PATH
  12076. shlibpath_overrides_runpath=yes
  12077. hardcode_into_libs=yes
  12078. # ldd complains unless libraries are executable
  12079. postinstall_cmds='chmod +x $lib'
  12080. ;;
  12081. sunos4*)
  12082. version_type=sunos
  12083. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12084. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12085. shlibpath_var=LD_LIBRARY_PATH
  12086. shlibpath_overrides_runpath=yes
  12087. if test "$with_gnu_ld" = yes; then
  12088. need_lib_prefix=no
  12089. fi
  12090. need_version=yes
  12091. ;;
  12092. sysv4 | sysv4.3*)
  12093. version_type=linux
  12094. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12095. soname_spec='${libname}${release}${shared_ext}$major'
  12096. shlibpath_var=LD_LIBRARY_PATH
  12097. case $host_vendor in
  12098. sni)
  12099. shlibpath_overrides_runpath=no
  12100. need_lib_prefix=no
  12101. export_dynamic_flag_spec='${wl}-Blargedynsym'
  12102. runpath_var=LD_RUN_PATH
  12103. ;;
  12104. siemens)
  12105. need_lib_prefix=no
  12106. ;;
  12107. motorola)
  12108. need_lib_prefix=no
  12109. need_version=no
  12110. shlibpath_overrides_runpath=no
  12111. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12112. ;;
  12113. esac
  12114. ;;
  12115. sysv4*MP*)
  12116. if test -d /usr/nec ;then
  12117. version_type=linux
  12118. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12119. soname_spec='$libname${shared_ext}.$major'
  12120. shlibpath_var=LD_LIBRARY_PATH
  12121. fi
  12122. ;;
  12123. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12124. version_type=freebsd-elf
  12125. need_lib_prefix=no
  12126. need_version=no
  12127. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12128. soname_spec='${libname}${release}${shared_ext}$major'
  12129. shlibpath_var=LD_LIBRARY_PATH
  12130. hardcode_into_libs=yes
  12131. if test "$with_gnu_ld" = yes; then
  12132. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12133. shlibpath_overrides_runpath=no
  12134. else
  12135. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12136. shlibpath_overrides_runpath=yes
  12137. case $host_os in
  12138. sco3.2v5*)
  12139. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12140. ;;
  12141. esac
  12142. fi
  12143. sys_lib_dlsearch_path_spec='/usr/lib'
  12144. ;;
  12145. uts4*)
  12146. version_type=linux
  12147. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12148. soname_spec='${libname}${release}${shared_ext}$major'
  12149. shlibpath_var=LD_LIBRARY_PATH
  12150. ;;
  12151. *)
  12152. dynamic_linker=no
  12153. ;;
  12154. esac
  12155. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  12156. echo "${ECHO_T}$dynamic_linker" >&6; }
  12157. test "$dynamic_linker" = no && can_build_shared=no
  12158. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12159. if test "$GCC" = yes; then
  12160. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12161. fi
  12162. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  12163. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  12164. hardcode_action_CXX=
  12165. if test -n "$hardcode_libdir_flag_spec_CXX" || \
  12166. test -n "$runpath_var_CXX" || \
  12167. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12168. # We can hardcode non-existent directories.
  12169. if test "$hardcode_direct_CXX" != no &&
  12170. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12171. # have to relink, otherwise we might link with an installed library
  12172. # when we should be linking with a yet-to-be-installed one
  12173. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12174. test "$hardcode_minus_L_CXX" != no; then
  12175. # Linking always hardcodes the temporary library directory.
  12176. hardcode_action_CXX=relink
  12177. else
  12178. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12179. hardcode_action_CXX=immediate
  12180. fi
  12181. else
  12182. # We cannot hardcode anything, or else we can only hardcode existing
  12183. # directories.
  12184. hardcode_action_CXX=unsupported
  12185. fi
  12186. { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  12187. echo "${ECHO_T}$hardcode_action_CXX" >&6; }
  12188. if test "$hardcode_action_CXX" = relink; then
  12189. # Fast installation is not supported
  12190. enable_fast_install=no
  12191. elif test "$shlibpath_overrides_runpath" = yes ||
  12192. test "$enable_shared" = no; then
  12193. # Fast installation is not necessary
  12194. enable_fast_install=needless
  12195. fi
  12196. # The else clause should only fire when bootstrapping the
  12197. # libtool distribution, otherwise you forgot to ship ltmain.sh
  12198. # with your package, and you will get complaints that there are
  12199. # no rules to generate ltmain.sh.
  12200. if test -f "$ltmain"; then
  12201. # See if we are running on zsh, and set the options which allow our commands through
  12202. # without removal of \ escapes.
  12203. if test -n "${ZSH_VERSION+set}" ; then
  12204. setopt NO_GLOB_SUBST
  12205. fi
  12206. # Now quote all the things that may contain metacharacters while being
  12207. # careful not to overquote the AC_SUBSTed values. We take copies of the
  12208. # variables and quote the copies for generation of the libtool script.
  12209. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  12210. SED SHELL STRIP \
  12211. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  12212. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  12213. deplibs_check_method reload_flag reload_cmds need_locks \
  12214. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  12215. lt_cv_sys_global_symbol_to_c_name_address \
  12216. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  12217. old_postinstall_cmds old_postuninstall_cmds \
  12218. compiler_CXX \
  12219. CC_CXX \
  12220. LD_CXX \
  12221. lt_prog_compiler_wl_CXX \
  12222. lt_prog_compiler_pic_CXX \
  12223. lt_prog_compiler_static_CXX \
  12224. lt_prog_compiler_no_builtin_flag_CXX \
  12225. export_dynamic_flag_spec_CXX \
  12226. thread_safe_flag_spec_CXX \
  12227. whole_archive_flag_spec_CXX \
  12228. enable_shared_with_static_runtimes_CXX \
  12229. old_archive_cmds_CXX \
  12230. old_archive_from_new_cmds_CXX \
  12231. predep_objects_CXX \
  12232. postdep_objects_CXX \
  12233. predeps_CXX \
  12234. postdeps_CXX \
  12235. compiler_lib_search_path_CXX \
  12236. archive_cmds_CXX \
  12237. archive_expsym_cmds_CXX \
  12238. postinstall_cmds_CXX \
  12239. postuninstall_cmds_CXX \
  12240. old_archive_from_expsyms_cmds_CXX \
  12241. allow_undefined_flag_CXX \
  12242. no_undefined_flag_CXX \
  12243. export_symbols_cmds_CXX \
  12244. hardcode_libdir_flag_spec_CXX \
  12245. hardcode_libdir_flag_spec_ld_CXX \
  12246. hardcode_libdir_separator_CXX \
  12247. hardcode_automatic_CXX \
  12248. module_cmds_CXX \
  12249. module_expsym_cmds_CXX \
  12250. lt_cv_prog_compiler_c_o_CXX \
  12251. fix_srcfile_path_CXX \
  12252. exclude_expsyms_CXX \
  12253. include_expsyms_CXX; do
  12254. case $var in
  12255. old_archive_cmds_CXX | \
  12256. old_archive_from_new_cmds_CXX | \
  12257. archive_cmds_CXX | \
  12258. archive_expsym_cmds_CXX | \
  12259. module_cmds_CXX | \
  12260. module_expsym_cmds_CXX | \
  12261. old_archive_from_expsyms_cmds_CXX | \
  12262. export_symbols_cmds_CXX | \
  12263. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  12264. postinstall_cmds | postuninstall_cmds | \
  12265. old_postinstall_cmds | old_postuninstall_cmds | \
  12266. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  12267. # Double-quote double-evaled strings.
  12268. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  12269. ;;
  12270. *)
  12271. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  12272. ;;
  12273. esac
  12274. done
  12275. case $lt_echo in
  12276. *'\$0 --fallback-echo"')
  12277. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  12278. ;;
  12279. esac
  12280. cfgfile="$ofile"
  12281. cat <<__EOF__ >> "$cfgfile"
  12282. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  12283. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12284. # Shell to use when invoking shell scripts.
  12285. SHELL=$lt_SHELL
  12286. # Whether or not to build shared libraries.
  12287. build_libtool_libs=$enable_shared
  12288. # Whether or not to build static libraries.
  12289. build_old_libs=$enable_static
  12290. # Whether or not to add -lc for building shared libraries.
  12291. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  12292. # Whether or not to disallow shared libs when runtime libs are static
  12293. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  12294. # Whether or not to optimize for fast installation.
  12295. fast_install=$enable_fast_install
  12296. # The host system.
  12297. host_alias=$host_alias
  12298. host=$host
  12299. host_os=$host_os
  12300. # The build system.
  12301. build_alias=$build_alias
  12302. build=$build
  12303. build_os=$build_os
  12304. # An echo program that does not interpret backslashes.
  12305. echo=$lt_echo
  12306. # The archiver.
  12307. AR=$lt_AR
  12308. AR_FLAGS=$lt_AR_FLAGS
  12309. # A C compiler.
  12310. LTCC=$lt_LTCC
  12311. # LTCC compiler flags.
  12312. LTCFLAGS=$lt_LTCFLAGS
  12313. # A language-specific compiler.
  12314. CC=$lt_compiler_CXX
  12315. # Is the compiler the GNU C compiler?
  12316. with_gcc=$GCC_CXX
  12317. # An ERE matcher.
  12318. EGREP=$lt_EGREP
  12319. # The linker used to build libraries.
  12320. LD=$lt_LD_CXX
  12321. # Whether we need hard or soft links.
  12322. LN_S=$lt_LN_S
  12323. # A BSD-compatible nm program.
  12324. NM=$lt_NM
  12325. # A symbol stripping program
  12326. STRIP=$lt_STRIP
  12327. # Used to examine libraries when file_magic_cmd begins "file"
  12328. MAGIC_CMD=$MAGIC_CMD
  12329. # Used on cygwin: DLL creation program.
  12330. DLLTOOL="$DLLTOOL"
  12331. # Used on cygwin: object dumper.
  12332. OBJDUMP="$OBJDUMP"
  12333. # Used on cygwin: assembler.
  12334. AS="$AS"
  12335. # The name of the directory that contains temporary libtool files.
  12336. objdir=$objdir
  12337. # How to create reloadable object files.
  12338. reload_flag=$lt_reload_flag
  12339. reload_cmds=$lt_reload_cmds
  12340. # How to pass a linker flag through the compiler.
  12341. wl=$lt_lt_prog_compiler_wl_CXX
  12342. # Object file suffix (normally "o").
  12343. objext="$ac_objext"
  12344. # Old archive suffix (normally "a").
  12345. libext="$libext"
  12346. # Shared library suffix (normally ".so").
  12347. shrext_cmds='$shrext_cmds'
  12348. # Executable file suffix (normally "").
  12349. exeext="$exeext"
  12350. # Additional compiler flags for building library objects.
  12351. pic_flag=$lt_lt_prog_compiler_pic_CXX
  12352. pic_mode=$pic_mode
  12353. # What is the maximum length of a command?
  12354. max_cmd_len=$lt_cv_sys_max_cmd_len
  12355. # Does compiler simultaneously support -c and -o options?
  12356. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  12357. # Must we lock files when doing compilation?
  12358. need_locks=$lt_need_locks
  12359. # Do we need the lib prefix for modules?
  12360. need_lib_prefix=$need_lib_prefix
  12361. # Do we need a version for libraries?
  12362. need_version=$need_version
  12363. # Whether dlopen is supported.
  12364. dlopen_support=$enable_dlopen
  12365. # Whether dlopen of programs is supported.
  12366. dlopen_self=$enable_dlopen_self
  12367. # Whether dlopen of statically linked programs is supported.
  12368. dlopen_self_static=$enable_dlopen_self_static
  12369. # Compiler flag to prevent dynamic linking.
  12370. link_static_flag=$lt_lt_prog_compiler_static_CXX
  12371. # Compiler flag to turn off builtin functions.
  12372. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  12373. # Compiler flag to allow reflexive dlopens.
  12374. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  12375. # Compiler flag to generate shared objects directly from archives.
  12376. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  12377. # Compiler flag to generate thread-safe objects.
  12378. thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  12379. # Library versioning type.
  12380. version_type=$version_type
  12381. # Format of library name prefix.
  12382. libname_spec=$lt_libname_spec
  12383. # List of archive names. First name is the real one, the rest are links.
  12384. # The last name is the one that the linker finds with -lNAME.
  12385. library_names_spec=$lt_library_names_spec
  12386. # The coded name of the library, if different from the real name.
  12387. soname_spec=$lt_soname_spec
  12388. # Commands used to build and install an old-style archive.
  12389. RANLIB=$lt_RANLIB
  12390. old_archive_cmds=$lt_old_archive_cmds_CXX
  12391. old_postinstall_cmds=$lt_old_postinstall_cmds
  12392. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12393. # Create an old-style archive from a shared archive.
  12394. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  12395. # Create a temporary old-style archive to link instead of a shared archive.
  12396. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  12397. # Commands used to build and install a shared archive.
  12398. archive_cmds=$lt_archive_cmds_CXX
  12399. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  12400. postinstall_cmds=$lt_postinstall_cmds
  12401. postuninstall_cmds=$lt_postuninstall_cmds
  12402. # Commands used to build a loadable module (assumed same as above if empty)
  12403. module_cmds=$lt_module_cmds_CXX
  12404. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  12405. # Commands to strip libraries.
  12406. old_striplib=$lt_old_striplib
  12407. striplib=$lt_striplib
  12408. # Dependencies to place before the objects being linked to create a
  12409. # shared library.
  12410. predep_objects=$lt_predep_objects_CXX
  12411. # Dependencies to place after the objects being linked to create a
  12412. # shared library.
  12413. postdep_objects=$lt_postdep_objects_CXX
  12414. # Dependencies to place before the objects being linked to create a
  12415. # shared library.
  12416. predeps=$lt_predeps_CXX
  12417. # Dependencies to place after the objects being linked to create a
  12418. # shared library.
  12419. postdeps=$lt_postdeps_CXX
  12420. # The library search path used internally by the compiler when linking
  12421. # a shared library.
  12422. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  12423. # Method to check whether dependent libraries are shared objects.
  12424. deplibs_check_method=$lt_deplibs_check_method
  12425. # Command to use when deplibs_check_method == file_magic.
  12426. file_magic_cmd=$lt_file_magic_cmd
  12427. # Flag that allows shared libraries with undefined symbols to be built.
  12428. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  12429. # Flag that forces no undefined symbols.
  12430. no_undefined_flag=$lt_no_undefined_flag_CXX
  12431. # Commands used to finish a libtool library installation in a directory.
  12432. finish_cmds=$lt_finish_cmds
  12433. # Same as above, but a single script fragment to be evaled but not shown.
  12434. finish_eval=$lt_finish_eval
  12435. # Take the output of nm and produce a listing of raw symbols and C names.
  12436. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12437. # Transform the output of nm in a proper C declaration
  12438. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12439. # Transform the output of nm in a C name address pair
  12440. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12441. # This is the shared library runtime path variable.
  12442. runpath_var=$runpath_var
  12443. # This is the shared library path variable.
  12444. shlibpath_var=$shlibpath_var
  12445. # Is shlibpath searched before the hard-coded library search path?
  12446. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12447. # How to hardcode a shared library path into an executable.
  12448. hardcode_action=$hardcode_action_CXX
  12449. # Whether we should hardcode library paths into libraries.
  12450. hardcode_into_libs=$hardcode_into_libs
  12451. # Flag to hardcode \$libdir into a binary during linking.
  12452. # This must work even if \$libdir does not exist.
  12453. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  12454. # If ld is used when linking, flag to hardcode \$libdir into
  12455. # a binary during linking. This must work even if \$libdir does
  12456. # not exist.
  12457. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  12458. # Whether we need a single -rpath flag with a separated argument.
  12459. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  12460. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  12461. # resulting binary.
  12462. hardcode_direct=$hardcode_direct_CXX
  12463. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  12464. # resulting binary.
  12465. hardcode_minus_L=$hardcode_minus_L_CXX
  12466. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  12467. # the resulting binary.
  12468. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  12469. # Set to yes if building a shared library automatically hardcodes DIR into the library
  12470. # and all subsequent libraries and executables linked against it.
  12471. hardcode_automatic=$hardcode_automatic_CXX
  12472. # Variables whose values should be saved in libtool wrapper scripts and
  12473. # restored at relink time.
  12474. variables_saved_for_relink="$variables_saved_for_relink"
  12475. # Whether libtool must link a program against all its dependency libraries.
  12476. link_all_deplibs=$link_all_deplibs_CXX
  12477. # Compile-time system search path for libraries
  12478. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12479. # Run-time system search path for libraries
  12480. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12481. # Fix the shell variable \$srcfile for the compiler.
  12482. fix_srcfile_path=$lt_fix_srcfile_path
  12483. # Set to yes if exported symbols are required.
  12484. always_export_symbols=$always_export_symbols_CXX
  12485. # The commands to list exported symbols.
  12486. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  12487. # The commands to extract the exported symbol list from a shared archive.
  12488. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12489. # Symbols that should not be listed in the preloaded symbols.
  12490. exclude_expsyms=$lt_exclude_expsyms_CXX
  12491. # Symbols that must always be exported.
  12492. include_expsyms=$lt_include_expsyms_CXX
  12493. # ### END LIBTOOL TAG CONFIG: $tagname
  12494. __EOF__
  12495. else
  12496. # If there is no Makefile yet, we rely on a make rule to execute
  12497. # `config.status --recheck' to rerun these tests and create the
  12498. # libtool script then.
  12499. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  12500. if test -f "$ltmain_in"; then
  12501. test -f Makefile && make "$ltmain"
  12502. fi
  12503. fi
  12504. ac_ext=c
  12505. ac_cpp='$CPP $CPPFLAGS'
  12506. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12507. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12508. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12509. CC=$lt_save_CC
  12510. LDCXX=$LD
  12511. LD=$lt_save_LD
  12512. GCC=$lt_save_GCC
  12513. with_gnu_ldcxx=$with_gnu_ld
  12514. with_gnu_ld=$lt_save_with_gnu_ld
  12515. lt_cv_path_LDCXX=$lt_cv_path_LD
  12516. lt_cv_path_LD=$lt_save_path_LD
  12517. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12518. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12519. else
  12520. tagname=""
  12521. fi
  12522. ;;
  12523. F77)
  12524. if test -n "$F77" && test "X$F77" != "Xno"; then
  12525. ac_ext=f
  12526. ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  12527. ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12528. ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  12529. archive_cmds_need_lc_F77=no
  12530. allow_undefined_flag_F77=
  12531. always_export_symbols_F77=no
  12532. archive_expsym_cmds_F77=
  12533. export_dynamic_flag_spec_F77=
  12534. hardcode_direct_F77=no
  12535. hardcode_libdir_flag_spec_F77=
  12536. hardcode_libdir_flag_spec_ld_F77=
  12537. hardcode_libdir_separator_F77=
  12538. hardcode_minus_L_F77=no
  12539. hardcode_automatic_F77=no
  12540. module_cmds_F77=
  12541. module_expsym_cmds_F77=
  12542. link_all_deplibs_F77=unknown
  12543. old_archive_cmds_F77=$old_archive_cmds
  12544. no_undefined_flag_F77=
  12545. whole_archive_flag_spec_F77=
  12546. enable_shared_with_static_runtimes_F77=no
  12547. # Source file extension for f77 test sources.
  12548. ac_ext=f
  12549. # Object file extension for compiled f77 test sources.
  12550. objext=o
  12551. objext_F77=$objext
  12552. # Code to be used in simple compile tests
  12553. lt_simple_compile_test_code="\
  12554. subroutine t
  12555. return
  12556. end
  12557. "
  12558. # Code to be used in simple link tests
  12559. lt_simple_link_test_code="\
  12560. program t
  12561. end
  12562. "
  12563. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12564. # If no C compiler was specified, use CC.
  12565. LTCC=${LTCC-"$CC"}
  12566. # If no C compiler flags were specified, use CFLAGS.
  12567. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12568. # Allow CC to be a program name with arguments.
  12569. compiler=$CC
  12570. # save warnings/boilerplate of simple test code
  12571. ac_outfile=conftest.$ac_objext
  12572. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12573. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12574. _lt_compiler_boilerplate=`cat conftest.err`
  12575. $rm conftest*
  12576. ac_outfile=conftest.$ac_objext
  12577. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12578. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12579. _lt_linker_boilerplate=`cat conftest.err`
  12580. $rm conftest*
  12581. # Allow CC to be a program name with arguments.
  12582. lt_save_CC="$CC"
  12583. CC=${F77-"f77"}
  12584. compiler=$CC
  12585. compiler_F77=$CC
  12586. for cc_temp in $compiler""; do
  12587. case $cc_temp in
  12588. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12589. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12590. \-*) ;;
  12591. *) break;;
  12592. esac
  12593. done
  12594. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12595. { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  12596. echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
  12597. { echo "$as_me:$LINENO: result: $can_build_shared" >&5
  12598. echo "${ECHO_T}$can_build_shared" >&6; }
  12599. { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  12600. echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
  12601. test "$can_build_shared" = "no" && enable_shared=no
  12602. # On AIX, shared libraries and static libraries use the same namespace, and
  12603. # are all built from PIC.
  12604. case $host_os in
  12605. aix3*)
  12606. test "$enable_shared" = yes && enable_static=no
  12607. if test -n "$RANLIB"; then
  12608. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  12609. postinstall_cmds='$RANLIB $lib'
  12610. fi
  12611. ;;
  12612. aix4* | aix5*)
  12613. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  12614. test "$enable_shared" = yes && enable_static=no
  12615. fi
  12616. ;;
  12617. esac
  12618. { echo "$as_me:$LINENO: result: $enable_shared" >&5
  12619. echo "${ECHO_T}$enable_shared" >&6; }
  12620. { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  12621. echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
  12622. # Make sure either enable_shared or enable_static is yes.
  12623. test "$enable_shared" = yes || enable_static=yes
  12624. { echo "$as_me:$LINENO: result: $enable_static" >&5
  12625. echo "${ECHO_T}$enable_static" >&6; }
  12626. GCC_F77="$G77"
  12627. LD_F77="$LD"
  12628. lt_prog_compiler_wl_F77=
  12629. lt_prog_compiler_pic_F77=
  12630. lt_prog_compiler_static_F77=
  12631. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  12632. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  12633. if test "$GCC" = yes; then
  12634. lt_prog_compiler_wl_F77='-Wl,'
  12635. lt_prog_compiler_static_F77='-static'
  12636. case $host_os in
  12637. aix*)
  12638. # All AIX code is PIC.
  12639. if test "$host_cpu" = ia64; then
  12640. # AIX 5 now supports IA64 processor
  12641. lt_prog_compiler_static_F77='-Bstatic'
  12642. fi
  12643. ;;
  12644. amigaos*)
  12645. # FIXME: we need at least 68020 code to build shared libraries, but
  12646. # adding the `-m68020' flag to GCC prevents building anything better,
  12647. # like `-m68040'.
  12648. lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  12649. ;;
  12650. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12651. # PIC is the default for these OSes.
  12652. ;;
  12653. mingw* | cygwin* | pw32* | os2*)
  12654. # This hack is so that the source file can tell whether it is being
  12655. # built for inclusion in a dll (and should export symbols for example).
  12656. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12657. # (--disable-auto-import) libraries
  12658. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12659. ;;
  12660. darwin* | rhapsody*)
  12661. # PIC is the default on this platform
  12662. # Common symbols not allowed in MH_DYLIB files
  12663. lt_prog_compiler_pic_F77='-fno-common'
  12664. ;;
  12665. interix[3-9]*)
  12666. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12667. # Instead, we relocate shared libraries at runtime.
  12668. ;;
  12669. msdosdjgpp*)
  12670. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12671. # on systems that don't support them.
  12672. lt_prog_compiler_can_build_shared_F77=no
  12673. enable_shared=no
  12674. ;;
  12675. sysv4*MP*)
  12676. if test -d /usr/nec; then
  12677. lt_prog_compiler_pic_F77=-Kconform_pic
  12678. fi
  12679. ;;
  12680. hpux*)
  12681. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12682. # not for PA HP-UX.
  12683. case $host_cpu in
  12684. hppa*64*|ia64*)
  12685. # +Z the default
  12686. ;;
  12687. *)
  12688. lt_prog_compiler_pic_F77='-fPIC'
  12689. ;;
  12690. esac
  12691. ;;
  12692. *)
  12693. lt_prog_compiler_pic_F77='-fPIC'
  12694. ;;
  12695. esac
  12696. else
  12697. # PORTME Check for flag to pass linker flags through the system compiler.
  12698. case $host_os in
  12699. aix*)
  12700. lt_prog_compiler_wl_F77='-Wl,'
  12701. if test "$host_cpu" = ia64; then
  12702. # AIX 5 now supports IA64 processor
  12703. lt_prog_compiler_static_F77='-Bstatic'
  12704. else
  12705. lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  12706. fi
  12707. ;;
  12708. darwin*)
  12709. # PIC is the default on this platform
  12710. # Common symbols not allowed in MH_DYLIB files
  12711. case $cc_basename in
  12712. xlc*)
  12713. lt_prog_compiler_pic_F77='-qnocommon'
  12714. lt_prog_compiler_wl_F77='-Wl,'
  12715. ;;
  12716. esac
  12717. ;;
  12718. mingw* | cygwin* | pw32* | os2*)
  12719. # This hack is so that the source file can tell whether it is being
  12720. # built for inclusion in a dll (and should export symbols for example).
  12721. lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  12722. ;;
  12723. hpux9* | hpux10* | hpux11*)
  12724. lt_prog_compiler_wl_F77='-Wl,'
  12725. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12726. # not for PA HP-UX.
  12727. case $host_cpu in
  12728. hppa*64*|ia64*)
  12729. # +Z the default
  12730. ;;
  12731. *)
  12732. lt_prog_compiler_pic_F77='+Z'
  12733. ;;
  12734. esac
  12735. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12736. lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  12737. ;;
  12738. irix5* | irix6* | nonstopux*)
  12739. lt_prog_compiler_wl_F77='-Wl,'
  12740. # PIC (with -KPIC) is the default.
  12741. lt_prog_compiler_static_F77='-non_shared'
  12742. ;;
  12743. newsos6)
  12744. lt_prog_compiler_pic_F77='-KPIC'
  12745. lt_prog_compiler_static_F77='-Bstatic'
  12746. ;;
  12747. linux* | k*bsd*-gnu)
  12748. case $cc_basename in
  12749. icc* | ecc*)
  12750. lt_prog_compiler_wl_F77='-Wl,'
  12751. lt_prog_compiler_pic_F77='-KPIC'
  12752. lt_prog_compiler_static_F77='-static'
  12753. ;;
  12754. pgcc* | pgf77* | pgf90* | pgf95*)
  12755. # Portland Group compilers (*not* the Pentium gcc compiler,
  12756. # which looks to be a dead project)
  12757. lt_prog_compiler_wl_F77='-Wl,'
  12758. lt_prog_compiler_pic_F77='-fpic'
  12759. lt_prog_compiler_static_F77='-Bstatic'
  12760. ;;
  12761. ccc*)
  12762. lt_prog_compiler_wl_F77='-Wl,'
  12763. # All Alpha code is PIC.
  12764. lt_prog_compiler_static_F77='-non_shared'
  12765. ;;
  12766. *)
  12767. case `$CC -V 2>&1 | sed 5q` in
  12768. *Sun\ C*)
  12769. # Sun C 5.9
  12770. lt_prog_compiler_pic_F77='-KPIC'
  12771. lt_prog_compiler_static_F77='-Bstatic'
  12772. lt_prog_compiler_wl_F77='-Wl,'
  12773. ;;
  12774. *Sun\ F*)
  12775. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  12776. lt_prog_compiler_pic_F77='-KPIC'
  12777. lt_prog_compiler_static_F77='-Bstatic'
  12778. lt_prog_compiler_wl_F77=''
  12779. ;;
  12780. esac
  12781. ;;
  12782. esac
  12783. ;;
  12784. osf3* | osf4* | osf5*)
  12785. lt_prog_compiler_wl_F77='-Wl,'
  12786. # All OSF/1 code is PIC.
  12787. lt_prog_compiler_static_F77='-non_shared'
  12788. ;;
  12789. rdos*)
  12790. lt_prog_compiler_static_F77='-non_shared'
  12791. ;;
  12792. solaris*)
  12793. lt_prog_compiler_pic_F77='-KPIC'
  12794. lt_prog_compiler_static_F77='-Bstatic'
  12795. case $cc_basename in
  12796. f77* | f90* | f95*)
  12797. lt_prog_compiler_wl_F77='-Qoption ld ';;
  12798. *)
  12799. lt_prog_compiler_wl_F77='-Wl,';;
  12800. esac
  12801. ;;
  12802. sunos4*)
  12803. lt_prog_compiler_wl_F77='-Qoption ld '
  12804. lt_prog_compiler_pic_F77='-PIC'
  12805. lt_prog_compiler_static_F77='-Bstatic'
  12806. ;;
  12807. sysv4 | sysv4.2uw2* | sysv4.3*)
  12808. lt_prog_compiler_wl_F77='-Wl,'
  12809. lt_prog_compiler_pic_F77='-KPIC'
  12810. lt_prog_compiler_static_F77='-Bstatic'
  12811. ;;
  12812. sysv4*MP*)
  12813. if test -d /usr/nec ;then
  12814. lt_prog_compiler_pic_F77='-Kconform_pic'
  12815. lt_prog_compiler_static_F77='-Bstatic'
  12816. fi
  12817. ;;
  12818. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12819. lt_prog_compiler_wl_F77='-Wl,'
  12820. lt_prog_compiler_pic_F77='-KPIC'
  12821. lt_prog_compiler_static_F77='-Bstatic'
  12822. ;;
  12823. unicos*)
  12824. lt_prog_compiler_wl_F77='-Wl,'
  12825. lt_prog_compiler_can_build_shared_F77=no
  12826. ;;
  12827. uts4*)
  12828. lt_prog_compiler_pic_F77='-pic'
  12829. lt_prog_compiler_static_F77='-Bstatic'
  12830. ;;
  12831. *)
  12832. lt_prog_compiler_can_build_shared_F77=no
  12833. ;;
  12834. esac
  12835. fi
  12836. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  12837. echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
  12838. #
  12839. # Check to make sure the PIC flag actually works.
  12840. #
  12841. if test -n "$lt_prog_compiler_pic_F77"; then
  12842. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  12843. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
  12844. if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  12845. echo $ECHO_N "(cached) $ECHO_C" >&6
  12846. else
  12847. lt_prog_compiler_pic_works_F77=no
  12848. ac_outfile=conftest.$ac_objext
  12849. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12850. lt_compiler_flag="$lt_prog_compiler_pic_F77"
  12851. # Insert the option either (1) after the last *FLAGS variable, or
  12852. # (2) before a word containing "conftest.", or (3) at the end.
  12853. # Note that $ac_compile itself does not contain backslashes and begins
  12854. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12855. # The option is referenced via a variable to avoid confusing sed.
  12856. lt_compile=`echo "$ac_compile" | $SED \
  12857. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12858. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12859. -e 's:$: $lt_compiler_flag:'`
  12860. (eval echo "\"\$as_me:14369: $lt_compile\"" >&5)
  12861. (eval "$lt_compile" 2>conftest.err)
  12862. ac_status=$?
  12863. cat conftest.err >&5
  12864. echo "$as_me:14373: \$? = $ac_status" >&5
  12865. if (exit $ac_status) && test -s "$ac_outfile"; then
  12866. # The compiler can only warn and ignore the option if not recognized
  12867. # So say no if there are warnings other than the usual output.
  12868. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  12869. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12870. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12871. lt_prog_compiler_pic_works_F77=yes
  12872. fi
  12873. fi
  12874. $rm conftest*
  12875. fi
  12876. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  12877. echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
  12878. if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  12879. case $lt_prog_compiler_pic_F77 in
  12880. "" | " "*) ;;
  12881. *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  12882. esac
  12883. else
  12884. lt_prog_compiler_pic_F77=
  12885. lt_prog_compiler_can_build_shared_F77=no
  12886. fi
  12887. fi
  12888. case $host_os in
  12889. # For platforms which do not support PIC, -DPIC is meaningless:
  12890. *djgpp*)
  12891. lt_prog_compiler_pic_F77=
  12892. ;;
  12893. *)
  12894. lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  12895. ;;
  12896. esac
  12897. #
  12898. # Check to make sure the static flag actually works.
  12899. #
  12900. wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
  12901. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12902. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  12903. if test "${lt_prog_compiler_static_works_F77+set}" = set; then
  12904. echo $ECHO_N "(cached) $ECHO_C" >&6
  12905. else
  12906. lt_prog_compiler_static_works_F77=no
  12907. save_LDFLAGS="$LDFLAGS"
  12908. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12909. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12910. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12911. # The linker can only warn and ignore the option if not recognized
  12912. # So say no if there are warnings
  12913. if test -s conftest.err; then
  12914. # Append any errors to the config.log.
  12915. cat conftest.err 1>&5
  12916. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  12917. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12918. if diff conftest.exp conftest.er2 >/dev/null; then
  12919. lt_prog_compiler_static_works_F77=yes
  12920. fi
  12921. else
  12922. lt_prog_compiler_static_works_F77=yes
  12923. fi
  12924. fi
  12925. $rm conftest*
  12926. LDFLAGS="$save_LDFLAGS"
  12927. fi
  12928. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
  12929. echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
  12930. if test x"$lt_prog_compiler_static_works_F77" = xyes; then
  12931. :
  12932. else
  12933. lt_prog_compiler_static_F77=
  12934. fi
  12935. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  12936. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  12937. if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  12938. echo $ECHO_N "(cached) $ECHO_C" >&6
  12939. else
  12940. lt_cv_prog_compiler_c_o_F77=no
  12941. $rm -r conftest 2>/dev/null
  12942. mkdir conftest
  12943. cd conftest
  12944. mkdir out
  12945. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12946. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12947. # Insert the option either (1) after the last *FLAGS variable, or
  12948. # (2) before a word containing "conftest.", or (3) at the end.
  12949. # Note that $ac_compile itself does not contain backslashes and begins
  12950. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12951. lt_compile=`echo "$ac_compile" | $SED \
  12952. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12953. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12954. -e 's:$: $lt_compiler_flag:'`
  12955. (eval echo "\"\$as_me:14473: $lt_compile\"" >&5)
  12956. (eval "$lt_compile" 2>out/conftest.err)
  12957. ac_status=$?
  12958. cat out/conftest.err >&5
  12959. echo "$as_me:14477: \$? = $ac_status" >&5
  12960. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12961. then
  12962. # The compiler can only warn and ignore the option if not recognized
  12963. # So say no if there are warnings
  12964. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  12965. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12966. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12967. lt_cv_prog_compiler_c_o_F77=yes
  12968. fi
  12969. fi
  12970. chmod u+w . 2>&5
  12971. $rm conftest*
  12972. # SGI C++ compiler will create directory out/ii_files/ for
  12973. # template instantiation
  12974. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  12975. $rm out/* && rmdir out
  12976. cd ..
  12977. rmdir conftest
  12978. $rm conftest*
  12979. fi
  12980. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  12981. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
  12982. hard_links="nottested"
  12983. if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  12984. # do not overwrite the value of need_locks provided by the user
  12985. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  12986. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  12987. hard_links=yes
  12988. $rm conftest*
  12989. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12990. touch conftest.a
  12991. ln conftest.a conftest.b 2>&5 || hard_links=no
  12992. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12993. { echo "$as_me:$LINENO: result: $hard_links" >&5
  12994. echo "${ECHO_T}$hard_links" >&6; }
  12995. if test "$hard_links" = no; then
  12996. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12997. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12998. need_locks=warn
  12999. fi
  13000. else
  13001. need_locks=no
  13002. fi
  13003. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13004. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  13005. runpath_var=
  13006. allow_undefined_flag_F77=
  13007. enable_shared_with_static_runtimes_F77=no
  13008. archive_cmds_F77=
  13009. archive_expsym_cmds_F77=
  13010. old_archive_From_new_cmds_F77=
  13011. old_archive_from_expsyms_cmds_F77=
  13012. export_dynamic_flag_spec_F77=
  13013. whole_archive_flag_spec_F77=
  13014. thread_safe_flag_spec_F77=
  13015. hardcode_libdir_flag_spec_F77=
  13016. hardcode_libdir_flag_spec_ld_F77=
  13017. hardcode_libdir_separator_F77=
  13018. hardcode_direct_F77=no
  13019. hardcode_minus_L_F77=no
  13020. hardcode_shlibpath_var_F77=unsupported
  13021. link_all_deplibs_F77=unknown
  13022. hardcode_automatic_F77=no
  13023. module_cmds_F77=
  13024. module_expsym_cmds_F77=
  13025. always_export_symbols_F77=no
  13026. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13027. # include_expsyms should be a list of space-separated symbols to be *always*
  13028. # included in the symbol list
  13029. include_expsyms_F77=
  13030. # exclude_expsyms can be an extended regexp of symbols to exclude
  13031. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  13032. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  13033. # as well as any symbol that contains `d'.
  13034. exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  13035. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  13036. # platforms (ab)use it in PIC code, but their linkers get confused if
  13037. # the symbol is explicitly referenced. Since portable code cannot
  13038. # rely on this symbol name, it's probably fine to never include it in
  13039. # preloaded symbol tables.
  13040. extract_expsyms_cmds=
  13041. # Just being paranoid about ensuring that cc_basename is set.
  13042. for cc_temp in $compiler""; do
  13043. case $cc_temp in
  13044. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  13045. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  13046. \-*) ;;
  13047. *) break;;
  13048. esac
  13049. done
  13050. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13051. case $host_os in
  13052. cygwin* | mingw* | pw32*)
  13053. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  13054. # When not using gcc, we currently assume that we are using
  13055. # Microsoft Visual C++.
  13056. if test "$GCC" != yes; then
  13057. with_gnu_ld=no
  13058. fi
  13059. ;;
  13060. interix*)
  13061. # we just hope/assume this is gcc and not c89 (= MSVC++)
  13062. with_gnu_ld=yes
  13063. ;;
  13064. openbsd*)
  13065. with_gnu_ld=no
  13066. ;;
  13067. esac
  13068. ld_shlibs_F77=yes
  13069. if test "$with_gnu_ld" = yes; then
  13070. # If archive_cmds runs LD, not CC, wlarc should be empty
  13071. wlarc='${wl}'
  13072. # Set some defaults for GNU ld with shared library support. These
  13073. # are reset later if shared libraries are not supported. Putting them
  13074. # here allows them to be overridden if necessary.
  13075. runpath_var=LD_RUN_PATH
  13076. hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  13077. export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  13078. # ancient GNU ld didn't support --whole-archive et. al.
  13079. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  13080. whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13081. else
  13082. whole_archive_flag_spec_F77=
  13083. fi
  13084. supports_anon_versioning=no
  13085. case `$LD -v 2>/dev/null` in
  13086. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  13087. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  13088. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  13089. *\ 2.11.*) ;; # other 2.11 versions
  13090. *) supports_anon_versioning=yes ;;
  13091. esac
  13092. # See if GNU ld supports shared libraries.
  13093. case $host_os in
  13094. aix3* | aix4* | aix5*)
  13095. # On AIX/PPC, the GNU linker is very broken
  13096. if test "$host_cpu" != ia64; then
  13097. ld_shlibs_F77=no
  13098. cat <<EOF 1>&2
  13099. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  13100. *** to be unable to reliably create shared libraries on AIX.
  13101. *** Therefore, libtool is disabling shared libraries support. If you
  13102. *** really care for shared libraries, you may want to modify your PATH
  13103. *** so that a non-GNU linker is found, and then restart.
  13104. EOF
  13105. fi
  13106. ;;
  13107. amigaos*)
  13108. archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  13109. hardcode_libdir_flag_spec_F77='-L$libdir'
  13110. hardcode_minus_L_F77=yes
  13111. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  13112. # that the semantics of dynamic libraries on AmigaOS, at least up
  13113. # to version 4, is to share data among multiple programs linked
  13114. # with the same dynamic library. Since this doesn't match the
  13115. # behavior of shared libraries on other platforms, we can't use
  13116. # them.
  13117. ld_shlibs_F77=no
  13118. ;;
  13119. beos*)
  13120. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13121. allow_undefined_flag_F77=unsupported
  13122. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13123. # support --undefined. This deserves some investigation. FIXME
  13124. archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13125. else
  13126. ld_shlibs_F77=no
  13127. fi
  13128. ;;
  13129. cygwin* | mingw* | pw32*)
  13130. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  13131. # as there is no search path for DLLs.
  13132. hardcode_libdir_flag_spec_F77='-L$libdir'
  13133. allow_undefined_flag_F77=unsupported
  13134. always_export_symbols_F77=no
  13135. enable_shared_with_static_runtimes_F77=yes
  13136. export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  13137. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  13138. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13139. # If the export-symbols file already is a .def file (1st line
  13140. # is EXPORTS), use it as is; otherwise, prepend...
  13141. archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13142. cp $export_symbols $output_objdir/$soname.def;
  13143. else
  13144. echo EXPORTS > $output_objdir/$soname.def;
  13145. cat $export_symbols >> $output_objdir/$soname.def;
  13146. fi~
  13147. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13148. else
  13149. ld_shlibs_F77=no
  13150. fi
  13151. ;;
  13152. interix[3-9]*)
  13153. hardcode_direct_F77=no
  13154. hardcode_shlibpath_var_F77=no
  13155. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13156. export_dynamic_flag_spec_F77='${wl}-E'
  13157. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13158. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13159. # default) and relocated if they conflict, which is a slow very memory
  13160. # consuming and fragmenting process. To avoid this, we pick a random,
  13161. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13162. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13163. archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13164. archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13165. ;;
  13166. gnu* | linux* | k*bsd*-gnu)
  13167. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13168. tmp_addflag=
  13169. case $cc_basename,$host_cpu in
  13170. pgcc*) # Portland Group C compiler
  13171. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13172. tmp_addflag=' $pic_flag'
  13173. ;;
  13174. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  13175. whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13176. tmp_addflag=' $pic_flag -Mnomain' ;;
  13177. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13178. tmp_addflag=' -i_dynamic' ;;
  13179. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13180. tmp_addflag=' -i_dynamic -nofor_main' ;;
  13181. ifc* | ifort*) # Intel Fortran compiler
  13182. tmp_addflag=' -nofor_main' ;;
  13183. esac
  13184. case `$CC -V 2>&1 | sed 5q` in
  13185. *Sun\ C*) # Sun C 5.9
  13186. whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  13187. tmp_sharedflag='-G' ;;
  13188. *Sun\ F*) # Sun Fortran 8.3
  13189. tmp_sharedflag='-G' ;;
  13190. *)
  13191. tmp_sharedflag='-shared' ;;
  13192. esac
  13193. archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13194. if test $supports_anon_versioning = yes; then
  13195. archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  13196. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13197. $echo "local: *; };" >> $output_objdir/$libname.ver~
  13198. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13199. fi
  13200. else
  13201. ld_shlibs_F77=no
  13202. fi
  13203. ;;
  13204. netbsd*)
  13205. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13206. archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13207. wlarc=
  13208. else
  13209. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13210. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13211. fi
  13212. ;;
  13213. solaris*)
  13214. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  13215. ld_shlibs_F77=no
  13216. cat <<EOF 1>&2
  13217. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13218. *** create shared libraries on Solaris systems. Therefore, libtool
  13219. *** is disabling shared libraries support. We urge you to upgrade GNU
  13220. *** binutils to release 2.9.1 or newer. Another option is to modify
  13221. *** your PATH or compiler configuration so that the native linker is
  13222. *** used, and then restart.
  13223. EOF
  13224. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13225. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13226. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13227. else
  13228. ld_shlibs_F77=no
  13229. fi
  13230. ;;
  13231. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  13232. case `$LD -v 2>&1` in
  13233. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  13234. ld_shlibs_F77=no
  13235. cat <<_LT_EOF 1>&2
  13236. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  13237. *** reliably create shared libraries on SCO systems. Therefore, libtool
  13238. *** is disabling shared libraries support. We urge you to upgrade GNU
  13239. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  13240. *** your PATH or compiler configuration so that the native linker is
  13241. *** used, and then restart.
  13242. _LT_EOF
  13243. ;;
  13244. *)
  13245. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13246. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  13247. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  13248. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  13249. else
  13250. ld_shlibs_F77=no
  13251. fi
  13252. ;;
  13253. esac
  13254. ;;
  13255. sunos4*)
  13256. archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13257. wlarc=
  13258. hardcode_direct_F77=yes
  13259. hardcode_shlibpath_var_F77=no
  13260. ;;
  13261. *)
  13262. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  13263. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13264. archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13265. else
  13266. ld_shlibs_F77=no
  13267. fi
  13268. ;;
  13269. esac
  13270. if test "$ld_shlibs_F77" = no; then
  13271. runpath_var=
  13272. hardcode_libdir_flag_spec_F77=
  13273. export_dynamic_flag_spec_F77=
  13274. whole_archive_flag_spec_F77=
  13275. fi
  13276. else
  13277. # PORTME fill in a description of your system's linker (not GNU ld)
  13278. case $host_os in
  13279. aix3*)
  13280. allow_undefined_flag_F77=unsupported
  13281. always_export_symbols_F77=yes
  13282. archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  13283. # Note: this linker hardcodes the directories in LIBPATH if there
  13284. # are no directories specified by -L.
  13285. hardcode_minus_L_F77=yes
  13286. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  13287. # Neither direct hardcoding nor static linking is supported with a
  13288. # broken collect2.
  13289. hardcode_direct_F77=unsupported
  13290. fi
  13291. ;;
  13292. aix4* | aix5*)
  13293. if test "$host_cpu" = ia64; then
  13294. # On IA64, the linker does run time linking by default, so we don't
  13295. # have to do anything special.
  13296. aix_use_runtimelinking=no
  13297. exp_sym_flag='-Bexport'
  13298. no_entry_flag=""
  13299. else
  13300. # If we're using GNU nm, then we don't want the "-C" option.
  13301. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13302. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  13303. export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  13304. else
  13305. export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  13306. fi
  13307. aix_use_runtimelinking=no
  13308. # Test if we are trying to use run time linking or normal
  13309. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13310. # need to do runtime linking.
  13311. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  13312. for ld_flag in $LDFLAGS; do
  13313. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  13314. aix_use_runtimelinking=yes
  13315. break
  13316. fi
  13317. done
  13318. ;;
  13319. esac
  13320. exp_sym_flag='-bexport'
  13321. no_entry_flag='-bnoentry'
  13322. fi
  13323. # When large executables or shared objects are built, AIX ld can
  13324. # have problems creating the table of contents. If linking a library
  13325. # or program results in "error TOC overflow" add -mminimal-toc to
  13326. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13327. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13328. archive_cmds_F77=''
  13329. hardcode_direct_F77=yes
  13330. hardcode_libdir_separator_F77=':'
  13331. link_all_deplibs_F77=yes
  13332. if test "$GCC" = yes; then
  13333. case $host_os in aix4.[012]|aix4.[012].*)
  13334. # We only want to do this on AIX 4.2 and lower, the check
  13335. # below for broken collect2 doesn't work under 4.3+
  13336. collect2name=`${CC} -print-prog-name=collect2`
  13337. if test -f "$collect2name" && \
  13338. strings "$collect2name" | grep resolve_lib_name >/dev/null
  13339. then
  13340. # We have reworked collect2
  13341. :
  13342. else
  13343. # We have old collect2
  13344. hardcode_direct_F77=unsupported
  13345. # It fails to find uninstalled libraries when the uninstalled
  13346. # path is not listed in the libpath. Setting hardcode_minus_L
  13347. # to unsupported forces relinking
  13348. hardcode_minus_L_F77=yes
  13349. hardcode_libdir_flag_spec_F77='-L$libdir'
  13350. hardcode_libdir_separator_F77=
  13351. fi
  13352. ;;
  13353. esac
  13354. shared_flag='-shared'
  13355. if test "$aix_use_runtimelinking" = yes; then
  13356. shared_flag="$shared_flag "'${wl}-G'
  13357. fi
  13358. else
  13359. # not using gcc
  13360. if test "$host_cpu" = ia64; then
  13361. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13362. # chokes on -Wl,-G. The following line is correct:
  13363. shared_flag='-G'
  13364. else
  13365. if test "$aix_use_runtimelinking" = yes; then
  13366. shared_flag='${wl}-G'
  13367. else
  13368. shared_flag='${wl}-bM:SRE'
  13369. fi
  13370. fi
  13371. fi
  13372. # It seems that -bexpall does not export symbols beginning with
  13373. # underscore (_), so it is better to generate a list of symbols to export.
  13374. always_export_symbols_F77=yes
  13375. if test "$aix_use_runtimelinking" = yes; then
  13376. # Warning - without using the other runtime loading flags (-brtl),
  13377. # -berok will link without error, but may produce a broken library.
  13378. allow_undefined_flag_F77='-berok'
  13379. # Determine the default libpath from the value encoded in an empty executable.
  13380. cat >conftest.$ac_ext <<_ACEOF
  13381. program main
  13382. end
  13383. _ACEOF
  13384. rm -f conftest.$ac_objext conftest$ac_exeext
  13385. if { (ac_try="$ac_link"
  13386. case "(($ac_try" in
  13387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13388. *) ac_try_echo=$ac_try;;
  13389. esac
  13390. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13391. (eval "$ac_link") 2>conftest.er1
  13392. ac_status=$?
  13393. grep -v '^ *+' conftest.er1 >conftest.err
  13394. rm -f conftest.er1
  13395. cat conftest.err >&5
  13396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13397. (exit $ac_status); } && {
  13398. test -z "$ac_f77_werror_flag" ||
  13399. test ! -s conftest.err
  13400. } && test -s conftest$ac_exeext &&
  13401. $as_test_x conftest$ac_exeext; then
  13402. lt_aix_libpath_sed='
  13403. /Import File Strings/,/^$/ {
  13404. /^0/ {
  13405. s/^0 *\(.*\)$/\1/
  13406. p
  13407. }
  13408. }'
  13409. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13410. # Check for a 64-bit object if we didn't find anything.
  13411. if test -z "$aix_libpath"; then
  13412. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13413. fi
  13414. else
  13415. echo "$as_me: failed program was:" >&5
  13416. sed 's/^/| /' conftest.$ac_ext >&5
  13417. fi
  13418. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13419. conftest$ac_exeext conftest.$ac_ext
  13420. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13421. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13422. archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  13423. else
  13424. if test "$host_cpu" = ia64; then
  13425. hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  13426. allow_undefined_flag_F77="-z nodefs"
  13427. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  13428. else
  13429. # Determine the default libpath from the value encoded in an empty executable.
  13430. cat >conftest.$ac_ext <<_ACEOF
  13431. program main
  13432. end
  13433. _ACEOF
  13434. rm -f conftest.$ac_objext conftest$ac_exeext
  13435. if { (ac_try="$ac_link"
  13436. case "(($ac_try" in
  13437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13438. *) ac_try_echo=$ac_try;;
  13439. esac
  13440. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13441. (eval "$ac_link") 2>conftest.er1
  13442. ac_status=$?
  13443. grep -v '^ *+' conftest.er1 >conftest.err
  13444. rm -f conftest.er1
  13445. cat conftest.err >&5
  13446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13447. (exit $ac_status); } && {
  13448. test -z "$ac_f77_werror_flag" ||
  13449. test ! -s conftest.err
  13450. } && test -s conftest$ac_exeext &&
  13451. $as_test_x conftest$ac_exeext; then
  13452. lt_aix_libpath_sed='
  13453. /Import File Strings/,/^$/ {
  13454. /^0/ {
  13455. s/^0 *\(.*\)$/\1/
  13456. p
  13457. }
  13458. }'
  13459. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13460. # Check for a 64-bit object if we didn't find anything.
  13461. if test -z "$aix_libpath"; then
  13462. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13463. fi
  13464. else
  13465. echo "$as_me: failed program was:" >&5
  13466. sed 's/^/| /' conftest.$ac_ext >&5
  13467. fi
  13468. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13469. conftest$ac_exeext conftest.$ac_ext
  13470. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13471. hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  13472. # Warning - without using the other run time loading flags,
  13473. # -berok will link without error, but may produce a broken library.
  13474. no_undefined_flag_F77=' ${wl}-bernotok'
  13475. allow_undefined_flag_F77=' ${wl}-berok'
  13476. # Exported symbols can be pulled into shared objects from archives
  13477. whole_archive_flag_spec_F77='$convenience'
  13478. archive_cmds_need_lc_F77=yes
  13479. # This is similar to how AIX traditionally builds its shared libraries.
  13480. archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  13481. fi
  13482. fi
  13483. ;;
  13484. amigaos*)
  13485. archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  13486. hardcode_libdir_flag_spec_F77='-L$libdir'
  13487. hardcode_minus_L_F77=yes
  13488. # see comment about different semantics on the GNU ld section
  13489. ld_shlibs_F77=no
  13490. ;;
  13491. bsdi[45]*)
  13492. export_dynamic_flag_spec_F77=-rdynamic
  13493. ;;
  13494. cygwin* | mingw* | pw32*)
  13495. # When not using gcc, we currently assume that we are using
  13496. # Microsoft Visual C++.
  13497. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13498. # no search path for DLLs.
  13499. hardcode_libdir_flag_spec_F77=' '
  13500. allow_undefined_flag_F77=unsupported
  13501. # Tell ltmain to make .lib files, not .a files.
  13502. libext=lib
  13503. # Tell ltmain to make .dll files, not .so files.
  13504. shrext_cmds=".dll"
  13505. # FIXME: Setting linknames here is a bad hack.
  13506. archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  13507. # The linker will automatically build a .lib file if we build a DLL.
  13508. old_archive_From_new_cmds_F77='true'
  13509. # FIXME: Should let the user specify the lib program.
  13510. old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
  13511. fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  13512. enable_shared_with_static_runtimes_F77=yes
  13513. ;;
  13514. darwin* | rhapsody*)
  13515. case $host_os in
  13516. rhapsody* | darwin1.[012])
  13517. allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  13518. ;;
  13519. *) # Darwin 1.3 on
  13520. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  13521. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13522. else
  13523. case ${MACOSX_DEPLOYMENT_TARGET} in
  13524. 10.[012])
  13525. allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  13526. ;;
  13527. 10.*)
  13528. allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  13529. ;;
  13530. esac
  13531. fi
  13532. ;;
  13533. esac
  13534. archive_cmds_need_lc_F77=no
  13535. hardcode_direct_F77=no
  13536. hardcode_automatic_F77=yes
  13537. hardcode_shlibpath_var_F77=unsupported
  13538. whole_archive_flag_spec_F77=''
  13539. link_all_deplibs_F77=yes
  13540. if test "$GCC" = yes ; then
  13541. output_verbose_link_cmd='echo'
  13542. archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  13543. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13544. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13545. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13546. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13547. else
  13548. case $cc_basename in
  13549. xlc*)
  13550. output_verbose_link_cmd='echo'
  13551. archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  13552. module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  13553. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  13554. archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13555. module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  13556. ;;
  13557. *)
  13558. ld_shlibs_F77=no
  13559. ;;
  13560. esac
  13561. fi
  13562. ;;
  13563. dgux*)
  13564. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13565. hardcode_libdir_flag_spec_F77='-L$libdir'
  13566. hardcode_shlibpath_var_F77=no
  13567. ;;
  13568. freebsd1*)
  13569. ld_shlibs_F77=no
  13570. ;;
  13571. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13572. # support. Future versions do this automatically, but an explicit c++rt0.o
  13573. # does not break anything, and helps significantly (at the cost of a little
  13574. # extra space).
  13575. freebsd2.2*)
  13576. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13577. hardcode_libdir_flag_spec_F77='-R$libdir'
  13578. hardcode_direct_F77=yes
  13579. hardcode_shlibpath_var_F77=no
  13580. ;;
  13581. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13582. freebsd2*)
  13583. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13584. hardcode_direct_F77=yes
  13585. hardcode_minus_L_F77=yes
  13586. hardcode_shlibpath_var_F77=no
  13587. ;;
  13588. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13589. freebsd* | dragonfly*)
  13590. archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  13591. hardcode_libdir_flag_spec_F77='-R$libdir'
  13592. hardcode_direct_F77=yes
  13593. hardcode_shlibpath_var_F77=no
  13594. ;;
  13595. hpux9*)
  13596. if test "$GCC" = yes; then
  13597. archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  13598. else
  13599. archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  13600. fi
  13601. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13602. hardcode_libdir_separator_F77=:
  13603. hardcode_direct_F77=yes
  13604. # hardcode_minus_L: Not really in the search PATH,
  13605. # but as the default location of the library.
  13606. hardcode_minus_L_F77=yes
  13607. export_dynamic_flag_spec_F77='${wl}-E'
  13608. ;;
  13609. hpux10*)
  13610. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13611. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13612. else
  13613. archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13614. fi
  13615. if test "$with_gnu_ld" = no; then
  13616. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13617. hardcode_libdir_separator_F77=:
  13618. hardcode_direct_F77=yes
  13619. export_dynamic_flag_spec_F77='${wl}-E'
  13620. # hardcode_minus_L: Not really in the search PATH,
  13621. # but as the default location of the library.
  13622. hardcode_minus_L_F77=yes
  13623. fi
  13624. ;;
  13625. hpux11*)
  13626. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  13627. case $host_cpu in
  13628. hppa*64*)
  13629. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13630. ;;
  13631. ia64*)
  13632. archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13633. ;;
  13634. *)
  13635. archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13636. ;;
  13637. esac
  13638. else
  13639. case $host_cpu in
  13640. hppa*64*)
  13641. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13642. ;;
  13643. ia64*)
  13644. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13645. ;;
  13646. *)
  13647. archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13648. ;;
  13649. esac
  13650. fi
  13651. if test "$with_gnu_ld" = no; then
  13652. hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  13653. hardcode_libdir_separator_F77=:
  13654. case $host_cpu in
  13655. hppa*64*|ia64*)
  13656. hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  13657. hardcode_direct_F77=no
  13658. hardcode_shlibpath_var_F77=no
  13659. ;;
  13660. *)
  13661. hardcode_direct_F77=yes
  13662. export_dynamic_flag_spec_F77='${wl}-E'
  13663. # hardcode_minus_L: Not really in the search PATH,
  13664. # but as the default location of the library.
  13665. hardcode_minus_L_F77=yes
  13666. ;;
  13667. esac
  13668. fi
  13669. ;;
  13670. irix5* | irix6* | nonstopux*)
  13671. if test "$GCC" = yes; then
  13672. archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13673. else
  13674. archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13675. hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  13676. fi
  13677. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13678. hardcode_libdir_separator_F77=:
  13679. link_all_deplibs_F77=yes
  13680. ;;
  13681. netbsd*)
  13682. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  13683. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13684. else
  13685. archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13686. fi
  13687. hardcode_libdir_flag_spec_F77='-R$libdir'
  13688. hardcode_direct_F77=yes
  13689. hardcode_shlibpath_var_F77=no
  13690. ;;
  13691. newsos6)
  13692. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13693. hardcode_direct_F77=yes
  13694. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13695. hardcode_libdir_separator_F77=:
  13696. hardcode_shlibpath_var_F77=no
  13697. ;;
  13698. openbsd*)
  13699. if test -f /usr/libexec/ld.so; then
  13700. hardcode_direct_F77=yes
  13701. hardcode_shlibpath_var_F77=no
  13702. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13703. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13704. archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  13705. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13706. export_dynamic_flag_spec_F77='${wl}-E'
  13707. else
  13708. case $host_os in
  13709. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  13710. archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13711. hardcode_libdir_flag_spec_F77='-R$libdir'
  13712. ;;
  13713. *)
  13714. archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13715. hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  13716. ;;
  13717. esac
  13718. fi
  13719. else
  13720. ld_shlibs_F77=no
  13721. fi
  13722. ;;
  13723. os2*)
  13724. hardcode_libdir_flag_spec_F77='-L$libdir'
  13725. hardcode_minus_L_F77=yes
  13726. allow_undefined_flag_F77=unsupported
  13727. archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  13728. old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  13729. ;;
  13730. osf3*)
  13731. if test "$GCC" = yes; then
  13732. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13733. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13734. else
  13735. allow_undefined_flag_F77=' -expect_unresolved \*'
  13736. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13737. fi
  13738. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13739. hardcode_libdir_separator_F77=:
  13740. ;;
  13741. osf4* | osf5*) # as osf3* with the addition of -msym flag
  13742. if test "$GCC" = yes; then
  13743. allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  13744. archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13745. hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  13746. else
  13747. allow_undefined_flag_F77=' -expect_unresolved \*'
  13748. archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  13749. archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  13750. $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  13751. # Both c and cxx compiler support -rpath directly
  13752. hardcode_libdir_flag_spec_F77='-rpath $libdir'
  13753. fi
  13754. hardcode_libdir_separator_F77=:
  13755. ;;
  13756. solaris*)
  13757. no_undefined_flag_F77=' -z text'
  13758. if test "$GCC" = yes; then
  13759. wlarc='${wl}'
  13760. archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13761. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13762. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  13763. else
  13764. wlarc=''
  13765. archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13766. archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  13767. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  13768. fi
  13769. hardcode_libdir_flag_spec_F77='-R$libdir'
  13770. hardcode_shlibpath_var_F77=no
  13771. case $host_os in
  13772. solaris2.[0-5] | solaris2.[0-5].*) ;;
  13773. *)
  13774. # The compiler driver will combine and reorder linker options,
  13775. # but understands `-z linker_flag'. GCC discards it without `$wl',
  13776. # but is careful enough not to reorder.
  13777. # Supported since Solaris 2.6 (maybe 2.5.1?)
  13778. if test "$GCC" = yes; then
  13779. whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  13780. else
  13781. whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
  13782. fi
  13783. ;;
  13784. esac
  13785. link_all_deplibs_F77=yes
  13786. ;;
  13787. sunos4*)
  13788. if test "x$host_vendor" = xsequent; then
  13789. # Use $CC to link under sequent, because it throws in some extra .o
  13790. # files that make .init and .fini sections work.
  13791. archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  13792. else
  13793. archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  13794. fi
  13795. hardcode_libdir_flag_spec_F77='-L$libdir'
  13796. hardcode_direct_F77=yes
  13797. hardcode_minus_L_F77=yes
  13798. hardcode_shlibpath_var_F77=no
  13799. ;;
  13800. sysv4)
  13801. case $host_vendor in
  13802. sni)
  13803. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13804. hardcode_direct_F77=yes # is this really true???
  13805. ;;
  13806. siemens)
  13807. ## LD is ld it makes a PLAMLIB
  13808. ## CC just makes a GrossModule.
  13809. archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  13810. reload_cmds_F77='$CC -r -o $output$reload_objs'
  13811. hardcode_direct_F77=no
  13812. ;;
  13813. motorola)
  13814. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13815. hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  13816. ;;
  13817. esac
  13818. runpath_var='LD_RUN_PATH'
  13819. hardcode_shlibpath_var_F77=no
  13820. ;;
  13821. sysv4.3*)
  13822. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13823. hardcode_shlibpath_var_F77=no
  13824. export_dynamic_flag_spec_F77='-Bexport'
  13825. ;;
  13826. sysv4*MP*)
  13827. if test -d /usr/nec; then
  13828. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13829. hardcode_shlibpath_var_F77=no
  13830. runpath_var=LD_RUN_PATH
  13831. hardcode_runpath_var=yes
  13832. ld_shlibs_F77=yes
  13833. fi
  13834. ;;
  13835. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  13836. no_undefined_flag_F77='${wl}-z,text'
  13837. archive_cmds_need_lc_F77=no
  13838. hardcode_shlibpath_var_F77=no
  13839. runpath_var='LD_RUN_PATH'
  13840. if test "$GCC" = yes; then
  13841. archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13842. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13843. else
  13844. archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13845. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  13846. fi
  13847. ;;
  13848. sysv5* | sco3.2v5* | sco5v6*)
  13849. # Note: We can NOT use -z defs as we might desire, because we do not
  13850. # link with -lc, and that would cause any symbols used from libc to
  13851. # always be unresolved, which means just about no library would
  13852. # ever link correctly. If we're not using GNU ld we use -z text
  13853. # though, which does catch some bad symbols but isn't as heavy-handed
  13854. # as -z defs.
  13855. no_undefined_flag_F77='${wl}-z,text'
  13856. allow_undefined_flag_F77='${wl}-z,nodefs'
  13857. archive_cmds_need_lc_F77=no
  13858. hardcode_shlibpath_var_F77=no
  13859. hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  13860. hardcode_libdir_separator_F77=':'
  13861. link_all_deplibs_F77=yes
  13862. export_dynamic_flag_spec_F77='${wl}-Bexport'
  13863. runpath_var='LD_RUN_PATH'
  13864. if test "$GCC" = yes; then
  13865. archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13866. archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13867. else
  13868. archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13869. archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13870. fi
  13871. ;;
  13872. uts4*)
  13873. archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13874. hardcode_libdir_flag_spec_F77='-L$libdir'
  13875. hardcode_shlibpath_var_F77=no
  13876. ;;
  13877. *)
  13878. ld_shlibs_F77=no
  13879. ;;
  13880. esac
  13881. fi
  13882. { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  13883. echo "${ECHO_T}$ld_shlibs_F77" >&6; }
  13884. test "$ld_shlibs_F77" = no && can_build_shared=no
  13885. #
  13886. # Do we need to explicitly link libc?
  13887. #
  13888. case "x$archive_cmds_need_lc_F77" in
  13889. x|xyes)
  13890. # Assume -lc should be added
  13891. archive_cmds_need_lc_F77=yes
  13892. if test "$enable_shared" = yes && test "$GCC" = yes; then
  13893. case $archive_cmds_F77 in
  13894. *'~'*)
  13895. # FIXME: we may have to deal with multi-command sequences.
  13896. ;;
  13897. '$CC '*)
  13898. # Test whether the compiler implicitly links with -lc since on some
  13899. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  13900. # to ld, don't add -lc before -lgcc.
  13901. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  13902. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  13903. $rm conftest*
  13904. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13905. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13906. (eval $ac_compile) 2>&5
  13907. ac_status=$?
  13908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13909. (exit $ac_status); } 2>conftest.err; then
  13910. soname=conftest
  13911. lib=conftest
  13912. libobjs=conftest.$ac_objext
  13913. deplibs=
  13914. wl=$lt_prog_compiler_wl_F77
  13915. pic_flag=$lt_prog_compiler_pic_F77
  13916. compiler_flags=-v
  13917. linker_flags=-v
  13918. verstring=
  13919. output_objdir=.
  13920. libname=conftest
  13921. lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  13922. allow_undefined_flag_F77=
  13923. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  13924. (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  13925. ac_status=$?
  13926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13927. (exit $ac_status); }
  13928. then
  13929. archive_cmds_need_lc_F77=no
  13930. else
  13931. archive_cmds_need_lc_F77=yes
  13932. fi
  13933. allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  13934. else
  13935. cat conftest.err 1>&5
  13936. fi
  13937. $rm conftest*
  13938. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  13939. echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
  13940. ;;
  13941. esac
  13942. fi
  13943. ;;
  13944. esac
  13945. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  13946. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  13947. library_names_spec=
  13948. libname_spec='lib$name'
  13949. soname_spec=
  13950. shrext_cmds=".so"
  13951. postinstall_cmds=
  13952. postuninstall_cmds=
  13953. finish_cmds=
  13954. finish_eval=
  13955. shlibpath_var=
  13956. shlibpath_overrides_runpath=unknown
  13957. version_type=none
  13958. dynamic_linker="$host_os ld.so"
  13959. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  13960. need_lib_prefix=unknown
  13961. hardcode_into_libs=no
  13962. # when you set need_version to no, make sure it does not cause -set_version
  13963. # flags to be left without arguments
  13964. need_version=unknown
  13965. case $host_os in
  13966. aix3*)
  13967. version_type=linux
  13968. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  13969. shlibpath_var=LIBPATH
  13970. # AIX 3 has no versioning support, so we append a major version to the name.
  13971. soname_spec='${libname}${release}${shared_ext}$major'
  13972. ;;
  13973. aix4* | aix5*)
  13974. version_type=linux
  13975. need_lib_prefix=no
  13976. need_version=no
  13977. hardcode_into_libs=yes
  13978. if test "$host_cpu" = ia64; then
  13979. # AIX 5 supports IA64
  13980. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  13981. shlibpath_var=LD_LIBRARY_PATH
  13982. else
  13983. # With GCC up to 2.95.x, collect2 would create an import file
  13984. # for dependence libraries. The import file would start with
  13985. # the line `#! .'. This would cause the generated library to
  13986. # depend on `.', always an invalid library. This was fixed in
  13987. # development snapshots of GCC prior to 3.0.
  13988. case $host_os in
  13989. aix4 | aix4.[01] | aix4.[01].*)
  13990. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  13991. echo ' yes '
  13992. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  13993. :
  13994. else
  13995. can_build_shared=no
  13996. fi
  13997. ;;
  13998. esac
  13999. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14000. # soname into executable. Probably we can add versioning support to
  14001. # collect2, so additional links can be useful in future.
  14002. if test "$aix_use_runtimelinking" = yes; then
  14003. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14004. # instead of lib<name>.a to let people know that these are not
  14005. # typical AIX shared libraries.
  14006. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14007. else
  14008. # We preserve .a as extension for shared libraries through AIX4.2
  14009. # and later when we are not doing run time linking.
  14010. library_names_spec='${libname}${release}.a $libname.a'
  14011. soname_spec='${libname}${release}${shared_ext}$major'
  14012. fi
  14013. shlibpath_var=LIBPATH
  14014. fi
  14015. ;;
  14016. amigaos*)
  14017. library_names_spec='$libname.ixlibrary $libname.a'
  14018. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14019. 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'
  14020. ;;
  14021. beos*)
  14022. library_names_spec='${libname}${shared_ext}'
  14023. dynamic_linker="$host_os ld.so"
  14024. shlibpath_var=LIBRARY_PATH
  14025. ;;
  14026. bsdi[45]*)
  14027. version_type=linux
  14028. need_version=no
  14029. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14030. soname_spec='${libname}${release}${shared_ext}$major'
  14031. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14032. shlibpath_var=LD_LIBRARY_PATH
  14033. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14034. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14035. # the default ld.so.conf also contains /usr/contrib/lib and
  14036. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14037. # libtool to hard-code these into programs
  14038. ;;
  14039. cygwin* | mingw* | pw32*)
  14040. version_type=windows
  14041. shrext_cmds=".dll"
  14042. need_version=no
  14043. need_lib_prefix=no
  14044. case $GCC,$host_os in
  14045. yes,cygwin* | yes,mingw* | yes,pw32*)
  14046. library_names_spec='$libname.dll.a'
  14047. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14048. postinstall_cmds='base_file=`basename \${file}`~
  14049. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  14050. dldir=$destdir/`dirname \$dlpath`~
  14051. test -d \$dldir || mkdir -p \$dldir~
  14052. $install_prog $dir/$dlname \$dldir/$dlname~
  14053. chmod a+x \$dldir/$dlname'
  14054. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14055. dlpath=$dir/\$dldll~
  14056. $rm \$dlpath'
  14057. shlibpath_overrides_runpath=yes
  14058. case $host_os in
  14059. cygwin*)
  14060. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14061. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14062. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  14063. ;;
  14064. mingw*)
  14065. # MinGW DLLs use traditional 'lib' prefix
  14066. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14067. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14068. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  14069. # It is most probably a Windows format PATH printed by
  14070. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  14071. # path with ; separators, and with drive letters. We can handle the
  14072. # drive letters (cygwin fileutils understands them), so leave them,
  14073. # especially as we might pass files found there to a mingw objdump,
  14074. # which wouldn't understand a cygwinified path. Ahh.
  14075. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14076. else
  14077. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14078. fi
  14079. ;;
  14080. pw32*)
  14081. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14082. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14083. ;;
  14084. esac
  14085. ;;
  14086. *)
  14087. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14088. ;;
  14089. esac
  14090. dynamic_linker='Win32 ld.exe'
  14091. # FIXME: first we should search . and the directory the executable is in
  14092. shlibpath_var=PATH
  14093. ;;
  14094. darwin* | rhapsody*)
  14095. dynamic_linker="$host_os dyld"
  14096. version_type=darwin
  14097. need_lib_prefix=no
  14098. need_version=no
  14099. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14100. soname_spec='${libname}${release}${major}$shared_ext'
  14101. shlibpath_overrides_runpath=yes
  14102. shlibpath_var=DYLD_LIBRARY_PATH
  14103. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14104. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14105. ;;
  14106. dgux*)
  14107. version_type=linux
  14108. need_lib_prefix=no
  14109. need_version=no
  14110. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14111. soname_spec='${libname}${release}${shared_ext}$major'
  14112. shlibpath_var=LD_LIBRARY_PATH
  14113. ;;
  14114. freebsd1*)
  14115. dynamic_linker=no
  14116. ;;
  14117. freebsd* | dragonfly*)
  14118. # DragonFly does not have aout. When/if they implement a new
  14119. # versioning mechanism, adjust this.
  14120. if test -x /usr/bin/objformat; then
  14121. objformat=`/usr/bin/objformat`
  14122. else
  14123. case $host_os in
  14124. freebsd[123]*) objformat=aout ;;
  14125. *) objformat=elf ;;
  14126. esac
  14127. fi
  14128. version_type=freebsd-$objformat
  14129. case $version_type in
  14130. freebsd-elf*)
  14131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14132. need_version=no
  14133. need_lib_prefix=no
  14134. ;;
  14135. freebsd-*)
  14136. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14137. need_version=yes
  14138. ;;
  14139. esac
  14140. shlibpath_var=LD_LIBRARY_PATH
  14141. case $host_os in
  14142. freebsd2*)
  14143. shlibpath_overrides_runpath=yes
  14144. ;;
  14145. freebsd3.[01]* | freebsdelf3.[01]*)
  14146. shlibpath_overrides_runpath=yes
  14147. hardcode_into_libs=yes
  14148. ;;
  14149. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14150. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14151. shlibpath_overrides_runpath=no
  14152. hardcode_into_libs=yes
  14153. ;;
  14154. *) # from 4.6 on, and DragonFly
  14155. shlibpath_overrides_runpath=yes
  14156. hardcode_into_libs=yes
  14157. ;;
  14158. esac
  14159. ;;
  14160. gnu*)
  14161. version_type=linux
  14162. need_lib_prefix=no
  14163. need_version=no
  14164. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14165. soname_spec='${libname}${release}${shared_ext}$major'
  14166. shlibpath_var=LD_LIBRARY_PATH
  14167. hardcode_into_libs=yes
  14168. ;;
  14169. hpux9* | hpux10* | hpux11*)
  14170. # Give a soname corresponding to the major version so that dld.sl refuses to
  14171. # link against other versions.
  14172. version_type=sunos
  14173. need_lib_prefix=no
  14174. need_version=no
  14175. case $host_cpu in
  14176. ia64*)
  14177. shrext_cmds='.so'
  14178. hardcode_into_libs=yes
  14179. dynamic_linker="$host_os dld.so"
  14180. shlibpath_var=LD_LIBRARY_PATH
  14181. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14182. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14183. soname_spec='${libname}${release}${shared_ext}$major'
  14184. if test "X$HPUX_IA64_MODE" = X32; then
  14185. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14186. else
  14187. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14188. fi
  14189. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14190. ;;
  14191. hppa*64*)
  14192. shrext_cmds='.sl'
  14193. hardcode_into_libs=yes
  14194. dynamic_linker="$host_os dld.sl"
  14195. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14196. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14197. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14198. soname_spec='${libname}${release}${shared_ext}$major'
  14199. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14200. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14201. ;;
  14202. *)
  14203. shrext_cmds='.sl'
  14204. dynamic_linker="$host_os dld.sl"
  14205. shlibpath_var=SHLIB_PATH
  14206. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14208. soname_spec='${libname}${release}${shared_ext}$major'
  14209. ;;
  14210. esac
  14211. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  14212. postinstall_cmds='chmod 555 $lib'
  14213. ;;
  14214. interix[3-9]*)
  14215. version_type=linux
  14216. need_lib_prefix=no
  14217. need_version=no
  14218. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14219. soname_spec='${libname}${release}${shared_ext}$major'
  14220. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14221. shlibpath_var=LD_LIBRARY_PATH
  14222. shlibpath_overrides_runpath=no
  14223. hardcode_into_libs=yes
  14224. ;;
  14225. irix5* | irix6* | nonstopux*)
  14226. case $host_os in
  14227. nonstopux*) version_type=nonstopux ;;
  14228. *)
  14229. if test "$lt_cv_prog_gnu_ld" = yes; then
  14230. version_type=linux
  14231. else
  14232. version_type=irix
  14233. fi ;;
  14234. esac
  14235. need_lib_prefix=no
  14236. need_version=no
  14237. soname_spec='${libname}${release}${shared_ext}$major'
  14238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14239. case $host_os in
  14240. irix5* | nonstopux*)
  14241. libsuff= shlibsuff=
  14242. ;;
  14243. *)
  14244. case $LD in # libtool.m4 will add one of these switches to LD
  14245. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14246. libsuff= shlibsuff= libmagic=32-bit;;
  14247. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14248. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14249. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14250. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14251. *) libsuff= shlibsuff= libmagic=never-match;;
  14252. esac
  14253. ;;
  14254. esac
  14255. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14256. shlibpath_overrides_runpath=no
  14257. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14258. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14259. hardcode_into_libs=yes
  14260. ;;
  14261. # No shared lib support for Linux oldld, aout, or coff.
  14262. linux*oldld* | linux*aout* | linux*coff*)
  14263. dynamic_linker=no
  14264. ;;
  14265. # This must be Linux ELF.
  14266. linux* | k*bsd*-gnu)
  14267. version_type=linux
  14268. need_lib_prefix=no
  14269. need_version=no
  14270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14271. soname_spec='${libname}${release}${shared_ext}$major'
  14272. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14273. shlibpath_var=LD_LIBRARY_PATH
  14274. shlibpath_overrides_runpath=no
  14275. # This implies no fast_install, which is unacceptable.
  14276. # Some rework will be needed to allow for fast_install
  14277. # before this can be enabled.
  14278. hardcode_into_libs=yes
  14279. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14280. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14281. # Append ld.so.conf contents to the search path
  14282. if test -f /etc/ld.so.conf; then
  14283. 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' ' '`
  14284. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  14285. fi
  14286. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14287. # powerpc, because MkLinux only supported shared libraries with the
  14288. # GNU dynamic linker. Since this was broken with cross compilers,
  14289. # most powerpc-linux boxes support dynamic linking these days and
  14290. # people can always --disable-shared, the test was removed, and we
  14291. # assume the GNU/Linux dynamic linker is in use.
  14292. dynamic_linker='GNU/Linux ld.so'
  14293. ;;
  14294. netbsd*)
  14295. version_type=sunos
  14296. need_lib_prefix=no
  14297. need_version=no
  14298. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  14299. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14300. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14301. dynamic_linker='NetBSD (a.out) ld.so'
  14302. else
  14303. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14304. soname_spec='${libname}${release}${shared_ext}$major'
  14305. dynamic_linker='NetBSD ld.elf_so'
  14306. fi
  14307. shlibpath_var=LD_LIBRARY_PATH
  14308. shlibpath_overrides_runpath=yes
  14309. hardcode_into_libs=yes
  14310. ;;
  14311. newsos6)
  14312. version_type=linux
  14313. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14314. shlibpath_var=LD_LIBRARY_PATH
  14315. shlibpath_overrides_runpath=yes
  14316. ;;
  14317. nto-qnx*)
  14318. version_type=linux
  14319. need_lib_prefix=no
  14320. need_version=no
  14321. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14322. soname_spec='${libname}${release}${shared_ext}$major'
  14323. shlibpath_var=LD_LIBRARY_PATH
  14324. shlibpath_overrides_runpath=yes
  14325. ;;
  14326. openbsd*)
  14327. version_type=sunos
  14328. sys_lib_dlsearch_path_spec="/usr/lib"
  14329. need_lib_prefix=no
  14330. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14331. case $host_os in
  14332. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  14333. *) need_version=no ;;
  14334. esac
  14335. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14336. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14337. shlibpath_var=LD_LIBRARY_PATH
  14338. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14339. case $host_os in
  14340. openbsd2.[89] | openbsd2.[89].*)
  14341. shlibpath_overrides_runpath=no
  14342. ;;
  14343. *)
  14344. shlibpath_overrides_runpath=yes
  14345. ;;
  14346. esac
  14347. else
  14348. shlibpath_overrides_runpath=yes
  14349. fi
  14350. ;;
  14351. os2*)
  14352. libname_spec='$name'
  14353. shrext_cmds=".dll"
  14354. need_lib_prefix=no
  14355. library_names_spec='$libname${shared_ext} $libname.a'
  14356. dynamic_linker='OS/2 ld.exe'
  14357. shlibpath_var=LIBPATH
  14358. ;;
  14359. osf3* | osf4* | osf5*)
  14360. version_type=osf
  14361. need_lib_prefix=no
  14362. need_version=no
  14363. soname_spec='${libname}${release}${shared_ext}$major'
  14364. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14365. shlibpath_var=LD_LIBRARY_PATH
  14366. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14367. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14368. ;;
  14369. rdos*)
  14370. dynamic_linker=no
  14371. ;;
  14372. solaris*)
  14373. version_type=linux
  14374. need_lib_prefix=no
  14375. need_version=no
  14376. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14377. soname_spec='${libname}${release}${shared_ext}$major'
  14378. shlibpath_var=LD_LIBRARY_PATH
  14379. shlibpath_overrides_runpath=yes
  14380. hardcode_into_libs=yes
  14381. # ldd complains unless libraries are executable
  14382. postinstall_cmds='chmod +x $lib'
  14383. ;;
  14384. sunos4*)
  14385. version_type=sunos
  14386. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14387. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14388. shlibpath_var=LD_LIBRARY_PATH
  14389. shlibpath_overrides_runpath=yes
  14390. if test "$with_gnu_ld" = yes; then
  14391. need_lib_prefix=no
  14392. fi
  14393. need_version=yes
  14394. ;;
  14395. sysv4 | sysv4.3*)
  14396. version_type=linux
  14397. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14398. soname_spec='${libname}${release}${shared_ext}$major'
  14399. shlibpath_var=LD_LIBRARY_PATH
  14400. case $host_vendor in
  14401. sni)
  14402. shlibpath_overrides_runpath=no
  14403. need_lib_prefix=no
  14404. export_dynamic_flag_spec='${wl}-Blargedynsym'
  14405. runpath_var=LD_RUN_PATH
  14406. ;;
  14407. siemens)
  14408. need_lib_prefix=no
  14409. ;;
  14410. motorola)
  14411. need_lib_prefix=no
  14412. need_version=no
  14413. shlibpath_overrides_runpath=no
  14414. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14415. ;;
  14416. esac
  14417. ;;
  14418. sysv4*MP*)
  14419. if test -d /usr/nec ;then
  14420. version_type=linux
  14421. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14422. soname_spec='$libname${shared_ext}.$major'
  14423. shlibpath_var=LD_LIBRARY_PATH
  14424. fi
  14425. ;;
  14426. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14427. version_type=freebsd-elf
  14428. need_lib_prefix=no
  14429. need_version=no
  14430. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14431. soname_spec='${libname}${release}${shared_ext}$major'
  14432. shlibpath_var=LD_LIBRARY_PATH
  14433. hardcode_into_libs=yes
  14434. if test "$with_gnu_ld" = yes; then
  14435. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14436. shlibpath_overrides_runpath=no
  14437. else
  14438. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14439. shlibpath_overrides_runpath=yes
  14440. case $host_os in
  14441. sco3.2v5*)
  14442. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14443. ;;
  14444. esac
  14445. fi
  14446. sys_lib_dlsearch_path_spec='/usr/lib'
  14447. ;;
  14448. uts4*)
  14449. version_type=linux
  14450. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14451. soname_spec='${libname}${release}${shared_ext}$major'
  14452. shlibpath_var=LD_LIBRARY_PATH
  14453. ;;
  14454. *)
  14455. dynamic_linker=no
  14456. ;;
  14457. esac
  14458. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  14459. echo "${ECHO_T}$dynamic_linker" >&6; }
  14460. test "$dynamic_linker" = no && can_build_shared=no
  14461. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14462. if test "$GCC" = yes; then
  14463. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14464. fi
  14465. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  14466. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  14467. hardcode_action_F77=
  14468. if test -n "$hardcode_libdir_flag_spec_F77" || \
  14469. test -n "$runpath_var_F77" || \
  14470. test "X$hardcode_automatic_F77" = "Xyes" ; then
  14471. # We can hardcode non-existent directories.
  14472. if test "$hardcode_direct_F77" != no &&
  14473. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14474. # have to relink, otherwise we might link with an installed library
  14475. # when we should be linking with a yet-to-be-installed one
  14476. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  14477. test "$hardcode_minus_L_F77" != no; then
  14478. # Linking always hardcodes the temporary library directory.
  14479. hardcode_action_F77=relink
  14480. else
  14481. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14482. hardcode_action_F77=immediate
  14483. fi
  14484. else
  14485. # We cannot hardcode anything, or else we can only hardcode existing
  14486. # directories.
  14487. hardcode_action_F77=unsupported
  14488. fi
  14489. { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  14490. echo "${ECHO_T}$hardcode_action_F77" >&6; }
  14491. if test "$hardcode_action_F77" = relink; then
  14492. # Fast installation is not supported
  14493. enable_fast_install=no
  14494. elif test "$shlibpath_overrides_runpath" = yes ||
  14495. test "$enable_shared" = no; then
  14496. # Fast installation is not necessary
  14497. enable_fast_install=needless
  14498. fi
  14499. # The else clause should only fire when bootstrapping the
  14500. # libtool distribution, otherwise you forgot to ship ltmain.sh
  14501. # with your package, and you will get complaints that there are
  14502. # no rules to generate ltmain.sh.
  14503. if test -f "$ltmain"; then
  14504. # See if we are running on zsh, and set the options which allow our commands through
  14505. # without removal of \ escapes.
  14506. if test -n "${ZSH_VERSION+set}" ; then
  14507. setopt NO_GLOB_SUBST
  14508. fi
  14509. # Now quote all the things that may contain metacharacters while being
  14510. # careful not to overquote the AC_SUBSTed values. We take copies of the
  14511. # variables and quote the copies for generation of the libtool script.
  14512. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  14513. SED SHELL STRIP \
  14514. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  14515. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  14516. deplibs_check_method reload_flag reload_cmds need_locks \
  14517. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  14518. lt_cv_sys_global_symbol_to_c_name_address \
  14519. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  14520. old_postinstall_cmds old_postuninstall_cmds \
  14521. compiler_F77 \
  14522. CC_F77 \
  14523. LD_F77 \
  14524. lt_prog_compiler_wl_F77 \
  14525. lt_prog_compiler_pic_F77 \
  14526. lt_prog_compiler_static_F77 \
  14527. lt_prog_compiler_no_builtin_flag_F77 \
  14528. export_dynamic_flag_spec_F77 \
  14529. thread_safe_flag_spec_F77 \
  14530. whole_archive_flag_spec_F77 \
  14531. enable_shared_with_static_runtimes_F77 \
  14532. old_archive_cmds_F77 \
  14533. old_archive_from_new_cmds_F77 \
  14534. predep_objects_F77 \
  14535. postdep_objects_F77 \
  14536. predeps_F77 \
  14537. postdeps_F77 \
  14538. compiler_lib_search_path_F77 \
  14539. archive_cmds_F77 \
  14540. archive_expsym_cmds_F77 \
  14541. postinstall_cmds_F77 \
  14542. postuninstall_cmds_F77 \
  14543. old_archive_from_expsyms_cmds_F77 \
  14544. allow_undefined_flag_F77 \
  14545. no_undefined_flag_F77 \
  14546. export_symbols_cmds_F77 \
  14547. hardcode_libdir_flag_spec_F77 \
  14548. hardcode_libdir_flag_spec_ld_F77 \
  14549. hardcode_libdir_separator_F77 \
  14550. hardcode_automatic_F77 \
  14551. module_cmds_F77 \
  14552. module_expsym_cmds_F77 \
  14553. lt_cv_prog_compiler_c_o_F77 \
  14554. fix_srcfile_path_F77 \
  14555. exclude_expsyms_F77 \
  14556. include_expsyms_F77; do
  14557. case $var in
  14558. old_archive_cmds_F77 | \
  14559. old_archive_from_new_cmds_F77 | \
  14560. archive_cmds_F77 | \
  14561. archive_expsym_cmds_F77 | \
  14562. module_cmds_F77 | \
  14563. module_expsym_cmds_F77 | \
  14564. old_archive_from_expsyms_cmds_F77 | \
  14565. export_symbols_cmds_F77 | \
  14566. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  14567. postinstall_cmds | postuninstall_cmds | \
  14568. old_postinstall_cmds | old_postuninstall_cmds | \
  14569. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  14570. # Double-quote double-evaled strings.
  14571. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  14572. ;;
  14573. *)
  14574. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  14575. ;;
  14576. esac
  14577. done
  14578. case $lt_echo in
  14579. *'\$0 --fallback-echo"')
  14580. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  14581. ;;
  14582. esac
  14583. cfgfile="$ofile"
  14584. cat <<__EOF__ >> "$cfgfile"
  14585. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  14586. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14587. # Shell to use when invoking shell scripts.
  14588. SHELL=$lt_SHELL
  14589. # Whether or not to build shared libraries.
  14590. build_libtool_libs=$enable_shared
  14591. # Whether or not to build static libraries.
  14592. build_old_libs=$enable_static
  14593. # Whether or not to add -lc for building shared libraries.
  14594. build_libtool_need_lc=$archive_cmds_need_lc_F77
  14595. # Whether or not to disallow shared libs when runtime libs are static
  14596. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  14597. # Whether or not to optimize for fast installation.
  14598. fast_install=$enable_fast_install
  14599. # The host system.
  14600. host_alias=$host_alias
  14601. host=$host
  14602. host_os=$host_os
  14603. # The build system.
  14604. build_alias=$build_alias
  14605. build=$build
  14606. build_os=$build_os
  14607. # An echo program that does not interpret backslashes.
  14608. echo=$lt_echo
  14609. # The archiver.
  14610. AR=$lt_AR
  14611. AR_FLAGS=$lt_AR_FLAGS
  14612. # A C compiler.
  14613. LTCC=$lt_LTCC
  14614. # LTCC compiler flags.
  14615. LTCFLAGS=$lt_LTCFLAGS
  14616. # A language-specific compiler.
  14617. CC=$lt_compiler_F77
  14618. # Is the compiler the GNU C compiler?
  14619. with_gcc=$GCC_F77
  14620. # An ERE matcher.
  14621. EGREP=$lt_EGREP
  14622. # The linker used to build libraries.
  14623. LD=$lt_LD_F77
  14624. # Whether we need hard or soft links.
  14625. LN_S=$lt_LN_S
  14626. # A BSD-compatible nm program.
  14627. NM=$lt_NM
  14628. # A symbol stripping program
  14629. STRIP=$lt_STRIP
  14630. # Used to examine libraries when file_magic_cmd begins "file"
  14631. MAGIC_CMD=$MAGIC_CMD
  14632. # Used on cygwin: DLL creation program.
  14633. DLLTOOL="$DLLTOOL"
  14634. # Used on cygwin: object dumper.
  14635. OBJDUMP="$OBJDUMP"
  14636. # Used on cygwin: assembler.
  14637. AS="$AS"
  14638. # The name of the directory that contains temporary libtool files.
  14639. objdir=$objdir
  14640. # How to create reloadable object files.
  14641. reload_flag=$lt_reload_flag
  14642. reload_cmds=$lt_reload_cmds
  14643. # How to pass a linker flag through the compiler.
  14644. wl=$lt_lt_prog_compiler_wl_F77
  14645. # Object file suffix (normally "o").
  14646. objext="$ac_objext"
  14647. # Old archive suffix (normally "a").
  14648. libext="$libext"
  14649. # Shared library suffix (normally ".so").
  14650. shrext_cmds='$shrext_cmds'
  14651. # Executable file suffix (normally "").
  14652. exeext="$exeext"
  14653. # Additional compiler flags for building library objects.
  14654. pic_flag=$lt_lt_prog_compiler_pic_F77
  14655. pic_mode=$pic_mode
  14656. # What is the maximum length of a command?
  14657. max_cmd_len=$lt_cv_sys_max_cmd_len
  14658. # Does compiler simultaneously support -c and -o options?
  14659. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  14660. # Must we lock files when doing compilation?
  14661. need_locks=$lt_need_locks
  14662. # Do we need the lib prefix for modules?
  14663. need_lib_prefix=$need_lib_prefix
  14664. # Do we need a version for libraries?
  14665. need_version=$need_version
  14666. # Whether dlopen is supported.
  14667. dlopen_support=$enable_dlopen
  14668. # Whether dlopen of programs is supported.
  14669. dlopen_self=$enable_dlopen_self
  14670. # Whether dlopen of statically linked programs is supported.
  14671. dlopen_self_static=$enable_dlopen_self_static
  14672. # Compiler flag to prevent dynamic linking.
  14673. link_static_flag=$lt_lt_prog_compiler_static_F77
  14674. # Compiler flag to turn off builtin functions.
  14675. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  14676. # Compiler flag to allow reflexive dlopens.
  14677. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  14678. # Compiler flag to generate shared objects directly from archives.
  14679. whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  14680. # Compiler flag to generate thread-safe objects.
  14681. thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  14682. # Library versioning type.
  14683. version_type=$version_type
  14684. # Format of library name prefix.
  14685. libname_spec=$lt_libname_spec
  14686. # List of archive names. First name is the real one, the rest are links.
  14687. # The last name is the one that the linker finds with -lNAME.
  14688. library_names_spec=$lt_library_names_spec
  14689. # The coded name of the library, if different from the real name.
  14690. soname_spec=$lt_soname_spec
  14691. # Commands used to build and install an old-style archive.
  14692. RANLIB=$lt_RANLIB
  14693. old_archive_cmds=$lt_old_archive_cmds_F77
  14694. old_postinstall_cmds=$lt_old_postinstall_cmds
  14695. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14696. # Create an old-style archive from a shared archive.
  14697. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  14698. # Create a temporary old-style archive to link instead of a shared archive.
  14699. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  14700. # Commands used to build and install a shared archive.
  14701. archive_cmds=$lt_archive_cmds_F77
  14702. archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  14703. postinstall_cmds=$lt_postinstall_cmds
  14704. postuninstall_cmds=$lt_postuninstall_cmds
  14705. # Commands used to build a loadable module (assumed same as above if empty)
  14706. module_cmds=$lt_module_cmds_F77
  14707. module_expsym_cmds=$lt_module_expsym_cmds_F77
  14708. # Commands to strip libraries.
  14709. old_striplib=$lt_old_striplib
  14710. striplib=$lt_striplib
  14711. # Dependencies to place before the objects being linked to create a
  14712. # shared library.
  14713. predep_objects=$lt_predep_objects_F77
  14714. # Dependencies to place after the objects being linked to create a
  14715. # shared library.
  14716. postdep_objects=$lt_postdep_objects_F77
  14717. # Dependencies to place before the objects being linked to create a
  14718. # shared library.
  14719. predeps=$lt_predeps_F77
  14720. # Dependencies to place after the objects being linked to create a
  14721. # shared library.
  14722. postdeps=$lt_postdeps_F77
  14723. # The library search path used internally by the compiler when linking
  14724. # a shared library.
  14725. compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  14726. # Method to check whether dependent libraries are shared objects.
  14727. deplibs_check_method=$lt_deplibs_check_method
  14728. # Command to use when deplibs_check_method == file_magic.
  14729. file_magic_cmd=$lt_file_magic_cmd
  14730. # Flag that allows shared libraries with undefined symbols to be built.
  14731. allow_undefined_flag=$lt_allow_undefined_flag_F77
  14732. # Flag that forces no undefined symbols.
  14733. no_undefined_flag=$lt_no_undefined_flag_F77
  14734. # Commands used to finish a libtool library installation in a directory.
  14735. finish_cmds=$lt_finish_cmds
  14736. # Same as above, but a single script fragment to be evaled but not shown.
  14737. finish_eval=$lt_finish_eval
  14738. # Take the output of nm and produce a listing of raw symbols and C names.
  14739. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14740. # Transform the output of nm in a proper C declaration
  14741. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14742. # Transform the output of nm in a C name address pair
  14743. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14744. # This is the shared library runtime path variable.
  14745. runpath_var=$runpath_var
  14746. # This is the shared library path variable.
  14747. shlibpath_var=$shlibpath_var
  14748. # Is shlibpath searched before the hard-coded library search path?
  14749. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14750. # How to hardcode a shared library path into an executable.
  14751. hardcode_action=$hardcode_action_F77
  14752. # Whether we should hardcode library paths into libraries.
  14753. hardcode_into_libs=$hardcode_into_libs
  14754. # Flag to hardcode \$libdir into a binary during linking.
  14755. # This must work even if \$libdir does not exist.
  14756. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  14757. # If ld is used when linking, flag to hardcode \$libdir into
  14758. # a binary during linking. This must work even if \$libdir does
  14759. # not exist.
  14760. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  14761. # Whether we need a single -rpath flag with a separated argument.
  14762. hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  14763. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  14764. # resulting binary.
  14765. hardcode_direct=$hardcode_direct_F77
  14766. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  14767. # resulting binary.
  14768. hardcode_minus_L=$hardcode_minus_L_F77
  14769. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  14770. # the resulting binary.
  14771. hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  14772. # Set to yes if building a shared library automatically hardcodes DIR into the library
  14773. # and all subsequent libraries and executables linked against it.
  14774. hardcode_automatic=$hardcode_automatic_F77
  14775. # Variables whose values should be saved in libtool wrapper scripts and
  14776. # restored at relink time.
  14777. variables_saved_for_relink="$variables_saved_for_relink"
  14778. # Whether libtool must link a program against all its dependency libraries.
  14779. link_all_deplibs=$link_all_deplibs_F77
  14780. # Compile-time system search path for libraries
  14781. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14782. # Run-time system search path for libraries
  14783. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14784. # Fix the shell variable \$srcfile for the compiler.
  14785. fix_srcfile_path=$lt_fix_srcfile_path
  14786. # Set to yes if exported symbols are required.
  14787. always_export_symbols=$always_export_symbols_F77
  14788. # The commands to list exported symbols.
  14789. export_symbols_cmds=$lt_export_symbols_cmds_F77
  14790. # The commands to extract the exported symbol list from a shared archive.
  14791. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14792. # Symbols that should not be listed in the preloaded symbols.
  14793. exclude_expsyms=$lt_exclude_expsyms_F77
  14794. # Symbols that must always be exported.
  14795. include_expsyms=$lt_include_expsyms_F77
  14796. # ### END LIBTOOL TAG CONFIG: $tagname
  14797. __EOF__
  14798. else
  14799. # If there is no Makefile yet, we rely on a make rule to execute
  14800. # `config.status --recheck' to rerun these tests and create the
  14801. # libtool script then.
  14802. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  14803. if test -f "$ltmain_in"; then
  14804. test -f Makefile && make "$ltmain"
  14805. fi
  14806. fi
  14807. ac_ext=c
  14808. ac_cpp='$CPP $CPPFLAGS'
  14809. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14810. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14811. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14812. CC="$lt_save_CC"
  14813. else
  14814. tagname=""
  14815. fi
  14816. ;;
  14817. GCJ)
  14818. if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  14819. # Source file extension for Java test sources.
  14820. ac_ext=java
  14821. # Object file extension for compiled Java test sources.
  14822. objext=o
  14823. objext_GCJ=$objext
  14824. # Code to be used in simple compile tests
  14825. lt_simple_compile_test_code="class foo {}"
  14826. # Code to be used in simple link tests
  14827. lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
  14828. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  14829. # If no C compiler was specified, use CC.
  14830. LTCC=${LTCC-"$CC"}
  14831. # If no C compiler flags were specified, use CFLAGS.
  14832. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14833. # Allow CC to be a program name with arguments.
  14834. compiler=$CC
  14835. # save warnings/boilerplate of simple test code
  14836. ac_outfile=conftest.$ac_objext
  14837. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  14838. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14839. _lt_compiler_boilerplate=`cat conftest.err`
  14840. $rm conftest*
  14841. ac_outfile=conftest.$ac_objext
  14842. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  14843. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14844. _lt_linker_boilerplate=`cat conftest.err`
  14845. $rm conftest*
  14846. # Allow CC to be a program name with arguments.
  14847. lt_save_CC="$CC"
  14848. CC=${GCJ-"gcj"}
  14849. compiler=$CC
  14850. compiler_GCJ=$CC
  14851. for cc_temp in $compiler""; do
  14852. case $cc_temp in
  14853. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  14854. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  14855. \-*) ;;
  14856. *) break;;
  14857. esac
  14858. done
  14859. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  14860. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  14861. archive_cmds_need_lc_GCJ=no
  14862. old_archive_cmds_GCJ=$old_archive_cmds
  14863. lt_prog_compiler_no_builtin_flag_GCJ=
  14864. if test "$GCC" = yes; then
  14865. lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  14866. { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14867. echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
  14868. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  14869. echo $ECHO_N "(cached) $ECHO_C" >&6
  14870. else
  14871. lt_cv_prog_compiler_rtti_exceptions=no
  14872. ac_outfile=conftest.$ac_objext
  14873. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14874. lt_compiler_flag="-fno-rtti -fno-exceptions"
  14875. # Insert the option either (1) after the last *FLAGS variable, or
  14876. # (2) before a word containing "conftest.", or (3) at the end.
  14877. # Note that $ac_compile itself does not contain backslashes and begins
  14878. # with a dollar sign (not a hyphen), so the echo should work correctly.
  14879. # The option is referenced via a variable to avoid confusing sed.
  14880. lt_compile=`echo "$ac_compile" | $SED \
  14881. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14882. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  14883. -e 's:$: $lt_compiler_flag:'`
  14884. (eval echo "\"\$as_me:16662: $lt_compile\"" >&5)
  14885. (eval "$lt_compile" 2>conftest.err)
  14886. ac_status=$?
  14887. cat conftest.err >&5
  14888. echo "$as_me:16666: \$? = $ac_status" >&5
  14889. if (exit $ac_status) && test -s "$ac_outfile"; then
  14890. # The compiler can only warn and ignore the option if not recognized
  14891. # So say no if there are warnings other than the usual output.
  14892. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  14893. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  14894. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  14895. lt_cv_prog_compiler_rtti_exceptions=yes
  14896. fi
  14897. fi
  14898. $rm conftest*
  14899. fi
  14900. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  14901. echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  14902. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  14903. lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  14904. else
  14905. :
  14906. fi
  14907. fi
  14908. lt_prog_compiler_wl_GCJ=
  14909. lt_prog_compiler_pic_GCJ=
  14910. lt_prog_compiler_static_GCJ=
  14911. { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14912. echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
  14913. if test "$GCC" = yes; then
  14914. lt_prog_compiler_wl_GCJ='-Wl,'
  14915. lt_prog_compiler_static_GCJ='-static'
  14916. case $host_os in
  14917. aix*)
  14918. # All AIX code is PIC.
  14919. if test "$host_cpu" = ia64; then
  14920. # AIX 5 now supports IA64 processor
  14921. lt_prog_compiler_static_GCJ='-Bstatic'
  14922. fi
  14923. ;;
  14924. amigaos*)
  14925. # FIXME: we need at least 68020 code to build shared libraries, but
  14926. # adding the `-m68020' flag to GCC prevents building anything better,
  14927. # like `-m68040'.
  14928. lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  14929. ;;
  14930. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14931. # PIC is the default for these OSes.
  14932. ;;
  14933. mingw* | cygwin* | pw32* | os2*)
  14934. # This hack is so that the source file can tell whether it is being
  14935. # built for inclusion in a dll (and should export symbols for example).
  14936. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  14937. # (--disable-auto-import) libraries
  14938. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  14939. ;;
  14940. darwin* | rhapsody*)
  14941. # PIC is the default on this platform
  14942. # Common symbols not allowed in MH_DYLIB files
  14943. lt_prog_compiler_pic_GCJ='-fno-common'
  14944. ;;
  14945. interix[3-9]*)
  14946. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  14947. # Instead, we relocate shared libraries at runtime.
  14948. ;;
  14949. msdosdjgpp*)
  14950. # Just because we use GCC doesn't mean we suddenly get shared libraries
  14951. # on systems that don't support them.
  14952. lt_prog_compiler_can_build_shared_GCJ=no
  14953. enable_shared=no
  14954. ;;
  14955. sysv4*MP*)
  14956. if test -d /usr/nec; then
  14957. lt_prog_compiler_pic_GCJ=-Kconform_pic
  14958. fi
  14959. ;;
  14960. hpux*)
  14961. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  14962. # not for PA HP-UX.
  14963. case $host_cpu in
  14964. hppa*64*|ia64*)
  14965. # +Z the default
  14966. ;;
  14967. *)
  14968. lt_prog_compiler_pic_GCJ='-fPIC'
  14969. ;;
  14970. esac
  14971. ;;
  14972. *)
  14973. lt_prog_compiler_pic_GCJ='-fPIC'
  14974. ;;
  14975. esac
  14976. else
  14977. # PORTME Check for flag to pass linker flags through the system compiler.
  14978. case $host_os in
  14979. aix*)
  14980. lt_prog_compiler_wl_GCJ='-Wl,'
  14981. if test "$host_cpu" = ia64; then
  14982. # AIX 5 now supports IA64 processor
  14983. lt_prog_compiler_static_GCJ='-Bstatic'
  14984. else
  14985. lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  14986. fi
  14987. ;;
  14988. darwin*)
  14989. # PIC is the default on this platform
  14990. # Common symbols not allowed in MH_DYLIB files
  14991. case $cc_basename in
  14992. xlc*)
  14993. lt_prog_compiler_pic_GCJ='-qnocommon'
  14994. lt_prog_compiler_wl_GCJ='-Wl,'
  14995. ;;
  14996. esac
  14997. ;;
  14998. mingw* | cygwin* | pw32* | os2*)
  14999. # This hack is so that the source file can tell whether it is being
  15000. # built for inclusion in a dll (and should export symbols for example).
  15001. lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  15002. ;;
  15003. hpux9* | hpux10* | hpux11*)
  15004. lt_prog_compiler_wl_GCJ='-Wl,'
  15005. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  15006. # not for PA HP-UX.
  15007. case $host_cpu in
  15008. hppa*64*|ia64*)
  15009. # +Z the default
  15010. ;;
  15011. *)
  15012. lt_prog_compiler_pic_GCJ='+Z'
  15013. ;;
  15014. esac
  15015. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  15016. lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  15017. ;;
  15018. irix5* | irix6* | nonstopux*)
  15019. lt_prog_compiler_wl_GCJ='-Wl,'
  15020. # PIC (with -KPIC) is the default.
  15021. lt_prog_compiler_static_GCJ='-non_shared'
  15022. ;;
  15023. newsos6)
  15024. lt_prog_compiler_pic_GCJ='-KPIC'
  15025. lt_prog_compiler_static_GCJ='-Bstatic'
  15026. ;;
  15027. linux* | k*bsd*-gnu)
  15028. case $cc_basename in
  15029. icc* | ecc*)
  15030. lt_prog_compiler_wl_GCJ='-Wl,'
  15031. lt_prog_compiler_pic_GCJ='-KPIC'
  15032. lt_prog_compiler_static_GCJ='-static'
  15033. ;;
  15034. pgcc* | pgf77* | pgf90* | pgf95*)
  15035. # Portland Group compilers (*not* the Pentium gcc compiler,
  15036. # which looks to be a dead project)
  15037. lt_prog_compiler_wl_GCJ='-Wl,'
  15038. lt_prog_compiler_pic_GCJ='-fpic'
  15039. lt_prog_compiler_static_GCJ='-Bstatic'
  15040. ;;
  15041. ccc*)
  15042. lt_prog_compiler_wl_GCJ='-Wl,'
  15043. # All Alpha code is PIC.
  15044. lt_prog_compiler_static_GCJ='-non_shared'
  15045. ;;
  15046. *)
  15047. case `$CC -V 2>&1 | sed 5q` in
  15048. *Sun\ C*)
  15049. # Sun C 5.9
  15050. lt_prog_compiler_pic_GCJ='-KPIC'
  15051. lt_prog_compiler_static_GCJ='-Bstatic'
  15052. lt_prog_compiler_wl_GCJ='-Wl,'
  15053. ;;
  15054. *Sun\ F*)
  15055. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  15056. lt_prog_compiler_pic_GCJ='-KPIC'
  15057. lt_prog_compiler_static_GCJ='-Bstatic'
  15058. lt_prog_compiler_wl_GCJ=''
  15059. ;;
  15060. esac
  15061. ;;
  15062. esac
  15063. ;;
  15064. osf3* | osf4* | osf5*)
  15065. lt_prog_compiler_wl_GCJ='-Wl,'
  15066. # All OSF/1 code is PIC.
  15067. lt_prog_compiler_static_GCJ='-non_shared'
  15068. ;;
  15069. rdos*)
  15070. lt_prog_compiler_static_GCJ='-non_shared'
  15071. ;;
  15072. solaris*)
  15073. lt_prog_compiler_pic_GCJ='-KPIC'
  15074. lt_prog_compiler_static_GCJ='-Bstatic'
  15075. case $cc_basename in
  15076. f77* | f90* | f95*)
  15077. lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  15078. *)
  15079. lt_prog_compiler_wl_GCJ='-Wl,';;
  15080. esac
  15081. ;;
  15082. sunos4*)
  15083. lt_prog_compiler_wl_GCJ='-Qoption ld '
  15084. lt_prog_compiler_pic_GCJ='-PIC'
  15085. lt_prog_compiler_static_GCJ='-Bstatic'
  15086. ;;
  15087. sysv4 | sysv4.2uw2* | sysv4.3*)
  15088. lt_prog_compiler_wl_GCJ='-Wl,'
  15089. lt_prog_compiler_pic_GCJ='-KPIC'
  15090. lt_prog_compiler_static_GCJ='-Bstatic'
  15091. ;;
  15092. sysv4*MP*)
  15093. if test -d /usr/nec ;then
  15094. lt_prog_compiler_pic_GCJ='-Kconform_pic'
  15095. lt_prog_compiler_static_GCJ='-Bstatic'
  15096. fi
  15097. ;;
  15098. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  15099. lt_prog_compiler_wl_GCJ='-Wl,'
  15100. lt_prog_compiler_pic_GCJ='-KPIC'
  15101. lt_prog_compiler_static_GCJ='-Bstatic'
  15102. ;;
  15103. unicos*)
  15104. lt_prog_compiler_wl_GCJ='-Wl,'
  15105. lt_prog_compiler_can_build_shared_GCJ=no
  15106. ;;
  15107. uts4*)
  15108. lt_prog_compiler_pic_GCJ='-pic'
  15109. lt_prog_compiler_static_GCJ='-Bstatic'
  15110. ;;
  15111. *)
  15112. lt_prog_compiler_can_build_shared_GCJ=no
  15113. ;;
  15114. esac
  15115. fi
  15116. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  15117. echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
  15118. #
  15119. # Check to make sure the PIC flag actually works.
  15120. #
  15121. if test -n "$lt_prog_compiler_pic_GCJ"; then
  15122. { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  15123. echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
  15124. if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  15125. echo $ECHO_N "(cached) $ECHO_C" >&6
  15126. else
  15127. lt_prog_compiler_pic_works_GCJ=no
  15128. ac_outfile=conftest.$ac_objext
  15129. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15130. lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  15131. # Insert the option either (1) after the last *FLAGS variable, or
  15132. # (2) before a word containing "conftest.", or (3) at the end.
  15133. # Note that $ac_compile itself does not contain backslashes and begins
  15134. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15135. # The option is referenced via a variable to avoid confusing sed.
  15136. lt_compile=`echo "$ac_compile" | $SED \
  15137. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15138. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15139. -e 's:$: $lt_compiler_flag:'`
  15140. (eval echo "\"\$as_me:16952: $lt_compile\"" >&5)
  15141. (eval "$lt_compile" 2>conftest.err)
  15142. ac_status=$?
  15143. cat conftest.err >&5
  15144. echo "$as_me:16956: \$? = $ac_status" >&5
  15145. if (exit $ac_status) && test -s "$ac_outfile"; then
  15146. # The compiler can only warn and ignore the option if not recognized
  15147. # So say no if there are warnings other than the usual output.
  15148. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  15149. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15150. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15151. lt_prog_compiler_pic_works_GCJ=yes
  15152. fi
  15153. fi
  15154. $rm conftest*
  15155. fi
  15156. { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  15157. echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
  15158. if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  15159. case $lt_prog_compiler_pic_GCJ in
  15160. "" | " "*) ;;
  15161. *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  15162. esac
  15163. else
  15164. lt_prog_compiler_pic_GCJ=
  15165. lt_prog_compiler_can_build_shared_GCJ=no
  15166. fi
  15167. fi
  15168. case $host_os in
  15169. # For platforms which do not support PIC, -DPIC is meaningless:
  15170. *djgpp*)
  15171. lt_prog_compiler_pic_GCJ=
  15172. ;;
  15173. *)
  15174. lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  15175. ;;
  15176. esac
  15177. #
  15178. # Check to make sure the static flag actually works.
  15179. #
  15180. wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
  15181. { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  15182. echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
  15183. if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
  15184. echo $ECHO_N "(cached) $ECHO_C" >&6
  15185. else
  15186. lt_prog_compiler_static_works_GCJ=no
  15187. save_LDFLAGS="$LDFLAGS"
  15188. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  15189. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  15190. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  15191. # The linker can only warn and ignore the option if not recognized
  15192. # So say no if there are warnings
  15193. if test -s conftest.err; then
  15194. # Append any errors to the config.log.
  15195. cat conftest.err 1>&5
  15196. $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  15197. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15198. if diff conftest.exp conftest.er2 >/dev/null; then
  15199. lt_prog_compiler_static_works_GCJ=yes
  15200. fi
  15201. else
  15202. lt_prog_compiler_static_works_GCJ=yes
  15203. fi
  15204. fi
  15205. $rm conftest*
  15206. LDFLAGS="$save_LDFLAGS"
  15207. fi
  15208. { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
  15209. echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
  15210. if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
  15211. :
  15212. else
  15213. lt_prog_compiler_static_GCJ=
  15214. fi
  15215. { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  15216. echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
  15217. if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  15218. echo $ECHO_N "(cached) $ECHO_C" >&6
  15219. else
  15220. lt_cv_prog_compiler_c_o_GCJ=no
  15221. $rm -r conftest 2>/dev/null
  15222. mkdir conftest
  15223. cd conftest
  15224. mkdir out
  15225. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15226. lt_compiler_flag="-o out/conftest2.$ac_objext"
  15227. # Insert the option either (1) after the last *FLAGS variable, or
  15228. # (2) before a word containing "conftest.", or (3) at the end.
  15229. # Note that $ac_compile itself does not contain backslashes and begins
  15230. # with a dollar sign (not a hyphen), so the echo should work correctly.
  15231. lt_compile=`echo "$ac_compile" | $SED \
  15232. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15233. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  15234. -e 's:$: $lt_compiler_flag:'`
  15235. (eval echo "\"\$as_me:17056: $lt_compile\"" >&5)
  15236. (eval "$lt_compile" 2>out/conftest.err)
  15237. ac_status=$?
  15238. cat out/conftest.err >&5
  15239. echo "$as_me:17060: \$? = $ac_status" >&5
  15240. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15241. then
  15242. # The compiler can only warn and ignore the option if not recognized
  15243. # So say no if there are warnings
  15244. $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  15245. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15246. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15247. lt_cv_prog_compiler_c_o_GCJ=yes
  15248. fi
  15249. fi
  15250. chmod u+w . 2>&5
  15251. $rm conftest*
  15252. # SGI C++ compiler will create directory out/ii_files/ for
  15253. # template instantiation
  15254. test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  15255. $rm out/* && rmdir out
  15256. cd ..
  15257. rmdir conftest
  15258. $rm conftest*
  15259. fi
  15260. { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  15261. echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
  15262. hard_links="nottested"
  15263. if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  15264. # do not overwrite the value of need_locks provided by the user
  15265. { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  15266. echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
  15267. hard_links=yes
  15268. $rm conftest*
  15269. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15270. touch conftest.a
  15271. ln conftest.a conftest.b 2>&5 || hard_links=no
  15272. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  15273. { echo "$as_me:$LINENO: result: $hard_links" >&5
  15274. echo "${ECHO_T}$hard_links" >&6; }
  15275. if test "$hard_links" = no; then
  15276. { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  15277. echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  15278. need_locks=warn
  15279. fi
  15280. else
  15281. need_locks=no
  15282. fi
  15283. { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15284. echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
  15285. runpath_var=
  15286. allow_undefined_flag_GCJ=
  15287. enable_shared_with_static_runtimes_GCJ=no
  15288. archive_cmds_GCJ=
  15289. archive_expsym_cmds_GCJ=
  15290. old_archive_From_new_cmds_GCJ=
  15291. old_archive_from_expsyms_cmds_GCJ=
  15292. export_dynamic_flag_spec_GCJ=
  15293. whole_archive_flag_spec_GCJ=
  15294. thread_safe_flag_spec_GCJ=
  15295. hardcode_libdir_flag_spec_GCJ=
  15296. hardcode_libdir_flag_spec_ld_GCJ=
  15297. hardcode_libdir_separator_GCJ=
  15298. hardcode_direct_GCJ=no
  15299. hardcode_minus_L_GCJ=no
  15300. hardcode_shlibpath_var_GCJ=unsupported
  15301. link_all_deplibs_GCJ=unknown
  15302. hardcode_automatic_GCJ=no
  15303. module_cmds_GCJ=
  15304. module_expsym_cmds_GCJ=
  15305. always_export_symbols_GCJ=no
  15306. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  15307. # include_expsyms should be a list of space-separated symbols to be *always*
  15308. # included in the symbol list
  15309. include_expsyms_GCJ=
  15310. # exclude_expsyms can be an extended regexp of symbols to exclude
  15311. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  15312. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  15313. # as well as any symbol that contains `d'.
  15314. exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  15315. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  15316. # platforms (ab)use it in PIC code, but their linkers get confused if
  15317. # the symbol is explicitly referenced. Since portable code cannot
  15318. # rely on this symbol name, it's probably fine to never include it in
  15319. # preloaded symbol tables.
  15320. extract_expsyms_cmds=
  15321. # Just being paranoid about ensuring that cc_basename is set.
  15322. for cc_temp in $compiler""; do
  15323. case $cc_temp in
  15324. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15325. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15326. \-*) ;;
  15327. *) break;;
  15328. esac
  15329. done
  15330. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  15331. case $host_os in
  15332. cygwin* | mingw* | pw32*)
  15333. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  15334. # When not using gcc, we currently assume that we are using
  15335. # Microsoft Visual C++.
  15336. if test "$GCC" != yes; then
  15337. with_gnu_ld=no
  15338. fi
  15339. ;;
  15340. interix*)
  15341. # we just hope/assume this is gcc and not c89 (= MSVC++)
  15342. with_gnu_ld=yes
  15343. ;;
  15344. openbsd*)
  15345. with_gnu_ld=no
  15346. ;;
  15347. esac
  15348. ld_shlibs_GCJ=yes
  15349. if test "$with_gnu_ld" = yes; then
  15350. # If archive_cmds runs LD, not CC, wlarc should be empty
  15351. wlarc='${wl}'
  15352. # Set some defaults for GNU ld with shared library support. These
  15353. # are reset later if shared libraries are not supported. Putting them
  15354. # here allows them to be overridden if necessary.
  15355. runpath_var=LD_RUN_PATH
  15356. hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  15357. export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  15358. # ancient GNU ld didn't support --whole-archive et. al.
  15359. if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  15360. whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15361. else
  15362. whole_archive_flag_spec_GCJ=
  15363. fi
  15364. supports_anon_versioning=no
  15365. case `$LD -v 2>/dev/null` in
  15366. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  15367. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  15368. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  15369. *\ 2.11.*) ;; # other 2.11 versions
  15370. *) supports_anon_versioning=yes ;;
  15371. esac
  15372. # See if GNU ld supports shared libraries.
  15373. case $host_os in
  15374. aix3* | aix4* | aix5*)
  15375. # On AIX/PPC, the GNU linker is very broken
  15376. if test "$host_cpu" != ia64; then
  15377. ld_shlibs_GCJ=no
  15378. cat <<EOF 1>&2
  15379. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  15380. *** to be unable to reliably create shared libraries on AIX.
  15381. *** Therefore, libtool is disabling shared libraries support. If you
  15382. *** really care for shared libraries, you may want to modify your PATH
  15383. *** so that a non-GNU linker is found, and then restart.
  15384. EOF
  15385. fi
  15386. ;;
  15387. amigaos*)
  15388. archive_cmds_GCJ='$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)'
  15389. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15390. hardcode_minus_L_GCJ=yes
  15391. # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  15392. # that the semantics of dynamic libraries on AmigaOS, at least up
  15393. # to version 4, is to share data among multiple programs linked
  15394. # with the same dynamic library. Since this doesn't match the
  15395. # behavior of shared libraries on other platforms, we can't use
  15396. # them.
  15397. ld_shlibs_GCJ=no
  15398. ;;
  15399. beos*)
  15400. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15401. allow_undefined_flag_GCJ=unsupported
  15402. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  15403. # support --undefined. This deserves some investigation. FIXME
  15404. archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15405. else
  15406. ld_shlibs_GCJ=no
  15407. fi
  15408. ;;
  15409. cygwin* | mingw* | pw32*)
  15410. # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  15411. # as there is no search path for DLLs.
  15412. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15413. allow_undefined_flag_GCJ=unsupported
  15414. always_export_symbols_GCJ=no
  15415. enable_shared_with_static_runtimes_GCJ=yes
  15416. export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  15417. if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  15418. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15419. # If the export-symbols file already is a .def file (1st line
  15420. # is EXPORTS), use it as is; otherwise, prepend...
  15421. archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  15422. cp $export_symbols $output_objdir/$soname.def;
  15423. else
  15424. echo EXPORTS > $output_objdir/$soname.def;
  15425. cat $export_symbols >> $output_objdir/$soname.def;
  15426. fi~
  15427. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  15428. else
  15429. ld_shlibs_GCJ=no
  15430. fi
  15431. ;;
  15432. interix[3-9]*)
  15433. hardcode_direct_GCJ=no
  15434. hardcode_shlibpath_var_GCJ=no
  15435. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  15436. export_dynamic_flag_spec_GCJ='${wl}-E'
  15437. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  15438. # Instead, shared libraries are loaded at an image base (0x10000000 by
  15439. # default) and relocated if they conflict, which is a slow very memory
  15440. # consuming and fragmenting process. To avoid this, we pick a random,
  15441. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  15442. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  15443. archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  15444. archive_expsym_cmds_GCJ='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'
  15445. ;;
  15446. gnu* | linux* | k*bsd*-gnu)
  15447. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15448. tmp_addflag=
  15449. case $cc_basename,$host_cpu in
  15450. pgcc*) # Portland Group C compiler
  15451. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  15452. tmp_addflag=' $pic_flag'
  15453. ;;
  15454. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  15455. whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  15456. tmp_addflag=' $pic_flag -Mnomain' ;;
  15457. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  15458. tmp_addflag=' -i_dynamic' ;;
  15459. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  15460. tmp_addflag=' -i_dynamic -nofor_main' ;;
  15461. ifc* | ifort*) # Intel Fortran compiler
  15462. tmp_addflag=' -nofor_main' ;;
  15463. esac
  15464. case `$CC -V 2>&1 | sed 5q` in
  15465. *Sun\ C*) # Sun C 5.9
  15466. whole_archive_flag_spec_GCJ='${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'
  15467. tmp_sharedflag='-G' ;;
  15468. *Sun\ F*) # Sun Fortran 8.3
  15469. tmp_sharedflag='-G' ;;
  15470. *)
  15471. tmp_sharedflag='-shared' ;;
  15472. esac
  15473. archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15474. if test $supports_anon_versioning = yes; then
  15475. archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  15476. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  15477. $echo "local: *; };" >> $output_objdir/$libname.ver~
  15478. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  15479. fi
  15480. else
  15481. ld_shlibs_GCJ=no
  15482. fi
  15483. ;;
  15484. netbsd*)
  15485. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15486. archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  15487. wlarc=
  15488. else
  15489. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15490. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15491. fi
  15492. ;;
  15493. solaris*)
  15494. if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  15495. ld_shlibs_GCJ=no
  15496. cat <<EOF 1>&2
  15497. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  15498. *** create shared libraries on Solaris systems. Therefore, libtool
  15499. *** is disabling shared libraries support. We urge you to upgrade GNU
  15500. *** binutils to release 2.9.1 or newer. Another option is to modify
  15501. *** your PATH or compiler configuration so that the native linker is
  15502. *** used, and then restart.
  15503. EOF
  15504. elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15505. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15506. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15507. else
  15508. ld_shlibs_GCJ=no
  15509. fi
  15510. ;;
  15511. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  15512. case `$LD -v 2>&1` in
  15513. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  15514. ld_shlibs_GCJ=no
  15515. cat <<_LT_EOF 1>&2
  15516. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  15517. *** reliably create shared libraries on SCO systems. Therefore, libtool
  15518. *** is disabling shared libraries support. We urge you to upgrade GNU
  15519. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  15520. *** your PATH or compiler configuration so that the native linker is
  15521. *** used, and then restart.
  15522. _LT_EOF
  15523. ;;
  15524. *)
  15525. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15526. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  15527. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  15528. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  15529. else
  15530. ld_shlibs_GCJ=no
  15531. fi
  15532. ;;
  15533. esac
  15534. ;;
  15535. sunos4*)
  15536. archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15537. wlarc=
  15538. hardcode_direct_GCJ=yes
  15539. hardcode_shlibpath_var_GCJ=no
  15540. ;;
  15541. *)
  15542. if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  15543. archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15544. archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15545. else
  15546. ld_shlibs_GCJ=no
  15547. fi
  15548. ;;
  15549. esac
  15550. if test "$ld_shlibs_GCJ" = no; then
  15551. runpath_var=
  15552. hardcode_libdir_flag_spec_GCJ=
  15553. export_dynamic_flag_spec_GCJ=
  15554. whole_archive_flag_spec_GCJ=
  15555. fi
  15556. else
  15557. # PORTME fill in a description of your system's linker (not GNU ld)
  15558. case $host_os in
  15559. aix3*)
  15560. allow_undefined_flag_GCJ=unsupported
  15561. always_export_symbols_GCJ=yes
  15562. archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  15563. # Note: this linker hardcodes the directories in LIBPATH if there
  15564. # are no directories specified by -L.
  15565. hardcode_minus_L_GCJ=yes
  15566. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  15567. # Neither direct hardcoding nor static linking is supported with a
  15568. # broken collect2.
  15569. hardcode_direct_GCJ=unsupported
  15570. fi
  15571. ;;
  15572. aix4* | aix5*)
  15573. if test "$host_cpu" = ia64; then
  15574. # On IA64, the linker does run time linking by default, so we don't
  15575. # have to do anything special.
  15576. aix_use_runtimelinking=no
  15577. exp_sym_flag='-Bexport'
  15578. no_entry_flag=""
  15579. else
  15580. # If we're using GNU nm, then we don't want the "-C" option.
  15581. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  15582. if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  15583. export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  15584. else
  15585. export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  15586. fi
  15587. aix_use_runtimelinking=no
  15588. # Test if we are trying to use run time linking or normal
  15589. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  15590. # need to do runtime linking.
  15591. case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  15592. for ld_flag in $LDFLAGS; do
  15593. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  15594. aix_use_runtimelinking=yes
  15595. break
  15596. fi
  15597. done
  15598. ;;
  15599. esac
  15600. exp_sym_flag='-bexport'
  15601. no_entry_flag='-bnoentry'
  15602. fi
  15603. # When large executables or shared objects are built, AIX ld can
  15604. # have problems creating the table of contents. If linking a library
  15605. # or program results in "error TOC overflow" add -mminimal-toc to
  15606. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  15607. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15608. archive_cmds_GCJ=''
  15609. hardcode_direct_GCJ=yes
  15610. hardcode_libdir_separator_GCJ=':'
  15611. link_all_deplibs_GCJ=yes
  15612. if test "$GCC" = yes; then
  15613. case $host_os in aix4.[012]|aix4.[012].*)
  15614. # We only want to do this on AIX 4.2 and lower, the check
  15615. # below for broken collect2 doesn't work under 4.3+
  15616. collect2name=`${CC} -print-prog-name=collect2`
  15617. if test -f "$collect2name" && \
  15618. strings "$collect2name" | grep resolve_lib_name >/dev/null
  15619. then
  15620. # We have reworked collect2
  15621. :
  15622. else
  15623. # We have old collect2
  15624. hardcode_direct_GCJ=unsupported
  15625. # It fails to find uninstalled libraries when the uninstalled
  15626. # path is not listed in the libpath. Setting hardcode_minus_L
  15627. # to unsupported forces relinking
  15628. hardcode_minus_L_GCJ=yes
  15629. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15630. hardcode_libdir_separator_GCJ=
  15631. fi
  15632. ;;
  15633. esac
  15634. shared_flag='-shared'
  15635. if test "$aix_use_runtimelinking" = yes; then
  15636. shared_flag="$shared_flag "'${wl}-G'
  15637. fi
  15638. else
  15639. # not using gcc
  15640. if test "$host_cpu" = ia64; then
  15641. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15642. # chokes on -Wl,-G. The following line is correct:
  15643. shared_flag='-G'
  15644. else
  15645. if test "$aix_use_runtimelinking" = yes; then
  15646. shared_flag='${wl}-G'
  15647. else
  15648. shared_flag='${wl}-bM:SRE'
  15649. fi
  15650. fi
  15651. fi
  15652. # It seems that -bexpall does not export symbols beginning with
  15653. # underscore (_), so it is better to generate a list of symbols to export.
  15654. always_export_symbols_GCJ=yes
  15655. if test "$aix_use_runtimelinking" = yes; then
  15656. # Warning - without using the other runtime loading flags (-brtl),
  15657. # -berok will link without error, but may produce a broken library.
  15658. allow_undefined_flag_GCJ='-berok'
  15659. # Determine the default libpath from the value encoded in an empty executable.
  15660. cat >conftest.$ac_ext <<_ACEOF
  15661. /* confdefs.h. */
  15662. _ACEOF
  15663. cat confdefs.h >>conftest.$ac_ext
  15664. cat >>conftest.$ac_ext <<_ACEOF
  15665. /* end confdefs.h. */
  15666. int
  15667. main ()
  15668. {
  15669. ;
  15670. return 0;
  15671. }
  15672. _ACEOF
  15673. rm -f conftest.$ac_objext conftest$ac_exeext
  15674. if { (ac_try="$ac_link"
  15675. case "(($ac_try" in
  15676. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15677. *) ac_try_echo=$ac_try;;
  15678. esac
  15679. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15680. (eval "$ac_link") 2>conftest.er1
  15681. ac_status=$?
  15682. grep -v '^ *+' conftest.er1 >conftest.err
  15683. rm -f conftest.er1
  15684. cat conftest.err >&5
  15685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15686. (exit $ac_status); } && {
  15687. test -z "$ac_c_werror_flag" ||
  15688. test ! -s conftest.err
  15689. } && test -s conftest$ac_exeext &&
  15690. $as_test_x conftest$ac_exeext; then
  15691. lt_aix_libpath_sed='
  15692. /Import File Strings/,/^$/ {
  15693. /^0/ {
  15694. s/^0 *\(.*\)$/\1/
  15695. p
  15696. }
  15697. }'
  15698. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15699. # Check for a 64-bit object if we didn't find anything.
  15700. if test -z "$aix_libpath"; then
  15701. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15702. fi
  15703. else
  15704. echo "$as_me: failed program was:" >&5
  15705. sed 's/^/| /' conftest.$ac_ext >&5
  15706. fi
  15707. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15708. conftest$ac_exeext conftest.$ac_ext
  15709. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15710. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15711. archive_expsym_cmds_GCJ="\$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"
  15712. else
  15713. if test "$host_cpu" = ia64; then
  15714. hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  15715. allow_undefined_flag_GCJ="-z nodefs"
  15716. archive_expsym_cmds_GCJ="\$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"
  15717. else
  15718. # Determine the default libpath from the value encoded in an empty executable.
  15719. cat >conftest.$ac_ext <<_ACEOF
  15720. /* confdefs.h. */
  15721. _ACEOF
  15722. cat confdefs.h >>conftest.$ac_ext
  15723. cat >>conftest.$ac_ext <<_ACEOF
  15724. /* end confdefs.h. */
  15725. int
  15726. main ()
  15727. {
  15728. ;
  15729. return 0;
  15730. }
  15731. _ACEOF
  15732. rm -f conftest.$ac_objext conftest$ac_exeext
  15733. if { (ac_try="$ac_link"
  15734. case "(($ac_try" in
  15735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15736. *) ac_try_echo=$ac_try;;
  15737. esac
  15738. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15739. (eval "$ac_link") 2>conftest.er1
  15740. ac_status=$?
  15741. grep -v '^ *+' conftest.er1 >conftest.err
  15742. rm -f conftest.er1
  15743. cat conftest.err >&5
  15744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15745. (exit $ac_status); } && {
  15746. test -z "$ac_c_werror_flag" ||
  15747. test ! -s conftest.err
  15748. } && test -s conftest$ac_exeext &&
  15749. $as_test_x conftest$ac_exeext; then
  15750. lt_aix_libpath_sed='
  15751. /Import File Strings/,/^$/ {
  15752. /^0/ {
  15753. s/^0 *\(.*\)$/\1/
  15754. p
  15755. }
  15756. }'
  15757. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15758. # Check for a 64-bit object if we didn't find anything.
  15759. if test -z "$aix_libpath"; then
  15760. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15761. fi
  15762. else
  15763. echo "$as_me: failed program was:" >&5
  15764. sed 's/^/| /' conftest.$ac_ext >&5
  15765. fi
  15766. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15767. conftest$ac_exeext conftest.$ac_ext
  15768. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  15769. hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  15770. # Warning - without using the other run time loading flags,
  15771. # -berok will link without error, but may produce a broken library.
  15772. no_undefined_flag_GCJ=' ${wl}-bernotok'
  15773. allow_undefined_flag_GCJ=' ${wl}-berok'
  15774. # Exported symbols can be pulled into shared objects from archives
  15775. whole_archive_flag_spec_GCJ='$convenience'
  15776. archive_cmds_need_lc_GCJ=yes
  15777. # This is similar to how AIX traditionally builds its shared libraries.
  15778. archive_expsym_cmds_GCJ="\$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'
  15779. fi
  15780. fi
  15781. ;;
  15782. amigaos*)
  15783. archive_cmds_GCJ='$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)'
  15784. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15785. hardcode_minus_L_GCJ=yes
  15786. # see comment about different semantics on the GNU ld section
  15787. ld_shlibs_GCJ=no
  15788. ;;
  15789. bsdi[45]*)
  15790. export_dynamic_flag_spec_GCJ=-rdynamic
  15791. ;;
  15792. cygwin* | mingw* | pw32*)
  15793. # When not using gcc, we currently assume that we are using
  15794. # Microsoft Visual C++.
  15795. # hardcode_libdir_flag_spec is actually meaningless, as there is
  15796. # no search path for DLLs.
  15797. hardcode_libdir_flag_spec_GCJ=' '
  15798. allow_undefined_flag_GCJ=unsupported
  15799. # Tell ltmain to make .lib files, not .a files.
  15800. libext=lib
  15801. # Tell ltmain to make .dll files, not .so files.
  15802. shrext_cmds=".dll"
  15803. # FIXME: Setting linknames here is a bad hack.
  15804. archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15805. # The linker will automatically build a .lib file if we build a DLL.
  15806. old_archive_From_new_cmds_GCJ='true'
  15807. # FIXME: Should let the user specify the lib program.
  15808. old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
  15809. fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  15810. enable_shared_with_static_runtimes_GCJ=yes
  15811. ;;
  15812. darwin* | rhapsody*)
  15813. case $host_os in
  15814. rhapsody* | darwin1.[012])
  15815. allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  15816. ;;
  15817. *) # Darwin 1.3 on
  15818. if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  15819. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15820. else
  15821. case ${MACOSX_DEPLOYMENT_TARGET} in
  15822. 10.[012])
  15823. allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  15824. ;;
  15825. 10.*)
  15826. allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  15827. ;;
  15828. esac
  15829. fi
  15830. ;;
  15831. esac
  15832. archive_cmds_need_lc_GCJ=no
  15833. hardcode_direct_GCJ=no
  15834. hardcode_automatic_GCJ=yes
  15835. hardcode_shlibpath_var_GCJ=unsupported
  15836. whole_archive_flag_spec_GCJ=''
  15837. link_all_deplibs_GCJ=yes
  15838. if test "$GCC" = yes ; then
  15839. output_verbose_link_cmd='echo'
  15840. archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  15841. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15842. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15843. archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  15844. module_expsym_cmds_GCJ='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}'
  15845. else
  15846. case $cc_basename in
  15847. xlc*)
  15848. output_verbose_link_cmd='echo'
  15849. archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
  15850. module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  15851. # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  15852. archive_expsym_cmds_GCJ='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}'
  15853. module_expsym_cmds_GCJ='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}'
  15854. ;;
  15855. *)
  15856. ld_shlibs_GCJ=no
  15857. ;;
  15858. esac
  15859. fi
  15860. ;;
  15861. dgux*)
  15862. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15863. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  15864. hardcode_shlibpath_var_GCJ=no
  15865. ;;
  15866. freebsd1*)
  15867. ld_shlibs_GCJ=no
  15868. ;;
  15869. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15870. # support. Future versions do this automatically, but an explicit c++rt0.o
  15871. # does not break anything, and helps significantly (at the cost of a little
  15872. # extra space).
  15873. freebsd2.2*)
  15874. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15875. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15876. hardcode_direct_GCJ=yes
  15877. hardcode_shlibpath_var_GCJ=no
  15878. ;;
  15879. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15880. freebsd2*)
  15881. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15882. hardcode_direct_GCJ=yes
  15883. hardcode_minus_L_GCJ=yes
  15884. hardcode_shlibpath_var_GCJ=no
  15885. ;;
  15886. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15887. freebsd* | dragonfly*)
  15888. archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15889. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15890. hardcode_direct_GCJ=yes
  15891. hardcode_shlibpath_var_GCJ=no
  15892. ;;
  15893. hpux9*)
  15894. if test "$GCC" = yes; then
  15895. archive_cmds_GCJ='$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'
  15896. else
  15897. archive_cmds_GCJ='$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'
  15898. fi
  15899. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15900. hardcode_libdir_separator_GCJ=:
  15901. hardcode_direct_GCJ=yes
  15902. # hardcode_minus_L: Not really in the search PATH,
  15903. # but as the default location of the library.
  15904. hardcode_minus_L_GCJ=yes
  15905. export_dynamic_flag_spec_GCJ='${wl}-E'
  15906. ;;
  15907. hpux10*)
  15908. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15909. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15910. else
  15911. archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  15912. fi
  15913. if test "$with_gnu_ld" = no; then
  15914. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15915. hardcode_libdir_separator_GCJ=:
  15916. hardcode_direct_GCJ=yes
  15917. export_dynamic_flag_spec_GCJ='${wl}-E'
  15918. # hardcode_minus_L: Not really in the search PATH,
  15919. # but as the default location of the library.
  15920. hardcode_minus_L_GCJ=yes
  15921. fi
  15922. ;;
  15923. hpux11*)
  15924. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  15925. case $host_cpu in
  15926. hppa*64*)
  15927. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15928. ;;
  15929. ia64*)
  15930. archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15931. ;;
  15932. *)
  15933. archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15934. ;;
  15935. esac
  15936. else
  15937. case $host_cpu in
  15938. hppa*64*)
  15939. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15940. ;;
  15941. ia64*)
  15942. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  15943. ;;
  15944. *)
  15945. archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  15946. ;;
  15947. esac
  15948. fi
  15949. if test "$with_gnu_ld" = no; then
  15950. hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  15951. hardcode_libdir_separator_GCJ=:
  15952. case $host_cpu in
  15953. hppa*64*|ia64*)
  15954. hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  15955. hardcode_direct_GCJ=no
  15956. hardcode_shlibpath_var_GCJ=no
  15957. ;;
  15958. *)
  15959. hardcode_direct_GCJ=yes
  15960. export_dynamic_flag_spec_GCJ='${wl}-E'
  15961. # hardcode_minus_L: Not really in the search PATH,
  15962. # but as the default location of the library.
  15963. hardcode_minus_L_GCJ=yes
  15964. ;;
  15965. esac
  15966. fi
  15967. ;;
  15968. irix5* | irix6* | nonstopux*)
  15969. if test "$GCC" = yes; then
  15970. archive_cmds_GCJ='$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'
  15971. else
  15972. archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  15973. hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  15974. fi
  15975. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15976. hardcode_libdir_separator_GCJ=:
  15977. link_all_deplibs_GCJ=yes
  15978. ;;
  15979. netbsd*)
  15980. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15981. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15982. else
  15983. archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15984. fi
  15985. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  15986. hardcode_direct_GCJ=yes
  15987. hardcode_shlibpath_var_GCJ=no
  15988. ;;
  15989. newsos6)
  15990. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15991. hardcode_direct_GCJ=yes
  15992. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  15993. hardcode_libdir_separator_GCJ=:
  15994. hardcode_shlibpath_var_GCJ=no
  15995. ;;
  15996. openbsd*)
  15997. if test -f /usr/libexec/ld.so; then
  15998. hardcode_direct_GCJ=yes
  15999. hardcode_shlibpath_var_GCJ=no
  16000. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16001. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  16002. archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  16003. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  16004. export_dynamic_flag_spec_GCJ='${wl}-E'
  16005. else
  16006. case $host_os in
  16007. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  16008. archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  16009. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16010. ;;
  16011. *)
  16012. archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  16013. hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  16014. ;;
  16015. esac
  16016. fi
  16017. else
  16018. ld_shlibs_GCJ=no
  16019. fi
  16020. ;;
  16021. os2*)
  16022. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16023. hardcode_minus_L_GCJ=yes
  16024. allow_undefined_flag_GCJ=unsupported
  16025. archive_cmds_GCJ='$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'
  16026. old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  16027. ;;
  16028. osf3*)
  16029. if test "$GCC" = yes; then
  16030. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  16031. archive_cmds_GCJ='$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'
  16032. else
  16033. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  16034. archive_cmds_GCJ='$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'
  16035. fi
  16036. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16037. hardcode_libdir_separator_GCJ=:
  16038. ;;
  16039. osf4* | osf5*) # as osf3* with the addition of -msym flag
  16040. if test "$GCC" = yes; then
  16041. allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  16042. archive_cmds_GCJ='$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'
  16043. hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  16044. else
  16045. allow_undefined_flag_GCJ=' -expect_unresolved \*'
  16046. archive_cmds_GCJ='$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'
  16047. archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  16048. $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'
  16049. # Both c and cxx compiler support -rpath directly
  16050. hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  16051. fi
  16052. hardcode_libdir_separator_GCJ=:
  16053. ;;
  16054. solaris*)
  16055. no_undefined_flag_GCJ=' -z text'
  16056. if test "$GCC" = yes; then
  16057. wlarc='${wl}'
  16058. archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16059. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16060. $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  16061. else
  16062. wlarc=''
  16063. archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16064. archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  16065. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  16066. fi
  16067. hardcode_libdir_flag_spec_GCJ='-R$libdir'
  16068. hardcode_shlibpath_var_GCJ=no
  16069. case $host_os in
  16070. solaris2.[0-5] | solaris2.[0-5].*) ;;
  16071. *)
  16072. # The compiler driver will combine and reorder linker options,
  16073. # but understands `-z linker_flag'. GCC discards it without `$wl',
  16074. # but is careful enough not to reorder.
  16075. # Supported since Solaris 2.6 (maybe 2.5.1?)
  16076. if test "$GCC" = yes; then
  16077. whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  16078. else
  16079. whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
  16080. fi
  16081. ;;
  16082. esac
  16083. link_all_deplibs_GCJ=yes
  16084. ;;
  16085. sunos4*)
  16086. if test "x$host_vendor" = xsequent; then
  16087. # Use $CC to link under sequent, because it throws in some extra .o
  16088. # files that make .init and .fini sections work.
  16089. archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  16090. else
  16091. archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  16092. fi
  16093. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16094. hardcode_direct_GCJ=yes
  16095. hardcode_minus_L_GCJ=yes
  16096. hardcode_shlibpath_var_GCJ=no
  16097. ;;
  16098. sysv4)
  16099. case $host_vendor in
  16100. sni)
  16101. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16102. hardcode_direct_GCJ=yes # is this really true???
  16103. ;;
  16104. siemens)
  16105. ## LD is ld it makes a PLAMLIB
  16106. ## CC just makes a GrossModule.
  16107. archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  16108. reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  16109. hardcode_direct_GCJ=no
  16110. ;;
  16111. motorola)
  16112. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16113. hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  16114. ;;
  16115. esac
  16116. runpath_var='LD_RUN_PATH'
  16117. hardcode_shlibpath_var_GCJ=no
  16118. ;;
  16119. sysv4.3*)
  16120. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16121. hardcode_shlibpath_var_GCJ=no
  16122. export_dynamic_flag_spec_GCJ='-Bexport'
  16123. ;;
  16124. sysv4*MP*)
  16125. if test -d /usr/nec; then
  16126. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16127. hardcode_shlibpath_var_GCJ=no
  16128. runpath_var=LD_RUN_PATH
  16129. hardcode_runpath_var=yes
  16130. ld_shlibs_GCJ=yes
  16131. fi
  16132. ;;
  16133. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  16134. no_undefined_flag_GCJ='${wl}-z,text'
  16135. archive_cmds_need_lc_GCJ=no
  16136. hardcode_shlibpath_var_GCJ=no
  16137. runpath_var='LD_RUN_PATH'
  16138. if test "$GCC" = yes; then
  16139. archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16140. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16141. else
  16142. archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16143. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16144. fi
  16145. ;;
  16146. sysv5* | sco3.2v5* | sco5v6*)
  16147. # Note: We can NOT use -z defs as we might desire, because we do not
  16148. # link with -lc, and that would cause any symbols used from libc to
  16149. # always be unresolved, which means just about no library would
  16150. # ever link correctly. If we're not using GNU ld we use -z text
  16151. # though, which does catch some bad symbols but isn't as heavy-handed
  16152. # as -z defs.
  16153. no_undefined_flag_GCJ='${wl}-z,text'
  16154. allow_undefined_flag_GCJ='${wl}-z,nodefs'
  16155. archive_cmds_need_lc_GCJ=no
  16156. hardcode_shlibpath_var_GCJ=no
  16157. hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  16158. hardcode_libdir_separator_GCJ=':'
  16159. link_all_deplibs_GCJ=yes
  16160. export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  16161. runpath_var='LD_RUN_PATH'
  16162. if test "$GCC" = yes; then
  16163. archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16164. archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16165. else
  16166. archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16167. archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  16168. fi
  16169. ;;
  16170. uts4*)
  16171. archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  16172. hardcode_libdir_flag_spec_GCJ='-L$libdir'
  16173. hardcode_shlibpath_var_GCJ=no
  16174. ;;
  16175. *)
  16176. ld_shlibs_GCJ=no
  16177. ;;
  16178. esac
  16179. fi
  16180. { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  16181. echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
  16182. test "$ld_shlibs_GCJ" = no && can_build_shared=no
  16183. #
  16184. # Do we need to explicitly link libc?
  16185. #
  16186. case "x$archive_cmds_need_lc_GCJ" in
  16187. x|xyes)
  16188. # Assume -lc should be added
  16189. archive_cmds_need_lc_GCJ=yes
  16190. if test "$enable_shared" = yes && test "$GCC" = yes; then
  16191. case $archive_cmds_GCJ in
  16192. *'~'*)
  16193. # FIXME: we may have to deal with multi-command sequences.
  16194. ;;
  16195. '$CC '*)
  16196. # Test whether the compiler implicitly links with -lc since on some
  16197. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  16198. # to ld, don't add -lc before -lgcc.
  16199. { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  16200. echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
  16201. $rm conftest*
  16202. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  16203. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16204. (eval $ac_compile) 2>&5
  16205. ac_status=$?
  16206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16207. (exit $ac_status); } 2>conftest.err; then
  16208. soname=conftest
  16209. lib=conftest
  16210. libobjs=conftest.$ac_objext
  16211. deplibs=
  16212. wl=$lt_prog_compiler_wl_GCJ
  16213. pic_flag=$lt_prog_compiler_pic_GCJ
  16214. compiler_flags=-v
  16215. linker_flags=-v
  16216. verstring=
  16217. output_objdir=.
  16218. libname=conftest
  16219. lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  16220. allow_undefined_flag_GCJ=
  16221. if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  16222. (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  16223. ac_status=$?
  16224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16225. (exit $ac_status); }
  16226. then
  16227. archive_cmds_need_lc_GCJ=no
  16228. else
  16229. archive_cmds_need_lc_GCJ=yes
  16230. fi
  16231. allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  16232. else
  16233. cat conftest.err 1>&5
  16234. fi
  16235. $rm conftest*
  16236. { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  16237. echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
  16238. ;;
  16239. esac
  16240. fi
  16241. ;;
  16242. esac
  16243. { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  16244. echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
  16245. library_names_spec=
  16246. libname_spec='lib$name'
  16247. soname_spec=
  16248. shrext_cmds=".so"
  16249. postinstall_cmds=
  16250. postuninstall_cmds=
  16251. finish_cmds=
  16252. finish_eval=
  16253. shlibpath_var=
  16254. shlibpath_overrides_runpath=unknown
  16255. version_type=none
  16256. dynamic_linker="$host_os ld.so"
  16257. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  16258. need_lib_prefix=unknown
  16259. hardcode_into_libs=no
  16260. # when you set need_version to no, make sure it does not cause -set_version
  16261. # flags to be left without arguments
  16262. need_version=unknown
  16263. case $host_os in
  16264. aix3*)
  16265. version_type=linux
  16266. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  16267. shlibpath_var=LIBPATH
  16268. # AIX 3 has no versioning support, so we append a major version to the name.
  16269. soname_spec='${libname}${release}${shared_ext}$major'
  16270. ;;
  16271. aix4* | aix5*)
  16272. version_type=linux
  16273. need_lib_prefix=no
  16274. need_version=no
  16275. hardcode_into_libs=yes
  16276. if test "$host_cpu" = ia64; then
  16277. # AIX 5 supports IA64
  16278. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  16279. shlibpath_var=LD_LIBRARY_PATH
  16280. else
  16281. # With GCC up to 2.95.x, collect2 would create an import file
  16282. # for dependence libraries. The import file would start with
  16283. # the line `#! .'. This would cause the generated library to
  16284. # depend on `.', always an invalid library. This was fixed in
  16285. # development snapshots of GCC prior to 3.0.
  16286. case $host_os in
  16287. aix4 | aix4.[01] | aix4.[01].*)
  16288. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  16289. echo ' yes '
  16290. echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  16291. :
  16292. else
  16293. can_build_shared=no
  16294. fi
  16295. ;;
  16296. esac
  16297. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  16298. # soname into executable. Probably we can add versioning support to
  16299. # collect2, so additional links can be useful in future.
  16300. if test "$aix_use_runtimelinking" = yes; then
  16301. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  16302. # instead of lib<name>.a to let people know that these are not
  16303. # typical AIX shared libraries.
  16304. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16305. else
  16306. # We preserve .a as extension for shared libraries through AIX4.2
  16307. # and later when we are not doing run time linking.
  16308. library_names_spec='${libname}${release}.a $libname.a'
  16309. soname_spec='${libname}${release}${shared_ext}$major'
  16310. fi
  16311. shlibpath_var=LIBPATH
  16312. fi
  16313. ;;
  16314. amigaos*)
  16315. library_names_spec='$libname.ixlibrary $libname.a'
  16316. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  16317. 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'
  16318. ;;
  16319. beos*)
  16320. library_names_spec='${libname}${shared_ext}'
  16321. dynamic_linker="$host_os ld.so"
  16322. shlibpath_var=LIBRARY_PATH
  16323. ;;
  16324. bsdi[45]*)
  16325. version_type=linux
  16326. need_version=no
  16327. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16328. soname_spec='${libname}${release}${shared_ext}$major'
  16329. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  16330. shlibpath_var=LD_LIBRARY_PATH
  16331. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16332. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16333. # the default ld.so.conf also contains /usr/contrib/lib and
  16334. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16335. # libtool to hard-code these into programs
  16336. ;;
  16337. cygwin* | mingw* | pw32*)
  16338. version_type=windows
  16339. shrext_cmds=".dll"
  16340. need_version=no
  16341. need_lib_prefix=no
  16342. case $GCC,$host_os in
  16343. yes,cygwin* | yes,mingw* | yes,pw32*)
  16344. library_names_spec='$libname.dll.a'
  16345. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16346. postinstall_cmds='base_file=`basename \${file}`~
  16347. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  16348. dldir=$destdir/`dirname \$dlpath`~
  16349. test -d \$dldir || mkdir -p \$dldir~
  16350. $install_prog $dir/$dlname \$dldir/$dlname~
  16351. chmod a+x \$dldir/$dlname'
  16352. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16353. dlpath=$dir/\$dldll~
  16354. $rm \$dlpath'
  16355. shlibpath_overrides_runpath=yes
  16356. case $host_os in
  16357. cygwin*)
  16358. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16359. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16360. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  16361. ;;
  16362. mingw*)
  16363. # MinGW DLLs use traditional 'lib' prefix
  16364. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16365. sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16366. if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  16367. # It is most probably a Windows format PATH printed by
  16368. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  16369. # path with ; separators, and with drive letters. We can handle the
  16370. # drive letters (cygwin fileutils understands them), so leave them,
  16371. # especially as we might pass files found there to a mingw objdump,
  16372. # which wouldn't understand a cygwinified path. Ahh.
  16373. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16374. else
  16375. sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16376. fi
  16377. ;;
  16378. pw32*)
  16379. # pw32 DLLs use 'pw' prefix rather than 'lib'
  16380. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  16381. ;;
  16382. esac
  16383. ;;
  16384. *)
  16385. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  16386. ;;
  16387. esac
  16388. dynamic_linker='Win32 ld.exe'
  16389. # FIXME: first we should search . and the directory the executable is in
  16390. shlibpath_var=PATH
  16391. ;;
  16392. darwin* | rhapsody*)
  16393. dynamic_linker="$host_os dyld"
  16394. version_type=darwin
  16395. need_lib_prefix=no
  16396. need_version=no
  16397. library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  16398. soname_spec='${libname}${release}${major}$shared_ext'
  16399. shlibpath_overrides_runpath=yes
  16400. shlibpath_var=DYLD_LIBRARY_PATH
  16401. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  16402. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16403. ;;
  16404. dgux*)
  16405. version_type=linux
  16406. need_lib_prefix=no
  16407. need_version=no
  16408. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  16409. soname_spec='${libname}${release}${shared_ext}$major'
  16410. shlibpath_var=LD_LIBRARY_PATH
  16411. ;;
  16412. freebsd1*)
  16413. dynamic_linker=no
  16414. ;;
  16415. freebsd* | dragonfly*)
  16416. # DragonFly does not have aout. When/if they implement a new
  16417. # versioning mechanism, adjust this.
  16418. if test -x /usr/bin/objformat; then
  16419. objformat=`/usr/bin/objformat`
  16420. else
  16421. case $host_os in
  16422. freebsd[123]*) objformat=aout ;;
  16423. *) objformat=elf ;;
  16424. esac
  16425. fi
  16426. version_type=freebsd-$objformat
  16427. case $version_type in
  16428. freebsd-elf*)
  16429. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16430. need_version=no
  16431. need_lib_prefix=no
  16432. ;;
  16433. freebsd-*)
  16434. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  16435. need_version=yes
  16436. ;;
  16437. esac
  16438. shlibpath_var=LD_LIBRARY_PATH
  16439. case $host_os in
  16440. freebsd2*)
  16441. shlibpath_overrides_runpath=yes
  16442. ;;
  16443. freebsd3.[01]* | freebsdelf3.[01]*)
  16444. shlibpath_overrides_runpath=yes
  16445. hardcode_into_libs=yes
  16446. ;;
  16447. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  16448. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  16449. shlibpath_overrides_runpath=no
  16450. hardcode_into_libs=yes
  16451. ;;
  16452. *) # from 4.6 on, and DragonFly
  16453. shlibpath_overrides_runpath=yes
  16454. hardcode_into_libs=yes
  16455. ;;
  16456. esac
  16457. ;;
  16458. gnu*)
  16459. version_type=linux
  16460. need_lib_prefix=no
  16461. need_version=no
  16462. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  16463. soname_spec='${libname}${release}${shared_ext}$major'
  16464. shlibpath_var=LD_LIBRARY_PATH
  16465. hardcode_into_libs=yes
  16466. ;;
  16467. hpux9* | hpux10* | hpux11*)
  16468. # Give a soname corresponding to the major version so that dld.sl refuses to
  16469. # link against other versions.
  16470. version_type=sunos
  16471. need_lib_prefix=no
  16472. need_version=no
  16473. case $host_cpu in
  16474. ia64*)
  16475. shrext_cmds='.so'
  16476. hardcode_into_libs=yes
  16477. dynamic_linker="$host_os dld.so"
  16478. shlibpath_var=LD_LIBRARY_PATH
  16479. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16480. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16481. soname_spec='${libname}${release}${shared_ext}$major'
  16482. if test "X$HPUX_IA64_MODE" = X32; then
  16483. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  16484. else
  16485. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  16486. fi
  16487. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16488. ;;
  16489. hppa*64*)
  16490. shrext_cmds='.sl'
  16491. hardcode_into_libs=yes
  16492. dynamic_linker="$host_os dld.sl"
  16493. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  16494. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16495. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16496. soname_spec='${libname}${release}${shared_ext}$major'
  16497. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  16498. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16499. ;;
  16500. *)
  16501. shrext_cmds='.sl'
  16502. dynamic_linker="$host_os dld.sl"
  16503. shlibpath_var=SHLIB_PATH
  16504. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  16505. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16506. soname_spec='${libname}${release}${shared_ext}$major'
  16507. ;;
  16508. esac
  16509. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  16510. postinstall_cmds='chmod 555 $lib'
  16511. ;;
  16512. interix[3-9]*)
  16513. version_type=linux
  16514. need_lib_prefix=no
  16515. need_version=no
  16516. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16517. soname_spec='${libname}${release}${shared_ext}$major'
  16518. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  16519. shlibpath_var=LD_LIBRARY_PATH
  16520. shlibpath_overrides_runpath=no
  16521. hardcode_into_libs=yes
  16522. ;;
  16523. irix5* | irix6* | nonstopux*)
  16524. case $host_os in
  16525. nonstopux*) version_type=nonstopux ;;
  16526. *)
  16527. if test "$lt_cv_prog_gnu_ld" = yes; then
  16528. version_type=linux
  16529. else
  16530. version_type=irix
  16531. fi ;;
  16532. esac
  16533. need_lib_prefix=no
  16534. need_version=no
  16535. soname_spec='${libname}${release}${shared_ext}$major'
  16536. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  16537. case $host_os in
  16538. irix5* | nonstopux*)
  16539. libsuff= shlibsuff=
  16540. ;;
  16541. *)
  16542. case $LD in # libtool.m4 will add one of these switches to LD
  16543. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  16544. libsuff= shlibsuff= libmagic=32-bit;;
  16545. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  16546. libsuff=32 shlibsuff=N32 libmagic=N32;;
  16547. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  16548. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  16549. *) libsuff= shlibsuff= libmagic=never-match;;
  16550. esac
  16551. ;;
  16552. esac
  16553. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  16554. shlibpath_overrides_runpath=no
  16555. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16556. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16557. hardcode_into_libs=yes
  16558. ;;
  16559. # No shared lib support for Linux oldld, aout, or coff.
  16560. linux*oldld* | linux*aout* | linux*coff*)
  16561. dynamic_linker=no
  16562. ;;
  16563. # This must be Linux ELF.
  16564. linux* | k*bsd*-gnu)
  16565. version_type=linux
  16566. need_lib_prefix=no
  16567. need_version=no
  16568. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16569. soname_spec='${libname}${release}${shared_ext}$major'
  16570. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  16571. shlibpath_var=LD_LIBRARY_PATH
  16572. shlibpath_overrides_runpath=no
  16573. # This implies no fast_install, which is unacceptable.
  16574. # Some rework will be needed to allow for fast_install
  16575. # before this can be enabled.
  16576. hardcode_into_libs=yes
  16577. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  16578. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  16579. # Append ld.so.conf contents to the search path
  16580. if test -f /etc/ld.so.conf; then
  16581. 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' ' '`
  16582. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  16583. fi
  16584. # We used to test for /lib/ld.so.1 and disable shared libraries on
  16585. # powerpc, because MkLinux only supported shared libraries with the
  16586. # GNU dynamic linker. Since this was broken with cross compilers,
  16587. # most powerpc-linux boxes support dynamic linking these days and
  16588. # people can always --disable-shared, the test was removed, and we
  16589. # assume the GNU/Linux dynamic linker is in use.
  16590. dynamic_linker='GNU/Linux ld.so'
  16591. ;;
  16592. netbsd*)
  16593. version_type=sunos
  16594. need_lib_prefix=no
  16595. need_version=no
  16596. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  16597. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16598. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16599. dynamic_linker='NetBSD (a.out) ld.so'
  16600. else
  16601. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16602. soname_spec='${libname}${release}${shared_ext}$major'
  16603. dynamic_linker='NetBSD ld.elf_so'
  16604. fi
  16605. shlibpath_var=LD_LIBRARY_PATH
  16606. shlibpath_overrides_runpath=yes
  16607. hardcode_into_libs=yes
  16608. ;;
  16609. newsos6)
  16610. version_type=linux
  16611. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16612. shlibpath_var=LD_LIBRARY_PATH
  16613. shlibpath_overrides_runpath=yes
  16614. ;;
  16615. nto-qnx*)
  16616. version_type=linux
  16617. need_lib_prefix=no
  16618. need_version=no
  16619. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16620. soname_spec='${libname}${release}${shared_ext}$major'
  16621. shlibpath_var=LD_LIBRARY_PATH
  16622. shlibpath_overrides_runpath=yes
  16623. ;;
  16624. openbsd*)
  16625. version_type=sunos
  16626. sys_lib_dlsearch_path_spec="/usr/lib"
  16627. need_lib_prefix=no
  16628. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  16629. case $host_os in
  16630. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  16631. *) need_version=no ;;
  16632. esac
  16633. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16634. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  16635. shlibpath_var=LD_LIBRARY_PATH
  16636. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16637. case $host_os in
  16638. openbsd2.[89] | openbsd2.[89].*)
  16639. shlibpath_overrides_runpath=no
  16640. ;;
  16641. *)
  16642. shlibpath_overrides_runpath=yes
  16643. ;;
  16644. esac
  16645. else
  16646. shlibpath_overrides_runpath=yes
  16647. fi
  16648. ;;
  16649. os2*)
  16650. libname_spec='$name'
  16651. shrext_cmds=".dll"
  16652. need_lib_prefix=no
  16653. library_names_spec='$libname${shared_ext} $libname.a'
  16654. dynamic_linker='OS/2 ld.exe'
  16655. shlibpath_var=LIBPATH
  16656. ;;
  16657. osf3* | osf4* | osf5*)
  16658. version_type=osf
  16659. need_lib_prefix=no
  16660. need_version=no
  16661. soname_spec='${libname}${release}${shared_ext}$major'
  16662. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16663. shlibpath_var=LD_LIBRARY_PATH
  16664. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16665. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  16666. ;;
  16667. rdos*)
  16668. dynamic_linker=no
  16669. ;;
  16670. solaris*)
  16671. version_type=linux
  16672. need_lib_prefix=no
  16673. need_version=no
  16674. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16675. soname_spec='${libname}${release}${shared_ext}$major'
  16676. shlibpath_var=LD_LIBRARY_PATH
  16677. shlibpath_overrides_runpath=yes
  16678. hardcode_into_libs=yes
  16679. # ldd complains unless libraries are executable
  16680. postinstall_cmds='chmod +x $lib'
  16681. ;;
  16682. sunos4*)
  16683. version_type=sunos
  16684. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  16685. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16686. shlibpath_var=LD_LIBRARY_PATH
  16687. shlibpath_overrides_runpath=yes
  16688. if test "$with_gnu_ld" = yes; then
  16689. need_lib_prefix=no
  16690. fi
  16691. need_version=yes
  16692. ;;
  16693. sysv4 | sysv4.3*)
  16694. version_type=linux
  16695. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16696. soname_spec='${libname}${release}${shared_ext}$major'
  16697. shlibpath_var=LD_LIBRARY_PATH
  16698. case $host_vendor in
  16699. sni)
  16700. shlibpath_overrides_runpath=no
  16701. need_lib_prefix=no
  16702. export_dynamic_flag_spec='${wl}-Blargedynsym'
  16703. runpath_var=LD_RUN_PATH
  16704. ;;
  16705. siemens)
  16706. need_lib_prefix=no
  16707. ;;
  16708. motorola)
  16709. need_lib_prefix=no
  16710. need_version=no
  16711. shlibpath_overrides_runpath=no
  16712. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16713. ;;
  16714. esac
  16715. ;;
  16716. sysv4*MP*)
  16717. if test -d /usr/nec ;then
  16718. version_type=linux
  16719. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  16720. soname_spec='$libname${shared_ext}.$major'
  16721. shlibpath_var=LD_LIBRARY_PATH
  16722. fi
  16723. ;;
  16724. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16725. version_type=freebsd-elf
  16726. need_lib_prefix=no
  16727. need_version=no
  16728. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16729. soname_spec='${libname}${release}${shared_ext}$major'
  16730. shlibpath_var=LD_LIBRARY_PATH
  16731. hardcode_into_libs=yes
  16732. if test "$with_gnu_ld" = yes; then
  16733. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  16734. shlibpath_overrides_runpath=no
  16735. else
  16736. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  16737. shlibpath_overrides_runpath=yes
  16738. case $host_os in
  16739. sco3.2v5*)
  16740. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  16741. ;;
  16742. esac
  16743. fi
  16744. sys_lib_dlsearch_path_spec='/usr/lib'
  16745. ;;
  16746. uts4*)
  16747. version_type=linux
  16748. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16749. soname_spec='${libname}${release}${shared_ext}$major'
  16750. shlibpath_var=LD_LIBRARY_PATH
  16751. ;;
  16752. *)
  16753. dynamic_linker=no
  16754. ;;
  16755. esac
  16756. { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16757. echo "${ECHO_T}$dynamic_linker" >&6; }
  16758. test "$dynamic_linker" = no && can_build_shared=no
  16759. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16760. if test "$GCC" = yes; then
  16761. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16762. fi
  16763. { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  16764. echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
  16765. hardcode_action_GCJ=
  16766. if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  16767. test -n "$runpath_var_GCJ" || \
  16768. test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  16769. # We can hardcode non-existent directories.
  16770. if test "$hardcode_direct_GCJ" != no &&
  16771. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16772. # have to relink, otherwise we might link with an installed library
  16773. # when we should be linking with a yet-to-be-installed one
  16774. ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  16775. test "$hardcode_minus_L_GCJ" != no; then
  16776. # Linking always hardcodes the temporary library directory.
  16777. hardcode_action_GCJ=relink
  16778. else
  16779. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16780. hardcode_action_GCJ=immediate
  16781. fi
  16782. else
  16783. # We cannot hardcode anything, or else we can only hardcode existing
  16784. # directories.
  16785. hardcode_action_GCJ=unsupported
  16786. fi
  16787. { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  16788. echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
  16789. if test "$hardcode_action_GCJ" = relink; then
  16790. # Fast installation is not supported
  16791. enable_fast_install=no
  16792. elif test "$shlibpath_overrides_runpath" = yes ||
  16793. test "$enable_shared" = no; then
  16794. # Fast installation is not necessary
  16795. enable_fast_install=needless
  16796. fi
  16797. # The else clause should only fire when bootstrapping the
  16798. # libtool distribution, otherwise you forgot to ship ltmain.sh
  16799. # with your package, and you will get complaints that there are
  16800. # no rules to generate ltmain.sh.
  16801. if test -f "$ltmain"; then
  16802. # See if we are running on zsh, and set the options which allow our commands through
  16803. # without removal of \ escapes.
  16804. if test -n "${ZSH_VERSION+set}" ; then
  16805. setopt NO_GLOB_SUBST
  16806. fi
  16807. # Now quote all the things that may contain metacharacters while being
  16808. # careful not to overquote the AC_SUBSTed values. We take copies of the
  16809. # variables and quote the copies for generation of the libtool script.
  16810. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  16811. SED SHELL STRIP \
  16812. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  16813. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  16814. deplibs_check_method reload_flag reload_cmds need_locks \
  16815. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  16816. lt_cv_sys_global_symbol_to_c_name_address \
  16817. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16818. old_postinstall_cmds old_postuninstall_cmds \
  16819. compiler_GCJ \
  16820. CC_GCJ \
  16821. LD_GCJ \
  16822. lt_prog_compiler_wl_GCJ \
  16823. lt_prog_compiler_pic_GCJ \
  16824. lt_prog_compiler_static_GCJ \
  16825. lt_prog_compiler_no_builtin_flag_GCJ \
  16826. export_dynamic_flag_spec_GCJ \
  16827. thread_safe_flag_spec_GCJ \
  16828. whole_archive_flag_spec_GCJ \
  16829. enable_shared_with_static_runtimes_GCJ \
  16830. old_archive_cmds_GCJ \
  16831. old_archive_from_new_cmds_GCJ \
  16832. predep_objects_GCJ \
  16833. postdep_objects_GCJ \
  16834. predeps_GCJ \
  16835. postdeps_GCJ \
  16836. compiler_lib_search_path_GCJ \
  16837. archive_cmds_GCJ \
  16838. archive_expsym_cmds_GCJ \
  16839. postinstall_cmds_GCJ \
  16840. postuninstall_cmds_GCJ \
  16841. old_archive_from_expsyms_cmds_GCJ \
  16842. allow_undefined_flag_GCJ \
  16843. no_undefined_flag_GCJ \
  16844. export_symbols_cmds_GCJ \
  16845. hardcode_libdir_flag_spec_GCJ \
  16846. hardcode_libdir_flag_spec_ld_GCJ \
  16847. hardcode_libdir_separator_GCJ \
  16848. hardcode_automatic_GCJ \
  16849. module_cmds_GCJ \
  16850. module_expsym_cmds_GCJ \
  16851. lt_cv_prog_compiler_c_o_GCJ \
  16852. fix_srcfile_path_GCJ \
  16853. exclude_expsyms_GCJ \
  16854. include_expsyms_GCJ; do
  16855. case $var in
  16856. old_archive_cmds_GCJ | \
  16857. old_archive_from_new_cmds_GCJ | \
  16858. archive_cmds_GCJ | \
  16859. archive_expsym_cmds_GCJ | \
  16860. module_cmds_GCJ | \
  16861. module_expsym_cmds_GCJ | \
  16862. old_archive_from_expsyms_cmds_GCJ | \
  16863. export_symbols_cmds_GCJ | \
  16864. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  16865. postinstall_cmds | postuninstall_cmds | \
  16866. old_postinstall_cmds | old_postuninstall_cmds | \
  16867. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16868. # Double-quote double-evaled strings.
  16869. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16870. ;;
  16871. *)
  16872. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16873. ;;
  16874. esac
  16875. done
  16876. case $lt_echo in
  16877. *'\$0 --fallback-echo"')
  16878. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  16879. ;;
  16880. esac
  16881. cfgfile="$ofile"
  16882. cat <<__EOF__ >> "$cfgfile"
  16883. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  16884. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16885. # Shell to use when invoking shell scripts.
  16886. SHELL=$lt_SHELL
  16887. # Whether or not to build shared libraries.
  16888. build_libtool_libs=$enable_shared
  16889. # Whether or not to build static libraries.
  16890. build_old_libs=$enable_static
  16891. # Whether or not to add -lc for building shared libraries.
  16892. build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  16893. # Whether or not to disallow shared libs when runtime libs are static
  16894. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  16895. # Whether or not to optimize for fast installation.
  16896. fast_install=$enable_fast_install
  16897. # The host system.
  16898. host_alias=$host_alias
  16899. host=$host
  16900. host_os=$host_os
  16901. # The build system.
  16902. build_alias=$build_alias
  16903. build=$build
  16904. build_os=$build_os
  16905. # An echo program that does not interpret backslashes.
  16906. echo=$lt_echo
  16907. # The archiver.
  16908. AR=$lt_AR
  16909. AR_FLAGS=$lt_AR_FLAGS
  16910. # A C compiler.
  16911. LTCC=$lt_LTCC
  16912. # LTCC compiler flags.
  16913. LTCFLAGS=$lt_LTCFLAGS
  16914. # A language-specific compiler.
  16915. CC=$lt_compiler_GCJ
  16916. # Is the compiler the GNU C compiler?
  16917. with_gcc=$GCC_GCJ
  16918. # An ERE matcher.
  16919. EGREP=$lt_EGREP
  16920. # The linker used to build libraries.
  16921. LD=$lt_LD_GCJ
  16922. # Whether we need hard or soft links.
  16923. LN_S=$lt_LN_S
  16924. # A BSD-compatible nm program.
  16925. NM=$lt_NM
  16926. # A symbol stripping program
  16927. STRIP=$lt_STRIP
  16928. # Used to examine libraries when file_magic_cmd begins "file"
  16929. MAGIC_CMD=$MAGIC_CMD
  16930. # Used on cygwin: DLL creation program.
  16931. DLLTOOL="$DLLTOOL"
  16932. # Used on cygwin: object dumper.
  16933. OBJDUMP="$OBJDUMP"
  16934. # Used on cygwin: assembler.
  16935. AS="$AS"
  16936. # The name of the directory that contains temporary libtool files.
  16937. objdir=$objdir
  16938. # How to create reloadable object files.
  16939. reload_flag=$lt_reload_flag
  16940. reload_cmds=$lt_reload_cmds
  16941. # How to pass a linker flag through the compiler.
  16942. wl=$lt_lt_prog_compiler_wl_GCJ
  16943. # Object file suffix (normally "o").
  16944. objext="$ac_objext"
  16945. # Old archive suffix (normally "a").
  16946. libext="$libext"
  16947. # Shared library suffix (normally ".so").
  16948. shrext_cmds='$shrext_cmds'
  16949. # Executable file suffix (normally "").
  16950. exeext="$exeext"
  16951. # Additional compiler flags for building library objects.
  16952. pic_flag=$lt_lt_prog_compiler_pic_GCJ
  16953. pic_mode=$pic_mode
  16954. # What is the maximum length of a command?
  16955. max_cmd_len=$lt_cv_sys_max_cmd_len
  16956. # Does compiler simultaneously support -c and -o options?
  16957. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  16958. # Must we lock files when doing compilation?
  16959. need_locks=$lt_need_locks
  16960. # Do we need the lib prefix for modules?
  16961. need_lib_prefix=$need_lib_prefix
  16962. # Do we need a version for libraries?
  16963. need_version=$need_version
  16964. # Whether dlopen is supported.
  16965. dlopen_support=$enable_dlopen
  16966. # Whether dlopen of programs is supported.
  16967. dlopen_self=$enable_dlopen_self
  16968. # Whether dlopen of statically linked programs is supported.
  16969. dlopen_self_static=$enable_dlopen_self_static
  16970. # Compiler flag to prevent dynamic linking.
  16971. link_static_flag=$lt_lt_prog_compiler_static_GCJ
  16972. # Compiler flag to turn off builtin functions.
  16973. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  16974. # Compiler flag to allow reflexive dlopens.
  16975. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  16976. # Compiler flag to generate shared objects directly from archives.
  16977. whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  16978. # Compiler flag to generate thread-safe objects.
  16979. thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  16980. # Library versioning type.
  16981. version_type=$version_type
  16982. # Format of library name prefix.
  16983. libname_spec=$lt_libname_spec
  16984. # List of archive names. First name is the real one, the rest are links.
  16985. # The last name is the one that the linker finds with -lNAME.
  16986. library_names_spec=$lt_library_names_spec
  16987. # The coded name of the library, if different from the real name.
  16988. soname_spec=$lt_soname_spec
  16989. # Commands used to build and install an old-style archive.
  16990. RANLIB=$lt_RANLIB
  16991. old_archive_cmds=$lt_old_archive_cmds_GCJ
  16992. old_postinstall_cmds=$lt_old_postinstall_cmds
  16993. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16994. # Create an old-style archive from a shared archive.
  16995. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  16996. # Create a temporary old-style archive to link instead of a shared archive.
  16997. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  16998. # Commands used to build and install a shared archive.
  16999. archive_cmds=$lt_archive_cmds_GCJ
  17000. archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  17001. postinstall_cmds=$lt_postinstall_cmds
  17002. postuninstall_cmds=$lt_postuninstall_cmds
  17003. # Commands used to build a loadable module (assumed same as above if empty)
  17004. module_cmds=$lt_module_cmds_GCJ
  17005. module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  17006. # Commands to strip libraries.
  17007. old_striplib=$lt_old_striplib
  17008. striplib=$lt_striplib
  17009. # Dependencies to place before the objects being linked to create a
  17010. # shared library.
  17011. predep_objects=$lt_predep_objects_GCJ
  17012. # Dependencies to place after the objects being linked to create a
  17013. # shared library.
  17014. postdep_objects=$lt_postdep_objects_GCJ
  17015. # Dependencies to place before the objects being linked to create a
  17016. # shared library.
  17017. predeps=$lt_predeps_GCJ
  17018. # Dependencies to place after the objects being linked to create a
  17019. # shared library.
  17020. postdeps=$lt_postdeps_GCJ
  17021. # The library search path used internally by the compiler when linking
  17022. # a shared library.
  17023. compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  17024. # Method to check whether dependent libraries are shared objects.
  17025. deplibs_check_method=$lt_deplibs_check_method
  17026. # Command to use when deplibs_check_method == file_magic.
  17027. file_magic_cmd=$lt_file_magic_cmd
  17028. # Flag that allows shared libraries with undefined symbols to be built.
  17029. allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  17030. # Flag that forces no undefined symbols.
  17031. no_undefined_flag=$lt_no_undefined_flag_GCJ
  17032. # Commands used to finish a libtool library installation in a directory.
  17033. finish_cmds=$lt_finish_cmds
  17034. # Same as above, but a single script fragment to be evaled but not shown.
  17035. finish_eval=$lt_finish_eval
  17036. # Take the output of nm and produce a listing of raw symbols and C names.
  17037. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17038. # Transform the output of nm in a proper C declaration
  17039. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17040. # Transform the output of nm in a C name address pair
  17041. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17042. # This is the shared library runtime path variable.
  17043. runpath_var=$runpath_var
  17044. # This is the shared library path variable.
  17045. shlibpath_var=$shlibpath_var
  17046. # Is shlibpath searched before the hard-coded library search path?
  17047. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17048. # How to hardcode a shared library path into an executable.
  17049. hardcode_action=$hardcode_action_GCJ
  17050. # Whether we should hardcode library paths into libraries.
  17051. hardcode_into_libs=$hardcode_into_libs
  17052. # Flag to hardcode \$libdir into a binary during linking.
  17053. # This must work even if \$libdir does not exist.
  17054. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  17055. # If ld is used when linking, flag to hardcode \$libdir into
  17056. # a binary during linking. This must work even if \$libdir does
  17057. # not exist.
  17058. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  17059. # Whether we need a single -rpath flag with a separated argument.
  17060. hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  17061. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17062. # resulting binary.
  17063. hardcode_direct=$hardcode_direct_GCJ
  17064. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17065. # resulting binary.
  17066. hardcode_minus_L=$hardcode_minus_L_GCJ
  17067. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17068. # the resulting binary.
  17069. hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  17070. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17071. # and all subsequent libraries and executables linked against it.
  17072. hardcode_automatic=$hardcode_automatic_GCJ
  17073. # Variables whose values should be saved in libtool wrapper scripts and
  17074. # restored at relink time.
  17075. variables_saved_for_relink="$variables_saved_for_relink"
  17076. # Whether libtool must link a program against all its dependency libraries.
  17077. link_all_deplibs=$link_all_deplibs_GCJ
  17078. # Compile-time system search path for libraries
  17079. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17080. # Run-time system search path for libraries
  17081. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17082. # Fix the shell variable \$srcfile for the compiler.
  17083. fix_srcfile_path=$lt_fix_srcfile_path
  17084. # Set to yes if exported symbols are required.
  17085. always_export_symbols=$always_export_symbols_GCJ
  17086. # The commands to list exported symbols.
  17087. export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  17088. # The commands to extract the exported symbol list from a shared archive.
  17089. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17090. # Symbols that should not be listed in the preloaded symbols.
  17091. exclude_expsyms=$lt_exclude_expsyms_GCJ
  17092. # Symbols that must always be exported.
  17093. include_expsyms=$lt_include_expsyms_GCJ
  17094. # ### END LIBTOOL TAG CONFIG: $tagname
  17095. __EOF__
  17096. else
  17097. # If there is no Makefile yet, we rely on a make rule to execute
  17098. # `config.status --recheck' to rerun these tests and create the
  17099. # libtool script then.
  17100. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17101. if test -f "$ltmain_in"; then
  17102. test -f Makefile && make "$ltmain"
  17103. fi
  17104. fi
  17105. ac_ext=c
  17106. ac_cpp='$CPP $CPPFLAGS'
  17107. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17108. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17109. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17110. CC="$lt_save_CC"
  17111. else
  17112. tagname=""
  17113. fi
  17114. ;;
  17115. RC)
  17116. # Source file extension for RC test sources.
  17117. ac_ext=rc
  17118. # Object file extension for compiled RC test sources.
  17119. objext=o
  17120. objext_RC=$objext
  17121. # Code to be used in simple compile tests
  17122. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  17123. # Code to be used in simple link tests
  17124. lt_simple_link_test_code="$lt_simple_compile_test_code"
  17125. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  17126. # If no C compiler was specified, use CC.
  17127. LTCC=${LTCC-"$CC"}
  17128. # If no C compiler flags were specified, use CFLAGS.
  17129. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  17130. # Allow CC to be a program name with arguments.
  17131. compiler=$CC
  17132. # save warnings/boilerplate of simple test code
  17133. ac_outfile=conftest.$ac_objext
  17134. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  17135. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17136. _lt_compiler_boilerplate=`cat conftest.err`
  17137. $rm conftest*
  17138. ac_outfile=conftest.$ac_objext
  17139. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  17140. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  17141. _lt_linker_boilerplate=`cat conftest.err`
  17142. $rm conftest*
  17143. # Allow CC to be a program name with arguments.
  17144. lt_save_CC="$CC"
  17145. CC=${RC-"windres"}
  17146. compiler=$CC
  17147. compiler_RC=$CC
  17148. for cc_temp in $compiler""; do
  17149. case $cc_temp in
  17150. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  17151. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  17152. \-*) ;;
  17153. *) break;;
  17154. esac
  17155. done
  17156. cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  17157. lt_cv_prog_compiler_c_o_RC=yes
  17158. # The else clause should only fire when bootstrapping the
  17159. # libtool distribution, otherwise you forgot to ship ltmain.sh
  17160. # with your package, and you will get complaints that there are
  17161. # no rules to generate ltmain.sh.
  17162. if test -f "$ltmain"; then
  17163. # See if we are running on zsh, and set the options which allow our commands through
  17164. # without removal of \ escapes.
  17165. if test -n "${ZSH_VERSION+set}" ; then
  17166. setopt NO_GLOB_SUBST
  17167. fi
  17168. # Now quote all the things that may contain metacharacters while being
  17169. # careful not to overquote the AC_SUBSTed values. We take copies of the
  17170. # variables and quote the copies for generation of the libtool script.
  17171. for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  17172. SED SHELL STRIP \
  17173. libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  17174. old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  17175. deplibs_check_method reload_flag reload_cmds need_locks \
  17176. lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  17177. lt_cv_sys_global_symbol_to_c_name_address \
  17178. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  17179. old_postinstall_cmds old_postuninstall_cmds \
  17180. compiler_RC \
  17181. CC_RC \
  17182. LD_RC \
  17183. lt_prog_compiler_wl_RC \
  17184. lt_prog_compiler_pic_RC \
  17185. lt_prog_compiler_static_RC \
  17186. lt_prog_compiler_no_builtin_flag_RC \
  17187. export_dynamic_flag_spec_RC \
  17188. thread_safe_flag_spec_RC \
  17189. whole_archive_flag_spec_RC \
  17190. enable_shared_with_static_runtimes_RC \
  17191. old_archive_cmds_RC \
  17192. old_archive_from_new_cmds_RC \
  17193. predep_objects_RC \
  17194. postdep_objects_RC \
  17195. predeps_RC \
  17196. postdeps_RC \
  17197. compiler_lib_search_path_RC \
  17198. archive_cmds_RC \
  17199. archive_expsym_cmds_RC \
  17200. postinstall_cmds_RC \
  17201. postuninstall_cmds_RC \
  17202. old_archive_from_expsyms_cmds_RC \
  17203. allow_undefined_flag_RC \
  17204. no_undefined_flag_RC \
  17205. export_symbols_cmds_RC \
  17206. hardcode_libdir_flag_spec_RC \
  17207. hardcode_libdir_flag_spec_ld_RC \
  17208. hardcode_libdir_separator_RC \
  17209. hardcode_automatic_RC \
  17210. module_cmds_RC \
  17211. module_expsym_cmds_RC \
  17212. lt_cv_prog_compiler_c_o_RC \
  17213. fix_srcfile_path_RC \
  17214. exclude_expsyms_RC \
  17215. include_expsyms_RC; do
  17216. case $var in
  17217. old_archive_cmds_RC | \
  17218. old_archive_from_new_cmds_RC | \
  17219. archive_cmds_RC | \
  17220. archive_expsym_cmds_RC | \
  17221. module_cmds_RC | \
  17222. module_expsym_cmds_RC | \
  17223. old_archive_from_expsyms_cmds_RC | \
  17224. export_symbols_cmds_RC | \
  17225. extract_expsyms_cmds | reload_cmds | finish_cmds | \
  17226. postinstall_cmds | postuninstall_cmds | \
  17227. old_postinstall_cmds | old_postuninstall_cmds | \
  17228. sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  17229. # Double-quote double-evaled strings.
  17230. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  17231. ;;
  17232. *)
  17233. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  17234. ;;
  17235. esac
  17236. done
  17237. case $lt_echo in
  17238. *'\$0 --fallback-echo"')
  17239. lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  17240. ;;
  17241. esac
  17242. cfgfile="$ofile"
  17243. cat <<__EOF__ >> "$cfgfile"
  17244. # ### BEGIN LIBTOOL TAG CONFIG: $tagname
  17245. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17246. # Shell to use when invoking shell scripts.
  17247. SHELL=$lt_SHELL
  17248. # Whether or not to build shared libraries.
  17249. build_libtool_libs=$enable_shared
  17250. # Whether or not to build static libraries.
  17251. build_old_libs=$enable_static
  17252. # Whether or not to add -lc for building shared libraries.
  17253. build_libtool_need_lc=$archive_cmds_need_lc_RC
  17254. # Whether or not to disallow shared libs when runtime libs are static
  17255. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  17256. # Whether or not to optimize for fast installation.
  17257. fast_install=$enable_fast_install
  17258. # The host system.
  17259. host_alias=$host_alias
  17260. host=$host
  17261. host_os=$host_os
  17262. # The build system.
  17263. build_alias=$build_alias
  17264. build=$build
  17265. build_os=$build_os
  17266. # An echo program that does not interpret backslashes.
  17267. echo=$lt_echo
  17268. # The archiver.
  17269. AR=$lt_AR
  17270. AR_FLAGS=$lt_AR_FLAGS
  17271. # A C compiler.
  17272. LTCC=$lt_LTCC
  17273. # LTCC compiler flags.
  17274. LTCFLAGS=$lt_LTCFLAGS
  17275. # A language-specific compiler.
  17276. CC=$lt_compiler_RC
  17277. # Is the compiler the GNU C compiler?
  17278. with_gcc=$GCC_RC
  17279. # An ERE matcher.
  17280. EGREP=$lt_EGREP
  17281. # The linker used to build libraries.
  17282. LD=$lt_LD_RC
  17283. # Whether we need hard or soft links.
  17284. LN_S=$lt_LN_S
  17285. # A BSD-compatible nm program.
  17286. NM=$lt_NM
  17287. # A symbol stripping program
  17288. STRIP=$lt_STRIP
  17289. # Used to examine libraries when file_magic_cmd begins "file"
  17290. MAGIC_CMD=$MAGIC_CMD
  17291. # Used on cygwin: DLL creation program.
  17292. DLLTOOL="$DLLTOOL"
  17293. # Used on cygwin: object dumper.
  17294. OBJDUMP="$OBJDUMP"
  17295. # Used on cygwin: assembler.
  17296. AS="$AS"
  17297. # The name of the directory that contains temporary libtool files.
  17298. objdir=$objdir
  17299. # How to create reloadable object files.
  17300. reload_flag=$lt_reload_flag
  17301. reload_cmds=$lt_reload_cmds
  17302. # How to pass a linker flag through the compiler.
  17303. wl=$lt_lt_prog_compiler_wl_RC
  17304. # Object file suffix (normally "o").
  17305. objext="$ac_objext"
  17306. # Old archive suffix (normally "a").
  17307. libext="$libext"
  17308. # Shared library suffix (normally ".so").
  17309. shrext_cmds='$shrext_cmds'
  17310. # Executable file suffix (normally "").
  17311. exeext="$exeext"
  17312. # Additional compiler flags for building library objects.
  17313. pic_flag=$lt_lt_prog_compiler_pic_RC
  17314. pic_mode=$pic_mode
  17315. # What is the maximum length of a command?
  17316. max_cmd_len=$lt_cv_sys_max_cmd_len
  17317. # Does compiler simultaneously support -c and -o options?
  17318. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  17319. # Must we lock files when doing compilation?
  17320. need_locks=$lt_need_locks
  17321. # Do we need the lib prefix for modules?
  17322. need_lib_prefix=$need_lib_prefix
  17323. # Do we need a version for libraries?
  17324. need_version=$need_version
  17325. # Whether dlopen is supported.
  17326. dlopen_support=$enable_dlopen
  17327. # Whether dlopen of programs is supported.
  17328. dlopen_self=$enable_dlopen_self
  17329. # Whether dlopen of statically linked programs is supported.
  17330. dlopen_self_static=$enable_dlopen_self_static
  17331. # Compiler flag to prevent dynamic linking.
  17332. link_static_flag=$lt_lt_prog_compiler_static_RC
  17333. # Compiler flag to turn off builtin functions.
  17334. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  17335. # Compiler flag to allow reflexive dlopens.
  17336. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  17337. # Compiler flag to generate shared objects directly from archives.
  17338. whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  17339. # Compiler flag to generate thread-safe objects.
  17340. thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  17341. # Library versioning type.
  17342. version_type=$version_type
  17343. # Format of library name prefix.
  17344. libname_spec=$lt_libname_spec
  17345. # List of archive names. First name is the real one, the rest are links.
  17346. # The last name is the one that the linker finds with -lNAME.
  17347. library_names_spec=$lt_library_names_spec
  17348. # The coded name of the library, if different from the real name.
  17349. soname_spec=$lt_soname_spec
  17350. # Commands used to build and install an old-style archive.
  17351. RANLIB=$lt_RANLIB
  17352. old_archive_cmds=$lt_old_archive_cmds_RC
  17353. old_postinstall_cmds=$lt_old_postinstall_cmds
  17354. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17355. # Create an old-style archive from a shared archive.
  17356. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  17357. # Create a temporary old-style archive to link instead of a shared archive.
  17358. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  17359. # Commands used to build and install a shared archive.
  17360. archive_cmds=$lt_archive_cmds_RC
  17361. archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  17362. postinstall_cmds=$lt_postinstall_cmds
  17363. postuninstall_cmds=$lt_postuninstall_cmds
  17364. # Commands used to build a loadable module (assumed same as above if empty)
  17365. module_cmds=$lt_module_cmds_RC
  17366. module_expsym_cmds=$lt_module_expsym_cmds_RC
  17367. # Commands to strip libraries.
  17368. old_striplib=$lt_old_striplib
  17369. striplib=$lt_striplib
  17370. # Dependencies to place before the objects being linked to create a
  17371. # shared library.
  17372. predep_objects=$lt_predep_objects_RC
  17373. # Dependencies to place after the objects being linked to create a
  17374. # shared library.
  17375. postdep_objects=$lt_postdep_objects_RC
  17376. # Dependencies to place before the objects being linked to create a
  17377. # shared library.
  17378. predeps=$lt_predeps_RC
  17379. # Dependencies to place after the objects being linked to create a
  17380. # shared library.
  17381. postdeps=$lt_postdeps_RC
  17382. # The library search path used internally by the compiler when linking
  17383. # a shared library.
  17384. compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  17385. # Method to check whether dependent libraries are shared objects.
  17386. deplibs_check_method=$lt_deplibs_check_method
  17387. # Command to use when deplibs_check_method == file_magic.
  17388. file_magic_cmd=$lt_file_magic_cmd
  17389. # Flag that allows shared libraries with undefined symbols to be built.
  17390. allow_undefined_flag=$lt_allow_undefined_flag_RC
  17391. # Flag that forces no undefined symbols.
  17392. no_undefined_flag=$lt_no_undefined_flag_RC
  17393. # Commands used to finish a libtool library installation in a directory.
  17394. finish_cmds=$lt_finish_cmds
  17395. # Same as above, but a single script fragment to be evaled but not shown.
  17396. finish_eval=$lt_finish_eval
  17397. # Take the output of nm and produce a listing of raw symbols and C names.
  17398. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  17399. # Transform the output of nm in a proper C declaration
  17400. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  17401. # Transform the output of nm in a C name address pair
  17402. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  17403. # This is the shared library runtime path variable.
  17404. runpath_var=$runpath_var
  17405. # This is the shared library path variable.
  17406. shlibpath_var=$shlibpath_var
  17407. # Is shlibpath searched before the hard-coded library search path?
  17408. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17409. # How to hardcode a shared library path into an executable.
  17410. hardcode_action=$hardcode_action_RC
  17411. # Whether we should hardcode library paths into libraries.
  17412. hardcode_into_libs=$hardcode_into_libs
  17413. # Flag to hardcode \$libdir into a binary during linking.
  17414. # This must work even if \$libdir does not exist.
  17415. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  17416. # If ld is used when linking, flag to hardcode \$libdir into
  17417. # a binary during linking. This must work even if \$libdir does
  17418. # not exist.
  17419. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  17420. # Whether we need a single -rpath flag with a separated argument.
  17421. hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  17422. # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  17423. # resulting binary.
  17424. hardcode_direct=$hardcode_direct_RC
  17425. # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17426. # resulting binary.
  17427. hardcode_minus_L=$hardcode_minus_L_RC
  17428. # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17429. # the resulting binary.
  17430. hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  17431. # Set to yes if building a shared library automatically hardcodes DIR into the library
  17432. # and all subsequent libraries and executables linked against it.
  17433. hardcode_automatic=$hardcode_automatic_RC
  17434. # Variables whose values should be saved in libtool wrapper scripts and
  17435. # restored at relink time.
  17436. variables_saved_for_relink="$variables_saved_for_relink"
  17437. # Whether libtool must link a program against all its dependency libraries.
  17438. link_all_deplibs=$link_all_deplibs_RC
  17439. # Compile-time system search path for libraries
  17440. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17441. # Run-time system search path for libraries
  17442. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17443. # Fix the shell variable \$srcfile for the compiler.
  17444. fix_srcfile_path=$lt_fix_srcfile_path
  17445. # Set to yes if exported symbols are required.
  17446. always_export_symbols=$always_export_symbols_RC
  17447. # The commands to list exported symbols.
  17448. export_symbols_cmds=$lt_export_symbols_cmds_RC
  17449. # The commands to extract the exported symbol list from a shared archive.
  17450. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17451. # Symbols that should not be listed in the preloaded symbols.
  17452. exclude_expsyms=$lt_exclude_expsyms_RC
  17453. # Symbols that must always be exported.
  17454. include_expsyms=$lt_include_expsyms_RC
  17455. # ### END LIBTOOL TAG CONFIG: $tagname
  17456. __EOF__
  17457. else
  17458. # If there is no Makefile yet, we rely on a make rule to execute
  17459. # `config.status --recheck' to rerun these tests and create the
  17460. # libtool script then.
  17461. ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  17462. if test -f "$ltmain_in"; then
  17463. test -f Makefile && make "$ltmain"
  17464. fi
  17465. fi
  17466. ac_ext=c
  17467. ac_cpp='$CPP $CPPFLAGS'
  17468. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  17469. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  17470. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  17471. CC="$lt_save_CC"
  17472. ;;
  17473. *)
  17474. { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  17475. echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  17476. { (exit 1); exit 1; }; }
  17477. ;;
  17478. esac
  17479. # Append the new tag name to the list of available tags.
  17480. if test -n "$tagname" ; then
  17481. available_tags="$available_tags $tagname"
  17482. fi
  17483. fi
  17484. done
  17485. IFS="$lt_save_ifs"
  17486. # Now substitute the updated list of available tags.
  17487. if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  17488. mv "${ofile}T" "$ofile"
  17489. chmod +x "$ofile"
  17490. else
  17491. rm -f "${ofile}T"
  17492. { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  17493. echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  17494. { (exit 1); exit 1; }; }
  17495. fi
  17496. fi
  17497. # This can be used to rebuild libtool when needed
  17498. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  17499. # Always use our own libtool.
  17500. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  17501. # Prevent multiple expansion
  17502. { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  17503. echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
  17504. # Check whether --enable-maintainer-mode was given.
  17505. if test "${enable_maintainer_mode+set}" = set; then
  17506. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  17507. else
  17508. USE_MAINTAINER_MODE=no
  17509. fi
  17510. { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  17511. echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
  17512. if test $USE_MAINTAINER_MODE = yes; then
  17513. MAINTAINER_MODE_TRUE=
  17514. MAINTAINER_MODE_FALSE='#'
  17515. else
  17516. MAINTAINER_MODE_TRUE='#'
  17517. MAINTAINER_MODE_FALSE=
  17518. fi
  17519. MAINT=$MAINTAINER_MODE_TRUE
  17520. for ac_header in sys/mman.h
  17521. do
  17522. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17523. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17524. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17525. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17526. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17527. echo $ECHO_N "(cached) $ECHO_C" >&6
  17528. fi
  17529. ac_res=`eval echo '${'$as_ac_Header'}'`
  17530. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17531. echo "${ECHO_T}$ac_res" >&6; }
  17532. else
  17533. # Is the header compilable?
  17534. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17535. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17536. cat >conftest.$ac_ext <<_ACEOF
  17537. /* confdefs.h. */
  17538. _ACEOF
  17539. cat confdefs.h >>conftest.$ac_ext
  17540. cat >>conftest.$ac_ext <<_ACEOF
  17541. /* end confdefs.h. */
  17542. $ac_includes_default
  17543. #include <$ac_header>
  17544. _ACEOF
  17545. rm -f conftest.$ac_objext
  17546. if { (ac_try="$ac_compile"
  17547. case "(($ac_try" in
  17548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17549. *) ac_try_echo=$ac_try;;
  17550. esac
  17551. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17552. (eval "$ac_compile") 2>conftest.er1
  17553. ac_status=$?
  17554. grep -v '^ *+' conftest.er1 >conftest.err
  17555. rm -f conftest.er1
  17556. cat conftest.err >&5
  17557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17558. (exit $ac_status); } && {
  17559. test -z "$ac_c_werror_flag" ||
  17560. test ! -s conftest.err
  17561. } && test -s conftest.$ac_objext; then
  17562. ac_header_compiler=yes
  17563. else
  17564. echo "$as_me: failed program was:" >&5
  17565. sed 's/^/| /' conftest.$ac_ext >&5
  17566. ac_header_compiler=no
  17567. fi
  17568. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17569. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17570. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17571. # Is the header present?
  17572. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17573. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17574. cat >conftest.$ac_ext <<_ACEOF
  17575. /* confdefs.h. */
  17576. _ACEOF
  17577. cat confdefs.h >>conftest.$ac_ext
  17578. cat >>conftest.$ac_ext <<_ACEOF
  17579. /* end confdefs.h. */
  17580. #include <$ac_header>
  17581. _ACEOF
  17582. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17583. case "(($ac_try" in
  17584. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17585. *) ac_try_echo=$ac_try;;
  17586. esac
  17587. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17588. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17589. ac_status=$?
  17590. grep -v '^ *+' conftest.er1 >conftest.err
  17591. rm -f conftest.er1
  17592. cat conftest.err >&5
  17593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17594. (exit $ac_status); } >/dev/null && {
  17595. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17596. test ! -s conftest.err
  17597. }; then
  17598. ac_header_preproc=yes
  17599. else
  17600. echo "$as_me: failed program was:" >&5
  17601. sed 's/^/| /' conftest.$ac_ext >&5
  17602. ac_header_preproc=no
  17603. fi
  17604. rm -f conftest.err conftest.$ac_ext
  17605. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17606. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17607. # So? What about this header?
  17608. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17609. yes:no: )
  17610. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17611. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17612. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17613. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17614. ac_header_preproc=yes
  17615. ;;
  17616. no:yes:* )
  17617. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17618. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17619. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17620. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17621. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17622. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17623. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17624. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17625. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17626. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17627. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17628. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17629. ( cat <<\_ASBOX
  17630. ## ------------------------------------------- ##
  17631. ## Report this to http://gcc.gnu.org/bugs.html ##
  17632. ## ------------------------------------------- ##
  17633. _ASBOX
  17634. ) | sed "s/^/$as_me: WARNING: /" >&2
  17635. ;;
  17636. esac
  17637. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17638. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17639. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17640. echo $ECHO_N "(cached) $ECHO_C" >&6
  17641. else
  17642. eval "$as_ac_Header=\$ac_header_preproc"
  17643. fi
  17644. ac_res=`eval echo '${'$as_ac_Header'}'`
  17645. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17646. echo "${ECHO_T}$ac_res" >&6; }
  17647. fi
  17648. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17649. cat >>confdefs.h <<_ACEOF
  17650. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17651. _ACEOF
  17652. fi
  17653. done
  17654. for ac_func in mmap
  17655. do
  17656. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17657. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17658. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17659. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17660. echo $ECHO_N "(cached) $ECHO_C" >&6
  17661. else
  17662. cat >conftest.$ac_ext <<_ACEOF
  17663. /* confdefs.h. */
  17664. _ACEOF
  17665. cat confdefs.h >>conftest.$ac_ext
  17666. cat >>conftest.$ac_ext <<_ACEOF
  17667. /* end confdefs.h. */
  17668. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17669. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17670. #define $ac_func innocuous_$ac_func
  17671. /* System header to define __stub macros and hopefully few prototypes,
  17672. which can conflict with char $ac_func (); below.
  17673. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17674. <limits.h> exists even on freestanding compilers. */
  17675. #ifdef __STDC__
  17676. # include <limits.h>
  17677. #else
  17678. # include <assert.h>
  17679. #endif
  17680. #undef $ac_func
  17681. /* Override any GCC internal prototype to avoid an error.
  17682. Use char because int might match the return type of a GCC
  17683. builtin and then its argument prototype would still apply. */
  17684. #ifdef __cplusplus
  17685. extern "C"
  17686. #endif
  17687. char $ac_func ();
  17688. /* The GNU C library defines this for functions which it implements
  17689. to always fail with ENOSYS. Some functions are actually named
  17690. something starting with __ and the normal name is an alias. */
  17691. #if defined __stub_$ac_func || defined __stub___$ac_func
  17692. choke me
  17693. #endif
  17694. int
  17695. main ()
  17696. {
  17697. return $ac_func ();
  17698. ;
  17699. return 0;
  17700. }
  17701. _ACEOF
  17702. rm -f conftest.$ac_objext conftest$ac_exeext
  17703. if { (ac_try="$ac_link"
  17704. case "(($ac_try" in
  17705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17706. *) ac_try_echo=$ac_try;;
  17707. esac
  17708. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17709. (eval "$ac_link") 2>conftest.er1
  17710. ac_status=$?
  17711. grep -v '^ *+' conftest.er1 >conftest.err
  17712. rm -f conftest.er1
  17713. cat conftest.err >&5
  17714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17715. (exit $ac_status); } && {
  17716. test -z "$ac_c_werror_flag" ||
  17717. test ! -s conftest.err
  17718. } && test -s conftest$ac_exeext &&
  17719. $as_test_x conftest$ac_exeext; then
  17720. eval "$as_ac_var=yes"
  17721. else
  17722. echo "$as_me: failed program was:" >&5
  17723. sed 's/^/| /' conftest.$ac_ext >&5
  17724. eval "$as_ac_var=no"
  17725. fi
  17726. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17727. conftest$ac_exeext conftest.$ac_ext
  17728. fi
  17729. ac_res=`eval echo '${'$as_ac_var'}'`
  17730. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17731. echo "${ECHO_T}$ac_res" >&6; }
  17732. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17733. cat >>confdefs.h <<_ACEOF
  17734. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17735. _ACEOF
  17736. fi
  17737. done
  17738. if test "${ac_cv_header_sys_mman_h+set}" = set; then
  17739. { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
  17740. echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
  17741. if test "${ac_cv_header_sys_mman_h+set}" = set; then
  17742. echo $ECHO_N "(cached) $ECHO_C" >&6
  17743. fi
  17744. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
  17745. echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
  17746. else
  17747. # Is the header compilable?
  17748. { echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
  17749. echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6; }
  17750. cat >conftest.$ac_ext <<_ACEOF
  17751. /* confdefs.h. */
  17752. _ACEOF
  17753. cat confdefs.h >>conftest.$ac_ext
  17754. cat >>conftest.$ac_ext <<_ACEOF
  17755. /* end confdefs.h. */
  17756. $ac_includes_default
  17757. #include <sys/mman.h>
  17758. _ACEOF
  17759. rm -f conftest.$ac_objext
  17760. if { (ac_try="$ac_compile"
  17761. case "(($ac_try" in
  17762. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17763. *) ac_try_echo=$ac_try;;
  17764. esac
  17765. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17766. (eval "$ac_compile") 2>conftest.er1
  17767. ac_status=$?
  17768. grep -v '^ *+' conftest.er1 >conftest.err
  17769. rm -f conftest.er1
  17770. cat conftest.err >&5
  17771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17772. (exit $ac_status); } && {
  17773. test -z "$ac_c_werror_flag" ||
  17774. test ! -s conftest.err
  17775. } && test -s conftest.$ac_objext; then
  17776. ac_header_compiler=yes
  17777. else
  17778. echo "$as_me: failed program was:" >&5
  17779. sed 's/^/| /' conftest.$ac_ext >&5
  17780. ac_header_compiler=no
  17781. fi
  17782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17783. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17784. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17785. # Is the header present?
  17786. { echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
  17787. echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6; }
  17788. cat >conftest.$ac_ext <<_ACEOF
  17789. /* confdefs.h. */
  17790. _ACEOF
  17791. cat confdefs.h >>conftest.$ac_ext
  17792. cat >>conftest.$ac_ext <<_ACEOF
  17793. /* end confdefs.h. */
  17794. #include <sys/mman.h>
  17795. _ACEOF
  17796. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17797. case "(($ac_try" in
  17798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17799. *) ac_try_echo=$ac_try;;
  17800. esac
  17801. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17802. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17803. ac_status=$?
  17804. grep -v '^ *+' conftest.er1 >conftest.err
  17805. rm -f conftest.er1
  17806. cat conftest.err >&5
  17807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17808. (exit $ac_status); } >/dev/null && {
  17809. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17810. test ! -s conftest.err
  17811. }; then
  17812. ac_header_preproc=yes
  17813. else
  17814. echo "$as_me: failed program was:" >&5
  17815. sed 's/^/| /' conftest.$ac_ext >&5
  17816. ac_header_preproc=no
  17817. fi
  17818. rm -f conftest.err conftest.$ac_ext
  17819. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17820. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17821. # So? What about this header?
  17822. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17823. yes:no: )
  17824. { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
  17825. echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17826. { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
  17827. echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
  17828. ac_header_preproc=yes
  17829. ;;
  17830. no:yes:* )
  17831. { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
  17832. echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
  17833. { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
  17834. echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
  17835. { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
  17836. echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
  17837. { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
  17838. echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
  17839. { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
  17840. echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
  17841. { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
  17842. echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
  17843. ( cat <<\_ASBOX
  17844. ## ------------------------------------------- ##
  17845. ## Report this to http://gcc.gnu.org/bugs.html ##
  17846. ## ------------------------------------------- ##
  17847. _ASBOX
  17848. ) | sed "s/^/$as_me: WARNING: /" >&2
  17849. ;;
  17850. esac
  17851. { echo "$as_me:$LINENO: checking for sys/mman.h" >&5
  17852. echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6; }
  17853. if test "${ac_cv_header_sys_mman_h+set}" = set; then
  17854. echo $ECHO_N "(cached) $ECHO_C" >&6
  17855. else
  17856. ac_cv_header_sys_mman_h=$ac_header_preproc
  17857. fi
  17858. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
  17859. echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6; }
  17860. fi
  17861. if test $ac_cv_header_sys_mman_h = yes; then
  17862. libffi_header_sys_mman_h=yes
  17863. else
  17864. libffi_header_sys_mman_h=no
  17865. fi
  17866. { echo "$as_me:$LINENO: checking for mmap" >&5
  17867. echo $ECHO_N "checking for mmap... $ECHO_C" >&6; }
  17868. if test "${ac_cv_func_mmap+set}" = set; then
  17869. echo $ECHO_N "(cached) $ECHO_C" >&6
  17870. else
  17871. cat >conftest.$ac_ext <<_ACEOF
  17872. /* confdefs.h. */
  17873. _ACEOF
  17874. cat confdefs.h >>conftest.$ac_ext
  17875. cat >>conftest.$ac_ext <<_ACEOF
  17876. /* end confdefs.h. */
  17877. /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
  17878. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17879. #define mmap innocuous_mmap
  17880. /* System header to define __stub macros and hopefully few prototypes,
  17881. which can conflict with char mmap (); below.
  17882. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17883. <limits.h> exists even on freestanding compilers. */
  17884. #ifdef __STDC__
  17885. # include <limits.h>
  17886. #else
  17887. # include <assert.h>
  17888. #endif
  17889. #undef mmap
  17890. /* Override any GCC internal prototype to avoid an error.
  17891. Use char because int might match the return type of a GCC
  17892. builtin and then its argument prototype would still apply. */
  17893. #ifdef __cplusplus
  17894. extern "C"
  17895. #endif
  17896. char mmap ();
  17897. /* The GNU C library defines this for functions which it implements
  17898. to always fail with ENOSYS. Some functions are actually named
  17899. something starting with __ and the normal name is an alias. */
  17900. #if defined __stub_mmap || defined __stub___mmap
  17901. choke me
  17902. #endif
  17903. int
  17904. main ()
  17905. {
  17906. return mmap ();
  17907. ;
  17908. return 0;
  17909. }
  17910. _ACEOF
  17911. rm -f conftest.$ac_objext conftest$ac_exeext
  17912. if { (ac_try="$ac_link"
  17913. case "(($ac_try" in
  17914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17915. *) ac_try_echo=$ac_try;;
  17916. esac
  17917. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17918. (eval "$ac_link") 2>conftest.er1
  17919. ac_status=$?
  17920. grep -v '^ *+' conftest.er1 >conftest.err
  17921. rm -f conftest.er1
  17922. cat conftest.err >&5
  17923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17924. (exit $ac_status); } && {
  17925. test -z "$ac_c_werror_flag" ||
  17926. test ! -s conftest.err
  17927. } && test -s conftest$ac_exeext &&
  17928. $as_test_x conftest$ac_exeext; then
  17929. ac_cv_func_mmap=yes
  17930. else
  17931. echo "$as_me: failed program was:" >&5
  17932. sed 's/^/| /' conftest.$ac_ext >&5
  17933. ac_cv_func_mmap=no
  17934. fi
  17935. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17936. conftest$ac_exeext conftest.$ac_ext
  17937. fi
  17938. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
  17939. echo "${ECHO_T}$ac_cv_func_mmap" >&6; }
  17940. if test $ac_cv_func_mmap = yes; then
  17941. libffi_func_mmap=yes
  17942. else
  17943. libffi_func_mmap=no
  17944. fi
  17945. if test "$libffi_header_sys_mman_h" != yes \
  17946. || test "$libffi_func_mmap" != yes; then
  17947. ac_cv_func_mmap_file=no
  17948. ac_cv_func_mmap_dev_zero=no
  17949. ac_cv_func_mmap_anon=no
  17950. else
  17951. { echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
  17952. echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6; }
  17953. if test "${ac_cv_func_mmap_file+set}" = set; then
  17954. echo $ECHO_N "(cached) $ECHO_C" >&6
  17955. else
  17956. # Add a system to this blacklist if
  17957. # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
  17958. # memory area containing the same data that you'd get if you applied
  17959. # read() to the same fd. The only system known to have a problem here
  17960. # is VMS, where text files have record structure.
  17961. case "$host_os" in
  17962. vms* | ultrix*)
  17963. ac_cv_func_mmap_file=no ;;
  17964. *)
  17965. ac_cv_func_mmap_file=yes;;
  17966. esac
  17967. fi
  17968. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
  17969. echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
  17970. { echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
  17971. echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6; }
  17972. if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
  17973. echo $ECHO_N "(cached) $ECHO_C" >&6
  17974. else
  17975. # Add a system to this blacklist if it has mmap() but /dev/zero
  17976. # does not exist, or if mmapping /dev/zero does not give anonymous
  17977. # zeroed pages with both the following properties:
  17978. # 1. If you map N consecutive pages in with one call, and then
  17979. # unmap any subset of those pages, the pages that were not
  17980. # explicitly unmapped remain accessible.
  17981. # 2. If you map two adjacent blocks of memory and then unmap them
  17982. # both at once, they must both go away.
  17983. # Systems known to be in this category are Windows (all variants),
  17984. # VMS, and Darwin.
  17985. case "$host_os" in
  17986. vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
  17987. ac_cv_func_mmap_dev_zero=no ;;
  17988. *)
  17989. ac_cv_func_mmap_dev_zero=yes;;
  17990. esac
  17991. fi
  17992. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
  17993. echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6; }
  17994. # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
  17995. { echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
  17996. echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6; }
  17997. if test "${ac_cv_decl_map_anon+set}" = set; then
  17998. echo $ECHO_N "(cached) $ECHO_C" >&6
  17999. else
  18000. cat >conftest.$ac_ext <<_ACEOF
  18001. /* confdefs.h. */
  18002. _ACEOF
  18003. cat confdefs.h >>conftest.$ac_ext
  18004. cat >>conftest.$ac_ext <<_ACEOF
  18005. /* end confdefs.h. */
  18006. #include <sys/types.h>
  18007. #include <sys/mman.h>
  18008. #include <unistd.h>
  18009. #ifndef MAP_ANONYMOUS
  18010. #define MAP_ANONYMOUS MAP_ANON
  18011. #endif
  18012. int
  18013. main ()
  18014. {
  18015. int n = MAP_ANONYMOUS;
  18016. ;
  18017. return 0;
  18018. }
  18019. _ACEOF
  18020. rm -f conftest.$ac_objext
  18021. if { (ac_try="$ac_compile"
  18022. case "(($ac_try" in
  18023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18024. *) ac_try_echo=$ac_try;;
  18025. esac
  18026. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18027. (eval "$ac_compile") 2>conftest.er1
  18028. ac_status=$?
  18029. grep -v '^ *+' conftest.er1 >conftest.err
  18030. rm -f conftest.er1
  18031. cat conftest.err >&5
  18032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18033. (exit $ac_status); } && {
  18034. test -z "$ac_c_werror_flag" ||
  18035. test ! -s conftest.err
  18036. } && test -s conftest.$ac_objext; then
  18037. ac_cv_decl_map_anon=yes
  18038. else
  18039. echo "$as_me: failed program was:" >&5
  18040. sed 's/^/| /' conftest.$ac_ext >&5
  18041. ac_cv_decl_map_anon=no
  18042. fi
  18043. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18044. fi
  18045. { echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
  18046. echo "${ECHO_T}$ac_cv_decl_map_anon" >&6; }
  18047. if test $ac_cv_decl_map_anon = no; then
  18048. ac_cv_func_mmap_anon=no
  18049. else
  18050. { echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
  18051. echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6; }
  18052. if test "${ac_cv_func_mmap_anon+set}" = set; then
  18053. echo $ECHO_N "(cached) $ECHO_C" >&6
  18054. else
  18055. # Add a system to this blacklist if it has mmap() and MAP_ANON or
  18056. # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
  18057. # doesn't give anonymous zeroed pages with the same properties listed
  18058. # above for use of /dev/zero.
  18059. # Systems known to be in this category are Windows, VMS, and SCO Unix.
  18060. case "$host_os" in
  18061. vms* | cygwin* | pe | mingw* | sco* | udk* )
  18062. ac_cv_func_mmap_anon=no ;;
  18063. *)
  18064. ac_cv_func_mmap_anon=yes;;
  18065. esac
  18066. fi
  18067. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
  18068. echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6; }
  18069. fi
  18070. fi
  18071. if test $ac_cv_func_mmap_file = yes; then
  18072. cat >>confdefs.h <<\_ACEOF
  18073. #define HAVE_MMAP_FILE 1
  18074. _ACEOF
  18075. fi
  18076. if test $ac_cv_func_mmap_dev_zero = yes; then
  18077. cat >>confdefs.h <<\_ACEOF
  18078. #define HAVE_MMAP_DEV_ZERO 1
  18079. _ACEOF
  18080. fi
  18081. if test $ac_cv_func_mmap_anon = yes; then
  18082. cat >>confdefs.h <<\_ACEOF
  18083. #define HAVE_MMAP_ANON 1
  18084. _ACEOF
  18085. fi
  18086. if test -d $srcdir/testsuite; then
  18087. TESTSUBDIR_TRUE=
  18088. TESTSUBDIR_FALSE='#'
  18089. else
  18090. TESTSUBDIR_TRUE='#'
  18091. TESTSUBDIR_FALSE=
  18092. fi
  18093. TARGETDIR="unknown"
  18094. case "$host" in
  18095. alpha*-*-*)
  18096. TARGET=ALPHA; TARGETDIR=alpha;
  18097. # Support 128-bit long double, changable via command-line switch.
  18098. HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
  18099. ;;
  18100. arm*-*-*)
  18101. TARGET=ARM; TARGETDIR=arm
  18102. ;;
  18103. amd64-*-freebsd*)
  18104. TARGET=X86_64; TARGETDIR=x86
  18105. ;;
  18106. cris-*-*)
  18107. TARGET=LIBFFI_CRIS; TARGETDIR=cris
  18108. ;;
  18109. frv-*-*)
  18110. TARGET=FRV; TARGETDIR=frv
  18111. ;;
  18112. hppa*-*-linux* | parisc*-*-linux*)
  18113. TARGET=PA_LINUX; TARGETDIR=pa
  18114. ;;
  18115. hppa*64-*-hpux*)
  18116. TARGET=PA64_HPUX; TARGETDIR=pa
  18117. ;;
  18118. hppa*-*-hpux*)
  18119. TARGET=PA_HPUX; TARGETDIR=pa
  18120. ;;
  18121. i386-*-freebsd* | i386-*-openbsd*)
  18122. TARGET=X86_FREEBSD; TARGETDIR=x86
  18123. ;;
  18124. i?86-win32* | i?86-*-cygwin* | i?86-*-mingw*)
  18125. TARGET=X86_WIN32; TARGETDIR=x86
  18126. ;;
  18127. i?86-*-darwin*)
  18128. TARGET=X86_DARWIN; TARGETDIR=x86
  18129. ;;
  18130. i?86-*-solaris2.1[0-9]*)
  18131. TARGET=X86_64; TARGETDIR=x86
  18132. ;;
  18133. i*86-*-nto-qnx*)
  18134. TARGET=X86; TARGETDIR=x86
  18135. ;;
  18136. i?86-*-*)
  18137. TARGET=X86; TARGETDIR=x86
  18138. ;;
  18139. ia64*-*-*)
  18140. TARGET=IA64; TARGETDIR=ia64
  18141. ;;
  18142. m32r*-*-*)
  18143. TARGET=M32R; TARGETDIR=m32r
  18144. ;;
  18145. m68k-*-*)
  18146. TARGET=M68K; TARGETDIR=m68k
  18147. ;;
  18148. mips-sgi-irix5.* | mips-sgi-irix6.*)
  18149. TARGET=MIPS_IRIX; TARGETDIR=mips
  18150. ;;
  18151. mips*-*-linux*)
  18152. TARGET=MIPS_LINUX; TARGETDIR=mips
  18153. ;;
  18154. powerpc*-*-linux* | powerpc-*-sysv*)
  18155. TARGET=POWERPC; TARGETDIR=powerpc
  18156. ;;
  18157. powerpc-*-beos*)
  18158. TARGET=POWERPC; TARGETDIR=powerpc
  18159. ;;
  18160. powerpc-*-darwin*)
  18161. TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
  18162. ;;
  18163. powerpc-*-aix* | rs6000-*-aix*)
  18164. TARGET=POWERPC_AIX; TARGETDIR=powerpc
  18165. ;;
  18166. powerpc-*-freebsd*)
  18167. TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
  18168. ;;
  18169. powerpc*-*-rtems*)
  18170. TARGET=POWERPC; TARGETDIR=powerpc
  18171. ;;
  18172. s390-*-* | s390x-*-*)
  18173. TARGET=S390; TARGETDIR=s390
  18174. ;;
  18175. sh-*-* | sh[34]*-*-*)
  18176. TARGET=SH; TARGETDIR=sh
  18177. ;;
  18178. sh64-*-* | sh5*-*-*)
  18179. TARGET=SH64; TARGETDIR=sh64
  18180. ;;
  18181. sparc*-*-*)
  18182. TARGET=SPARC; TARGETDIR=sparc
  18183. ;;
  18184. x86_64-*-darwin*)
  18185. TARGET=X86_DARWIN; TARGETDIR=x86
  18186. ;;
  18187. x86_64-*-cygwin* | x86_64-*-mingw*)
  18188. ;;
  18189. x86_64-*-*)
  18190. TARGET=X86_64; TARGETDIR=x86
  18191. ;;
  18192. esac
  18193. if test $TARGETDIR = unknown; then
  18194. { { echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
  18195. echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
  18196. { (exit 1); exit 1; }; }
  18197. fi
  18198. if expr x$TARGET : 'xMIPS' > /dev/null; then
  18199. MIPS_TRUE=
  18200. MIPS_FALSE='#'
  18201. else
  18202. MIPS_TRUE='#'
  18203. MIPS_FALSE=
  18204. fi
  18205. if test x$TARGET = xSPARC; then
  18206. SPARC_TRUE=
  18207. SPARC_FALSE='#'
  18208. else
  18209. SPARC_TRUE='#'
  18210. SPARC_FALSE=
  18211. fi
  18212. if test x$TARGET = xX86; then
  18213. X86_TRUE=
  18214. X86_FALSE='#'
  18215. else
  18216. X86_TRUE='#'
  18217. X86_FALSE=
  18218. fi
  18219. if test x$TARGET = xX86_FREEBSD; then
  18220. X86_FREEBSD_TRUE=
  18221. X86_FREEBSD_FALSE='#'
  18222. else
  18223. X86_FREEBSD_TRUE='#'
  18224. X86_FREEBSD_FALSE=
  18225. fi
  18226. if test x$TARGET = xX86_WIN32; then
  18227. X86_WIN32_TRUE=
  18228. X86_WIN32_FALSE='#'
  18229. else
  18230. X86_WIN32_TRUE='#'
  18231. X86_WIN32_FALSE=
  18232. fi
  18233. if test x$TARGET = xX86_DARWIN; then
  18234. X86_DARWIN_TRUE=
  18235. X86_DARWIN_FALSE='#'
  18236. else
  18237. X86_DARWIN_TRUE='#'
  18238. X86_DARWIN_FALSE=
  18239. fi
  18240. if test x$TARGET = xALPHA; then
  18241. ALPHA_TRUE=
  18242. ALPHA_FALSE='#'
  18243. else
  18244. ALPHA_TRUE='#'
  18245. ALPHA_FALSE=
  18246. fi
  18247. if test x$TARGET = xIA64; then
  18248. IA64_TRUE=
  18249. IA64_FALSE='#'
  18250. else
  18251. IA64_TRUE='#'
  18252. IA64_FALSE=
  18253. fi
  18254. if test x$TARGET = xM32R; then
  18255. M32R_TRUE=
  18256. M32R_FALSE='#'
  18257. else
  18258. M32R_TRUE='#'
  18259. M32R_FALSE=
  18260. fi
  18261. if test x$TARGET = xM68K; then
  18262. M68K_TRUE=
  18263. M68K_FALSE='#'
  18264. else
  18265. M68K_TRUE='#'
  18266. M68K_FALSE=
  18267. fi
  18268. if test x$TARGET = xPOWERPC; then
  18269. POWERPC_TRUE=
  18270. POWERPC_FALSE='#'
  18271. else
  18272. POWERPC_TRUE='#'
  18273. POWERPC_FALSE=
  18274. fi
  18275. if test x$TARGET = xPOWERPC_AIX; then
  18276. POWERPC_AIX_TRUE=
  18277. POWERPC_AIX_FALSE='#'
  18278. else
  18279. POWERPC_AIX_TRUE='#'
  18280. POWERPC_AIX_FALSE=
  18281. fi
  18282. if test x$TARGET = xPOWERPC_DARWIN; then
  18283. POWERPC_DARWIN_TRUE=
  18284. POWERPC_DARWIN_FALSE='#'
  18285. else
  18286. POWERPC_DARWIN_TRUE='#'
  18287. POWERPC_DARWIN_FALSE=
  18288. fi
  18289. if test x$TARGET = xPOWERPC_FREEBSD; then
  18290. POWERPC_FREEBSD_TRUE=
  18291. POWERPC_FREEBSD_FALSE='#'
  18292. else
  18293. POWERPC_FREEBSD_TRUE='#'
  18294. POWERPC_FREEBSD_FALSE=
  18295. fi
  18296. if test x$TARGET = xARM; then
  18297. ARM_TRUE=
  18298. ARM_FALSE='#'
  18299. else
  18300. ARM_TRUE='#'
  18301. ARM_FALSE=
  18302. fi
  18303. if test x$TARGET = xLIBFFI_CRIS; then
  18304. LIBFFI_CRIS_TRUE=
  18305. LIBFFI_CRIS_FALSE='#'
  18306. else
  18307. LIBFFI_CRIS_TRUE='#'
  18308. LIBFFI_CRIS_FALSE=
  18309. fi
  18310. if test x$TARGET = xFRV; then
  18311. FRV_TRUE=
  18312. FRV_FALSE='#'
  18313. else
  18314. FRV_TRUE='#'
  18315. FRV_FALSE=
  18316. fi
  18317. if test x$TARGET = xS390; then
  18318. S390_TRUE=
  18319. S390_FALSE='#'
  18320. else
  18321. S390_TRUE='#'
  18322. S390_FALSE=
  18323. fi
  18324. if test x$TARGET = xX86_64; then
  18325. X86_64_TRUE=
  18326. X86_64_FALSE='#'
  18327. else
  18328. X86_64_TRUE='#'
  18329. X86_64_FALSE=
  18330. fi
  18331. if test x$TARGET = xSH; then
  18332. SH_TRUE=
  18333. SH_FALSE='#'
  18334. else
  18335. SH_TRUE='#'
  18336. SH_FALSE=
  18337. fi
  18338. if test x$TARGET = xSH64; then
  18339. SH64_TRUE=
  18340. SH64_FALSE='#'
  18341. else
  18342. SH64_TRUE='#'
  18343. SH64_FALSE=
  18344. fi
  18345. if test x$TARGET = xPA_LINUX; then
  18346. PA_LINUX_TRUE=
  18347. PA_LINUX_FALSE='#'
  18348. else
  18349. PA_LINUX_TRUE='#'
  18350. PA_LINUX_FALSE=
  18351. fi
  18352. if test x$TARGET = xPA_HPUX; then
  18353. PA_HPUX_TRUE=
  18354. PA_HPUX_FALSE='#'
  18355. else
  18356. PA_HPUX_TRUE='#'
  18357. PA_HPUX_FALSE=
  18358. fi
  18359. if test x$TARGET = xPA64_HPUX; then
  18360. PA64_HPUX_TRUE=
  18361. PA64_HPUX_FALSE='#'
  18362. else
  18363. PA64_HPUX_TRUE='#'
  18364. PA64_HPUX_FALSE=
  18365. fi
  18366. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  18367. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  18368. if test "${ac_cv_header_stdc+set}" = set; then
  18369. echo $ECHO_N "(cached) $ECHO_C" >&6
  18370. else
  18371. cat >conftest.$ac_ext <<_ACEOF
  18372. /* confdefs.h. */
  18373. _ACEOF
  18374. cat confdefs.h >>conftest.$ac_ext
  18375. cat >>conftest.$ac_ext <<_ACEOF
  18376. /* end confdefs.h. */
  18377. #include <stdlib.h>
  18378. #include <stdarg.h>
  18379. #include <string.h>
  18380. #include <float.h>
  18381. int
  18382. main ()
  18383. {
  18384. ;
  18385. return 0;
  18386. }
  18387. _ACEOF
  18388. rm -f conftest.$ac_objext
  18389. if { (ac_try="$ac_compile"
  18390. case "(($ac_try" in
  18391. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18392. *) ac_try_echo=$ac_try;;
  18393. esac
  18394. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18395. (eval "$ac_compile") 2>conftest.er1
  18396. ac_status=$?
  18397. grep -v '^ *+' conftest.er1 >conftest.err
  18398. rm -f conftest.er1
  18399. cat conftest.err >&5
  18400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18401. (exit $ac_status); } && {
  18402. test -z "$ac_c_werror_flag" ||
  18403. test ! -s conftest.err
  18404. } && test -s conftest.$ac_objext; then
  18405. ac_cv_header_stdc=yes
  18406. else
  18407. echo "$as_me: failed program was:" >&5
  18408. sed 's/^/| /' conftest.$ac_ext >&5
  18409. ac_cv_header_stdc=no
  18410. fi
  18411. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18412. if test $ac_cv_header_stdc = yes; then
  18413. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  18414. cat >conftest.$ac_ext <<_ACEOF
  18415. /* confdefs.h. */
  18416. _ACEOF
  18417. cat confdefs.h >>conftest.$ac_ext
  18418. cat >>conftest.$ac_ext <<_ACEOF
  18419. /* end confdefs.h. */
  18420. #include <string.h>
  18421. _ACEOF
  18422. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18423. $EGREP "memchr" >/dev/null 2>&1; then
  18424. :
  18425. else
  18426. ac_cv_header_stdc=no
  18427. fi
  18428. rm -f conftest*
  18429. fi
  18430. if test $ac_cv_header_stdc = yes; then
  18431. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  18432. cat >conftest.$ac_ext <<_ACEOF
  18433. /* confdefs.h. */
  18434. _ACEOF
  18435. cat confdefs.h >>conftest.$ac_ext
  18436. cat >>conftest.$ac_ext <<_ACEOF
  18437. /* end confdefs.h. */
  18438. #include <stdlib.h>
  18439. _ACEOF
  18440. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18441. $EGREP "free" >/dev/null 2>&1; then
  18442. :
  18443. else
  18444. ac_cv_header_stdc=no
  18445. fi
  18446. rm -f conftest*
  18447. fi
  18448. if test $ac_cv_header_stdc = yes; then
  18449. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  18450. if test "$cross_compiling" = yes; then
  18451. :
  18452. else
  18453. cat >conftest.$ac_ext <<_ACEOF
  18454. /* confdefs.h. */
  18455. _ACEOF
  18456. cat confdefs.h >>conftest.$ac_ext
  18457. cat >>conftest.$ac_ext <<_ACEOF
  18458. /* end confdefs.h. */
  18459. #include <ctype.h>
  18460. #include <stdlib.h>
  18461. #if ((' ' & 0x0FF) == 0x020)
  18462. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  18463. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  18464. #else
  18465. # define ISLOWER(c) \
  18466. (('a' <= (c) && (c) <= 'i') \
  18467. || ('j' <= (c) && (c) <= 'r') \
  18468. || ('s' <= (c) && (c) <= 'z'))
  18469. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  18470. #endif
  18471. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  18472. int
  18473. main ()
  18474. {
  18475. int i;
  18476. for (i = 0; i < 256; i++)
  18477. if (XOR (islower (i), ISLOWER (i))
  18478. || toupper (i) != TOUPPER (i))
  18479. return 2;
  18480. return 0;
  18481. }
  18482. _ACEOF
  18483. rm -f conftest$ac_exeext
  18484. if { (ac_try="$ac_link"
  18485. case "(($ac_try" in
  18486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18487. *) ac_try_echo=$ac_try;;
  18488. esac
  18489. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18490. (eval "$ac_link") 2>&5
  18491. ac_status=$?
  18492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18493. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18494. { (case "(($ac_try" in
  18495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18496. *) ac_try_echo=$ac_try;;
  18497. esac
  18498. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18499. (eval "$ac_try") 2>&5
  18500. ac_status=$?
  18501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18502. (exit $ac_status); }; }; then
  18503. :
  18504. else
  18505. echo "$as_me: program exited with status $ac_status" >&5
  18506. echo "$as_me: failed program was:" >&5
  18507. sed 's/^/| /' conftest.$ac_ext >&5
  18508. ( exit $ac_status )
  18509. ac_cv_header_stdc=no
  18510. fi
  18511. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18512. fi
  18513. fi
  18514. fi
  18515. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  18516. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  18517. if test $ac_cv_header_stdc = yes; then
  18518. cat >>confdefs.h <<\_ACEOF
  18519. #define STDC_HEADERS 1
  18520. _ACEOF
  18521. fi
  18522. for ac_func in memcpy
  18523. do
  18524. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18525. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18526. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18527. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18528. echo $ECHO_N "(cached) $ECHO_C" >&6
  18529. else
  18530. cat >conftest.$ac_ext <<_ACEOF
  18531. /* confdefs.h. */
  18532. _ACEOF
  18533. cat confdefs.h >>conftest.$ac_ext
  18534. cat >>conftest.$ac_ext <<_ACEOF
  18535. /* end confdefs.h. */
  18536. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18537. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18538. #define $ac_func innocuous_$ac_func
  18539. /* System header to define __stub macros and hopefully few prototypes,
  18540. which can conflict with char $ac_func (); below.
  18541. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18542. <limits.h> exists even on freestanding compilers. */
  18543. #ifdef __STDC__
  18544. # include <limits.h>
  18545. #else
  18546. # include <assert.h>
  18547. #endif
  18548. #undef $ac_func
  18549. /* Override any GCC internal prototype to avoid an error.
  18550. Use char because int might match the return type of a GCC
  18551. builtin and then its argument prototype would still apply. */
  18552. #ifdef __cplusplus
  18553. extern "C"
  18554. #endif
  18555. char $ac_func ();
  18556. /* The GNU C library defines this for functions which it implements
  18557. to always fail with ENOSYS. Some functions are actually named
  18558. something starting with __ and the normal name is an alias. */
  18559. #if defined __stub_$ac_func || defined __stub___$ac_func
  18560. choke me
  18561. #endif
  18562. int
  18563. main ()
  18564. {
  18565. return $ac_func ();
  18566. ;
  18567. return 0;
  18568. }
  18569. _ACEOF
  18570. rm -f conftest.$ac_objext conftest$ac_exeext
  18571. if { (ac_try="$ac_link"
  18572. case "(($ac_try" in
  18573. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18574. *) ac_try_echo=$ac_try;;
  18575. esac
  18576. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18577. (eval "$ac_link") 2>conftest.er1
  18578. ac_status=$?
  18579. grep -v '^ *+' conftest.er1 >conftest.err
  18580. rm -f conftest.er1
  18581. cat conftest.err >&5
  18582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18583. (exit $ac_status); } && {
  18584. test -z "$ac_c_werror_flag" ||
  18585. test ! -s conftest.err
  18586. } && test -s conftest$ac_exeext &&
  18587. $as_test_x conftest$ac_exeext; then
  18588. eval "$as_ac_var=yes"
  18589. else
  18590. echo "$as_me: failed program was:" >&5
  18591. sed 's/^/| /' conftest.$ac_ext >&5
  18592. eval "$as_ac_var=no"
  18593. fi
  18594. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18595. conftest$ac_exeext conftest.$ac_ext
  18596. fi
  18597. ac_res=`eval echo '${'$as_ac_var'}'`
  18598. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18599. echo "${ECHO_T}$ac_res" >&6; }
  18600. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18601. cat >>confdefs.h <<_ACEOF
  18602. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18603. _ACEOF
  18604. fi
  18605. done
  18606. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  18607. # for constant arguments. Useless!
  18608. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  18609. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  18610. if test "${ac_cv_working_alloca_h+set}" = set; then
  18611. echo $ECHO_N "(cached) $ECHO_C" >&6
  18612. else
  18613. cat >conftest.$ac_ext <<_ACEOF
  18614. /* confdefs.h. */
  18615. _ACEOF
  18616. cat confdefs.h >>conftest.$ac_ext
  18617. cat >>conftest.$ac_ext <<_ACEOF
  18618. /* end confdefs.h. */
  18619. #include <alloca.h>
  18620. int
  18621. main ()
  18622. {
  18623. char *p = (char *) alloca (2 * sizeof (int));
  18624. if (p) return 0;
  18625. ;
  18626. return 0;
  18627. }
  18628. _ACEOF
  18629. rm -f conftest.$ac_objext conftest$ac_exeext
  18630. if { (ac_try="$ac_link"
  18631. case "(($ac_try" in
  18632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18633. *) ac_try_echo=$ac_try;;
  18634. esac
  18635. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18636. (eval "$ac_link") 2>conftest.er1
  18637. ac_status=$?
  18638. grep -v '^ *+' conftest.er1 >conftest.err
  18639. rm -f conftest.er1
  18640. cat conftest.err >&5
  18641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18642. (exit $ac_status); } && {
  18643. test -z "$ac_c_werror_flag" ||
  18644. test ! -s conftest.err
  18645. } && test -s conftest$ac_exeext &&
  18646. $as_test_x conftest$ac_exeext; then
  18647. ac_cv_working_alloca_h=yes
  18648. else
  18649. echo "$as_me: failed program was:" >&5
  18650. sed 's/^/| /' conftest.$ac_ext >&5
  18651. ac_cv_working_alloca_h=no
  18652. fi
  18653. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18654. conftest$ac_exeext conftest.$ac_ext
  18655. fi
  18656. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  18657. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  18658. if test $ac_cv_working_alloca_h = yes; then
  18659. cat >>confdefs.h <<\_ACEOF
  18660. #define HAVE_ALLOCA_H 1
  18661. _ACEOF
  18662. fi
  18663. { echo "$as_me:$LINENO: checking for alloca" >&5
  18664. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  18665. if test "${ac_cv_func_alloca_works+set}" = set; then
  18666. echo $ECHO_N "(cached) $ECHO_C" >&6
  18667. else
  18668. cat >conftest.$ac_ext <<_ACEOF
  18669. /* confdefs.h. */
  18670. _ACEOF
  18671. cat confdefs.h >>conftest.$ac_ext
  18672. cat >>conftest.$ac_ext <<_ACEOF
  18673. /* end confdefs.h. */
  18674. #ifdef __GNUC__
  18675. # define alloca __builtin_alloca
  18676. #else
  18677. # ifdef _MSC_VER
  18678. # include <malloc.h>
  18679. # define alloca _alloca
  18680. # else
  18681. # ifdef HAVE_ALLOCA_H
  18682. # include <alloca.h>
  18683. # else
  18684. # ifdef _AIX
  18685. #pragma alloca
  18686. # else
  18687. # ifndef alloca /* predefined by HP cc +Olibcalls */
  18688. char *alloca ();
  18689. # endif
  18690. # endif
  18691. # endif
  18692. # endif
  18693. #endif
  18694. int
  18695. main ()
  18696. {
  18697. char *p = (char *) alloca (1);
  18698. if (p) return 0;
  18699. ;
  18700. return 0;
  18701. }
  18702. _ACEOF
  18703. rm -f conftest.$ac_objext conftest$ac_exeext
  18704. if { (ac_try="$ac_link"
  18705. case "(($ac_try" in
  18706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18707. *) ac_try_echo=$ac_try;;
  18708. esac
  18709. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18710. (eval "$ac_link") 2>conftest.er1
  18711. ac_status=$?
  18712. grep -v '^ *+' conftest.er1 >conftest.err
  18713. rm -f conftest.er1
  18714. cat conftest.err >&5
  18715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18716. (exit $ac_status); } && {
  18717. test -z "$ac_c_werror_flag" ||
  18718. test ! -s conftest.err
  18719. } && test -s conftest$ac_exeext &&
  18720. $as_test_x conftest$ac_exeext; then
  18721. ac_cv_func_alloca_works=yes
  18722. else
  18723. echo "$as_me: failed program was:" >&5
  18724. sed 's/^/| /' conftest.$ac_ext >&5
  18725. ac_cv_func_alloca_works=no
  18726. fi
  18727. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18728. conftest$ac_exeext conftest.$ac_ext
  18729. fi
  18730. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  18731. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  18732. if test $ac_cv_func_alloca_works = yes; then
  18733. cat >>confdefs.h <<\_ACEOF
  18734. #define HAVE_ALLOCA 1
  18735. _ACEOF
  18736. else
  18737. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  18738. # that cause trouble. Some versions do not even contain alloca or
  18739. # contain a buggy version. If you still want to use their alloca,
  18740. # use ar to extract alloca.o from them instead of compiling alloca.c.
  18741. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  18742. cat >>confdefs.h <<\_ACEOF
  18743. #define C_ALLOCA 1
  18744. _ACEOF
  18745. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  18746. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  18747. if test "${ac_cv_os_cray+set}" = set; then
  18748. echo $ECHO_N "(cached) $ECHO_C" >&6
  18749. else
  18750. cat >conftest.$ac_ext <<_ACEOF
  18751. /* confdefs.h. */
  18752. _ACEOF
  18753. cat confdefs.h >>conftest.$ac_ext
  18754. cat >>conftest.$ac_ext <<_ACEOF
  18755. /* end confdefs.h. */
  18756. #if defined CRAY && ! defined CRAY2
  18757. webecray
  18758. #else
  18759. wenotbecray
  18760. #endif
  18761. _ACEOF
  18762. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  18763. $EGREP "webecray" >/dev/null 2>&1; then
  18764. ac_cv_os_cray=yes
  18765. else
  18766. ac_cv_os_cray=no
  18767. fi
  18768. rm -f conftest*
  18769. fi
  18770. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  18771. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  18772. if test $ac_cv_os_cray = yes; then
  18773. for ac_func in _getb67 GETB67 getb67; do
  18774. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18775. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18776. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18777. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18778. echo $ECHO_N "(cached) $ECHO_C" >&6
  18779. else
  18780. cat >conftest.$ac_ext <<_ACEOF
  18781. /* confdefs.h. */
  18782. _ACEOF
  18783. cat confdefs.h >>conftest.$ac_ext
  18784. cat >>conftest.$ac_ext <<_ACEOF
  18785. /* end confdefs.h. */
  18786. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18787. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18788. #define $ac_func innocuous_$ac_func
  18789. /* System header to define __stub macros and hopefully few prototypes,
  18790. which can conflict with char $ac_func (); below.
  18791. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18792. <limits.h> exists even on freestanding compilers. */
  18793. #ifdef __STDC__
  18794. # include <limits.h>
  18795. #else
  18796. # include <assert.h>
  18797. #endif
  18798. #undef $ac_func
  18799. /* Override any GCC internal prototype to avoid an error.
  18800. Use char because int might match the return type of a GCC
  18801. builtin and then its argument prototype would still apply. */
  18802. #ifdef __cplusplus
  18803. extern "C"
  18804. #endif
  18805. char $ac_func ();
  18806. /* The GNU C library defines this for functions which it implements
  18807. to always fail with ENOSYS. Some functions are actually named
  18808. something starting with __ and the normal name is an alias. */
  18809. #if defined __stub_$ac_func || defined __stub___$ac_func
  18810. choke me
  18811. #endif
  18812. int
  18813. main ()
  18814. {
  18815. return $ac_func ();
  18816. ;
  18817. return 0;
  18818. }
  18819. _ACEOF
  18820. rm -f conftest.$ac_objext conftest$ac_exeext
  18821. if { (ac_try="$ac_link"
  18822. case "(($ac_try" in
  18823. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18824. *) ac_try_echo=$ac_try;;
  18825. esac
  18826. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18827. (eval "$ac_link") 2>conftest.er1
  18828. ac_status=$?
  18829. grep -v '^ *+' conftest.er1 >conftest.err
  18830. rm -f conftest.er1
  18831. cat conftest.err >&5
  18832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18833. (exit $ac_status); } && {
  18834. test -z "$ac_c_werror_flag" ||
  18835. test ! -s conftest.err
  18836. } && test -s conftest$ac_exeext &&
  18837. $as_test_x conftest$ac_exeext; then
  18838. eval "$as_ac_var=yes"
  18839. else
  18840. echo "$as_me: failed program was:" >&5
  18841. sed 's/^/| /' conftest.$ac_ext >&5
  18842. eval "$as_ac_var=no"
  18843. fi
  18844. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18845. conftest$ac_exeext conftest.$ac_ext
  18846. fi
  18847. ac_res=`eval echo '${'$as_ac_var'}'`
  18848. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18849. echo "${ECHO_T}$ac_res" >&6; }
  18850. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18851. cat >>confdefs.h <<_ACEOF
  18852. #define CRAY_STACKSEG_END $ac_func
  18853. _ACEOF
  18854. break
  18855. fi
  18856. done
  18857. fi
  18858. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  18859. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  18860. if test "${ac_cv_c_stack_direction+set}" = set; then
  18861. echo $ECHO_N "(cached) $ECHO_C" >&6
  18862. else
  18863. if test "$cross_compiling" = yes; then
  18864. ac_cv_c_stack_direction=0
  18865. else
  18866. cat >conftest.$ac_ext <<_ACEOF
  18867. /* confdefs.h. */
  18868. _ACEOF
  18869. cat confdefs.h >>conftest.$ac_ext
  18870. cat >>conftest.$ac_ext <<_ACEOF
  18871. /* end confdefs.h. */
  18872. $ac_includes_default
  18873. int
  18874. find_stack_direction ()
  18875. {
  18876. static char *addr = 0;
  18877. auto char dummy;
  18878. if (addr == 0)
  18879. {
  18880. addr = &dummy;
  18881. return find_stack_direction ();
  18882. }
  18883. else
  18884. return (&dummy > addr) ? 1 : -1;
  18885. }
  18886. int
  18887. main ()
  18888. {
  18889. return find_stack_direction () < 0;
  18890. }
  18891. _ACEOF
  18892. rm -f conftest$ac_exeext
  18893. if { (ac_try="$ac_link"
  18894. case "(($ac_try" in
  18895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18896. *) ac_try_echo=$ac_try;;
  18897. esac
  18898. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18899. (eval "$ac_link") 2>&5
  18900. ac_status=$?
  18901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18902. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18903. { (case "(($ac_try" in
  18904. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18905. *) ac_try_echo=$ac_try;;
  18906. esac
  18907. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18908. (eval "$ac_try") 2>&5
  18909. ac_status=$?
  18910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18911. (exit $ac_status); }; }; then
  18912. ac_cv_c_stack_direction=1
  18913. else
  18914. echo "$as_me: program exited with status $ac_status" >&5
  18915. echo "$as_me: failed program was:" >&5
  18916. sed 's/^/| /' conftest.$ac_ext >&5
  18917. ( exit $ac_status )
  18918. ac_cv_c_stack_direction=-1
  18919. fi
  18920. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18921. fi
  18922. fi
  18923. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  18924. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  18925. cat >>confdefs.h <<_ACEOF
  18926. #define STACK_DIRECTION $ac_cv_c_stack_direction
  18927. _ACEOF
  18928. fi
  18929. { echo "$as_me:$LINENO: checking for double" >&5
  18930. echo $ECHO_N "checking for double... $ECHO_C" >&6; }
  18931. if test "${ac_cv_type_double+set}" = set; then
  18932. echo $ECHO_N "(cached) $ECHO_C" >&6
  18933. else
  18934. cat >conftest.$ac_ext <<_ACEOF
  18935. /* confdefs.h. */
  18936. _ACEOF
  18937. cat confdefs.h >>conftest.$ac_ext
  18938. cat >>conftest.$ac_ext <<_ACEOF
  18939. /* end confdefs.h. */
  18940. $ac_includes_default
  18941. typedef double ac__type_new_;
  18942. int
  18943. main ()
  18944. {
  18945. if ((ac__type_new_ *) 0)
  18946. return 0;
  18947. if (sizeof (ac__type_new_))
  18948. return 0;
  18949. ;
  18950. return 0;
  18951. }
  18952. _ACEOF
  18953. rm -f conftest.$ac_objext
  18954. if { (ac_try="$ac_compile"
  18955. case "(($ac_try" in
  18956. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18957. *) ac_try_echo=$ac_try;;
  18958. esac
  18959. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18960. (eval "$ac_compile") 2>conftest.er1
  18961. ac_status=$?
  18962. grep -v '^ *+' conftest.er1 >conftest.err
  18963. rm -f conftest.er1
  18964. cat conftest.err >&5
  18965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18966. (exit $ac_status); } && {
  18967. test -z "$ac_c_werror_flag" ||
  18968. test ! -s conftest.err
  18969. } && test -s conftest.$ac_objext; then
  18970. ac_cv_type_double=yes
  18971. else
  18972. echo "$as_me: failed program was:" >&5
  18973. sed 's/^/| /' conftest.$ac_ext >&5
  18974. ac_cv_type_double=no
  18975. fi
  18976. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18977. fi
  18978. { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
  18979. echo "${ECHO_T}$ac_cv_type_double" >&6; }
  18980. # The cast to long int works around a bug in the HP C Compiler
  18981. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  18982. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  18983. # This bug is HP SR number 8606223364.
  18984. { echo "$as_me:$LINENO: checking size of double" >&5
  18985. echo $ECHO_N "checking size of double... $ECHO_C" >&6; }
  18986. if test "${ac_cv_sizeof_double+set}" = set; then
  18987. echo $ECHO_N "(cached) $ECHO_C" >&6
  18988. else
  18989. if test "$cross_compiling" = yes; then
  18990. # Depending upon the size, compute the lo and hi bounds.
  18991. cat >conftest.$ac_ext <<_ACEOF
  18992. /* confdefs.h. */
  18993. _ACEOF
  18994. cat confdefs.h >>conftest.$ac_ext
  18995. cat >>conftest.$ac_ext <<_ACEOF
  18996. /* end confdefs.h. */
  18997. $ac_includes_default
  18998. typedef double ac__type_sizeof_;
  18999. int
  19000. main ()
  19001. {
  19002. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  19003. test_array [0] = 0
  19004. ;
  19005. return 0;
  19006. }
  19007. _ACEOF
  19008. rm -f conftest.$ac_objext
  19009. if { (ac_try="$ac_compile"
  19010. case "(($ac_try" in
  19011. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19012. *) ac_try_echo=$ac_try;;
  19013. esac
  19014. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19015. (eval "$ac_compile") 2>conftest.er1
  19016. ac_status=$?
  19017. grep -v '^ *+' conftest.er1 >conftest.err
  19018. rm -f conftest.er1
  19019. cat conftest.err >&5
  19020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19021. (exit $ac_status); } && {
  19022. test -z "$ac_c_werror_flag" ||
  19023. test ! -s conftest.err
  19024. } && test -s conftest.$ac_objext; then
  19025. ac_lo=0 ac_mid=0
  19026. while :; do
  19027. cat >conftest.$ac_ext <<_ACEOF
  19028. /* confdefs.h. */
  19029. _ACEOF
  19030. cat confdefs.h >>conftest.$ac_ext
  19031. cat >>conftest.$ac_ext <<_ACEOF
  19032. /* end confdefs.h. */
  19033. $ac_includes_default
  19034. typedef double ac__type_sizeof_;
  19035. int
  19036. main ()
  19037. {
  19038. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  19039. test_array [0] = 0
  19040. ;
  19041. return 0;
  19042. }
  19043. _ACEOF
  19044. rm -f conftest.$ac_objext
  19045. if { (ac_try="$ac_compile"
  19046. case "(($ac_try" in
  19047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19048. *) ac_try_echo=$ac_try;;
  19049. esac
  19050. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19051. (eval "$ac_compile") 2>conftest.er1
  19052. ac_status=$?
  19053. grep -v '^ *+' conftest.er1 >conftest.err
  19054. rm -f conftest.er1
  19055. cat conftest.err >&5
  19056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19057. (exit $ac_status); } && {
  19058. test -z "$ac_c_werror_flag" ||
  19059. test ! -s conftest.err
  19060. } && test -s conftest.$ac_objext; then
  19061. ac_hi=$ac_mid; break
  19062. else
  19063. echo "$as_me: failed program was:" >&5
  19064. sed 's/^/| /' conftest.$ac_ext >&5
  19065. ac_lo=`expr $ac_mid + 1`
  19066. if test $ac_lo -le $ac_mid; then
  19067. ac_lo= ac_hi=
  19068. break
  19069. fi
  19070. ac_mid=`expr 2 '*' $ac_mid + 1`
  19071. fi
  19072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19073. done
  19074. else
  19075. echo "$as_me: failed program was:" >&5
  19076. sed 's/^/| /' conftest.$ac_ext >&5
  19077. cat >conftest.$ac_ext <<_ACEOF
  19078. /* confdefs.h. */
  19079. _ACEOF
  19080. cat confdefs.h >>conftest.$ac_ext
  19081. cat >>conftest.$ac_ext <<_ACEOF
  19082. /* end confdefs.h. */
  19083. $ac_includes_default
  19084. typedef double ac__type_sizeof_;
  19085. int
  19086. main ()
  19087. {
  19088. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  19089. test_array [0] = 0
  19090. ;
  19091. return 0;
  19092. }
  19093. _ACEOF
  19094. rm -f conftest.$ac_objext
  19095. if { (ac_try="$ac_compile"
  19096. case "(($ac_try" in
  19097. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19098. *) ac_try_echo=$ac_try;;
  19099. esac
  19100. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19101. (eval "$ac_compile") 2>conftest.er1
  19102. ac_status=$?
  19103. grep -v '^ *+' conftest.er1 >conftest.err
  19104. rm -f conftest.er1
  19105. cat conftest.err >&5
  19106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19107. (exit $ac_status); } && {
  19108. test -z "$ac_c_werror_flag" ||
  19109. test ! -s conftest.err
  19110. } && test -s conftest.$ac_objext; then
  19111. ac_hi=-1 ac_mid=-1
  19112. while :; do
  19113. cat >conftest.$ac_ext <<_ACEOF
  19114. /* confdefs.h. */
  19115. _ACEOF
  19116. cat confdefs.h >>conftest.$ac_ext
  19117. cat >>conftest.$ac_ext <<_ACEOF
  19118. /* end confdefs.h. */
  19119. $ac_includes_default
  19120. typedef double ac__type_sizeof_;
  19121. int
  19122. main ()
  19123. {
  19124. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  19125. test_array [0] = 0
  19126. ;
  19127. return 0;
  19128. }
  19129. _ACEOF
  19130. rm -f conftest.$ac_objext
  19131. if { (ac_try="$ac_compile"
  19132. case "(($ac_try" in
  19133. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19134. *) ac_try_echo=$ac_try;;
  19135. esac
  19136. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19137. (eval "$ac_compile") 2>conftest.er1
  19138. ac_status=$?
  19139. grep -v '^ *+' conftest.er1 >conftest.err
  19140. rm -f conftest.er1
  19141. cat conftest.err >&5
  19142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19143. (exit $ac_status); } && {
  19144. test -z "$ac_c_werror_flag" ||
  19145. test ! -s conftest.err
  19146. } && test -s conftest.$ac_objext; then
  19147. ac_lo=$ac_mid; break
  19148. else
  19149. echo "$as_me: failed program was:" >&5
  19150. sed 's/^/| /' conftest.$ac_ext >&5
  19151. ac_hi=`expr '(' $ac_mid ')' - 1`
  19152. if test $ac_mid -le $ac_hi; then
  19153. ac_lo= ac_hi=
  19154. break
  19155. fi
  19156. ac_mid=`expr 2 '*' $ac_mid`
  19157. fi
  19158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19159. done
  19160. else
  19161. echo "$as_me: failed program was:" >&5
  19162. sed 's/^/| /' conftest.$ac_ext >&5
  19163. ac_lo= ac_hi=
  19164. fi
  19165. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19166. fi
  19167. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19168. # Binary search between lo and hi bounds.
  19169. while test "x$ac_lo" != "x$ac_hi"; do
  19170. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  19171. cat >conftest.$ac_ext <<_ACEOF
  19172. /* confdefs.h. */
  19173. _ACEOF
  19174. cat confdefs.h >>conftest.$ac_ext
  19175. cat >>conftest.$ac_ext <<_ACEOF
  19176. /* end confdefs.h. */
  19177. $ac_includes_default
  19178. typedef double ac__type_sizeof_;
  19179. int
  19180. main ()
  19181. {
  19182. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  19183. test_array [0] = 0
  19184. ;
  19185. return 0;
  19186. }
  19187. _ACEOF
  19188. rm -f conftest.$ac_objext
  19189. if { (ac_try="$ac_compile"
  19190. case "(($ac_try" in
  19191. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19192. *) ac_try_echo=$ac_try;;
  19193. esac
  19194. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19195. (eval "$ac_compile") 2>conftest.er1
  19196. ac_status=$?
  19197. grep -v '^ *+' conftest.er1 >conftest.err
  19198. rm -f conftest.er1
  19199. cat conftest.err >&5
  19200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19201. (exit $ac_status); } && {
  19202. test -z "$ac_c_werror_flag" ||
  19203. test ! -s conftest.err
  19204. } && test -s conftest.$ac_objext; then
  19205. ac_hi=$ac_mid
  19206. else
  19207. echo "$as_me: failed program was:" >&5
  19208. sed 's/^/| /' conftest.$ac_ext >&5
  19209. ac_lo=`expr '(' $ac_mid ')' + 1`
  19210. fi
  19211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19212. done
  19213. case $ac_lo in
  19214. ?*) ac_cv_sizeof_double=$ac_lo;;
  19215. '') if test "$ac_cv_type_double" = yes; then
  19216. { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
  19217. See \`config.log' for more details." >&5
  19218. echo "$as_me: error: cannot compute sizeof (double)
  19219. See \`config.log' for more details." >&2;}
  19220. { (exit 77); exit 77; }; }
  19221. else
  19222. ac_cv_sizeof_double=0
  19223. fi ;;
  19224. esac
  19225. else
  19226. cat >conftest.$ac_ext <<_ACEOF
  19227. /* confdefs.h. */
  19228. _ACEOF
  19229. cat confdefs.h >>conftest.$ac_ext
  19230. cat >>conftest.$ac_ext <<_ACEOF
  19231. /* end confdefs.h. */
  19232. $ac_includes_default
  19233. typedef double ac__type_sizeof_;
  19234. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  19235. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  19236. #include <stdio.h>
  19237. #include <stdlib.h>
  19238. int
  19239. main ()
  19240. {
  19241. FILE *f = fopen ("conftest.val", "w");
  19242. if (! f)
  19243. return 1;
  19244. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  19245. {
  19246. long int i = longval ();
  19247. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  19248. return 1;
  19249. fprintf (f, "%ld\n", i);
  19250. }
  19251. else
  19252. {
  19253. unsigned long int i = ulongval ();
  19254. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  19255. return 1;
  19256. fprintf (f, "%lu\n", i);
  19257. }
  19258. return ferror (f) || fclose (f) != 0;
  19259. ;
  19260. return 0;
  19261. }
  19262. _ACEOF
  19263. rm -f conftest$ac_exeext
  19264. if { (ac_try="$ac_link"
  19265. case "(($ac_try" in
  19266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19267. *) ac_try_echo=$ac_try;;
  19268. esac
  19269. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19270. (eval "$ac_link") 2>&5
  19271. ac_status=$?
  19272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19273. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19274. { (case "(($ac_try" in
  19275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19276. *) ac_try_echo=$ac_try;;
  19277. esac
  19278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19279. (eval "$ac_try") 2>&5
  19280. ac_status=$?
  19281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19282. (exit $ac_status); }; }; then
  19283. ac_cv_sizeof_double=`cat conftest.val`
  19284. else
  19285. echo "$as_me: program exited with status $ac_status" >&5
  19286. echo "$as_me: failed program was:" >&5
  19287. sed 's/^/| /' conftest.$ac_ext >&5
  19288. ( exit $ac_status )
  19289. if test "$ac_cv_type_double" = yes; then
  19290. { { echo "$as_me:$LINENO: error: cannot compute sizeof (double)
  19291. See \`config.log' for more details." >&5
  19292. echo "$as_me: error: cannot compute sizeof (double)
  19293. See \`config.log' for more details." >&2;}
  19294. { (exit 77); exit 77; }; }
  19295. else
  19296. ac_cv_sizeof_double=0
  19297. fi
  19298. fi
  19299. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19300. fi
  19301. rm -f conftest.val
  19302. fi
  19303. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
  19304. echo "${ECHO_T}$ac_cv_sizeof_double" >&6; }
  19305. cat >>confdefs.h <<_ACEOF
  19306. #define SIZEOF_DOUBLE $ac_cv_sizeof_double
  19307. _ACEOF
  19308. { echo "$as_me:$LINENO: checking for long double" >&5
  19309. echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
  19310. if test "${ac_cv_type_long_double+set}" = set; then
  19311. echo $ECHO_N "(cached) $ECHO_C" >&6
  19312. else
  19313. cat >conftest.$ac_ext <<_ACEOF
  19314. /* confdefs.h. */
  19315. _ACEOF
  19316. cat confdefs.h >>conftest.$ac_ext
  19317. cat >>conftest.$ac_ext <<_ACEOF
  19318. /* end confdefs.h. */
  19319. $ac_includes_default
  19320. typedef long double ac__type_new_;
  19321. int
  19322. main ()
  19323. {
  19324. if ((ac__type_new_ *) 0)
  19325. return 0;
  19326. if (sizeof (ac__type_new_))
  19327. return 0;
  19328. ;
  19329. return 0;
  19330. }
  19331. _ACEOF
  19332. rm -f conftest.$ac_objext
  19333. if { (ac_try="$ac_compile"
  19334. case "(($ac_try" in
  19335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19336. *) ac_try_echo=$ac_try;;
  19337. esac
  19338. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19339. (eval "$ac_compile") 2>conftest.er1
  19340. ac_status=$?
  19341. grep -v '^ *+' conftest.er1 >conftest.err
  19342. rm -f conftest.er1
  19343. cat conftest.err >&5
  19344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19345. (exit $ac_status); } && {
  19346. test -z "$ac_c_werror_flag" ||
  19347. test ! -s conftest.err
  19348. } && test -s conftest.$ac_objext; then
  19349. ac_cv_type_long_double=yes
  19350. else
  19351. echo "$as_me: failed program was:" >&5
  19352. sed 's/^/| /' conftest.$ac_ext >&5
  19353. ac_cv_type_long_double=no
  19354. fi
  19355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19356. fi
  19357. { echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
  19358. echo "${ECHO_T}$ac_cv_type_long_double" >&6; }
  19359. # The cast to long int works around a bug in the HP C Compiler
  19360. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  19361. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  19362. # This bug is HP SR number 8606223364.
  19363. { echo "$as_me:$LINENO: checking size of long double" >&5
  19364. echo $ECHO_N "checking size of long double... $ECHO_C" >&6; }
  19365. if test "${ac_cv_sizeof_long_double+set}" = set; then
  19366. echo $ECHO_N "(cached) $ECHO_C" >&6
  19367. else
  19368. if test "$cross_compiling" = yes; then
  19369. # Depending upon the size, compute the lo and hi bounds.
  19370. cat >conftest.$ac_ext <<_ACEOF
  19371. /* confdefs.h. */
  19372. _ACEOF
  19373. cat confdefs.h >>conftest.$ac_ext
  19374. cat >>conftest.$ac_ext <<_ACEOF
  19375. /* end confdefs.h. */
  19376. $ac_includes_default
  19377. typedef long double ac__type_sizeof_;
  19378. int
  19379. main ()
  19380. {
  19381. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  19382. test_array [0] = 0
  19383. ;
  19384. return 0;
  19385. }
  19386. _ACEOF
  19387. rm -f conftest.$ac_objext
  19388. if { (ac_try="$ac_compile"
  19389. case "(($ac_try" in
  19390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19391. *) ac_try_echo=$ac_try;;
  19392. esac
  19393. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19394. (eval "$ac_compile") 2>conftest.er1
  19395. ac_status=$?
  19396. grep -v '^ *+' conftest.er1 >conftest.err
  19397. rm -f conftest.er1
  19398. cat conftest.err >&5
  19399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19400. (exit $ac_status); } && {
  19401. test -z "$ac_c_werror_flag" ||
  19402. test ! -s conftest.err
  19403. } && test -s conftest.$ac_objext; then
  19404. ac_lo=0 ac_mid=0
  19405. while :; do
  19406. cat >conftest.$ac_ext <<_ACEOF
  19407. /* confdefs.h. */
  19408. _ACEOF
  19409. cat confdefs.h >>conftest.$ac_ext
  19410. cat >>conftest.$ac_ext <<_ACEOF
  19411. /* end confdefs.h. */
  19412. $ac_includes_default
  19413. typedef long double ac__type_sizeof_;
  19414. int
  19415. main ()
  19416. {
  19417. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  19418. test_array [0] = 0
  19419. ;
  19420. return 0;
  19421. }
  19422. _ACEOF
  19423. rm -f conftest.$ac_objext
  19424. if { (ac_try="$ac_compile"
  19425. case "(($ac_try" in
  19426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19427. *) ac_try_echo=$ac_try;;
  19428. esac
  19429. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19430. (eval "$ac_compile") 2>conftest.er1
  19431. ac_status=$?
  19432. grep -v '^ *+' conftest.er1 >conftest.err
  19433. rm -f conftest.er1
  19434. cat conftest.err >&5
  19435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19436. (exit $ac_status); } && {
  19437. test -z "$ac_c_werror_flag" ||
  19438. test ! -s conftest.err
  19439. } && test -s conftest.$ac_objext; then
  19440. ac_hi=$ac_mid; break
  19441. else
  19442. echo "$as_me: failed program was:" >&5
  19443. sed 's/^/| /' conftest.$ac_ext >&5
  19444. ac_lo=`expr $ac_mid + 1`
  19445. if test $ac_lo -le $ac_mid; then
  19446. ac_lo= ac_hi=
  19447. break
  19448. fi
  19449. ac_mid=`expr 2 '*' $ac_mid + 1`
  19450. fi
  19451. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19452. done
  19453. else
  19454. echo "$as_me: failed program was:" >&5
  19455. sed 's/^/| /' conftest.$ac_ext >&5
  19456. cat >conftest.$ac_ext <<_ACEOF
  19457. /* confdefs.h. */
  19458. _ACEOF
  19459. cat confdefs.h >>conftest.$ac_ext
  19460. cat >>conftest.$ac_ext <<_ACEOF
  19461. /* end confdefs.h. */
  19462. $ac_includes_default
  19463. typedef long double ac__type_sizeof_;
  19464. int
  19465. main ()
  19466. {
  19467. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  19468. test_array [0] = 0
  19469. ;
  19470. return 0;
  19471. }
  19472. _ACEOF
  19473. rm -f conftest.$ac_objext
  19474. if { (ac_try="$ac_compile"
  19475. case "(($ac_try" in
  19476. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19477. *) ac_try_echo=$ac_try;;
  19478. esac
  19479. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19480. (eval "$ac_compile") 2>conftest.er1
  19481. ac_status=$?
  19482. grep -v '^ *+' conftest.er1 >conftest.err
  19483. rm -f conftest.er1
  19484. cat conftest.err >&5
  19485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19486. (exit $ac_status); } && {
  19487. test -z "$ac_c_werror_flag" ||
  19488. test ! -s conftest.err
  19489. } && test -s conftest.$ac_objext; then
  19490. ac_hi=-1 ac_mid=-1
  19491. while :; do
  19492. cat >conftest.$ac_ext <<_ACEOF
  19493. /* confdefs.h. */
  19494. _ACEOF
  19495. cat confdefs.h >>conftest.$ac_ext
  19496. cat >>conftest.$ac_ext <<_ACEOF
  19497. /* end confdefs.h. */
  19498. $ac_includes_default
  19499. typedef long double ac__type_sizeof_;
  19500. int
  19501. main ()
  19502. {
  19503. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  19504. test_array [0] = 0
  19505. ;
  19506. return 0;
  19507. }
  19508. _ACEOF
  19509. rm -f conftest.$ac_objext
  19510. if { (ac_try="$ac_compile"
  19511. case "(($ac_try" in
  19512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19513. *) ac_try_echo=$ac_try;;
  19514. esac
  19515. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19516. (eval "$ac_compile") 2>conftest.er1
  19517. ac_status=$?
  19518. grep -v '^ *+' conftest.er1 >conftest.err
  19519. rm -f conftest.er1
  19520. cat conftest.err >&5
  19521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19522. (exit $ac_status); } && {
  19523. test -z "$ac_c_werror_flag" ||
  19524. test ! -s conftest.err
  19525. } && test -s conftest.$ac_objext; then
  19526. ac_lo=$ac_mid; break
  19527. else
  19528. echo "$as_me: failed program was:" >&5
  19529. sed 's/^/| /' conftest.$ac_ext >&5
  19530. ac_hi=`expr '(' $ac_mid ')' - 1`
  19531. if test $ac_mid -le $ac_hi; then
  19532. ac_lo= ac_hi=
  19533. break
  19534. fi
  19535. ac_mid=`expr 2 '*' $ac_mid`
  19536. fi
  19537. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19538. done
  19539. else
  19540. echo "$as_me: failed program was:" >&5
  19541. sed 's/^/| /' conftest.$ac_ext >&5
  19542. ac_lo= ac_hi=
  19543. fi
  19544. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19545. fi
  19546. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19547. # Binary search between lo and hi bounds.
  19548. while test "x$ac_lo" != "x$ac_hi"; do
  19549. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  19550. cat >conftest.$ac_ext <<_ACEOF
  19551. /* confdefs.h. */
  19552. _ACEOF
  19553. cat confdefs.h >>conftest.$ac_ext
  19554. cat >>conftest.$ac_ext <<_ACEOF
  19555. /* end confdefs.h. */
  19556. $ac_includes_default
  19557. typedef long double ac__type_sizeof_;
  19558. int
  19559. main ()
  19560. {
  19561. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  19562. test_array [0] = 0
  19563. ;
  19564. return 0;
  19565. }
  19566. _ACEOF
  19567. rm -f conftest.$ac_objext
  19568. if { (ac_try="$ac_compile"
  19569. case "(($ac_try" in
  19570. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19571. *) ac_try_echo=$ac_try;;
  19572. esac
  19573. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19574. (eval "$ac_compile") 2>conftest.er1
  19575. ac_status=$?
  19576. grep -v '^ *+' conftest.er1 >conftest.err
  19577. rm -f conftest.er1
  19578. cat conftest.err >&5
  19579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19580. (exit $ac_status); } && {
  19581. test -z "$ac_c_werror_flag" ||
  19582. test ! -s conftest.err
  19583. } && test -s conftest.$ac_objext; then
  19584. ac_hi=$ac_mid
  19585. else
  19586. echo "$as_me: failed program was:" >&5
  19587. sed 's/^/| /' conftest.$ac_ext >&5
  19588. ac_lo=`expr '(' $ac_mid ')' + 1`
  19589. fi
  19590. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19591. done
  19592. case $ac_lo in
  19593. ?*) ac_cv_sizeof_long_double=$ac_lo;;
  19594. '') if test "$ac_cv_type_long_double" = yes; then
  19595. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
  19596. See \`config.log' for more details." >&5
  19597. echo "$as_me: error: cannot compute sizeof (long double)
  19598. See \`config.log' for more details." >&2;}
  19599. { (exit 77); exit 77; }; }
  19600. else
  19601. ac_cv_sizeof_long_double=0
  19602. fi ;;
  19603. esac
  19604. else
  19605. cat >conftest.$ac_ext <<_ACEOF
  19606. /* confdefs.h. */
  19607. _ACEOF
  19608. cat confdefs.h >>conftest.$ac_ext
  19609. cat >>conftest.$ac_ext <<_ACEOF
  19610. /* end confdefs.h. */
  19611. $ac_includes_default
  19612. typedef long double ac__type_sizeof_;
  19613. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  19614. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  19615. #include <stdio.h>
  19616. #include <stdlib.h>
  19617. int
  19618. main ()
  19619. {
  19620. FILE *f = fopen ("conftest.val", "w");
  19621. if (! f)
  19622. return 1;
  19623. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  19624. {
  19625. long int i = longval ();
  19626. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  19627. return 1;
  19628. fprintf (f, "%ld\n", i);
  19629. }
  19630. else
  19631. {
  19632. unsigned long int i = ulongval ();
  19633. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  19634. return 1;
  19635. fprintf (f, "%lu\n", i);
  19636. }
  19637. return ferror (f) || fclose (f) != 0;
  19638. ;
  19639. return 0;
  19640. }
  19641. _ACEOF
  19642. rm -f conftest$ac_exeext
  19643. if { (ac_try="$ac_link"
  19644. case "(($ac_try" in
  19645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19646. *) ac_try_echo=$ac_try;;
  19647. esac
  19648. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19649. (eval "$ac_link") 2>&5
  19650. ac_status=$?
  19651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19652. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19653. { (case "(($ac_try" in
  19654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19655. *) ac_try_echo=$ac_try;;
  19656. esac
  19657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19658. (eval "$ac_try") 2>&5
  19659. ac_status=$?
  19660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19661. (exit $ac_status); }; }; then
  19662. ac_cv_sizeof_long_double=`cat conftest.val`
  19663. else
  19664. echo "$as_me: program exited with status $ac_status" >&5
  19665. echo "$as_me: failed program was:" >&5
  19666. sed 's/^/| /' conftest.$ac_ext >&5
  19667. ( exit $ac_status )
  19668. if test "$ac_cv_type_long_double" = yes; then
  19669. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
  19670. See \`config.log' for more details." >&5
  19671. echo "$as_me: error: cannot compute sizeof (long double)
  19672. See \`config.log' for more details." >&2;}
  19673. { (exit 77); exit 77; }; }
  19674. else
  19675. ac_cv_sizeof_long_double=0
  19676. fi
  19677. fi
  19678. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19679. fi
  19680. rm -f conftest.val
  19681. fi
  19682. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
  19683. echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6; }
  19684. cat >>confdefs.h <<_ACEOF
  19685. #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
  19686. _ACEOF
  19687. # Also AC_SUBST this variable for ffi.h.
  19688. if test -z "$HAVE_LONG_DOUBLE"; then
  19689. HAVE_LONG_DOUBLE=0
  19690. if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
  19691. if test $ac_cv_sizeof_long_double != 0; then
  19692. HAVE_LONG_DOUBLE=1
  19693. cat >>confdefs.h <<\_ACEOF
  19694. #define HAVE_LONG_DOUBLE 1
  19695. _ACEOF
  19696. fi
  19697. fi
  19698. fi
  19699. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  19700. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  19701. if test "${ac_cv_c_bigendian+set}" = set; then
  19702. echo $ECHO_N "(cached) $ECHO_C" >&6
  19703. else
  19704. # See if sys/param.h defines the BYTE_ORDER macro.
  19705. cat >conftest.$ac_ext <<_ACEOF
  19706. /* confdefs.h. */
  19707. _ACEOF
  19708. cat confdefs.h >>conftest.$ac_ext
  19709. cat >>conftest.$ac_ext <<_ACEOF
  19710. /* end confdefs.h. */
  19711. #include <sys/types.h>
  19712. #include <sys/param.h>
  19713. int
  19714. main ()
  19715. {
  19716. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  19717. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  19718. bogus endian macros
  19719. #endif
  19720. ;
  19721. return 0;
  19722. }
  19723. _ACEOF
  19724. rm -f conftest.$ac_objext
  19725. if { (ac_try="$ac_compile"
  19726. case "(($ac_try" in
  19727. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19728. *) ac_try_echo=$ac_try;;
  19729. esac
  19730. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19731. (eval "$ac_compile") 2>conftest.er1
  19732. ac_status=$?
  19733. grep -v '^ *+' conftest.er1 >conftest.err
  19734. rm -f conftest.er1
  19735. cat conftest.err >&5
  19736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19737. (exit $ac_status); } && {
  19738. test -z "$ac_c_werror_flag" ||
  19739. test ! -s conftest.err
  19740. } && test -s conftest.$ac_objext; then
  19741. # It does; now see whether it defined to BIG_ENDIAN or not.
  19742. cat >conftest.$ac_ext <<_ACEOF
  19743. /* confdefs.h. */
  19744. _ACEOF
  19745. cat confdefs.h >>conftest.$ac_ext
  19746. cat >>conftest.$ac_ext <<_ACEOF
  19747. /* end confdefs.h. */
  19748. #include <sys/types.h>
  19749. #include <sys/param.h>
  19750. int
  19751. main ()
  19752. {
  19753. #if BYTE_ORDER != BIG_ENDIAN
  19754. not big endian
  19755. #endif
  19756. ;
  19757. return 0;
  19758. }
  19759. _ACEOF
  19760. rm -f conftest.$ac_objext
  19761. if { (ac_try="$ac_compile"
  19762. case "(($ac_try" in
  19763. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19764. *) ac_try_echo=$ac_try;;
  19765. esac
  19766. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19767. (eval "$ac_compile") 2>conftest.er1
  19768. ac_status=$?
  19769. grep -v '^ *+' conftest.er1 >conftest.err
  19770. rm -f conftest.er1
  19771. cat conftest.err >&5
  19772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19773. (exit $ac_status); } && {
  19774. test -z "$ac_c_werror_flag" ||
  19775. test ! -s conftest.err
  19776. } && test -s conftest.$ac_objext; then
  19777. ac_cv_c_bigendian=yes
  19778. else
  19779. echo "$as_me: failed program was:" >&5
  19780. sed 's/^/| /' conftest.$ac_ext >&5
  19781. ac_cv_c_bigendian=no
  19782. fi
  19783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19784. else
  19785. echo "$as_me: failed program was:" >&5
  19786. sed 's/^/| /' conftest.$ac_ext >&5
  19787. # It does not; compile a test program.
  19788. if test "$cross_compiling" = yes; then
  19789. # try to guess the endianness by grepping values into an object file
  19790. ac_cv_c_bigendian=unknown
  19791. cat >conftest.$ac_ext <<_ACEOF
  19792. /* confdefs.h. */
  19793. _ACEOF
  19794. cat confdefs.h >>conftest.$ac_ext
  19795. cat >>conftest.$ac_ext <<_ACEOF
  19796. /* end confdefs.h. */
  19797. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  19798. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  19799. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  19800. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  19801. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  19802. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  19803. int
  19804. main ()
  19805. {
  19806. _ascii (); _ebcdic ();
  19807. ;
  19808. return 0;
  19809. }
  19810. _ACEOF
  19811. rm -f conftest.$ac_objext
  19812. if { (ac_try="$ac_compile"
  19813. case "(($ac_try" in
  19814. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19815. *) ac_try_echo=$ac_try;;
  19816. esac
  19817. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19818. (eval "$ac_compile") 2>conftest.er1
  19819. ac_status=$?
  19820. grep -v '^ *+' conftest.er1 >conftest.err
  19821. rm -f conftest.er1
  19822. cat conftest.err >&5
  19823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19824. (exit $ac_status); } && {
  19825. test -z "$ac_c_werror_flag" ||
  19826. test ! -s conftest.err
  19827. } && test -s conftest.$ac_objext; then
  19828. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  19829. ac_cv_c_bigendian=yes
  19830. fi
  19831. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  19832. if test "$ac_cv_c_bigendian" = unknown; then
  19833. ac_cv_c_bigendian=no
  19834. else
  19835. # finding both strings is unlikely to happen, but who knows?
  19836. ac_cv_c_bigendian=unknown
  19837. fi
  19838. fi
  19839. else
  19840. echo "$as_me: failed program was:" >&5
  19841. sed 's/^/| /' conftest.$ac_ext >&5
  19842. fi
  19843. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19844. else
  19845. cat >conftest.$ac_ext <<_ACEOF
  19846. /* confdefs.h. */
  19847. _ACEOF
  19848. cat confdefs.h >>conftest.$ac_ext
  19849. cat >>conftest.$ac_ext <<_ACEOF
  19850. /* end confdefs.h. */
  19851. $ac_includes_default
  19852. int
  19853. main ()
  19854. {
  19855. /* Are we little or big endian? From Harbison&Steele. */
  19856. union
  19857. {
  19858. long int l;
  19859. char c[sizeof (long int)];
  19860. } u;
  19861. u.l = 1;
  19862. return u.c[sizeof (long int) - 1] == 1;
  19863. ;
  19864. return 0;
  19865. }
  19866. _ACEOF
  19867. rm -f conftest$ac_exeext
  19868. if { (ac_try="$ac_link"
  19869. case "(($ac_try" in
  19870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19871. *) ac_try_echo=$ac_try;;
  19872. esac
  19873. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19874. (eval "$ac_link") 2>&5
  19875. ac_status=$?
  19876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19877. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  19878. { (case "(($ac_try" in
  19879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19880. *) ac_try_echo=$ac_try;;
  19881. esac
  19882. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19883. (eval "$ac_try") 2>&5
  19884. ac_status=$?
  19885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19886. (exit $ac_status); }; }; then
  19887. ac_cv_c_bigendian=no
  19888. else
  19889. echo "$as_me: program exited with status $ac_status" >&5
  19890. echo "$as_me: failed program was:" >&5
  19891. sed 's/^/| /' conftest.$ac_ext >&5
  19892. ( exit $ac_status )
  19893. ac_cv_c_bigendian=yes
  19894. fi
  19895. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  19896. fi
  19897. fi
  19898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19899. fi
  19900. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  19901. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  19902. case $ac_cv_c_bigendian in
  19903. yes)
  19904. cat >>confdefs.h <<\_ACEOF
  19905. #define WORDS_BIGENDIAN 1
  19906. _ACEOF
  19907. ;;
  19908. no)
  19909. ;;
  19910. *)
  19911. { { echo "$as_me:$LINENO: error: unknown endianness
  19912. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  19913. echo "$as_me: error: unknown endianness
  19914. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  19915. { (exit 1); exit 1; }; } ;;
  19916. esac
  19917. { echo "$as_me:$LINENO: checking assembler .cfi pseudo-op support" >&5
  19918. echo $ECHO_N "checking assembler .cfi pseudo-op support... $ECHO_C" >&6; }
  19919. if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then
  19920. echo $ECHO_N "(cached) $ECHO_C" >&6
  19921. else
  19922. libffi_cv_as_cfi_pseudo_op=unknown
  19923. cat >conftest.$ac_ext <<_ACEOF
  19924. /* confdefs.h. */
  19925. _ACEOF
  19926. cat confdefs.h >>conftest.$ac_ext
  19927. cat >>conftest.$ac_ext <<_ACEOF
  19928. /* end confdefs.h. */
  19929. asm (".cfi_startproc\n\t.cfi_endproc");
  19930. int
  19931. main ()
  19932. {
  19933. ;
  19934. return 0;
  19935. }
  19936. _ACEOF
  19937. rm -f conftest.$ac_objext
  19938. if { (ac_try="$ac_compile"
  19939. case "(($ac_try" in
  19940. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19941. *) ac_try_echo=$ac_try;;
  19942. esac
  19943. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19944. (eval "$ac_compile") 2>conftest.er1
  19945. ac_status=$?
  19946. grep -v '^ *+' conftest.er1 >conftest.err
  19947. rm -f conftest.er1
  19948. cat conftest.err >&5
  19949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19950. (exit $ac_status); } && {
  19951. test -z "$ac_c_werror_flag" ||
  19952. test ! -s conftest.err
  19953. } && test -s conftest.$ac_objext; then
  19954. libffi_cv_as_cfi_pseudo_op=yes
  19955. else
  19956. echo "$as_me: failed program was:" >&5
  19957. sed 's/^/| /' conftest.$ac_ext >&5
  19958. libffi_cv_as_cfi_pseudo_op=no
  19959. fi
  19960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  19961. fi
  19962. { echo "$as_me:$LINENO: result: $libffi_cv_as_cfi_pseudo_op" >&5
  19963. echo "${ECHO_T}$libffi_cv_as_cfi_pseudo_op" >&6; }
  19964. if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
  19965. cat >>confdefs.h <<\_ACEOF
  19966. #define HAVE_AS_CFI_PSEUDO_OP 1
  19967. _ACEOF
  19968. fi
  19969. if test x$TARGET = xSPARC; then
  19970. { echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
  19971. echo $ECHO_N "checking assembler and linker support unaligned pc related relocs... $ECHO_C" >&6; }
  19972. if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
  19973. echo $ECHO_N "(cached) $ECHO_C" >&6
  19974. else
  19975. save_CFLAGS="$CFLAGS"
  19976. save_LDFLAGS="$LDFLAGS"
  19977. CFLAGS="$CFLAGS -fpic"
  19978. LDFLAGS="$LDFLAGS -shared"
  19979. cat >conftest.$ac_ext <<_ACEOF
  19980. /* confdefs.h. */
  19981. _ACEOF
  19982. cat confdefs.h >>conftest.$ac_ext
  19983. cat >>conftest.$ac_ext <<_ACEOF
  19984. /* end confdefs.h. */
  19985. asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
  19986. int
  19987. main ()
  19988. {
  19989. ;
  19990. return 0;
  19991. }
  19992. _ACEOF
  19993. rm -f conftest.$ac_objext conftest$ac_exeext
  19994. if { (ac_try="$ac_link"
  19995. case "(($ac_try" in
  19996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19997. *) ac_try_echo=$ac_try;;
  19998. esac
  19999. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20000. (eval "$ac_link") 2>conftest.er1
  20001. ac_status=$?
  20002. grep -v '^ *+' conftest.er1 >conftest.err
  20003. rm -f conftest.er1
  20004. cat conftest.err >&5
  20005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20006. (exit $ac_status); } && {
  20007. test -z "$ac_c_werror_flag" ||
  20008. test ! -s conftest.err
  20009. } && test -s conftest$ac_exeext &&
  20010. $as_test_x conftest$ac_exeext; then
  20011. libffi_cv_as_sparc_ua_pcrel=yes
  20012. else
  20013. echo "$as_me: failed program was:" >&5
  20014. sed 's/^/| /' conftest.$ac_ext >&5
  20015. libffi_cv_as_sparc_ua_pcrel=no
  20016. fi
  20017. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20018. conftest$ac_exeext conftest.$ac_ext
  20019. CFLAGS="$save_CFLAGS"
  20020. LDFLAGS="$save_LDFLAGS"
  20021. fi
  20022. { echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
  20023. echo "${ECHO_T}$libffi_cv_as_sparc_ua_pcrel" >&6; }
  20024. if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
  20025. cat >>confdefs.h <<\_ACEOF
  20026. #define HAVE_AS_SPARC_UA_PCREL 1
  20027. _ACEOF
  20028. fi
  20029. { echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
  20030. echo $ECHO_N "checking assembler .register pseudo-op support... $ECHO_C" >&6; }
  20031. if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
  20032. echo $ECHO_N "(cached) $ECHO_C" >&6
  20033. else
  20034. libffi_cv_as_register_pseudo_op=unknown
  20035. # Check if we have .register
  20036. cat >conftest.$ac_ext <<_ACEOF
  20037. /* confdefs.h. */
  20038. _ACEOF
  20039. cat confdefs.h >>conftest.$ac_ext
  20040. cat >>conftest.$ac_ext <<_ACEOF
  20041. /* end confdefs.h. */
  20042. asm (".register %g2, #scratch");
  20043. int
  20044. main ()
  20045. {
  20046. ;
  20047. return 0;
  20048. }
  20049. _ACEOF
  20050. rm -f conftest.$ac_objext
  20051. if { (ac_try="$ac_compile"
  20052. case "(($ac_try" in
  20053. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20054. *) ac_try_echo=$ac_try;;
  20055. esac
  20056. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  20057. (eval "$ac_compile") 2>conftest.er1
  20058. ac_status=$?
  20059. grep -v '^ *+' conftest.er1 >conftest.err
  20060. rm -f conftest.er1
  20061. cat conftest.err >&5
  20062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20063. (exit $ac_status); } && {
  20064. test -z "$ac_c_werror_flag" ||
  20065. test ! -s conftest.err
  20066. } && test -s conftest.$ac_objext; then
  20067. libffi_cv_as_register_pseudo_op=yes
  20068. else
  20069. echo "$as_me: failed program was:" >&5
  20070. sed 's/^/| /' conftest.$ac_ext >&5
  20071. libffi_cv_as_register_pseudo_op=no
  20072. fi
  20073. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20074. fi
  20075. { echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
  20076. echo "${ECHO_T}$libffi_cv_as_register_pseudo_op" >&6; }
  20077. if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
  20078. cat >>confdefs.h <<\_ACEOF
  20079. #define HAVE_AS_REGISTER_PSEUDO_OP 1
  20080. _ACEOF
  20081. fi
  20082. fi
  20083. { echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
  20084. echo $ECHO_N "checking whether .eh_frame section should be read-only... $ECHO_C" >&6; }
  20085. if test "${libffi_cv_ro_eh_frame+set}" = set; then
  20086. echo $ECHO_N "(cached) $ECHO_C" >&6
  20087. else
  20088. libffi_cv_ro_eh_frame=no
  20089. echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
  20090. if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
  20091. if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
  20092. libffi_cv_ro_eh_frame=yes
  20093. elif grep '.section.*eh_frame.*#alloc' conftest.c \
  20094. | grep -v '#write' > /dev/null; then
  20095. libffi_cv_ro_eh_frame=yes
  20096. fi
  20097. fi
  20098. rm -f conftest.*
  20099. fi
  20100. { echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
  20101. echo "${ECHO_T}$libffi_cv_ro_eh_frame" >&6; }
  20102. if test "x$libffi_cv_ro_eh_frame" = xyes; then
  20103. cat >>confdefs.h <<\_ACEOF
  20104. #define HAVE_RO_EH_FRAME 1
  20105. _ACEOF
  20106. cat >>confdefs.h <<\_ACEOF
  20107. #define EH_FRAME_FLAGS "a"
  20108. _ACEOF
  20109. else
  20110. cat >>confdefs.h <<\_ACEOF
  20111. #define EH_FRAME_FLAGS "aw"
  20112. _ACEOF
  20113. fi
  20114. { echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
  20115. echo $ECHO_N "checking for __attribute__((visibility(\"hidden\")))... $ECHO_C" >&6; }
  20116. if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
  20117. echo $ECHO_N "(cached) $ECHO_C" >&6
  20118. else
  20119. echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
  20120. libffi_cv_hidden_visibility_attribute=no
  20121. if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
  20122. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20123. (eval $ac_try) 2>&5
  20124. ac_status=$?
  20125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20126. (exit $ac_status); }; }; then
  20127. if grep '\.hidden.*foo' conftest.s >/dev/null; then
  20128. libffi_cv_hidden_visibility_attribute=yes
  20129. fi
  20130. fi
  20131. rm -f conftest.*
  20132. fi
  20133. { echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
  20134. echo "${ECHO_T}$libffi_cv_hidden_visibility_attribute" >&6; }
  20135. if test $libffi_cv_hidden_visibility_attribute = yes; then
  20136. cat >>confdefs.h <<\_ACEOF
  20137. #define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
  20138. _ACEOF
  20139. fi
  20140. # Check whether --enable-debug was given.
  20141. if test "${enable_debug+set}" = set; then
  20142. enableval=$enable_debug; if test "$enable_debug" = "yes"; then
  20143. cat >>confdefs.h <<\_ACEOF
  20144. #define FFI_DEBUG 1
  20145. _ACEOF
  20146. fi
  20147. fi
  20148. # Check whether --enable-structs was given.
  20149. if test "${enable_structs+set}" = set; then
  20150. enableval=$enable_structs; if test "$enable_structs" = "no"; then
  20151. cat >>confdefs.h <<\_ACEOF
  20152. #define FFI_NO_STRUCTS 1
  20153. _ACEOF
  20154. fi
  20155. fi
  20156. # Check whether --enable-raw-api was given.
  20157. if test "${enable_raw_api+set}" = set; then
  20158. enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
  20159. cat >>confdefs.h <<\_ACEOF
  20160. #define FFI_NO_RAW_API 1
  20161. _ACEOF
  20162. fi
  20163. fi
  20164. # Check whether --enable-purify-safety was given.
  20165. if test "${enable_purify_safety+set}" = set; then
  20166. enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
  20167. cat >>confdefs.h <<\_ACEOF
  20168. #define USING_PURIFY 1
  20169. _ACEOF
  20170. fi
  20171. fi
  20172. if test -n "$with_cross_host" &&
  20173. test x"$with_cross_host" != x"no"; then
  20174. toolexecdir='$(exec_prefix)/$(target_alias)'
  20175. toolexeclibdir='$(toolexecdir)/lib'
  20176. else
  20177. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  20178. toolexeclibdir='$(libdir)'
  20179. fi
  20180. multi_os_directory=`$CC -print-multi-os-directory`
  20181. case $multi_os_directory in
  20182. .) ;; # Avoid trailing /.
  20183. *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
  20184. esac
  20185. if test "${multilib}" = "yes"; then
  20186. multilib_arg="--enable-multilib"
  20187. else
  20188. multilib_arg=
  20189. fi
  20190. ac_config_commands="$ac_config_commands include"
  20191. ac_config_commands="$ac_config_commands src"
  20192. ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
  20193. ac_config_files="$ac_config_files include/ffi.h"
  20194. ac_config_links="$ac_config_links include/ffi_common.h:include/ffi_common.h"
  20195. ac_config_files="$ac_config_files fficonfig.py"
  20196. cat >confcache <<\_ACEOF
  20197. # This file is a shell script that caches the results of configure
  20198. # tests run on this system so they can be shared between configure
  20199. # scripts and configure runs, see configure's option --config-cache.
  20200. # It is not useful on other systems. If it contains results you don't
  20201. # want to keep, you may remove or edit it.
  20202. #
  20203. # config.status only pays attention to the cache file if you give it
  20204. # the --recheck option to rerun configure.
  20205. #
  20206. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20207. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20208. # following values.
  20209. _ACEOF
  20210. # The following way of writing the cache mishandles newlines in values,
  20211. # but we know of no workaround that is simple, portable, and efficient.
  20212. # So, we kill variables containing newlines.
  20213. # Ultrix sh set writes to stderr and can't be redirected directly,
  20214. # and sets the high bit in the cache file unless we assign to the vars.
  20215. (
  20216. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20217. eval ac_val=\$$ac_var
  20218. case $ac_val in #(
  20219. *${as_nl}*)
  20220. case $ac_var in #(
  20221. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  20222. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  20223. esac
  20224. case $ac_var in #(
  20225. _ | IFS | as_nl) ;; #(
  20226. *) $as_unset $ac_var ;;
  20227. esac ;;
  20228. esac
  20229. done
  20230. (set) 2>&1 |
  20231. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20232. *${as_nl}ac_space=\ *)
  20233. # `set' does not quote correctly, so add quotes (double-quote
  20234. # substitution turns \\\\ into \\, and sed turns \\ into \).
  20235. sed -n \
  20236. "s/'/'\\\\''/g;
  20237. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20238. ;; #(
  20239. *)
  20240. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20241. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20242. ;;
  20243. esac |
  20244. sort
  20245. ) |
  20246. sed '
  20247. /^ac_cv_env_/b end
  20248. t clear
  20249. :clear
  20250. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20251. t end
  20252. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20253. :end' >>confcache
  20254. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20255. if test -w "$cache_file"; then
  20256. test "x$cache_file" != "x/dev/null" &&
  20257. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  20258. echo "$as_me: updating cache $cache_file" >&6;}
  20259. cat confcache >$cache_file
  20260. else
  20261. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  20262. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  20263. fi
  20264. fi
  20265. rm -f confcache
  20266. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20267. # Let make expand exec_prefix.
  20268. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20269. DEFS=-DHAVE_CONFIG_H
  20270. ac_libobjs=
  20271. ac_ltlibobjs=
  20272. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20273. # 1. Remove the extension, and $U if already installed.
  20274. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20275. ac_i=`echo "$ac_i" | sed "$ac_script"`
  20276. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20277. # will be set to the directory where LIBOBJS objects are built.
  20278. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20279. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  20280. done
  20281. LIBOBJS=$ac_libobjs
  20282. LTLIBOBJS=$ac_ltlibobjs
  20283. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  20284. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  20285. Usually this means the macro was only invoked conditionally." >&5
  20286. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  20287. Usually this means the macro was only invoked conditionally." >&2;}
  20288. { (exit 1); exit 1; }; }
  20289. fi
  20290. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  20291. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  20292. Usually this means the macro was only invoked conditionally." >&5
  20293. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  20294. Usually this means the macro was only invoked conditionally." >&2;}
  20295. { (exit 1); exit 1; }; }
  20296. fi
  20297. if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  20298. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
  20299. Usually this means the macro was only invoked conditionally." >&5
  20300. echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
  20301. Usually this means the macro was only invoked conditionally." >&2;}
  20302. { (exit 1); exit 1; }; }
  20303. fi
  20304. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  20305. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  20306. Usually this means the macro was only invoked conditionally." >&5
  20307. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  20308. Usually this means the macro was only invoked conditionally." >&2;}
  20309. { (exit 1); exit 1; }; }
  20310. fi
  20311. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  20312. { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  20313. Usually this means the macro was only invoked conditionally." >&5
  20314. echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  20315. Usually this means the macro was only invoked conditionally." >&2;}
  20316. { (exit 1); exit 1; }; }
  20317. fi
  20318. if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
  20319. { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
  20320. Usually this means the macro was only invoked conditionally." >&5
  20321. echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
  20322. Usually this means the macro was only invoked conditionally." >&2;}
  20323. { (exit 1); exit 1; }; }
  20324. fi
  20325. if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
  20326. { { echo "$as_me:$LINENO: error: conditional \"MIPS\" was never defined.
  20327. Usually this means the macro was only invoked conditionally." >&5
  20328. echo "$as_me: error: conditional \"MIPS\" was never defined.
  20329. Usually this means the macro was only invoked conditionally." >&2;}
  20330. { (exit 1); exit 1; }; }
  20331. fi
  20332. if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
  20333. { { echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
  20334. Usually this means the macro was only invoked conditionally." >&5
  20335. echo "$as_me: error: conditional \"SPARC\" was never defined.
  20336. Usually this means the macro was only invoked conditionally." >&2;}
  20337. { (exit 1); exit 1; }; }
  20338. fi
  20339. if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
  20340. { { echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
  20341. Usually this means the macro was only invoked conditionally." >&5
  20342. echo "$as_me: error: conditional \"X86\" was never defined.
  20343. Usually this means the macro was only invoked conditionally." >&2;}
  20344. { (exit 1); exit 1; }; }
  20345. fi
  20346. if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
  20347. { { echo "$as_me:$LINENO: error: conditional \"X86_FREEBSD\" was never defined.
  20348. Usually this means the macro was only invoked conditionally." >&5
  20349. echo "$as_me: error: conditional \"X86_FREEBSD\" was never defined.
  20350. Usually this means the macro was only invoked conditionally." >&2;}
  20351. { (exit 1); exit 1; }; }
  20352. fi
  20353. if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
  20354. { { echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
  20355. Usually this means the macro was only invoked conditionally." >&5
  20356. echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
  20357. Usually this means the macro was only invoked conditionally." >&2;}
  20358. { (exit 1); exit 1; }; }
  20359. fi
  20360. if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
  20361. { { echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
  20362. Usually this means the macro was only invoked conditionally." >&5
  20363. echo "$as_me: error: conditional \"X86_DARWIN\" was never defined.
  20364. Usually this means the macro was only invoked conditionally." >&2;}
  20365. { (exit 1); exit 1; }; }
  20366. fi
  20367. if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
  20368. { { echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
  20369. Usually this means the macro was only invoked conditionally." >&5
  20370. echo "$as_me: error: conditional \"ALPHA\" was never defined.
  20371. Usually this means the macro was only invoked conditionally." >&2;}
  20372. { (exit 1); exit 1; }; }
  20373. fi
  20374. if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
  20375. { { echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
  20376. Usually this means the macro was only invoked conditionally." >&5
  20377. echo "$as_me: error: conditional \"IA64\" was never defined.
  20378. Usually this means the macro was only invoked conditionally." >&2;}
  20379. { (exit 1); exit 1; }; }
  20380. fi
  20381. if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
  20382. { { echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
  20383. Usually this means the macro was only invoked conditionally." >&5
  20384. echo "$as_me: error: conditional \"M32R\" was never defined.
  20385. Usually this means the macro was only invoked conditionally." >&2;}
  20386. { (exit 1); exit 1; }; }
  20387. fi
  20388. if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
  20389. { { echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
  20390. Usually this means the macro was only invoked conditionally." >&5
  20391. echo "$as_me: error: conditional \"M68K\" was never defined.
  20392. Usually this means the macro was only invoked conditionally." >&2;}
  20393. { (exit 1); exit 1; }; }
  20394. fi
  20395. if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
  20396. { { echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
  20397. Usually this means the macro was only invoked conditionally." >&5
  20398. echo "$as_me: error: conditional \"POWERPC\" was never defined.
  20399. Usually this means the macro was only invoked conditionally." >&2;}
  20400. { (exit 1); exit 1; }; }
  20401. fi
  20402. if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
  20403. { { echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
  20404. Usually this means the macro was only invoked conditionally." >&5
  20405. echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
  20406. Usually this means the macro was only invoked conditionally." >&2;}
  20407. { (exit 1); exit 1; }; }
  20408. fi
  20409. if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
  20410. { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
  20411. Usually this means the macro was only invoked conditionally." >&5
  20412. echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
  20413. Usually this means the macro was only invoked conditionally." >&2;}
  20414. { (exit 1); exit 1; }; }
  20415. fi
  20416. if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
  20417. { { echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
  20418. Usually this means the macro was only invoked conditionally." >&5
  20419. echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
  20420. Usually this means the macro was only invoked conditionally." >&2;}
  20421. { (exit 1); exit 1; }; }
  20422. fi
  20423. if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
  20424. { { echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
  20425. Usually this means the macro was only invoked conditionally." >&5
  20426. echo "$as_me: error: conditional \"ARM\" was never defined.
  20427. Usually this means the macro was only invoked conditionally." >&2;}
  20428. { (exit 1); exit 1; }; }
  20429. fi
  20430. if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
  20431. { { echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
  20432. Usually this means the macro was only invoked conditionally." >&5
  20433. echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
  20434. Usually this means the macro was only invoked conditionally." >&2;}
  20435. { (exit 1); exit 1; }; }
  20436. fi
  20437. if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
  20438. { { echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
  20439. Usually this means the macro was only invoked conditionally." >&5
  20440. echo "$as_me: error: conditional \"FRV\" was never defined.
  20441. Usually this means the macro was only invoked conditionally." >&2;}
  20442. { (exit 1); exit 1; }; }
  20443. fi
  20444. if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
  20445. { { echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
  20446. Usually this means the macro was only invoked conditionally." >&5
  20447. echo "$as_me: error: conditional \"S390\" was never defined.
  20448. Usually this means the macro was only invoked conditionally." >&2;}
  20449. { (exit 1); exit 1; }; }
  20450. fi
  20451. if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
  20452. { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
  20453. Usually this means the macro was only invoked conditionally." >&5
  20454. echo "$as_me: error: conditional \"X86_64\" was never defined.
  20455. Usually this means the macro was only invoked conditionally." >&2;}
  20456. { (exit 1); exit 1; }; }
  20457. fi
  20458. if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
  20459. { { echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
  20460. Usually this means the macro was only invoked conditionally." >&5
  20461. echo "$as_me: error: conditional \"SH\" was never defined.
  20462. Usually this means the macro was only invoked conditionally." >&2;}
  20463. { (exit 1); exit 1; }; }
  20464. fi
  20465. if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
  20466. { { echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
  20467. Usually this means the macro was only invoked conditionally." >&5
  20468. echo "$as_me: error: conditional \"SH64\" was never defined.
  20469. Usually this means the macro was only invoked conditionally." >&2;}
  20470. { (exit 1); exit 1; }; }
  20471. fi
  20472. if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
  20473. { { echo "$as_me:$LINENO: error: conditional \"PA_LINUX\" was never defined.
  20474. Usually this means the macro was only invoked conditionally." >&5
  20475. echo "$as_me: error: conditional \"PA_LINUX\" was never defined.
  20476. Usually this means the macro was only invoked conditionally." >&2;}
  20477. { (exit 1); exit 1; }; }
  20478. fi
  20479. if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
  20480. { { echo "$as_me:$LINENO: error: conditional \"PA_HPUX\" was never defined.
  20481. Usually this means the macro was only invoked conditionally." >&5
  20482. echo "$as_me: error: conditional \"PA_HPUX\" was never defined.
  20483. Usually this means the macro was only invoked conditionally." >&2;}
  20484. { (exit 1); exit 1; }; }
  20485. fi
  20486. if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
  20487. { { echo "$as_me:$LINENO: error: conditional \"PA64_HPUX\" was never defined.
  20488. Usually this means the macro was only invoked conditionally." >&5
  20489. echo "$as_me: error: conditional \"PA64_HPUX\" was never defined.
  20490. Usually this means the macro was only invoked conditionally." >&2;}
  20491. { (exit 1); exit 1; }; }
  20492. fi
  20493. : ${CONFIG_STATUS=./config.status}
  20494. ac_clean_files_save=$ac_clean_files
  20495. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20496. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  20497. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  20498. cat >$CONFIG_STATUS <<_ACEOF
  20499. #! $SHELL
  20500. # Generated by $as_me.
  20501. # Run this file to recreate the current configuration.
  20502. # Compiler output produced by configure, useful for debugging
  20503. # configure, is in config.log if it exists.
  20504. debug=false
  20505. ac_cs_recheck=false
  20506. ac_cs_silent=false
  20507. SHELL=\${CONFIG_SHELL-$SHELL}
  20508. _ACEOF
  20509. cat >>$CONFIG_STATUS <<\_ACEOF
  20510. ## --------------------- ##
  20511. ## M4sh Initialization. ##
  20512. ## --------------------- ##
  20513. # Be more Bourne compatible
  20514. DUALCASE=1; export DUALCASE # for MKS sh
  20515. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  20516. emulate sh
  20517. NULLCMD=:
  20518. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20519. # is contrary to our usage. Disable this feature.
  20520. alias -g '${1+"$@"}'='"$@"'
  20521. setopt NO_GLOB_SUBST
  20522. else
  20523. case `(set -o) 2>/dev/null` in
  20524. *posix*) set -o posix ;;
  20525. esac
  20526. fi
  20527. # PATH needs CR
  20528. # Avoid depending upon Character Ranges.
  20529. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20530. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20531. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20532. as_cr_digits='0123456789'
  20533. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20534. # The user is always right.
  20535. if test "${PATH_SEPARATOR+set}" != set; then
  20536. echo "#! /bin/sh" >conf$$.sh
  20537. echo "exit 0" >>conf$$.sh
  20538. chmod +x conf$$.sh
  20539. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  20540. PATH_SEPARATOR=';'
  20541. else
  20542. PATH_SEPARATOR=:
  20543. fi
  20544. rm -f conf$$.sh
  20545. fi
  20546. # Support unset when possible.
  20547. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  20548. as_unset=unset
  20549. else
  20550. as_unset=false
  20551. fi
  20552. # IFS
  20553. # We need space, tab and new line, in precisely that order. Quoting is
  20554. # there to prevent editors from complaining about space-tab.
  20555. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20556. # splitting by setting IFS to empty value.)
  20557. as_nl='
  20558. '
  20559. IFS=" "" $as_nl"
  20560. # Find who we are. Look in the path if we contain no directory separator.
  20561. case $0 in
  20562. *[\\/]* ) as_myself=$0 ;;
  20563. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20564. for as_dir in $PATH
  20565. do
  20566. IFS=$as_save_IFS
  20567. test -z "$as_dir" && as_dir=.
  20568. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20569. done
  20570. IFS=$as_save_IFS
  20571. ;;
  20572. esac
  20573. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20574. # in which case we are not to be found in the path.
  20575. if test "x$as_myself" = x; then
  20576. as_myself=$0
  20577. fi
  20578. if test ! -f "$as_myself"; then
  20579. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20580. { (exit 1); exit 1; }
  20581. fi
  20582. # Work around bugs in pre-3.0 UWIN ksh.
  20583. for as_var in ENV MAIL MAILPATH
  20584. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  20585. done
  20586. PS1='$ '
  20587. PS2='> '
  20588. PS4='+ '
  20589. # NLS nuisances.
  20590. for as_var in \
  20591. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  20592. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  20593. LC_TELEPHONE LC_TIME
  20594. do
  20595. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  20596. eval $as_var=C; export $as_var
  20597. else
  20598. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  20599. fi
  20600. done
  20601. # Required to use basename.
  20602. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20603. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20604. as_expr=expr
  20605. else
  20606. as_expr=false
  20607. fi
  20608. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20609. as_basename=basename
  20610. else
  20611. as_basename=false
  20612. fi
  20613. # Name of the executable.
  20614. as_me=`$as_basename -- "$0" ||
  20615. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20616. X"$0" : 'X\(//\)$' \| \
  20617. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20618. echo X/"$0" |
  20619. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20620. s//\1/
  20621. q
  20622. }
  20623. /^X\/\(\/\/\)$/{
  20624. s//\1/
  20625. q
  20626. }
  20627. /^X\/\(\/\).*/{
  20628. s//\1/
  20629. q
  20630. }
  20631. s/.*/./; q'`
  20632. # CDPATH.
  20633. $as_unset CDPATH
  20634. as_lineno_1=$LINENO
  20635. as_lineno_2=$LINENO
  20636. test "x$as_lineno_1" != "x$as_lineno_2" &&
  20637. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  20638. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  20639. # uniformly replaced by the line number. The first 'sed' inserts a
  20640. # line-number line after each line using $LINENO; the second 'sed'
  20641. # does the real work. The second script uses 'N' to pair each
  20642. # line-number line with the line containing $LINENO, and appends
  20643. # trailing '-' during substitution so that $LINENO is not a special
  20644. # case at line end.
  20645. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  20646. # scripts with optimization help from Paolo Bonzini. Blame Lee
  20647. # E. McMahon (1931-1989) for sed's syntax. :-)
  20648. sed -n '
  20649. p
  20650. /[$]LINENO/=
  20651. ' <$as_myself |
  20652. sed '
  20653. s/[$]LINENO.*/&-/
  20654. t lineno
  20655. b
  20656. :lineno
  20657. N
  20658. :loop
  20659. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  20660. t loop
  20661. s/-\n.*//
  20662. ' >$as_me.lineno &&
  20663. chmod +x "$as_me.lineno" ||
  20664. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  20665. { (exit 1); exit 1; }; }
  20666. # Don't try to exec as it changes $[0], causing all sort of problems
  20667. # (the dirname of $[0] is not the place where we might find the
  20668. # original and so on. Autoconf is especially sensitive to this).
  20669. . "./$as_me.lineno"
  20670. # Exit status is that of the last command.
  20671. exit
  20672. }
  20673. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20674. as_dirname=dirname
  20675. else
  20676. as_dirname=false
  20677. fi
  20678. ECHO_C= ECHO_N= ECHO_T=
  20679. case `echo -n x` in
  20680. -n*)
  20681. case `echo 'x\c'` in
  20682. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20683. *) ECHO_C='\c';;
  20684. esac;;
  20685. *)
  20686. ECHO_N='-n';;
  20687. esac
  20688. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20689. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20690. as_expr=expr
  20691. else
  20692. as_expr=false
  20693. fi
  20694. rm -f conf$$ conf$$.exe conf$$.file
  20695. if test -d conf$$.dir; then
  20696. rm -f conf$$.dir/conf$$.file
  20697. else
  20698. rm -f conf$$.dir
  20699. mkdir conf$$.dir
  20700. fi
  20701. echo >conf$$.file
  20702. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20703. as_ln_s='ln -s'
  20704. # ... but there are two gotchas:
  20705. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20706. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20707. # In both cases, we have to default to `cp -p'.
  20708. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20709. as_ln_s='cp -p'
  20710. elif ln conf$$.file conf$$ 2>/dev/null; then
  20711. as_ln_s=ln
  20712. else
  20713. as_ln_s='cp -p'
  20714. fi
  20715. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20716. rmdir conf$$.dir 2>/dev/null
  20717. if mkdir -p . 2>/dev/null; then
  20718. as_mkdir_p=:
  20719. else
  20720. test -d ./-p && rmdir ./-p
  20721. as_mkdir_p=false
  20722. fi
  20723. if test -x / >/dev/null 2>&1; then
  20724. as_test_x='test -x'
  20725. else
  20726. if ls -dL / >/dev/null 2>&1; then
  20727. as_ls_L_option=L
  20728. else
  20729. as_ls_L_option=
  20730. fi
  20731. as_test_x='
  20732. eval sh -c '\''
  20733. if test -d "$1"; then
  20734. test -d "$1/.";
  20735. else
  20736. case $1 in
  20737. -*)set "./$1";;
  20738. esac;
  20739. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  20740. ???[sx]*):;;*)false;;esac;fi
  20741. '\'' sh
  20742. '
  20743. fi
  20744. as_executable_p=$as_test_x
  20745. # Sed expression to map a string onto a valid CPP name.
  20746. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  20747. # Sed expression to map a string onto a valid variable name.
  20748. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  20749. exec 6>&1
  20750. # Save the log message, to keep $[0] and so on meaningful, and to
  20751. # report actual input values of CONFIG_FILES etc. instead of their
  20752. # values after options handling.
  20753. ac_log="
  20754. This file was extended by libffi $as_me 3.0.5, which was
  20755. generated by GNU Autoconf 2.61. Invocation command line was
  20756. CONFIG_FILES = $CONFIG_FILES
  20757. CONFIG_HEADERS = $CONFIG_HEADERS
  20758. CONFIG_LINKS = $CONFIG_LINKS
  20759. CONFIG_COMMANDS = $CONFIG_COMMANDS
  20760. $ $0 $@
  20761. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  20762. "
  20763. _ACEOF
  20764. cat >>$CONFIG_STATUS <<_ACEOF
  20765. # Files that config.status was made for.
  20766. config_files="$ac_config_files"
  20767. config_headers="$ac_config_headers"
  20768. config_links="$ac_config_links"
  20769. config_commands="$ac_config_commands"
  20770. _ACEOF
  20771. cat >>$CONFIG_STATUS <<\_ACEOF
  20772. ac_cs_usage="\
  20773. \`$as_me' instantiates files from templates according to the
  20774. current configuration.
  20775. Usage: $0 [OPTIONS] [FILE]...
  20776. -h, --help print this help, then exit
  20777. -V, --version print version number and configuration settings, then exit
  20778. -q, --quiet do not print progress messages
  20779. -d, --debug don't remove temporary files
  20780. --recheck update $as_me by reconfiguring in the same conditions
  20781. --file=FILE[:TEMPLATE]
  20782. instantiate the configuration file FILE
  20783. --header=FILE[:TEMPLATE]
  20784. instantiate the configuration header FILE
  20785. Configuration files:
  20786. $config_files
  20787. Configuration headers:
  20788. $config_headers
  20789. Configuration links:
  20790. $config_links
  20791. Configuration commands:
  20792. $config_commands
  20793. Report bugs to <bug-autoconf@gnu.org>."
  20794. _ACEOF
  20795. cat >>$CONFIG_STATUS <<_ACEOF
  20796. ac_cs_version="\\
  20797. libffi config.status 3.0.5
  20798. configured by $0, generated by GNU Autoconf 2.61,
  20799. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  20800. Copyright (C) 2006 Free Software Foundation, Inc.
  20801. This config.status script is free software; the Free Software Foundation
  20802. gives unlimited permission to copy, distribute and modify it."
  20803. ac_pwd='$ac_pwd'
  20804. srcdir='$srcdir'
  20805. INSTALL='$INSTALL'
  20806. MKDIR_P='$MKDIR_P'
  20807. _ACEOF
  20808. cat >>$CONFIG_STATUS <<\_ACEOF
  20809. # If no file are specified by the user, then we need to provide default
  20810. # value. By we need to know if files were specified by the user.
  20811. ac_need_defaults=:
  20812. while test $# != 0
  20813. do
  20814. case $1 in
  20815. --*=*)
  20816. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  20817. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  20818. ac_shift=:
  20819. ;;
  20820. *)
  20821. ac_option=$1
  20822. ac_optarg=$2
  20823. ac_shift=shift
  20824. ;;
  20825. esac
  20826. case $ac_option in
  20827. # Handling of the options.
  20828. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  20829. ac_cs_recheck=: ;;
  20830. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  20831. echo "$ac_cs_version"; exit ;;
  20832. --debug | --debu | --deb | --de | --d | -d )
  20833. debug=: ;;
  20834. --file | --fil | --fi | --f )
  20835. $ac_shift
  20836. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  20837. ac_need_defaults=false;;
  20838. --header | --heade | --head | --hea )
  20839. $ac_shift
  20840. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  20841. ac_need_defaults=false;;
  20842. --he | --h)
  20843. # Conflict between --help and --header
  20844. { echo "$as_me: error: ambiguous option: $1
  20845. Try \`$0 --help' for more information." >&2
  20846. { (exit 1); exit 1; }; };;
  20847. --help | --hel | -h )
  20848. echo "$ac_cs_usage"; exit ;;
  20849. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  20850. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  20851. ac_cs_silent=: ;;
  20852. # This is an error.
  20853. -*) { echo "$as_me: error: unrecognized option: $1
  20854. Try \`$0 --help' for more information." >&2
  20855. { (exit 1); exit 1; }; } ;;
  20856. *) ac_config_targets="$ac_config_targets $1"
  20857. ac_need_defaults=false ;;
  20858. esac
  20859. shift
  20860. done
  20861. ac_configure_extra_args=
  20862. if $ac_cs_silent; then
  20863. exec 6>/dev/null
  20864. ac_configure_extra_args="$ac_configure_extra_args --silent"
  20865. fi
  20866. _ACEOF
  20867. cat >>$CONFIG_STATUS <<_ACEOF
  20868. if \$ac_cs_recheck; then
  20869. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  20870. CONFIG_SHELL=$SHELL
  20871. export CONFIG_SHELL
  20872. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  20873. fi
  20874. _ACEOF
  20875. cat >>$CONFIG_STATUS <<\_ACEOF
  20876. exec 5>>config.log
  20877. {
  20878. echo
  20879. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  20880. ## Running $as_me. ##
  20881. _ASBOX
  20882. echo "$ac_log"
  20883. } >&5
  20884. _ACEOF
  20885. cat >>$CONFIG_STATUS <<_ACEOF
  20886. #
  20887. # INIT-COMMANDS
  20888. #
  20889. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  20890. TARGETDIR="$TARGETDIR"
  20891. _ACEOF
  20892. cat >>$CONFIG_STATUS <<\_ACEOF
  20893. # Handling of arguments.
  20894. for ac_config_target in $ac_config_targets
  20895. do
  20896. case $ac_config_target in
  20897. "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
  20898. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  20899. "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
  20900. "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
  20901. "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
  20902. "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
  20903. "include/ffi_common.h") CONFIG_LINKS="$CONFIG_LINKS include/ffi_common.h:include/ffi_common.h" ;;
  20904. "fficonfig.py") CONFIG_FILES="$CONFIG_FILES fficonfig.py" ;;
  20905. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  20906. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  20907. { (exit 1); exit 1; }; };;
  20908. esac
  20909. done
  20910. # If the user did not use the arguments to specify the items to instantiate,
  20911. # then the envvar interface is used. Set only those that are not.
  20912. # We use the long form for the default assignment because of an extremely
  20913. # bizarre bug on SunOS 4.1.3.
  20914. if $ac_need_defaults; then
  20915. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  20916. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  20917. test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
  20918. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  20919. fi
  20920. # Have a temporary directory for convenience. Make it in the build tree
  20921. # simply because there is no reason against having it here, and in addition,
  20922. # creating and moving files from /tmp can sometimes cause problems.
  20923. # Hook for its removal unless debugging.
  20924. # Note that there is a small window in which the directory will not be cleaned:
  20925. # after its creation but before its name has been assigned to `$tmp'.
  20926. $debug ||
  20927. {
  20928. tmp=
  20929. trap 'exit_status=$?
  20930. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  20931. ' 0
  20932. trap '{ (exit 1); exit 1; }' 1 2 13 15
  20933. }
  20934. # Create a (secure) tmp directory for tmp files.
  20935. {
  20936. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  20937. test -n "$tmp" && test -d "$tmp"
  20938. } ||
  20939. {
  20940. tmp=./conf$$-$RANDOM
  20941. (umask 077 && mkdir "$tmp")
  20942. } ||
  20943. {
  20944. echo "$me: cannot create a temporary directory in ." >&2
  20945. { (exit 1); exit 1; }
  20946. }
  20947. #
  20948. # Set up the sed scripts for CONFIG_FILES section.
  20949. #
  20950. # No need to generate the scripts if there are no CONFIG_FILES.
  20951. # This happens for instance when ./config.status config.h
  20952. if test -n "$CONFIG_FILES"; then
  20953. _ACEOF
  20954. ac_delim='%!_!# '
  20955. for ac_last_try in false false false false false :; do
  20956. cat >conf$$subs.sed <<_ACEOF
  20957. SHELL!$SHELL$ac_delim
  20958. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  20959. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  20960. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  20961. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  20962. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  20963. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  20964. exec_prefix!$exec_prefix$ac_delim
  20965. prefix!$prefix$ac_delim
  20966. program_transform_name!$program_transform_name$ac_delim
  20967. bindir!$bindir$ac_delim
  20968. sbindir!$sbindir$ac_delim
  20969. libexecdir!$libexecdir$ac_delim
  20970. datarootdir!$datarootdir$ac_delim
  20971. datadir!$datadir$ac_delim
  20972. sysconfdir!$sysconfdir$ac_delim
  20973. sharedstatedir!$sharedstatedir$ac_delim
  20974. localstatedir!$localstatedir$ac_delim
  20975. includedir!$includedir$ac_delim
  20976. oldincludedir!$oldincludedir$ac_delim
  20977. docdir!$docdir$ac_delim
  20978. infodir!$infodir$ac_delim
  20979. htmldir!$htmldir$ac_delim
  20980. dvidir!$dvidir$ac_delim
  20981. pdfdir!$pdfdir$ac_delim
  20982. psdir!$psdir$ac_delim
  20983. libdir!$libdir$ac_delim
  20984. localedir!$localedir$ac_delim
  20985. mandir!$mandir$ac_delim
  20986. DEFS!$DEFS$ac_delim
  20987. ECHO_C!$ECHO_C$ac_delim
  20988. ECHO_N!$ECHO_N$ac_delim
  20989. ECHO_T!$ECHO_T$ac_delim
  20990. LIBS!$LIBS$ac_delim
  20991. build_alias!$build_alias$ac_delim
  20992. host_alias!$host_alias$ac_delim
  20993. target_alias!$target_alias$ac_delim
  20994. build!$build$ac_delim
  20995. build_cpu!$build_cpu$ac_delim
  20996. build_vendor!$build_vendor$ac_delim
  20997. build_os!$build_os$ac_delim
  20998. host!$host$ac_delim
  20999. host_cpu!$host_cpu$ac_delim
  21000. host_vendor!$host_vendor$ac_delim
  21001. host_os!$host_os$ac_delim
  21002. target!$target$ac_delim
  21003. target_cpu!$target_cpu$ac_delim
  21004. target_vendor!$target_vendor$ac_delim
  21005. target_os!$target_os$ac_delim
  21006. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  21007. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  21008. INSTALL_DATA!$INSTALL_DATA$ac_delim
  21009. am__isrc!$am__isrc$ac_delim
  21010. CYGPATH_W!$CYGPATH_W$ac_delim
  21011. PACKAGE!$PACKAGE$ac_delim
  21012. VERSION!$VERSION$ac_delim
  21013. ACLOCAL!$ACLOCAL$ac_delim
  21014. AUTOCONF!$AUTOCONF$ac_delim
  21015. AUTOMAKE!$AUTOMAKE$ac_delim
  21016. AUTOHEADER!$AUTOHEADER$ac_delim
  21017. MAKEINFO!$MAKEINFO$ac_delim
  21018. install_sh!$install_sh$ac_delim
  21019. STRIP!$STRIP$ac_delim
  21020. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  21021. mkdir_p!$mkdir_p$ac_delim
  21022. AWK!$AWK$ac_delim
  21023. SET_MAKE!$SET_MAKE$ac_delim
  21024. am__leading_dot!$am__leading_dot$ac_delim
  21025. AMTAR!$AMTAR$ac_delim
  21026. am__tar!$am__tar$ac_delim
  21027. am__untar!$am__untar$ac_delim
  21028. CC!$CC$ac_delim
  21029. CFLAGS!$CFLAGS$ac_delim
  21030. LDFLAGS!$LDFLAGS$ac_delim
  21031. CPPFLAGS!$CPPFLAGS$ac_delim
  21032. ac_ct_CC!$ac_ct_CC$ac_delim
  21033. EXEEXT!$EXEEXT$ac_delim
  21034. OBJEXT!$OBJEXT$ac_delim
  21035. DEPDIR!$DEPDIR$ac_delim
  21036. am__include!$am__include$ac_delim
  21037. am__quote!$am__quote$ac_delim
  21038. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  21039. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  21040. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  21041. CCDEPMODE!$CCDEPMODE$ac_delim
  21042. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  21043. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  21044. CCAS!$CCAS$ac_delim
  21045. CCASFLAGS!$CCASFLAGS$ac_delim
  21046. CCASDEPMODE!$CCASDEPMODE$ac_delim
  21047. am__fastdepCCAS_TRUE!$am__fastdepCCAS_TRUE$ac_delim
  21048. am__fastdepCCAS_FALSE!$am__fastdepCCAS_FALSE$ac_delim
  21049. SED!$SED$ac_delim
  21050. GREP!$GREP$ac_delim
  21051. EGREP!$EGREP$ac_delim
  21052. LN_S!$LN_S$ac_delim
  21053. ECHO!$ECHO$ac_delim
  21054. _ACEOF
  21055. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  21056. break
  21057. elif $ac_last_try; then
  21058. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21059. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21060. { (exit 1); exit 1; }; }
  21061. else
  21062. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21063. fi
  21064. done
  21065. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  21066. if test -n "$ac_eof"; then
  21067. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  21068. ac_eof=`expr $ac_eof + 1`
  21069. fi
  21070. cat >>$CONFIG_STATUS <<_ACEOF
  21071. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  21072. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21073. _ACEOF
  21074. sed '
  21075. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  21076. s/^/s,@/; s/!/@,|#_!!_#|/
  21077. :n
  21078. t n
  21079. s/'"$ac_delim"'$/,g/; t
  21080. s/$/\\/; p
  21081. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  21082. ' >>$CONFIG_STATUS <conf$$subs.sed
  21083. rm -f conf$$subs.sed
  21084. cat >>$CONFIG_STATUS <<_ACEOF
  21085. CEOF$ac_eof
  21086. _ACEOF
  21087. ac_delim='%!_!# '
  21088. for ac_last_try in false false false false false :; do
  21089. cat >conf$$subs.sed <<_ACEOF
  21090. AR!$AR$ac_delim
  21091. RANLIB!$RANLIB$ac_delim
  21092. CPP!$CPP$ac_delim
  21093. CXX!$CXX$ac_delim
  21094. CXXFLAGS!$CXXFLAGS$ac_delim
  21095. ac_ct_CXX!$ac_ct_CXX$ac_delim
  21096. CXXDEPMODE!$CXXDEPMODE$ac_delim
  21097. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  21098. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  21099. CXXCPP!$CXXCPP$ac_delim
  21100. F77!$F77$ac_delim
  21101. FFLAGS!$FFLAGS$ac_delim
  21102. ac_ct_F77!$ac_ct_F77$ac_delim
  21103. LIBTOOL!$LIBTOOL$ac_delim
  21104. MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
  21105. MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
  21106. MAINT!$MAINT$ac_delim
  21107. TESTSUBDIR_TRUE!$TESTSUBDIR_TRUE$ac_delim
  21108. TESTSUBDIR_FALSE!$TESTSUBDIR_FALSE$ac_delim
  21109. AM_RUNTESTFLAGS!$AM_RUNTESTFLAGS$ac_delim
  21110. MIPS_TRUE!$MIPS_TRUE$ac_delim
  21111. MIPS_FALSE!$MIPS_FALSE$ac_delim
  21112. SPARC_TRUE!$SPARC_TRUE$ac_delim
  21113. SPARC_FALSE!$SPARC_FALSE$ac_delim
  21114. X86_TRUE!$X86_TRUE$ac_delim
  21115. X86_FALSE!$X86_FALSE$ac_delim
  21116. X86_FREEBSD_TRUE!$X86_FREEBSD_TRUE$ac_delim
  21117. X86_FREEBSD_FALSE!$X86_FREEBSD_FALSE$ac_delim
  21118. X86_WIN32_TRUE!$X86_WIN32_TRUE$ac_delim
  21119. X86_WIN32_FALSE!$X86_WIN32_FALSE$ac_delim
  21120. X86_DARWIN_TRUE!$X86_DARWIN_TRUE$ac_delim
  21121. X86_DARWIN_FALSE!$X86_DARWIN_FALSE$ac_delim
  21122. ALPHA_TRUE!$ALPHA_TRUE$ac_delim
  21123. ALPHA_FALSE!$ALPHA_FALSE$ac_delim
  21124. IA64_TRUE!$IA64_TRUE$ac_delim
  21125. IA64_FALSE!$IA64_FALSE$ac_delim
  21126. M32R_TRUE!$M32R_TRUE$ac_delim
  21127. M32R_FALSE!$M32R_FALSE$ac_delim
  21128. M68K_TRUE!$M68K_TRUE$ac_delim
  21129. M68K_FALSE!$M68K_FALSE$ac_delim
  21130. POWERPC_TRUE!$POWERPC_TRUE$ac_delim
  21131. POWERPC_FALSE!$POWERPC_FALSE$ac_delim
  21132. POWERPC_AIX_TRUE!$POWERPC_AIX_TRUE$ac_delim
  21133. POWERPC_AIX_FALSE!$POWERPC_AIX_FALSE$ac_delim
  21134. POWERPC_DARWIN_TRUE!$POWERPC_DARWIN_TRUE$ac_delim
  21135. POWERPC_DARWIN_FALSE!$POWERPC_DARWIN_FALSE$ac_delim
  21136. POWERPC_FREEBSD_TRUE!$POWERPC_FREEBSD_TRUE$ac_delim
  21137. POWERPC_FREEBSD_FALSE!$POWERPC_FREEBSD_FALSE$ac_delim
  21138. ARM_TRUE!$ARM_TRUE$ac_delim
  21139. ARM_FALSE!$ARM_FALSE$ac_delim
  21140. LIBFFI_CRIS_TRUE!$LIBFFI_CRIS_TRUE$ac_delim
  21141. LIBFFI_CRIS_FALSE!$LIBFFI_CRIS_FALSE$ac_delim
  21142. FRV_TRUE!$FRV_TRUE$ac_delim
  21143. FRV_FALSE!$FRV_FALSE$ac_delim
  21144. S390_TRUE!$S390_TRUE$ac_delim
  21145. S390_FALSE!$S390_FALSE$ac_delim
  21146. X86_64_TRUE!$X86_64_TRUE$ac_delim
  21147. X86_64_FALSE!$X86_64_FALSE$ac_delim
  21148. SH_TRUE!$SH_TRUE$ac_delim
  21149. SH_FALSE!$SH_FALSE$ac_delim
  21150. SH64_TRUE!$SH64_TRUE$ac_delim
  21151. SH64_FALSE!$SH64_FALSE$ac_delim
  21152. PA_LINUX_TRUE!$PA_LINUX_TRUE$ac_delim
  21153. PA_LINUX_FALSE!$PA_LINUX_FALSE$ac_delim
  21154. PA_HPUX_TRUE!$PA_HPUX_TRUE$ac_delim
  21155. PA_HPUX_FALSE!$PA_HPUX_FALSE$ac_delim
  21156. PA64_HPUX_TRUE!$PA64_HPUX_TRUE$ac_delim
  21157. PA64_HPUX_FALSE!$PA64_HPUX_FALSE$ac_delim
  21158. ALLOCA!$ALLOCA$ac_delim
  21159. HAVE_LONG_DOUBLE!$HAVE_LONG_DOUBLE$ac_delim
  21160. TARGET!$TARGET$ac_delim
  21161. TARGETDIR!$TARGETDIR$ac_delim
  21162. toolexecdir!$toolexecdir$ac_delim
  21163. toolexeclibdir!$toolexeclibdir$ac_delim
  21164. LIBOBJS!$LIBOBJS$ac_delim
  21165. LTLIBOBJS!$LTLIBOBJS$ac_delim
  21166. _ACEOF
  21167. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
  21168. break
  21169. elif $ac_last_try; then
  21170. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21171. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21172. { (exit 1); exit 1; }; }
  21173. else
  21174. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21175. fi
  21176. done
  21177. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  21178. if test -n "$ac_eof"; then
  21179. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  21180. ac_eof=`expr $ac_eof + 1`
  21181. fi
  21182. cat >>$CONFIG_STATUS <<_ACEOF
  21183. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  21184. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  21185. _ACEOF
  21186. sed '
  21187. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  21188. s/^/s,@/; s/!/@,|#_!!_#|/
  21189. :n
  21190. t n
  21191. s/'"$ac_delim"'$/,g/; t
  21192. s/$/\\/; p
  21193. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  21194. ' >>$CONFIG_STATUS <conf$$subs.sed
  21195. rm -f conf$$subs.sed
  21196. cat >>$CONFIG_STATUS <<_ACEOF
  21197. :end
  21198. s/|#_!!_#|//g
  21199. CEOF$ac_eof
  21200. _ACEOF
  21201. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  21202. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  21203. # trailing colons and then remove the whole line if VPATH becomes empty
  21204. # (actually we leave an empty line to preserve line numbers).
  21205. if test "x$srcdir" = x.; then
  21206. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  21207. s/:*\$(srcdir):*/:/
  21208. s/:*\${srcdir}:*/:/
  21209. s/:*@srcdir@:*/:/
  21210. s/^\([^=]*=[ ]*\):*/\1/
  21211. s/:*$//
  21212. s/^[^=]*=[ ]*$//
  21213. }'
  21214. fi
  21215. cat >>$CONFIG_STATUS <<\_ACEOF
  21216. fi # test -n "$CONFIG_FILES"
  21217. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
  21218. do
  21219. case $ac_tag in
  21220. :[FHLC]) ac_mode=$ac_tag; continue;;
  21221. esac
  21222. case $ac_mode$ac_tag in
  21223. :[FHL]*:*);;
  21224. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  21225. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  21226. { (exit 1); exit 1; }; };;
  21227. :[FH]-) ac_tag=-:-;;
  21228. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21229. esac
  21230. ac_save_IFS=$IFS
  21231. IFS=:
  21232. set x $ac_tag
  21233. IFS=$ac_save_IFS
  21234. shift
  21235. ac_file=$1
  21236. shift
  21237. case $ac_mode in
  21238. :L) ac_source=$1;;
  21239. :[FH])
  21240. ac_file_inputs=
  21241. for ac_f
  21242. do
  21243. case $ac_f in
  21244. -) ac_f="$tmp/stdin";;
  21245. *) # Look for the file first in the build tree, then in the source tree
  21246. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21247. # because $ac_f cannot contain `:'.
  21248. test -f "$ac_f" ||
  21249. case $ac_f in
  21250. [\\/$]*) false;;
  21251. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21252. esac ||
  21253. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  21254. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  21255. { (exit 1); exit 1; }; };;
  21256. esac
  21257. ac_file_inputs="$ac_file_inputs $ac_f"
  21258. done
  21259. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21260. # use $as_me), people would be surprised to read:
  21261. # /* config.h. Generated by config.status. */
  21262. configure_input="Generated from "`IFS=:
  21263. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  21264. if test x"$ac_file" != x-; then
  21265. configure_input="$ac_file. $configure_input"
  21266. { echo "$as_me:$LINENO: creating $ac_file" >&5
  21267. echo "$as_me: creating $ac_file" >&6;}
  21268. fi
  21269. case $ac_tag in
  21270. *:-:* | *:-) cat >"$tmp/stdin";;
  21271. esac
  21272. ;;
  21273. esac
  21274. ac_dir=`$as_dirname -- "$ac_file" ||
  21275. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21276. X"$ac_file" : 'X\(//\)[^/]' \| \
  21277. X"$ac_file" : 'X\(//\)$' \| \
  21278. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21279. echo X"$ac_file" |
  21280. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21281. s//\1/
  21282. q
  21283. }
  21284. /^X\(\/\/\)[^/].*/{
  21285. s//\1/
  21286. q
  21287. }
  21288. /^X\(\/\/\)$/{
  21289. s//\1/
  21290. q
  21291. }
  21292. /^X\(\/\).*/{
  21293. s//\1/
  21294. q
  21295. }
  21296. s/.*/./; q'`
  21297. { as_dir="$ac_dir"
  21298. case $as_dir in #(
  21299. -*) as_dir=./$as_dir;;
  21300. esac
  21301. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  21302. as_dirs=
  21303. while :; do
  21304. case $as_dir in #(
  21305. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  21306. *) as_qdir=$as_dir;;
  21307. esac
  21308. as_dirs="'$as_qdir' $as_dirs"
  21309. as_dir=`$as_dirname -- "$as_dir" ||
  21310. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21311. X"$as_dir" : 'X\(//\)[^/]' \| \
  21312. X"$as_dir" : 'X\(//\)$' \| \
  21313. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21314. echo X"$as_dir" |
  21315. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21316. s//\1/
  21317. q
  21318. }
  21319. /^X\(\/\/\)[^/].*/{
  21320. s//\1/
  21321. q
  21322. }
  21323. /^X\(\/\/\)$/{
  21324. s//\1/
  21325. q
  21326. }
  21327. /^X\(\/\).*/{
  21328. s//\1/
  21329. q
  21330. }
  21331. s/.*/./; q'`
  21332. test -d "$as_dir" && break
  21333. done
  21334. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21335. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  21336. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  21337. { (exit 1); exit 1; }; }; }
  21338. ac_builddir=.
  21339. case "$ac_dir" in
  21340. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21341. *)
  21342. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  21343. # A ".." for each directory in $ac_dir_suffix.
  21344. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  21345. case $ac_top_builddir_sub in
  21346. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21347. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21348. esac ;;
  21349. esac
  21350. ac_abs_top_builddir=$ac_pwd
  21351. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21352. # for backward compatibility:
  21353. ac_top_builddir=$ac_top_build_prefix
  21354. case $srcdir in
  21355. .) # We are building in place.
  21356. ac_srcdir=.
  21357. ac_top_srcdir=$ac_top_builddir_sub
  21358. ac_abs_top_srcdir=$ac_pwd ;;
  21359. [\\/]* | ?:[\\/]* ) # Absolute name.
  21360. ac_srcdir=$srcdir$ac_dir_suffix;
  21361. ac_top_srcdir=$srcdir
  21362. ac_abs_top_srcdir=$srcdir ;;
  21363. *) # Relative name.
  21364. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21365. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21366. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21367. esac
  21368. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21369. case $ac_mode in
  21370. :F)
  21371. #
  21372. # CONFIG_FILE
  21373. #
  21374. case $INSTALL in
  21375. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21376. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21377. esac
  21378. ac_MKDIR_P=$MKDIR_P
  21379. case $MKDIR_P in
  21380. [\\/$]* | ?:[\\/]* ) ;;
  21381. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  21382. esac
  21383. _ACEOF
  21384. cat >>$CONFIG_STATUS <<\_ACEOF
  21385. # If the template does not know about datarootdir, expand it.
  21386. # FIXME: This hack should be removed a few years after 2.60.
  21387. ac_datarootdir_hack=; ac_datarootdir_seen=
  21388. case `sed -n '/datarootdir/ {
  21389. p
  21390. q
  21391. }
  21392. /@datadir@/p
  21393. /@docdir@/p
  21394. /@infodir@/p
  21395. /@localedir@/p
  21396. /@mandir@/p
  21397. ' $ac_file_inputs` in
  21398. *datarootdir*) ac_datarootdir_seen=yes;;
  21399. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21400. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21401. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21402. _ACEOF
  21403. cat >>$CONFIG_STATUS <<_ACEOF
  21404. ac_datarootdir_hack='
  21405. s&@datadir@&$datadir&g
  21406. s&@docdir@&$docdir&g
  21407. s&@infodir@&$infodir&g
  21408. s&@localedir@&$localedir&g
  21409. s&@mandir@&$mandir&g
  21410. s&\\\${datarootdir}&$datarootdir&g' ;;
  21411. esac
  21412. _ACEOF
  21413. # Neutralize VPATH when `$srcdir' = `.'.
  21414. # Shell code in configure.ac might set extrasub.
  21415. # FIXME: do we really want to maintain this feature?
  21416. cat >>$CONFIG_STATUS <<_ACEOF
  21417. sed "$ac_vpsub
  21418. $extrasub
  21419. _ACEOF
  21420. cat >>$CONFIG_STATUS <<\_ACEOF
  21421. :t
  21422. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21423. s&@configure_input@&$configure_input&;t t
  21424. s&@top_builddir@&$ac_top_builddir_sub&;t t
  21425. s&@srcdir@&$ac_srcdir&;t t
  21426. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  21427. s&@top_srcdir@&$ac_top_srcdir&;t t
  21428. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  21429. s&@builddir@&$ac_builddir&;t t
  21430. s&@abs_builddir@&$ac_abs_builddir&;t t
  21431. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  21432. s&@INSTALL@&$ac_INSTALL&;t t
  21433. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  21434. $ac_datarootdir_hack
  21435. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  21436. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  21437. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  21438. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  21439. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21440. which seems to be undefined. Please make sure it is defined." >&5
  21441. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21442. which seems to be undefined. Please make sure it is defined." >&2;}
  21443. rm -f "$tmp/stdin"
  21444. case $ac_file in
  21445. -) cat "$tmp/out"; rm -f "$tmp/out";;
  21446. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  21447. esac
  21448. ;;
  21449. :H)
  21450. #
  21451. # CONFIG_HEADER
  21452. #
  21453. _ACEOF
  21454. # Transform confdefs.h into a sed script `conftest.defines', that
  21455. # substitutes the proper values into config.h.in to produce config.h.
  21456. rm -f conftest.defines conftest.tail
  21457. # First, append a space to every undef/define line, to ease matching.
  21458. echo 's/$/ /' >conftest.defines
  21459. # Then, protect against being on the right side of a sed subst, or in
  21460. # an unquoted here document, in config.status. If some macros were
  21461. # called several times there might be several #defines for the same
  21462. # symbol, which is useless. But do not sort them, since the last
  21463. # AC_DEFINE must be honored.
  21464. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21465. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  21466. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  21467. # PARAMS is the parameter list in the macro definition--in most cases, it's
  21468. # just an empty string.
  21469. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  21470. ac_dB='\\)[ (].*,\\1define\\2'
  21471. ac_dC=' '
  21472. ac_dD=' ,'
  21473. uniq confdefs.h |
  21474. sed -n '
  21475. t rset
  21476. :rset
  21477. s/^[ ]*#[ ]*define[ ][ ]*//
  21478. t ok
  21479. d
  21480. :ok
  21481. s/[\\&,]/\\&/g
  21482. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  21483. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  21484. ' >>conftest.defines
  21485. # Remove the space that was appended to ease matching.
  21486. # Then replace #undef with comments. This is necessary, for
  21487. # example, in the case of _POSIX_SOURCE, which is predefined and required
  21488. # on some systems where configure will not decide to define it.
  21489. # (The regexp can be short, since the line contains either #define or #undef.)
  21490. echo 's/ $//
  21491. s,^[ #]*u.*,/* & */,' >>conftest.defines
  21492. # Break up conftest.defines:
  21493. ac_max_sed_lines=50
  21494. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  21495. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  21496. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  21497. # et cetera.
  21498. ac_in='$ac_file_inputs'
  21499. ac_out='"$tmp/out1"'
  21500. ac_nxt='"$tmp/out2"'
  21501. while :
  21502. do
  21503. # Write a here document:
  21504. cat >>$CONFIG_STATUS <<_ACEOF
  21505. # First, check the format of the line:
  21506. cat >"\$tmp/defines.sed" <<\\CEOF
  21507. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  21508. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  21509. b
  21510. :def
  21511. _ACEOF
  21512. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  21513. echo 'CEOF
  21514. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  21515. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  21516. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  21517. grep . conftest.tail >/dev/null || break
  21518. rm -f conftest.defines
  21519. mv conftest.tail conftest.defines
  21520. done
  21521. rm -f conftest.defines conftest.tail
  21522. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  21523. cat >>$CONFIG_STATUS <<\_ACEOF
  21524. if test x"$ac_file" != x-; then
  21525. echo "/* $configure_input */" >"$tmp/config.h"
  21526. cat "$ac_result" >>"$tmp/config.h"
  21527. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  21528. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  21529. echo "$as_me: $ac_file is unchanged" >&6;}
  21530. else
  21531. rm -f $ac_file
  21532. mv "$tmp/config.h" $ac_file
  21533. fi
  21534. else
  21535. echo "/* $configure_input */"
  21536. cat "$ac_result"
  21537. fi
  21538. rm -f "$tmp/out12"
  21539. # Compute $ac_file's index in $config_headers.
  21540. _am_stamp_count=1
  21541. for _am_header in $config_headers :; do
  21542. case $_am_header in
  21543. $ac_file | $ac_file:* )
  21544. break ;;
  21545. * )
  21546. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  21547. esac
  21548. done
  21549. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  21550. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21551. X$ac_file : 'X\(//\)[^/]' \| \
  21552. X$ac_file : 'X\(//\)$' \| \
  21553. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  21554. echo X$ac_file |
  21555. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21556. s//\1/
  21557. q
  21558. }
  21559. /^X\(\/\/\)[^/].*/{
  21560. s//\1/
  21561. q
  21562. }
  21563. /^X\(\/\/\)$/{
  21564. s//\1/
  21565. q
  21566. }
  21567. /^X\(\/\).*/{
  21568. s//\1/
  21569. q
  21570. }
  21571. s/.*/./; q'`/stamp-h$_am_stamp_count
  21572. ;;
  21573. :L)
  21574. #
  21575. # CONFIG_LINK
  21576. #
  21577. { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
  21578. echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
  21579. if test ! -r "$srcdir/$ac_source"; then
  21580. { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
  21581. echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
  21582. { (exit 1); exit 1; }; }
  21583. fi
  21584. rm -f "$ac_file"
  21585. # Try a relative symlink, then a hard link, then a copy.
  21586. case $srcdir in
  21587. [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
  21588. *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
  21589. esac
  21590. ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
  21591. ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
  21592. cp -p "$srcdir/$ac_source" "$ac_file" ||
  21593. { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
  21594. echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
  21595. { (exit 1); exit 1; }; }
  21596. ;;
  21597. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  21598. echo "$as_me: executing $ac_file commands" >&6;}
  21599. ;;
  21600. esac
  21601. case $ac_file$ac_mode in
  21602. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  21603. # Strip MF so we end up with the name of the file.
  21604. mf=`echo "$mf" | sed -e 's/:.*$//'`
  21605. # Check whether this is an Automake generated Makefile or not.
  21606. # We used to match only the files named `Makefile.in', but
  21607. # some people rename them; so instead we look at the file content.
  21608. # Grep'ing the first line is not enough: some people post-process
  21609. # each Makefile.in and add a new line on top of each file to say so.
  21610. # Grep'ing the whole file is not good either: AIX grep has a line
  21611. # limit of 2048, but all sed's we know have understand at least 4000.
  21612. if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
  21613. dirpart=`$as_dirname -- "$mf" ||
  21614. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21615. X"$mf" : 'X\(//\)[^/]' \| \
  21616. X"$mf" : 'X\(//\)$' \| \
  21617. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  21618. echo X"$mf" |
  21619. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21620. s//\1/
  21621. q
  21622. }
  21623. /^X\(\/\/\)[^/].*/{
  21624. s//\1/
  21625. q
  21626. }
  21627. /^X\(\/\/\)$/{
  21628. s//\1/
  21629. q
  21630. }
  21631. /^X\(\/\).*/{
  21632. s//\1/
  21633. q
  21634. }
  21635. s/.*/./; q'`
  21636. else
  21637. continue
  21638. fi
  21639. # Extract the definition of DEPDIR, am__include, and am__quote
  21640. # from the Makefile without running `make'.
  21641. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  21642. test -z "$DEPDIR" && continue
  21643. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  21644. test -z "am__include" && continue
  21645. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  21646. # When using ansi2knr, U may be empty or an underscore; expand it
  21647. U=`sed -n 's/^U = //p' < "$mf"`
  21648. # Find all dependency output files, they are included files with
  21649. # $(DEPDIR) in their names. We invoke sed twice because it is the
  21650. # simplest approach to changing $(DEPDIR) to its actual value in the
  21651. # expansion.
  21652. for file in `sed -n "
  21653. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  21654. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  21655. # Make sure the directory exists.
  21656. test -f "$dirpart/$file" && continue
  21657. fdir=`$as_dirname -- "$file" ||
  21658. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21659. X"$file" : 'X\(//\)[^/]' \| \
  21660. X"$file" : 'X\(//\)$' \| \
  21661. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  21662. echo X"$file" |
  21663. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21664. s//\1/
  21665. q
  21666. }
  21667. /^X\(\/\/\)[^/].*/{
  21668. s//\1/
  21669. q
  21670. }
  21671. /^X\(\/\/\)$/{
  21672. s//\1/
  21673. q
  21674. }
  21675. /^X\(\/\).*/{
  21676. s//\1/
  21677. q
  21678. }
  21679. s/.*/./; q'`
  21680. { as_dir=$dirpart/$fdir
  21681. case $as_dir in #(
  21682. -*) as_dir=./$as_dir;;
  21683. esac
  21684. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  21685. as_dirs=
  21686. while :; do
  21687. case $as_dir in #(
  21688. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  21689. *) as_qdir=$as_dir;;
  21690. esac
  21691. as_dirs="'$as_qdir' $as_dirs"
  21692. as_dir=`$as_dirname -- "$as_dir" ||
  21693. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21694. X"$as_dir" : 'X\(//\)[^/]' \| \
  21695. X"$as_dir" : 'X\(//\)$' \| \
  21696. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21697. echo X"$as_dir" |
  21698. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21699. s//\1/
  21700. q
  21701. }
  21702. /^X\(\/\/\)[^/].*/{
  21703. s//\1/
  21704. q
  21705. }
  21706. /^X\(\/\/\)$/{
  21707. s//\1/
  21708. q
  21709. }
  21710. /^X\(\/\).*/{
  21711. s//\1/
  21712. q
  21713. }
  21714. s/.*/./; q'`
  21715. test -d "$as_dir" && break
  21716. done
  21717. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21718. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  21719. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  21720. { (exit 1); exit 1; }; }; }
  21721. # echo "creating $dirpart/$file"
  21722. echo '# dummy' > "$dirpart/$file"
  21723. done
  21724. done
  21725. ;;
  21726. "include":C) test -d include || mkdir include ;;
  21727. "src":C)
  21728. test -d src || mkdir src
  21729. test -d src/$TARGETDIR || mkdir src/$TARGETDIR
  21730. ;;
  21731. esac
  21732. done # for ac_tag
  21733. { (exit 0); exit 0; }
  21734. _ACEOF
  21735. chmod +x $CONFIG_STATUS
  21736. ac_clean_files=$ac_clean_files_save
  21737. # configure is writing to config.log, and then calls config.status.
  21738. # config.status does its own redirection, appending to config.log.
  21739. # Unfortunately, on DOS this fails, as config.log is still kept open
  21740. # by configure, so config.status won't be able to write to it; its
  21741. # output is simply discarded. So we exec the FD to /dev/null,
  21742. # effectively closing config.log, so it can be properly (re)opened and
  21743. # appended to by config.status. When coming back to configure, we
  21744. # need to make the FD available again.
  21745. if test "$no_create" != yes; then
  21746. ac_cs_success=:
  21747. ac_config_status_args=
  21748. test "$silent" = yes &&
  21749. ac_config_status_args="$ac_config_status_args --quiet"
  21750. exec 5>/dev/null
  21751. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  21752. exec 5>>config.log
  21753. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  21754. # would make configure fail if this is the last instruction.
  21755. $ac_cs_success || { (exit 1); exit 1; }
  21756. fi